@vkontakte/videoplayer 1.1.38-dev.d2e560cb.0 → 1.1.38-dev.f9474f22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esnext.cjs.js CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.38-dev.d2e560cb.0
3
- * Fri, 05 Jul 2024 09:04:10 GMT
2
+ * @vkontakte/videoplayer v1.1.38-dev.f9474f22.0
3
+ * Mon, 15 Jul 2024 10:36:58 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
5
5
  */
6
- "use strict";var b2=Object.create;var Hl=Object.defineProperty;var v2=Object.getOwnPropertyDescriptor;var y2=Object.getOwnPropertyNames;var k2=Object.getPrototypeOf,w2=Object.prototype.hasOwnProperty;var C2=(i,e)=>{for(var t in e)Hl(i,t,{get:e[t],enumerable:!0})},Ec=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of y2(e))!w2.call(i,o)&&o!==t&&Hl(i,o,{get:()=>e[o],enumerable:!(n=v2(e,o))||n.enumerable});return i};var Ac=(i,e,t)=>(t=i!=null?b2(k2(i)):{},Ec(e||!i||!i.__esModule?Hl(t,"default",{value:i,enumerable:!0}):t,i)),S2=i=>Ec(Hl({},"__esModule",{value:!0}),i);var h6={};C2(h6,{GridTypes:()=>oo,InterfaceLanguage:()=>ml.InterfaceLanguage,VERSION:()=>Po,VKNumericLanguage:()=>ml.VKNumericLanguage,VideoFormat:()=>cs.VideoFormat,VideoQuality:()=>cs.VideoQuality,loadVKLangPack:()=>ml.loadVKLangPack,registerPlayerWebComponent:()=>_6});module.exports=S2(h6);function me(){}function ne(i,e){for(let t in e)i[t]=e[t];return i}function ps(i){return i()}function ql(){return Object.create(null)}function et(i){i.forEach(ps)}function bi(i){return typeof i=="function"}function H(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var zl;function _s(i,e){return zl||(zl=document.createElement("a")),zl.href=e,i===zl.href}function Mc(i){return Object.keys(i).length===0}function Ot(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 Ot(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Ot(e,t))}function Se(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?ne(t.ctx.slice(),i[1](n(e))):t.ctx}function Pe(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 Ie(i,e,t,n,o,r){if(o){let l=Vc(e,t,n,r);i.p(l,o)}}function Te(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 yo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Ul=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)}))}};Ul.entries="WeakMap"in yo?new WeakMap:void 0;var Bc=!1;function Rc(){Bc=!0}function Dc(){Bc=!1}function m(i,e){i.appendChild(e)}function we(i,e,t){let n=Nc(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,T2(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 T2(i,e){return m(i.head||i,e),e.sheet}function w(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Hi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function N(){return Be(" ")}function nt(){return Be("")}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 lt(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 Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function ri(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Kl;function E2(){if(Kl===void 0){Kl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Kl=!0}}return Kl}function qo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=E2(),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(),k(n)}}function O(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 dn(i,e){return new i(e)}var no;function jn(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 gl(){return Uo().$$.context}function gn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var ko=[];var _e=[],jo=[],gs=[],zc=Promise.resolve(),bs=!1;function vs(){bs||(bs=!0,zc.then(Wl))}function Bn(){return vs(),zc}function Rn(i){jo.push(i)}function Ne(i){gs.push(i)}var hs=new Set,Go=0;function Wl(){if(Go!==0)return;let i=no;do{try{for(;Go<ko.length;){let e=ko[Go];Go++,jn(e),R2(e.$$)}}catch(e){throw ko.length=0,Go=0,e}for(jn(null),ko.length=0,Go=0;_e.length;)_e.pop()();for(let e=0;e<jo.length;e+=1){let t=jo[e];hs.has(t)||(hs.add(t),t())}jo.length=0}while(ko.length);for(;gs.length;)gs.pop()();bs=!1,hs.clear(),jn(i)}function R2(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(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 Gl=new Set,wo;function ue(){wo={r:0,c:[],p:wo}}function ce(){wo.r||et(wo.c),wo=wo.p}function d(i,e){i&&i.i&&(Gl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Gl.has(i))return;Gl.add(i),wo.c.push(()=>{Gl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function ht(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 D2=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],N2=new Set([...D2]);function Oe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Rn(()=>{let r=i.$$.on_mount.map(ps).filter(bi);i.$$.on_destroy?i.$$.on_destroy.push(...r):et(r),i.$$.on_mount=[]}),o.forEach(Rn)}function B(i,e){let t=i.$$;t.fragment!==null&&(qc(t.after_update),et(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function F2(i,e){i.$$.dirty[0]===-1&&(ko.push(i),vs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function q(i,e,t,n,o,r,l,a=[-1]){let s=no;jn(i);let u=i.$$={fragment:null,ctx:[],props:r,update:me,not_equal:o,bound:ql(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:ql(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...y)=>{let b=y.length?y[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=b)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](b),f&&F2(i,p)),h}):[],u.update(),f=!0,et(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(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Dc(),Wl()}jn(s)}var H2;typeof HTMLElement=="function"&&(H2=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){w(s,r,u)},d:function(s){s&&k(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 z=class{$$=void 0;$$set=void 0;$destroy(){B(this,1),this.$destroy=me}$on(e,t){if(!bi(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 $B=require("@vkontakte/videoplayer-core"),Dn=require("@vkontakte/videoplayer-shared"),Ap=require("@vkontakte/videoplayer-statistics");var Qo=require("@vkontakte/videoplayer-shared");var z2={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},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,z2),jc=i=>Ko("ui-config",i),Vt=()=>Wo("ui-config");var bl="vk_player_debug_panel_opened";var Qc="videoplayer",Yc="videoplayer";var qn={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"],vl=[...xc,"GRAPH_BUTTON"],ys=[...xc,"PLAY_BUTTON"],jl=[...vl,"PLAY_BUTTON"];var oo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(oo||{}),So={xs:0,s:1,m:2,l:3,xl:4};var Yo=[];function Cn(i,e){return{subscribe:Re(i,e).subscribe}}function Re(i,e=me){let t,n=new Set;function o(a){if(H(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 vi(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 b=e(n?u[0]:u,l,a);r?l(b):p=bi(b)?b:me},y=o.map((b,P)=>Ot(b,C=>{u[P]=C,f&=~(1<<P),s&&h()},()=>{f|=1<<P}));return s=!0,h(),function(){et(y),p(),s=!1}})}var yl=require("@vkontakte/videoplayer-shared"),$c=require("@vkontakte/videoplayer-core"),ef=require("@vkontakte/videoplayer-statistics");var Ql="prod",Po="1.1.38-dev.d2e560cb.0";var Yl=(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),Ql==="dev"&&(window.app={store:i,microStores:e})},$e=()=>{let i=Wo(tf);return(0,yl.assertNonNullable)(i,"Store context is empty!"),i},Sn=()=>{let i=Wo(nf);return(0,yl.assertNonNullable)(i,"MicroStores context is empty!"),i},gt=(i,e)=>ks(i,i.getValue(),e),ks=(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}=xe(t.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Po} (core: ${$c.VERSION}, stat: ${ef.VERSION}, shared: ${yl.VERSION})`,f=xe(t.state.errorLog$),p=f.length?`
7
- `+f.map((b,P)=>{let C=`${P}) Type: ${b.id}
8
- `,A=`Message: ${b.message} (${b.thrown})
9
- `,S=`Trace: ${b.thrown?.stack}
10
- `;return C+A+S}).join(`
11
- `):void 0,h=t.state.isAudioDisabled?"disabled":xe(t.state.isAudioAvailable$)?void 0:"unavailable",y={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${xe(t.state.positionExact$)}s`,State:`${xe(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:p};return Object.entries(y).filter(([b,P])=>P!==void 0).map(([b,P])=>`${b}: ${P}`).join(`
12
- `)},rf=(i,e,t)=>{let n=i.info,{width:o,height:r}=xe(t.ui.playerSize),l={version:Po,viewport:`${o}x${r}`,volume:Math.round(xe(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-xe(t.state.positionExact$),0));let p=n.throughputEstimation$.getValue();p&&(l.speed=p);let h=n.videoBitrate$.getValue();h&&(l.bitrate=h);let y=n.currentVideoSegmentLength$.getValue();y&&(l.currentVideoSegmentLength=y);let b=n.currentAudioSegmentLength$.getValue();return b&&(l.currentAudioSegmentLength=b),l},sf=(i,e)=>Yl(i,e,"mp4");var Pn=require("@vkontakte/videoplayer-shared"),af="vk_player_prefer_traffic_saving_enabled",uf="vk_player_preferred_volume",cf="vk_player_prefer_volume_mute",ws="vk_player_preferred_quality",ff=i=>i>1?1:i<0?0:i,Cs=i=>Pn.safeStorage.set(uf,ff(i).toString(10)),Zl=()=>{let i=Pn.safeStorage.get(uf);return(0,Pn.isNullable)(i)?void 0:ff(parseFloat(i))},df=(i,e)=>Pn.safeStorage.set(ws,JSON.stringify({videoId:i,value:e})),Ss=()=>Pn.safeStorage.remove(ws),mf=i=>{let e=Pn.safeStorage.get(ws);if((0,Pn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ss();return}return n},pf=(i,e)=>{e?Pn.safeStorage.set(i,"true"):Pn.safeStorage.remove(i)},_f=i=>Pn.safeStorage.get(i)==="true",Xl=i=>pf(cf,i),hf=()=>_f(cf),gf=i=>pf(af,i),bf=()=>_f(af);var lp=require("@vkontakte/videoplayer-core"),os=require("@vkontakte/videoplayer-shared");function q2(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S=i[2].default,v=Se(S,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],G={};for(let W=0;W<E.length;W+=1)G=ne(G,E[W]);return{c(){e=M("svg"),v&&v.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"),y=M("feGaussianBlur"),b=M("feColorMatrix"),P=M("feBlend"),C=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(y,"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(P,"in2","BackgroundImageFix"),c(P,"result","effect1_dropShadow_618_12297"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_618_12297"),c(C,"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,G)},m(W,K){w(W,e,K),v&&v.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,y),m(u,b),m(u,P),m(u,C),A=!0},p(W,[K]){v&&v.p&&(!A||K&2)&&Ie(v,S,W,W[1],A?Pe(S,W[1],K,null):Te(W[1]),null),be(e,G=Le(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},K&1&&W[0]]))},i(W){A||(d(v,W),A=!0)},o(W){_(v,W),A=!1},d(W){W&&k(e),v&&v.d(W)}}}function U2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ps=class extends z{constructor(e){super(),q(this,e,U2,q2,H,{})}},Jl=Ps;var Zo=require("@vkontakte/videoplayer-shared");var K2={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"},vf=K2;var W2={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"},yf=W2;var Qn=new Map;Qn.set(Zo.InterfaceLanguage.EN,yf);Qn.set(Zo.InterfaceLanguage.RU,vf);var kf=new Map,Is=({language:i,pack:e,fallback:t})=>{if(Qn.has(i)){let n=Qn.get(i);Qn.set(i,{...n,...e})}else Qn.set(i,e);kf.set(i,t)},Ts=i=>Qn.has(i),Es=(i,e,t,n)=>{let r=Qn.get(i)?.[e];if((0,Zo.isNullable)(r)){let l=kf.get(i)??n;r=(l?Qn.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},U=(i,e)=>{let{interfaceLanguage$:t}=$e(),n=xe(t),o=Vt();return Es(n,i,e,o.defaultLanguage)};var e9=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 G2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,j2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Q2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,xl="?",Y2="X-Sentry-Auth",Z2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function X2(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=G2.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||xl,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=Q2.exec(t[r]))o={filename:n[2],function:n[1]||xl,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=j2.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||xl,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=xl),e.push(o)}return e.length?{value:wf(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function wf(i){return(i&&i.message||"No error message").split(`
14
- `).filter(t=>!!t)[0]}function J2(i){try{let e=X2(i);if(e)return e}catch{}return{value:wf(i),type:i&&i.name,stacktrace:{frames:[]}}}function x2(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var $l=class{constructor(e){if(e&&e.dsn){let t=Z2.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:[J2(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(Y2,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:x2(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Cf(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function $2(){return window}var er=class i extends $l{constructor(e,t=$2()){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=>Cf(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=>Cf(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 Io=require("@vkontakte/videoplayer-shared");var tr=null,To=class{constructor(e,t,n={}){!tr&&e.dsn&&(this.sentryClient=new er({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Io.Subscription,this.options=e,this.context=n,tr=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),tr=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:y}=t;if((0,Io.isNonNullable)(y)&&p.includes(y)||(0,Io.isNonNullable)(h)&&f.includes(h))return;if(Math.random()<=a||(0,Io.isNonNullable)(y)&&u.includes(y)||(0,Io.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(P){console.error(P)}}}static getInstance(){return tr}};var ir=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()},nr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Sf=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},lo=()=>{let i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},or=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},lr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Pf=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 As=require("@vkontakte/videoplayer-shared"),If=()=>({title:U("hotkey_map_modal_title"),closeBtnText:U("hotkey_map_modal_close_btn_text"),groups:[{title:U("hotkey_map_group_title_common"),items:[{description:U("hotkey_map_item_mute_description"),value:U("hotkey_map_item_mute_value")},{description:U("hotkey_map_item_volume_up_description"),value:U("hotkey_map_item_volume_up_value")},{description:U("hotkey_map_item_volume_down_description"),value:U("hotkey_map_item_volume_down_value")},{description:U("hotkey_map_item_pip_description"),value:U("hotkey_map_item_pip_value")},{description:U("hotkey_map_item_full_screen_description"),value:U("hotkey_map_item_full_screen_value")},{description:U("hotkey_map_item_show_context_menu_description"),value:U("hotkey_map_item_show_context_menu_value")},{description:U("hotkey_map_item_show_hotkey_map_description"),value:U("hotkey_map_item_show_hotkey_map_value")}]},{title:U("hotkey_map_group_title_playback"),items:[{description:U("hotkey_map_item_play_toggle_description"),value:U("hotkey_map_item_play_toggle_value")},{description:U("hotkey_map_item_seek_backward_description"),value:U("hotkey_map_item_seek_backward_value")},{description:U("hotkey_map_item_seek_forward_description"),value:U("hotkey_map_item_seek_forward_value")},{description:U("hotkey_map_item_fast_seek_backward_description"),value:U("hotkey_map_item_fast_seek_backward_value")},{description:U("hotkey_map_item_fast_seek_forward_description"),value:U("hotkey_map_item_fast_seek_forward_value")},{description:U("hotkey_map_item_rate_down_description"),value:U("hotkey_map_item_rate_down_value")},{description:U("hotkey_map_item_rate_up_description"),value:U("hotkey_map_item_rate_up_value")},{description:U("hotkey_map_item_prev_frame_description"),value:U("hotkey_map_item_prev_frame_value")},{description:U("hotkey_map_item_next_frame_description"),value:U("hotkey_map_item_next_frame_value")},{description:U("hotkey_map_item_jump_seek_description"),value:U("hotkey_map_item_jump_seek_value")}]},{title:U("hotkey_map_group_title_subtitles"),items:[{description:U("hotkey_map_item_subtitles_toggle_description"),value:U("hotkey_map_item_subtitles_toggle_value")}]},{title:U("hotkey_map_group_title_episodes"),items:[{description:U("hotkey_map_item_prev_episode_description"),value:(0,As.isMacLike)()?U("hotkey_map_item_prev_episode_mac_value"):U("hotkey_map_item_prev_episode_pc_value")},{description:U("hotkey_map_item_next_episode_description"),value:(0,As.isMacLike)()?U("hotkey_map_item_next_episode_mac_value"):U("hotkey_map_item_next_episode_pc_value")}]}]});var ro=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,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 Ao(i){return i instanceof Eo}function e_(i){let e=$e();return St(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Ls=class extends z{constructor(e){super(),q(this,e,e_,null,H,{})}},Tf=Ls;var Ef=require("@vkontakte/videoplayer-shared");function t_(i){we(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 i_(i){let e=U("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Be(e)},m(n,o){w(n,t,o)},p(n,o){o&3&&e!==(e=U("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ge(t,e)},d(n){n&&k(t)}}}function n_(i){let e,t=U("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=Be(t),o=N(),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){w(u,e,f),m(e,n),m(e,o),m(e,r),m(r,l),a||(s=pe(e,"click",lt(function(){bi(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&k(e),a=!1,s()}}}function o_(i){let e;function t(r,l){return r[3]?n_:i_}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),c(e,"class","container svelte-1k4i25s"),O(e,"container-mobile",i[4]),O(e,"skippable",i[3])},m(r,l){w(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&&O(e,"container-mobile",r[4]),l&8&&O(e,"skippable",r[3])},i:me,o:me,d(r){r&&k(e),o.d()}}}function l_(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=Ef.noop}=e,s=$e().ui.isMobile;F(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 Bs=class extends z{constructor(e){super(),q(this,e,l_,o_,H,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},t_)}},Af=Bs;function r_(i){we(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 s_(i){let e;return{c(){e=T("button"),e.textContent=`${U("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){w(t,e,n)},p:me,i:me,o:me,d(t){t&&k(e)}}}var Rs=class extends z{constructor(e){super(),q(this,e,null,s_,H,{},r_)}},Mf=Rs;function a_(i){we(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 k_=Object.create;var zl=Object.defineProperty;var C_=Object.getOwnPropertyDescriptor;var S_=Object.getOwnPropertyNames;var P_=Object.getPrototypeOf,I_=Object.prototype.hasOwnProperty;var T_=(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 S_(e))!I_.call(i,o)&&o!==t&&zl(i,o,{get:()=>e[o],enumerable:!(n=C_(e,o))||n.enumerable});return i};var Ac=(i,e,t)=>(t=i!=null?k_(P_(i)):{},Ec(e||!i||!i.__esModule?zl(t,"default",{value:i,enumerable:!0}):t,i)),E_=i=>Ec(zl({},"__esModule",{value:!0}),i);var w6={};T_(w6,{GridTypes:()=>oo,InterfaceLanguage:()=>ml.InterfaceLanguage,VERSION:()=>Co,VKNumericLanguage:()=>ml.VKNumericLanguage,VideoFormat:()=>fs.VideoFormat,VideoQuality:()=>fs.VideoQuality,loadVKLangPack:()=>ml.loadVKLangPack,registerPlayerWebComponent:()=>y6});module.exports=E_(w6);function _e(){}function ne(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 it(i){i.forEach(_s)}function Ti(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 _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Dt(i,t=>e=t)(),e}function F(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?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=Vc(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 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 Rc=!1;function Bc(){Rc=!0}function Dc(){Rc=!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,V_(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 V_(i,e){return m(i.head||i,e),e.sheet}function C(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function Oi(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 D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function O(){return Be(" ")}function ot(){return Be("")}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 lt(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 Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function di(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var jl;function L_(){if(jl===void 0){jl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{jl=!0}}return jl}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=L_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=pe(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=pe(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),y(n)}}function H(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 jo(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 he=[],Go=[],bs=[],zc=Promise.resolve(),vs=!1;function ys(){vs||(vs=!0,zc.then(Wl))}function Rn(){return ys(),zc}function Bn(i){Go.push(i)}function Oe(i){bs.push(i)}var gs=new Set,Wo=0;function Wl(){if(Wo!==0)return;let i=no;do{try{for(;Wo<vo.length;){let e=vo[Wo];Wo++,Qn(e),F_(e.$$)}}catch(e){throw vo.length=0,Wo=0,e}for(Qn(null),vo.length=0,Wo=0;he.length;)he.pop()();for(let e=0;e<Go.length;e+=1){let t=Go[e];gs.has(t)||(gs.add(t),t())}Go.length=0}while(vo.length);for(;bs.length;)bs.pop()();vs=!1,gs.clear(),Qn(i)}function F_(i){if(i.fragment!==null){i.update(),it(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Bn)}}function qc(i){let e=[],t=[];Go.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Go=e}var Gl=new Set,yo;function fe(){yo={r:0,c:[],p:yo}}function de(){yo.r||it(yo.c),yo=yo.p}function d(i,e){i&&i.i&&(Gl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Gl.has(i))return;Gl.add(i),yo.c.push(()=>{Gl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function vt(i){return i?.length!==void 0?i:Array.from(i)}function Ve(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 Uc(i){return typeof i=="object"&&i!==null?i:{}}var H_=["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"],z_=new Set([...H_]);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),Bn(()=>{let l=i.$$.on_mount.map(_s).filter(Ti);i.$$.on_destroy?i.$$.on_destroy.push(...l):it(l),i.$$.on_mount=[]}),o.forEach(Bn)}function R(i,e){let t=i.$$;t.fragment!==null&&(qc(t.after_update),it(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function U_(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,l,r,a=[-1]){let s=no;Qn(i);let u=i.$$={fragment:null,ctx:[],props:l,update:_e,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};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&&U_(i,p)),h}):[],u.update(),f=!0,it(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Bc();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),L(i,e.target,e.anchor),Dc(),Wl()}Qn(s)}var K_;typeof HTMLElement=="function"&&(K_=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&&y(l)}}}};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 l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=Kc(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]=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=_e}$on(e,t){if(!Ti(t))return _e;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 jc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(jc);var rB=require("@vkontakte/videoplayer-core"),Dn=require("@vkontakte/videoplayer-shared"),Rp=require("@vkontakte/videoplayer-statistics");var Qo=require("@vkontakte/videoplayer-shared");var j_={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}},Wc=i=>(0,Qo.fillWithDefault)(i,j_),Gc=i=>Ko("ui-config",i),At=()=>jo("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"],ws=[...xc,"PLAY_BUTTON"],Ql=[...yl,"PLAY_BUTTON"];var oo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(oo||{}),ko={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=_e){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 l(a){o(a(i))}function r(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Ei(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 Cn(t,(r,a)=>{let s=!1,u=[],f=0,p=_e,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ti(g)?g:_e},b=o.map((g,S)=>Dt(g,w=>{u[S]=w,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){it(b),p(),s=!1}})}var wl=require("@vkontakte/videoplayer-shared"),$c=require("@vkontakte/videoplayer-core"),ef=require("@vkontakte/videoplayer-statistics");var Yl="prod",Co="1.1.38-dev.f9474f22.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})},tt=()=>{let i=jo(tf);return(0,wl.assertNonNullable)(i,"Store context is empty!"),i},Sn=()=>{let i=jo(nf);return(0,wl.assertNonNullable)(i,"MicroStores context is empty!"),i},yt=(i,e)=>ks(i,i.getValue(),e),ks=(i,e,t)=>Cn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),lf=(i,e,t)=>{let n=i.info,{width:o,height:l}=et(t.ui.playerSize),r=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: ${wl.VERSION})`,f=et(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
+ `,k=`Trace: ${g.thrown?.stack}
10
+ `;return w+T+k}).join(`
11
+ `):void 0,h=t.state.isAudioDisabled?"disabled":et(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:`${et(t.state.positionExact$)}s`,State:`${et(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
+ `)},rf=(i,e,t)=>{let n=i.info,{width:o,height:l}=et(t.ui.playerSize),r={version:Co,viewport:`${o}x${l}`,volume:Math.round(et(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();f&&(r.buffer=Math.max(f.end-et(t.state.positionExact$),0));let p=n.throughputEstimation$.getValue();p&&(r.speed=p);let h=n.videoBitrate$.getValue();h&&(r.bitrate=h);let b=n.currentVideoSegmentLength$.getValue();b&&(r.currentVideoSegmentLength=b);let g=n.currentAudioSegmentLength$.getValue();return g&&(r.currentAudioSegmentLength=g),r},sf=(i,e)=>Zl(i,e,"mp4");var fn=require("@vkontakte/videoplayer-shared"),z7=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})),wf=()=>{let i=fn.safeStorage.get(ff);if((0,fn.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var up=require("@vkontakte/videoplayer-core"),ls=require("@vkontakte/videoplayer-shared");function W_(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k=i[2].default,v=Pe(k,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]],W={};for(let Q=0;Q<I.length;Q+=1)W=ne(W,I[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"),w=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(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,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,w),T=!0},p(Q,[G]){v&&v.p&&(!T||G&2)&&Te(v,k,Q,Q[1],T?Ie(k,Q[1],G,null):Ee(Q[1]),null),be(e,W=Ve(I,[{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){T||(d(v,Q),T=!0)},o(Q){_(v,Q),T=!1},d(Q){Q&&y(e),v&&v.d(Q)}}}function G_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Is=class extends q{constructor(e){super(),U(this,e,G_,W_,z,{})}},xl=Is;var Zo=require("@vkontakte/videoplayer-shared");var Q_={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"},kf=Q_;var Y_={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=Y_;var Yn=new Map;Yn.set(Zo.InterfaceLanguage.EN,Cf);Yn.set(Zo.InterfaceLanguage.RU,kf);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 l=Yn.get(i)?.[e];if((0,Zo.isNullable)(l)){let r=Sf.get(i)??n;l=(r?Yn.get(r):void 0)?.[e]}return(0,Zo.isNullable)(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,a)=>t[a]??""):l},j=(i,e)=>{let{interfaceLanguage$:t}=tt(),n=et(t),o=At();return As(n,i,e,o.defaultLanguage)};var r9=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 Z_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,X_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,J_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,$l="?",x_="X-Sentry-Auth",$_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function e2(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=Z_.exec(t[l]))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=J_.exec(t[l]))o={filename:n[2],function:n[1]||$l,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=X_.exec(t[l]))l===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 t2(i){try{let e=e2(i);if(e)return e}catch{}return{value:Pf(i),type:i&&i.name,stacktrace:{frames:[]}}}function i2(){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=$_.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:[t2(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(x_,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:i2(),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 n2(){return window}var tr=class i extends er{constructor(e,t=n2()){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=>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],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 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:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:h,category:b}=t;if((0,So.isNonNullable)(b)&&p.includes(b)||(0,So.isNonNullable)(h)&&f.includes(h))return;if(Math.random()<=a||(0,So.isNonNullable)(b)&&u.includes(b)||(0,So.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 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: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,Ms.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,Ms.isMacLike)()?j("hotkey_map_item_next_episode_mac_value"):j("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 o2(i){let e=tt();return St(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Rs=class extends q{constructor(e){super(),U(this,e,o2,null,z,{})}},Mf=Rs;var Vf=require("@vkontakte/videoplayer-shared");function l2(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 r2(i){let e=j("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Be(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&&y(t)}}}function s2(i){let e,t=j("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=P("div"),n=Be(t),o=O(),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=pe(e,"click",lt(function(){Ti(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&y(e),a=!1,s()}}}function a2(i){let e;function t(l,r){return l[3]?s2:r2}let n=t(i,-1),o=n(i);return{c(){e=P("div"),o.c(),c(e,"class","container svelte-1k4i25s"),H(e,"container-mobile",i[4]),H(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&&H(e,"container-mobile",l[4]),r&8&&H(e,"skippable",l[3])},i:_e,o:_e,d(l){l&&y(e),o.d()}}}function u2(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=Vf.noop}=e,s=tt().ui.isMobile;F(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 Bs=class extends q{constructor(e){super(),U(this,e,u2,a2,z,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},l2)}},Lf=Bs;function c2(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 f2(i){let e;return{c(){e=P("button"),e.textContent=`${j("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){C(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&y(e)}}}var Ds=class extends q{constructor(e){super(),U(this,e,null,f2,z,{},c2)}},Rf=Ds;function d2(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(
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 Vf(i){let e;return{c(){e=T("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){w(t,e,n)},d(t){t&&k(e)}}}function Lf(i){let e,t;return e=new Af({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Bf(i){let e,t;return e=new Tf({}),{c(){R(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){B(e,n)}}}function Rf(i){let e,t;return e=new Mf({}),{c(){R(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){B(e,n)}}}function u_(i){let e,t,n,o,r,l,a,s=i[0]&&Vf(i),u=i[3]&&Lf(i),f=i[7]&&Bf(i),p=i[4]&&Rf(i);return{c(){e=T("div"),s&&s.c(),t=N(),n=T("video"),o=N(),u&&u.c(),r=N(),f&&f.c(),l=N(),p&&p.c(),ri(n,"width","100%"),ri(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,y){w(h,e,y),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,[y]){h[0]?s||(s=Vf(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,y),y&8&&d(u,1)):(u=Lf(h),u.c(),d(u,1),u.m(e,r)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),h[7]?f?y&128&&d(f,1):(f=Bf(h),f.c(),d(f,1),f.m(e,l)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),h[4]?p?y&16&&d(p,1):(p=Rf(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&&k(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function c_(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=$e(),y=h.state.isEnded$;F(i,y,I=>t(7,a=I));let b=h.ui.isMobile;F(i,b,I=>t(0,o=I));let P,C,A=!1,S=h.ads.playbackState;F(i,S,I=>t(18,n=I));let v=h.ads.canSkip,E=h.ads.position;F(i,E,I=>t(5,r=I));let G=h.ads.secondsToWatchBeforeSkip;F(i,G,I=>t(6,l=I));let W,K;St(()=>{let I=new AbortController,Y=()=>{I.abort()},X=h.getAdmanWrapper();if(!s){X.onAdmanLoadingError();return}let{width:$,height:x}=xe(h.ui.playerSize),D=xe(h.ui.isFullscreen),j=xe(h.ui.isAutoplay),V={width:$,height:x,isFullscreen:D,isAutoplay:j,adsContainer:P,adsVideoElement:C,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?(X.initAdman(V),A=!0):X.loadAdman(I.signal).then(()=>{X.initAdman(V),A=!0}).catch(()=>{X.onAdmanLoadingError()}),()=>{!A&&Y()}});function re(I){_e[I?"unshift":"push"](()=>{C=I,t(2,C)})}function te(I){_e[I?"unshift":"push"](()=>{P=I,t(1,P)})}return i.$$set=I=>{"adsSlotId"in I&&t(14,s=I.adsSlotId),"adsParams"in I&&t(15,u=I.adsParams),"adsPreviewParam"in I&&t(16,f=I.adsPreviewParam),"duration"in I&&t(17,p=I.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,W=v&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,K=o&&n!=="inactive")},[o,P,C,W,K,r,l,a,h,y,b,S,E,G,s,u,f,p,n,re,te]}var Ds=class extends z{constructor(e){super(),q(this,e,c_,u_,H,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},a_)}},rr=Ds;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 f_(i){let e,t,n,o,r=i[2].default,l=Se(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=ne(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){w(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)&&Ie(l,r,u,u[1],o?Pe(r,u[1],f,null):Te(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&&k(e),l&&l.d(u)}}}function d_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ns=class extends z{constructor(e){super(),q(this,e,d_,f_,H,{})}},Df=Ns;function m_(i){let e,t,n,o,r=i[2].default,l=Se(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=ne(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){w(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)&&Ie(l,r,u,u[1],o?Pe(r,u[1],f,null):Te(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&&k(e),l&&l.d(u)}}}function p_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Os=class extends z{constructor(e){super(),q(this,e,p_,m_,H,{})}},Nf=Os;function __(i){let e,t;return e=new Df({}),{c(){R(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){B(e,n)}}}function h_(i){let e,t;return e=new Nf({}),{c(){R(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){B(e,n)}}}function g_(i){let e,t,n,o,r=[h_,__],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=nt()},m(s,u){l[e].m(s,u),w(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&&k(n),l[e].d(s)}}}function b_(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Fs=class extends z{constructor(e){super(),q(this,e,b_,g_,H,{isActive:0})}},sr=Fs;function v_(i){we(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 y_(i){let e=bn(i[4]-i[3])+"",t;return{c(){t=Be(e)},m(n,o){w(n,t,o)},p(n,o){o&24&&e!==(e=bn(n[4]-n[3])+"")&&Ge(t,e)},i:me,o:me,d(n){n&&k(t)}}}function k_(i){let e,t,n;return t=new sr({props:{isActive:!0}}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){w(o,e,r),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&&k(e),B(t)}}}function w_(i){let e,t,n,o,r,l,a,s=[k_,y_],u=[];function f(p,h){return p[1]?0:1}return r=f(i,-1),l=u[r]=s[r](i),{c(){e=T("div"),t=T("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=N(),o=T("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"),O(e,"live",i[1]),O(e,"hidden",i[0]),O(e,"playing",i[2])},m(p,h){w(p,e,h),m(e,t),m(e,n),m(e,o),u[r].m(o,null),a=!0},p(p,[h]){let y=r;r=f(p,h),r===y?u[r].p(p,h):(ue(),_(u[y],1,1,()=>{u[y]=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)&&O(e,"live",p[1]),(!a||h&1)&&O(e,"hidden",p[0]),(!a||h&4)&&O(e,"playing",p[2])},i(p){a||(d(l),a=!0)},o(p){_(l),a=!1},d(p){p&&k(e),u[r].d()}}}function C_(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 Hs=class extends z{constructor(e){super(),q(this,e,C_,w_,H,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},v_)}},ar=Hs;var kl=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 zs=require("@vkontakte/videoplayer-core");var Ff=require("@vkontakte/videoplayer-shared"),S_=(0,Ff.isAndroid)(),Vo=i=>{i.stopPropagation(),i.preventDefault()},P_=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},I_=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},T_=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},E_=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Hf=i=>i.code==="Escape",A_=i=>i.code==="ArrowLeft",zf=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},qf=i=>{if(T_(i)){Vo(i),I_(i.target);return}E_(i)&&(Vo(i),P_(i.target))},xo=i=>i?.detail===0||S_&&i?.pointerType==="",$o=async(i,e,t)=>{await Bn(),i&&!i.classList.contains("opened")&&!e&&xe(t)&&(await Bn(),t.set(!1),i.focus())},Uf=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)},wl=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},ur=(i,e)=>{qf(i),Hf(i)&&(Vo(i),e())},Cl=async(i,e,t)=>{zf(i,!1)&&(Vo(i),e(),await Bn(),t()?.focus())},Sl=async(i,e,t,n)=>{if(qf(i),A_(i)){Vo(i),e(),t.set(!0);return}Hf(i)&&(Vo(i),n())},ji=(i,e)=>{zf(i)&&(Vo(i),e())},Kf=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Wf=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};var Pl=require("@vkontakte/videoplayer-shared");function M_(i){we(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 Gf(i){let e,t,n,o,r,l,a,s,u,f=(i[10].features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug"))+"",p,h,y,b,P=U("menu_debug_overlay")+"",C,A,S,v,E=i[10].features.copyVideoLink&&i[9].callbacks?.onCopyVideoLink&&V_(i),G=i[12]&&i[6]!==zs.ChromecastState.CONNECTED&&!i[17]&&Qf(i);function W(Y,X){return Y[4]?B_:L_}let K=W(i,[-1,-1]),re=K(i),te=i[10].features.videoRotate&&!i[17]&&R_(i),I=i[10].showSupport&&!i[7]&&Yf(i);return{c(){e=T("ul"),E&&E.c(),t=N(),G&&G.c(),n=N(),o=T("li"),re.c(),l=N(),te&&te.c(),a=N(),I&&I.c(),s=N(),u=T("li"),p=Be(f),y=N(),b=T("li"),C=Be(P),c(o,"tabindex","0"),c(o,"role","menuitem"),c(o,"aria-label",r=U("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?U("menu_save_debug"):U("menu_copy_debug")),c(u,"class","svelte-1vzqlps"),c(b,"tabindex","0"),c(b,"role","menuitem"),c(b,"aria-label",A=i[8]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable")),c(b,"class","svelte-1vzqlps"),c(e,"role","menu"),ri(e,"top",i[3]+"px"),ri(e,"left",i[2]+"px"),c(e,"class","svelte-1vzqlps")},m(Y,X){w(Y,e,X),E&&E.m(e,null),m(e,t),G&&G.m(e,null),m(e,n),m(e,o),re.m(o,null),m(e,l),te&&te.m(e,null),m(e,a),I&&I.m(e,null),m(e,s),m(e,u),m(u,p),m(e,y),m(e,b),m(b,C),i[42](e),S||(v=[pe(o,"click",lt(i[24])),pe(o,"keydown",i[30]),pe(u,"click",lt(i[21])),pe(u,"keydown",i[32]),pe(b,"click",lt(i[22])),pe(b,"keydown",i[33]),pe(e,"contextmenu",Ct(i[39])),pe(e,"keydown",i[26])],S=!0)},p(Y,X){Y[10].features.copyVideoLink&&Y[9].callbacks?.onCopyVideoLink&&E.p(Y,X),Y[12]&&Y[6]!==zs.ChromecastState.CONNECTED&&!Y[17]?G?G.p(Y,X):(G=Qf(Y),G.c(),G.m(e,n)):G&&(G.d(1),G=null),K===(K=W(Y,X))&&re?re.p(Y,X):(re.d(1),re=K(Y),re&&(re.c(),re.m(o,null))),Y[10].features.videoRotate&&!Y[17]&&te.p(Y,X),Y[10].showSupport&&!Y[7]?I?I.p(Y,X):(I=Yf(Y),I.c(),I.m(e,s)):I&&(I.d(1),I=null),X[0]&256&&A!==(A=Y[8]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"))&&c(b,"aria-label",A),X[0]&8&&ri(e,"top",Y[3]+"px"),X[0]&4&&ri(e,"left",Y[2]+"px")},d(Y){Y&&k(e),E&&E.d(),G&&G.d(),re.d(),te&&te.d(),I&&I.d(),i[42](null),S=!1,et(v)}}}function V_(i){let e,t=U("menu_copy_video_link")+"",n,o,r,l,a,s,u=!i[5]&&!i[17]&&jf(i);return{c(){e=T("li"),n=Be(t),r=N(),u&&u.c(),l=nt(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=U("menu_copy_video_link")),c(e,"class","svelte-1vzqlps")},m(f,p){w(f,e,p),m(e,n),w(f,r,p),u&&u.m(f,p),w(f,l,p),a||(s=[pe(e,"click",lt(i[40])),pe(e,"keydown",i[27])],a=!0)},p(f,p){!f[5]&&!f[17]?u?u.p(f,p):(u=jf(f),u.c(),u.m(l.parentNode,l)):u&&(u.d(1),u=null)},d(f){f&&(k(e),k(r),k(l)),u&&u.d(f),a=!1,et(s)}}}function jf(i){let e,t=U("menu_copy_video_link_with_timestamp")+"",n,o,r,l;return{c(){e=T("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=U("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-1vzqlps")},m(a,s){w(a,e,s),m(e,n),r||(l=[pe(e,"click",lt(i[41])),pe(e,"keydown",i[28])],r=!0)},p:me,d(a){a&&k(e),r=!1,et(l)}}}function Qf(i){let e,t=U("menu_pip")+"",n,o,r,l;return{c(){e=T("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=U("menu_pip")),c(e,"class","svelte-1vzqlps")},m(a,s){w(a,e,s),m(e,n),r||(l=[pe(e,"click",lt(i[23])),pe(e,"keydown",i[29])],r=!0)},p:me,d(a){a&&k(e),r=!1,et(l)}}}function L_(i){let e=U("menu_video_loop_on")+"",t;return{c(){t=Be(e)},m(n,o){w(n,t,o)},p:me,d(n){n&&k(t)}}}function B_(i){let e=U("menu_video_loop_off")+"",t;return{c(){t=Be(e)},m(n,o){w(n,t,o)},p:me,d(n){n&&k(t)}}}function R_(i){let e,t=U("menu_video_rotate")+"",n,o,r,l;return{c(){e=T("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=U("aria_label_menu_rotate")),c(e,"class","svelte-1vzqlps")},m(a,s){w(a,e,s),m(e,n),r||(l=[pe(e,"click",lt(i[19])),pe(e,"keydown",i[30])],r=!0)},p:me,d(a){a&&k(e),r=!1,et(l)}}}function Yf(i){let e,t=U("menu_report")+"",n,o,r,l;return{c(){e=T("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`),c(e,"class","svelte-1vzqlps")},m(a,s){w(a,e,s),m(e,n),r||(l=[pe(e,"click",lt(i[20])),pe(e,"keydown",i[31])],r=!0)},p:me,d(a){a&&k(e),r=!1,et(l)}}}function D_(i){let e,t=i[1]&&Gf(i);return{c(){t&&t.c(),e=nt()},m(n,o){t&&t.m(n,o),w(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=Gf(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:me,o:me,d(n){n&&k(e),t&&t.d(n)}}}function N_(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:y=void 0}=e,{menuElementRef:b=void 0}=e,{returnFocus:P}=e,C=0,A=0,S=$e(),v=Vt(),E=S.ui.contextMenu.visible$,G=S.ui.debugPanelVisible;F(i,G,le=>t(8,s=le));let W=S.webApi.pictureInPictureApi,K=S.webApi.pictureInPictureApi?.info.isActive$;F(i,K,le=>t(7,a=le));let re=S.state.chromecastState$;F(i,re,le=>t(6,l=le));let te=S.state.isLive$;F(i,te,le=>t(5,r=le));let I=S.state.positionExact$;F(i,I,le=>t(43,n=le));let Y=S.state.isInteractive,X=S.state.looped$;F(i,X,le=>t(4,o=le));let $=()=>{E.set(!1)},x=(le,oe)=>{if(!b||!h||!y)return;let Ce=b.getBoundingClientRect(),fe=h.getBoundingClientRect();t(2,C=le-fe.left),t(3,A=oe-fe.top),C+Ce.width>fe.width&&t(2,C=fe.width-Ce.width),A+Ce.height>fe.height&&t(3,A=fe.height-Ce.height),t(2,C=Math.max(C,0)),t(3,A=Math.max(A,0))},D=()=>{$(),S.actions.internal.videoRotate()},j=()=>{window.open(f,"_blank"),$(),S.actions.internal.pause()},V=()=>{let le=S.actions.internal.getDebugTextData();if(v.features.saveDebugInfoToFile){let oe=new Blob([...le],{type:"plain/text"}),Ce=window.URL.createObjectURL(oe);Yl(Ce,"vk_player_debug_info","txt")}else kl(S.actions.internal.getDebugTextData());$(),P?.()},Q=()=>{G.set(!0),$(),P?.()},De=async()=>{try{W?.isActive()?await W?.remove():await W?.request()}finally{$(),P?.()}},We=()=>{S.actions.internal.setLooped(!o),$()},qe=(le=!1)=>{if(S.callbacks?.onCopyVideoLink){let oe=S.callbacks?.onCopyVideoLink(le,n);oe&&kl(oe)}$()},Ze=le=>{ur(le,$)},Me=le=>{ji(le,()=>qe())},ye=le=>{ji(le,()=>qe(!0))},J=le=>{ji(le,()=>De())},ke=le=>{ji(le,()=>D())},Fe=le=>{ji(le,()=>j())},Ye=le=>{ji(le,()=>V())},Je=le=>{ji(le,()=>Q())};function he(le){gn.call(this,i,le)}let Ve=()=>qe(),ze=()=>qe(!0);function tt(le){_e[le?"unshift":"push"](()=>{b=le,t(0,b)})}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,y=le.controlsContainerRef),"menuElementRef"in le&&t(0,b=le.menuElementRef),"returnFocus"in le&&t(38,P=le.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(b&&h&&y){let{top:le,left:oe,bottom:Ce,right:fe}=p,Ee=oe??0,je=le??0,rt=b.getBoundingClientRect();(0,Pl.isNullable)(oe)&&!(0,Pl.isNullable)(fe)&&(Ee=fe-rt.width),(0,Pl.isNullable)(le)&&!(0,Pl.isNullable)(Ce)&&(je=Ce-rt.height),Ee=Math.max(Ee,0),je=Math.max(je,0),x(Ee,je)}}},[b,u,C,A,o,r,l,a,s,S,v,G,W,K,re,te,I,Y,X,D,j,V,Q,De,We,qe,Ze,Me,ye,J,ke,Fe,Ye,Je,f,p,h,y,P,he,Ve,ze,tt]}var qs=class extends z{constructor(e){super(),q(this,e,N_,D_,H,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},M_,[-1,-1])}},Zf=qs;var cr=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 cr(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 O_(i){we(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function F_(i){let e,t;return{c(){e=T("div"),t=T("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){w(n,e,o),m(e,t),i[3](t)},p:me,i:me,o:me,d(n){n&&k(e),i[3](null)}}}var Us=16,Ks=120,Xf=60;function H_(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function z_(i,e,t){let{values:n=[]}=e,o,r,l=Ks/Xf;St(()=>{t(0,o.width=Ks,o),t(0,o.height=Us,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,Ks,Us);let f=Xf-1;for(let p=n.length-1;p>=0;p--){let h=f*l,y=u>0?Us*(n[p]/u):0;H_(r,h,0,l,y),s=y+" "+s,f--}}}},[o,n,r,a]}var Ws=class extends z{constructor(e){super(),q(this,e,z_,F_,H,{values:1},O_)}},fr=Ws;var Gs=require("@vkontakte/videoplayer-shared");function q_(i){we(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 Jf(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=N(),o=T("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){w(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+"")&&Ge(l,r)},d(a){a&&k(e)}}}function xf(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=N(),o=T("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){w(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+"")&&Ge(l,r)},d(a){a&&k(e)}}}function $f(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=N(),o=T("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){w(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+"")&&Ge(l,r)},d(a){a&&k(e)}}}function e1(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=N(),o=T("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){w(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+"")&&Ge(l,r)},d(a){a&&k(e)}}}function t1(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=N(),o=T("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){w(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+"")&&Ge(l,r)},d(a){a&&k(e)}}}function i1(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=N(),o=T("span"),l=Be(r),a=Be(" %"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){w(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+"")&&Ge(l,r)},d(s){s&&k(e)}}}function n1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=N(),o=T("span"),l=Be(r),a=Be(" s"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){w(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)+"")&&Ge(l,r)},d(s){s&&k(e)}}}function o1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(s1).map(a1).join(" / ")+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=N(),o=T("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){w(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(s1).map(a1).join(" / ")+"")&&Ge(l,r)},d(a){a&&k(e)}}}function l1(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new fr({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=N(),R(o.$$.fragment),r=N(),l=T("span"),s=Be(a),u=Be(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){w(p,e,h),m(e,t),m(e,n),L(o,e,null),m(e,r),m(e,l),m(l,s),m(l,u),f=!0},p(p,h){let y={};h&32&&(y.values=p[5]),o.$set(y),(!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&&k(e),B(o)}}}function r1(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new fr({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=N(),R(o.$$.fragment),r=N(),l=T("span"),s=Be(a),u=Be(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){w(p,e,h),m(e,t),m(e,n),L(o,e,null),m(e,r),m(e,l),m(l,s),m(l,u),f=!0},p(p,h){let y={};h&64&&(y.values=p[6]),o.$set(y),(!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&&k(e),B(o)}}}function U_(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",f,p,h,y,b,P,C,A,S,v,E,G,W,K,re,te,I,Y,X,$,x,D,j,V,Q,De,We,qe,Ze,Me,ye,J,ke=i[0].id&&Jf(i),Fe=i[0].provider&&xf(i),Ye=i[0].viewport&&$f(i),Je=i[0].videoSize&&e1(i),he=i[0].cdn&&t1(i),Ve=i[0].volume&&i1(i),ze=i[0].buffer&&n1(i),tt=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&o1(i),le=i[0].speed&&l1(i),oe=i[0].bitrate&&r1(i);return Q=new fr({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=N(),o=T("div"),r=T("div"),l=T("div"),l.textContent="Version",a=N(),s=T("span"),f=Be(u),p=N(),ke&&ke.c(),h=N(),Fe&&Fe.c(),y=N(),Ye&&Ye.c(),b=N(),Je&&Je.c(),P=N(),he&&he.c(),C=N(),Ve&&Ve.c(),A=N(),ze&&ze.c(),S=N(),tt&&tt.c(),v=N(),E=T("div"),G=T("div"),G.textContent="Dropped",W=N(),K=T("span"),re=Be(i[2]),te=Be(" / "),I=Be(i[1]),Y=Be(" frames"),X=N(),le&&le.c(),$=N(),oe&&oe.c(),x=N(),D=T("div"),j=T("div"),j.textContent="FPS",V=N(),R(Q.$$.fragment),De=N(),We=T("span"),qe=Be(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(G,"class","svelte-1fypj5i"),c(E,"class","svelte-1fypj5i"),c(j,"class","svelte-1fypj5i"),c(D,"class","svelte-1fypj5i"),c(o,"class","content svelte-1fypj5i"),c(e,"class","container svelte-1fypj5i"),c(e,"role","region"),c(e,"aria-label",Ze=U("aria_label_debug_panel")),O(e,"container-mobile",i[7])},m(Ce,fe){w(Ce,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),Fe&&Fe.m(o,null),m(o,y),Ye&&Ye.m(o,null),m(o,b),Je&&Je.m(o,null),m(o,P),he&&he.m(o,null),m(o,C),Ve&&Ve.m(o,null),m(o,A),ze&&ze.m(o,null),m(o,S),tt&&tt.m(o,null),m(o,v),m(o,E),m(E,G),m(E,W),m(E,K),m(K,re),m(K,te),m(K,I),m(K,Y),m(o,X),le&&le.m(o,null),m(o,$),oe&&oe.m(o,null),m(o,x),m(o,D),m(D,j),m(D,V),L(Q,D,null),m(D,De),m(D,We),m(We,qe),Me=!0,ye||(J=pe(t,"click",lt(i[9])),ye=!0)},p(Ce,[fe]){(!Me||fe&1)&&u!==(u=Ce[0].version+"")&&Ge(f,u),Ce[0].id?ke?ke.p(Ce,fe):(ke=Jf(Ce),ke.c(),ke.m(o,h)):ke&&(ke.d(1),ke=null),Ce[0].provider?Fe?Fe.p(Ce,fe):(Fe=xf(Ce),Fe.c(),Fe.m(o,y)):Fe&&(Fe.d(1),Fe=null),Ce[0].viewport?Ye?Ye.p(Ce,fe):(Ye=$f(Ce),Ye.c(),Ye.m(o,b)):Ye&&(Ye.d(1),Ye=null),Ce[0].videoSize?Je?Je.p(Ce,fe):(Je=e1(Ce),Je.c(),Je.m(o,P)):Je&&(Je.d(1),Je=null),Ce[0].cdn?he?he.p(Ce,fe):(he=t1(Ce),he.c(),he.m(o,C)):he&&(he.d(1),he=null),Ce[0].volume?Ve?Ve.p(Ce,fe):(Ve=i1(Ce),Ve.c(),Ve.m(o,A)):Ve&&(Ve.d(1),Ve=null),Ce[0].buffer?ze?ze.p(Ce,fe):(ze=n1(Ce),ze.c(),ze.m(o,S)):ze&&(ze.d(1),ze=null),Ce[0].currentVideoSegmentLength||Ce[0].currentAudioSegmentLength?tt?tt.p(Ce,fe):(tt=o1(Ce),tt.c(),tt.m(o,v)):tt&&(tt.d(1),tt=null),(!Me||fe&4)&&Ge(re,Ce[2]),(!Me||fe&2)&&Ge(I,Ce[1]),Ce[0].speed?le?(le.p(Ce,fe),fe&1&&d(le,1)):(le=l1(Ce),le.c(),d(le,1),le.m(o,$)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),Ce[0].bitrate?oe?(oe.p(Ce,fe),fe&1&&d(oe,1)):(oe=r1(Ce),oe.c(),d(oe,1),oe.m(o,x)):oe&&(ue(),_(oe,1,1,()=>{oe=null}),ce());let Ee={};fe&16&&(Ee.values=Ce[4]),Q.$set(Ee),(!Me||fe&8)&&Ge(qe,Ce[3]),(!Me||fe&128)&&O(e,"container-mobile",Ce[7])},i(Ce){Me||(d(le),d(oe),d(Q.$$.fragment,Ce),Me=!0)},o(Ce){_(le),_(oe),_(Q.$$.fragment,Ce),Me=!1},d(Ce){Ce&&k(e),ke&&ke.d(),Fe&&Fe.d(),Ye&&Ye.d(),Je&&Je.d(),he&&he.d(),Ve&&Ve.d(),ze&&ze.d(),tt&&tt.d(),le&&le.d(),oe&&oe.d(),B(Q),ye=!1,J()}}}var s1=({value:i})=>i,a1=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function K_(i,e,t){let n,o=$e(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;F(i,l,v=>t(7,n=v));let a=()=>{Gs.safeStorage.remove(bl),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,h=0,y=new el(60),b=new el(60),P=new el(60),C=[],A=[],S=[];return St(()=>{Gs.safeStorage.set(bl,"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),E;return u&&(E=window.setInterval(()=>{if(u){t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames);let G=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=G-f),t(1,f=G),y.push(h),s.speed&&b.push(s.speed),s.bitrate&&P.push(s.bitrate),t(4,C=y.getValuesFromBottom()),t(5,A=b.getValuesFromBottom()),t(6,S=P.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(v),E&&clearInterval(E)}}),[s,f,p,h,C,A,S,n,l,a]}var js=class extends z{constructor(e){super(),q(this,e,K_,U_,H,{},q_)}},dr=js;function W_(i){we(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 G_(i){let e,t,n;return{c(){e=T("div"),c(e,"class","close svelte-1ome55p")},m(o,r){w(o,e,r),t||(n=pe(e,"click",lt(i[0])),t=!0)},p:me,i:me,o:me,d(o){o&&k(e),t=!1,n()}}}function j_(i){function e(t){gn.call(this,i,t)}return[e]}var Qs=class extends z{constructor(e){super(),q(this,e,j_,G_,H,{},W_)}},u1=Qs;var c1=require("@vkontakte/videoplayer-shared");function Q_(i){we(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 Y_(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=N(),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){w(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&&k(e),i[2](null)}}}var Z_=5e3;function X_(i,e,t){let{onTimerEnded:n=c1.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)/Z_;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 Ys=class extends z{constructor(e){super(),q(this,e,X_,Y_,H,{onTimerEnded:1},Q_)}},f1=Ys;function J_(i){we(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 d1(i){let e,t;return e=new f1({props:{onTimerEnded:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function x_(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v,E,G;a=new u1({}),a.$on("click",i[4]);let W=i[3]&&d1(i);return{c(){e=T("div"),t=N(),n=T("div"),o=T("div"),r=T("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=N(),R(a.$$.fragment),s=N(),u=T("div"),f=T("div"),p=T("div"),h=T("div"),y=N(),W&&W.c(),P=N(),C=T("div"),A=T("div"),S=Be(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",b=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(A,"class","title svelte-kisfwc"),c(C,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(K,re){w(K,e,re),w(K,t,re),w(K,n,re),m(n,o),m(o,r),m(o,l),L(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,y),W&&W.m(p,null),m(u,P),m(u,C),m(C,A),m(A,S),v=!0,E||(G=pe(u,"click",function(){bi(i[2])&&i[2].apply(this,arguments)}),E=!0)},p(K,[re]){i=K,i[3]?W?(W.p(i,re),re&8&&d(W,1)):(W=d1(i),W.c(),d(W,1),W.m(p,null)):W&&(ue(),_(W,1,1,()=>{W=null}),ce()),(!v||re&2&&b!==(b=`background-image: url('${i[1]}')`))&&c(p,"style",b),(!v||re&1)&&Ge(S,i[0])},i(K){v||(d(a.$$.fragment,K),d(W),v=!0)},o(K){_(a.$$.fragment,K),_(W),v=!1},d(K){K&&(k(e),k(t),k(n)),B(a),W&&W.d(),E=!1,G()}}}function $_(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 Zs=class extends z{constructor(e){super(),q(this,e,$_,x_,H,{title:0,thumb:1,playNextVideo:2},J_)}},m1=Zs;var uo=require("@vkontakte/videoplayer-core"),p1=require("@vkontakte/videoplayer-shared"),un=require("@vkontakte/videoplayer-statistics");var Xs=(i,e)=>Math.min(+(i+e).toFixed(2),1),Js=(i,e)=>Math.max(+(i-e).toFixed(2),0),mr=(i,e,t)=>{let n=Xs(e,t);e<1&&i.actions.internal.setVolume(n)},pr=(i,e,t)=>{let n=Js(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 th(i){we(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function ih(i){let e,t,n,o,r,l=i[26].default,a=Se(l,i,i[25],null);return{c(){e=T("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=U("aria_label_video_player"))},m(s,u){w(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)&&Ie(a,l,s,s[25],n?Pe(l,s[25],u,null):Te(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,et(r)}}}function nh(i,e,t){let n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,{$$slots:S={},$$scope:v}=e,{isAds:E}=e,{hideContextMenu:G}=e,{toggleFullscreen:W}=e,{showHotKeyHelpers:K}=e,{showKeyMap:re}=e,{fakePlayButtonHandler:te}=e,I=$e(),Y=Vt(),X=I.getLogger().createComponentLog("KeyboardControls component"),$=I.state.playbackState$;F(i,$,de=>t(31,o=de));let x=I.ads.playbackState;F(i,x,de=>t(30,n=de));let D=I.state.positionExact$;F(i,D,de=>t(41,b=de));let j=I.state.duration$;F(i,j,de=>t(40,y=de));let V=I.state.volume$;F(i,V,de=>t(44,A=de));let Q=I.ui.controls.disabledControls$;F(i,Q,de=>t(39,h=de));let De=I.state.muted$;F(i,De,de=>t(34,a=de));let We=I.state.currentSubtitle$;F(i,We,de=>t(33,l=de));let qe=I.state.currentPlaybackRate$;F(i,qe,de=>t(42,P=de));let Ze=I.state.availablePlaybackRates$;F(i,Ze,de=>t(43,C=de));let Me=I.ui.contextMenu.openedByHotKey$,ye=I.ui.contextMenu.lastActiveElem$,J=I.ui.contextMenu.visible$,ke=I.ui.contextMenu.position$,Fe=I.state.isEnded$;F(i,Fe,de=>t(36,u=de));let Ye=I.ui.overlayContainer$;F(i,Ye,de=>t(32,r=de));let Je=I.callbacks?.onAudioDoesNotExistHint,he=I.callbacks?.onAudioDisabledHint,Ve=I.state.isAudioAvailable$;F(i,Ve,de=>t(35,s=de));let ze=I.state.isAudioDisabled,tt=I.state.isInteractiveTime$;F(i,tt,de=>t(38,p=de));let{showInteractiveTimeIndicatorTooltip$:le}=Sn();F(i,le,de=>t(37,f=de));let oe=0,Ce=!0,fe,Ee=()=>fe?.focus(),je=de=>(de!==Ce&&(Ce=de,oe=0),oe+=1,(Y.controls.seekStepKeyboard+Y.controls.seekStepKeyboard*oe)/1e3),rt=de=>{let ct=de.target,It=ct?.getAttribute("role")?.includes("menuitem"),_t=ct.classList.contains("btn"),yt=de.code;if(_t&&yt==="Space")return;let Lt=Xc.has(yt);if(It&&Lt)return;let Ue=!Zc.has(yt);if(de.ctrlKey&&Ue||de.altKey&&Ue||de.metaKey)return;let Qt=It&&yt==="Escape";Jc.has(yt)||Qt||G();let ve=o===uo.PlaybackState.PLAYING||o===uo.PlaybackState.PAUSED,bt=E&&(n==="paused"||n==="playing"),Tt=!bt&&!h.has("TIMELINE");if(ve||bt)switch(X({message:`key down, code: ${yt}`}),yt){case"KeyJ":case"ArrowLeft":{if(!Tt)break;if(de.ctrlKey||de.altKey){let Xe=I.actions.internal.getPrevEpisode();I.actions.internal.seekToPrevEpisode(Xe),Xe&&K({type:"EPISODE_PREV",text:Xe.text}),de.preventDefault()}else{let Xe=de.shiftKey?je(!1):Y.controls.seekStepKeyboard/1e3,at=Math.max(b-Xe,0);b>0&&(I.actions.internal.seekTime(at,un.SeekAction.DOUBLE_TAP),K({type:"BACKWARD_SEEK",text:Xe.toString()}),de.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Tt)break;if(de.ctrlKey||de.altKey){let Xe=I.actions.internal.getNextEpisode();I.actions.internal.seekToNextEpisode(Xe),Xe&&K({type:"EPISODE_NEXT",text:Xe.text}),de.preventDefault()}else{let Xe=de.shiftKey?je(!0):Y.controls.seekStepKeyboard/1e3,at=Math.min(b+Xe,y);Math.round(b)<Math.round(y)&&(I.actions.internal.seekTime(at,un.SeekAction.DOUBLE_TAP),K({type:"FORWARD_SEEK",text:Xe.toString()}),de.preventDefault())}break}case"ArrowUp":{if(ao({isAudioDisabled:ze,audioDisabledHintCallback:he,isAudioAvailable:s,audioIsNotExistHintCallback:Je})){let Xe=A,at=Y.controls.volumeStepKeyboard,kt=Xe<=1;if(mr(I,Xe,at),kt){let Et=Math.round(Xs(Xe,at)*100).toString();K({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Et}})}}de.preventDefault();break}case"ArrowDown":{if(ao({isAudioDisabled:ze,audioDisabledHintCallback:he,isAudioAvailable:s,audioIsNotExistHintCallback:Je})){let Xe=A,at=Y.controls.volumeStepKeyboard,kt=Xe>=0;if(pr(I,Xe,at),kt){let Et=Math.round(Js(Xe,at)*100).toString();K({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Et}})}}de.preventDefault();break}case"Comma":{if(de.shiftKey){I.actions.internal.decrementPlaybackRate();let Xe=C.find(at=>at.value===P);K({type:"RATE_DOWN",text:Xe?.displayValue}),de.preventDefault()}else{if(bt||o!==uo.PlaybackState.PAUSED)break;let Xe=Math.max(b-Y.controls.seekStepFrame/1e3,0);b>0&&(K({type:"BACKWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Xe,un.SeekAction.DOUBLE_TAP),de.preventDefault())}break}case"Period":{if(de.shiftKey){I.actions.internal.incrementPlaybackRate();let Xe=C.find(at=>at.value===P);K({type:"RATE_UP",text:Xe?.displayValue}),de.preventDefault()}else{if(bt||o!==uo.PlaybackState.PAUSED)break;let Xe=Math.min(b+Y.controls.seekStepFrame/1e3,y);b<y&&(K({type:"FORWARD_SEEK"}),I.actions.internal.clearDelayedBufferingCheckTimeout(),I.actions.internal.seekTime(Xe,un.SeekAction.DOUBLE_TAP),de.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&le.set(!1),te)te();else{I.actions.internal.togglePlay();let Xe="PLAY";o===uo.PlaybackState.PAUSED?Xe="PAUSE":u&&(Xe="REPLAY"),K({type:Xe})}de.preventDefault();break;case"KeyM":{ao({isAudioDisabled:ze,audioDisabledHintCallback:he,isAudioAvailable:s,audioIsNotExistHintCallback:Je})&&(K({type:a?"VOLUME":"MUTE"}),I.actions.internal.toggleMuted()),de.preventDefault();break}case"KeyF":W(),de.preventDefault();break;case"KeyC":I.actions.internal.toggleSubtitle(),l.value!=="off"?K({type:"SUBTITLES_ON",text:l?.displayValue}):K({type:"SUBTITLES_OFF"}),de.preventDefault();break;case"KeyI":I.actions.internal.togglePictureInPicture(),de.preventDefault();break;case"Digit1":case"Numpad1":if(de.shiftKey){let Xe=Wf(r);ke.set(Xe),ye.set(ct),Me.set(!0),J.set(!0),de.preventDefault();break}K(),I.actions.internal.seekToPercent(.1,un.SeekAction.DOUBLE_TAP),de.preventDefault();break;case"Digit2":case"Numpad2":K(),I.actions.internal.seekToPercent(.2,un.SeekAction.DOUBLE_TAP),de.preventDefault();break;case"Digit3":case"Numpad3":K(),I.actions.internal.seekToPercent(.3,un.SeekAction.DOUBLE_TAP),de.preventDefault();break;case"Digit4":case"Numpad4":K(),I.actions.internal.seekToPercent(.4,un.SeekAction.DOUBLE_TAP),de.preventDefault();break;case"Digit5":case"Numpad5":K(),I.actions.internal.seekToPercent(.5,un.SeekAction.DOUBLE_TAP),de.preventDefault();break;case"Digit6":case"Numpad6":K(),I.actions.internal.seekToPercent(.6,un.SeekAction.DOUBLE_TAP),de.preventDefault();break;case"Digit7":case"Numpad7":K(),I.actions.internal.seekToPercent(.7,un.SeekAction.DOUBLE_TAP),de.preventDefault();break;case"Digit8":case"Numpad8":K(),I.actions.internal.seekToPercent(.8,un.SeekAction.DOUBLE_TAP),de.preventDefault();break;case"Digit9":case"Numpad9":K(),I.actions.internal.seekToPercent(.9,un.SeekAction.DOUBLE_TAP),de.preventDefault();break;case"Digit0":case"Numpad0":K(),I.actions.internal.seekToPercent(0,un.SeekAction.DOUBLE_TAP),de.preventDefault();break;case"Slash":{de.shiftKey&&Y.features.hotKeyMapModal&&(re(),de.preventDefault());break}case"ShiftLeft":case"ShiftRight":de.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,p1.checkNever)(yt);break}},dt=de=>{let ct=de.code;if(de.ctrlKey||de.altKey||de.metaKey)return;let It=o===uo.PlaybackState.PLAYING||o===uo.PlaybackState.PAUSED,_t=E&&(n==="paused"||n==="playing");if(It||_t)switch(ct){case"ShiftLeft":case"ShiftRight":oe=0;break}};function st(de){_e[de?"unshift":"push"](()=>{fe=de,t(0,fe)})}return i.$$set=de=>{"isAds"in de&&t(18,E=de.isAds),"hideContextMenu"in de&&t(19,G=de.hideContextMenu),"toggleFullscreen"in de&&t(20,W=de.toggleFullscreen),"showHotKeyHelpers"in de&&t(21,K=de.showHotKeyHelpers),"showKeyMap"in de&&t(22,re=de.showKeyMap),"fakePlayButtonHandler"in de&&t(23,te=de.fakePlayButtonHandler),"$$scope"in de&&t(25,v=de.$$scope)},[fe,$,x,D,j,V,Q,De,We,qe,Ze,Fe,Ye,Ve,tt,le,rt,dt,E,G,W,K,re,te,Ee,v,S,st]}var xs=class extends z{constructor(e){super(),q(this,e,nh,ih,H,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},th,[-1,-1])}get focus(){return this.$$.ctx[24]}},_1=xs;function oh(i){we(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 lh(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',c(e,"class","container svelte-8nkw5s")},m(t,n){w(t,e,n)},p:me,i:me,o:me,d(t){t&&k(e)}}}var $s=class extends z{constructor(e){super(),q(this,e,null,lh,H,{},oh)}},_r=$s;function rh(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P=i[2].default,C=Se(P,i,i[1],null),A=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],S={};for(let v=0;v<A.length;v+=1)S=ne(S,A[v]);return{c(){e=M("svg"),C&&C.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"),y=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(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2422_111980"),c(y,"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,S)},m(v,E){w(v,e,E),C&&C.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,y),b=!0},p(v,[E]){C&&C.p&&(!b||E&2)&&Ie(C,P,v,v[1],b?Pe(P,v[1],E,null):Te(v[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":"cross-icon"},{role:"img"},E&1&&v[0]]))},i(v){b||(d(C,v),b=!0)},o(v){_(C,v),b=!1},d(v){v&&k(e),C&&C.d(v)}}}function sh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ea=class extends z{constructor(e){super(),q(this,e,sh,rh,H,{})}},h1=ea;var Un=require("@vkontakte/videoplayer-shared");function ah(i){we(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 uh(i){let e,t,n,o,r,l,a,s,u,f,p,h,y=i[14].default,b=Se(y,i,i[13],null);return{c(){e=T("button"),b&&b.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(P,C){w(P,e,C),b&&b.m(e,null),i[16](e),f=!0,p||(h=[pe(e,"pointerdown",lt(Ct(i[15]))),pe(e,"click",lt(Ct(function(){bi(i[10]===Un.noop?null:i[10])&&(i[10]===Un.noop?null:i[10]).apply(this,arguments)}))),pe(e,"focus",Ct(function(){bi(i[11]===Un.noop?null:i[11])&&(i[11]===Un.noop?null:i[11]).apply(this,arguments)})),pe(e,"blur",Ct(function(){bi(i[12]===Un.noop?null:i[12])&&(i[12]===Un.noop?null:i[12]).apply(this,arguments)}))],p=!0)},p(P,[C]){i=P,b&&b.p&&(!f||C&8192)&&Ie(b,y,i,i[13],f?Pe(y,i[13],C,null):Te(i[13]),null),(!f||C&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||C&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||C&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||C&32&&r!==(r=i[5]??null))&&c(e,"aria-hidden",r),(!f||C&64&&l!==(l=i[6]??null))&&c(e,"aria-label",l),(!f||C&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||C&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||C&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||C&512)&&c(e,"tabindex",i[9])},i(P){f||(d(b,P),f=!0)},o(P){_(b,P),f=!1},d(P){P&&k(e),b&&b.d(P),i[16](null),p=!1,et(h)}}}function ch(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:y=void 0}=e,{tabIndex:b=0}=e,{click:P=Un.noop}=e,{focus:C=Un.noop}=e,{blur:A=Un.noop}=e;function S(E){gn.call(this,i,E)}function v(E){_e[E?"unshift":"push"](()=>{p=E,t(0,p)})}return i.$$set=E=>{"className"in E&&t(1,r=E.className),"style"in E&&t(2,l=E.style),"disabled"in E&&t(3,a=E.disabled),"testId"in E&&t(4,s=E.testId),"ariaHidden"in E&&t(5,u=E.ariaHidden),"ariaLabel"in E&&t(6,f=E.ariaLabel),"ref"in E&&t(0,p=E.ref),"ariaKeyShortCut"in E&&t(7,h=E.ariaKeyShortCut),"ariaExpanded"in E&&t(8,y=E.ariaExpanded),"tabIndex"in E&&t(9,b=E.tabIndex),"click"in E&&t(10,P=E.click),"focus"in E&&t(11,C=E.focus),"blur"in E&&t(12,A=E.blur),"$$scope"in E&&t(13,o=E.$$scope)},[p,r,l,a,s,u,f,h,y,b,P,C,A,o,n,S,v]}var ta=class extends z{constructor(e){super(),q(this,e,ch,uh,H,{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},ah)}},mt=ta;function fh(i){we(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 g1(i){let e,t,n,o,r,l=i[2]&&b1(i);return{c(){e=T("div"),t=T("h3"),n=Be(i[3]),o=N(),l&&l.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){w(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)&&Ge(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=b1(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&&k(e),l&&l.d()}}}function b1(i){let e,t;return e=new mt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:U("hotkey_map_modal_close_btn_text"),$$slots:{default:[dh]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function dh(i){let e,t;return e=new h1({}),{c(){R(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){B(e,n)}}}function mh(i){let e,t,n,o,r,l,a=i[1]&&g1(i),s=i[4].default,u=Se(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=N(),o=T("div"),r=T("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){w(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=g1(f),a.c(),d(a,1),a.m(t,n)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),u&&u.p&&(!l||p&32)&&Ie(u,s,f,f[5],l?Pe(s,f[5],p,null):Te(f[5]),null)},i(f){l||(d(a),d(u,f),l=!0)},o(f){_(a),_(u,f),l=!1},d(f){f&&k(e),a&&a.d(),u&&u.d(f)}}}function ph(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 ia=class extends z{constructor(e){super(),q(this,e,ph,mh,H,{onClose:0,showHeader:1,showCloseCross:2,title:3},fh)}},v1=ia;var _h=new Set(["BR"]),na=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;_h.has(r)||o.parentElement?.removeChild(o)}return e.innerHTML};function hh(i){we(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 y1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function k1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function w1(i){let e,t,n=na(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=N(),r=T("span"),a=Be(l),s=N(),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){w(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=na(u[9])+"")&&(t.innerHTML=n),f&1&&l!==(l=u[10]+"")&&Ge(a,l)},d(u){u&&k(e)}}}function C1(i){let e,t,n=i[5]+"",o,r,l,a,s=ht(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=w1(k1(i,s,f));return{c(){e=T("div"),t=T("h5"),o=Be(n),r=N(),l=T("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=N(),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){w(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]+"")&&Ge(o,n),p&1){s=ht(f[6]);let h;for(h=0;h<s.length;h+=1){let y=k1(f,s,h);u[h]?u[h].p(y,p):(u[h]=w1(y),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&&k(e),Hi(u,f)}}}function gh(i){let e,t=ht(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=C1(y1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,r){w(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=ht(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=y1(o,t,l);n[l]?n[l].p(a,r):(n[l]=C1(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Hi(n,o)}}}function bh(i){let e,t;return e=new v1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[gh]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function vh(i,e,t){let n,o=$e(),{data:r,show:l}=o.ui.modals.hotKeyMap;return F(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var oa=class extends z{constructor(e){super(),q(this,e,vh,bh,H,{},hh)}},S1=oa;var Zr=require("@vkontakte/videoplayer-shared");var Ro=require("@vkontakte/videoplayer-core");var fd=require("@vkontakte/videoplayer-core");var lw=require("@vkontakte/videoplayer-shared");function yh(i){we(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 kh(i){let e,t,n=i[1].default,o=Se(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(r,l){w(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Ie(o,n,r,r[0],t?Pe(n,r[0],l,null):Te(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r)}}}function wh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var la=class extends z{constructor(e){super(),q(this,e,wh,kh,H,{},yh)}},P1=la;var tl=require("@vkontakte/videoplayer-core");function Ch(i){let e,t,n,o,r=i[2].default,l=Se(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=ne(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){w(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)&&Ie(l,r,u,u[1],o?Pe(r,u[1],f,null):Te(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&&k(e),l&&l.d(u)}}}function Sh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ra=class extends z{constructor(e){super(),q(this,e,Sh,Ch,H,{})}},I1=ra;function Ph(i){let e,t,n,o,r=i[2].default,l=Se(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=ne(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){w(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)&&Ie(l,r,u,u[1],o?Pe(r,u[1],f,null):Te(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&&k(e),l&&l.d(u)}}}function Ih(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var sa=class extends z{constructor(e){super(),q(this,e,Ih,Ph,H,{})}},T1=sa;function Th(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function Eh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var aa=class extends z{constructor(e){super(),q(this,e,Eh,Th,H,{})}},E1=aa;function Ah(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function Mh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ua=class extends z{constructor(e){super(),q(this,e,Mh,Ah,H,{})}},hr=ua;function Vh(i){let e,t,n,o,r=i[2].default,l=Se(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=ne(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){w(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)&&Ie(l,r,u,u[1],o?Pe(r,u[1],f,null):Te(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&&k(e),l&&l.d(u)}}}function Lh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ca=class extends z{constructor(e){super(),q(this,e,Lh,Vh,H,{})}},gr=ca;var co=i=>{switch(i){case tl.VideoQuality.Q_720P:return E1;case tl.VideoQuality.Q_1080P:return hr;case tl.VideoQuality.Q_1440P:return gr;case tl.VideoQuality.Q_2160P:return I1;case tl.VideoQuality.Q_4320P:return T1}};function Bh(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function Rh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var fa=class extends z{constructor(e){super(),q(this,e,Rh,Bh,H,{})}},A1=fa;function Dh(i){let e,t,n,o,r=i[2].default,l=Se(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=ne(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){w(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)&&Ie(l,r,u,u[1],o?Pe(r,u[1],f,null):Te(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&&k(e),l&&l.d(u)}}}function Nh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var da=class extends z{constructor(e){super(),q(this,e,Nh,Dh,H,{})}},M1=da;function Oh(i){we(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 Fh(i){let e,t,n,o,r=i[1]&&V1(i);return n=new M1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=N(),R(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),O(e,"triple",i[2])},m(l,a){w(l,e,a),r&&r.m(e,null),m(e,t),L(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=V1(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)&&O(e,"triple",l[2])},i(l){o||(d(r),d(n.$$.fragment,l),o=!0)},o(l){_(r),_(n.$$.fragment,l),o=!1},d(l){l&&k(e),r&&r.d(),B(n)}}}function Hh(i){let e,t;return e=new A1({}),{c(){R(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){B(e,n)}}}function V1(i){let e,t;return e=new P1({props:{$$slots:{default:[zh]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function zh(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=dn(o,r(i))),{c(){e&&R(e.$$.fragment),t=nt()},m(l,a){e&&L(e,l,a),w(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,()=>{B(s,1)}),ce()}o?(e=dn(o,r(l)),R(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&_(e.$$.fragment,l),n=!1},d(l){l&&k(t),e&&B(e,l)}}}function qh(i){let e,t,n,o,r=[Hh,Fh],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=nt()},m(s,u){l[e].m(s,u),w(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&&k(n),l[e].d(s)}}}function Uh(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&&[hr,gr].includes(n))},[o,n,l,r]}var ma=class extends z{constructor(e){super(),q(this,e,Uh,qh,H,{isMobile:0,currentQuality:3},Oh)}},br=ma;function Kh(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function Wh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var pa=class extends z{constructor(e){super(),q(this,e,Wh,Kh,H,{})}},vr=pa;function Gh(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function jh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var _a=class extends z{constructor(e){super(),q(this,e,jh,Gh,H,{})}},L1=_a;function Qh(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function Yh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ha=class extends z{constructor(e){super(),q(this,e,Yh,Qh,H,{})}},B1=ha;function Zh(i){let e,t,n,o,r,l=i[2].default,a=Se(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=ne(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){w(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)&&Ie(a,l,f,f[1],r?Pe(l,f[1],p,null):Te(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&&k(e),a&&a.d(f)}}}function Xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ga=class extends z{constructor(e){super(),q(this,e,Xh,Zh,H,{})}},R1=ga;function Jh(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ba=class extends z{constructor(e){super(),q(this,e,xh,Jh,H,{})}},D1=ba;function $h(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var va=class extends z{constructor(e){super(),q(this,e,eg,$h,H,{})}},N1=va;function tg(i){let e,t;return e=new N1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function ig(i){let e,t;return e=new D1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function ng(i){let e,t,n,o,r=[ig,tg],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=nt()},m(s,u){l[e].m(s,u),w(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&&k(n),l[e].d(s)}}}function og(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 ya=class extends z{constructor(e){super(),q(this,e,og,ng,H,{direction:3})}},Kn=ya;function lg(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function rg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ka=class extends z{constructor(e){super(),q(this,e,rg,lg,H,{})}},O1=ka;function sg(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function ag(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var wa=class extends z{constructor(e){super(),q(this,e,ag,sg,H,{})}},il=wa;function ug(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ca=class extends z{constructor(e){super(),q(this,e,cg,ug,H,{})}},F1=Ca;function fg(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Sa=class extends z{constructor(e){super(),q(this,e,dg,fg,H,{})}},H1=Sa;function mg(i){we(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 z1(i,e,t){let n=i.slice();return n[142]=e[t],n}function q1(i,e,t){let n=i.slice();return n[145]=e[t],n}function U1(i,e,t){let n=i.slice();return n[148]=e[t],n}function K1(i){let e,t,n,o,r,l,a,s,u,f,p,h,y=i[34]&&W1(i),b=i[25]&&G1(i),P=i[24]&&Q1(i),C=i[23]&&Y1(i),A=i[22]&&Z1(i),S=i[21]&&X1(i),v=i[34]&&J1(i);return{c(){e=T("div"),y&&y.c(),t=N(),n=T("ul"),b&&b.c(),o=N(),P&&P.c(),r=N(),C&&C.c(),l=N(),A&&A.c(),a=N(),S&&S.c(),s=N(),v&&v.c(),c(n,"class","items svelte-5r0p3"),c(n,"role","menu"),c(n,"style",u=i[73]()),O(n,"items-mobile",i[34]),c(e,"class","menu svelte-5r0p3"),O(e,"menu-desktop",!i[34]),O(e,"menu-mobile",i[34]),O(e,"hidden",!i[11])},m(E,G){w(E,e,G),y&&y.m(e,null),m(e,t),m(e,n),b&&b.m(n,null),m(n,o),P&&P.m(n,null),m(n,r),C&&C.m(n,null),m(n,l),A&&A.m(n,null),m(n,a),S&&S.m(n,null),m(n,s),v&&v.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(E,G){E[34]?y?y.p(E,G):(y=W1(E),y.c(),y.m(e,t)):y&&(y.d(1),y=null),E[25]?b?(b.p(E,G),G[0]&33554432&&d(b,1)):(b=G1(E),b.c(),d(b,1),b.m(n,o)):b&&(ue(),_(b,1,1,()=>{b=null}),ce()),E[24]?P?(P.p(E,G),G[0]&16777216&&d(P,1)):(P=Q1(E),P.c(),d(P,1),P.m(n,r)):P&&(ue(),_(P,1,1,()=>{P=null}),ce()),E[23]?C?(C.p(E,G),G[0]&8388608&&d(C,1)):(C=Y1(E),C.c(),d(C,1),C.m(n,l)):C&&(ue(),_(C,1,1,()=>{C=null}),ce()),E[22]?A?(A.p(E,G),G[0]&4194304&&d(A,1)):(A=Z1(E),A.c(),d(A,1),A.m(n,a)):A&&(ue(),_(A,1,1,()=>{A=null}),ce()),E[21]?S?(S.p(E,G),G[0]&2097152&&d(S,1)):(S=X1(E),S.c(),d(S,1),S.m(n,s)):S&&(ue(),_(S,1,1,()=>{S=null}),ce()),E[34]?v?(v.p(E,G),G[1]&8&&d(v,1)):(v=J1(E),v.c(),d(v,1),v.m(n,null)):v&&(ue(),_(v,1,1,()=>{v=null}),ce()),(!f||G[1]&8)&&O(n,"items-mobile",E[34]),(!f||G[1]&8)&&O(e,"menu-desktop",!E[34]),(!f||G[1]&8)&&O(e,"menu-mobile",E[34]),(!f||G[0]&2048)&&O(e,"hidden",!E[11])},i(E){f||(d(b),d(P),d(C),d(A),d(S),d(v),f=!0)},o(E){_(b),_(P),_(C),_(A),_(S),_(v),f=!1},d(E){E&&k(e),y&&y.d(),b&&b.d(),P&&P.d(),C&&C.d(),A&&A.d(),S&&S.d(),v&&v.d(),i[112](null),p=!1,et(h)}}}function W1(i){let e,t,n,o,r,l,a,s;return{c(){e=T("div"),t=T("div"),t.textContent=`${U("submenu_settings")}`,n=N(),o=T("div"),r=N(),l=T("div"),c(o,"class","close svelte-5r0p3"),c(e,"class","item menu-header svelte-5r0p3"),O(e,"item-mobile",i[34]),c(l,"class","menu-divider svelte-5r0p3")},m(u,f){w(u,e,f),m(e,t),m(e,n),m(e,o),w(u,r,f),w(u,l,f),a||(s=pe(o,"click",lt(i[57])),a=!0)},p(u,f){f[1]&8&&O(e,"item-mobile",u[34])},d(u){u&&(k(e),k(r),k(l)),a=!1,s()}}}function G1(i){let e,t,n,o,r,l,a,s,u,f,p,h,y;n=new br({});let b=i[33]&&!i[34]&&j1(i);return{c(){e=T("li"),t=T("div"),R(n.$$.fragment),o=N(),r=T("div"),r.textContent=`${U("menu_quality")}`,l=N(),a=T("div"),s=Be(i[16]),u=N(),b&&b.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=U("aria_label_menu_quality",{actual:i[27]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[34])},m(P,C){w(P,e,C),m(e,t),L(n,t,null),m(e,o),m(e,r),m(e,l),m(e,a),m(a,s),m(a,u),b&&b.m(a,null),i[108](e),p=!0,h||(y=[pe(e,"click",lt(i[58])),pe(e,"keydown",i[79])],h=!0)},p(P,C){(!p||C[0]&65536)&&Ge(s,P[16]),P[33]&&!P[34]?b?(b.p(P,C),C[1]&12&&d(b,1)):(b=j1(P),b.c(),d(b,1),b.m(a,null)):b&&(ue(),_(b,1,1,()=>{b=null}),ce()),(!p||C[0]&134217728&&f!==(f=U("aria_label_menu_quality",{actual:P[27]})))&&c(e,"aria-label",f),(!p||C[1]&8)&&O(e,"item-mobile",P[34])},i(P){p||(d(n.$$.fragment,P),d(b),p=!0)},o(P){_(n.$$.fragment,P),_(b),p=!1},d(P){P&&k(e),B(n),b&&b.d(),i[108](null),h=!1,et(y)}}}function j1(i){let e,t,n;var o=i[33];function r(l){return{}}return o&&(t=dn(o,r(i))),{c(){e=T("div"),t&&R(t.$$.fragment),c(e,"class","menu-valueIcon svelte-5r0p3")},m(l,a){w(l,e,a),t&&L(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,()=>{B(s,1)}),ce()}o?(t=dn(o,r(l)),R(t.$$.fragment),d(t.$$.fragment,1),L(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&B(t)}}}function Q1(i){let e,t,n,o,r,l,a,s,u,f,p,h,y;return n=new R1({}),{c(){e=T("li"),t=T("div"),R(n.$$.fragment),o=N(),r=T("div"),r.textContent=`${U("menu_playback_rate")}`,l=N(),a=T("div"),s=Be(i[9]),u=Be("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=U("aria_label_menu_rate",{actual:i[28]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[34])},m(b,P){w(b,e,P),m(e,t),L(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||(y=[pe(e,"click",lt(Ct(i[62]))),pe(e,"keydown",i[82])],h=!0)},p(b,P){(!p||P[0]&512)&&Ge(s,b[9]),(!p||P[0]&268435456&&f!==(f=U("aria_label_menu_rate",{actual:b[28]})))&&c(e,"aria-label",f),(!p||P[1]&8)&&O(e,"item-mobile",b[34])},i(b){p||(d(n.$$.fragment,b),p=!0)},o(b){_(n.$$.fragment,b),p=!1},d(b){b&&k(e),B(n),i[109](null),h=!1,et(y)}}}function Y1(i){let e,t,n,o,r,l,a,s=i[35].displayValue+"",u,f,p,h,y;return n=new vr({}),{c(){e=T("li"),t=T("div"),R(n.$$.fragment),o=N(),r=T("div"),r.textContent=`${U("subtitles_caption")}`,l=N(),a=T("div"),u=Be(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=U("aria_label_menu_subtitle",{actual:i[35].displayValue})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[34])},m(b,P){w(b,e,P),m(e,t),L(n,t,null),m(e,o),m(e,r),m(e,l),m(e,a),m(a,u),i[110](e),p=!0,h||(y=[pe(e,"click",lt(i[64])),pe(e,"keydown",i[85])],h=!0)},p(b,P){(!p||P[1]&16)&&s!==(s=b[35].displayValue+"")&&Ge(u,s),(!p||P[1]&16&&f!==(f=U("aria_label_menu_subtitle",{actual:b[35].displayValue})))&&c(e,"aria-label",f),(!p||P[1]&8)&&O(e,"item-mobile",b[34])},i(b){p||(d(n.$$.fragment,b),p=!0)},o(b){_(n.$$.fragment,b),p=!1},d(b){b&&k(e),B(n),i[110](null),h=!1,et(y)}}}function Z1(i){let e,t,n,o,r,l,a,s,u,f,p,h;return n=new B1({}),{c(){e=T("li"),t=T("div"),R(n.$$.fragment),o=N(),r=T("div"),r.textContent=`${U("menu_traffic_saving")}`,l=N(),a=T("div"),s=Be(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=U("aria_label_menu_traffic_saving",{actual:i[26]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[34])},m(y,b){w(y,e,b),m(e,t),L(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",lt(i[59])),pe(e,"keydown",i[88])],p=!0)},p(y,b){(!f||b[0]&67108864)&&Ge(s,y[26]),(!f||b[0]&67108864&&u!==(u=U("aria_label_menu_traffic_saving",{actual:y[26]})))&&c(e,"aria-label",u),(!f||b[1]&8)&&O(e,"item-mobile",y[34])},i(y){f||(d(n.$$.fragment,y),f=!0)},o(y){_(n.$$.fragment,y),f=!1},d(y){y&&k(e),B(n),i[111](null),p=!1,et(h)}}}function X1(i){let e,t,n,o,r,l,a,s,u;return n=new L1({}),{c(){e=T("li"),t=T("div"),R(n.$$.fragment),o=N(),r=T("div"),r.textContent=`${U("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=U("aria_label_menu_download")),O(e,"item-mobile",i[34])},m(f,p){w(f,e,p),m(e,t),L(n,t,null),m(e,o),m(e,r),a=!0,s||(u=[pe(e,"click",lt(i[67])),pe(e,"keydown",i[91])],s=!0)},p(f,p){(!a||p[1]&8)&&O(e,"item-mobile",f[34])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),B(n),s=!1,et(u)}}}function J1(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S=i[37].showSupport&&pg(i);return o=new F1({}),p=new H1({}),{c(){S&&S.c(),e=N(),t=T("li"),n=T("div"),R(o.$$.fragment),r=N(),l=T("div"),l.textContent=`${U("menu_copy_debug")}`,s=N(),u=T("li"),f=T("div"),R(p.$$.fragment),h=N(),y=T("div"),y.textContent=`${U("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=U("menu_copy_debug")),c(f,"class","menu-icon-wrapper svelte-5r0p3"),c(y,"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",b=i[36]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"))},m(v,E){S&&S.m(v,E),w(v,e,E),w(v,t,E),m(t,n),L(o,n,null),m(t,r),m(t,l),w(v,s,E),w(v,u,E),m(u,f),L(p,f,null),m(u,h),m(u,y),P=!0,C||(A=[pe(t,"click",lt(i[69])),pe(t,"keydown",i[93]),pe(u,"click",lt(i[70])),pe(u,"keydown",i[94])],C=!0)},p(v,E){v[37].showSupport&&S.p(v,E),(!P||E[1]&32&&b!==(b=v[36]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable")))&&c(u,"aria-label",b)},i(v){P||(d(S),d(o.$$.fragment,v),d(p.$$.fragment,v),P=!0)},o(v){_(S),_(o.$$.fragment,v),_(p.$$.fragment,v),P=!1},d(v){v&&(k(e),k(t),k(s),k(u)),S&&S.d(v),B(o),B(p),C=!1,et(A)}}}function pg(i){let e,t,n,o,r,l,a,s,u;return n=new O1({}),{c(){e=T("li"),t=T("div"),R(n.$$.fragment),o=N(),r=T("div"),r.textContent=`${U("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=`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`)},m(f,p){w(f,e,p),m(e,t),L(n,t,null),m(e,o),m(e,r),a=!0,s||(u=[pe(e,"click",lt(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&&k(e),B(n),s=!1,et(u)}}}function x1(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b;n=new Kn({props:{direction:"left"}});let P=ht(i[8]),C=[];for(let S=0;S<P.length;S+=1)C[S]=td(U1(i,P,S));let A=S=>_(C[S],1,1,()=>{C[S]=null});return{c(){e=T("div"),t=T("div"),R(n.$$.fragment),o=N(),r=T("div"),r.textContent=`${U("submenu_quality")}`,a=N(),s=T("div"),u=N(),f=T("ul");for(let S=0;S<C.length;S+=1)C[S].c();c(t,"class","item menu-header svelte-5r0p3"),c(t,"aria-label",l=U("aria_label_submenu_back")),O(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)),O(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-5r0p3"),O(e,"menu-desktop",!i[34]),O(e,"menu-mobile",i[34])},m(S,v){w(S,e,v),m(e,t),L(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 E=0;E<C.length;E+=1)C[E]&&C[E].m(f,null);i[116](f),h=!0,y||(b=[pe(t,"click",lt(i[66])),pe(f,"keydown",i[80])],y=!0)},p(S,v){if((!h||v[1]&8)&&O(t,"item-mobile",S[34]),v[0]&256|v[1]&536870920|v[2]&524288){P=ht(S[8]);let E;for(E=0;E<P.length;E+=1){let G=U1(S,P,E);C[E]?(C[E].p(G,v),d(C[E],1)):(C[E]=td(G),C[E].c(),d(C[E],1),C[E].m(f,null))}for(ue(),E=P.length;E<C.length;E+=1)A(E);ce()}(!h||v[0]&131072&&p!==(p=S[73](S[17]?.clientHeight,!0)))&&c(f,"style",p),(!h||v[1]&8)&&O(f,"items-mobile",S[34]),(!h||v[1]&8)&&O(e,"menu-desktop",!S[34]),(!h||v[1]&8)&&O(e,"menu-mobile",S[34])},i(S){if(!h){d(n.$$.fragment,S);for(let v=0;v<P.length;v+=1)d(C[v]);h=!0}},o(S){_(n.$$.fragment,S),C=C.filter(Boolean);for(let v=0;v<C.length;v+=1)_(C[v]);h=!1},d(S){S&&k(e),B(n),i[113](null),Hi(C,S),i[116](null),y=!1,et(b)}}}function $1(i){let e,t,n;return t=new il({}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-5r0p3")},m(o,r){w(o,e,r),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&&k(e),B(t)}}}function ed(i){let e,t,n;var o=co(i[148].value);function r(l){return{}}return o&&(t=dn(o,r(i))),{c(){e=T("div"),t&&R(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-5r0p3")},m(l,a){w(l,e,a),t&&L(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,()=>{B(s,1)}),ce()}o?(t=dn(o,r(l)),R(t.$$.fragment),d(t.$$.fragment,1),L(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&B(t)}}}function td(i){let e,t,n,o=i[148].displayValue+"",r,l,a=!i[34]&&co(i[148].value),s,u,f,p,h,y,b=i[148].selected&&$1(i),P=a&&ed(i);function C(){return i[114](i[148])}function A(...S){return i[115](i[148],...S)}return{c(){e=T("li"),b&&b.c(),t=N(),n=T("div"),r=Be(o),l=N(),P&&P.c(),s=N(),c(n,"class","svelte-5r0p3"),O(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),O(e,"item-mobile",i[34])},m(S,v){w(S,e,v),b&&b.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),P&&P.m(e,null),m(e,s),p=!0,h||(y=[pe(e,"click",lt(C)),pe(e,"keydown",A)],h=!0)},p(S,v){i=S,i[148].selected?b?v[0]&256&&d(b,1):(b=$1(i),b.c(),d(b,1),b.m(e,t)):b&&(ue(),_(b,1,1,()=>{b=null}),ce()),(!p||v[0]&256)&&o!==(o=i[148].displayValue+"")&&Ge(r,o),(!p||v[1]&8)&&O(n,"quality-title-mobile",i[34]),v[0]&256|v[1]&8&&(a=!i[34]&&co(i[148].value)),a?P?(P.p(i,v),v[0]&256|v[1]&8&&d(P,1)):(P=ed(i),P.c(),d(P,1),P.m(e,s)):P&&(ue(),_(P,1,1,()=>{P=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)&&O(e,"item-mobile",i[34])},i(S){p||(d(b),d(P),p=!0)},o(S){_(b),_(P),p=!1},d(S){S&&k(e),b&&b.d(),P&&P.d(),h=!1,et(y)}}}function id(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b;n=new Kn({props:{direction:"left"}});let P=ht(i[7]),C=[];for(let S=0;S<P.length;S+=1)C[S]=od(q1(i,P,S));let A=S=>_(C[S],1,1,()=>{C[S]=null});return{c(){e=T("div"),t=T("div"),R(n.$$.fragment),o=N(),r=T("div"),r.textContent=`${U("submenu_playback_rate")}`,a=N(),s=T("div"),u=N(),f=T("ul");for(let S=0;S<C.length;S+=1)C[S].c();c(t,"class","item menu-header svelte-5r0p3"),c(t,"aria-label",l=U("aria_label_submenu_back")),O(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)),O(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-5r0p3"),O(e,"menu-desktop",!i[34]),O(e,"menu-mobile",i[34])},m(S,v){w(S,e,v),m(e,t),L(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 E=0;E<C.length;E+=1)C[E]&&C[E].m(f,null);i[120](f),h=!0,y||(b=[pe(t,"click",lt(i[66])),pe(f,"keydown",i[83])],y=!0)},p(S,v){if((!h||v[1]&8)&&O(t,"item-mobile",S[34]),v[0]&128|v[1]&8|v[2]&4194306){P=ht(S[7]);let E;for(E=0;E<P.length;E+=1){let G=q1(S,P,E);C[E]?(C[E].p(G,v),d(C[E],1)):(C[E]=od(G),C[E].c(),d(C[E],1),C[E].m(f,null))}for(ue(),E=P.length;E<C.length;E+=1)A(E);ce()}(!h||v[0]&262144&&p!==(p=S[73](S[18]?.clientHeight,!0)))&&c(f,"style",p),(!h||v[1]&8)&&O(f,"items-mobile",S[34]),(!h||v[1]&8)&&O(e,"menu-desktop",!S[34]),(!h||v[1]&8)&&O(e,"menu-mobile",S[34])},i(S){if(!h){d(n.$$.fragment,S);for(let v=0;v<P.length;v+=1)d(C[v]);h=!0}},o(S){_(n.$$.fragment,S),C=C.filter(Boolean);for(let v=0;v<C.length;v+=1)_(C[v]);h=!1},d(S){S&&k(e),B(n),i[117](null),Hi(C,S),i[120](null),y=!1,et(b)}}}function nd(i){let e,t,n;return t=new il({}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-5r0p3")},m(o,r){w(o,e,r),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&&k(e),B(t)}}}function od(i){let e,t,n,o=i[145].displayValue+"",r,l,a,s,u,f,p,h=i[145].selected&&nd(i);function y(){return i[118](i[145])}function b(...P){return i[119](i[145],...P)}return{c(){e=T("li"),h&&h.c(),t=N(),n=T("div"),r=Be(o),l=N(),c(n,"class","svelte-5r0p3"),O(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),O(e,"item-mobile",i[34])},m(P,C){w(P,e,C),h&&h.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),u=!0,f||(p=[pe(e,"click",lt(y)),pe(e,"keydown",b)],f=!0)},p(P,C){i=P,i[145].selected?h?C[0]&128&&d(h,1):(h=nd(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||C[0]&128)&&o!==(o=i[145].displayValue+"")&&Ge(r,o),(!u||C[1]&8)&&O(n,"quality-title-mobile",i[34]),(!u||C[0]&128&&a!==(a=i[145].value))&&c(e,"data-value",a),(!u||C[0]&128&&s!==(s=i[145].displayValue))&&c(e,"aria-label",s),(!u||C[1]&8)&&O(e,"item-mobile",i[34])},i(P){u||(d(h),u=!0)},o(P){_(h),u=!1},d(P){P&&k(e),h&&h.d(),f=!1,et(p)}}}function ld(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v,E,G,W,K,re,te,I,Y,X,$;n=new Kn({props:{direction:"left"}});let x=!i[5]&&rd(i),D=i[5]&&sd(i);return{c(){e=T("div"),t=T("div"),R(n.$$.fragment),o=N(),r=T("div"),r.textContent=`${U("submenu_traffic_saving")}`,a=N(),s=T("div"),u=N(),f=T("div"),p=T("ul"),h=T("li"),x&&x.c(),y=N(),b=T("div"),b.textContent=`${U("traffic_saving_disable")}`,C=N(),A=T("li"),D&&D.c(),S=N(),v=T("div"),v.textContent=`${U("traffic_saving_enable")}`,G=N(),W=T("div"),K=N(),re=T("div"),te=T("span"),te.textContent=`${U("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-5r0p3"),c(t,"aria-label",l=U("aria_label_submenu_back")),O(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-5r0p3"),c(b,"class","svelte-5r0p3"),O(b,"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",P=U("aria_label_submenu_traffic_saving_off")),O(h,"item-mobile",i[34]),c(v,"class","svelte-5r0p3"),O(v,"quality-title-mobile",i[34]),c(A,"class","item item-traffic-saving svelte-5r0p3"),c(A,"role","menuitem"),c(A,"tabindex","0"),c(A,"aria-label",E=`${U("aria_label_submenu_traffic_saving_on")}. ${U("traffic_saving_helper_text")}`),O(A,"item-mobile",i[34]),c(p,"class","items svelte-5r0p3"),c(p,"role","menu"),O(p,"items-mobile",i[34]),c(W,"class","menu-divider svelte-5r0p3"),c(te,"class","svelte-5r0p3"),c(re,"class","item item-helper-text svelte-5r0p3"),O(re,"item-mobile",i[34]),c(f,"style",I=i[73](i[19]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-5r0p3"),O(e,"menu-desktop",!i[34]),O(e,"menu-mobile",i[34])},m(j,V){w(j,e,V),m(e,t),L(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,y),m(h,b),m(p,C),m(p,A),D&&D.m(A,null),m(A,S),m(A,v),i[126](p),m(f,G),m(f,W),m(f,K),m(f,re),m(re,te),Y=!0,X||($=[pe(t,"click",lt(i[66])),pe(h,"click",lt(i[122])),pe(h,"keydown",i[123]),pe(A,"click",lt(i[124])),pe(A,"keydown",i[125]),pe(p,"keydown",i[89])],X=!0)},p(j,V){(!Y||V[1]&8)&&O(t,"item-mobile",j[34]),j[5]?x&&(ue(),_(x,1,1,()=>{x=null}),ce()):x?V[0]&32&&d(x,1):(x=rd(j),x.c(),d(x,1),x.m(h,y)),(!Y||V[1]&8)&&O(b,"quality-title-mobile",j[34]),(!Y||V[1]&8)&&O(h,"item-mobile",j[34]),j[5]?D?V[0]&32&&d(D,1):(D=sd(j),D.c(),d(D,1),D.m(A,S)):D&&(ue(),_(D,1,1,()=>{D=null}),ce()),(!Y||V[1]&8)&&O(v,"quality-title-mobile",j[34]),(!Y||V[1]&8)&&O(A,"item-mobile",j[34]),(!Y||V[1]&8)&&O(p,"items-mobile",j[34]),(!Y||V[1]&8)&&O(re,"item-mobile",j[34]),(!Y||V[0]&524288&&I!==(I=j[73](j[19]?.clientHeight,!0)))&&c(f,"style",I),(!Y||V[1]&8)&&O(e,"menu-desktop",!j[34]),(!Y||V[1]&8)&&O(e,"menu-mobile",j[34])},i(j){Y||(d(n.$$.fragment,j),d(x),d(D),Y=!0)},o(j){_(n.$$.fragment,j),_(x),_(D),Y=!1},d(j){j&&k(e),B(n),i[121](null),x&&x.d(),D&&D.d(),i[126](null),X=!1,et($)}}}function rd(i){let e,t,n;return t=new il({}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-5r0p3")},m(o,r){w(o,e,r),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&&k(e),B(t)}}}function sd(i){let e,t,n;return t=new il({}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-5r0p3")},m(o,r){w(o,e,r),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&&k(e),B(t)}}}function ad(i){let e,t,n,o,r,l,a,s,u,f,p,h;n=new Kn({props:{direction:"left"}});let y=ht(i[6]),b=[];for(let C=0;C<y.length;C+=1)b[C]=cd(z1(i,y,C));let P=C=>_(b[C],1,1,()=>{b[C]=null});return{c(){e=T("div"),t=T("div"),R(n.$$.fragment),o=N(),r=T("div"),r.textContent=`${U("subtitles_caption")}`,a=N(),s=T("ul");for(let C=0;C<b.length;C+=1)b[C].c();c(t,"class","item menu-header svelte-5r0p3"),c(t,"aria-label",l=U("aria_label_submenu_back")),O(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)),O(s,"items-mobile",i[34]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-5r0p3"),O(e,"menu-desktop",!i[34]),O(e,"menu-mobile",i[34])},m(C,A){w(C,e,A),m(e,t),L(n,t,null),m(t,o),m(t,r),i[127](t),m(e,a),m(e,s);for(let S=0;S<b.length;S+=1)b[S]&&b[S].m(s,null);i[130](s),f=!0,p||(h=[pe(t,"click",lt(i[66])),pe(s,"keydown",i[86])],p=!0)},p(C,A){if((!f||A[1]&8)&&O(t,"item-mobile",C[34]),A[0]&64|A[1]&8|A[2]&33554440){y=ht(C[6]);let S;for(S=0;S<y.length;S+=1){let v=z1(C,y,S);b[S]?(b[S].p(v,A),d(b[S],1)):(b[S]=cd(v),b[S].c(),d(b[S],1),b[S].m(s,null))}for(ue(),S=y.length;S<b.length;S+=1)P(S);ce()}(!f||A[0]&1048576&&u!==(u=C[73](C[20]?.clientHeight,!0)))&&c(s,"style",u),(!f||A[1]&8)&&O(s,"items-mobile",C[34]),(!f||A[1]&8)&&O(e,"menu-desktop",!C[34]),(!f||A[1]&8)&&O(e,"menu-mobile",C[34])},i(C){if(!f){d(n.$$.fragment,C);for(let A=0;A<y.length;A+=1)d(b[A]);f=!0}},o(C){_(n.$$.fragment,C),b=b.filter(Boolean);for(let A=0;A<b.length;A+=1)_(b[A]);f=!1},d(C){C&&k(e),B(n),i[127](null),Hi(b,C),i[130](null),p=!1,et(h)}}}function ud(i){let e,t,n;return t=new il({}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-5r0p3")},m(o,r){w(o,e,r),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&&k(e),B(t)}}}function cd(i){let e,t,n,o=i[142].displayValue+"",r,l,a,s,u,f,p,h=i[142].selected&&ud(i);function y(){return i[128](i[142])}function b(...P){return i[129](i[142],...P)}return{c(){e=T("li"),h&&h.c(),t=N(),n=T("div"),r=Be(o),l=N(),c(n,"class","svelte-5r0p3"),O(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),O(e,"item-mobile",i[34])},m(P,C){w(P,e,C),h&&h.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),u=!0,f||(p=[pe(e,"click",lt(y)),pe(e,"keydown",b)],f=!0)},p(P,C){i=P,i[142].selected?h?C[0]&64&&d(h,1):(h=ud(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||C[0]&64)&&o!==(o=i[142].displayValue+"")&&Ge(r,o),(!u||C[1]&8)&&O(n,"quality-title-mobile",i[34]),(!u||C[0]&64&&a!==(a=i[142].value))&&c(e,"data-value",a),(!u||C[0]&64&&s!==(s=i[142].displayValue))&&c(e,"aria-label",s),(!u||C[1]&8)&&O(e,"item-mobile",i[34])},i(P){u||(d(h),u=!0)},o(P){_(h),u=!1},d(P){P&&k(e),h&&h.d(),f=!1,et(p)}}}function _g(i){let e,t,n,o,r,l,a=i[10]&&K1(i),s=i[12]&&x1(i),u=i[13]&&id(i),f=i[15]&&ld(i),p=i[14]&&ad(i);return{c(){e=T("div"),a&&a.c(),t=N(),s&&s.c(),n=N(),u&&u.c(),o=N(),f&&f.c(),r=N(),p&&p.c(),c(e,"class","svelte-5r0p3"),O(e,"hidden",!i[10]),O(e,"container-mobile",i[34])},m(h,y){w(h,e,y),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,y){h[10]?a?(a.p(h,y),y[0]&1024&&d(a,1)):(a=K1(h),a.c(),d(a,1),a.m(e,t)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),h[12]?s?(s.p(h,y),y[0]&4096&&d(s,1)):(s=x1(h),s.c(),d(s,1),s.m(e,n)):s&&(ue(),_(s,1,1,()=>{s=null}),ce()),h[13]?u?(u.p(h,y),y[0]&8192&&d(u,1)):(u=id(h),u.c(),d(u,1),u.m(e,o)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),h[15]?f?(f.p(h,y),y[0]&32768&&d(f,1)):(f=ld(h),f.c(),d(f,1),f.m(e,r)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),h[14]?p?(p.p(h,y),y[0]&16384&&d(p,1)):(p=ad(h),p.c(),d(p,1),p.m(e,null)):p&&(ue(),_(p,1,1,()=>{p=null}),ce()),(!l||y[0]&1024)&&O(e,"hidden",!h[10]),(!l||y[1]&8)&&O(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&&k(e),a&&a.d(),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d()}}}var hg=18;function gg(i,e,t){let n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v,E,G,W,K,re,te,I,{ref:Y=void 0}=e,{supportLink:X}=e,{playerControlsHeight:$=0}=e,{returnFocus:x}=e,D=$e(),j=Vt(),V=D.state.currentQuality$;F(i,V,se=>t(102,P=se));let Q=D.state.availableQualities$;F(i,Q,se=>t(8,y=se));let De=D.state.autoQualityLimitingAvailable$;F(i,De,se=>t(106,v=se));let We=D.state.isAutoQualityEnabled$;F(i,We,se=>t(103,C=se));let qe=D.state.currentPlaybackRate$;F(i,qe,se=>t(9,b=se));let Ze=D.state.availablePlaybackRates$;F(i,Ze,se=>t(7,p=se));let Me=D.state.currentSubtitle$;F(i,Me,se=>t(35,te=se));let ye=D.state.availableSubtitlesList$;F(i,ye,se=>t(6,u=se));let J=D.state.canDownload,ke=D.state.hasMpegSources$;F(i,ke,se=>t(107,E=se));let Fe=D.ui.settingsMenuVisible;F(i,Fe,se=>t(10,re=se));let Ye=D.ui.settingsMenuOpenedByKeyboard;F(i,Ye,se=>t(132,o=se));let Je=D.ui.isMobile;F(i,Je,se=>t(34,r=se));let he=D.ui.mobileNotReportControlHidden$;F(i,he,se=>t(104,A=se));let Ve=D.state.canChangePlaybackSpeed$;F(i,Ve,se=>t(105,S=se));let ze=D.ui.isFullscreen;F(i,ze,se=>t(135,K=se));let tt=D.state.trafficSavingEnabled$;F(i,tt,se=>t(5,a=se));let le=D.ui.playerSize;F(i,le,se=>t(134,W=se));let oe=D.ui.debugPanelVisible;F(i,oe,se=>t(36,I=se));let Ce=D.ui.playerSize;F(i,Ce,se=>t(133,G=se));let fe=D.state.isInteractiveTime$,Ee=D.actions.internal.downloadVideo,je=D.actions.internal.closeSettingsMenu,rt=!0,dt=!1,st=!1,de=!1,ct=!1,It=!1;function _t(){o||x?.(),je(),It=!1}function yt(){t(11,rt=!1),t(12,dt=!0)}function Lt(){t(11,rt=!1),t(15,ct=!0)}function Ue(se){D.actions.internal.setQuality(se),_t()}function Qt(se){D.actions.internal.setTrafficSavingEnabled(se),_t()}function ve(){t(11,rt=!1),t(13,st=!0)}function bt(se){D.actions.internal.setPlaybackRate(se),_t()}function Tt(){t(11,rt=!1),t(14,de=!0)}function Xe(se){D.actions.internal.setSubtitle(se),_t()}function at(){t(11,rt=!0),t(12,dt=!1),t(13,st=!1),t(14,de=!1),t(15,ct=!1)}function kt(){Ee(),_t()}function Et(){window.open(X,"_blank"),_t(),D.actions.internal.pause()}function yi(){kl(D.actions.internal.getDebugTextData()),_t()}function ki(){oe.set(!0),_t()}function wi(){It=!0}function Qi(){It=!1}function ln(se,ft,Gt){if(!se)return"...";let ei=ft.find(Fi=>Fi.value===se),Oi=ei?ei.displayValue:se;return Gt?se===fd.VideoQuality.INVARIANT?U("auto_quality_invariant"):U("auto_quality",{actual:Oi}):Oi}let si,ai,Ci,Yt,ui;function Yi(se=0,ft=!1){return r&&K&&ft?`max-height: ${Math.round(W.height*.6)}px`:r?"":`max-height: ${G.height-hg-se-$}px; overflow: auto;`}let Si,Pi,ci,Ii,fi,Ti,Ei,Mt,zt,Zt,di=Re(!1);F(i,di,se=>t(101,h=se));let Ft,mi,Xt=Re(!1);F(i,Xt,se=>t(100,f=se));let ii,Bt,Rt=Re(!1);F(i,Rt,se=>t(99,s=se));let qt,Jt,pi=Re(!1);F(i,pi,se=>t(98,l=se));let cn=se=>{ur(se,je)},Zi=async se=>{Cl(se,yt,()=>{let ft=y.findIndex(Gt=>Gt.selected);return Zt.childNodes[ft]})},xt=async se=>{Sl(se,at,di,je)},ni=(se,ft)=>{ji(se,()=>Ue(ft))},Ai=async se=>{Cl(se,ve,()=>{let ft=p.findIndex(Gt=>Gt.selected);return mi.childNodes[ft]})},zi=async se=>{Sl(se,at,Xt,je)},Ut=(se,ft)=>{ji(se,()=>bt(ft))},wt=async se=>{Cl(se,Tt,()=>{let ft=u.findIndex(Gt=>Gt.selected);return Bt.childNodes[ft]})},Mi=async se=>{Sl(se,at,Rt,je)},Xi=(se,ft)=>{ji(se,()=>Xe(ft))},oi=async se=>{Cl(se,Lt,()=>{let ft=a?2:0;return Jt.childNodes[ft]})},Ji=async se=>{Sl(se,at,pi,je)},_i=(se,ft)=>{ji(se,()=>Qt(ft))},rn=se=>{ji(se,()=>kt())},xi=se=>{ji(se,()=>Et())},sn=se=>{ji(se,()=>yi())},qi=se=>{ji(se,()=>ki())};St(()=>{let se=fe.subscribe(ft=>{ft&&!r&&!It&&!o&&_t()});return()=>{se()}});function Vi(se){_e[se?"unshift":"push"](()=>{zt=se,t(1,zt)})}function Kt(se){_e[se?"unshift":"push"](()=>{Ft=se,t(2,Ft)})}function $t(se){_e[se?"unshift":"push"](()=>{ii=se,t(3,ii)})}function hi(se){_e[se?"unshift":"push"](()=>{qt=se,t(4,qt)})}function Ui(se){_e[se?"unshift":"push"](()=>{Y=se,t(0,Y)})}function Ki(se){_e[se?"unshift":"push"](()=>{ai=se,t(17,ai)})}let gi=se=>Ue(se.value),Li=(se,ft)=>ni(ft,se.value);function Bi(se){_e[se?"unshift":"push"](()=>{Zt=se,t(29,Zt)})}function Qe(se){_e[se?"unshift":"push"](()=>{Ci=se,t(18,Ci)})}let Wi=se=>bt(se.value),Ht=(se,ft)=>Ut(ft,se.value);function He(se){_e[se?"unshift":"push"](()=>{mi=se,t(30,mi)})}function Ri(se){_e[se?"unshift":"push"](()=>{Yt=se,t(19,Yt)})}let $i=()=>Qt(!1),Gi=se=>_i(se,!1),Di=()=>Qt(!0),an=se=>_i(se,!0);function Ni(se){_e[se?"unshift":"push"](()=>{Jt=se,t(32,Jt)})}function en(se){_e[se?"unshift":"push"](()=>{ui=se,t(20,ui)})}let Wt=se=>Xe(se),tn=(se,ft)=>Xi(ft,se);function li(se){_e[se?"unshift":"push"](()=>{Bt=se,t(31,Bt)})}return i.$$set=se=>{"ref"in se&&t(0,Y=se.ref),"supportLink"in se&&t(95,X=se.supportLink),"playerControlsHeight"in se&&t(96,$=se.playerControlsHeight),"returnFocus"in se&&t(97,x=se.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1024)e:re&&(t(11,rt=!0),t(12,dt=!1),t(13,st=!1),t(14,de=!1),t(15,ct=!1));if(i.$$.dirty[3]&512)e:t(33,n=co(P));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,si=ln(P,y,C));if(i.$$.dirty[3]&18432)e:t(21,Si=J&&E&&!A);if(i.$$.dirty[3]&10240)e:t(22,Pi=j.features.trafficSaving&&!A&&v);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,ci=u.length>0&&!A);if(i.$$.dirty[3]&6144)e:t(24,Ii=!!S&&!A);if(i.$$.dirty[3]&2048)e:t(25,fi=!A);if(i.$$.dirty[0]&32)e:t(26,Ti=a?U("traffic_saving_on"):U("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,Ei=C?U("auto_quality_option"):P);if(i.$$.dirty[0]&640)e:t(28,Mt=p.find(se=>se.value===b)?.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:wl(zt,di,h);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:wl(Ft,Xt,f);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:wl(ii,Rt,s);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:wl(qt,pi,l)},[Y,zt,Ft,ii,qt,a,u,p,y,b,re,rt,dt,st,de,ct,si,ai,Ci,Yt,ui,Si,Pi,ci,Ii,fi,Ti,Ei,Mt,Zt,mi,Bt,Jt,n,r,te,I,j,V,Q,De,We,qe,Ze,Me,ye,ke,Fe,Ye,Je,he,Ve,ze,tt,le,oe,Ce,_t,yt,Lt,Ue,Qt,ve,bt,Tt,Xe,at,kt,Et,yi,ki,wi,Qi,Yi,di,Xt,Rt,pi,cn,Zi,xt,ni,Ai,zi,Ut,wt,Mi,Xi,oi,Ji,_i,rn,xi,sn,qi,X,$,x,l,s,f,h,P,C,A,S,v,E,Vi,Kt,$t,hi,Ui,Ki,gi,Li,Bi,Qe,Wi,Ht,He,Ri,$i,Gi,Di,an,Ni,en,Wt,tn,li]}var Pa=class extends z{constructor(e){super(),q(this,e,gg,_g,H,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},mg,[-1,-1,-1,-1,-1])}},yr=Pa;function bg(i){we(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function vg(i){let e,t,n;return t=new br({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),R(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){w(o,e,r),L(t,e,null),n=!0},p(o,r){let l={};r&8&&(l.isMobile=o[3]),r&16&&(l.currentQuality=o[4]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function yg(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:[vg]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function kg(i,e,t){let n,o,r,{ref:l=void 0}=e,a=$e(),s=a.state.currentQuality$;F(i,s,P=>t(4,r=P));let u=a.ui.settingsMenuVisible;F(i,u,P=>t(1,n=P));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;F(i,p,P=>t(3,o=P));let h;function y(P){let C=xo(P);f(C)}function b(P){l=P,t(0,l)}return i.$$set=P=>{"ref"in P&&t(0,l=P.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?U("tooltip_settings_on"):U("tooltip_settings_off"))},[l,n,h,o,r,s,u,p,y,b]}var Ia=class extends z{constructor(e){super(),q(this,e,kg,yg,H,{ref:0},bg)}},Il=Ia;function wg(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function Cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ta=class extends z{constructor(e){super(),q(this,e,Cg,wg,H,{})}},dd=Ta;function Sg(i){let e,t;return e=new vr({}),{c(){R(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){B(e,n)}}}function Pg(i){let e,t;return e=new dd({}),{c(){R(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){B(e,n)}}}function Ig(i){let e,t,n,o,r=[Pg,Sg],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=nt()},m(s,u){l[e].m(s,u),w(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&&k(n),l[e].d(s)}}}function Tg(i){let e,t;return e=new mt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:qn.KeyC,$$slots:{default:[Ig]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Eg(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?U("tooltip_subtitles_on"):U("tooltip_subtitles_off"))},[n,o,r]}var Ea=class extends z{constructor(e){super(),q(this,e,Eg,Tg,H,{isSubtitlesEnabled:0,click:1})}},md=Ea;function Ag(i){we(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 pd(i){let e,t;return{c(){e=T("span"),t=Be(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){w(n,e,o),m(e,t)},p(n,o){o&8&&Ge(t,n[3])},d(n){n&&k(e)}}}function Mg(i){let e,t,n,o,r=i[2]&&pd(i);return{c(){e=T("div"),t=T("span"),n=Be(i[4]),o=N(),r&&r.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),O(e,"mobile",i[1])},m(l,a){w(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&&Ge(n,l[4]),l[2]?r?r.p(l,a):(r=pd(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&O(e,"mobile",l[1])},i:me,o:me,d(l){l&&k(e),r&&r.d(),i[7](null)}}}function Vg(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 Aa=class extends z{constructor(e){super(),q(this,e,Vg,Mg,H,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Ag)}},kr=Aa;var Yn=require("@vkontakte/videoplayer-shared");function Lg(i){we(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 Bg(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){w(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&&k(e)}}}function Rg(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 Ma=class extends z{constructor(e){super(),q(this,e,Rg,Bg,H,{volume:1,muted:2},Lg)}},Bo=Ma;var In=require("@vkontakte/videoplayer-shared");var bd=require("@vkontakte/videoplayer-shared");var gd=require("@vkontakte/videoplayer-shared");function Dg(i){let e,t,n=i[4].default,o=Se(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),c(e,"class","overlay")},m(r,l){w(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Ie(o,n,r,r[3],t?Pe(n,r[3],l,null):Te(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r),i[5](null)}}}function Ng(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=$e().ui.overlayContainer$;F(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 Va=class extends z{constructor(e){super(),q(this,e,Ng,Dg,H,{})}},_d=Va;function Og(i){we(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 hd(i){let e,t;return e=new _d({props:{$$slots:{default:[Fg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Fg(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("div"),n=Be(i[1]),o=N(),r=T("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"});`),O(r,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),O(e,"active",i[0])},m(s,u){w(s,e,u),m(e,t),m(t,n),m(e,o),m(e,r),i[20](e)},p(s,u){u&2&&Ge(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&&O(e,"active",s[0])},d(s){s&&k(e),i[20](null)}}}function Hg(i){let e,t,n,o,r,l,a=i[18].default,s=Se(a,i,i[21],null),u=i[1]&&hd(i);return{c(){e=T("div"),s&&s.c(),t=N(),u&&u.c(),n=nt(),c(e,"class","tooltip-wrapper svelte-tny135"),O(e,"full-width",i[2])},m(f,p){w(f,e,p),s&&s.m(e,null),i[19](e),w(f,t,p),u&&u.m(f,p),w(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)&&Ie(s,a,f,f[21],o?Pe(a,f[21],p,null):Te(f[21]),null),(!o||p&4)&&O(e,"full-width",f[2]),f[1]?u?(u.p(f,p),p&2&&d(u,1)):(u=hd(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&&(k(e),k(t),k(n)),s&&s.d(f),i[19](null),u&&u.d(f),r=!1,et(l)}}}var Tl=5;function zg(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:y=gd.noop}=e,b=h==="top",P,C,A,S=0,v=b?Tl:-Tl,E=0,G=0,W=Vt(),K=$e(),re=K.ui.playerSize;F(i,re,Q=>t(24,o=Q));let te=K.ui.overlayContainer$;F(i,te,Q=>t(23,n=Q));let I=K.getLogger().createComponentLog("Tooltip component"),Y=()=>{if(!n||!C||!P)return;let Q=n.getBoundingClientRect(),De=P.getBoundingClientRect(),We=De.width,qe=C.clientWidth,Ze=o.width,Me=(We-qe)/2,ye=De.left+u-Q.left,J=ye+Me,ke=De.top+f-Q.top,Fe=qe/2-Tl,Ye=J<8,Je=J+qe>Ze-8;Ye&&(J=8,Fe=ye+De.width/2-2.5*Tl),Je&&(J=Ze-8-qe,Fe=De.left-Q.left+De.width/2-J-Tl),t(6,E=J),t(7,G=ke),t(5,S=Fe)},X=()=>{try{if(!n||!P)return;Y(),t(0,s=!0)}catch(Q){I({message:String(Q)})}},$=()=>{t(0,s=!1)},x=()=>{C&&(A||(A=window.setTimeout(X,W.controls.hideTimeoutTooltips)),s&&X())},D=()=>{$(),window.clearTimeout(A),A=void 0};St(Y),Ln(()=>window.clearTimeout(A));function j(Q){_e[Q?"unshift":"push"](()=>{P=Q,t(3,P)})}function V(Q){_e[Q?"unshift":"push"](()=>{C=Q,t(4,C)})}return i.$$set=Q=>{"content"in Q&&t(1,a=Q.content),"active"in Q&&t(0,s=Q.active),"translateX"in Q&&t(14,u=Q.translateX),"translateY"in Q&&t(15,f=Q.translateY),"isFullWidthWrapper"in Q&&t(2,p=Q.isFullWidthWrapper),"placement"in Q&&t(16,h=Q.placement),"onVisibilityChange"in Q&&t(17,y=Q.onVisibilityChange),"$$scope"in Q&&t(21,l=Q.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:y(s)},[s,a,p,P,C,S,E,G,b,v,re,te,x,D,u,f,h,y,r,j,V,l]}var La=class extends z{constructor(e){super(),q(this,e,zg,Hg,H,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Og)}},wr=La;function qg(i){we(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 Ug(i){let e,t=i[19].default,n=Se(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)&&Ie(n,t,o,o[24],e?Pe(t,o[24],r,null):Te(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Kg(i){let e,t;return e=new wr({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[Wg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Wg(i){let e,t=i[19].default,n=Se(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)&&Ie(n,t,o,o[24],e?Pe(t,o[24],r,null):Te(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Gg(i){let e,t,n,o,r,l,a,s,u,f=[Kg,Ug],p=[];function h(y,b){return y[3]&&y[5]&&!y[13]?0:1}return t=h(i,-1),n=p[t]=f[t](i),{c(){e=T("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(y,b){w(y,e,b),p[t].m(e,null),i[22](e),l=qo(e,i[23].bind(e)),a=!0,s||(u=[pe(e,"pointerdown",lt(Ct(i[20]))),pe(e,"click",lt(Ct(i[21])))],s=!0)},p(y,[b]){let P=t;t=h(y,b),t===P?p[t].p(y,b):(ue(),_(p[P],1,1,()=>{p[P]=null}),ce(),n=p[t],n?n.p(y,b):(n=p[t]=f[t](y),n.c()),d(n,1),n.m(e,null)),(!a||b&4&&o!==(o="btn-container "+y[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||b&256&&r!==(r=y[8]||null))&&c(e,"aria-hidden",r)},i(y){a||(d(n),a=!0)},o(y){_(n),a=!1},d(y){y&&k(e),p[t].d(),i[22](null),l(),s=!1,et(u)}}}function jg(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:y=""}=e,{tooltipActive:b=!1}=e,{tooltipPlacement:P="top"}=e,{disabledTooltipContent:C=U("tooltip_button_disabled")}=e,{isAriaHidden:A=!1}=e,{onTooltipVisibilityChange:S=bd.noop}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:E=-18}=e,G=$e(),W=G.ui.isMobile;F(i,W,$=>t(13,o=$));let K=G.state.graphIsOpened$;F(i,K,$=>t(18,n=$));let re;function te($){gn.call(this,i,$)}function I($){gn.call(this,i,$)}function Y($){_e[$?"unshift":"push"](()=>{f=$,t(0,f)})}function X(){p=this.clientWidth,t(1,p)}return i.$$set=$=>{"className"in $&&t(2,a=$.className),"disabled"in $&&t(16,s=$.disabled),"hasTooltip"in $&&t(3,u=$.hasTooltip),"ref"in $&&t(0,f=$.ref),"width"in $&&t(1,p=$.width),"isFullWidthTooltip"in $&&t(4,h=$.isFullWidthTooltip),"tooltipContent"in $&&t(5,y=$.tooltipContent),"tooltipActive"in $&&t(6,b=$.tooltipActive),"tooltipPlacement"in $&&t(7,P=$.tooltipPlacement),"disabledTooltipContent"in $&&t(17,C=$.disabledTooltipContent),"isAriaHidden"in $&&t(8,A=$.isAriaHidden),"onTooltipVisibilityChange"in $&&t(9,S=$.onTooltipVisibilityChange),"initialTranslateXPx"in $&&t(10,v=$.initialTranslateXPx),"initialTranslateYPx"in $&&t(11,E=$.initialTranslateYPx),"$$scope"in $&&t(24,l=$.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:s?t(12,re=n?U("tooltip_disabled_when_graph_on"):C):t(12,re=y)},[f,p,a,u,h,y,b,P,A,S,v,E,re,o,W,K,s,C,n,r,te,I,Y,X,l]}var Ba=class extends z{constructor(e){super(),q(this,e,jg,Gg,H,{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},qg)}},At=Ba;function Qg(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){w(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&&k(e)}}}function Yg(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Ra=class extends z{constructor(e){super(),q(this,e,Yg,Qg,H,{completed:0})}},Cr=Ra;function Zg(i){we(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 Xg(i){let e,t,n,o,r;return t=new Cr({props:{completed:!!i[0].completed}}),{c(){e=T("div"),R(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)),O(e,"disabled",i[1])},m(l,a){w(l,e,a),L(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)&&O(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),r=!1},d(l){l&&k(e),B(t),o()}}}function Jg(i){let e,t;return e=new At({props:{tooltipContent:U(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:[Xg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=U(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){B(e,n)}}}function xg(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 Da=class extends z{constructor(e){super(),q(this,e,xg,Jg,H,{videoEpisode:0,disabled:1},Zg)}},vd=Da;function $g(i){we(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 yd(i,e,t){let n=i.slice();return n[2]=e[t],n}function kd(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=N(),l=T("div"),s=N(),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}%)`),O(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}%`),O(e,"mobile",i[1])},m(f,p){w(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&&O(l,"mobile",f[1]),p&1&&u!==(u=`left: ${f[2].from}%; width: ${f[2].width}%`)&&c(e,"style",u),p&2&&O(e,"mobile",f[1])},d(f){f&&k(e)}}}function eb(i){let e,t=ht(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=kd(yd(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1h9p3m2")},m(o,r){w(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=ht(o[0]);let l;for(l=0;l<t.length;l+=1){let a=yd(o,t,l);n[l]?n[l].p(a,r):(n[l]=kd(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&&k(e),Hi(n,o)}}}function tb(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 Na=class extends z{constructor(e){super(),q(this,e,tb,eb,H,{videoEpisodes:0,isMobile:1},$g)}},wd=Na;function ib(i){we(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 Cd(i,e,t){let n=i.slice();return n[48]=e[t],n}function Sd(i){let e,t,n=ht(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=Id(Cd(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=T("div");for(let l=0;l<o.length;l+=1)o[l].c();c(e,"class","interactive-icons svelte-1golz1y"),O(e,"mobile",i[5]),O(e,"hidden",i[5]&&!i[20])},m(l,a){w(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=ht(l[21]);let s;for(s=0;s<n.length;s+=1){let u=Cd(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=Id(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)&&O(e,"mobile",l[5]),(!t||a[0]&1048608)&&O(e,"hidden",l[5]&&!l[20])},i(l){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(l){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(l){l&&k(e),Hi(o,l)}}}function Pd(i){let e,t;return e=new vd({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Id(i){let e,t,n=i[48].interactive&&Pd(i);return{c(){n&&n.c(),e=nt()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[48].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=Pd(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&&k(e),n&&n.d(o)}}}function nb(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=N(),r=T("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}%);`),O(r,"active-live",i[4]),O(r,"ads",i[6]),c(e,"class","bars svelte-1golz1y")},m(a,s){w(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&&O(r,"active-live",a[4]),s[0]&64&&O(r,"ads",a[6])},i:me,o:me,d(a){a&&k(e)}}}function ob(i){let e,t;return e=new wd({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function lb(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b=i[8]&&Sd(i),P=[ob,nb],C=[];function A(S,v){return S[21].length?0:1}return n=A(i,[-1,-1]),o=C[n]=P[n](i),{c(){b&&b.c(),e=N(),t=T("div"),o.c(),r=N(),l=T("div"),a=T("div"),c(a,"class","handle svelte-1golz1y"),O(a,"active-live",i[4]),c(l,"class","handleWrap svelte-1golz1y"),c(l,"style",s=`transform: translateX(${i[13]*100}%);`),O(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),O(t,"disabled",i[9]),O(t,"slider-dragging",i[20]),O(t,"hidden",i[2]),O(t,"slider-vertical",i[3]),O(t,"no-handle",i[10]),O(t,"square",i[7])},m(S,v){b&&b.m(S,v),w(S,e,v),w(S,t,v),C[n].m(t,null),m(t,r),m(t,l),m(l,a),i[42](t),p=!0,h||(y=[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",lt(In.noop)),pe(t,"wheel",i[27])],h=!0)},p(S,v){S[8]?b?(b.p(S,v),v[0]&256&&d(b,1)):(b=Sd(S),b.c(),d(b,1),b.m(e.parentNode,e)):b&&(ue(),_(b,1,1,()=>{b=null}),ce());let E=n;n=A(S,v),n===E?C[n].p(S,v):(ue(),_(C[E],1,1,()=>{C[E]=null}),ce(),o=C[n],o?o.p(S,v):(o=C[n]=P[n](S),o.c()),d(o,1),o.m(t,r)),(!p||v[0]&16)&&O(a,"active-live",S[4]),(!p||v[0]&8192&&s!==(s=`transform: translateX(${S[13]*100}%);`))&&c(l,"style",s),(!p||v[0]&1024)&&O(l,"hidden",S[10]),(!p||v[0]&1&&u!==(u="slider "+S[0]+" svelte-1golz1y"))&&c(t,"class",u),(!p||v[0]&16384)&&c(t,"aria-label",S[14]),(!p||v[0]&32768)&&c(t,"aria-valuemin",S[15]),(!p||v[0]&65536)&&c(t,"aria-valuemax",S[16]),(!p||v[0]&131072)&&c(t,"aria-valuenow",S[17]),(!p||v[0]&262144)&&c(t,"aria-valuetext",S[18]),(!p||v[0]&2&&f!==(f=S[1]??null))&&c(t,"data-testid",f),(!p||v[0]&513)&&O(t,"disabled",S[9]),(!p||v[0]&1048577)&&O(t,"slider-dragging",S[20]),(!p||v[0]&5)&&O(t,"hidden",S[2]),(!p||v[0]&9)&&O(t,"slider-vertical",S[3]),(!p||v[0]&1025)&&O(t,"no-handle",S[10]),(!p||v[0]&129)&&O(t,"square",S[7])},i(S){p||(d(b),d(o),p=!0)},o(S){_(b),_(o),p=!1},d(S){S&&(k(e),k(t)),b&&b.d(S),C[n].d(),i[42](null),h=!1,et(y)}}}function rb(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:y=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:P=!1}=e,{disabled:C=!1}=e,{hideHandel:A=!1}=e,S,v,{onPointerDown:E=In.noop}=e,{onHandleMove:G=In.noop}=e,{onPointerUp:W=In.noop}=e,{onPointerEnter:K=In.noop}=e,{onPointerMove:re=In.noop}=e,{onPointerLeave:te=In.noop}=e,{onWheelUp:I=In.noop}=e,{onWheelDown:Y=In.noop}=e,{onWheelLeft:X=In.noop}=e,{onWheelRight:$=In.noop}=e,{loadedProgress:x=0}=e,{filledProgress:D=0}=e,{handleProgress:j=0}=e,{ariaLabel:V=""}=e,{ariaValueMin:Q=void 0}=e,{ariaValueMax:De=void 0}=e,{ariaValueNow:We=void 0}=e,{ariaValueText:qe=""}=e,Ze=Vt(),Me=!1,ye;function J(oe){if(Me)return;t(20,Me=!0),v=S.getBoundingClientRect();let Ce=Ve(oe.clientX,oe.clientY);E(Ce),S.setPointerCapture(oe.pointerId)}function ke(oe){let Ce=Ve(oe.clientX,oe.clientY),fe=ze(oe.clientX);re(Ce,fe,v.width),Me&&G(Ce)}function Fe(oe){if(!Me)return;t(20,Me=!1);let Ce=Ve(oe.clientX,oe.clientY);W(Ce)}function Ye(oe){v=S.getBoundingClientRect();let Ce=Ve(oe.clientX,oe.clientY),fe=ze(oe.clientX);K(Ce,fe,v.width)}function Je(){te()}function he(oe){b&&(oe.preventDefault(),oe.deltaY<0?I():oe.deltaY>0?Y():oe.deltaX>0?$():X())}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 ze(oe){return Math.min(Math.max(oe-v.x,0),v.width)}function tt(oe,Ce){let fe=Ze.features.episodesClustering&&!P?Ze.episodeMinWidthPc:0,Ee=[],je=0,rt=0,dt=0;for(let ct=1;ct<y.length;ct++)rt=y[ct].time/ye*100,rt-je>fe&&(Ee.push({from:je,width:Math.max(0,rt-je),loadedWidth:Math.max(0,Math.min(rt,oe)-je),filledWidth:Math.max(0,Math.min(rt,Ce)-je),interactive:y[ct-1].interactive,completed:y[ct-1].completed}),je=y[ct].time/ye*100,dt++);let st={from:je,width:Math.max(0,100-je),loadedWidth:Math.max(0,Math.min(oe,100)-je),filledWidth:Math.max(0,Math.min(Ce,100)-je),interactive:y[dt].interactive,completed:y[dt].completed};100-je<fe?(dt-=1,Ee[dt].width+=100-je,Ee[dt].loadedWidth+=Math.max(0,Math.min(oe,100)-je),Ee[dt].filledWidth+=Math.max(0,Math.min(Ce,100)-je)):Ee[dt]=st;let de=y[0].time;if(de!==0){let ct=de/ye*100;Ee.unshift({from:0,width:ct,loadedWidth:Math.min(ct,oe),filledWidth:Math.min(ct,Ce)})}return Ee}function le(oe){_e[oe?"unshift":"push"](()=>{S=oe,t(19,S)})}return i.$$set=oe=>{"className"in oe&&t(0,r=oe.className),"testId"in oe&&t(1,l=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,y=oe.videoEpisodes),"withWheelHandler"in oe&&t(29,b=oe.withWheelHandler),"isInteractive"in oe&&t(8,P=oe.isInteractive),"disabled"in oe&&t(9,C=oe.disabled),"hideHandel"in oe&&t(10,A=oe.hideHandel),"onPointerDown"in oe&&t(30,E=oe.onPointerDown),"onHandleMove"in oe&&t(31,G=oe.onHandleMove),"onPointerUp"in oe&&t(32,W=oe.onPointerUp),"onPointerEnter"in oe&&t(33,K=oe.onPointerEnter),"onPointerMove"in oe&&t(34,re=oe.onPointerMove),"onPointerLeave"in oe&&t(35,te=oe.onPointerLeave),"onWheelUp"in oe&&t(36,I=oe.onWheelUp),"onWheelDown"in oe&&t(37,Y=oe.onWheelDown),"onWheelLeft"in oe&&t(38,X=oe.onWheelLeft),"onWheelRight"in oe&&t(39,$=oe.onWheelRight),"loadedProgress"in oe&&t(11,x=oe.loadedProgress),"filledProgress"in oe&&t(12,D=oe.filledProgress),"handleProgress"in oe&&t(13,j=oe.handleProgress),"ariaLabel"in oe&&t(14,V=oe.ariaLabel),"ariaValueMin"in oe&&t(15,Q=oe.ariaValueMin),"ariaValueMax"in oe&&t(16,De=oe.ariaValueMax),"ariaValueNow"in oe&&t(17,We=oe.ariaValueNow),"ariaValueText"in oe&&t(18,qe=oe.ariaValueText)},i.$$.update=()=>{if(i.$$.dirty[0]&65536)e:t(40,ye=De??0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=y[y.length-1]?.time<ye);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=y.length&&n&&ye?tt(x*100,D*100):[])},[r,l,a,s,u,f,p,h,P,C,A,x,D,j,V,Q,De,We,qe,S,Me,o,J,ke,Fe,Ye,Je,he,y,b,E,G,W,K,re,te,I,Y,X,$,ye,n,le]}var Oa=class extends z{constructor(e){super(),q(this,e,rb,lb,H,{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},ib,[-1,-1])}},nl=Oa;var vn=(i,e)=>So[i]>=So[e],Td=(i,e)=>So[i]<So[e],Sr=(i,e)=>So[i]<=So[e],Ed=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function sb(i){we(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 ab(i){let e,t;return e=new Bo({props:{volume:i[3],muted:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function ub(i){let e,t;return e=new mt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:qn.KeyM,$$slots:{default:[ab]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Ad(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]:Yn.noop,onPointerLeave:i[2]?i[20]:Yn.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),O(e,"volumeBar-vertical",i[2])},m(o,r){w(o,e,r),L(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]:Yn.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:Yn.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)&&O(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function cb(i){let e,t,n,o,r,l;t=new wr({props:{content:i[6],translateY:-18,$$slots:{default:[ub]},$$scope:{ctx:i}}});let a=i[4]&&Ad(i);return{c(){e=T("div"),R(t.$$.fragment),n=N(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),O(e,"vertical",i[2])},m(s,u){w(s,e,u),L(t,e,null),m(e,n),a&&a.m(e,null),o=!0,r||(l=[pe(e,"mouseenter",function(){bi(i[2]?i[21]:Yn.noop)&&(i[2]?i[21]:Yn.noop).apply(this,arguments)}),pe(e,"mouseleave",function(){bi(i[2]?i[22]:Yn.noop)&&(i[2]?i[22]:Yn.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=Ad(i),a.c(),d(a,1),a.m(e,null)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),(!o||u[0]&4)&&O(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),B(t),a&&a.d(),r=!1,et(l)}}}function fb(i,e,t){let n,o,r,l,{click:a}=e,s=$e(),u=Vt(),f=s.state.volume$;F(i,f,Me=>t(3,n=Me));let p=s.state.muted$;F(i,p,Me=>t(25,l=Me));let h=s.actions.internal.setVolume,y=s.ui.currentGridType$;F(i,y,Me=>t(24,r=Me));let b=s.callbacks?.onAudioDoesNotExistHint,P=s.callbacks?.onAudioDisabledHint,C=s.state.isAudioAvailable$;F(i,C,Me=>t(4,o=Me));let A=s.state.isAudioDisabled,S=!1,v,E,G,W,K,re,te=1,I=!1,Y=!1;function X(Me){te=n,h(Me)}function $(){mr(s,n,u.controls.volumeStepWheel)}function x(){pr(s,n,u.controls.volumeStepWheel)}function D(Me){h(Me)}function j(Me){let ye=Me;h(ye,ye===0?te:ye)}function V(){I=!0}function Q(){I=!1,qe()}function De(){clearTimeout(v),t(5,S=!0)}function We(){qe()}function qe(){v=window.setTimeout(()=>{I||t(5,S=!1)},u.controls.volumeBarTimeout)}function Ze(Me){Me.deltaY<0?$():Me.deltaY>0&&x()}return i.$$set=Me=>{"click"in Me&&t(0,a=Me.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,W=!o||l);if(i.$$.dirty[0]&16777216)e:t(2,K=Sr(r,"s"));if(i.$$.dirty[0]&6)e:K?t(6,E=""):t(6,E=W?U("tooltip_volume"):U("tooltip_volume_muted")),t(7,G=W?U("tooltip_volume"):U("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,re=W?0:n);if(i.$$.dirty[0]&16)e:t(9,Y=A&&!P||!o&&!b)},[a,W,K,n,o,S,E,G,re,Y,f,p,y,C,X,$,x,D,j,V,Q,De,We,Ze,r,l]}var Fa=class extends z{constructor(e){super(),q(this,e,fb,cb,H,{click:0},sb,[-1,-1])}},Md=Fa;var Bd=require("@vkontakte/videoplayer-shared");function db(i){let e,t,n,o,r,l=i[2].default,a=Se(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=ne(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){w(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)&&Ie(a,l,f,f[1],r?Pe(l,f[1],p,null):Te(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&&k(e),a&&a.d(f)}}}function mb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ha=class extends z{constructor(e){super(),q(this,e,mb,db,H,{})}},Vd=Ha;function pb(i){we(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function _b(i){let e,t;return e=new Vd({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function hb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var za=class extends z{constructor(e){super(),q(this,e,hb,_b,H,{isFullscreen:0},pb)}},Ld=za;function gb(i){let e,t;return e=new Ld({props:{isFullscreen:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function bb(i){let e,t;return e=new mt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:qn.KeyF,$$slots:{default:[gb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function vb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Bd.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?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off"))},[n,o,r]}var qa=class extends z{constructor(e){super(),q(this,e,vb,bb,H,{isFullscreen:0,click:1})}},Pr=qa;function yb(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function kb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ua=class extends z{constructor(e){super(),q(this,e,kb,yb,H,{})}},ol=Ua;function wb(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function Cb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ka=class extends z{constructor(e){super(),q(this,e,Cb,wb,H,{})}},Ir=Ka;var Dd=require("@vkontakte/videoplayer-shared");function Sb(i){we(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 Rd(i){let e;return{c(){e=T("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){w(t,e,n)},d(t){t&&k(e)}}}function Pb(i){let e,t,n,o,r=i[1]&&Rd(i);var l=i[8];function a(s){return{}}return l&&(n=dn(l,a(i))),{c(){r&&r.c(),e=N(),t=T("div"),n&&R(n.$$.fragment),c(t,"class","svelte-1ot3duq"),O(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),w(s,e,u),w(s,t,u),n&&L(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=Rd(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,()=>{B(f,1)}),ce()}l?(n=dn(l,a(s)),R(n.$$.fragment),d(n.$$.fragment,1),L(n,t,null)):n=null}(!o||u&2)&&O(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(k(e),k(t)),r&&r.d(s),n&&B(n)}}}function Ib(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:qn.KeyK,$$slots:{default:[Pb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Tb(i,e,t){let n,o,{fakeIsPlaying$:r}=Sn();F(i,r,S=>t(12,o=S));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=Dd.noop}=e,{toggle:h}=r,y,b,P,C;function A(S){l=S,t(0,l)}i.$$set=S=>{"ref"in S&&t(0,l=S.ref),"isMobile"in S&&t(1,a=S.isMobile),"isPlaying"in S&&t(10,s=S.isPlaying),"disabled"in S&&t(2,u=S.disabled),"className"in S&&t(3,f=S.className),"click"in S&&t(4,p=S.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,b=o!==null);if(i.$$.dirty&5152)e:t(11,P=b?o:s);if(i.$$.dirty&2048)e:t(7,C=P?U("tooltip_pause"):U("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=P?Ir:ol)};e:t(6,y=h);return[l,a,u,f,p,b,y,C,n,r,s,P,o,A]}var Wa=class extends z{constructor(e){super(),q(this,e,Tb,Ib,H,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Sb)}},El=Wa;function Eb(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function Ab(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ga=class extends z{constructor(e){super(),q(this,e,Ab,Eb,H,{})}},Nd=Ga;function Mb(i){let e,t;return e=new Nd({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Vb(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(2,o=l.isMobile)},i.$$.update=()=>{if(i.$$.dirty&5)e:n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0)},[n,r,o]}var ja=class extends z{constructor(e){super(),q(this,e,Vb,Mb,H,{isPrev:0,isMobile:2})}},Od=ja;function Lb(i){let e,t;return e=new Od({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Bb(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:[Lb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Rb(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"?U("tooltip_previous"):U("tooltip_next"))},[n,o,r,l,a,s,u]}var Qa=class extends z{constructor(e){super(),q(this,e,Rb,Bb,H,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},ll=Qa;function Db(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function Nb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Ya=class extends z{constructor(e){super(),q(this,e,Nb,Db,H,{})}},Fd=Ya;function Ob(i){we(i,"svelte-1bbobod",".mobile.svelte-1bbobod{transform:scale(1.1) translateY(-1px)}")}function Hd(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){w(s,e,u),w(s,t,u),w(s,n,u),w(s,o,u),w(s,r,u),w(s,l,u),w(s,a,u)},d(s){s&&(k(e),k(t),k(n),k(o),k(r),k(l),k(a))}}}function Fb(i){let e,t,n,o=!i[0]&&Hd(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"),O(e,"mobile",i[1])},m(r,l){w(r,e,l),m(e,t),o&&o.m(e,null)},p(r,[l]){r[0]?o&&(o.d(1),o=null):o||(o=Hd(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&&O(e,"mobile",r[1])},i:me,o:me,d(r){r&&k(e),o&&o.d()}}}function Hb(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 Za=class extends z{constructor(e){super(),q(this,e,Hb,Fb,H,{short:0,isMobile:1},Ob)}},zd=Za;function zb(i){let e,t,n,o,r,l,a,s,u,f,p,h,y;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"),y=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(y,"mode","normal"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_207_5101"),c(y,"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(b,P){w(b,e,P),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,y)},p:me,i:me,o:me,d(b){b&&k(e)}}}var Xa=class extends z{constructor(e){super(),q(this,e,null,zb,H,{})}},qd=Xa;function Ub(i){let e,t;return e=new Fd({}),{c(){R(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){B(e,n)}}}function Kb(i){let e,t;return e=new zd({props:{short:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Wb(i){let e,t;return e=new qd({}),{c(){R(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){B(e,n)}}}function Gb(i){let e,t,n,o,r=[Wb,Kb,Ub],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=nt()},m(s,u){l[e].m(s,u),w(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&&k(n),l[e].d(s)}}}function jb(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:[Gb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Qb(i,e,t){let n,o,{ref:r=void 0}=e,{logoClickable:l=!1}=e,{targetUrl:a=""}=e,{click:s}=e,u=Vt(),f=$e(),p=f.ui.currentGridType$;F(i,p,v=>t(11,n=v));let h=f.ui.isMobile;F(i,h,v=>t(12,o=v));let y,b,P,C,A=()=>{s(),f.callbacks?.onLogoClicked?.(),a&&window.open(a,"_blank")};function S(v){r=v,t(0,r)}i.$$set=v=>{"ref"in v&&t(0,r=v.ref),"logoClickable"in v&&t(1,l=v.logoClickable),"targetUrl"in v&&t(9,a=v.targetUrl),"click"in v&&t(10,s=v.click)},i.$$.update=()=>{if(i.$$.dirty&6148)e:t(5,C=(o||Sr(n,"l"))&&b)};e:t(3,y=u.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo"));e:t(2,b=u.logoType==="vk_video");e:t(4,P=u.logoType==="vk_video_mobile");return[r,l,b,y,P,C,p,h,A,a,s,n,o,S]}var Ja=class extends z{constructor(e){super(),q(this,e,Qb,jb,H,{ref:0,logoClickable:1,targetUrl:9,click:10})}},Tr=Ja;var Kd=require("@vkontakte/videoplayer-core");var xa=require("@vkontakte/videoplayer-core");function Yb(i){we(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 Zb(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"),O(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"),O(e,"connecting",i[2])},m(u,f){w(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&&O(s,"hidden",!u[1]),f&4&&O(e,"connecting",u[2])},d(u){u&&k(e)}}}function Xb(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v,E,G;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"),b=M("filter"),P=M("feFlood"),C=M("feColorMatrix"),A=M("feOffset"),S=M("feGaussianBlur"),v=M("feColorMatrix"),E=M("feBlend"),G=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",y=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(P,"flood-opacity","0"),c(P,"result","BackgroundImageFix"),c(C,"in","SourceAlpha"),c(C,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(C,"result","hardAlpha"),c(S,"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(E,"in2","BackgroundImageFix"),c(E,"result","effect1_dropShadow_4085_178456"),c(G,"in","SourceGraphic"),c(G,"in2","effect1_dropShadow_4085_178456"),c(G,"result","shape"),c(b,"id","b"),c(b,"x","-3.4"),c(b,"y","-1.4"),c(b,"width","30.8"),c(b,"height","26.802"),c(b,"filterUnits","userSpaceOnUse"),c(b,"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(W,K){w(W,e,K),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,b),m(b,P),m(b,C),m(b,A),m(b,S),m(b,v),m(b,E),m(b,G)},p(W,K){K&2&&r!==(r=W[1]?"#2688EB":"#fff")&&c(o,"fill",r),K&2&&s!==(s=W[1]?"#2688EB":"#fff")&&c(a,"fill",s),K&2&&y!==(y=W[1]?"#2688EB":"#fff")&&c(h,"fill",y)},d(W){W&&k(e)}}}function Jb(i){let e;function t(r,l){return r[0]?Xb:Zb}let n=t(i,-1),o=n(i);return{c(){o.c(),e=nt()},m(r,l){o.m(r,l),w(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&&k(e),o.d(r)}}}function xb(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===xa.ChromecastState.CONNECTING),t(1,r=o===xa.ChromecastState.CONNECTED)},[n,r,l,o]}var $a=class extends z{constructor(e){super(),q(this,e,xb,Jb,H,{isMobile:0,state:3},Yb)}},Ud=$a;var Wd=require("@vkontakte/videoplayer-shared");function $b(i){let e,t;return e=new Ud({props:{isMobile:i[1],state:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function e4(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[$b]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function t4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=Wd.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===Kd.ChromecastState.CONNECTED?U("tooltip_chromecast_on"):U("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var eu=class extends z{constructor(e){super(),q(this,e,t4,e4,H,{ref:0,isMobile:1,state:2,click:3})}},Er=eu;var Ar=require("@vkontakte/videoplayer-core");function i4(i){let e,t;return e=new sr({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function n4(i){let e,t;return e=new mt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Ar.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[i4]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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]===Ar.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){B(e,n)}}}function o4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=$e(),s=a.state.playbackState$;F(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===Ar.PlaybackState.PAUSED&&f()})},[o,r,l,n,p,s]}var tu=class extends z{constructor(e){super(),q(this,e,o4,n4,H,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Mr=tu;function l4(i){we(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 r4(i){let e,t,n,o,r=i[9].default,l=Se(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),c(t,"class","tooltip svelte-5ygsa2"),O(t,"active",i[0]),O(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){w(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)&&Ie(l,r,a,a[8],o?Pe(r,a[8],s,null):Te(a[8]),null),(!o||s&1)&&O(t,"active",a[0]),(!o||s&2)&&O(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&&k(e),l&&l.d(a),i[10](null),i[11](null)}}}function s4(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 y(C){if(!h)return 0;let{width:A}=h.getBoundingClientRect(),S=A/2;return C<S?S:C>f-S?f-S:C}function b(C){_e[C?"unshift":"push"](()=>{h=C,t(4,h)})}function P(C){_e[C?"unshift":"push"](()=>{p=C,t(3,p)})}return i.$$set=C=>{"active"in C&&t(0,l=C.active),"pointer"in C&&t(1,a=C.pointer),"translateXPx"in C&&t(6,s=C.translateXPx),"translateYPx"in C&&t(2,u=C.translateYPx),"containerWidth"in C&&t(7,f=C.containerWidth),"$$scope"in C&&t(8,r=C.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=y(s))},[l,a,u,p,h,n,s,f,r,o,b,P]}var iu=class extends z{constructor(e){super(),q(this,e,s4,r4,H,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},l4)}},Gd=iu;var Vr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function a4(i){we(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 jd(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?c4:u4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=nt()},m(r,l){o.m(r,l),w(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function u4(i){let e=(i[10].text||"")+"",t;return{c(){t=Be(e)},m(n,o){w(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ge(t,e)},d(n){n&&k(t)}}}function c4(i){let e=U("tooltip_episode_unfinished")+"",t;return{c(){t=Be(e)},m(n,o){w(n,t,o)},p:me,d(n){n&&k(t)}}}function f4(i){let e,t,n,o,r,l,a,s,u=i[10]&&jd(i);return{c(){e=T("div"),t=T("div"),o=N(),r=T("div"),u&&u.c(),l=N(),a=T("div"),s=Be(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"),O(e,"mobile",i[1])},m(f,p){w(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=jd(f),u.c(),u.m(r,null)):u&&(u.d(1),u=null),p&1&&Ge(s,f[0]),p&2&&O(e,"mobile",f[1])},i:me,o:me,d(f){f&&k(e),u&&u.d()}}}var rl=150;function d4(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=$e().ui.rotateAlpha;F(i,h,K=>t(11,n=K));let y,b,P,C,A,S,v,E;function G(){let K=a.frameWidth,re=a.frameHeight;return K>rl?(re=re/K*rl,K=rl):re>rl&&(K=K/re*rl,re=rl),{width:K,height:re}}function W(K){let re;a.isUV?re=Math.floor(u*K/a.frequency):re=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*K)));let te=Math.floor(re/a.countPerImage),I=Math.floor(re%a.countPerImage/a.countPerRow),Y=re%a.countPerRow,X=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&te===Math.floor(a.countTotal/a.countPerImage)&&(X=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&X++);let $=a.countPerRow;!a.isUV&&te===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&($=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let x=y*$,D=b*X,j=-Y*y,V=-I*b;return{imgSrc:a.links[te],imgWidth:x,imgHeight:D,imgOffsetX:j,imgOffsetY:V}}i.$$set=K=>{"time"in K&&t(0,o=K.time),"isMobile"in K&&t(1,r=K.isMobile),"videoEpisodes"in K&&t(13,l=K.videoEpisodes),"previewThumbsData"in K&&t(14,a=K.previewThumbsData),"progress"in K&&t(15,s=K.progress),"duration"in K&&t(16,u=K.duration),"isInteractive"in K&&t(2,f=K.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:P,imgWidth:C,imgHeight:A,imgOffsetX:S,imgOffsetY:v}=W(s),P,(t(6,C),t(15,s)),(t(7,A),t(15,s)),(t(8,S),t(15,s)),(t(9,v),t(15,s)));if(i.$$.dirty&106496)e:t(10,E=Vr(s,u,l))};e:t(3,{width:y,height:b}=G(),y,t(4,b));return[o,r,f,y,b,P,C,A,S,v,E,n,h,l,a,s,u]}var nu=class extends z{constructor(e){super(),q(this,e,d4,f4,H,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},a4)}},Qd=nu;function m4(i){we(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 p4(i){let e,t;return{c(){e=T("span"),t=Be(i[7]),c(e,"class","time svelte-5lzly8")},m(n,o){w(n,e,o),m(e,t)},p(n,o){o[0]&128&&Ge(t,n[7])},i:me,o:me,d(n){n&&k(e)}}}function _4(i){let e,t;return e=new Qd({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function h4(i){let e,t,n,o,r=[_4,p4],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=nt()},m(s,u){l[e].m(s,u),w(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&&k(n),l[e].d(s)}}}function g4(i){let e,t,n,o,r=[i[9]],l={$$slots:{default:[h4]},$$scope:{ctx:i}};for(let a=0;a<r.length;a+=1)l=ne(l,r[a]);return e=new Gd({props:l}),n=new nl({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:U("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:U("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(){R(e.$$.fragment),t=N(),R(n.$$.fragment)},m(a,s){L(e,a,s),w(a,t,s),L(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=U("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&&k(t),B(e,a),B(n,a)}}}function b4(i,e,t){let n,o,r,l,a,s,u,f,p,h,y,{showTimeline:b=!1}=e,P=$e(),C=Vt(),A=P.state.bufferedProgress$;F(i,A,le=>t(12,h=le));let S=P.state.positionWithScrubbing$;F(i,S,le=>t(39,s=le));let v=P.state.duration$;F(i,v,le=>t(1,r=le));let E=P.state.isLive$;F(i,E,le=>t(0,o=le));let G=P.state.isActiveLive$;F(i,G,le=>t(11,p=le));let W=P.ui.isMobile;F(i,W,le=>t(10,f=le));let K=C.features.episodes?P.actions.internal.getVideoEpisodes():void 0,re=P.actions.internal.getPreviewThumbsData(),te=P.state.interactiveEpisodes$;F(i,te,le=>t(40,u=le));let I=P.state.isInteractive,Y=P.state.isInteractiveTime$;F(i,Y,le=>t(2,l=le));let X=P.state.isInteractiveExpectation$;F(i,X,le=>t(38,a=le));let $=P.actions.internal.correctSeekTimeToInteractive,x=P.ui.controls.disabledControls$;F(i,x,le=>t(13,y=le));let D,j,V,Q,De=!1,We="",qe=0,Ze=0,Me=0,ye;function J(le){return!$||!I?le:$(le*r)/r}function ke(le){P.actions.internal.startScrubbing(J(le))}function Fe(le){l||P.actions.internal.progressScrubbing(J(le))}function Ye(le){P.actions.internal.completeScrubbing(J(le)),t(34,De=!1)}function Je(le,oe,Ce){ze(le,oe,Ce),t(34,De=!0)}function he(le,oe,Ce){ze(le,oe,Ce),t(34,De=!0)}function Ve(){t(34,De=!1)}function ze(le,oe,Ce){t(8,Me=le),t(35,qe=oe),Ce&&t(36,Ze=Ce),t(7,We=tt(le))}function tt(le){let oe=bn((o?1-le:le)*r);return o?`-${oe}`:oe}return i.$$set=le=>{"showTimeline"in le&&t(33,b=le.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,D=I?u:K);if(i.$$.dirty[0]&2)e:t(4,j=bn(r));if(i.$$.dirty[1]&256)e:t(5,V=bn(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,Q=s/r);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,ye=a||l);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:Ze,translateXPx:qe,translateYPx:I&&re?-36:-16,active:De&&b&&!ye,pointer:!C.features.timelinePreview||!re||o})},[o,r,l,D,j,V,Q,We,Me,n,f,p,h,y,C,A,S,v,E,G,W,re,te,I,Y,X,x,ke,Fe,Ye,Je,he,Ve,b,De,qe,Ze,ye,a,s,u]}var ou=class extends z{constructor(e){super(),q(this,e,b4,g4,H,{showTimeline:33},m4,[-1,-1])}},Yd=ou;function v4(i){let e,t;return e=new nl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:U("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){L(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=U("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){B(e,n)}}}function y4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=$e().ui.isMobile;F(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 lu=class extends z{constructor(e){super(),q(this,e,y4,v4,H,{position:6,duration:0})}},Lr=lu;function k4(i){we(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 w4(i){let e;return{c(){e=T("div"),c(e,"class","timeline-stub svelte-1gqonyf"),O(e,"mobile",i[2])},m(t,n){w(t,e,n)},p(t,n){n&4&&O(e,"mobile",t[2])},i:me,o:me,d(t){t&&k(e)}}}function C4(i){let e,t,n,o,r=[P4,S4],l=[];function a(s,u){return s[0]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),O(e,"mobile",i[2])},m(s,u){w(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)&&O(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function S4(i){let e,t;return e=new Yd({props:{showTimeline:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function P4(i){let e,t;return e=new Lr({props:{position:i[3],duration:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function I4(i){let e,t,n,o,r=[C4,w4],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=nt()},m(s,u){l[e].m(s,u),w(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&&k(n),l[e].d(s)}}}function T4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,p=$e(),h=p.state.isLive$;F(i,h,A=>t(12,n=A));let y=p.ads.duration;F(i,y,A=>t(4,l=A));let b=p.ads.position;F(i,b,A=>t(3,r=A));let P=p.ui.isMobile;F(i,P,A=>t(2,o=A));let C;return i.$$set=A=>{"isAds"in A&&t(0,a=A.isAds),"canRewindLive"in A&&t(9,s=A.canRewindLive),"isRewindableLive"in A&&t(10,u=A.isRewindableLive),"isHidden"in A&&t(11,f=A.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,C=!f&&(!n||n&&s&&u||a))},[a,C,o,r,l,h,y,b,P,s,u,f,n]}var ru=class extends z{constructor(e){super(),q(this,e,T4,I4,H,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},k4)}},Br=ru;var Jd=require("@vkontakte/videoplayer-shared");function E4(i){let e,t,n,o,r,l=i[2].default,a=Se(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=ne(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){w(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)&&Ie(a,l,f,f[1],r?Pe(l,f[1],p,null):Te(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&&k(e),a&&a.d(f)}}}function A4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var su=class extends z{constructor(e){super(),q(this,e,A4,E4,H,{})}},Zd=su;function M4(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function V4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var au=class extends z{constructor(e){super(),q(this,e,V4,M4,H,{})}},Xd=au;function L4(i){we(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 B4(i){let e,t,n,o;e=new Zd({});function r(s,u){if(s[4]==="FULL")return N4;if(s[4]==="COUNT")return D4}let l=r(i,-1),a=l&&l(i);return{c(){R(e.$$.fragment),t=N(),a&&a.c(),n=nt()},m(s,u){L(e,s,u),w(s,t,u),a&&a.m(s,u),w(s,n,u),o=!0},p(s,u){l===(l=r(s,u))&&a?a.p(s,u):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(k(t),k(n)),B(e,s),a&&a.d(s)}}}function R4(i){let e,t,n,o,r,l;return r=new Xd({}),{c(){e=T("span"),t=Be(i[2]),n=N(),o=T("div"),R(r.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){w(a,e,s),m(e,t),w(a,n,s),w(a,o,s),L(r,o,null),l=!0},p(a,s){(!l||s&4)&&Ge(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(k(e),k(n),k(o)),B(r)}}}function D4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=Be(t),c(e,"class","text count svelte-1yhs2ga")},m(o,r){w(o,e,r),m(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ge(n,t)},d(o){o&&k(e)}}}function N4(i){let e,t;return{c(){e=T("span"),t=Be(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){w(n,e,o),m(e,t)},p(n,o){o&4&&Ge(t,n[2])},d(n){n&&k(e)}}}function O4(i){let e,t,n,o,r=[R4,B4],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=nt()},m(s,u){l[e].m(s,u),w(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&&k(n),l[e].d(s)}}}function F4(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:[O4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function H4(i,e,t){let n,o,r,l,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=$e(),y=h.callbacks?.onEpisodeChanged??Jd.noop,b=!!h.callbacks?.onEpisodeClicked,P=h.ui.currentGridType$;F(i,P,I=>t(18,a=I));let C=h.ui.episodes.openedByKeyboard$;F(i,C,I=>t(17,l=I));let A=h.ui.episodes.panelOpened$;F(i,A,I=>t(3,r=I));let S=h.ui.isMobile;F(i,S,I=>t(6,s=I));let v,E=I=>{if(!!h.callbacks?.onEpisodeClicked){let X=xo(I);C.set(X),A.set(!0),h.callbacks?.onEpisodeClicked?.(X)}},G,W,K,re=async(I,Y,X)=>{await Bn(),I?.getAttribute("aria-expanded")==="false"&&Y&&!X&&(C.set(!1),I.focus())};function te(I){v=I,t(1,v)}return i.$$set=I=>{"position"in I&&t(13,u=I.position),"duration"in I&&t(14,f=I.duration),"timeCodes"in I&&t(0,p=I.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/f);if(i.$$.dirty&114689)e:{let I=Vr(n,f,p);I&&G?.text!==I.text&&(y(I),t(15,G=I))}if(i.$$.dirty&32768)e:t(2,o=G?.text||"");if(i.$$.dirty&262144)e:vn(a,"xl")?t(4,W="FULL"):vn(a,"m")&&Td(a,"xl")?t(4,W="COUNT"):t(4,W="SHORT");if(i.$$.dirty&4)e:t(5,K=`${U("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:re(v,l,r)},[p,v,o,r,W,K,s,b,P,C,A,S,E,u,f,G,n,l,a,te]}var uu=class extends z{constructor(e){super(),q(this,e,H4,F4,H,{position:13,duration:14,timeCodes:0},L4)}},Rr=uu;function z4(i){let e,t,n,o,r=i[2].default,l=Se(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=ne(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){w(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)&&Ie(l,r,u,u[1],o?Pe(r,u[1],f,null):Te(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&&k(e),l&&l.d(u)}}}function q4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var cu=class extends z{constructor(e){super(),q(this,e,q4,z4,H,{})}},xd=cu;function U4(i){let e,t;return e=new xd({}),{c(){R(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){B(e,n)}}}function K4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:U("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[U4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function W4(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 fu=class extends z{constructor(e){super(),q(this,e,W4,K4,H,{ref:0,hidden:1,disabled:2,click:3})}},Dr=fu;function G4(i){let e,t,n,o,r=i[2].default,l=Se(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=ne(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){w(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)&&Ie(l,r,u,u[1],o?Pe(r,u[1],f,null):Te(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&&k(e),l&&l.d(u)}}}function j4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var du=class extends z{constructor(e){super(),q(this,e,j4,G4,H,{})}},$d=du;function Q4(i){we(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function Y4(i){let e,t;return e=new $d({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Z4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var mu=class extends z{constructor(e){super(),q(this,e,Z4,Y4,H,{isOpened:0},Q4)}},em=mu;function X4(i){let e,t;return e=new em({props:{isOpened:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function J4(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:[X4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function x4(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?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var pu=class extends z{constructor(e){super(),q(this,e,x4,J4,H,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Nr=pu;function $4(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function e3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var _u=class extends z{constructor(e){super(),q(this,e,e3,$4,H,{})}},Or=_u;var im=require("@vkontakte/videoplayer-shared");function t3(i){we(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 tm(i){let e;return{c(){e=T("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){w(t,e,n)},d(t){t&&k(e)}}}function i3(i){let e,t,n,o,r=i[1]&&tm(i);return n=new Or({}),{c(){r&&r.c(),e=N(),t=T("div"),R(n.$$.fragment),c(t,"class","svelte-1ot3duq"),O(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),w(l,e,a),w(l,t,a),L(n,t,null),o=!0},p(l,a){l[1]?r||(r=tm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&O(t,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(t)),r&&r.d(l),B(n)}}}function n3(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:U("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:qn.KeyK,$$slots:{default:[i3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function o3(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=im.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 hu=class extends z{constructor(e){super(),q(this,e,o3,n3,H,{ref:0,isMobile:1,disabled:2,className:3,click:4},t3)}},Al=hu;function l3(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function r3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var gu=class extends z{constructor(e){super(),q(this,e,r3,l3,H,{})}},nm=gu;function s3(i){let e,t;return e=new nm({}),{c(){R(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){B(e,n)}}}function a3(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:U("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[s3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function u3(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 bu=class extends z{constructor(e){super(),q(this,e,u3,a3,H,{ref:0,hidden:1,disabled:2,click:3})}},Fr=bu;var vu=require("@vkontakte/videoplayer-shared");function c3(i){we(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 f3(i){let e,t,n,o;return{c(){e=T("img"),c(e,"class","icon svelte-1x1zctw"),_s(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(r,l){w(r,e,l),n||(o=pe(e,"error",i[7]),n=!0)},p(r,l){l&1&&!_s(e.src,t=r[0])&&c(e,"src",t)},d(r){r&&k(e),n=!1,o()}}}function d3(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){w(t,e,n)},p:me,d(t){t&&k(e)}}}function m3(i){let e;function t(r,l){return r[5]?d3:f3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=nt()},m(r,l){o.m(r,l),w(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function p3(i){let e,t;return e=new mt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[m3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function _3(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=vu.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===vu.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 yu=class extends z{constructor(e){super(),q(this,e,_3,p3,H,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},c3)}},Hr=yu;var Em=require("@vkontakte/videoplayer-shared");var nn=require("@vkontakte/videoplayer-core"),pE=require("@vkontakte/videoplayer-shared"),ut=require("@vkontakte/videoplayer-shared"),Zn=require("@vkontakte/videoplayer-statistics"),_E=require("@vkontakte/videoplayer-interactive");var Pt=require("@vkontakte/videoplayer-shared");var om=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var h3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",zr=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)(h3,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"}),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,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,y=this.playerState&&xe(this.playerState.vsid);y&&(h=parseInt(y,36));let b={dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:om(t,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...u},P={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:b,browser:{mobile:!1}},C=new window.AdmanHTML;C.setDebug(!1),C.onReady(this.onAdsReady),C.onStarted(this.onAdStarted),C.onPlayed(this.onAdPlayed),C.onPaused(this.onAdPaused),C.adMidrollPoint(this.onAdMidrollPoint),C.onClosed(this.onAdClosed),C.onSkipped(this.onAdSkipped),C.onClicked(this.onAdClicked),C.onTimeRemained(this.onAdTimeRemained),C.onCompleted(this.onAdCompleted),C.onError(this.onAdError),C.init(P),this.adman=C,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(P)}`})}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=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,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 lm=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 ku=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(let a of l)if(!r.startTime&&!r.endTime){let s=new qr,{startTime:u,endTime:f}=s.parse(a);r.startTime=u,r.endTime=f}else if(a.trim()!==""){let s=new wu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},qr=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,l=Number(t)*60,a=Number(n),s=+`0.${o}`;return r+l+a+s}},wu=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 qr;for(let l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},rm=ku;var Ur=require("@vkontakte/videoplayer-shared"),fo,Tn,Cu=0,Su=!1,sm=(i,e,t)=>{let n=i>=Cu,o=i<Cu,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(Cu=i,o&&(Su=!1),(0,Ur.isNonNullable)(fo)&&l(i,fo.startTime,fo.endTime)&&fo.lang===e.value)return fo;if(!(0,Ur.isNonNullable)(Tn)&&s?.length&&!Su){let u=s.find(({startTime:f,endTime:p})=>l(i,f,p)||n&&r(i,f,p));Tn=u&&{...u,lang:e.value},fo=void 0,!(0,Ur.isNonNullable)(Tn)&&s[s.length-1].endTime<i&&(Su=!0);return}else{if(l(i,Tn?.startTime,Tn?.endTime))return fo=Tn,Tn=void 0,fo;(n&&a(i,Tn?.startTime,Tn?.endTime)||o&&r(i,Tn?.startTime,Tn?.endTime))&&(Tn=void 0)}};var Kr={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 am=require("@vkontakte/videoplayer-shared"),um=require("@vkontakte/videoplayer-statistics"),Wr=class{constructor(e,t){this.oneStat=new um.OneStat(e,t),this.statSubscription=new am.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var cm=({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:y,disabledControls:b,isInteractive:P,interactiveRanges$:C,isInteractiveTime$:A,replayInteractive:S,hasInteractiveBranches:v,playPrevChapterDisabledTooltip:E,additionalButtons:G,looped:W=!1,statistics:K})=>{let re={...h,configName:[...h.configName??[],"ui"],isAudioDisabled:r,live:{...h.live??{},isLiveCatchUpMode:!!n}},te=p,I=y||new nn.Player(re),Y=new ut.Logger,X=new zr(Y,{loadTimeout:te.ads.loadTimeout,initTimeout:te.ads.initTimeout}),$=To.getInstance(),x=s?.pictureInPictureApi,D=s?.annotationsApi,j=Y.createComponentLog("Store"),V,Q,De={},We=(0,ut.getCurrentBrowser)(),qe=K?gt(K.oneStat.vsid$):Cn(void 0),Ze=Re(lo()),Me=x?.info.isActive$??new ut.ValueSubject(!1),ye=x?.info.type,J=Re(0),ke=Re([]),Fe=(0,ut.merge)(I.events.fatalError$,I.events.managedError$).subscribe(g=>ke.update(ae=>[...ae,g])),Ye=Cn(!1,g=>{let ae=I.events.fatalError$.subscribe(()=>g(!0));return()=>ae.unsubscribe()}),Je=async g=>{let ae=Object.values(ut.InterfaceLanguage).includes(g);if(te.downloadVKLanguages&&(ae&&te.updateBuiltinLanguages||!Ts(g))){let Ke;try{Ke=await(0,ut.loadVKLangPack)(g,Qc,Yc)}catch(ot){K?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),$?.report(ot,{errorType:"VKLangPack",fatal:!1})}Ke&&(Is({language:g,pack:Ke,fallback:te.defaultLanguage}),he.set(g))}Ts(g)&&he.set(g)},he=Re(i);Je(i);let Ve=(g,ae)=>{let Ae=xe(he);return Es(Ae,g,ae,te.defaultLanguage)},ze=Re("thumb"),tt=(()=>{let g=vi([Ye,ze],([ae,Ae])=>ae?"crashed":Ae);return{...g,is:ae=>xe(g)===ae}})(),le=(()=>{let g=Re(new Set(b));return{...g,add:ae=>{g.update(Ae=>new Set([...Ae].concat(ae)))},remove:ae=>{g.update(Ae=>{let Ke=[...Ae];return new Set(Array.isArray(ae)?Ke.filter(ot=>!ae.includes(ot)):Ke.filter(ot=>ot!==ae))})},includes:ae=>{let Ae=xe(g);return Array.isArray(ae)?ae.every(Ke=>Ae.has(Ke)):Ae.has(ae)}}})();j({message:"create store"});let oe=g=>{let ae=g.container;ae.append(I.experimental.element$.getValue()),st=new MutationObserver(Ae=>{let{removedNodes:Ke}=Ae[0];Ke.length&&ae.append(I.experimental.element$.getValue())}),st.observe(ae,{childList:!0})},Ce=g=>{j({message:`init video, config: ${JSON.stringify(g)}`}),P?oe(g):I.initVideo(g),g.subtitles&&I.setExternalTextTracks(g.subtitles),V=g},fe=new ut.Subject,Ee=g=>fe.next(g),je=new ut.Subject,rt=new ut.Subject,dt=new ut.Subject,st=null,de={actionRewind$:je,actionSeek$:rt,inPiP$:Me,inFullscreen$:new ut.Observable(g=>Ze.subscribe(ae=>g.next(ae))),actionSetSubtitle$:dt,nextMovie$:fe};if(K){let{oneStat:g,statSubscription:ae}=K;ae.add(g.attachTo(I)),ae.add(g.attachToUi(de)),ae.add(g.attachToAds(X.events)),g.authorize(o).catch(Ae=>{j({message:`onestat auth error ${String(Ae)}`})})}if($){let g=new ut.Subscription,ae=(Ae,Ke)=>g.add(Ae.subscribe(Ke));if(ae(I.events.managedError$,Ae=>{$.logIError(Ae)}),ae(I.events.fatalError$,Ae=>{$.logIError(Ae,!0)}),K){let{oneStat:Ae}=K;ae(Ae.experimental.error$,Ke=>{$.logIError(Ke)})}$.sentrySubscription.add(g)}let ct=()=>{(0,ut.isIOS)()&&Q&&Sf(Q)},It=new ut.Subscription().add(I.experimental.element$.subscribe(g=>{g&&(Q=g,g.classList.add("player-media"),Ao(x)&&(x.updateVideoElement(),x.registryEventHandlers()),P&&g.setAttribute("pip","false"))})).add(I.events.ended$.subscribe(()=>{ct(),a?.onEnded?.()})).add(I.events.started$.subscribe(async()=>{Ao(x)&&await x?.revealPictureInPicture();let g=I.info.muted$.getValue();a?.onStarted?.(),De.onStarted?.(g)})).add(I.events.willSeek$.subscribe(({from:g,to:ae})=>{a?.onSeek?.(g,ae)})).add(I.info.position$.subscribe(g=>{let ae=I.info.duration$.getValue();a?.onTimeupdate?.(ae,g),X.setPosition(g,ae)})).add(I.events.fatalError$.subscribe(()=>{a?.onCrashed?.()})).add(I.events.firstBytes$.subscribe(()=>{pt.state.isFirstBytes$.set(!0)})).add(I.info.is3DVideo$.subscribe(g=>{pt.ui.is3DVideo.set(g)})).add(I.info.isEnded$.subscribe(g=>{P&&(g?(A?.getValue()&&le.add(jl),le.add("PLAY_BUTTON")):le.remove("PLAY_BUTTON"))})).add(I.info.liveTime$.subscribe(g=>{a?.onLiveTime?.(g)})).add(I.info.isStalled$.subscribe(g=>{a?.onStalledChanged?.(g)})).add(X.events.started$.subscribe(()=>{a?.adsInfo?.onStarted?.()})).add(X.events.ended$.subscribe(()=>{a?.adsInfo?.onCompleted?.()})),_t=new ut.Subscription,yt=()=>{_t.add(I.events.log$.subscribe(g=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${g.component}`,g.message)})).add(Y.log$.subscribe(g=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${g.component}.`,g.message)}))},Lt=()=>{_t.unsubscribe()},Ue=(g,ae)=>{I.startCameraManualRotation(g,ae)},Qt=(g=!1)=>{I.stopCameraManualRotation(g)},ve=(g,ae,Ae)=>{I.moveCameraFocusPX(g,ae,Ae)},bt=()=>{I.holdCamera()},Tt=()=>{I.releaseCamera()},Xe=Cn(I.info.position$.getValue(),g=>{let ae,Ae,Ke=()=>{let ot=I.info.playbackState$.getValue(),jt=I.info.isLive$.getValue(),ti=I.info.duration$.getValue(),Nt=I.info.position$.getValue();if([nn.PlaybackState.PLAYING,nn.PlaybackState.PAUSED].includes(ot)){let hn=jt?Nt-ti:I.getExactTime();hn!==Ae&&g(hn),Ae=hn}ae=requestAnimationFrame(Ke)};return Ke(),()=>cancelAnimationFrame(ae)}),at=gt(Me),kt=gt(I.info.playbackState$),Et=gt(I.info.currentBuffer$),yi=gt(I.info.isEnded$),ki=gt(I.info.isLive$),wi=te.features.playbackRate?gt(I.info.canChangePlaybackSpeed$):Cn(!1),Qi=gt(I.info.liveBufferTime$),ln=gt(I.info.volume$),si=gt(I.info.muted$),ai=ks(I.info.autoQualityLimits$.pipe((0,ut.map)(({max:g})=>g!==void 0)),I.info.autoQualityLimits$.getValue()?.max!==void 0),Ci=gt(I.info.autoQualityLimitingAvailable$),Yt=gt(I.info.availableQualities$),ui=gt(I.info.availableQualitiesFps$),Yi=gt(I.info.chromecastState$),Si=gt(I.info.chromecastDeviceName$),Pi=gt(I.info.currentFormat$),ci=gt(I.info.throughputEstimation$),Ii=gt(I.info.videoBitrate$),fi=gt(I.info.intrinsicVideoSize$),Ti=gt(I.info.duration$),Ei=gt(I.info.isAudioAvailable$),Mt=null,zt=I.info.isBuffering$,Zt=Cn(zt.getValue(),g=>{let ae=zt.subscribe(Ae=>{Ae&&Mt===null?Mt=window.setTimeout(()=>{g(zt.getValue()),Mt=null},te.loaderDelay):g(Ae)});return()=>{ae.unsubscribe(),Mt&&clearTimeout(Mt)}}),di=()=>{Mt&&clearTimeout(Mt),Mt=null},Ft=vi([Ti,ki],([g,ae])=>ae?-g:g),mi=vi([kt],([g])=>g===nn.PlaybackState.PLAYING),Xt=gt(I.info.atLiveEdge$),ii=gt(I.info.atLiveDurationEdge$),Bt=gt(I.info.position$),Rt=vi([Bt,Ti],([g,ae])=>isFinite(g)&&isFinite(ae)&&!!ae),qt=vi([Yi],([g])=>g===nn.ChromecastState.CONNECTED),Jt=Re(void 0),pi=gt(I.info.isAutoQualityEnabled$,g=>g&&Jt.set(void 0)),cn=gt(I.info.currentQuality$,()=>Jt.set(void 0)),Zi=vi([Jt,cn],([g,ae])=>g??ae),xt=vi([Yt,ui,pi,Zi,Pi],([g,ae,Ae,Ke,ot])=>{let jt=[];ot!==nn.VideoFormat.MPEG&&jt.push({value:"auto",displayValue:Ve("auto_quality_option"),selected:Ae});let ti=g.filter(Nt=>Nt!==ut.VideoQuality.INVARIANT);for(let Nt of ti){let hn=ae[Nt],Mn=Nt===ut.VideoQuality.INVARIANT?Ve("auto_quality_option"):Nt;jt.push({value:Nt,displayValue:`${Mn}${hn?lm(hn):""}`,selected:Ae?!1:Nt===Ke})}return jt}),ni=gt(I.info.currentPlaybackRate$),Ai=vi([ni,Xt,ii],([g,ae,Ae])=>{let Ke=Ae||P?1:te.controls.playbackRateMin,ot=ae?1:te.controls.playbackRateMax,jt=te.controls.playbackRateStep,ti=[];for(let Nt=Ke;Nt<=ot;Nt+=jt)ti.push({value:Nt,displayValue:Nt===1?Ve("playback_rate_1"):Ve("playback_rate",{multiplier:Nt.toString(10)}),selected:g===Nt});return ti}),zi=te.features.subtitles?gt(I.info.availableTextTracks$):Cn([]),Ut=vi([zi],([g],ae)=>{let Ae=[],Ke=[];for(let ot of g)ot.url&&Ae.push(fetch(ot.url));Promise.allSettled(Ae).then(ot=>{for(let[jt,ti]of ot.entries())ti.status==="fulfilled"&&ti.value.text().then(Nt=>{let hn=new rm,Mn=g[jt].language,_l=!!g[jt].isAuto,zo=hn.parse(Nt);Mn&&zo&&Ke.push({lang:Mn,subtitles:zo,isAuto:_l}),jt===ot.length-1&&ae(Ke)})})}),wt={displayValue:Ve("subtitles_off"),value:"off"},Mi=Re({...wt}),Xi=vi([Ut,Mi,Ut],([g,ae])=>{if(g?.length>0){let Ae=[{...wt,selected:ae?.value===wt.value}];for(let{lang:Ke,isAuto:ot}of g)Kr[Ke]&&Ae.push({displayValue:ot?Ve("subtitles_auto",{language:Kr[Ke]}):Kr[Ke],value:Ke,selected:ae?.value===Ke,isAuto:ot});return Ae}else return[]}),oi=vi([Xe,Mi,Ut],([g,ae,Ae])=>{if(ae&&ae.value!==wt.value)return sm(g,ae,Ae)}),Ji=vi([oi],([g])=>g?.texts?g.texts:[]),_i=Re(!0),rn=vi([Et,Ft,Bt,Qi],([g,ae,Ae,Ke])=>{let ot=g?.end??0;if(!Ke)return ot/ae;let ti=-Ae+Ke-ae;return(ot-ti)/ae}),xi=gt(I.info.availableSources$),sn=vi([xi],([g])=>Object.keys(g?.[nn.VideoFormat.MPEG]||{}).length>0),qi=()=>{let g=Object.keys(I.info.availableSources$?.getValue()?.[nn.VideoFormat.MPEG]||{}),ae=(0,ut.getHighestQuality)(g)||ut.VideoQuality.Q_144P;return V.sources[nn.VideoFormat.MPEG]?.[ae]},Vi=()=>{let g=qi();g?sf(g,V?.meta?.title||"video"):j({message:"There is no URL for download video"})},Kt=()=>{j({message:"toggle muted"});let g=I.info.muted$.getValue(),Ke=!(I.info.volume$.getValue()===0||g);gi(Ke)},$t=()=>{pt.ui.settingsMenuVisible.set(!1)},hi=g=>{pt.ui.settingsMenuOpenedByKeyboard.set(!!g),pt.ui.settingsMenuVisible.set(!0)},Ui=g=>{xe(pt.ui.settingsMenuVisible)?$t():hi(g)},Ki=(g,ae=g,Ae=!1)=>{let Ke=!Ae,ot=I.info.muted$.getValue();j({message:`set volume, volume: ${g}, preferredVolume: ${ae}, internalCall: ${Ke}`}),I.setVolume(g),X.setVolume(g),Ke&&a?.onVolumeChange?.(g),Cs(ae),ot?(I.setMuted(!1),Ke&&a?.onUnmute?.(),Xl(!1)):!ot&&g===0&&(I.setMuted(!0),Ke&&a?.onMute?.(),Xl(!0))},gi=(g,ae=!1)=>{let Ae=!ae,Ke=I.info.volume$.getValue();if(j({message:`set muted, currentVolume: ${Ke}, mute: ${g}, internalCall: ${Ae}`}),I.setMuted(g),X.setVolume(g?0:Ke),Xl(g),Ae&&(g?a?.onMute?.():a?.onUnmute?.()),Ke===0){let ot=Zl()??te.volumeDefault;ot===0&&(ot=te.volumeMinRestore,Cs(ot)),I.setVolume(ot),X.setVolume(ot),Ae&&a?.onVolumeChange?.(ot)}},Li=Re(!1),Bi=g=>{Li.set(g),I.setLooped(g)};Bi(W);let Qe=()=>{I.prepare()},Wi=()=>{if((0,ut.assertNonNullable)(pt),!xe(pt.ui.controls.disabledControls$).has("PLAY_BUTTON")){if(j({message:"toggle play"}),xe(pt.playerPhase)==="ads"){X.togglePlay();return}if(I.info.playbackState$.getValue()!==nn.PlaybackState.PLAYING){if(I.info.isEnded$.getValue()){if(j({message:"toggle play, video ended, seek to 0"}),je.next(),rt.next(Zn.SeekAction.REWIND),P){S?.();return}I.seekTime(0)}j({message:"toggle play, call player.play"}),I.play(),a?.onPlay?.()}else j({message:"toggle play, call player.pause"}),I.pause(),a?.onPause?.()}},Ht=g=>{j({message:`set quality, quality: ${g}`}),I.setAutoQuality(g==="auto"),g!=="auto"?(df(e,g),Jt.set(g),I.setQuality(g)):Ss()},He=g=>{j({message:`set trafficSavingEnabled, value: ${g}`}),I.setAutoQualityLimits({max:g?te.trafficSavingLimit:void 0}),gf(g)},Ri=g=>{I.setPlaybackRate(g)},$i=()=>{let g=xe(Ai),ae=g.findIndex(({selected:Ke})=>Ke);if(ae===g.length-1)return;let Ae=g[ae+1];Ri(Ae.value)},Gi=()=>{let g=xe(Ai),ae=g.findIndex(({selected:Ke})=>Ke);if(ae===0)return;let Ae=g[ae-1];Ri(Ae.value)},Di=g=>{g&&g.value!==wt.value&&dt.next(g.isAuto?g.value+"_auto":g.value),Mi.set(g)},an=()=>{let g=xe(Xi),ae=xe(Mi),Ae=xe(he);if(ae?.value===wt.value){let Ke=g.filter(ot=>ot.value!==wt.value).find(ot=>ot.value===Ae)||g[1];Di(Ke??{...wt})}else Di({...wt,selected:!1})},Ni=(g,ae,Ae=!0)=>{if(j({message:`seek to time, time: ${g}`}),rt.next(ae),I.info.isLive$.getValue()){let Ke=I.info.duration$.getValue(),ot=Math.min(0,Ke+g);I.seekTime(ot,Ae)}else{if(A?.getValue())return;I.seekTime(bo(g),Ae)}},en=g=>{j({message:`seek to episode start time: ${g}`}),Ni(g,Zn.SeekAction.EPISODE,!0)},Wt=(g,ae)=>{j({message:`seek to percent, percent: ${g}`});let Ae=Math.round(xe(Ft)*g);Ni(Ae,ae,!1)},tn=g=>{j({message:`seek external, time: ${g}`}),rt.next(Zn.SeekAction.UNKNOWN),I.seekTime(I.info.isLive$.getValue()?-g:g)},li=g=>{j({message:`set auto quality limitation. Max: ${g.max??"none"}. Min: ${g.min??"none"}`}),I.setAutoQualityLimits(g)},se=g=>{j({message:`seek external to episode start time: ${g}`}),Ni(g,Zn.SeekAction.EPISODE,!0)},ft=g=>{j({message:`set playback rate to: ${g}`}),I.setPlaybackRate(g)},Gt=Re(void 0),ei=Re(!1),Oi=g=>{j({message:`start scrubbing, progress: ${g}`}),ei.set(!0),Fi(g)},Fi=g=>{Gt.set(g)},yn,kn,mn=()=>{Gt.set(void 0),ei.set(!1)},Dt=()=>{clearTimeout(kn),clearTimeout(yn),yn=window.setTimeout(()=>{mn()},500),Q?.removeEventListener("seeked",Dt)},Nn=g=>{j({message:`complete scrubbing, progress: ${g}`}),Wt(g,Zn.SeekAction.SLIDER),xe(pt.ui.isMobile)&&xe(pt.state.currentFormat$)===nn.VideoFormat.HLS?(Q?.addEventListener("seeked",Dt),kn=window.setTimeout(()=>{Dt()},300)):mn()},On=vi([Xe,Ft,Gt],([g,ae,Ae],Ke)=>{Ke((0,ut.isNonNullable)(Ae)?Ae*ae:g)}),wn=Re({width:0,height:0}),En=vi([wn],([{width:g}],ae)=>{let Ae=Ed(g);ae(Ae)}),pn=Re(!1),fn=vi([En,pn],([g,ae])=>ae?G.filter(Ae=>!Ae.hideOnMobile):G.filter(Ae=>!Ae.hideOnDesktopGridTypes?.includes(g))),ie=vi([pn,Ye],([g,ae],Ae)=>{Ae(g&&ae)}),vt=()=>{rt.next(Zn.SeekAction.LIVE),j({message:"switch to active live"}),I.seekTime(0),I.info.playbackState$.getValue()!==nn.PlaybackState.PLAYING&&pt.actions.internal.togglePlay()},An=()=>X.skip(),Fn=(g=!0)=>{(0,ut.assertNonNullable)(pt),j({message:`switch from ads to video, callPlay: ${g}`}),ze.set("video"),g&&I.play()},Hn=()=>{(0,ut.assertNonNullable)(pt),j({message:"switch from video to ads"}),pt.actions.internal.pause(),ct(),ze.set("ads")},Xn=g=>{(0,ut.assertNonNullable)(pt);let ae=g?"waitingLive":"thumb";ze.set(ae)},Jn=g=>{(0,ut.assertNonNullable)(pt);let ae=g?"waitingRecord":"thumb";ze.set(ae)},xn=()=>((0,ut.assertNonNullable)(pt),lf(I,V,pt)),$n=()=>((0,ut.assertNonNullable)(pt),rf(I,V,pt)),eo=()=>Q,po=()=>{j({message:"toggle chromecast"}),I.toggleChromecast()},ee=g=>{(0,ut.assertNonNullable)(pt);let ae=!g;if(xe(pt.playerPhase)==="ads"){j({message:`pause ads, internalCall: ${ae}`}),X.pause();return}j({message:`pause video, internalCall: ${ae}`}),ae&&a?.onPause?.(),I.pause()},_n=g=>{(0,ut.assertNonNullable)(pt);let ae=!g;if(xe(pt.playerPhase)==="ads"){j({message:`play ads, internalCall: ${ae}`}),X.play();return}j({message:`play video, internalCall: ${ae}`}),ae&&a?.onPlay?.(),I.play()},_o=(g,ae)=>{(0,ut.assertNonNullable)(pt),j({message:`first start, show ads: ${g}, internalCall: ${!ae}`}),g?ze.set("ads"):(ze.set("video"),ae?I.play():pt.actions.internal.togglePlay())},ho=()=>(j({message:"getting time codes"}),u),to=()=>{let g=ho();if(!g||[0,1].includes(g.length))return;let ae=I.info.position$.getValue();return g.find(Ae=>Ae.time>ae)},No=g=>{let ae=g;ae||(ae=to()),ae&&(j({message:"seek to next episode"}),Ni(ae.time,Zn.SeekAction.EPISODE,!0))},zn=()=>{let g=ho();if(!g||[0,1].includes(g.length))return;let ae=I.info.position$.getValue(),Ae=g.findIndex(ot=>ot.time>ae),Ke=Ae===-1?g.length-2:Ae-2;if(!(Ke<0))return g[Ke]},io=g=>{let ae=g;ae||(ae=zn()),ae&&(j({message:"seek to prev episode"}),Ni(ae.time,Zn.SeekAction.EPISODE,!0))},Oo=()=>(j({message:"getting preview thumbs data"}),f),Fo=async()=>{x?.isActive()?await x?.remove():await x?.request()},pl=(g=-90)=>{J.update(ae=>ae+g)},Gn=Re([]);C?.subscribe(g=>{let ae=[];for(let Ae=0;Ae<g.length;Ae++){let{range:[Ke,ot],subjects:jt}=g[Ae];Ae===0&&Ke!==0&&ae.push({time:0,text:"",interactive:!1,completed:!0}),ae.push({time:Ke/1e3,text:"",interactive:!0,completed:!jt.length}),ot!==1/0&&ae.push({time:ot/1e3,text:"",interactive:!1,completed:!0})}Gn.set(ae)});let go=Re(!1);A?.subscribe(g=>{g&&xe(ei)&&mn()});let bo=g=>{if(!P)return g;let ae=xe(Gn),Ae=xe(Ft),ot=xe(Bt)/Ae,jt=ae.find(ti=>ti.interactive&&!ti.completed&&ti.time>ot);return typeof jt?.time=="number"?Math.min(g,jt.time-.05):g},Ho=()=>{pt.ui.episodes.panelOpened$.set(!1)},vo=()=>{clearTimeout(kn),clearTimeout(yn),It.unsubscribe(),_t.unsubscribe(),I.destroy(),X.destroy(),K?.destroy(),$?.destroy(),Fe.unsubscribe(),st?.disconnect(),st=null},pt={interfaceLanguage$:he,initVideo:Ce,videoId:e,isClip:t,playerPhase:tt,vsid:qe,state:{positionExact$:Xe,positionWithScrubbing$:On,duration$:Ft,playbackState$:kt,isPlaying$:mi,isLoaderVisible:Zt,bufferedProgress$:rn,isLive$:ki,canChangePlaybackSpeed$:wi,isActiveLive$:Xt,isOldestAvailableLive$:ii,isRewindableLive$:Rt,isEnded$:yi,muted$:si,volume$:ln,trafficSavingEnabled$:ai,autoQualityLimitingAvailable$:Ci,currentQuality$:Zi,isAutoQualityEnabled$:pi,availableQualities$:xt,currentPlaybackRate$:ni,availablePlaybackRates$:Ai,currentSubtitle$:Mi,availableSubtitlesList$:Xi,currentSubtitleCaptions$:Ji,isAutoSubtitleCaptionVisible$:_i,chromecastState$:Yi,chromecastDeviceName$:Si,chromecastConnected$:qt,currentFormat$:Pi,throughputEstimation$:ci,videoBitrate$:Ii,videoSize$:fi,errorLog$:ke,crashed$:Ye,isAudioAvailable$:Ei,isAudioDisabled:!!r,canDownload:te.features.download&&!!l,availableSources$:xi,hasMpegSources$:sn,isInteractive:P,showInteractiveGraph:te.features.interactiveGraph,showSeekToInteractive:te.features.seekToInteractive,showPlayPrevChapter:te.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:te.features.interactiveTimeIndicator&&!!xe(Gn).length,interactiveEpisodes$:Gn,isInteractiveTime$:A?gt(A):Re(!1),graphIsOpened$:Re(!1),isInteractiveExpectation$:go,hasInteractiveBranches:v,playPrevChapterDisabledTooltip:E,looped$:Li,isFirstBytes$:Re(!1)},ui:{controlsVisible:Re(!1),touched:Re(!1),controls:{prevButton:Re(void 0),playButton:Re(void 0),replayButton:Re(void 0),nextButton:Re(void 0),playPrevChapterButton:Re(void 0),seekToInteractiveButton:Re(void 0),interactiveGraphButton:Re(void 0),liveButton:Re(void 0),time:Re(void 0),episodes:Re(void 0),volume:Re(void 0),subtitles:Re(void 0),settings:Re(void 0),context:Re(void 0),chromecast:Re(void 0),pip:Re(void 0),fullscreen:Re(void 0),vkLogo:Re(void 0),interactiveTimeIndicator:Re(void 0),additionalButtons:G.length?G.reduce(g=>[...g,Re(void 0)],[]):[],disabledControls$:le},modals:{hotKeyMap:{show:Re(!1),data:Re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ze,rotateAlpha:J,isAutoplay:Re(!1),debugPanelVisible:Re(!1),episodes:{panelOpened$:Re(!1),openedByKeyboard$:Re(!1)},contextMenu:{visible$:Re(!1),btnRef$:Re(void 0),openedByBtnKeyboard$:Re(!1),openedByHotKey$:Re(!1),lastActiveElem$:Re(void 0),showContextMenuBtn$:Re(!1),position$:Re({top:0,left:0})},playerSize:wn,isMobile:pn,mobileNotReportControlHidden$:ie,mobileUnmuteButtonExpanded:Re(!1),mobileUnmuteButtonVisible:Re(!1),icon3DVideoVisible:Re(!1),settingsMenuVisible:Re(!1),settingsMenuOpenedByKeyboard:Re(!1),scrubbingInProgress:ei,is3DVideo:Re(!1),isPictureInPictureActive$:at,pictureInPictureType$:Cn(ye),clientInfo$:Cn(We),currentGridType$:En,additionalButtons$:fn,interactiveHideMobileControls:Re(!1),overlayContainer$:Re(void 0),startedByKeyboard$:Re(!1)},ads:{position:Re(0),duration:Re(0),playbackState:Re("inactive"),canSkip:Re(!1),secondsToWatchBeforeSkip:Re(0),postrollPassed:Re(!1)},webApi:{pictureInPictureApi:x,annotationsApi:D},actions:{internal:{preload:Qe,firstStart:g=>_o(g,!1),pause:()=>ee(!1),togglePlay:Wi,toggleMuted:Kt,toggleSettingsMenu:Ui,openSettingsMenu:hi,closeSettingsMenu:$t,setVolume:Ki,setQuality:Ht,setTrafficSavingEnabled:g=>He(g),setPlaybackRate:Ri,incrementPlaybackRate:$i,decrementPlaybackRate:Gi,setSubtitle:Di,toggleSubtitle:an,togglePictureInPicture:Fo,startScrubbing:Oi,progressScrubbing:Fi,completeScrubbing:Nn,toggleChromecast:po,switchToActiveLive:vt,switchFromAdsToVideo:Fn,switchFromVideoToAds:Hn,skipAd:An,setWaitingLive:Xn,setWaitingRecord:Jn,getDebugTextData:xn,getDebugPanelData:$n,getVideoElement:eo,seekTime:(g,ae,Ae)=>Ni(g,ae,Ae),clearDelayedBufferingCheckTimeout:di,seekEpisodeStartTime:en,seekToPercent:Wt,getNextEpisode:to,seekToNextEpisode:No,getPrevEpisode:zn,seekToPrevEpisode:io,startLogging:yt,stopLogging:Lt,startCameraManualRotation:Ue,stopCameraManualRotation:Qt,moveCameraFocusPX:ve,holdCamera:bt,releaseCamera:Tt,getVideoEpisodes:ho,getPreviewThumbsData:Oo,downloadVideo:Vi,addLanguage:Is,setLanguage:Je,nextMovie:Ee,videoRotate:pl,correctSeekTimeToInteractive:bo,replayInteractive:S,setLooped:Bi},external:{firstStart:g=>_o(g,!0),play:()=>_n(!0),pause:()=>ee(!0),seekTime:g=>tn(g),seekEpisodeStartTime:g=>se(g),setPlaybackRate:g=>ft(g),setAutoQualityLimits:g=>li(g),setMuted:g=>gi(g,!0),setVolume:g=>Ki(g,g,!0),returnFocusToEpisodes:Ho}},callbacks:a,setUiCallbacks:g=>{De={...g}},getAdmanWrapper:()=>X,getLogger:()=>Y,destroy:vo};return pt};var jr=(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 Qr=async(i,e,t)=>{await Bn(),e&&t&&(t.focus(),i.set(!1))};function b3(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function v3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Pu=class extends z{constructor(e){super(),q(this,e,v3,b3,H,{})}},fm=Pu;function y3(i){let e,t;return e=new fm({}),{c(){R(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){B(e,n)}}}function k3(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:[y3]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function w3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=$e(),a=l.ui.contextMenu.visible$;F(i,a,A=>t(3,n=A));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,f=l.ui.contextMenu.position$,p=l.ui.contextMenu.btnRef$,h,y=A=>{let S=xo(A),v=Kf(h);f.set(v),s.set(S),a.set(!n)},b=()=>{u.set(!0)},P=()=>{u.set(!1)};function C(A){h=A,t(2,h)}return i.$$set=A=>{"disabled"in A&&t(0,o=A.disabled),"ariaLabel"in A&&t(1,r=A.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&p.set(h)},[o,r,h,n,a,y,b,P,C]}var Iu=class extends z{constructor(e){super(),q(this,e,w3,k3,H,{disabled:0,ariaLabel:1})}},dm=Iu;function C3(i){we(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 S3(i){let e,t;return e=new Cr({props:{completed:!0}}),{c(){R(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){B(e,n)}}}function P3(i){let e,t,n,o,r,l,a,s,u,f;function p(y){i[22](y)}let h={tooltipContent:U("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[S3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new At({props:h}),_e.push(()=>Oe(t,"ref",p)),t.$on("click",i[14]),{c(){e=T("div"),R(t.$$.fragment),o=N(),r=T("div"),l=N(),a=T("div"),c(r,"class","ref-block svelte-17imlp9"),O(r,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),O(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),O(e,"mobile",i[2]),O(e,"fullscreen",i[6]),O(e,"invisible",i[1])},m(y,b){w(y,e,b),L(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",lt(i[21])),pe(e,"mouseleave",i[15])],u=!0)},p(y,b){let P={};b[0]&32&&(P.tooltipActive=y[5]),b[1]&1&&(P.$$scope={dirty:b,ctx:y}),!n&&b[0]&1&&(n=!0,P.ref=y[0],Ne(()=>n=!1)),t.$set(P),(!s||b[0]&2)&&O(r,"hidden",y[1]),(!s||b[0]&16)&&O(a,"paused",y[4]),(!s||b[0]&4)&&O(e,"mobile",y[2]),(!s||b[0]&64)&&O(e,"fullscreen",y[6]),(!s||b[0]&2)&&O(e,"invisible",y[1])},i(y){s||(d(t.$$.fragment,y),s=!0)},o(y){_(t.$$.fragment,y),s=!1},d(y){y&&k(e),B(t),i[23](null),i[24](null),u=!1,et(f)}}}function I3(i,e,t){let n,o,r,l,a,s,{ref:u=void 0}=e,f,p=$e(),h=Sn(),{interactiveControlsOpacity$:y}=h;F(i,y,Q=>t(18,o=Q));let b=p.ui.isMobile;F(i,b,Q=>t(2,a=Q));let P=p.ui.isFullscreen;F(i,P,Q=>t(6,s=Q));let C=p.state.isInteractiveTime$;F(i,C,Q=>t(19,r=Q));let A=h.showInteractiveTimeIndicatorTooltip$;F(i,A,Q=>t(17,n=Q));let S=p.ui.controlsVisible;F(i,S,Q=>t(20,l=Q));let v=p.callbacks?.onInteractiveTimeIndicatorClick,E,G,W,K=()=>{t(4,W=!0)},re=()=>{te(),f?.addEventListener("animationiteration",K,{once:!0})},te=()=>{t(4,W=!1),f?.removeEventListener("animationiteration",K)},I=Q=>{A.set(Q)},Y,X=()=>{G||(A.set(!0),v?.())};Ln(()=>{A.clearTimeout(),te()});let $=()=>{A.set(!1)};function x(Q){gn.call(this,i,Q)}function D(Q){u=Q,t(0,u)}function j(Q){_e[Q?"unshift":"push"](()=>{u=Q,t(0,u)})}function V(Q){_e[Q?"unshift":"push"](()=>{f=Q,t(3,f)})}return i.$$set=Q=>{"ref"in Q&&t(0,u=Q.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,E=!a&&l);if(i.$$.dirty[0]&851968)e:t(1,G=!r||!!o||E);if(i.$$.dirty[0]&2)e:t(4,W=G);if(i.$$.dirty[0]&131074)e:t(5,Y=n&&!G);if(i.$$.dirty[0]&131072)e:n?re():te()},[u,G,a,f,W,Y,s,y,b,P,C,A,S,I,X,$,E,n,o,r,l,x,D,j,V]}var Tu=class extends z{constructor(e){super(),q(this,e,I3,P3,H,{ref:0},C3,[-1,-1])}},Yr=Tu;function E3(i){we(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 mm(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 pm(i){let e,t,n;function o(l){i[173](l)}let r={disabled:!i[9],tooltipContent:U("tooltip_previous"),$$slots:{default:[A3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function A3(i){let e,t;return e=new ll({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function _m(i){let e,t,n;function o(l){i[174](l)}let r={disabled:i[74],tooltipContent:U("tooltip_restart"),$$slots:{default:[M3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function M3(i){let e,t;return e=new Al({props:{click:i[128],disabled:i[74]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function hm(i){let e,t,n;function o(l){i[176](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[V3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function V3(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 El({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function gm(i){let e,t,n;function o(l){i[177](l)}let r={disabled:!i[8],tooltipContent:U("tooltip_next"),$$slots:{default:[L3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function L3(i){let e,t;return e=new ll({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function B3(i){let e,t,n,o,r=i[121]&&R3(i),l=i[120]&&N3(i),a=i[119]&&F3(i);return{c(){r&&r.c(),e=N(),l&&l.c(),t=N(),a&&a.c(),n=nt()},m(s,u){r&&r.m(s,u),w(s,e,u),l&&l.m(s,u),w(s,t,u),a&&a.m(s,u),w(s,n,u),o=!0},p(s,u){s[121]&&r.p(s,u),s[120]&&l.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function R3(i){let e,t,n;function o(l){i[178](l)}let r={disabled:i[73],tooltipContent:U("tooltip_interactive_go_back"),disabledTooltipContent:U(i[124]),$$slots:{default:[D3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function D3(i){let e,t;return e=new Fr({props:{disabled:i[73],click:i[17]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function N3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[76],tooltipContent:U("tooltip_interactive_seek"),disabledTooltipContent:U(i[78]),$$slots:{default:[O3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=U(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function O3(i){let e,t;return e=new Dr({props:{disabled:i[76],click:i[15]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function F3(i){let e,t,n;function o(l){i[180](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[H3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function H3(i){let e,t;return e=new Nr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function bm(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[50],$$slots:{default:[z3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function z3(i){let e,t;return e=new Mr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function vm(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 kr({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function ym(i){let e,t;return e=new Rr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function q3(i){let e,t,n=i[20]&&ym(i);return{c(){n&&n.c(),e=nt()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[20]?n?(n.p(o,r),r[0]&1048576&&d(n,1)):(n=ym(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&&k(e),n&&n.d(o)}}}function U3(i){let e,t;return e=new Hr({props:{iconUrl:i[209],ariaLabel:i[210]??i[213],testId:i[211],onClick:i[212]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function km(i){let e,t;return e=new At({props:{tooltipContent:i[213],width:40,$$slots:{default:[U3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function wm(i){let e,t,n;function o(l){i[185](l)}let r={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[K3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function K3(i){let e,t;return e=new Tr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function W3(i){let e,t;return e=new Md({props:{click:i[127]}}),{c(){R(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){B(e,n)}}}function Cm(i){let e,t,n;function o(l){i[187](l)}let r={tooltipContent:i[52],$$slots:{default:[G3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function G3(i){let e,t;return e=new md({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Sm(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 yr({props:l}),_e.push(()=>Oe(t,"ref",r)),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","settings-menu svelte-st0uzk")},m(a,s){w(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],Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),B(t)}}}function Pm(i){let e,t,n;function o(l){i[190](l)}let r={tooltipContent:i[27]?void 0:U("tooltip_settings_off"),$$slots:{default:[j3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:U("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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function j3(i){let e,t,n;function o(l){i[189](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Il({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Q3(i){let e,t,n;function o(l){i[191](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[Y3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Y3(i){let e,t;return e=new dm({props:{ariaLabel:i[49]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Im(i){let e,t,n;function o(l){i[192](l)}let r={tooltipContent:i[53],$$slots:{default:[Z3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Z3(i){let e,t;return e=new Pr({props:{click:i[13],isFullscreen:i[30]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Tm(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[54],$$slots:{default:[X3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function X3(i){let e,t;return e=new Er({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function J3(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 Yr({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function x3(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v,E,G,W,K,re,te,I,Y,X,$,x;t=new Br({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let D=i[38]&&pm(i),j=i[35]&&_m(i),V=i[36]&&hm(i),Q=i[37]&&gm(i),De=i[117]&&B3(i),We=!i[4]&&i[33]&&bm(i),qe=i[19]&&vm(i);function Ze(fe){i[183](fe)}let Me={className:"w-max",disabled:!i[20],tooltipContent:U("tooltip_episodes"),$$slots:{default:[q3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(Me.ref=i[23].episodes),y=new At({props:Me}),_e.push(()=>Oe(y,"ref",Ze));let ye=ht(i[28]),J=[];for(let fe=0;fe<ye.length;fe+=1)J[fe]=km(mm(i,ye,fe));let ke=fe=>_(J[fe],1,1,()=>{J[fe]=null}),Fe=i[43]&&!i[4]&&wm(i);function Ye(fe){i[186](fe)}let Je={$$slots:{default:[W3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(Je.ref=i[23].volume),E=new At({props:Je}),_e.push(()=>Oe(E,"ref",Ye));let he=i[40]&&Cm(i),Ve=!i[83]&&!i[4]&&Sm(i),ze=i[42]&&!i[4]&&Pm(i),tt=i[84].features.contextMenuButton&&Q3(i),le=i[44]&&Im(i),oe=i[39]&&Tm(i),Ce=i[122]&&J3(i);return{c(){e=T("div"),R(t.$$.fragment),n=N(),o=T("div"),r=T("div"),D&&D.c(),l=N(),j&&j.c(),a=N(),V&&V.c(),s=N(),Q&&Q.c(),u=N(),De&&De.c(),f=N(),We&&We.c(),p=N(),qe&&qe.c(),h=N(),R(y.$$.fragment),C=N(),A=T("div");for(let fe=0;fe<J.length;fe+=1)J[fe].c();S=N(),Fe&&Fe.c(),v=N(),R(E.$$.fragment),W=N(),he&&he.c(),K=N(),Ve&&Ve.c(),re=N(),ze&&ze.c(),te=N(),tt&&tt.c(),I=N(),le&&le.c(),Y=N(),oe&&oe.c(),X=N(),Ce&&Ce.c(),$=nt(),c(r,"class","controls-left svelte-st0uzk"),Rn(()=>i[184].call(r)),c(A,"class","controls-right svelte-st0uzk"),c(o,"class","controls svelte-st0uzk"),c(e,"class","wrapper-bottom svelte-st0uzk"),O(e,"hidden",i[1]),O(e,"controls-hidden",!i[3]),O(e,"no-smooth",i[2])},m(fe,Ee){w(fe,e,Ee),L(t,e,null),m(e,n),m(e,o),m(o,r),D&&D.m(r,null),m(r,l),j&&j.m(r,null),m(r,a),V&&V.m(r,null),m(r,s),Q&&Q.m(r,null),m(r,u),De&&De.m(r,null),m(r,f),We&&We.m(r,null),m(r,p),qe&&qe.m(r,null),m(r,h),L(y,r,null),P=qo(r,i[184].bind(r)),m(o,C),m(o,A);for(let je=0;je<J.length;je+=1)J[je]&&J[je].m(A,null);m(A,S),Fe&&Fe.m(A,null),m(A,v),L(E,A,null),m(A,W),he&&he.m(A,null),m(A,K),Ve&&Ve.m(A,null),m(A,re),ze&&ze.m(A,null),m(A,te),tt&&tt.m(A,null),m(A,I),le&&le.m(A,null),m(A,Y),oe&&oe.m(A,null),i[194](o),i[195](e),w(fe,X,Ee),Ce&&Ce.m(fe,Ee),w(fe,$,Ee),x=!0},p(fe,Ee){let je={};Ee[1]&16384&&(je.isHidden=!fe[45]),Ee[0]&16&&(je.isAds=fe[4]),Ee[0]&32&&(je.canRewindLive=fe[5]),Ee[1]&2&&(je.isRewindableLive=fe[32]),t.$set(je),fe[38]?D?(D.p(fe,Ee),Ee[1]&128&&d(D,1)):(D=pm(fe),D.c(),d(D,1),D.m(r,l)):D&&(ue(),_(D,1,1,()=>{D=null}),ce()),fe[35]?j?(j.p(fe,Ee),Ee[1]&16&&d(j,1)):(j=_m(fe),j.c(),d(j,1),j.m(r,a)):j&&(ue(),_(j,1,1,()=>{j=null}),ce()),fe[36]?V?(V.p(fe,Ee),Ee[1]&32&&d(V,1)):(V=hm(fe),V.c(),d(V,1),V.m(r,s)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),fe[37]?Q?(Q.p(fe,Ee),Ee[1]&64&&d(Q,1)):(Q=gm(fe),Q.c(),d(Q,1),Q.m(r,u)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),fe[117]&&De.p(fe,Ee),!fe[4]&&fe[33]?We?(We.p(fe,Ee),Ee[0]&16|Ee[1]&4&&d(We,1)):(We=bm(fe),We.c(),d(We,1),We.m(r,p)):We&&(ue(),_(We,1,1,()=>{We=null}),ce()),fe[19]?qe?(qe.p(fe,Ee),Ee[0]&524288&&d(qe,1)):(qe=vm(fe),qe.c(),d(qe,1),qe.m(r,h)):qe&&(ue(),_(qe,1,1,()=>{qe=null}),ce());let rt={};if(Ee[0]&1048576&&(rt.disabled=!fe[20]),Ee[0]&1048576|Ee[2]&1310720|Ee[6]&1073741824&&(rt.$$scope={dirty:Ee,ctx:fe}),!b&&Ee[0]&8388608&&(b=!0,rt.ref=fe[23].episodes,Ne(()=>b=!1)),y.$set(rt),Ee[0]&268435456){ye=ht(fe[28]);let st;for(st=0;st<ye.length;st+=1){let de=mm(fe,ye,st);J[st]?(J[st].p(de,Ee),d(J[st],1)):(J[st]=km(de),J[st].c(),d(J[st],1),J[st].m(A,S))}for(ue(),st=ye.length;st<J.length;st+=1)ke(st);ce()}fe[43]&&!fe[4]?Fe?(Fe.p(fe,Ee),Ee[0]&16|Ee[1]&4096&&d(Fe,1)):(Fe=wm(fe),Fe.c(),d(Fe,1),Fe.m(A,v)):Fe&&(ue(),_(Fe,1,1,()=>{Fe=null}),ce());let dt={};Ee[6]&1073741824&&(dt.$$scope={dirty:Ee,ctx:fe}),!G&&Ee[0]&8388608&&(G=!0,dt.ref=fe[23].volume,Ne(()=>G=!1)),E.$set(dt),fe[40]?he?(he.p(fe,Ee),Ee[1]&512&&d(he,1)):(he=Cm(fe),he.c(),d(he,1),he.m(A,K)):he&&(ue(),_(he,1,1,()=>{he=null}),ce()),!fe[83]&&!fe[4]?Ve?(Ve.p(fe,Ee),Ee[0]&16|Ee[2]&2097152&&d(Ve,1)):(Ve=Sm(fe),Ve.c(),d(Ve,1),Ve.m(A,re)):Ve&&(ue(),_(Ve,1,1,()=>{Ve=null}),ce()),fe[42]&&!fe[4]?ze?(ze.p(fe,Ee),Ee[0]&16|Ee[1]&2048&&d(ze,1)):(ze=Pm(fe),ze.c(),d(ze,1),ze.m(A,te)):ze&&(ue(),_(ze,1,1,()=>{ze=null}),ce()),fe[84].features.contextMenuButton&&tt.p(fe,Ee),fe[44]?le?(le.p(fe,Ee),Ee[1]&8192&&d(le,1)):(le=Im(fe),le.c(),d(le,1),le.m(A,Y)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),fe[39]?oe?(oe.p(fe,Ee),Ee[1]&256&&d(oe,1)):(oe=Tm(fe),oe.c(),d(oe,1),oe.m(A,null)):oe&&(ue(),_(oe,1,1,()=>{oe=null}),ce()),(!x||Ee[0]&2)&&O(e,"hidden",fe[1]),(!x||Ee[0]&8)&&O(e,"controls-hidden",!fe[3]),(!x||Ee[0]&4)&&O(e,"no-smooth",fe[2]),fe[122]&&Ce.p(fe,Ee)},i(fe){if(!x){d(t.$$.fragment,fe),d(D),d(j),d(V),d(Q),d(De),d(We),d(qe),d(y.$$.fragment,fe);for(let Ee=0;Ee<ye.length;Ee+=1)d(J[Ee]);d(Fe),d(E.$$.fragment,fe),d(he),d(Ve),d(ze),d(tt),d(le),d(oe),d(Ce),x=!0}},o(fe){_(t.$$.fragment,fe),_(D),_(j),_(V),_(Q),_(De),_(We),_(qe),_(y.$$.fragment,fe),J=J.filter(Boolean);for(let Ee=0;Ee<J.length;Ee+=1)_(J[Ee]);_(Fe),_(E.$$.fragment,fe),_(he),_(Ve),_(ze),_(tt),_(le),_(oe),_(Ce),x=!1},d(fe){fe&&(k(e),k(X),k($)),B(t),D&&D.d(),j&&j.d(),V&&V.d(),Q&&Q.d(),De&&De.d(),We&&We.d(),qe&&qe.d(),B(y),P(),Hi(J,fe),Fe&&Fe.d(),B(E),he&&he.d(),Ve&&Ve.d(),ze&&ze.d(),tt&&tt.d(),le&&le.d(),oe&&oe.d(),i[194](null),i[195](null),Ce&&Ce.d(fe)}}}function $3(i,e,t){let n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v,E,G,W,K,re,te,I,Y,X,$,x,D,j,V,Q,De=me,We=()=>(De(),De=Ot(te,Z=>t(144,Q=Z)),te),qe,Ze=me,Me=()=>(Ze(),Ze=Ot(re,Z=>t(145,qe=Z)),re),ye,J=me,ke=()=>(J(),J=Ot(K,Z=>t(146,ye=Z)),K),Fe,Ye=me,Je=()=>(Ye(),Ye=Ot(W,Z=>t(147,Fe=Z)),W),he,Ve=me,ze=()=>(Ve(),Ve=Ot(G,Z=>t(148,he=Z)),G),tt,le=me,oe=()=>(le(),le=Ot(E,Z=>t(149,tt=Z)),E),Ce,fe=me,Ee=()=>(fe(),fe=Ot(v,Z=>t(150,Ce=Z)),v),je,rt=me,dt=()=>(rt(),rt=Ot(S,Z=>t(151,je=Z)),S),st,de=me,ct=()=>(de(),de=Ot(A,Z=>t(152,st=Z)),A),It,_t=me,yt=()=>(_t(),_t=Ot(C,Z=>t(153,It=Z)),C),Lt,Ue=me,Qt=()=>(Ue(),Ue=Ot(P,Z=>t(154,Lt=Z)),P),ve,bt=me,Tt=()=>(bt(),bt=Ot(b,Z=>t(155,ve=Z)),b),Xe,at=me,kt=()=>(at(),at=Ot(y,Z=>t(156,Xe=Z)),y),Et,yi=me,ki=()=>(yi(),yi=Ot(h,Z=>t(157,Et=Z)),h),wi,Qi=me,ln=()=>(Qi(),Qi=Ot(p,Z=>t(158,wi=Z)),p),si,ai=me,Ci=()=>(ai(),ai=Ot(f,Z=>t(159,si=Z)),f),Yt,ui=me,Yi=()=>(ui(),ui=Ot(u,Z=>t(160,Yt=Z)),u),Si,Pi,ci,Ii,fi,Ti,Ei,Mt,zt,Zt,di,Ft,mi,Xt,ii,Bt,Rt,qt,Jt,pi,cn,Zi,xt;i.$$.on_destroy.push(()=>De()),i.$$.on_destroy.push(()=>Ze()),i.$$.on_destroy.push(()=>J()),i.$$.on_destroy.push(()=>Ye()),i.$$.on_destroy.push(()=>Ve()),i.$$.on_destroy.push(()=>le()),i.$$.on_destroy.push(()=>fe()),i.$$.on_destroy.push(()=>rt()),i.$$.on_destroy.push(()=>de()),i.$$.on_destroy.push(()=>_t()),i.$$.on_destroy.push(()=>Ue()),i.$$.on_destroy.push(()=>bt()),i.$$.on_destroy.push(()=>at()),i.$$.on_destroy.push(()=>yi()),i.$$.on_destroy.push(()=>Qi()),i.$$.on_destroy.push(()=>ai()),i.$$.on_destroy.push(()=>ui());let{bottomHidden:ni}=e,{bottomNoSmooth:Ai}=e,{showControls:zi}=e,{controlsElementRef:Ut=void 0}=e,{isAds:wt=!1}=e,{canRewindLive:Mi}=e,{logoClickable:Xi}=e,{logoHidden:oi}=e,{logoTargetUrl:Ji=""}=e,{showNextPrevButtons:_i}=e,{nextButtonActive:rn}=e,{prevButtonActive:xi}=e,{isOneVideoPlaylist:sn=!1}=e,{supportLink:qi}=e,{customFullscreenSupported:Vi=!0}=e,{playNextVideo:Kt}=e,{playPrevVideo:$t}=e,{repeatPlaylist:hi}=e,{toggleFullscreen:Ui}=e,{returnFocus:Ki}=e,{seekToInteractive:gi}=e,{toggleGraph:Li}=e,{playPrevChapter:Bi}=e,Qe=$e(),Wi=Sn(),Ht=Vt(),He=Qe.actions.internal.toggleMuted,Ri=Qe.actions.internal.togglePlay,$i=Qe.actions.internal.pause,Gi=Qe.actions.internal.toggleSubtitle,Di=Qe.callbacks?.onAudioDoesNotExistHint,an=Qe.callbacks?.onAudioDisabledHint,Ni=Qe.state.duration$;F(i,Ni,Z=>t(82,Zi=Z));let en=Qe.state.positionWithScrubbing$;F(i,en,Z=>t(80,pi=Z));let Wt=Qe.state.playbackState$;F(i,Wt,Z=>t(161,ci=Z));let tn=Qe.state.chromecastConnected$;F(i,tn,Z=>t(83,xt=Z));let li=Qe.state.isAudioAvailable$;F(i,li,Z=>t(197,I=Z));let se=Qe.state.isAudioDisabled,ft=Qe.state.isEnded$;F(i,ft,Z=>t(169,Xt=Z));let Gt=Qe.state.isLive$;F(i,Gt,Z=>t(33,Mt=Z));let ei=Qe.state.isActiveLive$;F(i,ei,Z=>t(163,Ti=Z));let Oi=Qe.state.isRewindableLive$;F(i,Oi,Z=>t(32,Ei=Z));let Fi=Qe.ui.isPictureInPictureActive$;F(i,Fi,Z=>t(165,Zt=Z));let yn=Qe.ui.pictureInPictureType$;F(i,yn,Z=>t(164,zt=Z));let kn=Qe.ui.settingsMenuVisible;F(i,kn,Z=>t(27,$=Z));let mn=Qe.ui.settingsMenuOpenedByKeyboard;F(i,mn,Z=>t(140,X=Z));let Dt=Qe.ui.controls,Nn=Qe.actions.internal.getVideoEpisodes(),On=Qe.state.chromecastState$;F(i,On,Z=>t(29,Si=Z));let wn=Qe.state.availableSubtitlesList$;F(i,wn,Z=>t(168,mi=Z));let En=Qe.state.currentSubtitle$;F(i,En,Z=>t(170,ii=Z));let pn=Dt.disabledControls$;F(i,pn,Z=>t(172,Rt=Z));let fn=Qe.ui.contextMenu.visible$;F(i,fn,Z=>t(162,Ii=Z));let ie=Qe.ui.contextMenu.showContextMenuBtn$;F(i,ie,Z=>t(166,di=Z));let vt=Qe.ui.contextMenu.openedByBtnKeyboard$;F(i,vt,Z=>t(167,Ft=Z));let An=Qe.ui.startedByKeyboard$;F(i,An,Z=>t(139,Y=Z));let Fn=Qe.ads.duration;F(i,Fn,Z=>t(81,cn=Z));let Hn=Qe.ads.position;F(i,Hn,Z=>t(79,Jt=Z));let Xn=Qe.ads.playbackState;F(i,Xn,Z=>t(171,Bt=Z));let Jn=Qe.ui.isFullscreen;F(i,Jn,Z=>t(30,Pi=Z));let xn=Qe.ui.playerSize;F(i,xn,Z=>t(142,D=Z));let $n=Qe.ui.currentGridType$;F(i,$n,Z=>t(143,j=Z));let eo=Qe.ui.additionalButtons$;F(i,eo,Z=>t(28,V=Z));let po=Qe.actions.internal.getVideoElement,ee=Qe.actions.internal.replayInteractive,_n=Qe.state.isInteractive,_o=Qe.state.isInteractiveTime$;F(i,_o,Z=>t(141,x=Z));let ho=Qe.state.showInteractiveGraph,to=Qe.state.showSeekToInteractive,No=Qe.state.showPlayPrevChapter,zn=Qe.state.showInteractiveTimeIndicator,io=Qe.state.graphIsOpened$;F(i,io,Z=>t(31,fi=Z));let Oo=Qe.state.playPrevChapterDisabledTooltip,Fo=Wi.seekToInteractiveDisabledTooltip$;F(i,Fo,Z=>t(78,qt=Z));let pl=()=>Qe.actions.internal.toggleChromecast(),Gn,go,bo,Ho,vo,pt,g,ae,Ae,Ke,ot,jt,ti,Nt,hn,Mn,_l,zo,yc,kc,wc,fs="",Wp=(Z,ms)=>{if(!Z){t(50,fs=U("tooltip_live"));return}ms===Ro.PlaybackState.PAUSED&&t(50,fs=U("tooltip_play"))},Cc,Sc,Pc,Ic,Dl,it={},Vn,hl,ds,Tc,Gp=(0,Em.throttleFn)(jr,260,{leading:!1}),Nl,Ol,Fl;function jp(){ao({isAudioDisabled:se,audioDisabledHintCallback:an,isAudioAvailable:I,audioIsNotExistHintCallback:Di})&&He()}let Qp=_n?ee:sn?Ri:hi;function Yp(Z){i.$$.not_equal(it.prevButton,Z)&&(it.prevButton=Z,t(23,it))}function Zp(Z){i.$$.not_equal(it.replayButton,Z)&&(it.replayButton=Z,t(23,it))}function Xp(Z){Fl=Z,t(26,Fl)}function Jp(Z){i.$$.not_equal(it.playButton,Z)&&(it.playButton=Z,t(23,it))}function xp(Z){i.$$.not_equal(it.nextButton,Z)&&(it.nextButton=Z,t(23,it))}function $p(Z){i.$$.not_equal(it.playPrevChapterButton,Z)&&(it.playPrevChapterButton=Z,t(23,it))}function e2(Z){i.$$.not_equal(it.seekToInteractiveButton,Z)&&(it.seekToInteractiveButton=Z,t(23,it))}function t2(Z){i.$$.not_equal(it.interactiveGraphButton,Z)&&(it.interactiveGraphButton=Z,t(23,it))}function i2(Z){i.$$.not_equal(it.liveButton,Z)&&(it.liveButton=Z,t(23,it))}function n2(Z){i.$$.not_equal(it.time,Z)&&(it.time=Z,t(23,it))}function o2(Z){i.$$.not_equal(it.episodes,Z)&&(it.episodes=Z,t(23,it))}function l2(){Dl=this.clientWidth,t(22,Dl)}function r2(Z){i.$$.not_equal(it.vkLogo,Z)&&(it.vkLogo=Z,t(23,it))}function s2(Z){i.$$.not_equal(it.volume,Z)&&(it.volume=Z,t(23,it))}function a2(Z){i.$$.not_equal(it.subtitles,Z)&&(it.subtitles=Z,t(23,it))}function u2(Z){Nl=Z,t(24,Nl)}function c2(Z){Ol=Z,t(25,Ol)}function f2(Z){i.$$.not_equal(it.settings,Z)&&(it.settings=Z,t(23,it))}function d2(Z){i.$$.not_equal(it.context,Z)&&(it.context=Z,t(23,it))}function m2(Z){i.$$.not_equal(it.fullscreen,Z)&&(it.fullscreen=Z,t(23,it))}function p2(Z){i.$$.not_equal(it.chromecast,Z)&&(it.chromecast=Z,t(23,it))}function _2(Z){_e[Z?"unshift":"push"](()=>{_l=Z,t(46,_l)})}function h2(Z){_e[Z?"unshift":"push"](()=>{Ut=Z,t(0,Ut)})}function g2(Z){i.$$.not_equal(it.interactiveTimeIndicator,Z)&&(it.interactiveTimeIndicator=Z,t(23,it))}i.$$set=Z=>{"bottomHidden"in Z&&t(1,ni=Z.bottomHidden),"bottomNoSmooth"in Z&&t(2,Ai=Z.bottomNoSmooth),"showControls"in Z&&t(3,zi=Z.showControls),"controlsElementRef"in Z&&t(0,Ut=Z.controlsElementRef),"isAds"in Z&&t(4,wt=Z.isAds),"canRewindLive"in Z&&t(5,Mi=Z.canRewindLive),"logoClickable"in Z&&t(6,Xi=Z.logoClickable),"logoHidden"in Z&&t(129,oi=Z.logoHidden),"logoTargetUrl"in Z&&t(7,Ji=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(130,_i=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(8,rn=Z.nextButtonActive),"prevButtonActive"in Z&&t(9,xi=Z.prevButtonActive),"isOneVideoPlaylist"in Z&&t(131,sn=Z.isOneVideoPlaylist),"supportLink"in Z&&t(10,qi=Z.supportLink),"customFullscreenSupported"in Z&&t(132,Vi=Z.customFullscreenSupported),"playNextVideo"in Z&&t(11,Kt=Z.playNextVideo),"playPrevVideo"in Z&&t(12,$t=Z.playPrevVideo),"repeatPlaylist"in Z&&t(133,hi=Z.repeatPlaylist),"toggleFullscreen"in Z&&t(13,Ui=Z.toggleFullscreen),"returnFocus"in Z&&t(14,Ki=Z.returnFocus),"seekToInteractive"in Z&&t(15,gi=Z.seekToInteractive),"toggleGraph"in Z&&t(16,Li=Z.toggleGraph),"playPrevChapter"in Z&&t(17,Bi=Z.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=Rt.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=Rt.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,r=Rt.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,l=Rt.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=Rt.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=Rt.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Gn=wt?Bt==="playing":ci===Ro.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,go=ii.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,bo=Xt&&!wt||_n);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,Ho=!Xt||_n||wt);if(i.$$.dirty[4]&524288)e:t(134,vo=vn(j,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,pt=_i&&vn(j,"m")&&!wt&&rn);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,g=_i&&vn(j,"m")&&!wt&&xi);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,ae=Si!==Ro.ChromecastState.NOT_AVAILABLE&&!(Zt&&zt===1)&&vn(j,"m")&&!_n);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,Ae=mi.length>0&&vn(j,"m"));if(i.$$.dirty[5]&6144)e:t(41,Ke=Ft||di);if(i.$$.dirty[4]&524288)e:t(42,ot=vn(j,"s"));if(i.$$.dirty[4]&32)e:t(43,jt=!oi);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,ti=Ht.features.fullscreen&&(oi||vn(j,"s"))&&!(Zt&&zt===1)&&(_n?Vi:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,Nt=(!Mt||wt)&&!(Ht.features.interactiveHideTime&&_n));if(i.$$.dirty[4]&262144)e:t(45,hn=D.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,Mn=!wt&&!Mt&&!!Nn?.length&&vo&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,zo=!Ei||Ti);if(i.$$.dirty[5]&64)e:t(47,yc=ci===Ro.PlaybackState.PLAYING?U("tooltip_pause"):U("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,kc=fi?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,wc=Ii?U("aria_label_context_menu_close"):U("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:Wp(zo,ci);if(i.$$.dirty[0]&262144)e:t(52,Sc=go?U("tooltip_subtitles_on"):U("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,Pc=Pi?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Ic=Si===Ro.ChromecastState.CONNECTED?U("tooltip_chromecast_on"):U("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:si?si.right-si.left:0,playButton:wi?wi.right-wi.left:0,nextButton:Et?Et.right-Et.left:0,playPrevChapterButton:Xe?Xe.right-Xe.left:0,seekToInteractiveButton:ve?ve.right-ve.left:0,interactiveGraphButton:Lt?Lt.right-Lt.left:0,liveButton:It?It.right-It.left:0,time:st?st.right-st.left:0,episodes:je?je.right-je.left:0,vkLogo:Ce?Ce.right-Ce.left:0,volume:tt?tt.right-tt.left:0,subtitles:he?he.right-he.left:0,settings:Fe?Fe.right-Fe.left:0,context:ye?ye.right-ye.left:0,fullscreen:qe?qe.right-qe.left:0,chromecast:Q?Q.right-Q.left:0,additionalButtons:V.length?V.reduce(Z=>[...Z,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!hl||hl<Vn.time)&&t(136,hl=Vn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let Z=0;Mn&&(vn(j,"xl")?Z=Vn.time:Z=60);let ms=Vn.prevButton+Vn.playButton+Vn.nextButton+Vn.seekToInteractiveButton+Vn.interactiveGraphButton+Vn.liveButton+hl+Z;t(137,ds=Nt&&Dl>=ms)}if(i.$$.dirty[4]&532480)e:t(55,Tc=ds&&vn(j,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:Gp(po(),Dt,it,zi);if(i.$$.dirty[0]&167772160)e:$o(Ol,$,mn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Lo(Nl,$,X);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:Qr(An,Y,Fl)};e:t(51,Cc=Ht.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo"));e:Yi(t(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:y,seekToInteractiveButton:b,interactiveGraphButton:P,liveButton:C,time:A,episodes:S,vkLogo:v,volume:E,subtitles:G,settings:W,context:K,fullscreen:re,chromecast:te}=Dt,u,Ci(t(71,f)),ln(t(70,p)),ki(t(69,h)),kt(t(68,y)),Tt(t(67,b)),Qt(t(66,P)),yt(t(65,C)),ct(t(64,A)),dt(t(63,S)),Ee(t(62,v)),oe(t(61,E)),ze(t(60,G)),Je(t(59,W)),ke(t(58,K)),Me(t(57,re)),We(t(56,te))));return[Ut,ni,Ai,zi,wt,Mi,Xi,Ji,rn,xi,qi,Kt,$t,Ui,Ki,gi,Li,Bi,go,Nt,Mn,zo,Dl,it,Nl,Ol,Fl,$,V,Si,Pi,fi,Ei,Mt,Gn,bo,Ho,pt,g,ae,Ae,Ke,ot,jt,ti,hn,_l,yc,kc,wc,fs,Cc,Sc,Pc,Ic,Tc,te,re,K,W,G,E,v,S,A,C,P,b,y,h,p,f,u,s,a,l,r,o,qt,Jt,pi,cn,Zi,xt,Ht,Ri,$i,Gi,Ni,en,Wt,tn,li,ft,Gt,ei,Oi,Fi,yn,kn,mn,Nn,On,wn,En,pn,fn,ie,vt,An,Fn,Hn,Xn,Jn,xn,$n,eo,_n,_o,ho,to,No,zn,io,Oo,Fo,pl,jp,Qp,oi,_i,sn,Vi,hi,vo,Vn,hl,ds,n,Y,X,x,D,j,Q,qe,ye,Fe,he,tt,Ce,je,st,It,Lt,ve,Xe,Et,wi,si,Yt,ci,Ii,Ti,zt,Zt,di,Ft,mi,Xt,ii,Bt,Rt,Yp,Zp,Xp,Jp,xp,$p,e2,t2,i2,n2,o2,l2,r2,s2,a2,u2,c2,f2,d2,m2,p2,_2,h2,g2]}var Eu=class extends z{constructor(e){super(),q(this,e,$3,x3,H,{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},E3,[-1,-1,-1,-1,-1,-1,-1])}},Am=Eu;var sl=require("@vkontakte/videoplayer-core");function ev(i){let e,t,n,o,r,l=i[2].default,a=Se(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=ne(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){w(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)&&Ie(a,l,f,f[1],r?Pe(l,f[1],p,null):Te(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&&k(e),a&&a.d(f)}}}function tv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Mu=class extends z{constructor(e){super(),q(this,e,tv,ev,H,{})}},Mm=Mu;var Lm=require("@vkontakte/videoplayer-shared");function iv(i){we(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 Vm(i){let e;return{c(){e=T("span"),e.textContent=`${U("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){w(t,e,n)},p:me,d(t){t&&k(e)}}}function nv(i){let e,t,n,o;var r=i[4];function l(s){return{}}r&&(t=dn(r,l(i)));let a=i[1]&&Vm(i);return{c(){e=T("div"),t&&R(t.$$.fragment),n=N(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),O(e,"expanded",i[1])},m(s,u){w(s,e,u),t&&L(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,()=>{B(f,1)}),ce()}r?(t=dn(r,l(s)),R(t.$$.fragment),d(t.$$.fragment,1),L(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=Vm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&O(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&k(e),t&&B(t),a&&a.d()}}}function ov(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:[nv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function lv(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=Lm.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?U("tooltip_volume"):U("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?Bo:Mm)},[l,o,r,a,s,n,u]}var Vu=class extends z{constructor(e){super(),q(this,e,lv,ov,H,{muted:5,expanded:1,click:2,ref:0},iv)}},Lu=Vu;function rv(i){let e,t,n,o,r,l=i[2].default,a=Se(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=ne(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){w(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)&&Ie(a,l,f,f[1],r?Pe(l,f[1],p,null):Te(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&&k(e),a&&a.d(f)}}}function sv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Bu=class extends z{constructor(e){super(),q(this,e,sv,rv,H,{})}},Bm=Bu;function av(i){we(i,"svelte-sba75o",'svg[data-testid="pip-icon--active"] .hidden-not-active,svg[data-testid="pip-icon"] .hidden-active{visibility:hidden;opacity:0}')}function uv(i){let e,t;return e=new Bm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function cv(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 Ru=class extends z{constructor(e){super(),q(this,e,cv,uv,H,{isActive:0},av)}},Rm=Ru;var Dm=require("@vkontakte/videoplayer-shared");function fv(i){let e,t;return e=new Rm({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function dv(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:U("menu_pip"),click:i[2],$$slots:{default:[fv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new mt({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function mv(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Dm.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 Du=class extends z{constructor(e){super(),q(this,e,mv,dv,H,{ref:0,isPictureInPictureActive:1,click:2})}},Nm=Du;var l0=require("@vkontakte/videoplayer-shared");function pv(i){we(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 Om(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 Fm(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S=(!i[51]||i[53])&&Hm(i),v=ht(i[56]),E=[];for(let D=0;D<v.length;D+=1)E[D]=zm(Om(i,v,D));let G=D=>_(E[D],1,1,()=>{E[D]=null}),W=i[36]&&qm(i),K=i[37]&&Um(i),re=i[57]&&Km(i),te=i[39]&&Wm(i),I=i[8]&&Gm(i),Y=i[34]&&jm(i),X=i[33]&&Qm(i),$=i[8]&&Ym(i),x=i[96]&&!i[29]&&Zm(i);return{c(){e=T("div"),t=N(),n=T("div"),S&&S.c(),o=N(),r=T("div");for(let D=0;D<E.length;D+=1)E[D].c();l=N(),W&&W.c(),a=N(),K&&K.c(),s=N(),re&&re.c(),u=N(),te&&te.c(),f=N(),p=T("div"),I&&I.c(),h=N(),Y&&Y.c(),y=N(),X&&X.c(),b=N(),$&&$.c(),P=N(),x&&x.c(),C=nt(),c(e,"class","overlay-mobile svelte-1tcstu3"),O(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-1tcstu3"),O(n,"hidden",!i[3]),O(n,"fullscreen",i[52]),c(r,"class","wrapper-top-right svelte-1tcstu3"),O(r,"hidden",!i[3]&&!i[27]),O(r,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-1tcstu3"),O(p,"hidden",!i[3]||i[29])},m(D,j){w(D,e,j),w(D,t,j),w(D,n,j),S&&S.m(n,null),w(D,o,j),w(D,r,j);for(let V=0;V<E.length;V+=1)E[V]&&E[V].m(r,null);m(r,l),W&&W.m(r,null),m(r,a),K&&K.m(r,null),m(r,s),re&&re.m(r,null),m(r,u),te&&te.m(r,null),w(D,f,j),w(D,p,j),I&&I.m(p,null),m(p,h),Y&&Y.m(p,null),m(p,y),X&&X.m(p,null),m(p,b),$&&$.m(p,null),w(D,P,j),x&&x.m(D,j),w(D,C,j),A=!0},p(D,j){if((!A||j[1]&2048)&&O(e,"hidden",!D[42]),!D[51]||D[53]?S?(S.p(D,j),j[1]&5242880&&d(S,1)):(S=Hm(D),S.c(),d(S,1),S.m(n,null)):S&&(ue(),_(S,1,1,()=>{S=null}),ce()),(!A||j[0]&8)&&O(n,"hidden",!D[3]),(!A||j[1]&2097152)&&O(n,"fullscreen",D[52]),j[1]&33554432){v=ht(D[56]);let V;for(V=0;V<v.length;V+=1){let Q=Om(D,v,V);E[V]?(E[V].p(Q,j),d(E[V],1)):(E[V]=zm(Q),E[V].c(),d(E[V],1),E[V].m(r,l))}for(ue(),V=v.length;V<E.length;V+=1)G(V);ce()}D[36]?W?(W.p(D,j),j[1]&32&&d(W,1)):(W=qm(D),W.c(),d(W,1),W.m(r,a)):W&&(ue(),_(W,1,1,()=>{W=null}),ce()),D[37]?K?(K.p(D,j),j[1]&64&&d(K,1)):(K=Um(D),K.c(),d(K,1),K.m(r,s)):K&&(ue(),_(K,1,1,()=>{K=null}),ce()),D[57]?re?(re.p(D,j),j[1]&67108864&&d(re,1)):(re=Km(D),re.c(),d(re,1),re.m(r,u)):re&&(ue(),_(re,1,1,()=>{re=null}),ce()),D[39]?te?(te.p(D,j),j[1]&256&&d(te,1)):(te=Wm(D),te.c(),d(te,1),te.m(r,null)):te&&(ue(),_(te,1,1,()=>{te=null}),ce()),(!A||j[0]&134217736)&&O(r,"hidden",!D[3]&&!D[27]),(!A||j[1]&2097152)&&O(r,"fullscreen",D[52]),D[8]?I?(I.p(D,j),j[0]&256&&d(I,1)):(I=Gm(D),I.c(),d(I,1),I.m(p,h)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),D[34]?Y?(Y.p(D,j),j[1]&8&&d(Y,1)):(Y=jm(D),Y.c(),d(Y,1),Y.m(p,y)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),ce()),D[33]?X?(X.p(D,j),j[1]&4&&d(X,1)):(X=Qm(D),X.c(),d(X,1),X.m(p,b)):X&&(ue(),_(X,1,1,()=>{X=null}),ce()),D[8]?$?($.p(D,j),j[0]&256&&d($,1)):($=Ym(D),$.c(),d($,1),$.m(p,null)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),(!A||j[0]&536870920)&&O(p,"hidden",!D[3]||D[29]),D[96]&&!D[29]?x?(x.p(D,j),j[0]&536870912&&d(x,1)):(x=Zm(D),x.c(),d(x,1),x.m(C.parentNode,C)):x&&(ue(),_(x,1,1,()=>{x=null}),ce())},i(D){if(!A){d(S);for(let j=0;j<v.length;j+=1)d(E[j]);d(W),d(K),d(re),d(te),d(I),d(Y),d(X),d($),d(x),A=!0}},o(D){_(S),E=E.filter(Boolean);for(let j=0;j<E.length;j+=1)_(E[j]);_(W),_(K),_(re),_(te),_(I),_(Y),_(X),_($),_(x),A=!1},d(D){D&&(k(e),k(t),k(n),k(o),k(r),k(f),k(p),k(P),k(C)),S&&S.d(),Hi(E,D),W&&W.d(),K&&K.d(),re&&re.d(),te&&te.d(),I&&I.d(),Y&&Y.d(),X&&X.d(),$&&$.d(),x&&x.d(D)}}}function Hm(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 Lu({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function zm(i){let e,t;return e=new Hr({props:{iconUrl:i[169],ariaLabel:i[170]??i[173],testId:i[171],onClick:i[172]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function qm(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 Er({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Um(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 Nm({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Km(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Il({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Wm(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 Tr({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Gm(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(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function jm(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 El({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Qm(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 Al({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Ym(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(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Zm(i){let e,t,n,o,r=i[100]&&_v(i),l=i[98]&&hv(i),a=i[99]&&gv(i);return{c(){r&&r.c(),e=N(),l&&l.c(),t=N(),a&&a.c(),n=nt()},m(s,u){r&&r.m(s,u),w(s,e,u),l&&l.m(s,u),w(s,t,u),a&&a.m(s,u),w(s,n,u),o=!0},p(s,u){s[100]&&r.p(s,u),s[98]&&l.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function _v(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 Fr({props:s}),_e.push(()=>Oe(t,"ref",a)),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-1tcstu3"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3])},m(u,f){w(u,e,f),L(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,Ne(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&O(e,"fullscreen",u[52]),(!o||f[0]&8)&&O(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),B(t),r=!1,l()}}}function hv(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 Nr({props:a}),_e.push(()=>Oe(t,"ref",l)),{c(){e=T("div"),R(t.$$.fragment),c(e,"class",o=Lc(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3]&&!i[58])},m(s,u){w(s,e,u),L(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,Ne(()=>n=!1)),t.$set(f),(!r||u[1]&2097152)&&O(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&O(e,"hidden",!s[3]&&!s[58])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&k(e),B(t)}}}function gv(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 Dr({props:s}),_e.push(()=>Oe(t,"ref",a)),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-1tcstu3"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3])},m(u,f){w(u,e,f),L(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,Ne(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&O(e,"fullscreen",u[52]),(!o||f[0]&8)&&O(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),B(t),r=!1,l()}}}function Xm(i){let e,t,n,o,r,l=i[53]&&Jm(i),a=i[32]&&xm(i);return o=new Lr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=N(),a&&a.c(),t=N(),n=T("div"),R(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),O(n,"fullscreen",i[52])},m(s,u){l&&l.m(s,u),w(s,e,u),a&&a.m(s,u),w(s,t,u),w(s,n,u),L(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=Jm(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=xm(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)&&O(n,"fullscreen",s[52])},i(s){r||(d(l),d(a),d(o.$$.fragment,s),r=!0)},o(s){_(l),_(a),_(o.$$.fragment,s),r=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),a&&a.d(s),B(o)}}}function Jm(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 Lu({props:l}),_e.push(()=>Oe(t,"ref",r)),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","wrapper-top-right svelte-1tcstu3"),O(e,"fullscreen",i[52])},m(a,s){w(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,Ne(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&O(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),B(t)}}}function xm(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 El({props:l}),_e.push(()=>Oe(t,"ref",r)),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){w(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,Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),B(t)}}}function bv(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[vv]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function vv(i){let e,t;return e=new Al({props:{disabled:i[48],click:i[95]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function $m(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[yv]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function yv(i){let e,t;return e=new Mr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function e0(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 kr({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function t0(i){let e,t,n,o;return n=new Rr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=N(),R(n.$$.fragment),c(e,"aria-hidden","true")},m(r,l){w(r,e,l),w(r,t,l),L(n,r,l),o=!0},p(r,l){let a={};l[1]&1073741824&&(a.position=r[61]),l[2]&1&&(a.duration=r[62]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(t)),B(n,r)}}}function kv(i){let e,t,n=i[43]&&t0(i);return{c(){n&&n.c(),e=nt()},m(o,r){n&&n.m(o,r),w(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=t0(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&&k(e),n&&n.d(o)}}}function i0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[wv]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function wv(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Il({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function n0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[Cv]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new At({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(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,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Cv(i){let e,t;return e=new Pr({props:{click:i[14],isFullscreen:i[52]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function o0(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 yr({props:l}),_e.push(()=>Oe(t,"ref",r)),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){w(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],Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),B(t)}}}function Sv(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 Yr({props:r}),_e.push(()=>Oe(e,"ref",o)),{c(){R(e.$$.fragment)},m(l,a){L(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Pv(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v=!i[4]&&Fm(i),E=i[4]&&i[30]!=="inactive"&&Xm(i),G=i[96]&&bv(i),W=!i[4]&&i[25]&&$m(i),K=i[41]&&e0(i);function re(x){i[147](x)}let te={className:"w-max",disabled:!i[43],$$slots:{default:[kv]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(te.ref=i[20].episodes),u=new At({props:te}),_e.push(()=>Oe(u,"ref",re));let I=i[38]&&i0(i),Y=i[40]&&n0(i);b=new Br({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let X=i[23]&&o0(i),$=i[101]&&Sv(i);return{c(){v&&v.c(),e=N(),E&&E.c(),t=N(),n=T("div"),o=T("div"),r=T("div"),G&&G.c(),l=N(),W&&W.c(),a=N(),K&&K.c(),s=N(),R(u.$$.fragment),p=N(),I&&I.c(),h=N(),Y&&Y.c(),y=N(),R(b.$$.fragment),P=N(),X&&X.c(),C=N(),$&&$.c(),A=nt(),c(r,"class","controls svelte-1tcstu3"),O(r,"mobile",!0),c(o,"class","controls-wrapper svelte-1tcstu3"),O(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-1tcstu3"),O(n,"hidden",i[1]),O(n,"controls-hidden",!i[3]),O(n,"no-smooth",i[2]),O(n,"mobile",!0)},m(x,D){v&&v.m(x,D),w(x,e,D),E&&E.m(x,D),w(x,t,D),w(x,n,D),m(n,o),m(o,r),G&&G.m(r,null),m(r,l),W&&W.m(r,null),m(r,a),K&&K.m(r,null),m(r,s),L(u,r,null),m(r,p),I&&I.m(r,null),m(r,h),Y&&Y.m(r,null),i[151](r),m(o,y),L(b,o,null),i[152](n),w(x,P,D),X&&X.m(x,D),w(x,C,D),$&&$.m(x,D),w(x,A,D),S=!0},p(x,D){x[4]?v&&(ue(),_(v,1,1,()=>{v=null}),ce()):v?(v.p(x,D),D[0]&16&&d(v,1)):(v=Fm(x),v.c(),d(v,1),v.m(e.parentNode,e)),x[4]&&x[30]!=="inactive"?E?(E.p(x,D),D[0]&1073741840&&d(E,1)):(E=Xm(x),E.c(),d(E,1),E.m(t.parentNode,t)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),x[96]&&G.p(x,D),!x[4]&&x[25]?W?(W.p(x,D),D[0]&33554448&&d(W,1)):(W=$m(x),W.c(),d(W,1),W.m(r,a)):W&&(ue(),_(W,1,1,()=>{W=null}),ce()),x[41]?K?(K.p(x,D),D[1]&1024&&d(K,1)):(K=e0(x),K.c(),d(K,1),K.m(r,s)):K&&(ue(),_(K,1,1,()=>{K=null}),ce());let j={};D[1]&4096&&(j.disabled=!x[43]),D[1]&1073745920|D[2]&1|D[5]&2097152&&(j.$$scope={dirty:D,ctx:x}),!f&&D[0]&1048576&&(f=!0,j.ref=x[20].episodes,Ne(()=>f=!1)),u.$set(j),x[38]?I?(I.p(x,D),D[1]&128&&d(I,1)):(I=i0(x),I.c(),d(I,1),I.m(r,h)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),x[40]?Y?(Y.p(x,D),D[1]&512&&d(Y,1)):(Y=n0(x),Y.c(),d(Y,1),Y.m(r,null)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),ce());let V={};D[0]&16&&(V.isAds=x[4]),D[0]&32&&(V.canRewindLive=x[5]),D[0]&16777216&&(V.isRewindableLive=x[24]),b.$set(V),(!S||D[1]&2097152)&&O(o,"fullscreen",x[52]),(!S||D[0]&2)&&O(n,"hidden",x[1]),(!S||D[0]&8)&&O(n,"controls-hidden",!x[3]),(!S||D[0]&4)&&O(n,"no-smooth",x[2]),x[23]?X?(X.p(x,D),D[0]&8388608&&d(X,1)):(X=o0(x),X.c(),d(X,1),X.m(C.parentNode,C)):X&&(ue(),_(X,1,1,()=>{X=null}),ce()),x[101]&&$.p(x,D)},i(x){S||(d(v),d(E),d(G),d(W),d(K),d(u.$$.fragment,x),d(I),d(Y),d(b.$$.fragment,x),d(X),d($),S=!0)},o(x){_(v),_(E),_(G),_(W),_(K),_(u.$$.fragment,x),_(I),_(Y),_(b.$$.fragment,x),_(X),_($),S=!1},d(x){x&&(k(e),k(t),k(n),k(P),k(C),k(A)),v&&v.d(x),E&&E.d(x),G&&G.d(),W&&W.d(),K&&K.d(),B(u),I&&I.d(),Y&&Y.d(),i[151](null),B(b),i[152](null),X&&X.d(x),$&&$.d(x)}}}function Iv(i,e,t){let n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v,E,G,W,K,re,te,I,Y,X,$,x,D,j,V,Q,De,We,qe,Ze,Me,{bottomHidden:ye}=e,{bottomNoSmooth:J}=e,{showControls:ke}=e,{controlsElementRef:Fe=void 0}=e,{isAds:Ye=!1}=e,{canRewindLive:Je}=e,{logoClickable:he}=e,{logoHidden:Ve}=e,{logoTargetUrl:ze=""}=e,{showNextPrevButtons:tt}=e,{nextButtonActive:le}=e,{prevButtonActive:oe}=e,{isOneVideoPlaylist:Ce=!1}=e,{supportLink:fe}=e,{customFullscreenSupported:Ee=!0}=e,{playNextVideo:je}=e,{playPrevVideo:rt}=e,{repeatPlaylist:dt}=e,{toggleFullscreen:st}=e,{returnFocus:de}=e,{seekToInteractive:ct}=e,{toggleGraph:It}=e,{playPrevChapter:_t}=e,{onDisabledPlayPrevChapterClick:yt}=e,{onDisabledSeekToInteractiveClick:Lt}=e,Ue=$e(),Qt=Sn(),ve=Vt(),bt=Ue.actions.internal.toggleMuted,Tt=Ue.actions.internal.togglePlay,Xe=Ue.actions.internal.pause,at=Ue.callbacks?.onAudioDoesNotExistHint,kt=Ue.callbacks?.onAudioDisabledHint,Et=Ue.playerPhase;F(i,Et,ee=>t(126,K=ee));let yi=Ue.state.duration$;F(i,yi,ee=>t(62,Me=ee));let ki=Ue.state.positionWithScrubbing$;F(i,ki,ee=>t(61,Ze=ee));let wi=Ue.state.playbackState$;F(i,wi,ee=>t(121,h=ee));let Qi=Ue.state.isAudioAvailable$;F(i,Qi,ee=>t(51,y=ee));let ln=Ue.state.isAudioDisabled,si=Ue.state.isEnded$;F(i,si,ee=>t(127,te=ee));let ai=Ue.state.isLive$;F(i,ai,ee=>t(25,S=ee));let Ci=Ue.state.muted$;F(i,Ci,ee=>t(54,D=ee));let Yt=Ue.state.isActiveLive$;F(i,Yt,ee=>t(124,C=ee));let ui=Ue.state.isRewindableLive$;F(i,ui,ee=>t(24,A=ee));let Yi=Ue.ui.scrubbingInProgress;F(i,Yi,ee=>t(29,re=ee));let Si=Ue.ui.mobileNotReportControlHidden$;F(i,Si,ee=>t(27,G=ee));let Pi=Ue.ui.isPictureInPictureActive$;F(i,Pi,ee=>t(26,E=ee));let ci=Ue.ui.pictureInPictureType$;F(i,ci,ee=>t(125,v=ee));let Ii=Ue.ui.mobileUnmuteButtonExpanded;F(i,Ii,ee=>t(55,j=ee));let fi=Ue.ui.mobileUnmuteButtonVisible;F(i,fi,ee=>t(53,x=ee));let Ti=Ue.ui.settingsMenuVisible;F(i,Ti,ee=>t(23,p=ee));let Ei=Ue.ui.settingsMenuOpenedByKeyboard;F(i,Ei,ee=>t(120,f=ee));let Mt=Ue.ui.controls,zt=Ue.actions.internal.getVideoEpisodes(),Zt=Ue.webApi.pictureInPictureApi,di=Ue.state.chromecastState$;F(i,di,ee=>t(28,W=ee));let Ft=Ue.state.crashed$;F(i,Ft,ee=>t(57,Q=ee));let mi=Mt.disabledControls$;F(i,mi,ee=>t(128,Y=ee));let Xt=Ue.ui.startedByKeyboard$;F(i,Xt,ee=>t(119,u=ee));let ii=Ue.ads.duration;F(i,ii,ee=>t(60,qe=ee));let Bt=Ue.ads.position;F(i,Bt,ee=>t(59,We=ee));let Rt=Ue.ads.playbackState;F(i,Rt,ee=>t(30,I=ee));let qt=Ue.ui.isFullscreen;F(i,qt,ee=>t(52,$=ee));let Jt=Ue.ui.playerSize;F(i,Jt,ee=>t(123,P=ee));let pi=Ue.ui.additionalButtons$;F(i,pi,ee=>t(56,V=ee));let cn=Ue.actions.internal.getVideoElement,Zi=Ue.actions.internal.replayInteractive,xt=Ue.state.isInteractive,ni=Ue.state.isInteractiveTime$;F(i,ni,ee=>t(122,b=ee));let Ai=Ue.state.showInteractiveGraph,zi=Ue.state.showSeekToInteractive,Ut=Ue.state.showPlayPrevChapter,wt=Ue.state.showInteractiveTimeIndicator,Mi=Ue.state.graphIsOpened$;F(i,Mi,ee=>t(58,De=ee));let Xi=Qt.seekToInteractiveDisabledTooltip$;F(i,Xi,ee=>t(129,X=ee));let oi,Ji,_i,rn,xi,sn,qi,Vi,Kt,$t,hi,Ui,Ki,gi,Li,Bi,Qe,Wi,Ht,He={},Ri=(0,l0.throttleFn)(jr,260,{leading:!1}),$i=()=>Ue.actions.internal.toggleChromecast();function Gi(){ao({isAudioDisabled:ln,audioDisabledHintCallback:kt,isAudioAvailable:y,audioIsNotExistHintCallback:at})&&bt()}async function Di(){Zt?.isActive()?await Zt?.remove():await Zt?.request()}function an(){!ln&&y&&fi.set(!1),Gi()}let Ni=Ce?Tt:dt,en="",Wt=(ee,_n)=>{if(!ee){t(45,en=U("tooltip_live"));return}_n===sl.PlaybackState.PAUSED&&t(45,en=U("tooltip_play"))},tn,li,se=()=>{s&&yt(oi)},ft=()=>{r&&Lt(Ji)};function Gt(ee){i.$$.not_equal(He.volume,ee)&&(He.volume=ee,t(20,He))}function ei(ee){i.$$.not_equal(He.chromecast,ee)&&(He.chromecast=ee,t(20,He))}function Oi(ee){i.$$.not_equal(He.pip,ee)&&(He.pip=ee,t(20,He))}function Fi(ee){li=ee,t(22,li)}function yn(ee){i.$$.not_equal(He.vkLogo,ee)&&(He.vkLogo=ee,t(20,He))}function kn(ee){i.$$.not_equal(He.prevButton,ee)&&(He.prevButton=ee,t(20,He))}function mn(ee){i.$$.not_equal(He.playButton,ee)&&(He.playButton=ee,t(20,He))}function Dt(ee){i.$$.not_equal(He.replayButton,ee)&&(He.replayButton=ee,t(20,He))}function Nn(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 wn(ee){i.$$.not_equal(He.interactiveGraphButton,ee)&&(He.interactiveGraphButton=ee,t(20,He))}function En(ee){i.$$.not_equal(He.seekToInteractiveButton,ee)&&(He.seekToInteractiveButton=ee,t(20,He))}function pn(ee){i.$$.not_equal(He.volume,ee)&&(He.volume=ee,t(20,He))}function fn(ee){i.$$.not_equal(He.playButton,ee)&&(He.playButton=ee,t(20,He))}function ie(ee){i.$$.not_equal(He.replayButton,ee)&&(He.replayButton=ee,t(20,He))}function vt(ee){i.$$.not_equal(He.liveButton,ee)&&(He.liveButton=ee,t(20,He))}function An(ee){i.$$.not_equal(He.time,ee)&&(He.time=ee,t(20,He))}function Fn(ee){i.$$.not_equal(He.episodes,ee)&&(He.episodes=ee,t(20,He))}function Hn(ee){li=ee,t(22,li)}function Xn(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){_e[ee?"unshift":"push"](()=>{Wi=ee,t(44,Wi)})}function $n(ee){_e[ee?"unshift":"push"](()=>{Fe=ee,t(0,Fe)})}function eo(ee){tn=ee,t(21,tn)}function po(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,J=ee.bottomNoSmooth),"showControls"in ee&&t(3,ke=ee.showControls),"controlsElementRef"in ee&&t(0,Fe=ee.controlsElementRef),"isAds"in ee&&t(4,Ye=ee.isAds),"canRewindLive"in ee&&t(5,Je=ee.canRewindLive),"logoClickable"in ee&&t(6,he=ee.logoClickable),"logoHidden"in ee&&t(110,Ve=ee.logoHidden),"logoTargetUrl"in ee&&t(7,ze=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(8,tt=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,Ee=ee.customFullscreenSupported),"playNextVideo"in ee&&t(12,je=ee.playNextVideo),"playPrevVideo"in ee&&t(13,rt=ee.playPrevVideo),"repeatPlaylist"in ee&&t(113,dt=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(14,st=ee.toggleFullscreen),"returnFocus"in ee&&t(15,de=ee.returnFocus),"seekToInteractive"in ee&&t(16,ct=ee.seekToInteractive),"toggleGraph"in ee&&t(17,It=ee.toggleGraph),"playPrevChapter"in ee&&t(18,_t=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&t(114,yt=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&t(115,Lt=ee.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:Ji=U(X);if(i.$$.dirty[4]&16)e:t(118,n=Y.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=Y.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,r=Y.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,l=Y.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=Y.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=Y.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,_i=h===sl.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,rn=I==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,xi=te&&!Ye&&!xt);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,sn=!te||Ye);if(i.$$.dirty[3]&1073741824)e:t(116,qi=P.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Vi=P.width>400);if(i.$$.dirty[0]&536870912)e:t(117,Kt=re);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,$t=W!==sl.ChromecastState.NOT_AVAILABLE&&!(E&&v===1)&&!G&&!xt);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ee=K==="waitingLive";t(37,hi=!!Zt&&W!==sl.ChromecastState.CONNECTED&&!G&&(v===1&&ee||!ee)&&!Kt&&!xt)}if(i.$$.dirty[3]&16777216)e:t(38,Ui=!Kt);if(i.$$.dirty[3]&1073872896)e:t(39,Ki=!Ve&&P.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,gi=ve.features.fullscreen&&!(E&&v===1)&&(xt?Ee:!0)&&!Kt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Li=(!S||Ye)&&P.width>260&&!Kt&&!(ve.features.interactiveHideTime&&xt));if(i.$$.dirty[0]&8388616)e:t(42,Bi=p||ke);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Qe=!Ye&&!S&&!!zt?.length&&qi&&!n&&!Kt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Ht=!A||C);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:Ri(cn(),Mt,He,ke);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:Wt(Ht,h);if(i.$$.dirty[0]&12582912)e:$o(li,p,Ei);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Lo(tn,p,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:Qr(Xt,u,He.playButton)};e:oi=U(Ue.state.playPrevChapterDisabledTooltip);return[Fe,ye,J,ke,Ye,Je,he,ze,tt,le,oe,fe,je,rt,st,de,ct,It,_t,Ht,He,tn,li,p,A,S,E,G,W,re,I,_i,rn,xi,sn,Vi,$t,hi,Ui,Ki,gi,Li,Bi,Qe,Wi,en,r,s,a,l,o,y,$,x,D,j,V,Q,De,We,qe,Ze,Me,Tt,Xe,Et,yi,ki,wi,Qi,ln,si,ai,Ci,Yt,ui,Yi,Si,Pi,ci,Ii,fi,Ti,Ei,zt,di,Ft,mi,Xt,ii,Bt,Rt,qt,Jt,pi,Zi,xt,ni,Ai,zi,Ut,wt,Mi,Xi,$i,Di,an,Ni,se,ft,Ve,Ce,Ee,dt,yt,Lt,qi,Kt,n,u,f,h,b,P,C,v,K,te,Y,X,Gt,ei,Oi,Fi,yn,kn,mn,Dt,Nn,On,wn,En,pn,fn,ie,vt,An,Fn,Hn,Xn,Jn,xn,$n,eo,po]}var Nu=class extends z{constructor(e){super(),q(this,e,Iv,Pv,H,{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},pv,[-1,-1,-1,-1,-1,-1])}},r0=Nu;function Tv(i){let e,t,n;function o(l){i[28](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new Am({props:r}),_e.push(()=>Oe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Ev(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 r0({props:r}),_e.push(()=>Oe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Av(i){let e,t,n,o,r=[Ev,Tv],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=nt()},m(s,u){l[e].m(s,u),w(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&&k(n),l[e].d(s)}}}function Mv(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:y}=e,{nextButtonActive:b}=e,{prevButtonActive:P}=e,{isOneVideoPlaylist:C=!1}=e,{supportLink:A}=e,{customFullscreenSupported:S=!0}=e,{playNextVideo:v}=e,{playPrevVideo:E}=e,{repeatPlaylist:G}=e,{toggleFullscreen:W}=e,{returnFocus:K=Zr.noop}=e,{seekToInteractive:re}=e,{toggleGraph:te}=e,{playPrevChapter:I}=e,{onDisabledPlayPrevChapterClick:Y=Zr.noop}=e,{onDisabledSeekToInteractiveClick:X=Zr.noop}=e,x=$e().ui.isMobile;F(i,x,V=>t(25,n=V));function D(V){a=V,t(0,a)}function j(V){a=V,t(0,a)}return i.$$set=V=>{"bottomHidden"in V&&t(1,o=V.bottomHidden),"bottomNoSmooth"in V&&t(2,r=V.bottomNoSmooth),"showControls"in V&&t(3,l=V.showControls),"controlsElementRef"in V&&t(0,a=V.controlsElementRef),"isAds"in V&&t(4,s=V.isAds),"canRewindLive"in V&&t(5,u=V.canRewindLive),"logoClickable"in V&&t(6,f=V.logoClickable),"logoHidden"in V&&t(7,p=V.logoHidden),"logoTargetUrl"in V&&t(8,h=V.logoTargetUrl),"showNextPrevButtons"in V&&t(9,y=V.showNextPrevButtons),"nextButtonActive"in V&&t(10,b=V.nextButtonActive),"prevButtonActive"in V&&t(11,P=V.prevButtonActive),"isOneVideoPlaylist"in V&&t(12,C=V.isOneVideoPlaylist),"supportLink"in V&&t(13,A=V.supportLink),"customFullscreenSupported"in V&&t(14,S=V.customFullscreenSupported),"playNextVideo"in V&&t(15,v=V.playNextVideo),"playPrevVideo"in V&&t(16,E=V.playPrevVideo),"repeatPlaylist"in V&&t(17,G=V.repeatPlaylist),"toggleFullscreen"in V&&t(18,W=V.toggleFullscreen),"returnFocus"in V&&t(19,K=V.returnFocus),"seekToInteractive"in V&&t(20,re=V.seekToInteractive),"toggleGraph"in V&&t(21,te=V.toggleGraph),"playPrevChapter"in V&&t(22,I=V.playPrevChapter),"onDisabledPlayPrevChapterClick"in V&&t(23,Y=V.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in V&&t(24,X=V.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,f,p,h,y,b,P,C,A,S,v,E,G,W,K,re,te,I,Y,X,n,x,D,j]}var Ou=class extends z{constructor(e){super(),q(this,e,Mv,Av,H,{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=Ou;function Vv(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P=i[2].default,C=Se(P,i,i[1],null),A=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],S={};for(let v=0;v<A.length;v+=1)S=ne(S,A[v]);return{c(){e=M("svg"),C&&C.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"),y=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(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_100684"),c(y,"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,S)},m(v,E){w(v,e,E),C&&C.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,y),b=!0},p(v,[E]){C&&C.p&&(!b||E&2)&&Ie(C,P,v,v[1],b?Pe(P,v[1],E,null):Te(v[1]),null),be(e,S=Le(A,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){b||(d(C,v),b=!0)},o(v){_(C,v),b=!1},d(v){v&&k(e),C&&C.d(v)}}}function Lv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Fu=class extends z{constructor(e){super(),q(this,e,Lv,Vv,H,{})}},s0=Fu;function Bv(i){let e,t;return e=new s0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Rv(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 Hu=class extends z{constructor(e){super(),q(this,e,Rv,Bv,H,{reversed:1})}},a0=Hu;function Dv(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A=i[2].default,S=Se(A,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]],E={};for(let G=0;G<v.length;G+=1)E=ne(E,v[G]);return{c(){e=M("svg"),S&&S.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"),y=M("feColorMatrix"),b=M("feBlend"),P=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(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(b,"in2","BackgroundImageFix"),c(b,"result","effect1_dropShadow_2260_104204"),c(P,"in","SourceGraphic"),c(P,"in2","effect1_dropShadow_2260_104204"),c(P,"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,E)},m(G,W){w(G,e,W),S&&S.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,y),m(s,b),m(s,P),C=!0},p(G,[W]){S&&S.p&&(!C||W&2)&&Ie(S,A,G,G[1],C?Pe(A,G[1],W,null):Te(G[1]),null),be(e,E=Le(v,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},W&1&&G[0]]))},i(G){C||(d(S,G),C=!0)},o(G){_(S,G),C=!1},d(G){G&&k(e),S&&S.d(G)}}}function Nv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var zu=class extends z{constructor(e){super(),q(this,e,Nv,Dv,H,{})}},u0=zu;function Ov(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S=i[2].default,v=Se(S,i,i[1],null),E=[{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]],G={};for(let W=0;W<E.length;W+=1)G=ne(G,E[W]);return{c(){e=M("svg"),v&&v.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"),y=M("feGaussianBlur"),b=M("feColorMatrix"),P=M("feBlend"),C=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(y,"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(P,"in2","BackgroundImageFix"),c(P,"result","effect1_dropShadow_2260_104293"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2260_104293"),c(C,"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,G)},m(W,K){w(W,e,K),v&&v.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,y),m(u,b),m(u,P),m(u,C),A=!0},p(W,[K]){v&&v.p&&(!A||K&2)&&Ie(v,S,W,W[1],A?Pe(S,W[1],K,null):Te(W[1]),null),be(e,G=Le(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},K&1&&W[0]]))},i(W){A||(d(v,W),A=!0)},o(W){_(v,W),A=!1},d(W){W&&k(e),v&&v.d(W)}}}function Fv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var qu=class extends z{constructor(e){super(),q(this,e,Fv,Ov,H,{})}},c0=qu;function Hv(i){let e,t;return e=new u0({}),{c(){R(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){B(e,n)}}}function zv(i){let e,t;return e=new c0({}),{c(){R(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){B(e,n)}}}function qv(i){let e,t,n,o,r=[zv,Hv],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=nt()},m(s,u){l[e].m(s,u),w(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&&k(n),l[e].d(s)}}}function Uv(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Uu=class extends z{constructor(e){super(),q(this,e,Uv,qv,H,{isOff:0})}},Ku=Uu;function Kv(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P=i[2].default,C=Se(P,i,i[1],null),A=[{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]],S={};for(let v=0;v<A.length;v+=1)S=ne(S,A[v]);return{c(){e=M("svg"),C&&C.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"),y=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(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_106627"),c(y,"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,S)},m(v,E){w(v,e,E),C&&C.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,y),b=!0},p(v,[E]){C&&C.p&&(!b||E&2)&&Ie(C,P,v,v[1],b?Pe(P,v[1],E,null):Te(v[1]),null),be(e,S=Le(A,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},E&1&&v[0]]))},i(v){b||(d(C,v),b=!0)},o(v){_(C,v),b=!1},d(v){v&&k(e),C&&C.d(v)}}}function Wv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var Wu=class extends z{constructor(e){super(),q(this,e,Wv,Kv,H,{})}},f0=Wu;function Gv(i){let e,t;return e=new f0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function jv(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 Gu=class extends z{constructor(e){super(),q(this,e,jv,Gv,H,{reversed:1})}},d0=Gu;function Qv(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P=i[2].default,C=Se(P,i,i[1],null),A=[{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]],S={};for(let v=0;v<A.length;v+=1)S=ne(S,A[v]);return{c(){e=M("svg"),C&&C.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"),y=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(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2340_106922"),c(y,"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,S)},m(v,E){w(v,e,E),C&&C.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,y),b=!0},p(v,[E]){C&&C.p&&(!b||E&2)&&Ie(C,P,v,v[1],b?Pe(P,v[1],E,null):Te(v[1]),null),be(e,S=Le(A,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},E&1&&v[0]]))},i(v){b||(d(C,v),b=!0)},o(v){_(C,v),b=!1},d(v){v&&k(e),C&&C.d(v)}}}function Yv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var ju=class extends z{constructor(e){super(),q(this,e,Yv,Qv,H,{})}},m0=ju;function Zv(i){let e,t;return e=new m0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Xv(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Qu=class extends z{constructor(e){super(),q(this,e,Xv,Zv,H,{reversed:1})}},p0=Qu;function Jv(i){we(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 _0(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,y,b,P,C,A=t&&h0(i),S=i[4]==="PAUSE"&&g0(i),v=i[4]==="PLAY"&&b0(i),E=i[4]==="REPLAY"&&v0(i),G=i[4]==="SUBTITLES_OFF"&&y0(i),W=i[4]==="SUBTITLES_ON"&&k0(i),K=u&&w0(i),re=p&&C0(i),te=i[4]==="MUTE"&&S0(i),I=i[4]==="VOLUME"&&P0(i),Y=i[5]&&I0(i);return{c(){e=T("div"),A&&A.c(),n=N(),S&&S.c(),o=N(),v&&v.c(),r=N(),E&&E.c(),l=N(),G&&G.c(),a=N(),W&&W.c(),s=N(),K&&K.c(),f=N(),re&&re.c(),h=N(),te&&te.c(),y=N(),I&&I.c(),b=N(),Y&&Y.c(),P=nt(),c(e,"class","svelte-4ftgwp")},m(X,$){w(X,e,$),A&&A.m(e,null),m(e,n),S&&S.m(e,null),m(e,o),v&&v.m(e,null),m(e,r),E&&E.m(e,null),m(e,l),G&&G.m(e,null),m(e,a),W&&W.m(e,null),m(e,s),K&&K.m(e,null),m(e,f),re&&re.m(e,null),m(e,h),te&&te.m(e,null),m(e,y),I&&I.m(e,null),w(X,b,$),Y&&Y.m(X,$),w(X,P,$),C=!0},p(X,$){$&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(X[4])),t?A?(A.p(X,$),$&16&&d(A,1)):(A=h0(X),A.c(),d(A,1),A.m(e,n)):A&&(ue(),_(A,1,1,()=>{A=null}),ce()),X[4]==="PAUSE"?S?$&16&&d(S,1):(S=g0(X),S.c(),d(S,1),S.m(e,o)):S&&(ue(),_(S,1,1,()=>{S=null}),ce()),X[4]==="PLAY"?v?$&16&&d(v,1):(v=b0(X),v.c(),d(v,1),v.m(e,r)):v&&(ue(),_(v,1,1,()=>{v=null}),ce()),X[4]==="REPLAY"?E?$&16&&d(E,1):(E=v0(X),E.c(),d(E,1),E.m(e,l)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),X[4]==="SUBTITLES_OFF"?G?$&16&&d(G,1):(G=y0(X),G.c(),d(G,1),G.m(e,a)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),X[4]==="SUBTITLES_ON"?W?$&16&&d(W,1):(W=k0(X),W.c(),d(W,1),W.m(e,s)):W&&(ue(),_(W,1,1,()=>{W=null}),ce()),$&16&&(u=["RATE_DOWN","RATE_UP"].includes(X[4])),u?K?(K.p(X,$),$&16&&d(K,1)):(K=w0(X),K.c(),d(K,1),K.m(e,f)):K&&(ue(),_(K,1,1,()=>{K=null}),ce()),$&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(X[4])),p?re?(re.p(X,$),$&16&&d(re,1)):(re=C0(X),re.c(),d(re,1),re.m(e,h)):re&&(ue(),_(re,1,1,()=>{re=null}),ce()),X[4]==="MUTE"?te?$&16&&d(te,1):(te=S0(X),te.c(),d(te,1),te.m(e,y)):te&&(ue(),_(te,1,1,()=>{te=null}),ce()),X[4]==="VOLUME"?I?$&16&&d(I,1):(I=P0(X),I.c(),d(I,1),I.m(e,null)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),X[5]?Y?Y.p(X,$):(Y=I0(X),Y.c(),Y.m(P.parentNode,P)):Y&&(Y.d(1),Y=null)},i(X){C||(d(A),d(S),d(v),d(E),d(G),d(W),d(K),d(re),d(te),d(I),C=!0)},o(X){_(A),_(S),_(v),_(E),_(G),_(W),_(K),_(re),_(te),_(I),C=!1},d(X){X&&(k(e),k(b),k(P)),A&&A.d(),S&&S.d(),v&&v.d(),E&&E.d(),G&&G.d(),W&&W.d(),K&&K.d(),re&&re.d(),te&&te.d(),I&&I.d(),Y&&Y.d(X)}}}function h0(i){let e,t;return e=new a0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function g0(i){let e,t;return e=new Ir({}),{c(){R(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){B(e,n)}}}function b0(i){let e,t;return e=new ol({}),{c(){R(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){B(e,n)}}}function v0(i){let e,t;return e=new Or({}),{c(){R(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){B(e,n)}}}function y0(i){let e,t;return e=new Ku({props:{isOff:!0}}),{c(){R(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){B(e,n)}}}function k0(i){let e,t;return e=new Ku({}),{c(){R(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){B(e,n)}}}function w0(i){let e,t;return e=new d0({props:{reversed:i[4]==="RATE_UP"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function C0(i){let e,t;return e=new p0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function S0(i){let e,t;return e=new Bo({props:{volume:0}}),{c(){R(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){B(e,n)}}}function P0(i){let e,t;return e=new Bo({props:{volume:1}}),{c(){R(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){B(e,n)}}}function I0(i){let e,t;return{c(){e=T("span"),t=Be(i[5]),c(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){w(n,e,o),m(e,t)},p(n,o){o&32&&Ge(t,n[5])},d(n){n&&k(e)}}}function xv(i){let e,t,n=!i[1]&&i[4]&&_0(i);return{c(){e=T("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-4ftgwp"),O(e,"hidden",i[1]),O(e,"hot-key-helpers-container--left",i[2]),O(e,"hot-key-helpers-container--right",i[3])},m(o,r){w(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=_0(o),n.c(),d(n,1),n.m(e,null)):n&&(ue(),_(n,1,1,()=>{n=null}),ce()),(!t||r&2)&&O(e,"hidden",o[1]),(!t||r&4)&&O(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&O(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d()}}}function $v(i,e,t){let n,o=me,r=()=>(o(),o=Ot(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=U(n.t.key,{value:n.t.value||""})):t(5,p=n?.text)},[l,a,s,u,f,p,n]}var Yu=class extends z{constructor(e){super(),q(this,e,$v,xv,H,{data:0},Jv)}},T0=Yu;function e5(i){we(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 t5(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v;return r=new Kn({props:{direction:"up"}}),s=new Kn({props:{direction:"up"}}),h=new Kn({props:{direction:"up"}}),P=new Kn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),R(r.$$.fragment),l=N(),a=T("div"),R(s.$$.fragment),u=N(),f=T("div"),p=T("div"),R(h.$$.fragment),y=N(),b=T("div"),R(P.$$.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(b,"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",C=U("aria_label_spherical_control")),O(e,"m-shifted",i[0])},m(E,G){w(E,e,G),m(e,t),m(t,n),m(n,o),L(r,o,null),m(n,l),m(n,a),L(s,a,null),m(t,u),m(t,f),m(f,p),L(h,p,null),m(f,y),m(f,b),L(P,b,null),A=!0,S||(v=[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(b,"mousedown",i[2]),pe(b,"mouseup",i[5]),pe(b,"mouseleave",i[5]),pe(e,"keydown",i[6]),pe(e,"keyup",i[7])],S=!0)},p(E,[G]){(!A||G&1)&&O(e,"m-shifted",E[0])},i(E){A||(d(r.$$.fragment,E),d(s.$$.fragment,E),d(h.$$.fragment,E),d(P.$$.fragment,E),A=!0)},o(E){_(r.$$.fragment,E),_(s.$$.fragment,E),_(h.$$.fragment,E),_(P.$$.fragment,E),A=!1},d(E){E&&k(e),B(r),B(s),B(h),B(P),S=!1,et(v)}}}function i5(i,e,t){let{isShifted:n=!1}=e,o=$e(),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=y=>{if(r.has(y.code))switch(y.preventDefault(),y.stopPropagation(),y.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=y=>{r.has(y.code)&&(y.preventDefault(),y.stopPropagation(),f())};return i.$$set=y=>{"isShifted"in y&&t(0,n=y.isShifted)},[n,l,a,s,u,f,p,h]}var Zu=class extends z{constructor(e){super(),q(this,e,i5,t5,H,{isShifted:0},e5)}},Jr=Zu;function n5(i){we(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 E0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function A0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function M0(i){let e,t;function n(l,a){return l[7]&&l[8]?r5:l[5]?l5:o5}let o=n(i,-1),r=o(i);return{c(){e=T("div"),t=T("span"),r.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),O(e,"mobile",i[3])},m(l,a){w(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&&O(e,"mobile",l[3])},d(l){l&&k(e),r.d()}}}function o5(i){let e,t=ht(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=V0(E0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=nt()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);w(o,e,r)},p(o,r){if(r&18){t=ht(o[1]);let l;for(l=0;l<t.length;l+=1){let a=E0(o,t,l);n[l]?n[l].p(a,r):(n[l]=V0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Hi(n,o)}}}function l5(i){let e,t,n=ht(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=B0(A0(i,n,r));return{c(){e=T("span"),t=T("span");for(let r=0;r<o.length;r+=1)o[r].c();c(t,"class","caption-segment svelte-ovfyp5"),ri(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){w(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=ht(r[6]);let a;for(a=0;a<n.length;a+=1){let s=A0(r,n,a);o[a]?o[a].p(s,l):(o[a]=B0(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&&ri(t,"font-size",r[4]+"px")},d(r){r&&k(e),Hi(o,r)}}}function r5(i){let e,t,n=U("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=Be(n),c(t,"class","caption-segment svelte-ovfyp5"),ri(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){w(r,e,l),m(e,t),m(t,o)},p(r,l){l&16&&ri(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function V0(i){let e,t,n=i[16]+"",o,r;return{c(){e=T("span"),t=T("span"),o=Be(n),r=N(),c(t,"class","caption-segment svelte-ovfyp5"),ri(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,a){w(l,e,a),m(e,t),m(t,o),m(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&Ge(o,n),a&16&&ri(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function L0(i){let e=i[16]+"",t;return{c(){t=Be(e)},m(n,o){w(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ge(t,e)},d(n){n&&k(t)}}}function B0(i){let e,t=(!i[17]||i[17]<=i[2])&&L0(i);return{c(){t&&t.c(),e=nt()},m(n,o){t&&t.m(n,o),w(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=L0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function s5(i){let e,t=i[1].length>0&&M0(i);return{c(){e=T("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),O(e,"shifted",i[0]),O(e,"auto",i[5]&&!i[8])},m(n,o){w(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=M0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&O(e,"shifted",n[0]),o&288&&O(e,"auto",n[5]&&!n[8])},i:me,o:me,d(n){n&&k(e),t&&t.d()}}}function a5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=$e(),p=Vt(),h=f.state.currentSubtitle$;F(i,h,v=>t(12,n=v));let y=f.state.isAutoSubtitleCaptionVisible$;F(i,y,v=>t(8,o=v));let b,P,C,A,S;return St(()=>{S=window.setTimeout(()=>{y.set(!1)},p.autoSubtitlesTimeout)}),Ln(()=>{window.clearTimeout(S)}),i.$$set=v=>{"shifted"in v&&t(0,r=v.shifted),"captions"in v&&t(1,l=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,b=v<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:v)}if(i.$$.dirty&2)e:t(5,P=l.some(v=>v.type==="timestamp"));if(i.$$.dirty&2)e:t(6,C=l.reduce((v,{type:E,value:G})=>(E==="timestamp"?v.push({timeAppeared:Number(G),value:""}):v.length===0?v.push({value:String(G)}):v[v.length-1].value=String(G),v),[]));if(i.$$.dirty&4096)e:t(7,A=!!n.isAuto)},[r,l,a,u,b,P,C,A,o,h,y,s,n]}var Xu=class extends z{constructor(e){super(),q(this,e,a5,s5,H,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},n5)}},xr=Xu;function u5(i){we(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 R0(i){let e,t,n;return{c(){e=T("div"),t=Be("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Be(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,r){w(o,e,r),m(e,t),m(e,n)},p(o,r){r&2&&Ge(n,o[1])},d(o){o&&k(e)}}}function c5(i){let e,t,n,o,r,l,a=i[1]&&R0(i);return{c(){e=T("div"),t=T("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=N(),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){w(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=R0(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&&k(e),a&&a.d(),r=!1,l()}}}function f5(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 Ju=class extends z{constructor(e){super(),q(this,e,f5,c5,H,{thumbUrl:0,chromecastDeviceName:1},u5)}},$r=Ju;function d5(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function m5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var xu=class extends z{constructor(e){super(),q(this,e,m5,d5,H,{})}},D0=xu;function p5(i){we(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 _5(i){let e,t,n;return t=new D0({}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,r){w(o,e,r),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&&k(e),B(t)}}}var $u=class extends z{constructor(e){super(),q(this,e,null,_5,H,{},p5)}},es=$u;function h5(i){we(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 g5(i){let e,t,n,o,r,l,a,s,u,f;return r=new ol({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=N(),R(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=U("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),O(e,"hidden",i[1])},m(p,h){w(p,e,h),m(e,t),m(t,n),m(t,o),L(r,t,null),s=!0,u||(f=[pe(t,"keydown",i[3]),pe(e,"click",lt(function(){bi(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)&&O(e,"hidden",i[1])},i(p){s||(d(r.$$.fragment,p),s=!0)},o(p){_(r.$$.fragment,p),s=!1},d(p){p&&k(e),B(r),u=!1,et(f)}}}function b5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=$e().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 ec=class extends z{constructor(e){super(),q(this,e,b5,g5,H,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},h5)}get handlePressKey(){return this.$$.ctx[3]}},ts=ec;function v5(i){we(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 Bf(i){let e;return{c(){e=P("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){C(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(){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 Nf(i){let e,t;return e=new Mf({}),{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 Of(i){let e,t;return e=new Rf({}),{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 m2(i){let e,t,n,o,l,r,a,s=i[0]&&Bf(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(),l=O(),f&&f.c(),r=O(),p&&p.c(),di(n,"width","100%"),di(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=Bf(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=Df(h),u.c(),d(u,1),u.m(e,l)):u&&(fe(),_(u,1,1,()=>{u=null}),de()),h[7]?f?b&128&&d(f,1):(f=Nf(h),f.c(),d(f,1),f.m(e,r)):f&&(fe(),_(f,1,1,()=>{f=null}),de()),h[4]?p?b&16&&d(p,1):(p=Of(h),p.c(),d(p,1),p.m(e,null)):p&&(fe(),_(p,1,1,()=>{p=null}),de())},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 p2(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=tt(),b=h.state.isEnded$;F(i,b,V=>t(7,a=V));let g=h.ui.isMobile;F(i,g,V=>t(0,o=V));let S,w,T=!1,k=h.ads.playbackState;F(i,k,V=>t(18,n=V));let v=h.ads.canSkip,I=h.ads.position;F(i,I,V=>t(5,l=V));let W=h.ads.secondsToWatchBeforeSkip;F(i,W,V=>t(6,r=V));let Q,G;St(()=>{let V=new AbortController,A=()=>{V.abort()},$=h.getAdmanWrapper();if(!s){$.onAdmanLoadingError();return}let{width:X,height:x}=et(h.ui.playerSize),N=et(h.ui.isFullscreen),te=et(h.ui.isAutoplay),E={width:X,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){he[V?"unshift":"push"](()=>{w=V,t(2,w)})}function se(V){he[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,w,Q,G,l,r,a,h,b,g,k,I,W,s,u,f,p,n,le,se]}var Ns=class extends q{constructor(e){super(),U(this,e,p2,m2,z,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},d2)}},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(l=>l>9?String(l):`0${l}`).join(":")};function _2(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"),be(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),be(e,s=Ve(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&&y(e),r&&r.d(u)}}}function h2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Os=class extends q{constructor(e){super(),U(this,e,h2,_2,z,{})}},Ff=Os;function g2(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"),be(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),be(e,s=Ve(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&&y(e),r&&r.d(u)}}}function b2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Fs=class extends q{constructor(e){super(),U(this,e,b2,g2,z,{})}},Hf=Fs;function v2(i){let e,t;return e=new Ff({}),{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 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,n,o,l=[y2,v2],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=ot()},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&&(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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&&y(n),r[e].d(s)}}}function k2(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,k2,w2,z,{isActive:0})}},ar=Hs;function C2(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 S2(i){let e=bn(i[4]-i[3])+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p(n,o){o&24&&e!==(e=bn(n[4]-n[3])+"")&&Ge(t,e)},i:_e,o:_e,d(n){n&&y(t)}}}function P2(i){let e,t,n;return t=new ar({props:{isActive:!0}}),{c(){e=P("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:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&y(e),R(t)}}}function I2(i){let e,t,n,o,l,r,a,s=[P2,S2],u=[];function f(p,h){return p[1]?0:1}return l=f(i,-1),r=u[l]=s[l](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"),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"),H(e,"live",i[1]),H(e,"hidden",i[0]),H(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):(fe(),_(u[b],1,1,()=>{u[b]=null}),de(),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)&&H(e,"live",p[1]),(!a||h&1)&&H(e,"hidden",p[0]),(!a||h&4)&&H(e,"playing",p[2])},i(p){a||(d(r),a=!0)},o(p){_(r),a=!1},d(p){p&&y(e),u[l].d()}}}function T2(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 zs=class extends q{constructor(e){super(),U(this,e,T2,I2,z,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},C2)}},ur=zs;var kl=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"),E2=(0,qf.isAndroid)(),Ao=i=>{i.stopPropagation(),i.preventDefault()},A2=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},M2=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},V2=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},L2=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Uf=i=>i.code==="Escape",R2=i=>i.code==="ArrowLeft",Kf=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},jf=i=>{if(V2(i)){Ao(i),M2(i.target);return}L2(i)&&(Ao(i),A2(i.target))},xo=i=>i?.detail===0||E2&&i?.pointerType==="",$o=async(i,e,t)=>{await Rn(),i&&!i.classList.contains("opened")&&!e&&et(t)&&(await Rn(),t.set(!1),i.focus())},Wf=async(i,e,t)=>{await Rn(),i&&!e&&et(t)&&(t.set(!1),i.focus())},Mo=async(i,e,t)=>{await Rn(),!!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)=>{jf(i),Uf(i)&&(Ao(i),e())},Sl=async(i,e,t)=>{Kf(i,!1)&&(Ao(i),e(),await Rn(),t()?.focus())},Pl=async(i,e,t,n)=>{if(jf(i),R2(i)){Ao(i),e(),t.set(!0);return}Uf(i)&&(Ao(i),n())},Qi=(i,e)=>{Kf(i)&&(Ao(i),e())},Gf=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 B2(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,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")+"",w,T,k,v,I=i[10].features.copyVideoLink&&i[9].callbacks?.onCopyVideoLink&&D2(i),W=i[12]&&i[6]!==qs.ChromecastState.CONNECTED&&!i[17]&&Xf(i);function Q(A,$){return A[4]?O2:N2}let G=Q(i,[-1,-1]),le=G(i),se=i[10].features.videoRotate&&!i[17]&&F2(i),V=i[10].showSupport&&!i[7]&&Jf(i);return{c(){e=P("ul"),I&&I.c(),t=O(),W&&W.c(),n=O(),o=P("li"),le.c(),r=O(),se&&se.c(),a=O(),V&&V.c(),s=O(),u=P("li"),p=Be(f),b=O(),g=P("li"),w=Be(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",T=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"),di(e,"top",i[3]+"px"),di(e,"left",i[2]+"px"),c(e,"class","svelte-1vzqlps")},m(A,$){C(A,e,$),I&&I.m(e,null),m(e,t),W&&W.m(e,null),m(e,n),m(e,o),le.m(o,null),m(e,r),se&&se.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,w),i[42](e),k||(v=[pe(o,"click",lt(i[24])),pe(o,"keydown",i[30]),pe(u,"click",lt(i[21])),pe(u,"keydown",i[32]),pe(g,"click",lt(i[22])),pe(g,"keydown",i[33]),pe(e,"contextmenu",Ct(i[39])),pe(e,"keydown",i[26])],k=!0)},p(A,$){A[10].features.copyVideoLink&&A[9].callbacks?.onCopyVideoLink&&I.p(A,$),A[12]&&A[6]!==qs.ChromecastState.CONNECTED&&!A[17]?W?W.p(A,$):(W=Xf(A),W.c(),W.m(e,n)):W&&(W.d(1),W=null),G===(G=Q(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]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))&&c(g,"aria-label",T),$[0]&8&&di(e,"top",A[3]+"px"),$[0]&4&&di(e,"left",A[2]+"px")},d(A){A&&y(e),I&&I.d(),W&&W.d(),le.d(),se&&se.d(),V&&V.d(),i[42](null),k=!1,it(v)}}}function D2(i){let e,t=j("menu_copy_video_link")+"",n,o,l,r,a,s,u=!i[5]&&!i[17]&&Zf(i);return{c(){e=P("li"),n=Be(t),l=O(),u&&u.c(),r=ot(),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=[pe(e,"click",lt(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(r.parentNode,r)):u&&(u.d(1),u=null)},d(f){f&&(y(e),y(l),y(r)),u&&u.d(f),a=!1,it(s)}}}function Zf(i){let e,t=j("menu_copy_video_link_with_timestamp")+"",n,o,l,r;return{c(){e=P("li"),n=Be(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=[pe(e,"click",lt(i[41])),pe(e,"keydown",i[28])],l=!0)},p:_e,d(a){a&&y(e),l=!1,it(r)}}}function Xf(i){let e,t=j("menu_pip")+"",n,o,l,r;return{c(){e=P("li"),n=Be(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=[pe(e,"click",lt(i[23])),pe(e,"keydown",i[29])],l=!0)},p:_e,d(a){a&&y(e),l=!1,it(r)}}}function N2(i){let e=j("menu_video_loop_on")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p:_e,d(n){n&&y(t)}}}function O2(i){let e=j("menu_video_loop_off")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p:_e,d(n){n&&y(t)}}}function F2(i){let e,t=j("menu_video_rotate")+"",n,o,l,r;return{c(){e=P("li"),n=Be(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=[pe(e,"click",lt(i[19])),pe(e,"keydown",i[30])],l=!0)},p:_e,d(a){a&&y(e),l=!1,it(r)}}}function Jf(i){let e,t=j("menu_report")+"",n,o,l,r;return{c(){e=P("li"),n=Be(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=[pe(e,"click",lt(i[20])),pe(e,"keydown",i[31])],l=!0)},p:_e,d(a){a&&y(e),l=!1,it(r)}}}function H2(i){let e,t=i[1]&&Yf(i);return{c(){t&&t.c(),e=ot()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=Yf(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:_e,o:_e,d(n){n&&y(e),t&&t.d(n)}}}function z2(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,w=0,T=0,k=tt(),v=At(),I=k.ui.contextMenu.visible$,W=k.ui.debugPanelVisible;F(i,W,ue=>t(8,s=ue));let Q=k.webApi.pictureInPictureApi,G=k.webApi.pictureInPictureApi?.info.isActive$;F(i,G,ue=>t(7,a=ue));let le=k.state.chromecastState$;F(i,le,ue=>t(6,r=ue));let se=k.state.isLive$;F(i,se,ue=>t(5,l=ue));let V=k.state.positionExact$;F(i,V,ue=>t(43,n=ue));let A=k.state.isInteractive,$=k.state.looped$;F(i,$,ue=>t(4,o=ue));let X=()=>{I.set(!1)},x=(ue,oe)=>{if(!g||!h||!b)return;let Se=g.getBoundingClientRect(),ce=h.getBoundingClientRect();t(2,w=ue-ce.left),t(3,T=oe-ce.top),w+Se.width>ce.width&&t(2,w=ce.width-Se.width),T+Se.height>ce.height&&t(3,T=ce.height-Se.height),t(2,w=Math.max(w,0)),t(3,T=Math.max(T,0))},N=()=>{X(),k.actions.internal.videoRotate()},te=()=>{window.open(f,"_blank"),X(),k.actions.internal.pause()},E=()=>{let ue=k.actions.internal.getDebugTextData();if(v.features.saveDebugInfoToFile){let oe=new Blob([...ue],{type:"plain/text"}),Se=window.URL.createObjectURL(oe);Zl(Se,"vk_player_debug_info","txt")}else kl(k.actions.internal.getDebugTextData());X(),S?.()},Y=()=>{W.set(!0),X(),S?.()},Re=async()=>{try{Q?.isActive()?await Q?.remove():await Q?.request()}finally{X(),S?.()}},je=()=>{k.actions.internal.setLooped(!o),X()},Ue=(ue=!1)=>{if(k.callbacks?.onCopyVideoLink){let oe=k.callbacks?.onCopyVideoLink(ue,n);oe&&kl(oe)}X()},Je=ue=>{cr(ue,X)},Ne=ue=>{Qi(ue,()=>Ue())},ve=ue=>{Qi(ue,()=>Ue(!0))},J=ue=>{Qi(ue,()=>Re())},we=ue=>{Qi(ue,()=>N())},He=ue=>{Qi(ue,()=>te())},Xe=ue=>{Qi(ue,()=>E())},xe=ue=>{Qi(ue,()=>Y())};function ke(ue){gn.call(this,i,ue)}let Le=()=>Ue(),ze=()=>Ue(!0);function Ye(ue){he[ue?"unshift":"push"](()=>{g=ue,t(0,g)})}return i.$$set=ue=>{"visible"in ue&&t(1,u=ue.visible),"supportLink"in ue&&t(34,f=ue.supportLink),"position"in ue&&t(35,p=ue.position),"playerContainerRef"in ue&&t(36,h=ue.playerContainerRef),"controlsContainerRef"in ue&&t(37,b=ue.controlsContainerRef),"menuElementRef"in ue&&t(0,g=ue.menuElementRef),"returnFocus"in ue&&t(38,S=ue.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(g&&h&&b){let{top:ue,left:oe,bottom:Se,right:ce}=p,Ae=oe??0,Ze=ue??0,st=g.getBoundingClientRect();(0,Il.isNullable)(oe)&&!(0,Il.isNullable)(ce)&&(Ae=ce-st.width),(0,Il.isNullable)(ue)&&!(0,Il.isNullable)(Se)&&(Ze=Se-st.height),Ae=Math.max(Ae,0),Ze=Math.max(Ze,0),x(Ae,Ze)}}},[g,u,w,T,o,l,r,a,s,k,v,W,Q,G,le,se,V,A,$,N,te,E,Y,Re,je,Ue,Je,Ne,ve,J,we,He,Xe,xe,f,p,h,b,S,ke,Le,ze,Ye]}var Us=class extends q{constructor(e){super(),U(this,e,z2,H2,z,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},B2,[-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 q2(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 U2(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){C(n,e,o),m(e,t),i[3](t)},p:_e,i:_e,o:_e,d(n){n&&y(e),i[3](null)}}}var Ks=16,js=120,$f=60;function K2(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function j2(i,e,t){let{values:n=[]}=e,o,l,r=js/$f;St(()=>{t(0,o.width=js,o),t(0,o.height=Ks,o),t(2,l=o.getContext("2d"))});function a(s){he[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,js,Ks);let f=$f-1;for(let p=n.length-1;p>=0;p--){let h=f*r,b=u>0?Ks*(n[p]/u):0;K2(l,h,0,r,b),s=b+" "+s,f--}}}},[o,n,l,a]}var Ws=class extends q{constructor(e){super(),U(this,e,j2,U2,z,{values:1},q2)}},dr=Ws;var Gs=require("@vkontakte/videoplayer-shared");function W2(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,l=i[0].id+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Video id",n=O(),o=P("span"),r=Be(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&&y(e)}}}function t1(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Provider",n=O(),o=P("span"),r=Be(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&&y(e)}}}function i1(i){let e,t,n,o,l=i[0].viewport+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Viewport",n=O(),o=P("span"),r=Be(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&&y(e)}}}function n1(i){let e,t,n,o,l=i[0].videoSize+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Video size",n=O(),o=P("span"),r=Be(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&&y(e)}}}function o1(i){let e,t,n,o,l=i[0].cdn+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="CDN host",n=O(),o=P("span"),r=Be(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&&y(e)}}}function l1(i){let e,t,n,o,l=i[0].volume+"",r,a;return{c(){e=P("div"),t=P("div"),t.textContent="Volume",n=O(),o=P("span"),r=Be(l),a=Be(" %"),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&&y(e)}}}function r1(i){let e,t,n,o,l=i[0].buffer.toFixed(2)+"",r,a;return{c(){e=P("div"),t=P("div"),t.textContent="Buffer",n=O(),o=P("span"),r=Be(l),a=Be(" 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&&y(e)}}}function s1(i){let e,t,n,o,l=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(c1).map(f1).join(" / ")+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Segment",n=O(),o=P("span"),r=Be(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(c1).map(f1).join(" / ")+"")&&Ge(r,l)},d(a){a&&y(e)}}}function a1(i){let e,t,n,o,l,r,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(),B(o.$$.fragment),l=O(),r=P("span"),s=Be(a),u=Be(" 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&&y(e),R(o)}}}function u1(i){let e,t,n,o,l,r,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(),B(o.$$.fragment),l=O(),r=P("span"),s=Be(a),u=Be(" 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&&y(e),R(o)}}}function G2(i){let e,t,n,o,l,r,a,s,u=i[0].version+"",f,p,h,b,g,S,w,T,k,v,I,W,Q,G,le,se,V,A,$,X,x,N,te,E,Y,Re,je,Ue,Je,Ne,ve,J,we=i[0].id&&e1(i),He=i[0].provider&&t1(i),Xe=i[0].viewport&&i1(i),xe=i[0].videoSize&&n1(i),ke=i[0].cdn&&o1(i),Le=i[0].volume&&l1(i),ze=i[0].buffer&&r1(i),Ye=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&s1(i),ue=i[0].speed&&a1(i),oe=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"),l=P("div"),r=P("div"),r.textContent="Version",a=O(),s=P("span"),f=Be(u),p=O(),we&&we.c(),h=O(),He&&He.c(),b=O(),Xe&&Xe.c(),g=O(),xe&&xe.c(),S=O(),ke&&ke.c(),w=O(),Le&&Le.c(),T=O(),ze&&ze.c(),k=O(),Ye&&Ye.c(),v=O(),I=P("div"),W=P("div"),W.textContent="Dropped",Q=O(),G=P("span"),le=Be(i[2]),se=Be(" / "),V=Be(i[1]),A=Be(" frames"),$=O(),ue&&ue.c(),X=O(),oe&&oe.c(),x=O(),N=P("div"),te=P("div"),te.textContent="FPS",E=O(),B(Y.$$.fragment),Re=O(),je=P("span"),Ue=Be(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(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=j("aria_label_debug_panel")),H(e,"container-mobile",i[7])},m(Se,ce){C(Se,e,ce),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),we&&we.m(o,null),m(o,h),He&&He.m(o,null),m(o,b),Xe&&Xe.m(o,null),m(o,g),xe&&xe.m(o,null),m(o,S),ke&&ke.m(o,null),m(o,w),Le&&Le.m(o,null),m(o,T),ze&&ze.m(o,null),m(o,k),Ye&&Ye.m(o,null),m(o,v),m(o,I),m(I,W),m(I,Q),m(I,G),m(G,le),m(G,se),m(G,V),m(G,A),m(o,$),ue&&ue.m(o,null),m(o,X),oe&&oe.m(o,null),m(o,x),m(o,N),m(N,te),m(N,E),L(Y,N,null),m(N,Re),m(N,je),m(je,Ue),Ne=!0,ve||(J=pe(t,"click",lt(i[9])),ve=!0)},p(Se,[ce]){(!Ne||ce&1)&&u!==(u=Se[0].version+"")&&Ge(f,u),Se[0].id?we?we.p(Se,ce):(we=e1(Se),we.c(),we.m(o,h)):we&&(we.d(1),we=null),Se[0].provider?He?He.p(Se,ce):(He=t1(Se),He.c(),He.m(o,b)):He&&(He.d(1),He=null),Se[0].viewport?Xe?Xe.p(Se,ce):(Xe=i1(Se),Xe.c(),Xe.m(o,g)):Xe&&(Xe.d(1),Xe=null),Se[0].videoSize?xe?xe.p(Se,ce):(xe=n1(Se),xe.c(),xe.m(o,S)):xe&&(xe.d(1),xe=null),Se[0].cdn?ke?ke.p(Se,ce):(ke=o1(Se),ke.c(),ke.m(o,w)):ke&&(ke.d(1),ke=null),Se[0].volume?Le?Le.p(Se,ce):(Le=l1(Se),Le.c(),Le.m(o,T)):Le&&(Le.d(1),Le=null),Se[0].buffer?ze?ze.p(Se,ce):(ze=r1(Se),ze.c(),ze.m(o,k)):ze&&(ze.d(1),ze=null),Se[0].currentVideoSegmentLength||Se[0].currentAudioSegmentLength?Ye?Ye.p(Se,ce):(Ye=s1(Se),Ye.c(),Ye.m(o,v)):Ye&&(Ye.d(1),Ye=null),(!Ne||ce&4)&&Ge(le,Se[2]),(!Ne||ce&2)&&Ge(V,Se[1]),Se[0].speed?ue?(ue.p(Se,ce),ce&1&&d(ue,1)):(ue=a1(Se),ue.c(),d(ue,1),ue.m(o,X)):ue&&(fe(),_(ue,1,1,()=>{ue=null}),de()),Se[0].bitrate?oe?(oe.p(Se,ce),ce&1&&d(oe,1)):(oe=u1(Se),oe.c(),d(oe,1),oe.m(o,x)):oe&&(fe(),_(oe,1,1,()=>{oe=null}),de());let Ae={};ce&16&&(Ae.values=Se[4]),Y.$set(Ae),(!Ne||ce&8)&&Ge(Ue,Se[3]),(!Ne||ce&128)&&H(e,"container-mobile",Se[7])},i(Se){Ne||(d(ue),d(oe),d(Y.$$.fragment,Se),Ne=!0)},o(Se){_(ue),_(oe),_(Y.$$.fragment,Se),Ne=!1},d(Se){Se&&y(e),we&&we.d(),He&&He.d(),Xe&&Xe.d(),xe&&xe.d(),ke&&ke.d(),Le&&Le.d(),ze&&ze.d(),Ye&&Ye.d(),ue&&ue.d(),oe&&oe.d(),R(Y),ve=!1,J()}}}var c1=({value:i})=>i,f1=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function Q2(i,e,t){let n,o=tt(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;F(i,r,v=>t(7,n=v));let a=()=>{Gs.safeStorage.remove(vl),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,h=0,b=new el(60),g=new el(60),S=new el(60),w=[],T=[],k=[];return St(()=>{Gs.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),I;return u&&(I=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,w=b.getValuesFromBottom()),t(5,T=g.getValuesFromBottom()),t(6,k=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(v),I&&clearInterval(I)}}),[s,f,p,h,w,T,k,n,r,a]}var Qs=class extends q{constructor(e){super(),U(this,e,Q2,G2,z,{},W2)}},mr=Qs;function Y2(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 Z2(i){let e,t,n;return{c(){e=P("div"),c(e,"class","close svelte-1ome55p")},m(o,l){C(o,e,l),t||(n=pe(e,"click",lt(i[0])),t=!0)},p:_e,i:_e,o:_e,d(o){o&&y(e),t=!1,n()}}}function X2(i){function e(t){gn.call(this,i,t)}return[e]}var Ys=class extends q{constructor(e){super(),U(this,e,X2,Z2,z,{},Y2)}},d1=Ys;var m1=require("@vkontakte/videoplayer-shared");function J2(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 x2(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("canvas"),n=O(),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:_e,i:_e,o:_e,d(s){s&&y(e),i[2](null)}}}var $2=5e3;function eh(i,e,t){let{onTimerEnded:n=m1.noop}=e,o;St(()=>{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)/$2;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){he[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var Zs=class extends q{constructor(e){super(),U(this,e,eh,x2,z,{onTimerEnded:1},J2)}},p1=Zs;function th(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(){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 ih(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v,I,W;a=new d1({}),a.$on("click",i[4]);let Q=i[3]&&_1(i);return{c(){e=P("div"),t=O(),n=P("div"),o=P("div"),l=P("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=O(),B(a.$$.fragment),s=O(),u=P("div"),f=P("div"),p=P("div"),h=P("div"),b=O(),Q&&Q.c(),S=O(),w=P("div"),T=P("div"),k=Be(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(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){C(G,e,le),C(G,t,le),C(G,n,le),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,w),m(w,T),m(T,k),v=!0,I||(W=pe(u,"click",function(){Ti(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(G,[le]){i=G,i[3]?Q?(Q.p(i,le),le&8&&d(Q,1)):(Q=_1(i),Q.c(),d(Q,1),Q.m(p,null)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),de()),(!v||le&2&&g!==(g=`background-image: url('${i[1]}')`))&&c(p,"style",g),(!v||le&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&&(y(e),y(t),y(n)),R(a),Q&&Q.d(),I=!1,W()}}}function nh(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 q{constructor(e){super(),U(this,e,nh,ih,z,{title:0,thumb:1,playNextVideo:2},th)}},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 lh(i){Ce(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function rh(i){let e,t,n,o,l,r=i[26].default,a=Pe(r,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=j("aria_label_video_player"))},m(s,u){C(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(l=[pe(e,"keyup",i[17]),pe(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&&y(e),a&&a.d(s),i[27](null),o=!1,it(l)}}}function sh(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,{$$slots:k={},$$scope:v}=e,{isAds:I}=e,{hideContextMenu:W}=e,{toggleFullscreen:Q}=e,{showHotKeyHelpers:G}=e,{showKeyMap:le}=e,{fakePlayButtonHandler:se}=e,V=tt(),A=At(),$=V.getLogger().createComponentLog("KeyboardControls component"),X=V.state.playbackState$;F(i,X,ye=>t(31,o=ye));let x=V.ads.playbackState;F(i,x,ye=>t(30,n=ye));let N=V.state.positionExact$;F(i,N,ye=>t(41,g=ye));let te=V.state.duration$;F(i,te,ye=>t(40,b=ye));let E=V.state.volume$;F(i,E,ye=>t(44,T=ye));let Y=V.ui.controls.disabledControls$;F(i,Y,ye=>t(39,h=ye));let Re=V.state.muted$;F(i,Re,ye=>t(34,a=ye));let je=V.state.currentSubtitle$;F(i,je,ye=>t(33,r=ye));let Ue=V.state.currentPlaybackRate$;F(i,Ue,ye=>t(42,S=ye));let Je=V.state.availablePlaybackRates$;F(i,Je,ye=>t(43,w=ye));let Ne=V.ui.contextMenu.openedByHotKey$,ve=V.ui.contextMenu.lastActiveElem$,J=V.ui.contextMenu.visible$,we=V.ui.contextMenu.position$,He=V.state.isEnded$;F(i,He,ye=>t(36,u=ye));let Xe=V.ui.overlayContainer$;F(i,Xe,ye=>t(32,l=ye));let xe=V.callbacks?.onAudioDoesNotExistHint,ke=V.callbacks?.onAudioDisabledHint,Le=V.state.isAudioAvailable$;F(i,Le,ye=>t(35,s=ye));let ze=V.state.isAudioDisabled,Ye=V.state.isInteractiveTime$;F(i,Ye,ye=>t(38,p=ye));let{showInteractiveTimeIndicatorTooltip$:ue}=Sn();F(i,ue,ye=>t(37,f=ye));let oe=0,Se=!0,ce,Ae=()=>ce?.focus(),Ze=ye=>(ye!==Se&&(Se=ye,oe=0),oe+=1,(A.controls.seekStepKeyboard+A.controls.seekStepKeyboard*oe)/1e3),st=ye=>{let $e=ye.target,pt=$e?.getAttribute("role")?.includes("menuitem"),ht=$e.classList.contains("btn"),gt=ye.code;if(ht&&gt==="Space")return;let Mt=Xc.has(gt);if(pt&&Mt)return;let Ke=!Zc.has(gt);if(ye.ctrlKey&&Ke||ye.altKey&&Ke||ye.metaKey)return;let Yt=pt&&gt==="Escape";Jc.has(gt)||Yt||W();let Nt=o===uo.PlaybackState.PLAYING||o===uo.PlaybackState.PAUSED,Lt=I&&(n==="paused"||n==="playing"),ii=!Lt&&!h.has("TIMELINE");if(Nt||Lt)switch($({message:`key down, code: ${gt}`}),gt){case"KeyJ":case"ArrowLeft":{if(!ii)break;if(ye.ctrlKey||ye.altKey){let ae=V.actions.internal.getPrevEpisode();V.actions.internal.seekToPrevEpisode(ae),ae&&G({type:"EPISODE_PREV",text:ae.text}),ye.preventDefault()}else{let ae=ye.shiftKey?Ze(!1):A.controls.seekStepKeyboard/1e3,ft=Math.max(g-ae,0);g>0&&(V.actions.internal.seekTime(ft,dn.SeekAction.DOUBLE_TAP),G({type:"BACKWARD_SEEK",text:ae.toString()}),ye.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ii)break;if(ye.ctrlKey||ye.altKey){let ae=V.actions.internal.getNextEpisode();V.actions.internal.seekToNextEpisode(ae),ae&&G({type:"EPISODE_NEXT",text:ae.text}),ye.preventDefault()}else{let ae=ye.shiftKey?Ze(!0):A.controls.seekStepKeyboard/1e3,ft=Math.min(g+ae,b);Math.round(g)<Math.round(b)&&(V.actions.internal.seekTime(ft,dn.SeekAction.DOUBLE_TAP),G({type:"FORWARD_SEEK",text:ae.toString()}),ye.preventDefault())}break}case"ArrowUp":{if(ao({isAudioDisabled:ze,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:xe})){let ae=T,ft=A.controls.volumeStepKeyboard,_t=ae<=1;if(pr(V,ae,ft),_t){let bt=Math.round(Js(ae,ft)*100).toString();G({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bt}})}}ye.preventDefault();break}case"ArrowDown":{if(ao({isAudioDisabled:ze,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:xe})){let ae=T,ft=A.controls.volumeStepKeyboard,_t=ae>=0;if(_r(V,ae,ft),_t){let bt=Math.round(xs(ae,ft)*100).toString();G({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bt}})}}ye.preventDefault();break}case"Comma":{if(ye.shiftKey){V.actions.internal.decrementPlaybackRate();let ae=w.find(ft=>ft.value===S);G({type:"RATE_DOWN",text:ae?.displayValue}),ye.preventDefault()}else{if(Lt||o!==uo.PlaybackState.PAUSED)break;let ae=Math.max(g-A.controls.seekStepFrame/1e3,0);g>0&&(G({type:"BACKWARD_SEEK"}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(ae,dn.SeekAction.DOUBLE_TAP),ye.preventDefault())}break}case"Period":{if(ye.shiftKey){V.actions.internal.incrementPlaybackRate();let ae=w.find(ft=>ft.value===S);G({type:"RATE_UP",text:ae?.displayValue}),ye.preventDefault()}else{if(Lt||o!==uo.PlaybackState.PAUSED)break;let ae=Math.min(g+A.controls.seekStepFrame/1e3,b);g<b&&(G({type:"FORWARD_SEEK"}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(ae,dn.SeekAction.DOUBLE_TAP),ye.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&ue.set(!1),se)se();else{V.actions.internal.togglePlay();let ae="PLAY";o===uo.PlaybackState.PAUSED?ae="PAUSE":u&&(ae="REPLAY"),G({type:ae})}ye.preventDefault();break;case"KeyM":{ao({isAudioDisabled:ze,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:xe})&&(G({type:a?"VOLUME":"MUTE"}),V.actions.internal.toggleMuted()),ye.preventDefault();break}case"KeyF":Q(),ye.preventDefault();break;case"KeyC":V.actions.internal.toggleSubtitle(),r.value!=="off"?G({type:"SUBTITLES_ON",text:r?.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 ae=Qf(l);we.set(ae),ve.set($e),Ne.set(!0),J.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)(gt);break}},ct=ye=>{let $e=ye.code;if(ye.ctrlKey||ye.altKey||ye.metaKey)return;let pt=o===uo.PlaybackState.PLAYING||o===uo.PlaybackState.PAUSED,ht=I&&(n==="paused"||n==="playing");if(pt||ht)switch($e){case"ShiftLeft":case"ShiftRight":oe=0;break}};function at(ye){he[ye?"unshift":"push"](()=>{ce=ye,t(0,ce)})}return i.$$set=ye=>{"isAds"in ye&&t(18,I=ye.isAds),"hideContextMenu"in ye&&t(19,W=ye.hideContextMenu),"toggleFullscreen"in ye&&t(20,Q=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,v=ye.$$scope)},[ce,X,x,N,te,E,Y,Re,je,Ue,Je,He,Xe,Le,Ye,ue,st,ct,I,W,Q,G,le,se,Ae,v,k,at]}var $s=class extends q{constructor(e){super(),U(this,e,sh,rh,z,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},lh,[-1,-1])}get focus(){return this.$$.ctx[24]}},b1=$s;function ah(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 uh(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){C(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&y(e)}}}var ea=class extends q{constructor(e){super(),U(this,e,null,uh,z,{},ah)}},hr=ea;function ch(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,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]],k={};for(let v=0;v<T.length;v+=1)k=ne(k,T[v]);return{c(){e=D("svg"),w&&w.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"),be(e,k)},m(v,I){C(v,e,I),w&&w.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,[I]){w&&w.p&&(!g||I&2)&&Te(w,S,v,v[1],g?Ie(S,v[1],I,null):Ee(v[1]),null),be(e,k=Ve(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&&v[0]]))},i(v){g||(d(w,v),g=!0)},o(v){_(w,v),g=!1},d(v){v&&y(e),w&&w.d(v)}}}function fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ta=class extends q{constructor(e){super(),U(this,e,fh,ch,z,{})}},v1=ta;var qn=require("@vkontakte/videoplayer-shared");function dh(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 mh(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=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",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,w){C(S,e,w),g&&g.m(e,null),i[16](e),f=!0,p||(h=[pe(e,"pointerdown",lt(Ct(i[15]))),pe(e,"click",lt(Ct(function(){Ti(i[10]===qn.noop?null:i[10])&&(i[10]===qn.noop?null:i[10]).apply(this,arguments)}))),pe(e,"focus",Ct(function(){Ti(i[11]===qn.noop?null:i[11])&&(i[11]===qn.noop?null:i[11]).apply(this,arguments)})),pe(e,"blur",Ct(function(){Ti(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,b,i,i[13],f?Ie(b,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&&l!==(l=i[5]??null))&&c(e,"aria-hidden",l),(!f||w&64&&r!==(r=i[6]??null))&&c(e,"aria-label",r),(!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,it(h)}}}function ph(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=qn.noop}=e,{focus:w=qn.noop}=e,{blur:T=qn.noop}=e;function k(I){gn.call(this,i,I)}function v(I){he[I?"unshift":"push"](()=>{p=I,t(0,p)})}return i.$$set=I=>{"className"in I&&t(1,l=I.className),"style"in I&&t(2,r=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,b=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,l,r,a,s,u,f,h,b,g,S,w,T,o,n,k,v]}var ia=class extends q{constructor(e){super(),U(this,e,ph,mh,z,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},dh)}},mt=ia;function _h(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,l,r=i[2]&&w1(i);return{c(){e=P("div"),t=P("h3"),n=Be(i[3]),o=O(),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=w1(a),r.c(),d(r,1),r.m(e,null)):r&&(fe(),_(r,1,1,()=>{r=null}),de())},i(a){l||(d(r),l=!0)},o(a){_(r),l=!1},d(a){a&&y(e),r&&r.d()}}}function w1(i){let e,t;return e=new mt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[hh]},$$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 hh(i){let e,t;return e=new v1({}),{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 gh(i){let e,t,n,o,l,r,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"),l=P("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=y1(f),a.c(),d(a,1),a.m(t,n)):a&&(fe(),_(a,1,1,()=>{a=null}),de()),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&&y(e),a&&a.d(),u&&u.d(f)}}}function bh(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 na=class extends q{constructor(e){super(),U(this,e,bh,gh,z,{onClose:0,showHeader:1,showCloseCross:2,title:3},_h)}},k1=na;var vh=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],l=o.tagName;vh.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function yh(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,l,r=i[10]+"",a,s;return{c(){e=P("li"),t=P("span"),o=O(),l=P("span"),a=Be(r),s=O(),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=oa(u[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=u[10]+"")&&Ge(a,r)},d(u){u&&y(e)}}}function I1(i){let e,t,n=i[5]+"",o,l,r,a,s=vt(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=Be(n),l=O(),r=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(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=vt(f[6]);let h;for(h=0;h<s.length;h+=1){let b=S1(f,s,h);u[h]?u[h].p(b,p):(u[h]=P1(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&&y(e),Oi(u,f)}}}function wh(i){let e,t=vt(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,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=vt(o[0].groups);let r;for(r=0;r<t.length;r+=1){let a=C1(o,t,r);n[r]?n[r].p(a,l):(n[r]=I1(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&&y(e),Oi(n,o)}}}function kh(i){let e,t;return e=new k1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[wh]},$$scope:{ctx:i}}}),{c(){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 Ch(i,e,t){let n,o=tt(),{data:l,show:r}=o.ui.modals.hotKeyMap;return F(i,l,s=>t(0,n=s)),[n,l,()=>{r.set(!1)}]}var la=class extends q{constructor(e){super(),U(this,e,Ch,kh,z,{},yh)}},T1=la;var Xr=require("@vkontakte/videoplayer-shared");var Lo=require("@vkontakte/videoplayer-core");var pd=require("@vkontakte/videoplayer-core");var fk=require("@vkontakte/videoplayer-shared");function Sh(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 Ph(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(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&&y(e),o&&o.d(l)}}}function Ih(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var ra=class extends q{constructor(e){super(),U(this,e,Ih,Ph,z,{},Sh)}},E1=ra;var tl=require("@vkontakte/videoplayer-core");function Th(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"),be(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),be(e,s=Ve(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&&y(e),r&&r.d(u)}}}function Eh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var sa=class extends q{constructor(e){super(),U(this,e,Eh,Th,z,{})}},A1=sa;function Ah(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"),be(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),be(e,s=Ve(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&&y(e),r&&r.d(u)}}}function Mh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var aa=class extends q{constructor(e){super(),U(this,e,Mh,Ah,z,{})}},M1=aa;function Vh(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function Lh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ua=class extends q{constructor(e){super(),U(this,e,Lh,Vh,z,{})}},V1=ua;function Rh(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function Bh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ca=class extends q{constructor(e){super(),U(this,e,Bh,Rh,z,{})}},gr=ca;function Dh(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"),be(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),be(e,s=Ve(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&&y(e),r&&r.d(u)}}}function Nh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var fa=class extends q{constructor(e){super(),U(this,e,Nh,Dh,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 Oh(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function Fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var da=class extends q{constructor(e){super(),U(this,e,Fh,Oh,z,{})}},L1=da;function Hh(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"),be(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),be(e,s=Ve(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&&y(e),r&&r.d(u)}}}function zh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ma=class extends q{constructor(e){super(),U(this,e,zh,Hh,z,{})}},R1=ma;function qh(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 Uh(i){let e,t,n,o,l=i[1]&&B1(i);return n=new R1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=P("div"),l&&l.c(),t=O(),B(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),H(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=B1(r),l.c(),d(l,1),l.m(e,t)):l&&(fe(),_(l,1,1,()=>{l=null}),de());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&H(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&&y(e),l&&l.d(),R(n)}}}function Kh(i){let e,t;return e=new L1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function B1(i){let e,t;return e=new E1({props:{$$slots:{default:[jh]},$$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 jh(i){let e,t,n;var o=i[1];function l(r){return{}}return o&&(e=pn(o,l(i))),{c(){e&&B(e.$$.fragment),t=ot()},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){fe();let s=e;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(e=pn(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&&y(t),e&&R(e,r)}}}function Wh(i){let e,t,n,o,l=[Kh,Uh],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=ot()},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):(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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&&y(n),r[e].d(s)}}}function Gh(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=co(l));if(i.$$.dirty&2)e:t(2,r=!!n&&[gr,br].includes(n))},[o,n,r,l]}var pa=class extends q{constructor(e){super(),U(this,e,Gh,Wh,z,{isMobile:0,currentQuality:3},qh)}},vr=pa;function Qh(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function Yh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var _a=class extends q{constructor(e){super(),U(this,e,Yh,Qh,z,{})}},yr=_a;function Zh(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function Xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ha=class extends q{constructor(e){super(),U(this,e,Xh,Zh,z,{})}},D1=ha;function Jh(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ga=class extends q{constructor(e){super(),U(this,e,xh,Jh,z,{})}},N1=ga;function $h(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"),be(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),be(e,u=Ve(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&&y(e),a&&a.d(f)}}}function eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ba=class extends q{constructor(e){super(),U(this,e,eg,$h,z,{})}},O1=ba;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:"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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function ig(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var va=class extends q{constructor(e){super(),U(this,e,ig,tg,z,{})}},F1=va;function ng(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function og(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ya=class extends q{constructor(e){super(),U(this,e,og,ng,z,{})}},H1=ya;function lg(i){let e,t;return e=new H1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){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 rg(i){let e,t;return e=new F1({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 sg(i){let e,t,n,o,l=[rg,lg],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=ot()},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):(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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&&y(n),r[e].d(s)}}}function ag(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 wa=class extends q{constructor(e){super(),U(this,e,ag,sg,z,{direction:3})}},Un=wa;function ug(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ka=class extends q{constructor(e){super(),U(this,e,cg,ug,z,{})}},z1=ka;function fg(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ca=class extends q{constructor(e){super(),U(this,e,dg,fg,z,{})}},il=Ca;function mg(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Sa=class extends q{constructor(e){super(),U(this,e,pg,mg,z,{})}},q1=Sa;function _g(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function hg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Pa=class extends q{constructor(e){super(),U(this,e,hg,_g,z,{})}},U1=Pa;function gg(i){Ce(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 K1(i,e,t){let n=i.slice();return n[142]=e[t],n}function j1(i,e,t){let n=i.slice();return n[145]=e[t],n}function W1(i,e,t){let n=i.slice();return n[148]=e[t],n}function G1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b=i[34]&&Q1(i),g=i[25]&&Y1(i),S=i[24]&&X1(i),w=i[23]&&J1(i),T=i[22]&&x1(i),k=i[21]&&$1(i),v=i[34]&&ed(i);return{c(){e=P("div"),b&&b.c(),t=O(),n=P("ul"),g&&g.c(),o=O(),S&&S.c(),l=O(),w&&w.c(),r=O(),T&&T.c(),a=O(),k&&k.c(),s=O(),v&&v.c(),c(n,"class","items svelte-8jolw5"),c(n,"role","menu"),c(n,"style",u=i[73]()),H(n,"items-mobile",i[34]),c(e,"class","menu svelte-8jolw5"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34]),H(e,"hidden",!i[11])},m(I,W){C(I,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),w&&w.m(n,null),m(n,r),T&&T.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=[pe(e,"keydown",i[78]),pe(e,"mouseenter",i[71]),pe(e,"mouseleave",i[72])],p=!0)},p(I,W){I[34]?b?b.p(I,W):(b=Q1(I),b.c(),b.m(e,t)):b&&(b.d(1),b=null),I[25]?g?(g.p(I,W),W[0]&33554432&&d(g,1)):(g=Y1(I),g.c(),d(g,1),g.m(n,o)):g&&(fe(),_(g,1,1,()=>{g=null}),de()),I[24]?S?(S.p(I,W),W[0]&16777216&&d(S,1)):(S=X1(I),S.c(),d(S,1),S.m(n,l)):S&&(fe(),_(S,1,1,()=>{S=null}),de()),I[23]?w?(w.p(I,W),W[0]&8388608&&d(w,1)):(w=J1(I),w.c(),d(w,1),w.m(n,r)):w&&(fe(),_(w,1,1,()=>{w=null}),de()),I[22]?T?(T.p(I,W),W[0]&4194304&&d(T,1)):(T=x1(I),T.c(),d(T,1),T.m(n,a)):T&&(fe(),_(T,1,1,()=>{T=null}),de()),I[21]?k?(k.p(I,W),W[0]&2097152&&d(k,1)):(k=$1(I),k.c(),d(k,1),k.m(n,s)):k&&(fe(),_(k,1,1,()=>{k=null}),de()),I[34]?v?(v.p(I,W),W[1]&8&&d(v,1)):(v=ed(I),v.c(),d(v,1),v.m(n,null)):v&&(fe(),_(v,1,1,()=>{v=null}),de()),(!f||W[1]&8)&&H(n,"items-mobile",I[34]),(!f||W[1]&8)&&H(e,"menu-desktop",!I[34]),(!f||W[1]&8)&&H(e,"menu-mobile",I[34]),(!f||W[0]&2048)&&H(e,"hidden",!I[11])},i(I){f||(d(g),d(S),d(w),d(T),d(k),d(v),f=!0)},o(I){_(g),_(S),_(w),_(T),_(k),_(v),f=!1},d(I){I&&y(e),b&&b.d(),g&&g.d(),S&&S.d(),w&&w.d(),T&&T.d(),k&&k.d(),v&&v.d(),i[112](null),p=!1,it(h)}}}function Q1(i){let e,t,n,o,l,r,a,s;return{c(){e=P("div"),t=P("div"),t.textContent=`${j("submenu_settings")}`,n=O(),o=P("div"),l=O(),r=P("div"),c(o,"class","close svelte-8jolw5"),c(e,"class","item menu-header svelte-8jolw5"),H(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=pe(o,"click",lt(i[57])),a=!0)},p(u,f){f[1]&8&&H(e,"item-mobile",u[34])},d(u){u&&(y(e),y(l),y(r)),a=!1,s()}}}function Y1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b;n=new vr({});let g=i[33]&&!i[34]&&Z1(i);return{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("menu_quality")}`,r=O(),a=P("div"),s=Be(i[16]),u=O(),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"),H(e,"item-mobile",i[34])},m(S,w){C(S,e,w),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=[pe(e,"click",lt(i[58])),pe(e,"keydown",i[79])],h=!0)},p(S,w){(!p||w[0]&65536)&&Ge(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&&(fe(),_(g,1,1,()=>{g=null}),de()),(!p||w[0]&134217728&&f!==(f=j("aria_label_menu_quality",{actual:S[27]})))&&c(e,"aria-label",f),(!p||w[1]&8)&&H(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,it(b)}}}function Z1(i){let e,t,n;var o=i[33];function l(r){return{}}return o&&(t=pn(o,l(i))),{c(){e=P("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){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(t=pn(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&&y(e),t&&R(t)}}}function X1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b;return n=new O1({}),{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("menu_playback_rate")}`,r=O(),a=P("div"),s=Be(i[9]),u=Be("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"),H(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=[pe(e,"click",lt(Ct(i[62]))),pe(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)&&H(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,it(b)}}}function J1(i){let e,t,n,o,l,r,a,s=i[35].displayValue+"",u,f,p,h,b;return n=new yr({}),{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("subtitles_caption")}`,r=O(),a=P("div"),u=Be(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"),H(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=[pe(e,"click",lt(i[64])),pe(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)&&H(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,it(b)}}}function x1(i){let e,t,n,o,l,r,a,s,u,f,p,h;return n=new N1({}),{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("menu_traffic_saving")}`,r=O(),a=P("div"),s=Be(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"),H(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=[pe(e,"click",lt(i[59])),pe(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)&&H(e,"item-mobile",b[34])},i(b){f||(d(n.$$.fragment,b),f=!0)},o(b){_(n.$$.fragment,b),f=!1},d(b){b&&y(e),R(n),i[111](null),p=!1,it(h)}}}function $1(i){let e,t,n,o,l,r,a,s,u;return n=new D1({}),{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("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")),H(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=[pe(e,"click",lt(i[67])),pe(e,"keydown",i[91])],s=!0)},p(f,p){(!a||p[1]&8)&&H(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,it(u)}}}function ed(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k=i[37].showSupport&&bg(i);return o=new q1({}),p=new U1({}),{c(){k&&k.c(),e=O(),t=P("li"),n=P("div"),B(o.$$.fragment),l=O(),r=P("div"),r.textContent=`${j("menu_copy_debug")}`,s=O(),u=P("li"),f=P("div"),B(p.$$.fragment),h=O(),b=P("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,I){k&&k.m(v,I),C(v,e,I),C(v,t,I),m(t,n),L(o,n,null),m(t,l),m(t,r),C(v,s,I),C(v,u,I),m(u,f),L(p,f,null),m(u,h),m(u,b),S=!0,w||(T=[pe(t,"click",lt(i[69])),pe(t,"keydown",i[93]),pe(u,"click",lt(i[70])),pe(u,"keydown",i[94])],w=!0)},p(v,I){v[37].showSupport&&k.p(v,I),(!S||I[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&&(y(e),y(t),y(s),y(u)),k&&k.d(v),R(o),R(p),w=!1,it(T)}}}function bg(i){let e,t,n,o,l,r,a,s,u;return n=new z1({}),{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("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=[pe(e,"click",lt(i[68])),pe(e,"keydown",i[92])],s=!0)},p:_e,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,it(u)}}}function td(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g;n=new Un({props:{direction:"left"}});let S=vt(i[8]),w=[];for(let k=0;k<S.length;k+=1)w[k]=od(W1(i,S,k));let T=k=>_(w[k],1,1,()=>{w[k]=null});return{c(){e=P("div"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("submenu_quality")}`,a=O(),s=P("div"),u=O(),f=P("ul");for(let k=0;k<w.length;k+=1)w[k].c();c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),H(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)),H(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-8jolw5"),H(e,"menu-desktop",!i[34]),H(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 I=0;I<w.length;I+=1)w[I]&&w[I].m(f,null);i[116](f),h=!0,b||(g=[pe(t,"click",lt(i[66])),pe(f,"keydown",i[80])],b=!0)},p(k,v){if((!h||v[1]&8)&&H(t,"item-mobile",k[34]),v[0]&256|v[1]&536870920|v[2]&524288){S=vt(k[8]);let I;for(I=0;I<S.length;I+=1){let W=W1(k,S,I);w[I]?(w[I].p(W,v),d(w[I],1)):(w[I]=od(W),w[I].c(),d(w[I],1),w[I].m(f,null))}for(fe(),I=S.length;I<w.length;I+=1)T(I);de()}(!h||v[0]&131072&&p!==(p=k[73](k[17]?.clientHeight,!0)))&&c(f,"style",p),(!h||v[1]&8)&&H(f,"items-mobile",k[34]),(!h||v[1]&8)&&H(e,"menu-desktop",!k[34]),(!h||v[1]&8)&&H(e,"menu-mobile",k[34])},i(k){if(!h){d(n.$$.fragment,k);for(let v=0;v<S.length;v+=1)d(w[v]);h=!0}},o(k){_(n.$$.fragment,k),w=w.filter(Boolean);for(let v=0;v<w.length;v+=1)_(w[v]);h=!1},d(k){k&&y(e),R(n),i[113](null),Oi(w,k),i[116](null),b=!1,it(g)}}}function id(i){let e,t,n;return t=new il({}),{c(){e=P("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&&y(e),R(t)}}}function nd(i){let e,t,n;var o=co(i[148].value);function l(r){return{}}return o&&(t=pn(o,l(i))),{c(){e=P("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=co(r[148].value))){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(t=pn(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&&y(e),t&&R(t)}}}function od(i){let e,t,n,o=i[148].displayValue+"",l,r,a=!i[34]&&co(i[148].value),s,u,f,p,h,b,g=i[148].selected&&id(i),S=a&&nd(i);function w(){return i[114](i[148])}function T(...k){return i[115](i[148],...k)}return{c(){e=P("li"),g&&g.c(),t=O(),n=P("div"),l=Be(o),r=O(),S&&S.c(),s=O(),c(n,"class","svelte-8jolw5"),H(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),H(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=[pe(e,"click",lt(w)),pe(e,"keydown",T)],h=!0)},p(k,v){i=k,i[148].selected?g?v[0]&256&&d(g,1):(g=id(i),g.c(),d(g,1),g.m(e,t)):g&&(fe(),_(g,1,1,()=>{g=null}),de()),(!p||v[0]&256)&&o!==(o=i[148].displayValue+"")&&Ge(l,o),(!p||v[1]&8)&&H(n,"quality-title-mobile",i[34]),v[0]&256|v[1]&8&&(a=!i[34]&&co(i[148].value)),a?S?(S.p(i,v),v[0]&256|v[1]&8&&d(S,1)):(S=nd(i),S.c(),d(S,1),S.m(e,s)):S&&(fe(),_(S,1,1,()=>{S=null}),de()),(!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)&&H(e,"item-mobile",i[34])},i(k){p||(d(g),d(S),p=!0)},o(k){_(g),_(S),p=!1},d(k){k&&y(e),g&&g.d(),S&&S.d(),h=!1,it(b)}}}function ld(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g;n=new Un({props:{direction:"left"}});let S=vt(i[7]),w=[];for(let k=0;k<S.length;k+=1)w[k]=sd(j1(i,S,k));let T=k=>_(w[k],1,1,()=>{w[k]=null});return{c(){e=P("div"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("submenu_playback_rate")}`,a=O(),s=P("div"),u=O(),f=P("ul");for(let k=0;k<w.length;k+=1)w[k].c();c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),H(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)),H(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-8jolw5"),H(e,"menu-desktop",!i[34]),H(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 I=0;I<w.length;I+=1)w[I]&&w[I].m(f,null);i[120](f),h=!0,b||(g=[pe(t,"click",lt(i[66])),pe(f,"keydown",i[83])],b=!0)},p(k,v){if((!h||v[1]&8)&&H(t,"item-mobile",k[34]),v[0]&128|v[1]&8|v[2]&4194306){S=vt(k[7]);let I;for(I=0;I<S.length;I+=1){let W=j1(k,S,I);w[I]?(w[I].p(W,v),d(w[I],1)):(w[I]=sd(W),w[I].c(),d(w[I],1),w[I].m(f,null))}for(fe(),I=S.length;I<w.length;I+=1)T(I);de()}(!h||v[0]&262144&&p!==(p=k[73](k[18]?.clientHeight,!0)))&&c(f,"style",p),(!h||v[1]&8)&&H(f,"items-mobile",k[34]),(!h||v[1]&8)&&H(e,"menu-desktop",!k[34]),(!h||v[1]&8)&&H(e,"menu-mobile",k[34])},i(k){if(!h){d(n.$$.fragment,k);for(let v=0;v<S.length;v+=1)d(w[v]);h=!0}},o(k){_(n.$$.fragment,k),w=w.filter(Boolean);for(let v=0;v<w.length;v+=1)_(w[v]);h=!1},d(k){k&&y(e),R(n),i[117](null),Oi(w,k),i[120](null),b=!1,it(g)}}}function rd(i){let e,t,n;return t=new il({}),{c(){e=P("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&&y(e),R(t)}}}function sd(i){let e,t,n,o=i[145].displayValue+"",l,r,a,s,u,f,p,h=i[145].selected&&rd(i);function b(){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"),l=Be(o),r=O(),c(n,"class","svelte-8jolw5"),H(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),H(e,"item-mobile",i[34])},m(S,w){C(S,e,w),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[pe(e,"click",lt(b)),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&&(fe(),_(h,1,1,()=>{h=null}),de()),(!u||w[0]&128)&&o!==(o=i[145].displayValue+"")&&Ge(l,o),(!u||w[1]&8)&&H(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)&&H(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,it(p)}}}function ad(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v,I,W,Q,G,le,se,V,A,$,X;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"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("submenu_traffic_saving")}`,a=O(),s=P("div"),u=O(),f=P("div"),p=P("ul"),h=P("li"),x&&x.c(),b=O(),g=P("div"),g.textContent=`${j("traffic_saving_disable")}`,w=O(),T=P("li"),N&&N.c(),k=O(),v=P("div"),v.textContent=`${j("traffic_saving_enable")}`,W=O(),Q=P("div"),G=O(),le=P("div"),se=P("span"),se.textContent=`${j("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),H(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-8jolw5"),c(g,"class","svelte-8jolw5"),H(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")),H(h,"item-mobile",i[34]),c(v,"class","svelte-8jolw5"),H(v,"quality-title-mobile",i[34]),c(T,"class","item item-traffic-saving svelte-8jolw5"),c(T,"role","menuitem"),c(T,"tabindex","0"),c(T,"aria-label",I=`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`),H(T,"item-mobile",i[34]),c(p,"class","items svelte-8jolw5"),c(p,"role","menu"),H(p,"items-mobile",i[34]),c(Q,"class","menu-divider svelte-8jolw5"),c(se,"class","svelte-8jolw5"),c(le,"class","item item-helper-text svelte-8jolw5"),H(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-8jolw5"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34])},m(te,E){C(te,e,E),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,w),m(p,T),N&&N.m(T,null),m(T,k),m(T,v),i[126](p),m(f,W),m(f,Q),m(f,G),m(f,le),m(le,se),A=!0,$||(X=[pe(t,"click",lt(i[66])),pe(h,"click",lt(i[122])),pe(h,"keydown",i[123]),pe(T,"click",lt(i[124])),pe(T,"keydown",i[125]),pe(p,"keydown",i[89])],$=!0)},p(te,E){(!A||E[1]&8)&&H(t,"item-mobile",te[34]),te[5]?x&&(fe(),_(x,1,1,()=>{x=null}),de()):x?E[0]&32&&d(x,1):(x=ud(te),x.c(),d(x,1),x.m(h,b)),(!A||E[1]&8)&&H(g,"quality-title-mobile",te[34]),(!A||E[1]&8)&&H(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,k)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),(!A||E[1]&8)&&H(v,"quality-title-mobile",te[34]),(!A||E[1]&8)&&H(T,"item-mobile",te[34]),(!A||E[1]&8)&&H(p,"items-mobile",te[34]),(!A||E[1]&8)&&H(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)&&H(e,"menu-desktop",!te[34]),(!A||E[1]&8)&&H(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,it(X)}}}function ud(i){let e,t,n;return t=new il({}),{c(){e=P("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&&y(e),R(t)}}}function cd(i){let e,t,n;return t=new il({}),{c(){e=P("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&&y(e),R(t)}}}function fd(i){let e,t,n,o,l,r,a,s,u,f,p,h;n=new Un({props:{direction:"left"}});let b=vt(i[6]),g=[];for(let w=0;w<b.length;w+=1)g[w]=md(K1(i,b,w));let S=w=>_(g[w],1,1,()=>{g[w]=null});return{c(){e=P("div"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("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-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),H(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)),H(s,"items-mobile",i[34]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-8jolw5"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34])},m(w,T){C(w,e,T),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=[pe(t,"click",lt(i[66])),pe(s,"keydown",i[86])],p=!0)},p(w,T){if((!f||T[1]&8)&&H(t,"item-mobile",w[34]),T[0]&64|T[1]&8|T[2]&33554440){b=vt(w[6]);let k;for(k=0;k<b.length;k+=1){let v=K1(w,b,k);g[k]?(g[k].p(v,T),d(g[k],1)):(g[k]=md(v),g[k].c(),d(g[k],1),g[k].m(s,null))}for(fe(),k=b.length;k<g.length;k+=1)S(k);de()}(!f||T[0]&1048576&&u!==(u=w[73](w[20]?.clientHeight,!0)))&&c(s,"style",u),(!f||T[1]&8)&&H(s,"items-mobile",w[34]),(!f||T[1]&8)&&H(e,"menu-desktop",!w[34]),(!f||T[1]&8)&&H(e,"menu-mobile",w[34])},i(w){if(!f){d(n.$$.fragment,w);for(let T=0;T<b.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),Oi(g,w),i[130](null),p=!1,it(h)}}}function dd(i){let e,t,n;return t=new il({}),{c(){e=P("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&&y(e),R(t)}}}function md(i){let e,t,n,o=i[142].displayValue+"",l,r,a,s,u,f,p,h=i[142].selected&&dd(i);function b(){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"),l=Be(o),r=O(),c(n,"class","svelte-8jolw5"),H(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),H(e,"item-mobile",i[34])},m(S,w){C(S,e,w),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[pe(e,"click",lt(b)),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&&(fe(),_(h,1,1,()=>{h=null}),de()),(!u||w[0]&64)&&o!==(o=i[142].displayValue+"")&&Ge(l,o),(!u||w[1]&8)&&H(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)&&H(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,it(p)}}}function vg(i){let e,t,n,o,l,r,a=i[10]&&G1(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(),l=O(),p&&p.c(),c(e,"class","svelte-8jolw5"),H(e,"hidden",!i[10]),H(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=G1(h),a.c(),d(a,1),a.m(e,t)):a&&(fe(),_(a,1,1,()=>{a=null}),de()),h[12]?s?(s.p(h,b),b[0]&4096&&d(s,1)):(s=td(h),s.c(),d(s,1),s.m(e,n)):s&&(fe(),_(s,1,1,()=>{s=null}),de()),h[13]?u?(u.p(h,b),b[0]&8192&&d(u,1)):(u=ld(h),u.c(),d(u,1),u.m(e,o)):u&&(fe(),_(u,1,1,()=>{u=null}),de()),h[15]?f?(f.p(h,b),b[0]&32768&&d(f,1)):(f=ad(h),f.c(),d(f,1),f.m(e,l)):f&&(fe(),_(f,1,1,()=>{f=null}),de()),h[14]?p?(p.p(h,b),b[0]&16384&&d(p,1)):(p=fd(h),p.c(),d(p,1),p.m(e,null)):p&&(fe(),_(p,1,1,()=>{p=null}),de()),(!r||b[0]&1024)&&H(e,"hidden",!h[10]),(!r||b[1]&8)&&H(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&&y(e),a&&a.d(),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d()}}}var yg=18;function wg(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v,I,W,Q,G,le,se,V,{ref:A=void 0}=e,{supportLink:$}=e,{playerControlsHeight:X=0}=e,{returnFocus:x}=e,N=tt(),te=At(),E=N.state.currentQuality$;F(i,E,re=>t(102,S=re));let Y=N.state.availableQualities$;F(i,Y,re=>t(8,b=re));let Re=N.state.autoQualityLimitingAvailable$;F(i,Re,re=>t(106,v=re));let je=N.state.isAutoQualityEnabled$;F(i,je,re=>t(103,w=re));let Ue=N.state.currentPlaybackRate$;F(i,Ue,re=>t(9,g=re));let Je=N.state.availablePlaybackRates$;F(i,Je,re=>t(7,p=re));let Ne=N.state.currentSubtitle$;F(i,Ne,re=>t(35,se=re));let ve=N.state.availableSubtitlesList$;F(i,ve,re=>t(6,u=re));let J=N.state.canDownload,we=N.state.hasMpegSources$;F(i,we,re=>t(107,I=re));let He=N.ui.settingsMenuVisible;F(i,He,re=>t(10,le=re));let Xe=N.ui.settingsMenuOpenedByKeyboard;F(i,Xe,re=>t(132,o=re));let xe=N.ui.isMobile;F(i,xe,re=>t(34,l=re));let ke=N.ui.mobileNotReportControlHidden$;F(i,ke,re=>t(104,T=re));let Le=N.state.canChangePlaybackSpeed$;F(i,Le,re=>t(105,k=re));let ze=N.ui.isFullscreen;F(i,ze,re=>t(135,G=re));let Ye=N.state.trafficSavingEnabled$;F(i,Ye,re=>t(5,a=re));let ue=N.ui.playerSize;F(i,ue,re=>t(134,Q=re));let oe=N.ui.debugPanelVisible;F(i,oe,re=>t(36,V=re));let Se=N.ui.playerSize;F(i,Se,re=>t(133,W=re));let ce=N.state.isInteractiveTime$,Ae=N.actions.internal.downloadVideo,Ze=N.actions.internal.closeSettingsMenu,st=!0,ct=!1,at=!1,ye=!1,$e=!1,pt=!1;function ht(){o||x?.(),Ze(),pt=!1}function gt(){t(11,st=!1),t(12,ct=!0)}function Mt(){t(11,st=!1),t(15,$e=!0)}function Ke(re){N.actions.internal.setQuality(re),ht()}function Yt(re){N.actions.internal.setTrafficSavingEnabled(re),ht()}function Nt(){t(11,st=!1),t(13,at=!0)}function Lt(re){N.actions.internal.setPlaybackRate(re),ht()}function ii(){t(11,st=!1),t(14,ye=!0)}function ae(re){N.actions.internal.setSubtitle(re),ht()}function ft(){t(11,st=!0),t(12,ct=!1),t(13,at=!1),t(14,ye=!1),t(15,$e=!1)}function _t(){Ae(),ht()}function bt(){window.open($,"_blank"),ht(),N.actions.internal.pause()}function wt(){kl(N.actions.internal.getDebugTextData()),ht()}function Ot(){oe.set(!0),ht()}function Vt(){pt=!0}function Yi(){pt=!1}function on(re,dt,ci){if(!re)return"...";let fi=dt.find(Gi=>Gi.value===re),ei=fi?fi.displayValue:re;return ci?re===pd.VideoQuality.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:ei}):ei}let mi,pi,Ai,Zt,_i;function ln(re=0,dt=!1){return l&&G&&dt?`max-height: ${Math.round(Q.height*.6)}px`:l?"":`max-height: ${W.height-yg-re-X}px; overflow: auto;`}let hi,Fi,ni,Mi,gi,Hi,bi,oi,Tt,Ft,vi=De(!1);F(i,vi,re=>t(101,h=re));let yi,Ht,li=De(!1);F(i,li,re=>t(100,f=re));let ri,Rt,Et=De(!1);F(i,Et,re=>t(99,s=re));let jt,Vi,Xt=De(!1);F(i,Xt,re=>t(98,r=re));let rn=re=>{cr(re,Ze)},sn=async re=>{Sl(re,gt,()=>{let dt=b.findIndex(ci=>ci.selected);return Ft.childNodes[dt]})},Wt=async re=>{Pl(re,ft,vi,Ze)},wi=(re,dt)=>{Qi(re,()=>Ke(dt))},zi=async re=>{Sl(re,Nt,()=>{let dt=p.findIndex(ci=>ci.selected);return Ht.childNodes[dt]})},ki=async re=>{Pl(re,ft,li,Ze)},si=(re,dt)=>{Qi(re,()=>Lt(dt))},zt=async re=>{Sl(re,ii,()=>{let dt=u.findIndex(ci=>ci.selected);return Rt.childNodes[dt]})},Gt=async re=>{Pl(re,ft,Et,Ze)},Ci=(re,dt)=>{Qi(re,()=>ae(dt))},Jt=async re=>{Sl(re,Mt,()=>{let dt=a?2:0;return Vi.childNodes[dt]})},Zi=async re=>{Pl(re,ft,Xt,Ze)},Si=(re,dt)=>{Qi(re,()=>Yt(dt))},an=re=>{Qi(re,()=>_t())},un=re=>{Qi(re,()=>bt())},Xi=re=>{Qi(re,()=>wt())},qi=re=>{Qi(re,()=>Ot())};St(()=>{let re=ce.subscribe(dt=>{dt&&!l&&!pt&&!o&&ht()});return()=>{re()}});function Li(re){he[re?"unshift":"push"](()=>{Tt=re,t(1,Tt)})}function Qt(re){he[re?"unshift":"push"](()=>{yi=re,t(2,yi)})}function ai(re){he[re?"unshift":"push"](()=>{ri=re,t(3,ri)})}function Pi(re){he[re?"unshift":"push"](()=>{jt=re,t(4,jt)})}function Ri(re){he[re?"unshift":"push"](()=>{A=re,t(0,A)})}function Ji(re){he[re?"unshift":"push"](()=>{pi=re,t(17,pi)})}let Ii=re=>Ke(re.value),Bi=(re,dt)=>wi(dt,re.value);function Di(re){he[re?"unshift":"push"](()=>{Ft=re,t(29,Ft)})}function Qe(re){he[re?"unshift":"push"](()=>{Ai=re,t(18,Ai)})}let Ui=re=>Lt(re.value),qt=(re,dt)=>si(dt,re.value);function qe(re){he[re?"unshift":"push"](()=>{Ht=re,t(30,Ht)})}function xi(re){he[re?"unshift":"push"](()=>{Zt=re,t(19,Zt)})}let Ni=()=>Yt(!1),Ki=re=>Si(re,!1),$i=()=>Yt(!0),ji=re=>Si(re,!0);function _n(re){he[re?"unshift":"push"](()=>{Vi=re,t(32,Vi)})}function xt(re){he[re?"unshift":"push"](()=>{_i=re,t(20,_i)})}let $t=re=>ae(re),Wi=(re,dt)=>Ci(dt,re);function ui(re){he[re?"unshift":"push"](()=>{Rt=re,t(31,Rt)})}return i.$$set=re=>{"ref"in re&&t(0,A=re.ref),"supportLink"in re&&t(95,$=re.supportLink),"playerControlsHeight"in re&&t(96,X=re.playerControlsHeight),"returnFocus"in re&&t(97,x=re.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1024)e:le&&(t(11,st=!0),t(12,ct=!1),t(13,at=!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,mi=on(S,b,w));if(i.$$.dirty[3]&18432)e:t(21,hi=J&&I&&!T);if(i.$$.dirty[3]&10240)e:t(22,Fi=te.features.trafficSaving&&!T&&v);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,ni=u.length>0&&!T);if(i.$$.dirty[3]&6144)e:t(24,Mi=!!k&&!T);if(i.$$.dirty[3]&2048)e:t(25,gi=!T);if(i.$$.dirty[0]&32)e:t(26,Hi=a?j("traffic_saving_on"):j("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,bi=w?j("auto_quality_option"):S);if(i.$$.dirty[0]&640)e:t(28,oi=p.find(re=>re.value===g)?.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:Cl(Tt,vi,h);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:Cl(yi,li,f);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:Cl(ri,Et,s);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:Cl(jt,Xt,r)},[A,Tt,yi,ri,jt,a,u,p,b,g,le,st,ct,at,ye,$e,mi,pi,Ai,Zt,_i,hi,Fi,ni,Mi,gi,Hi,bi,oi,Ft,Ht,Rt,Vi,n,l,se,V,te,E,Y,Re,je,Ue,Je,Ne,ve,we,He,Xe,xe,ke,Le,ze,Ye,ue,oe,Se,ht,gt,Mt,Ke,Yt,Nt,Lt,ii,ae,ft,_t,bt,wt,Ot,Vt,Yi,ln,vi,li,Et,Xt,rn,sn,Wt,wi,zi,ki,si,zt,Gt,Ci,Jt,Zi,Si,an,un,Xi,qi,$,X,x,r,s,f,h,S,w,T,k,v,I,Li,Qt,ai,Pi,Ri,Ji,Ii,Bi,Di,Qe,Ui,qt,qe,xi,Ni,Ki,$i,ji,_n,xt,$t,Wi,ui]}var Ia=class extends q{constructor(e){super(),U(this,e,wg,vg,z,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},gg,[-1,-1,-1,-1,-1])}},wr=Ia;function kg(i){Ce(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Cg(i){let e,t,n;return t=new vr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=P("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&&y(e),R(t)}}}function Sg(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:[Cg]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new mt({props:l}),he.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 Pg(i,e,t){let n,o,l,{ref:r=void 0}=e,a=tt(),s=a.state.currentQuality$;F(i,s,S=>t(4,l=S));let u=a.ui.settingsMenuVisible;F(i,u,S=>t(1,n=S));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;F(i,p,S=>t(3,o=S));let h;function b(S){let w=xo(S);f(w)}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 Ta=class extends q{constructor(e){super(),U(this,e,Pg,Sg,z,{ref:0},kg)}},Tl=Ta;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:"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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function Tg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ea=class extends q{constructor(e){super(),U(this,e,Tg,Ig,z,{})}},_d=Ea;function Eg(i){let e,t;return e=new yr({}),{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 Ag(i){let e,t;return e=new _d({}),{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,n,o,l=[Ag,Eg],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=ot()},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&&(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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&&y(n),r[e].d(s)}}}function Vg(i){let e,t;return e=new mt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:zn.KeyC,$$slots:{default:[Mg]},$$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 Lg(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 Aa=class extends q{constructor(e){super(),U(this,e,Lg,Vg,z,{isSubtitlesEnabled:0,click:1})}},hd=Aa;function Rg(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=Be(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&&y(e)}}}function Bg(i){let e,t,n,o,l=i[2]&&gd(i);return{c(){e=P("div"),t=P("span"),n=Be(i[4]),o=O(),l&&l.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),H(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=gd(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&H(e,"mobile",r[1])},i:_e,o:_e,d(r){r&&y(e),l&&l.d(),i[7](null)}}}function Dg(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){he[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=bn(o));if(i.$$.dirty&64)e:t(4,u=bn(l))},[a,n,r,s,u,o,l,f]}var Ma=class extends q{constructor(e){super(),U(this,e,Dg,Bg,z,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Rg)}},kr=Ma;var Zn=require("@vkontakte/videoplayer-shared");function Ng(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 Og(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:_e,o:_e,d(a){a&&y(e)}}}function Fg(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 Va=class extends q{constructor(e){super(),U(this,e,Fg,Og,z,{volume:1,muted:2},Ng)}},Vo=Va;var Pn=require("@vkontakte/videoplayer-shared");var wd=require("@vkontakte/videoplayer-shared");var yd=require("@vkontakte/videoplayer-shared");function Hg(i){let e,t,n=i[4].default,o=Pe(n,i,i[3],null);return{c(){e=P("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&&y(e),o&&o.d(l),i[5](null)}}}function zg(i,e,t){let n,{$$slots:o={},$$scope:l}=e,a=tt().ui.overlayContainer$;F(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){he[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 La=class extends q{constructor(e){super(),U(this,e,zg,Hg,z,{})}},bd=La;function qg(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:[Ug]},$$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 Ug(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("div"),n=Be(i[1]),o=O(),l=P("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"});`),H(l,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),H(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&&H(e,"active",s[0])},d(s){s&&y(e),i[20](null)}}}function Kg(i){let e,t,n,o,l,r,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=ot(),c(e,"class","tooltip-wrapper svelte-tny135"),H(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=[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])],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)&&H(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&&(fe(),_(u,1,1,()=>{u=null}),de())},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),l=!1,it(r)}}}var El=5;function jg(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=yd.noop}=e,g=h==="top",S,w,T,k=0,v=g?El:-El,I=0,W=0,Q=At(),G=tt(),le=G.ui.playerSize;F(i,le,Y=>t(24,o=Y));let se=G.ui.overlayContainer$;F(i,se,Y=>t(23,n=Y));let V=G.getLogger().createComponentLog("Tooltip component"),A=()=>{if(!n||!w||!S)return;let Y=n.getBoundingClientRect(),Re=S.getBoundingClientRect(),je=Re.width,Ue=w.clientWidth,Je=o.width,Ne=(je-Ue)/2,ve=Re.left+u-Y.left,J=ve+Ne,we=Re.top+f-Y.top,He=Ue/2-El,Xe=J<8,xe=J+Ue>Je-8;Xe&&(J=8,He=ve+Re.width/2-2.5*El),xe&&(J=Je-8-Ue,He=Re.left-Y.left+Re.width/2-J-El),t(6,I=J),t(7,W=we),t(5,k=He)},$=()=>{try{if(!n||!S)return;A(),t(0,s=!0)}catch(Y){V({message:String(Y)})}},X=()=>{t(0,s=!1)},x=()=>{w&&(T||(T=window.setTimeout($,Q.controls.hideTimeoutTooltips)),s&&$())},N=()=>{X(),window.clearTimeout(T),T=void 0};St(A),Ln(()=>window.clearTimeout(T));function te(Y){he[Y?"unshift":"push"](()=>{S=Y,t(3,S)})}function E(Y){he[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,b=Y.onVisibilityChange),"$$scope"in Y&&t(21,r=Y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:b(s)},[s,a,p,S,w,k,I,W,g,v,le,se,x,N,u,f,h,b,l,te,E,r]}var Ra=class extends q{constructor(e){super(),U(this,e,jg,Kg,z,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},qg)}},Cr=Ra;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,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 Qg(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:[Yg]},$$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 Yg(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 Zg(i){let e,t,n,o,l,r,a,s,u,f=[Qg,Gg],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=P("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",l=i[8]||null),Bn(()=>i[23].call(e))},m(b,g){C(b,e,g),p[t].m(e,null),i[22](e),r=qo(e,i[23].bind(e)),a=!0,s||(u=[pe(e,"pointerdown",lt(Ct(i[20]))),pe(e,"click",lt(Ct(i[21])))],s=!0)},p(b,[g]){let S=t;t=h(b,g),t===S?p[t].p(b,g):(fe(),_(p[S],1,1,()=>{p[S]=null}),de(),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&&y(e),p[t].d(),i[22](null),r(),s=!1,it(u)}}}function Xg(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:w=j("tooltip_button_disabled")}=e,{isAriaHidden:T=!1}=e,{onTooltipVisibilityChange:k=wd.noop}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:I=-18}=e,W=tt(),Q=W.ui.isMobile;F(i,Q,X=>t(13,o=X));let G=W.state.graphIsOpened$;F(i,G,X=>t(18,n=X));let le;function se(X){gn.call(this,i,X)}function V(X){gn.call(this,i,X)}function A(X){he[X?"unshift":"push"](()=>{f=X,t(0,f)})}function $(){p=this.clientWidth,t(1,p)}return i.$$set=X=>{"className"in X&&t(2,a=X.className),"disabled"in X&&t(16,s=X.disabled),"hasTooltip"in X&&t(3,u=X.hasTooltip),"ref"in X&&t(0,f=X.ref),"width"in X&&t(1,p=X.width),"isFullWidthTooltip"in X&&t(4,h=X.isFullWidthTooltip),"tooltipContent"in X&&t(5,b=X.tooltipContent),"tooltipActive"in X&&t(6,g=X.tooltipActive),"tooltipPlacement"in X&&t(7,S=X.tooltipPlacement),"disabledTooltipContent"in X&&t(17,w=X.disabledTooltipContent),"isAriaHidden"in X&&t(8,T=X.isAriaHidden),"onTooltipVisibilityChange"in X&&t(9,k=X.onTooltipVisibilityChange),"initialTranslateXPx"in X&&t(10,v=X.initialTranslateXPx),"initialTranslateYPx"in X&&t(11,I=X.initialTranslateYPx),"$$scope"in X&&t(24,r=X.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:s?t(12,le=n?j("tooltip_disabled_when_graph_on"):w):t(12,le=b)},[f,p,a,u,h,b,g,S,T,k,v,I,le,o,Q,G,s,w,n,l,se,V,A,$,r]}var Ba=class extends q{constructor(e){super(),U(this,e,Xg,Zg,z,{className:2,disabled:16,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,tooltipActive:6,tooltipPlacement:7,disabledTooltipContent:17,isAriaHidden:8,onTooltipVisibilityChange:9,initialTranslateXPx:10,initialTranslateYPx:11},Wg)}},It=Ba;function Jg(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:_e,o:_e,d(a){a&&y(e)}}}function xg(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,xg,Jg,z,{completed:0})}},Sr=Da;function $g(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 eb(i){let e,t,n,o,l;return t=new Sr({props:{completed:!!i[0].completed}}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Bn(()=>i[3].call(e)),H(e,"disabled",i[1])},m(r,a){C(r,e,a),L(t,e,null),o=qo(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)&&H(e,"disabled",r[1])},i(r){l||(d(t.$$.fragment,r),l=!0)},o(r){_(t.$$.fragment,r),l=!1},d(r){r&&y(e),R(t),o()}}}function tb(i){let e,t;return e=new It({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:[eb]},$$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 ib(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 Na=class extends q{constructor(e){super(),U(this,e,ib,tb,z,{videoEpisode:0,disabled:1},$g)}},kd=Na;function nb(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,l,r,a,s,u;return{c(){e=P("div"),t=P("div"),n=P("div"),l=O(),r=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(r,"class","video-episode-filled svelte-1h9p3m2"),c(r,"style",a=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),H(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}%`),H(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&&H(r,"mobile",f[1]),p&1&&u!==(u=`left: ${f[2].from}%; width: ${f[2].width}%`)&&c(e,"style",u),p&2&&H(e,"mobile",f[1])},d(f){f&&y(e)}}}function ob(i){let e,t=vt(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,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=vt(o[0]);let r;for(r=0;r<t.length;r+=1){let a=Cd(o,t,r);n[r]?n[r].p(a,l):(n[r]=Sd(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:_e,o:_e,d(o){o&&y(e),Oi(n,o)}}}function lb(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 Oa=class extends q{constructor(e){super(),U(this,e,lb,ob,z,{videoEpisodes:0,isMobile:1},nb)}},Pd=Oa;function rb(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=vt(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=Ad(Id(i,n,r));let l=r=>_(o[r],1,1,()=>{o[r]=null});return{c(){e=P("div");for(let r=0;r<o.length;r+=1)o[r].c();c(e,"class","interactive-icons svelte-1golz1y"),H(e,"mobile",i[5]),H(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=vt(r[21]);let s;for(s=0;s<n.length;s+=1){let u=Id(r,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(fe(),s=n.length;s<o.length;s+=1)l(s);de()}(!t||a[0]&32)&&H(e,"mobile",r[5]),(!t||a[0]&1048608)&&H(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&&y(e),Oi(o,r)}}}function Ed(i){let e,t;return e=new kd({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 Ad(i){let e,t,n=i[48].interactive&&Ed(i);return{c(){n&&n.c(),e=ot()},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=Ed(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function sb(i){let e,t,n,o,l,r;return{c(){e=P("div"),t=P("div"),o=O(),l=P("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}%);`),H(l,"active-live",i[4]),H(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&&H(l,"active-live",a[4]),s[0]&64&&H(l,"ads",a[6])},i:_e,o:_e,d(a){a&&y(e)}}}function ab(i){let e,t;return e=new Pd({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 ub(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g=i[8]&&Td(i),S=[ab,sb],w=[];function T(k,v){return k[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(),l=O(),r=P("div"),a=P("div"),c(a,"class","handle svelte-1golz1y"),H(a,"active-live",i[4]),c(r,"class","handleWrap svelte-1golz1y"),c(r,"style",s=`transform: translateX(${i[13]*100}%);`),H(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),H(t,"disabled",i[9]),H(t,"slider-dragging",i[20]),H(t,"hidden",i[2]),H(t,"slider-vertical",i[3]),H(t,"no-handle",i[10]),H(t,"square",i[7])},m(k,v){g&&g.m(k,v),C(k,e,v),C(k,t,v),w[n].m(t,null),m(t,l),m(t,r),m(r,a),i[42](t),p=!0,h||(b=[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",lt(Pn.noop)),pe(t,"wheel",i[27])],h=!0)},p(k,v){k[8]?g?(g.p(k,v),v[0]&256&&d(g,1)):(g=Td(k),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(fe(),_(g,1,1,()=>{g=null}),de());let I=n;n=T(k,v),n===I?w[n].p(k,v):(fe(),_(w[I],1,1,()=>{w[I]=null}),de(),o=w[n],o?o.p(k,v):(o=w[n]=S[n](k),o.c()),d(o,1),o.m(t,l)),(!p||v[0]&16)&&H(a,"active-live",k[4]),(!p||v[0]&8192&&s!==(s=`transform: translateX(${k[13]*100}%);`))&&c(r,"style",s),(!p||v[0]&1024)&&H(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)&&H(t,"disabled",k[9]),(!p||v[0]&1048577)&&H(t,"slider-dragging",k[20]),(!p||v[0]&5)&&H(t,"hidden",k[2]),(!p||v[0]&9)&&H(t,"slider-vertical",k[3]),(!p||v[0]&1025)&&H(t,"no-handle",k[10]),(!p||v[0]&129)&&H(t,"square",k[7])},i(k){p||(d(g),d(o),p=!0)},o(k){_(g),_(o),p=!1},d(k){k&&(y(e),y(t)),g&&g.d(k),w[n].d(),i[42](null),h=!1,it(b)}}}function cb(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:w=!1}=e,{hideHandel:T=!1}=e,k,v,{onPointerDown:I=Pn.noop}=e,{onHandleMove:W=Pn.noop}=e,{onPointerUp:Q=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:X=Pn.noop}=e,{loadedProgress:x=0}=e,{filledProgress:N=0}=e,{handleProgress:te=0}=e,{ariaLabel:E=""}=e,{ariaValueMin:Y=void 0}=e,{ariaValueMax:Re=void 0}=e,{ariaValueNow:je=void 0}=e,{ariaValueText:Ue=""}=e,Je=At(),Ne=!1,ve;function J(oe){if(Ne)return;t(20,Ne=!0),v=k.getBoundingClientRect();let Se=Le(oe.clientX,oe.clientY);I(Se),k.setPointerCapture(oe.pointerId)}function we(oe){let Se=Le(oe.clientX,oe.clientY),ce=ze(oe.clientX);le(Se,ce,v.width),Ne&&W(Se)}function He(oe){if(!Ne)return;t(20,Ne=!1);let Se=Le(oe.clientX,oe.clientY);Q(Se)}function Xe(oe){v=k.getBoundingClientRect();let Se=Le(oe.clientX,oe.clientY),ce=ze(oe.clientX);G(Se,ce,v.width)}function xe(){se()}function ke(oe){g&&(oe.preventDefault(),oe.deltaY<0?V():oe.deltaY>0?A():oe.deltaX>0?X():$())}function Le(oe,Se){return s?Math.max(0,Math.min(1,(v.height-(Se-v.top))/v.height)):Math.min(Math.max(oe-v.x,0),v.width)/v.width}function ze(oe){return Math.min(Math.max(oe-v.x,0),v.width)}function Ye(oe,Se){let ce=Je.features.episodesClustering&&!S?Je.episodeMinWidthPc:0,Ae=[],Ze=0,st=0,ct=0;for(let $e=1;$e<b.length;$e++)st=b[$e].time/ve*100,st-Ze>ce&&(Ae.push({from:Ze,width:Math.max(0,st-Ze),loadedWidth:Math.max(0,Math.min(st,oe)-Ze),filledWidth:Math.max(0,Math.min(st,Se)-Ze),interactive:b[$e-1].interactive,completed:b[$e-1].completed}),Ze=b[$e].time/ve*100,ct++);let at={from:Ze,width:Math.max(0,100-Ze),loadedWidth:Math.max(0,Math.min(oe,100)-Ze),filledWidth:Math.max(0,Math.min(Se,100)-Ze),interactive:b[ct].interactive,completed:b[ct].completed};100-Ze<ce?(ct-=1,Ae[ct].width+=100-Ze,Ae[ct].loadedWidth+=Math.max(0,Math.min(oe,100)-Ze),Ae[ct].filledWidth+=Math.max(0,Math.min(Se,100)-Ze)):Ae[ct]=at;let ye=b[0].time;if(ye!==0){let $e=ye/ve*100;Ae.unshift({from:0,width:$e,loadedWidth:Math.min($e,oe),filledWidth:Math.min($e,Se)})}return Ae}function ue(oe){he[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,w=oe.disabled),"hideHandel"in oe&&t(10,T=oe.hideHandel),"onPointerDown"in oe&&t(30,I=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,le=oe.onPointerMove),"onPointerLeave"in oe&&t(35,se=oe.onPointerLeave),"onWheelUp"in oe&&t(36,V=oe.onWheelUp),"onWheelDown"in oe&&t(37,A=oe.onWheelDown),"onWheelLeft"in oe&&t(38,$=oe.onWheelLeft),"onWheelRight"in oe&&t(39,X=oe.onWheelRight),"loadedProgress"in oe&&t(11,x=oe.loadedProgress),"filledProgress"in oe&&t(12,N=oe.filledProgress),"handleProgress"in oe&&t(13,te=oe.handleProgress),"ariaLabel"in oe&&t(14,E=oe.ariaLabel),"ariaValueMin"in oe&&t(15,Y=oe.ariaValueMin),"ariaValueMax"in oe&&t(16,Re=oe.ariaValueMax),"ariaValueNow"in oe&&t(17,je=oe.ariaValueNow),"ariaValueText"in oe&&t(18,Ue=oe.ariaValueText)},i.$$.update=()=>{if(i.$$.dirty[0]&65536)e:t(40,ve=Re??0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=b[b.length-1]?.time<ve);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=b.length&&n&&ve?Ye(x*100,N*100):[])},[l,r,a,s,u,f,p,h,S,w,T,x,N,te,E,Y,Re,je,Ue,k,Ne,o,J,we,He,Xe,xe,ke,b,g,I,W,Q,G,le,se,V,A,$,X,ve,n,ue]}var Fa=class extends q{constructor(e){super(),U(this,e,cb,ub,z,{className:0,testId:1,isHidden:2,isVertical:3,isActiveLive:4,isMobile:5,isAds:6,squareBorders:7,videoEpisodes:28,withWheelHandler:29,isInteractive:8,disabled:9,hideHandel:10,onPointerDown:30,onHandleMove:31,onPointerUp:32,onPointerEnter:33,onPointerMove:34,onPointerLeave:35,onWheelUp:36,onWheelDown:37,onWheelLeft:38,onWheelRight:39,loadedProgress:11,filledProgress:12,handleProgress:13,ariaLabel:14,ariaValueMin:15,ariaValueMax:16,ariaValueNow:17,ariaValueText:18},rb,[-1,-1])}},nl=Fa;var vn=(i,e)=>ko[i]>=ko[e],Md=(i,e)=>ko[i]<ko[e],Pr=(i,e)=>ko[i]<=ko[e],Vd=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function fb(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 db(i){let e,t;return e=new Vo({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 mb(i){let e,t;return e=new mt({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:[db]},$$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 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"),B(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),H(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)&&H(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 pb(i){let e,t,n,o,l,r;t=new Cr({props:{content:i[6],translateY:-18,$$slots:{default:[mb]},$$scope:{ctx:i}}});let a=i[4]&&Ld(i);return{c(){e=P("div"),B(t.$$.fragment),n=O(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),H(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=[pe(e,"mouseenter",function(){Ti(i[2]?i[21]:Zn.noop)&&(i[2]?i[21]:Zn.noop).apply(this,arguments)}),pe(e,"mouseleave",function(){Ti(i[2]?i[22]:Zn.noop)&&(i[2]?i[22]:Zn.noop).apply(this,arguments)}),pe(e,"wheel",Ct(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=Ld(i),a.c(),d(a,1),a.m(e,null)):a&&(fe(),_(a,1,1,()=>{a=null}),de()),(!o||u[0]&4)&&H(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(),l=!1,it(r)}}}function _b(i,e,t){let n,o,l,r,{click:a}=e,s=tt(),u=At(),f=s.state.volume$;F(i,f,Ne=>t(3,n=Ne));let p=s.state.muted$;F(i,p,Ne=>t(25,r=Ne));let h=s.actions.internal.setVolume,b=s.ui.currentGridType$;F(i,b,Ne=>t(24,l=Ne));let g=s.callbacks?.onAudioDoesNotExistHint,S=s.callbacks?.onAudioDisabledHint,w=s.state.isAudioAvailable$;F(i,w,Ne=>t(4,o=Ne));let T=s.state.isAudioDisabled,k=!1,v,I,W,Q,G,le,se=1,V=!1,A=!1;function $(Ne){se=n,h(Ne)}function X(){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,Ue()}function Re(){clearTimeout(v),t(5,k=!0)}function je(){Ue()}function Ue(){v=window.setTimeout(()=>{V||t(5,k=!1)},u.controls.volumeBarTimeout)}function Je(Ne){Ne.deltaY<0?X():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,Q=!o||r);if(i.$$.dirty[0]&16777216)e:t(2,G=Pr(l,"s"));if(i.$$.dirty[0]&6)e:G?t(6,I=""):t(6,I=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,le=Q?0:n);if(i.$$.dirty[0]&16)e:t(9,A=T&&!S||!o&&!g)},[a,Q,G,n,o,k,I,W,le,A,f,p,b,w,$,X,x,N,te,E,Y,Re,je,Je,l,r]}var Ha=class extends q{constructor(e){super(),U(this,e,_b,pb,z,{click:0},fb,[-1,-1])}},Rd=Ha;var Nd=require("@vkontakte/videoplayer-shared");function hb(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"),be(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),be(e,u=Ve(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&&y(e),a&&a.d(f)}}}function gb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var za=class extends q{constructor(e){super(),U(this,e,gb,hb,z,{})}},Bd=za;function bb(i){Ce(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function vb(i){let e,t;return e=new Bd({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 yb(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,yb,vb,z,{isFullscreen:0},bb)}},Dd=qa;function wb(i){let e,t;return e=new Dd({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 kb(i){let e,t;return e=new mt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:zn.KeyF,$$slots:{default:[wb]},$$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 Cb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Nd.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 Ua=class extends q{constructor(e){super(),U(this,e,Cb,kb,z,{isFullscreen:0,click:1})}},Ir=Ua;function Sb(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function Pb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ka=class extends q{constructor(e){super(),U(this,e,Pb,Sb,z,{})}},ol=Ka;function Ib(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function Tb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ja=class extends q{constructor(e){super(),U(this,e,Tb,Ib,z,{})}},Tr=ja;var Fd=require("@vkontakte/videoplayer-shared");function Eb(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){C(t,e,n)},d(t){t&&y(e)}}}function Ab(i){let e,t,n,o,l=i[1]&&Od(i);var r=i[8];function a(s){return{}}return r&&(n=pn(r,a(i))),{c(){l&&l.c(),e=O(),t=P("div"),n&&B(n.$$.fragment),c(t,"class","svelte-1ot3duq"),H(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=Od(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){fe();let f=n;_(f.$$.fragment,1,0,()=>{R(f,1)}),de()}r?(n=pn(r,a(s)),B(n.$$.fragment),d(n.$$.fragment,1),L(n,t,null)):n=null}(!o||u&2)&&H(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)),l&&l.d(s),n&&R(n)}}}function Mb(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:zn.KeyK,$$slots:{default:[Ab]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new mt({props:l}),he.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 Vb(i,e,t){let n,o,{fakeIsPlaying$:l}=Sn();F(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=Fd.noop}=e,{toggle:h}=l,b,g,S,w;function T(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,w=S?j("tooltip_pause"):j("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=S?Tr:ol)};e:t(6,b=h);return[r,a,u,f,p,g,b,w,n,l,s,S,o,T]}var Wa=class extends q{constructor(e){super(),U(this,e,Vb,Mb,z,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Eb)}},Al=Wa;function Lb(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function Rb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ga=class extends q{constructor(e){super(),U(this,e,Rb,Lb,z,{})}},Hd=Ga;function Bb(i){let e,t;return e=new Hd({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 Db(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 Qa=class extends q{constructor(e){super(),U(this,e,Db,Bb,z,{isPrev:0,isMobile:2})}},zd=Qa;function Nb(i){let e,t;return e=new zd({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 Ob(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:[Nb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new mt({props:l}),he.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 Fb(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 Ya=class extends q{constructor(e){super(),U(this,e,Fb,Ob,z,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},ll=Ya;function Hb(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function zb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Za=class extends q{constructor(e){super(),U(this,e,zb,Hb,z,{})}},qd=Za;function qb(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"),be(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),be(e,f=Ve(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&&y(e),s&&s.d(p)}}}function Ub(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Xa=class extends q{constructor(e){super(),U(this,e,Ub,qb,z,{})}},Ud=Xa;function Kb(i){Ce(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 jb(i){let e,t;return e=new Ud({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 Wb="vk-video-logo-icon--short";function Gb(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?Wb:"vk-video-logo-icon"),!o&&!n&&(t(0,l=91),t(1,r="vk-video-logo-icon--en"))},[l,r,n,o]}var Ja=class extends q{constructor(e){super(),U(this,e,Gb,jb,z,{short:2,isCyrillic:3},Kb)}},Kd=Ja;var jd=require("@vkontakte/videoplayer-shared");function Yb(i){let e,t;return e=new qd({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zb(i){let e,t;return e=new Kd({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 Xb(i){let e,t,n,o,l=[Zb,Yb],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=ot()},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):(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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&&y(n),r[e].d(s)}}}function Jb(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:[Xb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new mt({props:l}),he.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 xb(i,e,t){let n,o,l,r,{ref:a=void 0}=e,{logoClickable:s=!1}=e,{targetUrl:u=""}=e,{click:f}=e,p=At(),h=tt(),b=h.ui.currentGridType$;F(i,b,W=>t(13,l=W));let g=h.ui.isMobile;F(i,g,W=>t(14,r=W));let S=h.interfaceLanguage$;F(i,S,W=>t(12,o=W));let w,T,k,v=()=>{f(),h.callbacks?.onLogoClicked?.(),u&&window.open(u,"_blank")};function I(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||Pr(l,"l"))&&T);if(i.$$.dirty&4096)e:t(5,n=o===jd.InterfaceLanguage.RU)};e:t(3,w=p.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo"));e:t(2,T=p.logoType==="vk_video"||p.logoType==="vk_video_mobile");return[a,s,T,w,k,n,b,g,S,v,u,f,o,l,r,I]}var xa=class extends q{constructor(e){super(),U(this,e,xb,Jb,z,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Er=xa;var Gd=require("@vkontakte/videoplayer-core");var $a=require("@vkontakte/videoplayer-core");function $b(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 e4(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"),H(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"),H(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&&H(s,"hidden",!u[1]),f&4&&H(e,"connecting",u[2])},d(u){u&&y(e)}}}function t4(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v,I,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"),w=D("feColorMatrix"),T=D("feOffset"),k=D("feGaussianBlur"),v=D("feColorMatrix"),I=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(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(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(I,"in2","BackgroundImageFix"),c(I,"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,w),m(g,T),m(g,k),m(g,v),m(g,I),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&&y(e)}}}function i4(i){let e;function t(l,r){return l[0]?t4:e4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ot()},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:_e,o:_e,d(l){l&&y(e),o.d(l)}}}function n4(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===$a.ChromecastState.CONNECTING),t(1,l=o===$a.ChromecastState.CONNECTED)},[n,l,r,o]}var eu=class extends q{constructor(e){super(),U(this,e,n4,i4,z,{isMobile:0,state:3},$b)}},Wd=eu;var Qd=require("@vkontakte/videoplayer-shared");function o4(i){let e,t;return e=new Wd({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 l4(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[o4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new mt({props:l}),he.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 r4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=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,l=u.state),"click"in u&&t(3,r=u.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,a=l===Gd.ChromecastState.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var tu=class extends q{constructor(e){super(),U(this,e,r4,l4,z,{ref:0,isMobile:1,state:2,click:3})}},Ar=tu;var Mr=require("@vkontakte/videoplayer-core");function s4(i){let e,t;return e=new ar({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 a4(i){let e,t;return e=new mt({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:[s4]},$$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]===Mr.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 u4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=tt(),s=a.state.playbackState$;F(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===Mr.PlaybackState.PAUSED&&f()})},[o,l,r,n,p,s]}var iu=class extends q{constructor(e){super(),U(this,e,u4,a4,z,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Vr=iu;function c4(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 f4(i){let e,t,n,o,l=i[9].default,r=Pe(l,i,i[8],null);return{c(){e=P("div"),t=P("div"),r&&r.c(),c(t,"class","tooltip svelte-5ygsa2"),H(t,"active",i[0]),H(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)&&H(t,"active",a[0]),(!o||s&2)&&H(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&&y(e),r&&r.d(a),i[10](null),i[11](null)}}}function d4(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(w){if(!h)return 0;let{width:T}=h.getBoundingClientRect(),k=T/2;return w<k?k:w>f-k?f-k:w}function g(w){he[w?"unshift":"push"](()=>{h=w,t(4,h)})}function S(w){he[w?"unshift":"push"](()=>{p=w,t(3,p)})}return i.$$set=w=>{"active"in w&&t(0,r=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,l=w.$$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 nu=class extends q{constructor(e){super(),U(this,e,d4,f4,z,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},c4)}},Yd=nu;var Lr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function m4(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(l,r){return l[2]&&l[10].completed===!1?_4:p4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ot()},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&&y(e),o.d(l)}}}function p4(i){let e=(i[10].text||"")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ge(t,e)},d(n){n&&y(t)}}}function _4(i){let e=j("tooltip_episode_unfinished")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p:_e,d(n){n&&y(t)}}}function Xd(i){let e,t;return{c(){e=P("div"),t=Be(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&&y(e)}}}function h4(i){let e,t,n,o,l,r,a=i[10]&&Zd(i),s=!i[2]&&Xd(i);return{c(){e=P("div"),t=P("div"),o=O(),l=P("div"),a&&a.c(),r=O(),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"),H(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=Zd(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=Xd(u),s.c(),s.m(e,null)),f&2&&H(e,"mobile",u[1])},i:_e,o:_e,d(u){u&&y(e),a&&a.d(),s&&s.d()}}}var rl=150;function g4(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=tt().ui.rotateAlpha;F(i,h,G=>t(11,n=G));let b,g,S,w,T,k,v,I;function W(){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 Q(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 X=a.countPerRow;!a.isUV&&se===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(X=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let x=b*X,N=g*$,te=-A*b,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,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:w,imgHeight:T,imgOffsetX:k,imgOffsetY:v}=Q(s),S,(t(6,w),t(15,s)),(t(7,T),t(15,s)),(t(8,k),t(15,s)),(t(9,v),t(15,s)));if(i.$$.dirty&106496)e:t(10,I=Lr(s,u,r))};e:t(3,{width:b,height:g}=W(),b,t(4,g));return[o,l,f,b,g,S,w,T,k,v,I,n,h,r,a,s,u]}var ou=class extends q{constructor(e){super(),U(this,e,g4,h4,z,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},m4)}},Jd=ou;function b4(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 v4(i){let e,t;return{c(){e=P("span"),t=Be(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:_e,o:_e,d(n){n&&y(e)}}}function y4(i){let e,t;return e=new Jd({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 w4(i){let e,t,n,o,l=[y4,v4],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=ot()},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):(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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&&y(n),r[e].d(s)}}}function k4(i){let e,t,n,o,l=[i[9]],r={$$slots:{default:[w4]},$$scope:{ctx:i}};for(let a=0;a<l.length;a+=1)r=ne(r,l[a]);return e=new Yd({props:r}),n=new nl({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=O(),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?Ve(l,[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=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&&y(t),R(e,a),R(n,a)}}}function C4(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,{showTimeline:g=!1}=e,S=tt(),w=At(),T=S.state.bufferedProgress$;F(i,T,ue=>t(12,h=ue));let k=S.state.positionWithScrubbing$;F(i,k,ue=>t(39,s=ue));let v=S.state.duration$;F(i,v,ue=>t(1,l=ue));let I=S.state.isLive$;F(i,I,ue=>t(0,o=ue));let W=S.state.isActiveLive$;F(i,W,ue=>t(11,p=ue));let Q=S.ui.isMobile;F(i,Q,ue=>t(10,f=ue));let G=w.features.episodes?S.actions.internal.getVideoEpisodes():void 0,le=S.actions.internal.getPreviewThumbsData(),se=S.state.interactiveEpisodes$;F(i,se,ue=>t(40,u=ue));let V=S.state.isInteractive,A=S.state.isInteractiveTime$;F(i,A,ue=>t(2,r=ue));let $=S.state.isInteractiveExpectation$;F(i,$,ue=>t(38,a=ue));let X=S.actions.internal.correctSeekTimeToInteractive,x=S.ui.controls.disabledControls$;F(i,x,ue=>t(13,b=ue));let N,te,E,Y,Re=!1,je="",Ue=0,Je=0,Ne=0,ve;function J(ue){return!X||!V?ue:X(ue*l)/l}function we(ue){S.actions.internal.startScrubbing(J(ue))}function He(ue){r||S.actions.internal.progressScrubbing(J(ue))}function Xe(ue){S.actions.internal.completeScrubbing(J(ue)),t(34,Re=!1)}function xe(ue,oe,Se){ze(ue,oe,Se),t(34,Re=!0)}function ke(ue,oe,Se){ze(ue,oe,Se),t(34,Re=!0)}function Le(){t(34,Re=!1)}function ze(ue,oe,Se){t(8,Ne=J(ue)),t(35,Ue=oe),Se&&t(36,Je=Se),t(7,je=Ye(ue))}function Ye(ue){let oe=bn((o?1-ue:ue)*l);return o?`-${oe}`:oe}return i.$$set=ue=>{"showTimeline"in ue&&t(33,g=ue.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(l));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/l);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,ve=a||r);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:Je,translateXPx:Ue,translateYPx:V&&le?-36:-16,active:Re&&g&&!ve,pointer:!w.features.timelinePreview||!le||o})},[o,l,r,N,te,E,Y,je,Ne,n,f,p,h,b,w,T,k,v,I,W,Q,le,se,V,A,$,x,we,He,Xe,xe,ke,Le,g,Re,Ue,Je,ve,a,s,u]}var lu=class extends q{constructor(e){super(),U(this,e,C4,k4,z,{showTimeline:33},b4,[-1,-1])}},xd=lu;function S4(i){let e,t;return e=new nl({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 P4(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,a=tt().ui.isMobile;F(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=bn(l));if(i.$$.dirty&64)e:t(2,u=bn(o));if(i.$$.dirty&65)e:t(3,f=o/l)},[l,s,u,f,n,a,o]}var ru=class extends q{constructor(e){super(),U(this,e,P4,S4,z,{position:6,duration:0})}},Rr=ru;function I4(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 T4(i){let e;return{c(){e=P("div"),c(e,"class","timeline-stub svelte-1gqonyf"),H(e,"mobile",i[2])},m(t,n){C(t,e,n)},p(t,n){n&4&&H(e,"mobile",t[2])},i:_e,o:_e,d(t){t&&y(e)}}}function E4(i){let e,t,n,o,l=[M4,A4],r=[];function a(s,u){return s[0]?0:1}return t=a(i,-1),n=r[t]=l[t](i),{c(){e=P("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),H(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):(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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)&&H(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&y(e),r[t].d()}}}function A4(i){let e,t;return e=new xd({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 M4(i){let e,t;return e=new Rr({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 V4(i){let e,t,n,o,l=[E4,T4],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=ot()},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):(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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&&y(n),r[e].d(s)}}}function L4(i,e,t){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,p=tt(),h=p.state.isLive$;F(i,h,T=>t(12,n=T));let b=p.ads.duration;F(i,b,T=>t(4,r=T));let g=p.ads.position;F(i,g,T=>t(3,l=T));let S=p.ui.isMobile;F(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,l,r,h,b,g,S,s,u,f,n]}var su=class extends q{constructor(e){super(),U(this,e,L4,V4,z,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},I4)}},Br=su;var tm=require("@vkontakte/videoplayer-shared");function R4(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"),be(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),be(e,u=Ve(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&&y(e),a&&a.d(f)}}}function B4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var au=class extends q{constructor(e){super(),U(this,e,B4,R4,z,{})}},$d=au;function D4(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function N4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var uu=class extends q{constructor(e){super(),U(this,e,N4,D4,z,{})}},em=uu;function O4(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 F4(i){let e,t,n,o;e=new $d({});function l(s,u){if(s[4]==="FULL")return q4;if(s[4]==="COUNT")return z4}let r=l(i,-1),a=r&&r(i);return{c(){B(e.$$.fragment),t=O(),a&&a.c(),n=ot()},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&&(y(t),y(n)),R(e,s),a&&a.d(s)}}}function H4(i){let e,t,n,o,l,r;return l=new em({}),{c(){e=P("span"),t=Be(i[2]),n=O(),o=P("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&&(y(e),y(n),y(o)),R(l)}}}function z4(i){let e,t=i[0].length+"",n;return{c(){e=P("span"),n=Be(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&&y(e)}}}function q4(i){let e,t;return{c(){e=P("span"),t=Be(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&&y(e)}}}function U4(i){let e,t,n,o,l=[H4,F4],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=ot()},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):(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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&&y(n),r[e].d(s)}}}function K4(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:[U4]},$$scope:{ctx:i}};return i[1]!==void 0&&(l.ref=i[1]),e=new mt({props:l}),he.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 j4(i,e,t){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=tt(),b=h.callbacks?.onEpisodeChanged??tm.noop,g=!!h.callbacks?.onEpisodeClicked,S=h.ui.currentGridType$;F(i,S,V=>t(18,a=V));let w=h.ui.episodes.openedByKeyboard$;F(i,w,V=>t(17,r=V));let T=h.ui.episodes.panelOpened$;F(i,T,V=>t(3,l=V));let k=h.ui.isMobile;F(i,k,V=>t(6,s=V));let v,I=V=>{if(!!h.callbacks?.onEpisodeClicked){let $=xo(V);w.set($),T.set(!0),h.callbacks?.onEpisodeClicked?.($)}},W,Q,G,le=async(V,A,$)=>{await Rn(),V?.getAttribute("aria-expanded")==="false"&&A&&!$&&(w.set(!1),V.focus())};function se(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=Lr(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:vn(a,"xl")?t(4,Q="FULL"):vn(a,"m")&&Md(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:le(v,r,l)},[p,v,o,l,Q,G,s,g,S,w,T,k,I,u,f,W,n,r,a,se]}var cu=class extends q{constructor(e){super(),U(this,e,j4,K4,z,{position:13,duration:14,timeCodes:0},O4)}},Dr=cu;function W4(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"),be(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),be(e,s=Ve(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&&y(e),r&&r.d(u)}}}function G4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var fu=class extends q{constructor(e){super(),U(this,e,G4,W4,z,{})}},im=fu;function Q4(i){let e,t;return e=new im({}),{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 Y4(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:[Q4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new mt({props:l}),he.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 Z4(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 du=class extends q{constructor(e){super(),U(this,e,Z4,Y4,z,{ref:0,hidden:1,disabled:2,click:3})}},Nr=du;function X4(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"),be(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),be(e,s=Ve(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&&y(e),r&&r.d(u)}}}function J4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var mu=class extends q{constructor(e){super(),U(this,e,J4,X4,z,{})}},nm=mu;function x4(i){Ce(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function $4(i){let e,t;return e=new nm({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 ev(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,ev,$4,z,{isOpened:0},x4)}},om=pu;function tv(i){let e,t;return e=new om({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 iv(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:[tv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new mt({props:l}),he.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 nv(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 _u=class extends q{constructor(e){super(),U(this,e,nv,iv,z,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Or=_u;function ov(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function lv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var hu=class extends q{constructor(e){super(),U(this,e,lv,ov,z,{})}},Fr=hu;var rm=require("@vkontakte/videoplayer-shared");function rv(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 lm(i){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&y(e)}}}function sv(i){let e,t,n,o,l=i[1]&&lm(i);return n=new Fr({}),{c(){l&&l.c(),e=O(),t=P("div"),B(n.$$.fragment),c(t,"class","svelte-1ot3duq"),H(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=lm(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&H(t,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(y(e),y(t)),l&&l.d(r),R(n)}}}function av(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:zn.KeyK,$$slots:{default:[sv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new mt({props:l}),he.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 uv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=rm.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 gu=class extends q{constructor(e){super(),U(this,e,uv,av,z,{ref:0,isMobile:1,disabled:2,className:3,click:4},rv)}},Ml=gu;function cv(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function fv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var bu=class extends q{constructor(e){super(),U(this,e,fv,cv,z,{})}},sm=bu;function dv(i){let e,t;return e=new sm({}),{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 mv(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:[dv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new mt({props:l}),he.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 pv(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 vu=class extends q{constructor(e){super(),U(this,e,pv,mv,z,{ref:0,hidden:1,disabled:2,click:3})}},Hr=vu;var yu=require("@vkontakte/videoplayer-shared");function _v(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 hv(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(l,r){C(l,e,r),n||(o=pe(e,"error",i[7]),n=!0)},p(l,r){r&1&&!hs(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&y(e),n=!1,o()}}}function gv(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){C(t,e,n)},p:_e,d(t){t&&y(e)}}}function bv(i){let e;function t(l,r){return l[5]?gv:hv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ot()},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&&y(e),o.d(l)}}}function vv(i){let e,t;return e=new mt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[bv]},$$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 yv(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=yu.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===yu.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 wu=class extends q{constructor(e){super(),U(this,e,yv,vv,z,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},_v)}},zr=wu;var Lm=require("@vkontakte/videoplayer-shared");var tn=require("@vkontakte/videoplayer-core"),yE=require("@vkontakte/videoplayer-shared"),ut=require("@vkontakte/videoplayer-shared"),Xn=require("@vkontakte/videoplayer-statistics"),wE=require("@vkontakte/videoplayer-interactive");var Pt=require("@vkontakte/videoplayer-shared");var am=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var wv="//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,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Pt.addScript)(wv,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,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"}),et(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:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,b=this.playerState&&et(this.playerState.vsid);b&&(h=parseInt(b,36));let g={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:am(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}},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=et(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 um=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 ku=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 Ur,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new Cu,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}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 l=Number(e)*60*60,r=Number(t)*60,a=Number(n),s=+`0.${o}`;return l+r+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](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 Ur;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}},cm=ku;var Kr=require("@vkontakte/videoplayer-shared"),fo,In,Su=0,Pu=!1,fm=(i,e,t)=>{let n=i>=Su,o=i<Su,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(Su=i,o&&(Pu=!1),(0,Kr.isNonNullable)(fo)&&r(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})=>r(i,f,p)||n&&l(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(r(i,In?.startTime,In?.endTime))return fo=In,In=void 0,fo;(n&&a(i,In?.startTime,In?.endTime)||o&&l(i,In?.startTime,In?.endTime))&&(In=void 0)}};var jr={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 dm=require("@vkontakte/videoplayer-shared"),mm=require("@vkontakte/videoplayer-statistics"),Wr=class{constructor(e,t){this.oneStat=new mm.OneStat(e,t),this.statSubscription=new dm.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var pm=({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$:w,isInteractiveTime$:T,replayInteractive:k,hasInteractiveBranches:v,playPrevChapterDisabledTooltip:I,additionalButtons:W,looped:Q=!1,statistics:G,saveRate:le})=>{let se={...h,configName:[...h.configName??[],"ui"],isAudioDisabled:l,live:{...h.live??{},isLiveCatchUpMode:!!n}},V=p,A=b||new tn.Player(se),$=new ut.Logger,X=new qr($,{loadTimeout:V.ads.loadTimeout,initTimeout:V.ads.initTimeout}),x=Po.getInstance(),N=s?.pictureInPictureApi,te=s?.annotationsApi,E=$.createComponentLog("Store"),Y,Re,je={},Ue=(0,ut.getCurrentBrowser)(),Je=G?yt(G.oneStat.vsid$):Cn(void 0),Ne=De(lo()),ve=N?.info.isActive$??new ut.ValueSubject(!1),J=N?.info.type,we=De(0),He=De([]),Xe=(0,ut.merge)(A.events.fatalError$,A.events.managedError$).subscribe(M=>He.update(me=>[...me,M])),xe=Cn(!1,M=>{let me=A.events.fatalError$.subscribe(()=>M(!0));return()=>me.unsubscribe()}),ke=async M=>{let me=Object.values(ut.InterfaceLanguage).includes(M);if(V.downloadVKLanguages&&(me&&V.updateBuiltinLanguages||!Es(M))){let We;try{We=await(0,ut.loadVKLangPack)(M,Qc,Yc)}catch(rt){G?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),x?.report(rt,{errorType:"VKLangPack",fatal:!1})}We&&(Ts({language:M,pack:We,fallback:V.defaultLanguage}),Le.set(M))}Es(M)&&Le.set(M)},Le=De(i);ke(i);let ze=(M,me)=>{let Me=et(Le);return As(Me,M,me,V.defaultLanguage)},Ye=De("thumb"),ue=(()=>{let M=Ei([xe,Ye],([me,Me])=>me?"crashed":Me);return{...M,is:me=>et(M)===me}})(),oe=(()=>{let M=De(new Set(g));return{...M,add:me=>{M.update(Me=>new Set([...Me].concat(me)))},remove:me=>{M.update(Me=>{let We=[...Me];return new Set(Array.isArray(me)?We.filter(rt=>!me.includes(rt)):We.filter(rt=>rt!==me))})},includes:me=>{let Me=et(M);return Array.isArray(me)?me.every(We=>Me.has(We)):Me.has(me)}}})();E({message:"create store"});let Se=M=>{let me=M.container;me.append(A.experimental.element$.getValue()),ye=new MutationObserver(Me=>{let{removedNodes:We}=Me[0];We.length&&me.append(A.experimental.element$.getValue())}),ye.observe(me,{childList:!0})},ce=M=>{E({message:`init video, config: ${JSON.stringify(M)}`}),S?Se(M):A.initVideo(M),M.subtitles&&A.setExternalTextTracks(M.subtitles),Y=M},Ae=new ut.Subject,Ze=M=>Ae.next(M),st=new ut.Subject,ct=new ut.Subject,at=new ut.Subject,ye=null,$e={actionRewind$:st,actionSeek$:ct,inPiP$:ve,inFullscreen$:new ut.Observable(M=>Ne.subscribe(me=>M.next(me))),actionSetSubtitle$:at,nextMovie$:Ae};if(G){let{oneStat:M,statSubscription:me}=G;me.add(M.attachTo(A)),me.add(M.attachToUi($e)),me.add(M.attachToAds(X.events)),M.authorize(o).catch(Me=>{E({message:`onestat auth error ${String(Me)}`})})}if(x){let M=new ut.Subscription,me=(Me,We)=>M.add(Me.subscribe(We));if(me(A.events.managedError$,Me=>{x.logIError(Me)}),me(A.events.fatalError$,Me=>{x.logIError(Me,!0)}),G){let{oneStat:Me}=G;me(Me.experimental.error$,We=>{x.logIError(We)})}x.sentrySubscription.add(M)}let pt=()=>{(0,ut.isIOS)()&&Re&&Tf(Re)},ht=new ut.Subscription().add(A.experimental.element$.subscribe(M=>{M&&(Re=M,M.classList.add("player-media"),To(N)&&(N.updateVideoElement(),N.registryEventHandlers()),S&&M.setAttribute("pip","false"))})).add(A.events.ended$.subscribe(()=>{pt(),a?.onEnded?.()})).add(A.events.started$.subscribe(async()=>{To(N)&&await N?.revealPictureInPicture();let M=A.info.muted$.getValue();a?.onStarted?.(),je.onStarted?.(M)})).add(A.events.willSeek$.subscribe(({from:M,to:me})=>{a?.onSeek?.(M,me)})).add(A.info.position$.subscribe(M=>{let me=A.info.duration$.getValue();a?.onTimeupdate?.(me,M),X.setPosition(M,me)})).add(A.events.fatalError$.subscribe(()=>{a?.onCrashed?.()})).add(A.events.firstBytes$.subscribe(()=>{K.state.isFirstBytes$.set(!0)})).add(A.info.is3DVideo$.subscribe(M=>{K.ui.is3DVideo.set(M)})).add(A.info.isEnded$.subscribe(M=>{S&&(M?(T?.getValue()&&oe.add(Ql),oe.add("PLAY_BUTTON")):oe.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(M=>{a?.onLiveTime?.(M)})).add(A.info.isStalled$.subscribe(M=>{a?.onStalledChanged?.(M)})).add(X.events.started$.subscribe(()=>{a?.adsInfo?.onStarted?.()})).add(X.events.ended$.subscribe(()=>{a?.adsInfo?.onCompleted?.()})),gt=new ut.Subscription,Mt=()=>{gt.add(A.events.log$.subscribe(M=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${M.component}`,M.message)})).add($.log$.subscribe(M=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${M.component}.`,M.message)}))},Ke=()=>{gt.unsubscribe()},Yt=(M,me)=>{A.startCameraManualRotation(M,me)},Nt=(M=!1)=>{A.stopCameraManualRotation(M)},Lt=(M,me,Me)=>{A.moveCameraFocusPX(M,me,Me)},ii=()=>{A.holdCamera()},ae=()=>{A.releaseCamera()},ft=Cn(A.info.position$.getValue(),M=>{let me,Me,We=()=>{let rt=A.info.playbackState$.getValue(),Ut=A.info.isLive$.getValue(),ti=A.info.duration$.getValue(),Kt=A.info.position$.getValue();if([tn.PlaybackState.PLAYING,tn.PlaybackState.PAUSED].includes(rt)){let cn=Ut?Kt-ti:A.getExactTime();cn!==Me&&M(cn),Me=cn}me=requestAnimationFrame(We)};return We(),()=>cancelAnimationFrame(me)}),_t=yt(ve),bt=yt(A.info.playbackState$),wt=yt(A.info.currentBuffer$),Ot=yt(A.info.isEnded$),Vt=yt(A.info.isLive$),Yi=V.features.playbackRate?yt(A.info.canChangePlaybackSpeed$):Cn(!1),on=yt(A.info.liveBufferTime$),mi=yt(A.info.volume$),pi=yt(A.info.muted$),Ai=ks(A.info.autoQualityLimits$.pipe((0,ut.map)(({max:M})=>M!==void 0)),A.info.autoQualityLimits$.getValue()?.max!==void 0),Zt=yt(A.info.autoQualityLimitingAvailable$),_i=yt(A.info.availableQualities$),ln=yt(A.info.availableQualitiesFps$),hi=yt(A.info.chromecastState$),Fi=yt(A.info.chromecastDeviceName$),ni=yt(A.info.currentFormat$),Mi=yt(A.info.throughputEstimation$),gi=yt(A.info.videoBitrate$),Hi=yt(A.info.intrinsicVideoSize$),bi=yt(A.info.duration$),oi=yt(A.info.isAudioAvailable$),Tt=null,Ft=A.info.isBuffering$,vi=Cn(Ft.getValue(),M=>{let me=Ft.subscribe(Me=>{Me&&Tt===null?Tt=window.setTimeout(()=>{M(Ft.getValue()),Tt=null},V.loaderDelay):M(Me)});return()=>{me.unsubscribe(),Tt&&clearTimeout(Tt)}}),yi=()=>{Tt&&clearTimeout(Tt),Tt=null},Ht=Ei([bi,Vt],([M,me])=>me?-M:M),li=Ei([bt],([M])=>M===tn.PlaybackState.PLAYING),ri=yt(A.info.atLiveEdge$),Rt=yt(A.info.atLiveDurationEdge$),Et=yt(A.info.position$),jt=Ei([Et,bi],([M,me])=>isFinite(M)&&isFinite(me)&&!!me),Vi=Ei([hi],([M])=>M===tn.ChromecastState.CONNECTED),Xt=De(void 0),rn=yt(A.info.isAutoQualityEnabled$,M=>M&&Xt.set(void 0)),sn=yt(A.info.currentQuality$,()=>Xt.set(void 0)),Wt=Ei([Xt,sn],([M,me])=>M??me),wi=Ei([_i,ln,rn,Wt,ni],([M,me,Me,We,rt])=>{let Ut=[];rt!==tn.VideoFormat.MPEG&&Ut.push({value:"auto",displayValue:ze("auto_quality_option"),selected:Me});let ti=M.filter(Kt=>Kt!==ut.VideoQuality.INVARIANT);for(let Kt of ti){let cn=me[Kt],io=Kt===ut.VideoQuality.INVARIANT?ze("auto_quality_option"):Kt;Ut.push({value:Kt,displayValue:`${io}${cn?um(cn):""}`,selected:Me?!1:Kt===We})}return Ut}),zi=yt(A.info.currentPlaybackRate$),ki=Ei([zi,ri,Rt],([M,me,Me])=>{let We=Me||S?1:V.controls.playbackRateMin,rt=me?1:V.controls.playbackRateMax,Ut=V.controls.playbackRateStep,ti=[];for(let Kt=We;Kt<=rt;Kt+=Ut)ti.push({value:Kt,displayValue:Kt===1?ze("playback_rate_1"):ze("playback_rate",{multiplier:Kt.toString(10)}),selected:M===Kt});return ti}),si=V.features.subtitles?yt(A.info.availableTextTracks$):Cn([]),zt=Ei([si],([M],me)=>{let Me=[],We=[];for(let rt of M)rt.url&&Me.push(fetch(rt.url));Promise.allSettled(Me).then(rt=>{for(let[Ut,ti]of rt.entries())ti.status==="fulfilled"&&ti.value.text().then(Kt=>{let cn=new cm,io=M[Ut].language,_l=!!M[Ut].isAuto,hl=cn.parse(Kt);io&&hl&&We.push({lang:io,subtitles:hl,isAuto:_l}),Ut===rt.length-1&&me(We)})})}),Gt={displayValue:ze("subtitles_off"),value:"off"},Ci=De({...Gt}),Jt=Ei([zt,Ci,zt],([M,me])=>{if(M?.length>0){let Me=[{...Gt,selected:me?.value===Gt.value}];for(let{lang:We,isAuto:rt}of M)jr[We]&&Me.push({displayValue:rt?ze("subtitles_auto",{language:jr[We]}):jr[We],value:We,selected:me?.value===We,isAuto:rt});return Me}else return[]}),Zi=Ei([ft,Ci,zt],([M,me,Me])=>{if(me&&me.value!==Gt.value)return fm(M,me,Me)}),Si=Ei([Zi],([M])=>M?.texts?M.texts:[]),an=De(!0),un=Ei([wt,Ht,Et,on],([M,me,Me,We])=>{let rt=M?.end??0;if(!We)return rt/me;let ti=-Me+We-me;return(rt-ti)/me}),Xi=yt(A.info.availableSources$),qi=Ei([Xi],([M])=>Object.keys(M?.[tn.VideoFormat.MPEG]||{}).length>0),Li=()=>{let M=Object.keys(A.info.availableSources$?.getValue()?.[tn.VideoFormat.MPEG]||{}),me=(0,ut.getHighestQuality)(M)||ut.VideoQuality.Q_144P;return Y.sources[tn.VideoFormat.MPEG]?.[me]},Qt=()=>{let M=Li();M?sf(M,Y?.meta?.title||"video"):E({message:"There is no URL for download video"})},ai=()=>{E({message:"toggle muted"});let M=A.info.muted$.getValue(),We=!(A.info.volume$.getValue()===0||M);Bi(We)},Pi=()=>{K.ui.settingsMenuVisible.set(!1)},Ri=M=>{K.ui.settingsMenuOpenedByKeyboard.set(!!M),K.ui.settingsMenuVisible.set(!0)},Ji=M=>{et(K.ui.settingsMenuVisible)?Pi():Ri(M)},Ii=(M,me=M,Me=!1)=>{let We=!Me,rt=A.info.muted$.getValue();E({message:`set volume, volume: ${M}, preferredVolume: ${me}, internalCall: ${We}`}),A.setVolume(M),X.setVolume(M),We&&a?.onVolumeChange?.(M),Ss(me),rt?(A.setMuted(!1),We&&a?.onUnmute?.(),Jl(!1)):!rt&&M===0&&(A.setMuted(!0),We&&a?.onMute?.(),Jl(!0))},Bi=(M,me=!1)=>{let Me=!me,We=A.info.volume$.getValue();if(E({message:`set muted, currentVolume: ${We}, mute: ${M}, internalCall: ${Me}`}),A.setMuted(M),X.setVolume(M?0:We),Jl(M),Me&&(M?a?.onMute?.():a?.onUnmute?.()),We===0){let rt=Xl()??V.volumeDefault;rt===0&&(rt=V.volumeMinRestore,Ss(rt)),A.setVolume(rt),X.setVolume(rt),Me&&a?.onVolumeChange?.(rt)}},Di=De(!1),Qe=M=>{Di.set(M),A.setLooped(M)};Qe(Q);let Ui=()=>{A.prepare()},qt=()=>{if((0,ut.assertNonNullable)(K),!et(K.ui.controls.disabledControls$).has("PLAY_BUTTON")){if(E({message:"toggle play"}),et(K.playerPhase)==="ads"){X.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"}),st.next(),ct.next(Xn.SeekAction.REWIND),S){k?.();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?.()}},qe=M=>{E({message:`set quality, quality: ${M}`}),A.setAutoQuality(M==="auto"),M!=="auto"?(mf(e,M),Xt.set(M),A.setQuality(M)):Ps()},xi=M=>{E({message:`set trafficSavingEnabled, value: ${M}`}),A.setAutoQualityLimits({max:M?V.trafficSavingLimit:void 0}),bf(M)},Ni=M=>{A.setPlaybackRate(M),V.features.saveRate&&le&&!A.info.isLive$.getValue()&&yf(M)},Ki=()=>{let M=et(ki),me=M.findIndex(({selected:We})=>We);if(me===M.length-1)return;let Me=M[me+1];Ni(Me.value)},$i=()=>{let M=et(ki),me=M.findIndex(({selected:We})=>We);if(me===0)return;let Me=M[me-1];Ni(Me.value)},ji=M=>{M&&M.value!==Gt.value&&at.next(M.isAuto?M.value+"_auto":M.value),Ci.set(M)},_n=()=>{let M=et(Jt),me=et(Ci),Me=et(Le);if(me?.value===Gt.value){let We=M.filter(rt=>rt.value!==Gt.value).find(rt=>rt.value===Me)||M[1];ji(We??{...Gt})}else ji({...Gt,selected:!1})},xt=(M,me,Me=!0)=>{if(E({message:`seek to time, time: ${M}`}),ct.next(me),A.info.isLive$.getValue()){let We=A.info.duration$.getValue(),rt=Math.min(0,We+M);A.seekTime(rt,Me)}else{if(T?.getValue())return;A.seekTime(ho(M),Me)}},$t=M=>{E({message:`seek to episode start time: ${M}`}),xt(M,Xn.SeekAction.EPISODE,!0)},Wi=(M,me)=>{E({message:`seek to percent, percent: ${M}`});let Me=Math.round(et(Ht)*M);xt(Me,me,!1)},ui=M=>{E({message:`seek external, time: ${M}`}),ct.next(Xn.SeekAction.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-M:M)},re=M=>{E({message:`set auto quality limitation. Max: ${M.max??"none"}. Min: ${M.min??"none"}`}),A.setAutoQualityLimits(M)},dt=M=>{E({message:`seek external to episode start time: ${M}`}),xt(M,Xn.SeekAction.EPISODE,!0)},ci=M=>{E({message:`set playback rate to: ${M}`}),A.setPlaybackRate(M)},fi=De(void 0),ei=De(!1),Gi=M=>{E({message:`start scrubbing, progress: ${M}`}),ei.set(!0),Tn(M)},Tn=M=>{fi.set(M)},yn,hn,Bt=()=>{fi.set(void 0),ei.set(!1)},wn=()=>{clearTimeout(hn),clearTimeout(yn),yn=window.setTimeout(()=>{Bt()},500),Re?.removeEventListener("seeked",wn)},Nn=M=>{E({message:`complete scrubbing, progress: ${M}`}),Wi(M,Xn.SeekAction.SLIDER),et(K.ui.isMobile)&&et(K.state.currentFormat$)===tn.VideoFormat.HLS?(Re?.addEventListener("seeked",wn),hn=window.setTimeout(()=>{wn()},300)):Bt()},En=Ei([ft,Ht,fi],([M,me,Me],We)=>{We((0,ut.isNonNullable)(Me)?Me*me:M)}),An=De({width:0,height:0}),kn=Ei([An],([{width:M}],me)=>{let Me=Vd(M);me(Me)}),en=De(!1),ie=Ei([kn,en],([M,me])=>me?W.filter(Me=>!Me.hideOnMobile):W.filter(Me=>!Me.hideOnDesktopGridTypes?.includes(M))),kt=Ei([en,xe],([M,me],Me)=>{Me(M&&me)}),Mn=()=>{ct.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=()=>X.skip(),Fn=(M=!0)=>{(0,ut.assertNonNullable)(K),E({message:`switch from ads to video, callPlay: ${M}`}),Ye.set("video"),M&&A.play()},Jn=()=>{(0,ut.assertNonNullable)(K),E({message:"switch from video to ads"}),K.actions.internal.pause(),pt(),Ye.set("ads")},xn=M=>{(0,ut.assertNonNullable)(K);let me=M?"waitingLive":"thumb";Ye.set(me)},$n=M=>{(0,ut.assertNonNullable)(K);let me=M?"waitingRecord":"thumb";Ye.set(me)},eo=()=>((0,ut.assertNonNullable)(K),lf(A,Y,K)),to=()=>((0,ut.assertNonNullable)(K),rf(A,Y,K)),po=()=>Re,ee=()=>{E({message:"toggle chromecast"}),A.toggleChromecast()},mn=M=>{(0,ut.assertNonNullable)(K);let me=!M;if(et(K.playerPhase)==="ads"){E({message:`pause ads, internalCall: ${me}`}),X.pause();return}E({message:`pause video, internalCall: ${me}`}),me&&a?.onPause?.(),A.pause()},Bo=M=>{(0,ut.assertNonNullable)(K);let me=!M;if(et(K.playerPhase)==="ads"){E({message:`play ads, internalCall: ${me}`}),X.play();return}E({message:`play video, internalCall: ${me}`}),me&&a?.onPlay?.(),A.play()},Do=(M,me)=>{(0,ut.assertNonNullable)(K),E({message:`first start, show ads: ${M}, internalCall: ${!me}`}),M?Ye.set("ads"):(Ye.set("video"),me?A.play():K.actions.internal.togglePlay())},jn=()=>(E({message:"getting time codes"}),u),_o=()=>{let M=jn();if(!M||[0,1].includes(M.length))return;let me=A.info.position$.getValue();return M.find(Me=>Me.time>me)},Wn=M=>{let me=M;me||(me=_o()),me&&(E({message:"seek to next episode"}),xt(me.time,Xn.SeekAction.EPISODE,!0))},Gn=()=>{let M=jn();if(!M||[0,1].includes(M.length))return;let me=A.info.position$.getValue(),Me=M.findIndex(rt=>rt.time>me),We=Me===-1?M.length-2:Me-2;if(!(We<0))return M[We]},No=M=>{let me=M;me||(me=Gn()),me&&(E({message:"seek to prev episode"}),xt(me.time,Xn.SeekAction.EPISODE,!0))},Oo=()=>(E({message:"getting preview thumbs data"}),f),pl=async()=>{N?.isActive()?await N?.remove():await N?.request()},Fo=(M=-90)=>{we.update(me=>me+M)},Hn=De([]);w?.subscribe(M=>{let me=[];for(let Me=0;Me<M.length;Me++){let{range:[We,rt],subjects:Ut}=M[Me];Me===0&&We!==0&&me.push({time:0,text:"",interactive:!1,completed:!0}),me.push({time:We/1e3,text:"",interactive:!0,completed:!Ut.length}),rt!==1/0&&me.push({time:rt/1e3,text:"",interactive:!1,completed:!0})}Hn.set(me)});let Ho=De(!1);T?.subscribe(M=>{M&&et(ei)&&Bt()});let ho=M=>{if(!S)return M;let me=et(Hn),Me=et(Ht),rt=et(Et)/Me,Ut=me.find(ti=>ti.interactive&&!ti.completed&&ti.time>rt);return typeof Ut?.time=="number"?Math.min(M,Ut.time-.05):M},go=()=>{K.ui.episodes.panelOpened$.set(!1)},zo=()=>{clearTimeout(hn),clearTimeout(yn),ht.unsubscribe(),gt.unsubscribe(),A.destroy(),X.destroy(),G?.destroy(),x?.destroy(),Xe.unsubscribe(),ye?.disconnect(),ye=null},K={interfaceLanguage$:Le,initVideo:ce,videoId:e,isClip:t,playerPhase:ue,vsid:Je,state:{positionExact$:ft,positionWithScrubbing$:En,duration$:Ht,playbackState$:bt,isPlaying$:li,isLoaderVisible:vi,bufferedProgress$:un,isLive$:Vt,canChangePlaybackSpeed$:Yi,isActiveLive$:ri,isOldestAvailableLive$:Rt,isRewindableLive$:jt,isEnded$:Ot,muted$:pi,volume$:mi,trafficSavingEnabled$:Ai,autoQualityLimitingAvailable$:Zt,currentQuality$:Wt,isAutoQualityEnabled$:rn,availableQualities$:wi,currentPlaybackRate$:zi,availablePlaybackRates$:ki,currentSubtitle$:Ci,availableSubtitlesList$:Jt,currentSubtitleCaptions$:Si,isAutoSubtitleCaptionVisible$:an,chromecastState$:hi,chromecastDeviceName$:Fi,chromecastConnected$:Vi,currentFormat$:ni,throughputEstimation$:Mi,videoBitrate$:gi,videoSize$:Hi,errorLog$:He,crashed$:xe,isAudioAvailable$:oi,isAudioDisabled:!!l,canDownload:V.features.download&&!!r,availableSources$:Xi,hasMpegSources$:qi,isInteractive:S,showInteractiveGraph:V.features.interactiveGraph,showSeekToInteractive:V.features.seekToInteractive,showPlayPrevChapter:V.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:V.features.interactiveTimeIndicator&&!!et(Hn).length,interactiveEpisodes$:Hn,isInteractiveTime$:T?yt(T):De(!1),graphIsOpened$:De(!1),isInteractiveExpectation$:Ho,hasInteractiveBranches:v,playPrevChapterDisabledTooltip:I,looped$:Di,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:W.length?W.reduce(M=>[...M,De(void 0)],[]):[],disabledControls$:oe},modals:{hotKeyMap:{show:De(!1),data:De({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ne,rotateAlpha:we,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$:kt,mobileUnmuteButtonExpanded:De(!1),mobileUnmuteButtonVisible:De(!1),icon3DVideoVisible:De(!1),settingsMenuVisible:De(!1),settingsMenuOpenedByKeyboard:De(!1),scrubbingInProgress:ei,is3DVideo:De(!1),isPictureInPictureActive$:_t,pictureInPictureType$:Cn(J),clientInfo$:Cn(Ue),currentGridType$:kn,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:M=>Do(M,!1),pause:()=>mn(!1),togglePlay:qt,toggleMuted:ai,toggleSettingsMenu:Ji,openSettingsMenu:Ri,closeSettingsMenu:Pi,setVolume:Ii,setQuality:qe,setTrafficSavingEnabled:M=>xi(M),setPlaybackRate:Ni,incrementPlaybackRate:Ki,decrementPlaybackRate:$i,setSubtitle:ji,toggleSubtitle:_n,togglePictureInPicture:pl,startScrubbing:Gi,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:(M,me,Me)=>xt(M,me,Me),clearDelayedBufferingCheckTimeout:yi,seekEpisodeStartTime:$t,seekToPercent:Wi,getNextEpisode:_o,seekToNextEpisode:Wn,getPrevEpisode:Gn,seekToPrevEpisode:No,startLogging:Mt,stopLogging:Ke,startCameraManualRotation:Yt,stopCameraManualRotation:Nt,moveCameraFocusPX:Lt,holdCamera:ii,releaseCamera:ae,getVideoEpisodes:jn,getPreviewThumbsData:Oo,downloadVideo:Qt,addLanguage:Ts,setLanguage:ke,nextMovie:Ze,videoRotate:Fo,correctSeekTimeToInteractive:ho,replayInteractive:k,setLooped:Qe},external:{firstStart:M=>Do(M,!0),play:()=>Bo(!0),pause:()=>mn(!0),seekTime:M=>ui(M),seekEpisodeStartTime:M=>dt(M),setPlaybackRate:M=>ci(M),setAutoQualityLimits:M=>re(M),setMuted:M=>Bi(M,!0),setVolume:M=>Ii(M,M,!0),returnFocusToEpisodes:go}},callbacks:a,setUiCallbacks:M=>{je={...M}},getAdmanWrapper:()=>X,getLogger:()=>$,destroy:zo};return K};var Qr=(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 Yr=async(i,e,t)=>{await Rn(),e&&t&&(t.focus(),i.set(!1))};function Cv(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function Sv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Iu=class extends q{constructor(e){super(),U(this,e,Sv,Cv,z,{})}},_m=Iu;function Pv(i){let e,t;return e=new _m({}),{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 Iv(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:[Pv]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new mt({props:l}),he.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 Tv(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=tt(),a=r.ui.contextMenu.visible$;F(i,a,T=>t(3,n=T));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,h,b=T=>{let k=xo(T),v=Gf(h);f.set(v),s.set(k),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,l=T.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&p.set(h)},[o,l,h,n,a,b,g,S,w]}var Tu=class extends q{constructor(e){super(),U(this,e,Tv,Iv,z,{disabled:0,ariaLabel:1})}},hm=Tu;function Ev(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 Av(i){let e,t;return e=new Sr({props:{completed:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Mv(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:[Av]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new It({props:h}),he.push(()=>Fe(t,"ref",p)),t.$on("click",i[14]),{c(){e=P("div"),B(t.$$.fragment),o=O(),l=P("div"),r=O(),a=P("div"),c(l,"class","ref-block svelte-17imlp9"),H(l,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),H(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),H(e,"mobile",i[2]),H(e,"fullscreen",i[6]),H(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=[pe(e,"mousemove",lt(i[21])),pe(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)&&H(l,"hidden",b[1]),(!s||g[0]&16)&&H(a,"paused",b[4]),(!s||g[0]&4)&&H(e,"mobile",b[2]),(!s||g[0]&64)&&H(e,"fullscreen",b[6]),(!s||g[0]&2)&&H(e,"invisible",b[1])},i(b){s||(d(t.$$.fragment,b),s=!0)},o(b){_(t.$$.fragment,b),s=!1},d(b){b&&y(e),R(t),i[23](null),i[24](null),u=!1,it(f)}}}function Vv(i,e,t){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=tt(),h=Sn(),{interactiveControlsOpacity$:b}=h;F(i,b,Y=>t(18,o=Y));let g=p.ui.isMobile;F(i,g,Y=>t(2,a=Y));let S=p.ui.isFullscreen;F(i,S,Y=>t(6,s=Y));let w=p.state.isInteractiveTime$;F(i,w,Y=>t(19,l=Y));let T=h.showInteractiveTimeIndicatorTooltip$;F(i,T,Y=>t(17,n=Y));let k=p.ui.controlsVisible;F(i,k,Y=>t(20,r=Y));let v=p.callbacks?.onInteractiveTimeIndicatorClick,I,W,Q,G=()=>{t(4,Q=!0)},le=()=>{se(),f?.addEventListener("animationiteration",G,{once:!0})},se=()=>{t(4,Q=!1),f?.removeEventListener("animationiteration",G)},V=Y=>{T.set(Y)},A,$=()=>{W||(T.set(!0),v?.())};Ln(()=>{T.clearTimeout(),se()});let X=()=>{T.set(!1)};function x(Y){gn.call(this,i,Y)}function N(Y){u=Y,t(0,u)}function te(Y){he[Y?"unshift":"push"](()=>{u=Y,t(0,u)})}function E(Y){he[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&&r);if(i.$$.dirty[0]&851968)e:t(1,W=!l||!!o||I);if(i.$$.dirty[0]&2)e:t(4,Q=W);if(i.$$.dirty[0]&131074)e:t(5,A=n&&!W);if(i.$$.dirty[0]&131072)e:n?le():se()},[u,W,a,f,Q,A,s,b,g,S,w,T,k,V,$,X,I,n,o,l,r,x,N,te,E]}var Eu=class extends q{constructor(e){super(),U(this,e,Vv,Mv,z,{ref:0},Ev,[-1,-1])}},Zr=Eu;function Rv(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 gm(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 bm(i){let e,t,n;function o(r){i[173](r)}let l={disabled:!i[9],tooltipContent:j("tooltip_previous"),$$slots:{default:[Bv]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new It({props:l}),he.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 Bv(i){let e,t;return e=new ll({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 vm(i){let e,t,n;function o(r){i[174](r)}let l={disabled:i[74],tooltipContent:j("tooltip_restart"),$$slots:{default:[Dv]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new It({props:l}),he.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 Dv(i){let e,t;return e=new Ml({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 ym(i){let e,t,n;function o(r){i[176](r)}let l={tooltipContent:i[47],disabled:i[75],$$slots:{default:[Nv]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new It({props:l}),he.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 Nv(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 Al({props:l}),he.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 wm(i){let e,t,n;function o(r){i[177](r)}let l={disabled:!i[8],tooltipContent:j("tooltip_next"),$$slots:{default:[Ov]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new It({props:l}),he.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 Ov(i){let e,t;return e=new ll({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 Fv(i){let e,t,n,o,l=i[121]&&Hv(i),r=i[120]&&qv(i),a=i[119]&&Kv(i);return{c(){l&&l.c(),e=O(),r&&r.c(),t=O(),a&&a.c(),n=ot()},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&&(y(e),y(t),y(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function Hv(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:[zv]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new It({props:l}),he.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 zv(i){let e,t;return e=new Hr({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 qv(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:[Uv]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new It({props:l}),he.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 Uv(i){let e,t;return e=new Nr({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 Kv(i){let e,t,n;function o(r){i[180](r)}let l={tooltipContent:i[48],disabled:i[77],$$slots:{default:[jv]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new It({props:l}),he.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 jv(i){let e,t;return e=new Or({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 km(i){let e,t,n;function o(r){i[181](r)}let l={tooltipContent:i[50],$$slots:{default:[Wv]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new It({props:l}),he.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 Wv(i){let e,t;return e=new Vr({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 Cm(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 kr({props:l}),he.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 Sm(i){let e,t;return e=new Dr({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 Gv(i){let e,t,n=i[20]&&Sm(i);return{c(){n&&n.c(),e=ot()},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=Sm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function Qv(i){let e,t;return e=new zr({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 Pm(i){let e,t;return e=new It({props:{tooltipContent:i[213],width:40,$$slots:{default:[Qv]},$$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 Im(i){let e,t,n;function o(r){i[185](r)}let l={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[Yv]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new It({props:l}),he.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 Yv(i){let e,t;return e=new Er({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 Zv(i){let e,t;return e=new Rd({props:{click:i[127]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,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[187](r)}let l={tooltipContent:i[52],$$slots:{default:[Xv]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new It({props:l}),he.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 Xv(i){let e,t;return e=new hd({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 Em(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 wr({props:r}),he.push(()=>Fe(t,"ref",l)),{c(){e=P("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&&y(e),R(t)}}}function Am(i){let e,t,n;function o(r){i[190](r)}let l={tooltipContent:i[27]?void 0:j("tooltip_settings_off"),$$slots:{default:[Jv]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new It({props:l}),he.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 Jv(i){let e,t,n;function o(r){i[189](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new Tl({props:l}),he.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 xv(i){let e,t,n;function o(r){i[191](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[$v]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new It({props:l}),he.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 $v(i){let e,t;return e=new hm({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 Mm(i){let e,t,n;function o(r){i[192](r)}let l={tooltipContent:i[53],$$slots:{default:[e3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new It({props:l}),he.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 e3(i){let e,t;return e=new Ir({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 Vm(i){let e,t,n;function o(r){i[193](r)}let l={tooltipContent:i[54],$$slots:{default:[t3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new It({props:l}),he.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 t3(i){let e,t;return e=new Ar({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 i3(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 Zr({props:l}),he.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 n3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v,I,W,Q,G,le,se,V,A,$,X,x;t=new Br({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let N=i[38]&&bm(i),te=i[35]&&vm(i),E=i[36]&&ym(i),Y=i[37]&&wm(i),Re=i[117]&&Fv(i),je=!i[4]&&i[33]&&km(i),Ue=i[19]&&Cm(i);function Je(ce){i[183](ce)}let Ne={className:"w-max",disabled:!i[20],tooltipContent:j("tooltip_episodes"),$$slots:{default:[Gv]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(Ne.ref=i[23].episodes),b=new It({props:Ne}),he.push(()=>Fe(b,"ref",Je));let ve=vt(i[28]),J=[];for(let ce=0;ce<ve.length;ce+=1)J[ce]=Pm(gm(i,ve,ce));let we=ce=>_(J[ce],1,1,()=>{J[ce]=null}),He=i[43]&&!i[4]&&Im(i);function Xe(ce){i[186](ce)}let xe={$$slots:{default:[Zv]},$$scope:{ctx:i}};i[23].volume!==void 0&&(xe.ref=i[23].volume),I=new It({props:xe}),he.push(()=>Fe(I,"ref",Xe));let ke=i[40]&&Tm(i),Le=!i[83]&&!i[4]&&Em(i),ze=i[42]&&!i[4]&&Am(i),Ye=i[84].features.contextMenuButton&&xv(i),ue=i[44]&&Mm(i),oe=i[39]&&Vm(i),Se=i[122]&&i3(i);return{c(){e=P("div"),B(t.$$.fragment),n=O(),o=P("div"),l=P("div"),N&&N.c(),r=O(),te&&te.c(),a=O(),E&&E.c(),s=O(),Y&&Y.c(),u=O(),Re&&Re.c(),f=O(),je&&je.c(),p=O(),Ue&&Ue.c(),h=O(),B(b.$$.fragment),w=O(),T=P("div");for(let ce=0;ce<J.length;ce+=1)J[ce].c();k=O(),He&&He.c(),v=O(),B(I.$$.fragment),Q=O(),ke&&ke.c(),G=O(),Le&&Le.c(),le=O(),ze&&ze.c(),se=O(),Ye&&Ye.c(),V=O(),ue&&ue.c(),A=O(),oe&&oe.c(),$=O(),Se&&Se.c(),X=ot(),c(l,"class","controls-left svelte-st0uzk"),Bn(()=>i[184].call(l)),c(T,"class","controls-right svelte-st0uzk"),c(o,"class","controls svelte-st0uzk"),c(e,"class","wrapper-bottom svelte-st0uzk"),H(e,"hidden",i[1]),H(e,"controls-hidden",!i[3]),H(e,"no-smooth",i[2])},m(ce,Ae){C(ce,e,Ae),L(t,e,null),m(e,n),m(e,o),m(o,l),N&&N.m(l,null),m(l,r),te&&te.m(l,null),m(l,a),E&&E.m(l,null),m(l,s),Y&&Y.m(l,null),m(l,u),Re&&Re.m(l,null),m(l,f),je&&je.m(l,null),m(l,p),Ue&&Ue.m(l,null),m(l,h),L(b,l,null),S=qo(l,i[184].bind(l)),m(o,w),m(o,T);for(let Ze=0;Ze<J.length;Ze+=1)J[Ze]&&J[Ze].m(T,null);m(T,k),He&&He.m(T,null),m(T,v),L(I,T,null),m(T,Q),ke&&ke.m(T,null),m(T,G),Le&&Le.m(T,null),m(T,le),ze&&ze.m(T,null),m(T,se),Ye&&Ye.m(T,null),m(T,V),ue&&ue.m(T,null),m(T,A),oe&&oe.m(T,null),i[194](o),i[195](e),C(ce,$,Ae),Se&&Se.m(ce,Ae),C(ce,X,Ae),x=!0},p(ce,Ae){let Ze={};Ae[1]&16384&&(Ze.isHidden=!ce[45]),Ae[0]&16&&(Ze.isAds=ce[4]),Ae[0]&32&&(Ze.canRewindLive=ce[5]),Ae[1]&2&&(Ze.isRewindableLive=ce[32]),t.$set(Ze),ce[38]?N?(N.p(ce,Ae),Ae[1]&128&&d(N,1)):(N=bm(ce),N.c(),d(N,1),N.m(l,r)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),ce[35]?te?(te.p(ce,Ae),Ae[1]&16&&d(te,1)):(te=vm(ce),te.c(),d(te,1),te.m(l,a)):te&&(fe(),_(te,1,1,()=>{te=null}),de()),ce[36]?E?(E.p(ce,Ae),Ae[1]&32&&d(E,1)):(E=ym(ce),E.c(),d(E,1),E.m(l,s)):E&&(fe(),_(E,1,1,()=>{E=null}),de()),ce[37]?Y?(Y.p(ce,Ae),Ae[1]&64&&d(Y,1)):(Y=wm(ce),Y.c(),d(Y,1),Y.m(l,u)):Y&&(fe(),_(Y,1,1,()=>{Y=null}),de()),ce[117]&&Re.p(ce,Ae),!ce[4]&&ce[33]?je?(je.p(ce,Ae),Ae[0]&16|Ae[1]&4&&d(je,1)):(je=km(ce),je.c(),d(je,1),je.m(l,p)):je&&(fe(),_(je,1,1,()=>{je=null}),de()),ce[19]?Ue?(Ue.p(ce,Ae),Ae[0]&524288&&d(Ue,1)):(Ue=Cm(ce),Ue.c(),d(Ue,1),Ue.m(l,h)):Ue&&(fe(),_(Ue,1,1,()=>{Ue=null}),de());let st={};if(Ae[0]&1048576&&(st.disabled=!ce[20]),Ae[0]&1048576|Ae[2]&1310720|Ae[6]&1073741824&&(st.$$scope={dirty:Ae,ctx:ce}),!g&&Ae[0]&8388608&&(g=!0,st.ref=ce[23].episodes,Oe(()=>g=!1)),b.$set(st),Ae[0]&268435456){ve=vt(ce[28]);let at;for(at=0;at<ve.length;at+=1){let ye=gm(ce,ve,at);J[at]?(J[at].p(ye,Ae),d(J[at],1)):(J[at]=Pm(ye),J[at].c(),d(J[at],1),J[at].m(T,k))}for(fe(),at=ve.length;at<J.length;at+=1)we(at);de()}ce[43]&&!ce[4]?He?(He.p(ce,Ae),Ae[0]&16|Ae[1]&4096&&d(He,1)):(He=Im(ce),He.c(),d(He,1),He.m(T,v)):He&&(fe(),_(He,1,1,()=>{He=null}),de());let ct={};Ae[6]&1073741824&&(ct.$$scope={dirty:Ae,ctx:ce}),!W&&Ae[0]&8388608&&(W=!0,ct.ref=ce[23].volume,Oe(()=>W=!1)),I.$set(ct),ce[40]?ke?(ke.p(ce,Ae),Ae[1]&512&&d(ke,1)):(ke=Tm(ce),ke.c(),d(ke,1),ke.m(T,G)):ke&&(fe(),_(ke,1,1,()=>{ke=null}),de()),!ce[83]&&!ce[4]?Le?(Le.p(ce,Ae),Ae[0]&16|Ae[2]&2097152&&d(Le,1)):(Le=Em(ce),Le.c(),d(Le,1),Le.m(T,le)):Le&&(fe(),_(Le,1,1,()=>{Le=null}),de()),ce[42]&&!ce[4]?ze?(ze.p(ce,Ae),Ae[0]&16|Ae[1]&2048&&d(ze,1)):(ze=Am(ce),ze.c(),d(ze,1),ze.m(T,se)):ze&&(fe(),_(ze,1,1,()=>{ze=null}),de()),ce[84].features.contextMenuButton&&Ye.p(ce,Ae),ce[44]?ue?(ue.p(ce,Ae),Ae[1]&8192&&d(ue,1)):(ue=Mm(ce),ue.c(),d(ue,1),ue.m(T,A)):ue&&(fe(),_(ue,1,1,()=>{ue=null}),de()),ce[39]?oe?(oe.p(ce,Ae),Ae[1]&256&&d(oe,1)):(oe=Vm(ce),oe.c(),d(oe,1),oe.m(T,null)):oe&&(fe(),_(oe,1,1,()=>{oe=null}),de()),(!x||Ae[0]&2)&&H(e,"hidden",ce[1]),(!x||Ae[0]&8)&&H(e,"controls-hidden",!ce[3]),(!x||Ae[0]&4)&&H(e,"no-smooth",ce[2]),ce[122]&&Se.p(ce,Ae)},i(ce){if(!x){d(t.$$.fragment,ce),d(N),d(te),d(E),d(Y),d(Re),d(je),d(Ue),d(b.$$.fragment,ce);for(let Ae=0;Ae<ve.length;Ae+=1)d(J[Ae]);d(He),d(I.$$.fragment,ce),d(ke),d(Le),d(ze),d(Ye),d(ue),d(oe),d(Se),x=!0}},o(ce){_(t.$$.fragment,ce),_(N),_(te),_(E),_(Y),_(Re),_(je),_(Ue),_(b.$$.fragment,ce),J=J.filter(Boolean);for(let Ae=0;Ae<J.length;Ae+=1)_(J[Ae]);_(He),_(I.$$.fragment,ce),_(ke),_(Le),_(ze),_(Ye),_(ue),_(oe),_(Se),x=!1},d(ce){ce&&(y(e),y($),y(X)),R(t),N&&N.d(),te&&te.d(),E&&E.d(),Y&&Y.d(),Re&&Re.d(),je&&je.d(),Ue&&Ue.d(),R(b),S(),Oi(J,ce),He&&He.d(),R(I),ke&&ke.d(),Le&&Le.d(),ze&&ze.d(),Ye&&Ye.d(),ue&&ue.d(),oe&&oe.d(),i[194](null),i[195](null),Se&&Se.d(ce)}}}function o3(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v,I,W,Q,G,le,se,V,A,$,X,x,N,te,E,Y,Re=_e,je=()=>(Re(),Re=Dt(se,Z=>t(144,Y=Z)),se),Ue,Je=_e,Ne=()=>(Je(),Je=Dt(le,Z=>t(145,Ue=Z)),le),ve,J=_e,we=()=>(J(),J=Dt(G,Z=>t(146,ve=Z)),G),He,Xe=_e,xe=()=>(Xe(),Xe=Dt(Q,Z=>t(147,He=Z)),Q),ke,Le=_e,ze=()=>(Le(),Le=Dt(W,Z=>t(148,ke=Z)),W),Ye,ue=_e,oe=()=>(ue(),ue=Dt(I,Z=>t(149,Ye=Z)),I),Se,ce=_e,Ae=()=>(ce(),ce=Dt(v,Z=>t(150,Se=Z)),v),Ze,st=_e,ct=()=>(st(),st=Dt(k,Z=>t(151,Ze=Z)),k),at,ye=_e,$e=()=>(ye(),ye=Dt(T,Z=>t(152,at=Z)),T),pt,ht=_e,gt=()=>(ht(),ht=Dt(w,Z=>t(153,pt=Z)),w),Mt,Ke=_e,Yt=()=>(Ke(),Ke=Dt(S,Z=>t(154,Mt=Z)),S),Nt,Lt=_e,ii=()=>(Lt(),Lt=Dt(g,Z=>t(155,Nt=Z)),g),ae,ft=_e,_t=()=>(ft(),ft=Dt(b,Z=>t(156,ae=Z)),b),bt,wt=_e,Ot=()=>(wt(),wt=Dt(h,Z=>t(157,bt=Z)),h),Vt,Yi=_e,on=()=>(Yi(),Yi=Dt(p,Z=>t(158,Vt=Z)),p),mi,pi=_e,Ai=()=>(pi(),pi=Dt(f,Z=>t(159,mi=Z)),f),Zt,_i=_e,ln=()=>(_i(),_i=Dt(u,Z=>t(160,Zt=Z)),u),hi,Fi,ni,Mi,gi,Hi,bi,oi,Tt,Ft,vi,yi,Ht,li,ri,Rt,Et,jt,Vi,Xt,rn,sn,Wt;i.$$.on_destroy.push(()=>Re()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>J()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>Le()),i.$$.on_destroy.push(()=>ue()),i.$$.on_destroy.push(()=>ce()),i.$$.on_destroy.push(()=>st()),i.$$.on_destroy.push(()=>ye()),i.$$.on_destroy.push(()=>ht()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>Lt()),i.$$.on_destroy.push(()=>ft()),i.$$.on_destroy.push(()=>wt()),i.$$.on_destroy.push(()=>Yi()),i.$$.on_destroy.push(()=>pi()),i.$$.on_destroy.push(()=>_i());let{bottomHidden:wi}=e,{bottomNoSmooth:zi}=e,{showControls:ki}=e,{controlsElementRef:si=void 0}=e,{isAds:zt=!1}=e,{canRewindLive:Gt}=e,{logoClickable:Ci}=e,{logoHidden:Jt}=e,{logoTargetUrl:Zi=""}=e,{showNextPrevButtons:Si}=e,{nextButtonActive:an}=e,{prevButtonActive:un}=e,{isOneVideoPlaylist:Xi=!1}=e,{supportLink:qi}=e,{customFullscreenSupported:Li=!0}=e,{playNextVideo:Qt}=e,{playPrevVideo:ai}=e,{repeatPlaylist:Pi}=e,{toggleFullscreen:Ri}=e,{returnFocus:Ji}=e,{seekToInteractive:Ii}=e,{toggleGraph:Bi}=e,{playPrevChapter:Di}=e,Qe=tt(),Ui=Sn(),qt=At(),qe=Qe.actions.internal.toggleMuted,xi=Qe.actions.internal.togglePlay,Ni=Qe.actions.internal.pause,Ki=Qe.actions.internal.toggleSubtitle,$i=Qe.callbacks?.onAudioDoesNotExistHint,ji=Qe.callbacks?.onAudioDisabledHint,_n=Qe.state.duration$;F(i,_n,Z=>t(82,sn=Z));let xt=Qe.state.positionWithScrubbing$;F(i,xt,Z=>t(80,Xt=Z));let $t=Qe.state.playbackState$;F(i,$t,Z=>t(161,ni=Z));let Wi=Qe.state.chromecastConnected$;F(i,Wi,Z=>t(83,Wt=Z));let ui=Qe.state.isAudioAvailable$;F(i,ui,Z=>t(197,V=Z));let re=Qe.state.isAudioDisabled,dt=Qe.state.isEnded$;F(i,dt,Z=>t(169,li=Z));let ci=Qe.state.isLive$;F(i,ci,Z=>t(33,oi=Z));let fi=Qe.state.isActiveLive$;F(i,fi,Z=>t(163,Hi=Z));let ei=Qe.state.isRewindableLive$;F(i,ei,Z=>t(32,bi=Z));let Gi=Qe.ui.isPictureInPictureActive$;F(i,Gi,Z=>t(165,Ft=Z));let Tn=Qe.ui.pictureInPictureType$;F(i,Tn,Z=>t(164,Tt=Z));let yn=Qe.ui.settingsMenuVisible;F(i,yn,Z=>t(27,X=Z));let hn=Qe.ui.settingsMenuOpenedByKeyboard;F(i,hn,Z=>t(140,$=Z));let Bt=Qe.ui.controls,wn=Qe.actions.internal.getVideoEpisodes(),Nn=Qe.state.chromecastState$;F(i,Nn,Z=>t(29,hi=Z));let En=Qe.state.availableSubtitlesList$;F(i,En,Z=>t(168,Ht=Z));let An=Qe.state.currentSubtitle$;F(i,An,Z=>t(170,ri=Z));let kn=Bt.disabledControls$;F(i,kn,Z=>t(172,Et=Z));let en=Qe.ui.contextMenu.visible$;F(i,en,Z=>t(162,Mi=Z));let ie=Qe.ui.contextMenu.showContextMenuBtn$;F(i,ie,Z=>t(166,vi=Z));let kt=Qe.ui.contextMenu.openedByBtnKeyboard$;F(i,kt,Z=>t(167,yi=Z));let Mn=Qe.ui.startedByKeyboard$;F(i,Mn,Z=>t(139,A=Z));let On=Qe.ads.duration;F(i,On,Z=>t(81,rn=Z));let Fn=Qe.ads.position;F(i,Fn,Z=>t(79,Vi=Z));let Jn=Qe.ads.playbackState;F(i,Jn,Z=>t(171,Rt=Z));let xn=Qe.ui.isFullscreen;F(i,xn,Z=>t(30,Fi=Z));let $n=Qe.ui.playerSize;F(i,$n,Z=>t(142,N=Z));let eo=Qe.ui.currentGridType$;F(i,eo,Z=>t(143,te=Z));let to=Qe.ui.additionalButtons$;F(i,to,Z=>t(28,E=Z));let po=Qe.actions.internal.getVideoElement,ee=Qe.actions.internal.replayInteractive,mn=Qe.state.isInteractive,Bo=Qe.state.isInteractiveTime$;F(i,Bo,Z=>t(141,x=Z));let Do=Qe.state.showInteractiveGraph,jn=Qe.state.showSeekToInteractive,_o=Qe.state.showPlayPrevChapter,Wn=Qe.state.showInteractiveTimeIndicator,Gn=Qe.state.graphIsOpened$;F(i,Gn,Z=>t(31,gi=Z));let No=Qe.state.playPrevChapterDisabledTooltip,Oo=Ui.seekToInteractiveDisabledTooltip$;F(i,Oo,Z=>t(78,jt=Z));let pl=()=>Qe.actions.internal.toggleChromecast(),Fo,Hn,Ho,ho,go,zo,K,M,me,Me,We,rt,Ut,ti,Kt,cn,io,_l,hl,wc,kc,ds="",Yp=(Z,ps)=>{if(!Z){t(50,ds=j("tooltip_live"));return}ps===Lo.PlaybackState.PAUSED&&t(50,ds=j("tooltip_play"))},Cc,Sc,Pc,Ic,Nl,nt={},Vn,gl,ms,Tc,Zp=(0,Lm.throttleFn)(Qr,260,{leading:!1}),Ol,Fl,Hl;function Xp(){ao({isAudioDisabled:re,audioDisabledHintCallback:ji,isAudioAvailable:V,audioIsNotExistHintCallback:$i})&&qe()}let Jp=mn?ee:Xi?xi:Pi;function xp(Z){i.$$.not_equal(nt.prevButton,Z)&&(nt.prevButton=Z,t(23,nt))}function $p(Z){i.$$.not_equal(nt.replayButton,Z)&&(nt.replayButton=Z,t(23,nt))}function e_(Z){Hl=Z,t(26,Hl)}function t_(Z){i.$$.not_equal(nt.playButton,Z)&&(nt.playButton=Z,t(23,nt))}function i_(Z){i.$$.not_equal(nt.nextButton,Z)&&(nt.nextButton=Z,t(23,nt))}function n_(Z){i.$$.not_equal(nt.playPrevChapterButton,Z)&&(nt.playPrevChapterButton=Z,t(23,nt))}function o_(Z){i.$$.not_equal(nt.seekToInteractiveButton,Z)&&(nt.seekToInteractiveButton=Z,t(23,nt))}function l_(Z){i.$$.not_equal(nt.interactiveGraphButton,Z)&&(nt.interactiveGraphButton=Z,t(23,nt))}function r_(Z){i.$$.not_equal(nt.liveButton,Z)&&(nt.liveButton=Z,t(23,nt))}function s_(Z){i.$$.not_equal(nt.time,Z)&&(nt.time=Z,t(23,nt))}function a_(Z){i.$$.not_equal(nt.episodes,Z)&&(nt.episodes=Z,t(23,nt))}function u_(){Nl=this.clientWidth,t(22,Nl)}function c_(Z){i.$$.not_equal(nt.vkLogo,Z)&&(nt.vkLogo=Z,t(23,nt))}function f_(Z){i.$$.not_equal(nt.volume,Z)&&(nt.volume=Z,t(23,nt))}function d_(Z){i.$$.not_equal(nt.subtitles,Z)&&(nt.subtitles=Z,t(23,nt))}function m_(Z){Ol=Z,t(24,Ol)}function p_(Z){Fl=Z,t(25,Fl)}function __(Z){i.$$.not_equal(nt.settings,Z)&&(nt.settings=Z,t(23,nt))}function h_(Z){i.$$.not_equal(nt.context,Z)&&(nt.context=Z,t(23,nt))}function g_(Z){i.$$.not_equal(nt.fullscreen,Z)&&(nt.fullscreen=Z,t(23,nt))}function b_(Z){i.$$.not_equal(nt.chromecast,Z)&&(nt.chromecast=Z,t(23,nt))}function v_(Z){he[Z?"unshift":"push"](()=>{io=Z,t(46,io)})}function y_(Z){he[Z?"unshift":"push"](()=>{si=Z,t(0,si)})}function w_(Z){i.$$.not_equal(nt.interactiveTimeIndicator,Z)&&(nt.interactiveTimeIndicator=Z,t(23,nt))}i.$$set=Z=>{"bottomHidden"in Z&&t(1,wi=Z.bottomHidden),"bottomNoSmooth"in Z&&t(2,zi=Z.bottomNoSmooth),"showControls"in Z&&t(3,ki=Z.showControls),"controlsElementRef"in Z&&t(0,si=Z.controlsElementRef),"isAds"in Z&&t(4,zt=Z.isAds),"canRewindLive"in Z&&t(5,Gt=Z.canRewindLive),"logoClickable"in Z&&t(6,Ci=Z.logoClickable),"logoHidden"in Z&&t(129,Jt=Z.logoHidden),"logoTargetUrl"in Z&&t(7,Zi=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(130,Si=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,Li=Z.customFullscreenSupported),"playNextVideo"in Z&&t(11,Qt=Z.playNextVideo),"playPrevVideo"in Z&&t(12,ai=Z.playPrevVideo),"repeatPlaylist"in Z&&t(133,Pi=Z.repeatPlaylist),"toggleFullscreen"in Z&&t(13,Ri=Z.toggleFullscreen),"returnFocus"in Z&&t(14,Ji=Z.returnFocus),"seekToInteractive"in Z&&t(15,Ii=Z.seekToInteractive),"toggleGraph"in Z&&t(16,Bi=Z.toggleGraph),"playPrevChapter"in Z&&t(17,Di=Z.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=Et.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=Et.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,l=Et.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,r=Et.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=Et.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=Et.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Fo=zt?Rt==="playing":ni===Lo.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,Hn=ri.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,Ho=li&&!zt||mn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,ho=!li||mn||zt);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=Si&&vn(te,"m")&&!zt&&an);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,K=Si&&vn(te,"m")&&!zt&&un);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,M=hi!==Lo.ChromecastState.NOT_AVAILABLE&&!(Ft&&Tt===1)&&vn(te,"m")&&!mn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,me=Ht.length>0&&vn(te,"m"));if(i.$$.dirty[5]&6144)e:t(41,Me=yi||vi);if(i.$$.dirty[4]&524288)e:t(42,We=vn(te,"s"));if(i.$$.dirty[4]&32)e:t(43,rt=!Jt);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,Ut=qt.features.fullscreen&&(Jt||vn(te,"s"))&&!(Ft&&Tt===1)&&(mn?Li:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,ti=(!oi||zt)&&!(qt.features.interactiveHideTime&&mn));if(i.$$.dirty[4]&262144)e:t(45,Kt=N.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,cn=!zt&&!oi&&!!wn?.length&&go&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,_l=!bi||Hi);if(i.$$.dirty[5]&64)e:t(47,hl=ni===Lo.PlaybackState.PLAYING?j("tooltip_pause"):j("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,wc=gi?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,kc=Mi?j("aria_label_context_menu_close"):j("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:Yp(_l,ni);if(i.$$.dirty[0]&262144)e:t(52,Sc=Hn?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,Pc=Fi?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Ic=hi===Lo.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,Vn={prevButton:Zt?Zt.right-Zt.left:0,replayButton:mi?mi.right-mi.left:0,playButton:Vt?Vt.right-Vt.left:0,nextButton:bt?bt.right-bt.left:0,playPrevChapterButton:ae?ae.right-ae.left:0,seekToInteractiveButton:Nt?Nt.right-Nt.left:0,interactiveGraphButton:Mt?Mt.right-Mt.left:0,liveButton:pt?pt.right-pt.left:0,time:at?at.right-at.left:0,episodes:Ze?Ze.right-Ze.left:0,vkLogo:Se?Se.right-Se.left:0,volume:Ye?Ye.right-Ye.left:0,subtitles:ke?ke.right-ke.left:0,settings:He?He.right-He.left:0,context:ve?ve.right-ve.left:0,fullscreen:Ue?Ue.right-Ue.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=ti&&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:Zp(po(),Bt,nt,ki);if(i.$$.dirty[0]&167772160)e:$o(Fl,X,hn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Mo(Ol,X,$);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:Yr(Mn,A,Hl)};e:t(51,Cc=qt.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:w,time:T,episodes:k,vkLogo:v,volume:I,subtitles:W,settings:Q,context:G,fullscreen:le,chromecast:se}=Bt,u,Ai(t(71,f)),on(t(70,p)),Ot(t(69,h)),_t(t(68,b)),ii(t(67,g)),Yt(t(66,S)),gt(t(65,w)),$e(t(64,T)),ct(t(63,k)),Ae(t(62,v)),oe(t(61,I)),ze(t(60,W)),xe(t(59,Q)),we(t(58,G)),Ne(t(57,le)),je(t(56,se))));return[si,wi,zi,ki,zt,Gt,Ci,Zi,an,un,qi,Qt,ai,Ri,Ji,Ii,Bi,Di,Hn,ti,cn,_l,Nl,nt,Ol,Fl,Hl,X,E,hi,Fi,gi,bi,oi,Fo,Ho,ho,zo,K,M,me,Me,We,rt,Ut,Kt,io,hl,wc,kc,ds,Cc,Sc,Pc,Ic,Tc,se,le,G,Q,W,I,v,k,T,w,S,g,b,h,p,f,u,s,a,r,l,o,jt,Vi,Xt,rn,sn,Wt,qt,xi,Ni,Ki,_n,xt,$t,Wi,ui,dt,ci,fi,ei,Gi,Tn,yn,hn,wn,Nn,En,An,kn,en,ie,kt,Mn,On,Fn,Jn,xn,$n,eo,to,mn,Bo,Do,jn,_o,Wn,Gn,No,Oo,pl,Xp,Jp,Jt,Si,Xi,Li,Pi,go,Vn,gl,ms,n,A,$,x,N,te,Y,Ue,ve,He,ke,Ye,Se,Ze,at,pt,Mt,Nt,ae,bt,Vt,mi,Zt,ni,Mi,Hi,Tt,Ft,vi,yi,Ht,li,ri,Rt,Et,xp,$p,e_,t_,i_,n_,o_,l_,r_,s_,a_,u_,c_,f_,d_,m_,p_,__,h_,g_,b_,v_,y_,w_]}var Au=class extends q{constructor(e){super(),U(this,e,o3,n3,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},Rv,[-1,-1,-1,-1,-1,-1,-1])}},Rm=Au;var sl=require("@vkontakte/videoplayer-core");function l3(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"),be(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),be(e,u=Ve(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&&y(e),a&&a.d(f)}}}function r3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Vu=class extends q{constructor(e){super(),U(this,e,r3,l3,z,{})}},Bm=Vu;var Nm=require("@vkontakte/videoplayer-shared");function s3(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 Dm(i){let e;return{c(){e=P("span"),e.textContent=`${j("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){C(t,e,n)},p:_e,d(t){t&&y(e)}}}function a3(i){let e,t,n,o;var l=i[4];function r(s){return{}}l&&(t=pn(l,r(i)));let a=i[1]&&Dm(i);return{c(){e=P("div"),t&&B(t.$$.fragment),n=O(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),H(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){fe();let f=t;_(f.$$.fragment,1,0,()=>{R(f,1)}),de()}l?(t=pn(l,r(s)),B(t.$$.fragment),d(t.$$.fragment,1),L(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=Dm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&H(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 u3(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:[a3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new mt({props:l}),he.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 c3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=Nm.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?Vo:Bm)},[r,o,l,a,s,n,u]}var Lu=class extends q{constructor(e){super(),U(this,e,c3,u3,z,{muted:5,expanded:1,click:2,ref:0},s3)}},Ru=Lu;function f3(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"),be(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),be(e,u=Ve(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&&y(e),a&&a.d(f)}}}function d3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Bu=class extends q{constructor(e){super(),U(this,e,d3,f3,z,{})}},Om=Bu;function m3(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 p3(i){let e,t;return e=new Om({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 _3(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 Du=class extends q{constructor(e){super(),U(this,e,_3,p3,z,{isActive:0},m3)}},Fm=Du;var Hm=require("@vkontakte/videoplayer-shared");function h3(i){let e,t;return e=new Fm({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 g3(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:[h3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new mt({props:l}),he.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 b3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=Hm.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 Nu=class extends q{constructor(e){super(),U(this,e,b3,g3,z,{ref:0,isPictureInPictureActive:1,click:2})}},zm=Nu;var u0=require("@vkontakte/videoplayer-shared");function v3(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 qm(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 Um(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k=(!i[51]||i[53])&&Km(i),v=vt(i[56]),I=[];for(let N=0;N<v.length;N+=1)I[N]=jm(qm(i,v,N));let W=N=>_(I[N],1,1,()=>{I[N]=null}),Q=i[36]&&Wm(i),G=i[37]&&Gm(i),le=i[57]&&Qm(i),se=i[39]&&Ym(i),V=i[8]&&Zm(i),A=i[34]&&Xm(i),$=i[33]&&Jm(i),X=i[8]&&xm(i),x=i[96]&&!i[29]&&$m(i);return{c(){e=P("div"),t=O(),n=P("div"),k&&k.c(),o=O(),l=P("div");for(let N=0;N<I.length;N+=1)I[N].c();r=O(),Q&&Q.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(),b=O(),$&&$.c(),g=O(),X&&X.c(),S=O(),x&&x.c(),w=ot(),c(e,"class","overlay-mobile svelte-1tcstu3"),H(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-1tcstu3"),H(n,"hidden",!i[3]),H(n,"fullscreen",i[52]),c(l,"class","wrapper-top-right svelte-1tcstu3"),H(l,"hidden",!i[3]&&!i[27]),H(l,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-1tcstu3"),H(p,"hidden",!i[3]||i[29])},m(N,te){C(N,e,te),C(N,t,te),C(N,n,te),k&&k.m(n,null),C(N,o,te),C(N,l,te);for(let E=0;E<I.length;E+=1)I[E]&&I[E].m(l,null);m(l,r),Q&&Q.m(l,null),m(l,a),G&&G.m(l,null),m(l,s),le&&le.m(l,null),m(l,u),se&&se.m(l,null),C(N,f,te),C(N,p,te),V&&V.m(p,null),m(p,h),A&&A.m(p,null),m(p,b),$&&$.m(p,null),m(p,g),X&&X.m(p,null),C(N,S,te),x&&x.m(N,te),C(N,w,te),T=!0},p(N,te){if((!T||te[1]&2048)&&H(e,"hidden",!N[42]),!N[51]||N[53]?k?(k.p(N,te),te[1]&5242880&&d(k,1)):(k=Km(N),k.c(),d(k,1),k.m(n,null)):k&&(fe(),_(k,1,1,()=>{k=null}),de()),(!T||te[0]&8)&&H(n,"hidden",!N[3]),(!T||te[1]&2097152)&&H(n,"fullscreen",N[52]),te[1]&33554432){v=vt(N[56]);let E;for(E=0;E<v.length;E+=1){let Y=qm(N,v,E);I[E]?(I[E].p(Y,te),d(I[E],1)):(I[E]=jm(Y),I[E].c(),d(I[E],1),I[E].m(l,r))}for(fe(),E=v.length;E<I.length;E+=1)W(E);de()}N[36]?Q?(Q.p(N,te),te[1]&32&&d(Q,1)):(Q=Wm(N),Q.c(),d(Q,1),Q.m(l,a)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),de()),N[37]?G?(G.p(N,te),te[1]&64&&d(G,1)):(G=Gm(N),G.c(),d(G,1),G.m(l,s)):G&&(fe(),_(G,1,1,()=>{G=null}),de()),N[57]?le?(le.p(N,te),te[1]&67108864&&d(le,1)):(le=Qm(N),le.c(),d(le,1),le.m(l,u)):le&&(fe(),_(le,1,1,()=>{le=null}),de()),N[39]?se?(se.p(N,te),te[1]&256&&d(se,1)):(se=Ym(N),se.c(),d(se,1),se.m(l,null)):se&&(fe(),_(se,1,1,()=>{se=null}),de()),(!T||te[0]&134217736)&&H(l,"hidden",!N[3]&&!N[27]),(!T||te[1]&2097152)&&H(l,"fullscreen",N[52]),N[8]?V?(V.p(N,te),te[0]&256&&d(V,1)):(V=Zm(N),V.c(),d(V,1),V.m(p,h)):V&&(fe(),_(V,1,1,()=>{V=null}),de()),N[34]?A?(A.p(N,te),te[1]&8&&d(A,1)):(A=Xm(N),A.c(),d(A,1),A.m(p,b)):A&&(fe(),_(A,1,1,()=>{A=null}),de()),N[33]?$?($.p(N,te),te[1]&4&&d($,1)):($=Jm(N),$.c(),d($,1),$.m(p,g)):$&&(fe(),_($,1,1,()=>{$=null}),de()),N[8]?X?(X.p(N,te),te[0]&256&&d(X,1)):(X=xm(N),X.c(),d(X,1),X.m(p,null)):X&&(fe(),_(X,1,1,()=>{X=null}),de()),(!T||te[0]&536870920)&&H(p,"hidden",!N[3]||N[29]),N[96]&&!N[29]?x?(x.p(N,te),te[0]&536870912&&d(x,1)):(x=$m(N),x.c(),d(x,1),x.m(w.parentNode,w)):x&&(fe(),_(x,1,1,()=>{x=null}),de())},i(N){if(!T){d(k);for(let te=0;te<v.length;te+=1)d(I[te]);d(Q),d(G),d(le),d(se),d(V),d(A),d($),d(X),d(x),T=!0}},o(N){_(k),I=I.filter(Boolean);for(let te=0;te<I.length;te+=1)_(I[te]);_(Q),_(G),_(le),_(se),_(V),_(A),_($),_(X),_(x),T=!1},d(N){N&&(y(e),y(t),y(n),y(o),y(l),y(f),y(p),y(S),y(w)),k&&k.d(),Oi(I,N),Q&&Q.d(),G&&G.d(),le&&le.d(),se&&se.d(),V&&V.d(),A&&A.d(),$&&$.d(),X&&X.d(),x&&x.d(N)}}}function Km(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 Ru({props:l}),he.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 jm(i){let e,t;return e=new zr({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 Wm(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 Ar({props:l}),he.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 Gm(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 zm({props:l}),he.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 Qm(i){let e,t,n;function o(r){i[133](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Tl({props:l}),he.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 Ym(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 Er({props:l}),he.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 Zm(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 ll({props:l}),he.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 Xm(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 Al({props:l}),he.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 Jm(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 Ml({props:l}),he.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 xm(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 ll({props:l}),he.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 $m(i){let e,t,n,o,l=i[100]&&y3(i),r=i[98]&&w3(i),a=i[99]&&k3(i);return{c(){l&&l.c(),e=O(),r&&r.c(),t=O(),a&&a.c(),n=ot()},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&&(y(e),y(t),y(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function y3(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 Hr({props:s}),he.push(()=>Fe(t,"ref",a)),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-1tcstu3"),H(e,"fullscreen",i[52]),H(e,"hidden",!i[3])},m(u,f){C(u,e,f),L(t,e,null),o=!0,l||(r=pe(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)&&H(e,"fullscreen",u[52]),(!o||f[0]&8)&&H(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),l=!1,r()}}}function w3(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 Or({props:a}),he.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),B(t.$$.fragment),c(e,"class",o=Lc(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),H(e,"fullscreen",i[52]),H(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)&&H(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&H(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&&y(e),R(t)}}}function k3(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 Nr({props:s}),he.push(()=>Fe(t,"ref",a)),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-1tcstu3"),H(e,"fullscreen",i[52]),H(e,"hidden",!i[3])},m(u,f){C(u,e,f),L(t,e,null),o=!0,l||(r=pe(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)&&H(e,"fullscreen",u[52]),(!o||f[0]&8)&&H(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),l=!1,r()}}}function e0(i){let e,t,n,o,l,r=i[53]&&t0(i),a=i[32]&&i0(i);return o=new Rr({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=O(),a&&a.c(),t=O(),n=P("div"),B(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),H(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=t0(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(fe(),_(r,1,1,()=>{r=null}),de()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=i0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(fe(),_(a,1,1,()=>{a=null}),de());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&H(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&&(y(e),y(t),y(n)),r&&r.d(s),a&&a.d(s),R(o)}}}function t0(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 Ru({props:r}),he.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","wrapper-top-right svelte-1tcstu3"),H(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)&&H(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 i0(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 Al({props:r}),he.push(()=>Fe(t,"ref",l)),{c(){e=P("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&&y(e),R(t)}}}function C3(i){let e,t,n;function o(r){i[144](r)}let l={disabled:i[48],$$slots:{default:[S3]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new It({props:l}),he.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 S3(i){let e,t;return e=new Ml({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 n0(i){let e,t,n;function o(r){i[145](r)}let l={$$slots:{default:[P3]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new It({props:l}),he.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 P3(i){let e,t;return e=new Vr({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 o0(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 kr({props:l}),he.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 l0(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(),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&&(y(e),y(t)),R(n,l)}}}function I3(i){let e,t,n=i[43]&&l0(i);return{c(){n&&n.c(),e=ot()},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=l0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function r0(i){let e,t,n;function o(r){i[149](r)}let l={$$slots:{default:[T3]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new It({props:l}),he.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 T3(i){let e,t,n;function o(r){i[148](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Tl({props:l}),he.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 s0(i){let e,t,n;function o(r){i[150](r)}let l={$$slots:{default:[E3]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new It({props:l}),he.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 E3(i){let e,t;return e=new Ir({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 a0(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 wr({props:r}),he.push(()=>Fe(t,"ref",l)),{c(){e=P("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&&y(e),R(t)}}}function A3(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 Zr({props:l}),he.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 M3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v=!i[4]&&Um(i),I=i[4]&&i[30]!=="inactive"&&e0(i),W=i[96]&&C3(i),Q=!i[4]&&i[25]&&n0(i),G=i[41]&&o0(i);function le(x){i[147](x)}let se={className:"w-max",disabled:!i[43],$$slots:{default:[I3]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(se.ref=i[20].episodes),u=new It({props:se}),he.push(()=>Fe(u,"ref",le));let V=i[38]&&r0(i),A=i[40]&&s0(i);g=new Br({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let $=i[23]&&a0(i),X=i[101]&&A3(i);return{c(){v&&v.c(),e=O(),I&&I.c(),t=O(),n=P("div"),o=P("div"),l=P("div"),W&&W.c(),r=O(),Q&&Q.c(),a=O(),G&&G.c(),s=O(),B(u.$$.fragment),p=O(),V&&V.c(),h=O(),A&&A.c(),b=O(),B(g.$$.fragment),S=O(),$&&$.c(),w=O(),X&&X.c(),T=ot(),c(l,"class","controls svelte-1tcstu3"),H(l,"mobile",!0),c(o,"class","controls-wrapper svelte-1tcstu3"),H(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-1tcstu3"),H(n,"hidden",i[1]),H(n,"controls-hidden",!i[3]),H(n,"no-smooth",i[2]),H(n,"mobile",!0)},m(x,N){v&&v.m(x,N),C(x,e,N),I&&I.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),A&&A.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,w,N),X&&X.m(x,N),C(x,T,N),k=!0},p(x,N){x[4]?v&&(fe(),_(v,1,1,()=>{v=null}),de()):v?(v.p(x,N),N[0]&16&&d(v,1)):(v=Um(x),v.c(),d(v,1),v.m(e.parentNode,e)),x[4]&&x[30]!=="inactive"?I?(I.p(x,N),N[0]&1073741840&&d(I,1)):(I=e0(x),I.c(),d(I,1),I.m(t.parentNode,t)):I&&(fe(),_(I,1,1,()=>{I=null}),de()),x[96]&&W.p(x,N),!x[4]&&x[25]?Q?(Q.p(x,N),N[0]&33554448&&d(Q,1)):(Q=n0(x),Q.c(),d(Q,1),Q.m(l,a)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),de()),x[41]?G?(G.p(x,N),N[1]&1024&&d(G,1)):(G=o0(x),G.c(),d(G,1),G.m(l,s)):G&&(fe(),_(G,1,1,()=>{G=null}),de());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=r0(x),V.c(),d(V,1),V.m(l,h)):V&&(fe(),_(V,1,1,()=>{V=null}),de()),x[40]?A?(A.p(x,N),N[1]&512&&d(A,1)):(A=s0(x),A.c(),d(A,1),A.m(l,null)):A&&(fe(),_(A,1,1,()=>{A=null}),de());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),(!k||N[1]&2097152)&&H(o,"fullscreen",x[52]),(!k||N[0]&2)&&H(n,"hidden",x[1]),(!k||N[0]&8)&&H(n,"controls-hidden",!x[3]),(!k||N[0]&4)&&H(n,"no-smooth",x[2]),x[23]?$?($.p(x,N),N[0]&8388608&&d($,1)):($=a0(x),$.c(),d($,1),$.m(w.parentNode,w)):$&&(fe(),_($,1,1,()=>{$=null}),de()),x[101]&&X.p(x,N)},i(x){k||(d(v),d(I),d(W),d(Q),d(G),d(u.$$.fragment,x),d(V),d(A),d(g.$$.fragment,x),d($),d(X),k=!0)},o(x){_(v),_(I),_(W),_(Q),_(G),_(u.$$.fragment,x),_(V),_(A),_(g.$$.fragment,x),_($),_(X),k=!1},d(x){x&&(y(e),y(t),y(n),y(S),y(w),y(T)),v&&v.d(x),I&&I.d(x),W&&W.d(),Q&&Q.d(),G&&G.d(),R(u),V&&V.d(),A&&A.d(),i[151](null),R(g),i[152](null),$&&$.d(x),X&&X.d(x)}}}function V3(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v,I,W,Q,G,le,se,V,A,$,X,x,N,te,E,Y,Re,je,Ue,Je,Ne,{bottomHidden:ve}=e,{bottomNoSmooth:J}=e,{showControls:we}=e,{controlsElementRef:He=void 0}=e,{isAds:Xe=!1}=e,{canRewindLive:xe}=e,{logoClickable:ke}=e,{logoHidden:Le}=e,{logoTargetUrl:ze=""}=e,{showNextPrevButtons:Ye}=e,{nextButtonActive:ue}=e,{prevButtonActive:oe}=e,{isOneVideoPlaylist:Se=!1}=e,{supportLink:ce}=e,{customFullscreenSupported:Ae=!0}=e,{playNextVideo:Ze}=e,{playPrevVideo:st}=e,{repeatPlaylist:ct}=e,{toggleFullscreen:at}=e,{returnFocus:ye}=e,{seekToInteractive:$e}=e,{toggleGraph:pt}=e,{playPrevChapter:ht}=e,{onDisabledPlayPrevChapterClick:gt}=e,{onDisabledSeekToInteractiveClick:Mt}=e,Ke=tt(),Yt=Sn(),Nt=At(),Lt=Ke.actions.internal.toggleMuted,ii=Ke.actions.internal.togglePlay,ae=Ke.actions.internal.pause,ft=Ke.callbacks?.onAudioDoesNotExistHint,_t=Ke.callbacks?.onAudioDisabledHint,bt=Ke.playerPhase;F(i,bt,ee=>t(126,G=ee));let wt=Ke.state.duration$;F(i,wt,ee=>t(62,Ne=ee));let Ot=Ke.state.positionWithScrubbing$;F(i,Ot,ee=>t(61,Je=ee));let Vt=Ke.state.playbackState$;F(i,Vt,ee=>t(121,h=ee));let Yi=Ke.state.isAudioAvailable$;F(i,Yi,ee=>t(51,b=ee));let on=Ke.state.isAudioDisabled,mi=Ke.state.isEnded$;F(i,mi,ee=>t(127,se=ee));let pi=Ke.state.isLive$;F(i,pi,ee=>t(25,k=ee));let Ai=Ke.state.muted$;F(i,Ai,ee=>t(54,N=ee));let Zt=Ke.state.isActiveLive$;F(i,Zt,ee=>t(124,w=ee));let _i=Ke.state.isRewindableLive$;F(i,_i,ee=>t(24,T=ee));let ln=Ke.ui.scrubbingInProgress;F(i,ln,ee=>t(29,le=ee));let hi=Ke.ui.mobileNotReportControlHidden$;F(i,hi,ee=>t(27,W=ee));let Fi=Ke.ui.isPictureInPictureActive$;F(i,Fi,ee=>t(26,I=ee));let ni=Ke.ui.pictureInPictureType$;F(i,ni,ee=>t(125,v=ee));let Mi=Ke.ui.mobileUnmuteButtonExpanded;F(i,Mi,ee=>t(55,te=ee));let gi=Ke.ui.mobileUnmuteButtonVisible;F(i,gi,ee=>t(53,x=ee));let Hi=Ke.ui.settingsMenuVisible;F(i,Hi,ee=>t(23,p=ee));let bi=Ke.ui.settingsMenuOpenedByKeyboard;F(i,bi,ee=>t(120,f=ee));let oi=Ke.ui.controls,Tt=Ke.actions.internal.getVideoEpisodes(),Ft=Ke.webApi.pictureInPictureApi,vi=Ke.state.chromecastState$;F(i,vi,ee=>t(28,Q=ee));let yi=Ke.state.crashed$;F(i,yi,ee=>t(57,Y=ee));let Ht=oi.disabledControls$;F(i,Ht,ee=>t(128,A=ee));let li=Ke.ui.startedByKeyboard$;F(i,li,ee=>t(119,u=ee));let ri=Ke.ads.duration;F(i,ri,ee=>t(60,Ue=ee));let Rt=Ke.ads.position;F(i,Rt,ee=>t(59,je=ee));let Et=Ke.ads.playbackState;F(i,Et,ee=>t(30,V=ee));let jt=Ke.ui.isFullscreen;F(i,jt,ee=>t(52,X=ee));let Vi=Ke.ui.playerSize;F(i,Vi,ee=>t(123,S=ee));let Xt=Ke.ui.additionalButtons$;F(i,Xt,ee=>t(56,E=ee));let rn=Ke.actions.internal.getVideoElement,sn=Ke.actions.internal.replayInteractive,Wt=Ke.state.isInteractive,wi=Ke.state.isInteractiveTime$;F(i,wi,ee=>t(122,g=ee));let zi=Ke.state.showInteractiveGraph,ki=Ke.state.showSeekToInteractive,si=Ke.state.showPlayPrevChapter,zt=Ke.state.showInteractiveTimeIndicator,Gt=Ke.state.graphIsOpened$;F(i,Gt,ee=>t(58,Re=ee));let Ci=Yt.seekToInteractiveDisabledTooltip$;F(i,Ci,ee=>t(129,$=ee));let Jt,Zi,Si,an,un,Xi,qi,Li,Qt,ai,Pi,Ri,Ji,Ii,Bi,Di,Qe,Ui,qt,qe={},xi=(0,u0.throttleFn)(Qr,260,{leading:!1}),Ni=()=>Ke.actions.internal.toggleChromecast();function Ki(){ao({isAudioDisabled:on,audioDisabledHintCallback:_t,isAudioAvailable:b,audioIsNotExistHintCallback:ft})&&Lt()}async function $i(){Ft?.isActive()?await Ft?.remove():await Ft?.request()}function ji(){!on&&b&&gi.set(!1),Ki()}let _n=Se?ii:ct,xt="",$t=(ee,mn)=>{if(!ee){t(45,xt=j("tooltip_live"));return}mn===sl.PlaybackState.PAUSED&&t(45,xt=j("tooltip_play"))},Wi,ui,re=()=>{s&&gt(Jt)},dt=()=>{l&&Mt(Zi)};function ci(ee){i.$$.not_equal(qe.volume,ee)&&(qe.volume=ee,t(20,qe))}function fi(ee){i.$$.not_equal(qe.chromecast,ee)&&(qe.chromecast=ee,t(20,qe))}function ei(ee){i.$$.not_equal(qe.pip,ee)&&(qe.pip=ee,t(20,qe))}function Gi(ee){ui=ee,t(22,ui)}function Tn(ee){i.$$.not_equal(qe.vkLogo,ee)&&(qe.vkLogo=ee,t(20,qe))}function yn(ee){i.$$.not_equal(qe.prevButton,ee)&&(qe.prevButton=ee,t(20,qe))}function hn(ee){i.$$.not_equal(qe.playButton,ee)&&(qe.playButton=ee,t(20,qe))}function Bt(ee){i.$$.not_equal(qe.replayButton,ee)&&(qe.replayButton=ee,t(20,qe))}function wn(ee){i.$$.not_equal(qe.nextButton,ee)&&(qe.nextButton=ee,t(20,qe))}function Nn(ee){i.$$.not_equal(qe.playPrevChapterButton,ee)&&(qe.playPrevChapterButton=ee,t(20,qe))}function En(ee){i.$$.not_equal(qe.interactiveGraphButton,ee)&&(qe.interactiveGraphButton=ee,t(20,qe))}function An(ee){i.$$.not_equal(qe.seekToInteractiveButton,ee)&&(qe.seekToInteractiveButton=ee,t(20,qe))}function kn(ee){i.$$.not_equal(qe.volume,ee)&&(qe.volume=ee,t(20,qe))}function en(ee){i.$$.not_equal(qe.playButton,ee)&&(qe.playButton=ee,t(20,qe))}function ie(ee){i.$$.not_equal(qe.replayButton,ee)&&(qe.replayButton=ee,t(20,qe))}function kt(ee){i.$$.not_equal(qe.liveButton,ee)&&(qe.liveButton=ee,t(20,qe))}function Mn(ee){i.$$.not_equal(qe.time,ee)&&(qe.time=ee,t(20,qe))}function On(ee){i.$$.not_equal(qe.episodes,ee)&&(qe.episodes=ee,t(20,qe))}function Fn(ee){ui=ee,t(22,ui)}function Jn(ee){i.$$.not_equal(qe.settings,ee)&&(qe.settings=ee,t(20,qe))}function xn(ee){i.$$.not_equal(qe.fullscreen,ee)&&(qe.fullscreen=ee,t(20,qe))}function $n(ee){he[ee?"unshift":"push"](()=>{Ui=ee,t(44,Ui)})}function eo(ee){he[ee?"unshift":"push"](()=>{He=ee,t(0,He)})}function to(ee){Wi=ee,t(21,Wi)}function po(ee){i.$$.not_equal(qe.interactiveTimeIndicator,ee)&&(qe.interactiveTimeIndicator=ee,t(20,qe))}i.$$set=ee=>{"bottomHidden"in ee&&t(1,ve=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,J=ee.bottomNoSmooth),"showControls"in ee&&t(3,we=ee.showControls),"controlsElementRef"in ee&&t(0,He=ee.controlsElementRef),"isAds"in ee&&t(4,Xe=ee.isAds),"canRewindLive"in ee&&t(5,xe=ee.canRewindLive),"logoClickable"in ee&&t(6,ke=ee.logoClickable),"logoHidden"in ee&&t(110,Le=ee.logoHidden),"logoTargetUrl"in ee&&t(7,ze=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(8,Ye=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(9,ue=ee.nextButtonActive),"prevButtonActive"in ee&&t(10,oe=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(111,Se=ee.isOneVideoPlaylist),"supportLink"in ee&&t(11,ce=ee.supportLink),"customFullscreenSupported"in ee&&t(112,Ae=ee.customFullscreenSupported),"playNextVideo"in ee&&t(12,Ze=ee.playNextVideo),"playPrevVideo"in ee&&t(13,st=ee.playPrevVideo),"repeatPlaylist"in ee&&t(113,ct=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(14,at=ee.toggleFullscreen),"returnFocus"in ee&&t(15,ye=ee.returnFocus),"seekToInteractive"in ee&&t(16,$e=ee.seekToInteractive),"toggleGraph"in ee&&t(17,pt=ee.toggleGraph),"playPrevChapter"in ee&&t(18,ht=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&t(114,gt=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&t(115,Mt=ee.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:Zi=j($);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,l=A.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,r=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,Si=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,Li=S.width>400);if(i.$$.dirty[0]&536870912)e:t(117,Qt=le);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,ai=Q!==sl.ChromecastState.NOT_AVAILABLE&&!(I&&v===1)&&!W&&!Wt);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ee=G==="waitingLive";t(37,Pi=!!Ft&&Q!==sl.ChromecastState.CONNECTED&&!W&&(v===1&&ee||!ee)&&!Qt&&!Wt)}if(i.$$.dirty[3]&16777216)e:t(38,Ri=!Qt);if(i.$$.dirty[3]&1073872896)e:t(39,Ji=!Le&&S.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,Ii=Nt.features.fullscreen&&!(I&&v===1)&&(Wt?Ae:!0)&&!Qt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Bi=(!k||Xe)&&S.width>260&&!Qt&&!(Nt.features.interactiveHideTime&&Wt));if(i.$$.dirty[0]&8388616)e:t(42,Di=p||we);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Qe=!Xe&&!k&&!!Tt?.length&&qi&&!n&&!Qt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,qt=!T||w);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:xi(rn(),oi,qe,we);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:$t(qt,h);if(i.$$.dirty[0]&12582912)e:$o(ui,p,bi);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Mo(Wi,p,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:Yr(li,u,qe.playButton)};e:Jt=j(Ke.state.playPrevChapterDisabledTooltip);return[He,ve,J,we,Xe,xe,ke,ze,Ye,ue,oe,ce,Ze,st,at,ye,$e,pt,ht,qt,qe,Wi,ui,p,T,k,I,W,Q,le,V,Si,an,un,Xi,Li,ai,Pi,Ri,Ji,Ii,Bi,Di,Qe,Ui,xt,l,s,a,r,o,b,X,x,N,te,E,Y,Re,je,Ue,Je,Ne,ii,ae,bt,wt,Ot,Vt,Yi,on,mi,pi,Ai,Zt,_i,ln,hi,Fi,ni,Mi,gi,Hi,bi,Tt,vi,yi,Ht,li,ri,Rt,Et,jt,Vi,Xt,sn,Wt,wi,zi,ki,si,zt,Gt,Ci,Ni,$i,ji,_n,re,dt,Le,Se,Ae,ct,gt,Mt,qi,Qt,n,u,f,h,g,S,w,v,G,se,A,$,ci,fi,ei,Gi,Tn,yn,hn,Bt,wn,Nn,En,An,kn,en,ie,kt,Mn,On,Fn,Jn,xn,$n,eo,to,po]}var Ou=class extends q{constructor(e){super(),U(this,e,V3,M3,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},v3,[-1,-1,-1,-1,-1,-1])}},c0=Ou;function L3(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 Rm({props:l}),he.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 R3(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 c0({props:l}),he.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 B3(i){let e,t,n,o,l=[R3,L3],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=ot()},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):(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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&&y(n),r[e].d(s)}}}function D3(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:w=!1}=e,{supportLink:T}=e,{customFullscreenSupported:k=!0}=e,{playNextVideo:v}=e,{playPrevVideo:I}=e,{repeatPlaylist:W}=e,{toggleFullscreen:Q}=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=tt().ui.isMobile;F(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,l=E.bottomNoSmooth),"showControls"in E&&t(3,r=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,b=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,k=E.customFullscreenSupported),"playNextVideo"in E&&t(15,v=E.playNextVideo),"playPrevVideo"in E&&t(16,I=E.playPrevVideo),"repeatPlaylist"in E&&t(17,W=E.repeatPlaylist),"toggleFullscreen"in E&&t(18,Q=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,l,r,s,u,f,p,h,b,g,S,w,T,k,v,I,W,Q,G,le,se,V,A,$,n,x,N,te]}var Fu=class extends q{constructor(e){super(),U(this,e,D3,B3,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 N3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,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]],k={};for(let v=0;v<T.length;v+=1)k=ne(k,T[v]);return{c(){e=D("svg"),w&&w.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"),be(e,k)},m(v,I){C(v,e,I),w&&w.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,[I]){w&&w.p&&(!g||I&2)&&Te(w,S,v,v[1],g?Ie(S,v[1],I,null):Ee(v[1]),null),be(e,k=Ve(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&&v[0]]))},i(v){g||(d(w,v),g=!0)},o(v){_(w,v),g=!1},d(v){v&&y(e),w&&w.d(v)}}}function O3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Hu=class extends q{constructor(e){super(),U(this,e,O3,N3,z,{})}},f0=Hu;function F3(i){let e,t;return e=new f0({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 H3(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 zu=class extends q{constructor(e){super(),U(this,e,H3,F3,z,{reversed:1})}},d0=zu;function z3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T=i[2].default,k=Pe(T,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]],I={};for(let W=0;W<v.length;W+=1)I=ne(I,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"),be(e,I)},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),w=!0},p(W,[Q]){k&&k.p&&(!w||Q&2)&&Te(k,T,W,W[1],w?Ie(T,W[1],Q,null):Ee(W[1]),null),be(e,I=Ve(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){w||(d(k,W),w=!0)},o(W){_(k,W),w=!1},d(W){W&&y(e),k&&k.d(W)}}}function q3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var qu=class extends q{constructor(e){super(),U(this,e,q3,z3,z,{})}},m0=qu;function U3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k=i[2].default,v=Pe(k,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]],W={};for(let Q=0;Q<I.length;Q+=1)W=ne(W,I[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"),w=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(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,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,w),T=!0},p(Q,[G]){v&&v.p&&(!T||G&2)&&Te(v,k,Q,Q[1],T?Ie(k,Q[1],G,null):Ee(Q[1]),null),be(e,W=Ve(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&&Q[0]]))},i(Q){T||(d(v,Q),T=!0)},o(Q){_(v,Q),T=!1},d(Q){Q&&y(e),v&&v.d(Q)}}}function K3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Uu=class extends q{constructor(e){super(),U(this,e,K3,U3,z,{})}},p0=Uu;function j3(i){let e,t;return e=new m0({}),{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 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,n,o,l=[W3,j3],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=ot()},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&&(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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&&y(n),r[e].d(s)}}}function Q3(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,Q3,G3,z,{isOff:0})}},ju=Ku;function Y3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,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]],k={};for(let v=0;v<T.length;v+=1)k=ne(k,T[v]);return{c(){e=D("svg"),w&&w.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"),be(e,k)},m(v,I){C(v,e,I),w&&w.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,[I]){w&&w.p&&(!g||I&2)&&Te(w,S,v,v[1],g?Ie(S,v[1],I,null):Ee(v[1]),null),be(e,k=Ve(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&&v[0]]))},i(v){g||(d(w,v),g=!0)},o(v){_(w,v),g=!1},d(v){v&&y(e),w&&w.d(v)}}}function Z3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Wu=class extends q{constructor(e){super(),U(this,e,Z3,Y3,z,{})}},_0=Wu;function X3(i){let e,t;return e=new _0({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 J3(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 Gu=class extends q{constructor(e){super(),U(this,e,J3,X3,z,{reversed:1})}},h0=Gu;function x3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,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]],k={};for(let v=0;v<T.length;v+=1)k=ne(k,T[v]);return{c(){e=D("svg"),w&&w.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"),be(e,k)},m(v,I){C(v,e,I),w&&w.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,[I]){w&&w.p&&(!g||I&2)&&Te(w,S,v,v[1],g?Ie(S,v[1],I,null):Ee(v[1]),null),be(e,k=Ve(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&&v[0]]))},i(v){g||(d(w,v),g=!0)},o(v){_(w,v),g=!1},d(v){v&&y(e),w&&w.d(v)}}}function $3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Qu=class extends q{constructor(e){super(),U(this,e,$3,x3,z,{})}},g0=Qu;function e5(i){let e,t;return e=new g0({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 t5(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 q{constructor(e){super(),U(this,e,t5,e5,z,{reversed:1})}},b0=Yu;function i5(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 v0(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,w,T=t&&y0(i),k=i[4]==="PAUSE"&&w0(i),v=i[4]==="PLAY"&&k0(i),I=i[4]==="REPLAY"&&C0(i),W=i[4]==="SUBTITLES_OFF"&&S0(i),Q=i[4]==="SUBTITLES_ON"&&P0(i),G=u&&I0(i),le=p&&T0(i),se=i[4]==="MUTE"&&E0(i),V=i[4]==="VOLUME"&&A0(i),A=i[5]&&M0(i);return{c(){e=P("div"),T&&T.c(),n=O(),k&&k.c(),o=O(),v&&v.c(),l=O(),I&&I.c(),r=O(),W&&W.c(),a=O(),Q&&Q.c(),s=O(),G&&G.c(),f=O(),le&&le.c(),h=O(),se&&se.c(),b=O(),V&&V.c(),g=O(),A&&A.c(),S=ot(),c(e,"class","svelte-4ftgwp")},m($,X){C($,e,X),T&&T.m(e,null),m(e,n),k&&k.m(e,null),m(e,o),v&&v.m(e,null),m(e,l),I&&I.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),le&&le.m(e,null),m(e,h),se&&se.m(e,null),m(e,b),V&&V.m(e,null),C($,g,X),A&&A.m($,X),C($,S,X),w=!0},p($,X){X&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes($[4])),t?T?(T.p($,X),X&16&&d(T,1)):(T=y0($),T.c(),d(T,1),T.m(e,n)):T&&(fe(),_(T,1,1,()=>{T=null}),de()),$[4]==="PAUSE"?k?X&16&&d(k,1):(k=w0($),k.c(),d(k,1),k.m(e,o)):k&&(fe(),_(k,1,1,()=>{k=null}),de()),$[4]==="PLAY"?v?X&16&&d(v,1):(v=k0($),v.c(),d(v,1),v.m(e,l)):v&&(fe(),_(v,1,1,()=>{v=null}),de()),$[4]==="REPLAY"?I?X&16&&d(I,1):(I=C0($),I.c(),d(I,1),I.m(e,r)):I&&(fe(),_(I,1,1,()=>{I=null}),de()),$[4]==="SUBTITLES_OFF"?W?X&16&&d(W,1):(W=S0($),W.c(),d(W,1),W.m(e,a)):W&&(fe(),_(W,1,1,()=>{W=null}),de()),$[4]==="SUBTITLES_ON"?Q?X&16&&d(Q,1):(Q=P0($),Q.c(),d(Q,1),Q.m(e,s)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),de()),X&16&&(u=["RATE_DOWN","RATE_UP"].includes($[4])),u?G?(G.p($,X),X&16&&d(G,1)):(G=I0($),G.c(),d(G,1),G.m(e,f)):G&&(fe(),_(G,1,1,()=>{G=null}),de()),X&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes($[4])),p?le?(le.p($,X),X&16&&d(le,1)):(le=T0($),le.c(),d(le,1),le.m(e,h)):le&&(fe(),_(le,1,1,()=>{le=null}),de()),$[4]==="MUTE"?se?X&16&&d(se,1):(se=E0($),se.c(),d(se,1),se.m(e,b)):se&&(fe(),_(se,1,1,()=>{se=null}),de()),$[4]==="VOLUME"?V?X&16&&d(V,1):(V=A0($),V.c(),d(V,1),V.m(e,null)):V&&(fe(),_(V,1,1,()=>{V=null}),de()),$[5]?A?A.p($,X):(A=M0($),A.c(),A.m(S.parentNode,S)):A&&(A.d(1),A=null)},i($){w||(d(T),d(k),d(v),d(I),d(W),d(Q),d(G),d(le),d(se),d(V),w=!0)},o($){_(T),_(k),_(v),_(I),_(W),_(Q),_(G),_(le),_(se),_(V),w=!1},d($){$&&(y(e),y(g),y(S)),T&&T.d(),k&&k.d(),v&&v.d(),I&&I.d(),W&&W.d(),Q&&Q.d(),G&&G.d(),le&&le.d(),se&&se.d(),V&&V.d(),A&&A.d($)}}}function y0(i){let e,t;return e=new d0({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 w0(i){let e,t;return e=new Tr({}),{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 k0(i){let e,t;return e=new ol({}),{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 Fr({}),{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 ju({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 P0(i){let e,t;return e=new ju({}),{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 h0({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 T0(i){let e,t;return e=new b0({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 E0(i){let e,t;return e=new Vo({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 A0(i){let e,t;return e=new Vo({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 M0(i){let e,t;return{c(){e=P("span"),t=Be(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&&y(e)}}}function n5(i){let e,t,n=!i[1]&&i[4]&&v0(i);return{c(){e=P("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-4ftgwp"),H(e,"hidden",i[1]),H(e,"hot-key-helpers-container--left",i[2]),H(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=v0(o),n.c(),d(n,1),n.m(e,null)):n&&(fe(),_(n,1,1,()=>{n=null}),de()),(!t||l&2)&&H(e,"hidden",o[1]),(!t||l&4)&&H(e,"hot-key-helpers-container--left",o[2]),(!t||l&8)&&H(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 o5(i,e,t){let n,o=_e,l=()=>(o(),o=Dt(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 Zu=class extends q{constructor(e){super(),U(this,e,o5,n5,z,{data:0},i5)}},V0=Zu;function l5(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 r5(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v;return l=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"),B(l.$$.fragment),r=O(),a=P("div"),B(s.$$.fragment),u=O(),f=P("div"),p=P("div"),B(h.$$.fragment),b=O(),g=P("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",w=j("aria_label_spherical_control")),H(e,"m-shifted",i[0])},m(I,W){C(I,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),T=!0,k||(v=[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])],k=!0)},p(I,[W]){(!T||W&1)&&H(e,"m-shifted",I[0])},i(I){T||(d(l.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(S.$$.fragment,I),T=!0)},o(I){_(l.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(S.$$.fragment,I),T=!1},d(I){I&&y(e),R(l),R(s),R(h),R(S),k=!1,it(v)}}}function s5(i,e,t){let{isShifted:n=!1}=e,o=tt(),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 q{constructor(e){super(),U(this,e,s5,r5,z,{isShifted:0},l5)}},xr=Xu;function a5(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 L0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function R0(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(r,a){return r[7]&&r[8]?f5:r[5]?c5:u5}let o=n(i,-1),l=o(i);return{c(){e=P("div"),t=P("span"),l.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),H(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&&H(e,"mobile",r[3])},d(r){r&&y(e),l.d()}}}function u5(i){let e,t=vt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=D0(L0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ot()},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=vt(o[1]);let r;for(r=0;r<t.length;r+=1){let a=L0(o,t,r);n[r]?n[r].p(a,l):(n[r]=D0(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&&y(e),Oi(n,o)}}}function c5(i){let e,t,n=vt(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=O0(R0(i,n,l));return{c(){e=P("span"),t=P("span");for(let l=0;l<o.length;l+=1)o[l].c();c(t,"class","caption-segment svelte-ovfyp5"),di(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=vt(l[6]);let a;for(a=0;a<n.length;a+=1){let s=R0(l,n,a);o[a]?o[a].p(s,r):(o[a]=O0(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&&di(t,"font-size",l[4]+"px")},d(l){l&&y(e),Oi(o,l)}}}function f5(i){let e,t,n=j("subtitles_auto_caption")+"",o;return{c(){e=P("span"),t=P("span"),o=Be(n),c(t,"class","caption-segment svelte-ovfyp5"),di(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&&di(t,"font-size",l[4]+"px")},d(l){l&&y(e)}}}function D0(i){let e,t,n=i[16]+"",o,l;return{c(){e=P("span"),t=P("span"),o=Be(n),l=O(),c(t,"class","caption-segment svelte-ovfyp5"),di(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&&di(t,"font-size",r[4]+"px")},d(r){r&&y(e)}}}function N0(i){let e=i[16]+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ge(t,e)},d(n){n&&y(t)}}}function O0(i){let e,t=(!i[17]||i[17]<=i[2])&&N0(i);return{c(){t&&t.c(),e=ot()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=N0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&y(e),t&&t.d(n)}}}function d5(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"),H(e,"shifted",i[0]),H(e,"auto",i[5]&&!i[8])},m(n,o){C(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=B0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&H(e,"shifted",n[0]),o&288&&H(e,"auto",n[5]&&!n[8])},i:_e,o:_e,d(n){n&&y(e),t&&t.d()}}}function m5(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=tt(),p=At(),h=f.state.currentSubtitle$;F(i,h,v=>t(12,n=v));let b=f.state.isAutoSubtitleCaptionVisible$;F(i,b,v=>t(8,o=v));let g,S,w,T,k;return St(()=>{k=window.setTimeout(()=>{b.set(!1)},p.autoSubtitlesTimeout)}),Ln(()=>{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,w=r.reduce((v,{type:I,value:W})=>(I==="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,T=!!n.isAuto)},[l,r,a,u,g,S,w,T,o,h,b,s,n]}var Ju=class extends q{constructor(e){super(),U(this,e,m5,d5,z,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},a5)}},$r=Ju;function p5(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 F0(i){let e,t,n;return{c(){e=P("div"),t=Be("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Be(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&&y(e)}}}function _5(i){let e,t,n,o,l,r,a=i[1]&&F0(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){C(s,e,u),m(e,t),m(e,n),a&&a.m(e,null),l||(r=pe(e,"click",i[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=F0(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:_e,o:_e,d(s){s&&y(e),a&&a.d(),l=!1,r()}}}function h5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){gn.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 xu=class extends q{constructor(e){super(),U(this,e,h5,_5,z,{thumbUrl:0,chromecastDeviceName:1},p5)}},es=xu;function g5(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function b5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var $u=class extends q{constructor(e){super(),U(this,e,b5,g5,z,{})}},H0=$u;function v5(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 y5(i){let e,t,n;return t=new H0({}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p:_e,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,y5,z,{},v5)}},ts=ec;function w5(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 k5(i){let e,t,n,o,l,r,a,s,u,f;return l=new ol({}),{c(){e=P("div"),t=P("div"),n=P("div"),o=O(),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]||""}')`),H(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=[pe(t,"keydown",i[3]),pe(e,"click",lt(function(){Ti(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)&&H(e,"hidden",i[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){_(l.$$.fragment,p),s=!1},d(p){p&&y(e),R(l),u=!1,it(f)}}}function C5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=tt().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 tc=class extends q{constructor(e){super(),U(this,e,C5,k5,z,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},w5)}get handlePressKey(){return this.$$.ctx[3]}},is=tc;function S5(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(
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 y5(i){let e,t;return{c(){e=T("div"),t=Be(i[0]),c(e,"class","title svelte-1bcvcf2"),O(e,"hidden",i[1])},m(n,o){w(n,e,o),m(e,t)},p(n,[o]){o&1&&Ge(t,n[0]),o&2&&O(e,"hidden",n[1])},i:me,o:me,d(n){n&&k(e)}}}function k5(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 tc=class extends z{constructor(e){super(),q(this,e,k5,y5,H,{title:0,isHidden:1},v5)}},N0=tc;function w5(i){we(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 O0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Be(i[0]),o=N(),r=T("span"),r.textContent=`${U("waiting_live_day_value")}`,l=N(),a=T("span"),a.textContent=`${U("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){w(s,e,u),m(e,t),m(t,n),m(e,o),m(e,r),w(s,l,u),w(s,a,u)},p(s,u){u&1&&Ge(n,s[0])},d(s){s&&(k(e),k(l),k(a))}}}function F0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Be(i[1]),o=N(),r=T("span"),r.textContent=`${U("waiting_live_hour_value")}`,l=N(),a=T("span"),a.textContent=`${U("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){w(s,e,u),m(e,t),m(t,n),m(e,o),m(e,r),w(s,l,u),w(s,a,u)},p(s,u){u&2&&Ge(n,s[1])},d(s){s&&(k(e),k(l),k(a))}}}function H0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=Be(i[2]),o=N(),r=T("span"),r.textContent=`${U("waiting_live_minute_value")}`,l=N(),a=T("span"),a.textContent=`${U("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){w(s,e,u),m(e,t),m(t,n),m(e,o),m(e,r),w(s,l,u),w(s,a,u)},p(s,u){u&4&&Ge(n,s[2])},d(s){s&&(k(e),k(l),k(a))}}}function z0(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=Be(i[3]),o=N(),r=T("span"),r.textContent=`${U("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){w(l,e,a),m(e,t),m(t,n),m(e,o),m(e,r)},p(l,a){a&8&&Ge(n,l[3])},d(l){l&&k(e)}}}function C5(i){let e,t,n,o,r=i[0]&&O0(i),l=i[1]&&F0(i),a=i[2]&&H0(i),s=i[3]&&z0(i);return{c(){e=T("div"),r&&r.c(),t=N(),l&&l.c(),n=N(),a&&a.c(),o=N(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){w(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=O0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,f):(l=F0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,f):(a=H0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=z0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:me,o:me,d(u){u&&k(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function S5(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,f=y=>String(y).padStart(2,"0"),p=y=>{let b=Math.floor(y/86400);b&&(y-=b*86400,t(0,r=f(b)));let P=Math.floor(y/3600);t(1,l=f(P));let C=Math.floor(y/60)%60;t(2,a=f(C));let A=y%60;t(3,s=f(A))},h=()=>{let y=Math.floor(Date.now()/1e3),b=n-y;p(b),b>=1?u=requestAnimationFrame(h):o()};return St(()=>{u=requestAnimationFrame(h)}),Ln(()=>{cancelAnimationFrame(u)}),i.$$set=y=>{"startTime"in y&&t(4,n=y.startTime),"onTimerOver"in y&&t(5,o=y.onTimerOver)},[r,l,a,s,n,o]}var ic=class extends z{constructor(e){super(),q(this,e,S5,C5,H,{startTime:4,onTimerOver:5},w5)}},q0=ic;function P5(i){let e,t,n,o,r,l,a=i[2].default,s=Se(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=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"),ri(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"),ri(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"),ri(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"),ri(r,"opacity",".986"),be(e,f)},m(p,h){w(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)&&Ie(s,a,p,p[1],l?Pe(a,p[1],h,null):Te(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&&k(e),s&&s.d(p)}}}function I5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var nc=class extends z{constructor(e){super(),q(this,e,I5,P5,H,{})}},U0=nc;function T5(i){we(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 E5(i){let e,t,n,o,r;return o=new q0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${U("waiting_live_timer_title")}`,n=N(),R(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){w(l,e,a),m(e,t),m(e,n),L(o,e,null),r=!0},p(l,a){let s={};a&2&&(s.startTime=l[1]||0),a&4&&(s.onTimerOver=l[3]),o.$set(s)},i(l){r||(d(o.$$.fragment,l),r=!0)},o(l){_(o.$$.fragment,l),r=!1},d(l){l&&k(e),B(o)}}}function A5(i){let e,t,n,o,r,l;return n=new U0({}),{c(){e=T("div"),t=T("div"),R(n.$$.fragment),o=N(),r=T("span"),r.textContent=`${U("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){w(a,e,s),m(e,t),L(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&&k(e),B(n)}}}function M5(i){let e,t,n,o,r,l=[A5,E5],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=T("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){w(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&&k(e),a[t].d()}}}function V5(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 oc=class extends z{constructor(e){super(),q(this,e,V5,M5,H,{thumbUrl:0,startTime:1},T5)}},is=oc;function L5(i){we(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 B5(i){let e,t;return{c(){e=T("div"),t=T("p"),t.textContent=`${U("waiting_record_title")}`,c(t,"class","waiting-title svelte-1bcnzdw"),c(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){w(n,e,o),m(e,t)},p:me,i:me,o:me,d(n){n&&k(e)}}}var lc=class extends z{constructor(e){super(),q(this,e,null,B5,H,{},L5)}},ns=lc;var{window:R5}=yo;function D5(i){we(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 W0(i){let e,t;return e=new is({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function G0(i){let e,t;return e=new ns({}),{c(){R(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){B(e,n)}}}function j0(i){let e,t,n;return t=new rr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","ads-container svelte-1o4wf3x"),O(e,"hidden",i[38]!=="ads")},m(o,r){w(o,e,r),L(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)&&O(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function Q0(i){let e,t;return e=new m1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Y0(i){let e,t;return e=new N0({props:{title:i[2],isHidden:!i[36]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function Z0(i){let e,t;return e=new Jr({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function X0(i){let e,t,n;return t=new Jl({props:{"aria-label":U("video360")}}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){w(o,e,r),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&&k(e),B(t)}}}function J0(i){let e,t;return e=new $r({props:{thumbUrl:i[3],chromecastDeviceName:i[53]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function x0(i){let e,t;return e=new xr({props:{shifted:i[36],captions:i[55],position:i[56],playerSize:i[34]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function $0(i){let e,t,n,o,r;return t=new es({}),{c(){e=T("div"),R(t.$$.fragment)},m(l,a){w(l,e,a),L(t,e,null),n=!0,o||(r=[pe(e,"contextmenu",Ct(i[108])),pe(e,"click",lt(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&&k(e),B(t),o=!1,et(r)}}}function ep(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:rp,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 Xr({props:r}),_e.push(()=>Oe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function tp(i){let e,t;return e=new _r({}),{c(){R(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){B(e,n)}}}function ip(i){let e,t;return e=new S1({}),{c(){R(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){B(e,n)}}}function np(i){let e,t;return e=new dr({}),{c(){R(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){B(e,n)}}}function op(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v,E,G,W,K,re;e=new ts({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let te=i[38]==="waitingLive"&&W0(i),I=i[38]==="waitingRecord"&&G0(i),Y=i[7]&&i[22]&&j0(i),X=i[31]&&i[18]&&i[19]&&Q0(i),$=i[44]&&Y0(i),x=i[49]&&Z0(i),D=i[52]&&X0(i),j=i[39]&&J0(i),V=i[54].value!=="off"&&x0(i),Q=i[37]&&$0(i),De=i[22]&&ep(i);b=new ar({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),C=new T0({props:{data:i[103]}});function We(J){i[158](J)}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]),S=new Zf({props:qe}),_e.push(()=>Oe(S,"menuElementRef",We));let Ze=i[42]&&tp(i),Me=i[62]&&ip(i),ye=i[63]&&np(i);return{c(){R(e.$$.fragment),t=N(),te&&te.c(),n=N(),I&&I.c(),o=N(),Y&&Y.c(),r=N(),X&&X.c(),l=N(),$&&$.c(),a=N(),x&&x.c(),s=N(),D&&D.c(),u=N(),j&&j.c(),f=N(),V&&V.c(),p=N(),Q&&Q.c(),h=N(),De&&De.c(),y=N(),R(b.$$.fragment),P=N(),R(C.$$.fragment),A=N(),R(S.$$.fragment),E=N(),Ze&&Ze.c(),G=N(),Me&&Me.c(),W=N(),ye&&ye.c(),K=nt()},m(J,ke){L(e,J,ke),w(J,t,ke),te&&te.m(J,ke),w(J,n,ke),I&&I.m(J,ke),w(J,o,ke),Y&&Y.m(J,ke),w(J,r,ke),X&&X.m(J,ke),w(J,l,ke),$&&$.m(J,ke),w(J,a,ke),x&&x.m(J,ke),w(J,s,ke),D&&D.m(J,ke),w(J,u,ke),j&&j.m(J,ke),w(J,f,ke),V&&V.m(J,ke),w(J,p,ke),Q&&Q.m(J,ke),w(J,h,ke),De&&De.m(J,ke),w(J,y,ke),L(b,J,ke),w(J,P,ke),L(C,J,ke),w(J,A,ke),L(S,J,ke),w(J,E,ke),Ze&&Ze.m(J,ke),w(J,G,ke),Me&&Me.m(J,ke),w(J,W,ke),ye&&ye.m(J,ke),w(J,K,ke),re=!0},p(J,ke){let Fe={};ke[0]&32|ke[1]&192&&(Fe.hidden=J[38]!=="thumb"||J[37]||J[92]&&J[5]),ke[0]&8&&(Fe.thumbUrl=J[3]),ke[0]&536870912&&(Fe.startVideo=J[29]),e.$set(Fe),J[38]==="waitingLive"?te?(te.p(J,ke),ke[1]&128&&d(te,1)):(te=W0(J),te.c(),d(te,1),te.m(n.parentNode,n)):te&&(ue(),_(te,1,1,()=>{te=null}),ce()),J[38]==="waitingRecord"?I?ke[1]&128&&d(I,1):(I=G0(J),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),J[7]&&J[22]?Y?(Y.p(J,ke),ke[0]&4194432&&d(Y,1)):(Y=j0(J),Y.c(),d(Y,1),Y.m(r.parentNode,r)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),ce()),J[31]&&J[18]&&J[19]?X?(X.p(J,ke),ke[0]&786432|ke[1]&1&&d(X,1)):(X=Q0(J),X.c(),d(X,1),X.m(l.parentNode,l)):X&&(ue(),_(X,1,1,()=>{X=null}),ce()),J[44]?$?($.p(J,ke),ke[1]&8192&&d($,1)):($=Y0(J),$.c(),d($,1),$.m(a.parentNode,a)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),J[49]?x?(x.p(J,ke),ke[1]&262144&&d(x,1)):(x=Z0(J),x.c(),d(x,1),x.m(s.parentNode,s)):x&&(ue(),_(x,1,1,()=>{x=null}),ce()),J[52]?D?(D.p(J,ke),ke[1]&2097152&&d(D,1)):(D=X0(J),D.c(),d(D,1),D.m(u.parentNode,u)):D&&(ue(),_(D,1,1,()=>{D=null}),ce()),J[39]?j?(j.p(J,ke),ke[1]&256&&d(j,1)):(j=J0(J),j.c(),d(j,1),j.m(f.parentNode,f)):j&&(ue(),_(j,1,1,()=>{j=null}),ce()),J[54].value!=="off"?V?(V.p(J,ke),ke[1]&8388608&&d(V,1)):(V=x0(J),V.c(),d(V,1),V.m(p.parentNode,p)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),J[37]?Q?(Q.p(J,ke),ke[1]&64&&d(Q,1)):(Q=$0(J),Q.c(),d(Q,1),Q.m(h.parentNode,h)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),J[22]?De?(De.p(J,ke),ke[0]&4194304&&d(De,1)):(De=ep(J),De.c(),d(De,1),De.m(y.parentNode,y)):De&&(ue(),_(De,1,1,()=>{De=null}),ce());let Ye={};ke[1]&134217728&&(Ye.isLive=J[58]),ke[1]&4096&&(Ye.isHidden=!J[43]),ke[1]&268435456&&(Ye.isPlaying=J[59]),ke[1]&33554432&&(Ye.position=J[56]),ke[1]&536870912&&(Ye.duration=J[60]),b.$set(Ye);let Je={};ke[0]&2097152&&(Je.supportLink=J[21]),ke[1]&131072&&(Je.returnFocus=J[157]),ke[1]&4&&(Je.visible=J[33]),ke[1]&512&&(Je.playerContainerRef=J[40]),ke[1]&1024&&(Je.controlsContainerRef=J[41]),ke[1]&1073741824&&(Je.position=J[61]),!v&&ke[1]&2&&(v=!0,Je.menuElementRef=J[32],Ne(()=>v=!1)),S.$set(Je),J[42]?Ze?ke[1]&2048&&d(Ze,1):(Ze=tp(J),Ze.c(),d(Ze,1),Ze.m(G.parentNode,G)):Ze&&(ue(),_(Ze,1,1,()=>{Ze=null}),ce()),J[62]?Me?ke[2]&1&&d(Me,1):(Me=ip(J),Me.c(),d(Me,1),Me.m(W.parentNode,W)):Me&&(ue(),_(Me,1,1,()=>{Me=null}),ce()),J[63]?ye?ke[2]&2&&d(ye,1):(ye=np(J),ye.c(),d(ye,1),ye.m(K.parentNode,K)):ye&&(ue(),_(ye,1,1,()=>{ye=null}),ce())},i(J){re||(d(e.$$.fragment,J),d(te),d(I),d(Y),d(X),d($),d(x),d(D),d(j),d(V),d(Q),d(De),d(b.$$.fragment,J),d(C.$$.fragment,J),d(S.$$.fragment,J),d(Ze),d(Me),d(ye),re=!0)},o(J){_(e.$$.fragment,J),_(te),_(I),_(Y),_(X),_($),_(x),_(D),_(j),_(V),_(Q),_(De),_(b.$$.fragment,J),_(C.$$.fragment,J),_(S.$$.fragment,J),_(Ze),_(Me),_(ye),re=!1},d(J){J&&(k(t),k(n),k(o),k(r),k(l),k(a),k(s),k(u),k(f),k(p),k(h),k(y),k(P),k(A),k(E),k(G),k(W),k(K)),B(e,J),te&&te.d(J),I&&I.d(J),Y&&Y.d(J),X&&X.d(J),$&&$.d(J),x&&x.d(J),D&&D.d(J),j&&j.d(J),V&&V.d(J),Q&&Q.d(J),De&&De.d(J),B(b,J),B(C,J),B(S,J),Ze&&Ze.d(J),Me&&Me.d(J),ye&&ye.d(J)}}}function N5(i){let e,t,n,o,r=i[51],l,a,s,u,f=op(i);return{c(){e=T("div"),t=T("div"),o=N(),f.c(),l=nt(),c(t,"class","video-container svelte-1o4wf3x"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),O(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-1o4wf3x"),O(e,"hidden",i[38]!=="video"),O(e,"nocursor",i[45])},m(p,h){w(p,e,h),m(e,t),i[154](t),w(p,o,h),f.m(p,h),w(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)&&O(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&O(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&O(e,"nocursor",p[45]),h[1]&1048576&&H(r,r=p[51])?(ue(),_(f,1,1,me),ce(),f=op(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&&(k(e),k(o),k(l)),i[154](null),f.d(p),s=!1,et(u)}}}function O5(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:[N5]},$$scope:{ctx:i}};return t=new _1({props:s}),i[159](t),{c(){e=T("div"),R(t.$$.fragment),n=N(),o=T("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-1o4wf3x")},m(u,f){w(u,e,f),L(t,e,null),m(e,n),m(e,o),i[160](o),i[161](e),r=!0,l||(a=[pe(R5,"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&&k(e),i[159](null),B(t),i[160](null),i[161](null),l=!1,et(a)}}}var rp=!0;function rc(i){return i?i.offsetTop+rc(i.offsetParent):0}function sp(i){return i?i.offsetLeft+sp(i.offsetParent):0}function F5(i,e,t){let n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v,E,G,W,K,re,te,I,Y,X,$,x,D,j,V,Q,De,We,qe,Ze,Me,ye,J,ke,Fe,Ye,Je,{store:he}=e,{uiConfig:Ve}=e,{title:ze}=e,{thumbUrl:tt}=e,{videoContainer:le}=e,{interactiveContainer:oe}=e,{live:Ce}=e,{autoplay:fe}=e,{canRewindLive:Ee}=e,{showAds:je}=e,{adsSlotId:rt=void 0}=e,{adsParams:dt=void 0}=e,{adsPreviewParam:st=void 0}=e,{duration:de=void 0}=e,{logoClickable:ct}=e,{logoHidden:It}=e,{logoTargetUrl:_t=""}=e,{showNextPrevButtons:yt=!1}=e,{nextButtonActive:Lt=!1}=e,{prevButtonActive:Ue=!1}=e,{endScreenVideoTitle:Qt=void 0}=e,{endScreenVideoThumb:ve=void 0}=e,{isOneVideoPlaylist:bt=!1}=e,{supportLink:Tt}=e,{outerContainerRef:Xe=void 0}=e,{playerStarted:at=!1}=e,{fullScreenTarget:kt=void 0}=e,{showMiniTimer:Et=!1}=e,{playNextVideo:yi=os.noop}=e,{playPrevVideo:ki=os.noop}=e,{repeatPlaylist:wi=os.noop}=e,{seekToInteractive:Qi}=e,{toggleGraph:ln}=e,{playPrevChapter:si}=e,{firstStart:ai}=e,Ci=he.getLogger().createComponentLog("Root component"),Yt=he.interfaceLanguage$;F(i,Yt,g=>t(51,V=g));let ui=he.state.playbackState$;F(i,ui,g=>t(151,x=g));let Yi=he.ads.playbackState;F(i,Yi,g=>t(152,D=g));let Si=he.state.positionWithScrubbing$;F(i,Si,g=>t(56,Ze=g));let Pi=he.state.duration$;F(i,Pi,g=>t(60,ke=g));let ci=he.playerPhase;F(i,ci,g=>t(38,te=g));let Ii=he.ui.isFullscreen;F(i,Ii,g=>t(141,b=g));let fi=he.ui.controlsVisible;F(i,fi,g=>t(36,E=g));let Ti=he.ui.settingsMenuVisible;F(i,Ti,g=>t(139,s=g));let Ei=he.ui.scrubbingInProgress;F(i,Ei,g=>t(143,S=g));let Mt=he.ui.contextMenu.visible$;F(i,Mt,g=>t(33,n=g));let zt=he.ui.debugPanelVisible;F(i,zt,g=>t(63,Je=g));let Zt=he.state.isLoaderVisible;F(i,Zt,g=>t(153,j=g));let di=he.state.isEnded$;F(i,di,g=>t(140,f=g));let Ft=he.state.chromecastConnected$;F(i,Ft,g=>t(39,X=g));let mi=he.state.chromecastDeviceName$;F(i,mi,g=>t(53,De=g));let Xt=he.ads.postrollPassed;F(i,Xt,g=>t(146,K=g));let ii=he.state.isLive$;F(i,ii,g=>t(58,ye=g));let Bt=he.state.isPlaying$;F(i,Bt,g=>t(59,J=g));let Rt=he.state.crashed$;F(i,Rt,g=>t(37,W=g));let qt=he.webApi.pictureInPictureApi,Jt=he.state.currentSubtitle$;F(i,Jt,g=>t(54,We=g));let pi=he.state.currentSubtitleCaptions$;F(i,pi,g=>t(55,qe=g));let cn=he.state.duration$;F(i,cn,g=>t(57,Me=g));let Zi=he.state.graphIsOpened$;F(i,Zi,g=>t(147,re=g));let xt=he.ui.playerSize;F(i,xt,g=>t(34,h=g));let ni=he.ui.is3DVideo;F(i,ni,g=>t(49,p=g));let Ai=he.ui.icon3DVideoVisible;F(i,Ai,g=>t(52,Q=g));let zi=he.ui.rotateAlpha;F(i,zi,g=>t(35,A=g));let Ut=he.state.isInteractive,wt=he.state.isInteractiveTime$;F(i,wt,g=>t(144,v=g));let Mi=he.state.isInteractiveExpectation$;F(i,Mi,g=>t(150,$=g));let Xi=he.state.hasInteractiveBranches,oi=he.ui.touched;F(i,oi,g=>t(148,I=g));let Ji=he.ui.modals.hotKeyMap.data;F(i,Ji,g=>t(168,u=g));let _i=he.ui.modals.hotKeyMap.show;F(i,_i,g=>t(62,Ye=g));let rn=he.ui.overlayContainer$,xi=he.ui.controls.interactiveTimeIndicator;F(i,xi,g=>t(169,y=g));let sn=he.state.showInteractiveTimeIndicator,qi=he.ui.contextMenu.position$;F(i,qi,g=>t(61,Fe=g));let Vi=he.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Kt}=Sn();F(i,Kt,g=>t(142,C=g));let $t,hi,Ui,Ki,gi;Ji.set(If());let Li,Bi,Qe=Re(!1);F(i,Qe,g=>t(50,P=g));let Wi,Ht=Re(!1);F(i,Ht,g=>t(149,Y=g));let He=Re(),Ri=Re(!1);F(i,Ri,g=>t(145,G=g));let $i=!1,Gi=!1,Di,an,Ni,en,Wt,tn,li=!1,se,ft=!1,{toggle:Gt}=Kt,ei=!1,Oi=null,Fi;qt?.setContext(gl());let yn=()=>{fe&&!Ut&&Dt(Ve.controls.hideTimeout)};he.setUiCallbacks({onStarted:yn});let kn=()=>{window.clearTimeout(Ui),Ht.set(!1)},mn=()=>{window.clearTimeout(Ki),He.set(null)},Dt=g=>{kn(),Ht.set(!0),Ui=window.setTimeout(()=>Ht.set(!1),g);let ae=g-100;Wi=window.setTimeout(()=>{P&&Qe.set(!1)},ae>0?ae:g)},Nn=(g,ae)=>{mn(),He.set(ae),Ki=window.setTimeout(()=>He.set(null),g)},On=ni.subscribe(g=>{Ai.set(g),g&&(window.clearTimeout(gi),gi=window.setTimeout(()=>Ai.set(!1),Ve.controls.hide360IconTimeout))}),wn=async()=>{let g=lo();if(g){Dt(Ve.controls.hideTimeoutFullscreen);try{await qt?.remove()}catch(ae){Ci({message:String(ae)})}}Ii.set(g),he.getAdmanWrapper().setFullscreen(g),b?he.callbacks?.onFullscreenEnter?.():he.callbacks?.onFullscreenExit?.()},En=g=>{let ae=g;xt.set({width:ae.target.width,height:ae.target.height})};St(()=>(or(wn),Ao(qt)&&(qt?.assignPlayerContainer($t),qt?.registryExternalEventHandlers({resize:En})),oe&&le.parentElement?.insertBefore(oe,le.nextSibling),()=>{window.clearTimeout(Ui),window.clearTimeout(Wi),window.clearTimeout(Ki),window.clearTimeout(gi),On(),qt?.dispose(),lr(wn)}));let pn=async()=>{if(lo())await nr(document),Ci({message:"exit fullscreen"});else{Ci({message:"request fullscreen"});let g=Xe??$t,ae=g.getRootNode(),Ae=ae instanceof ShadowRoot?ae.host:ae,Ke=kt instanceof HTMLElement&&kt.contains(Ae),ot=Ve.allowChangingFullscreenTarget&&kt&&Ke?kt:g;await ir(ot)}},fn=()=>{Vi(),Mt.set(!1)},ie=g=>{Mt.set(!0),qi.set({left:g.clientX,top:g.clientY})};function vt(){Ri.set(!0),Ut||Dt(Ve.controls.hideTimeoutCursor)}function An(){Ut||(Qe.set(!0),Dt(Ve.controls.hideTimeoutCursor))}function Fn(){Ri.set(!1),t(131,Gi=!1),t(130,$i=!1),ei=!1,he.actions.internal.releaseCamera()}function Hn(g){if(y&&sn){let ae=g.currentTarget,Ae=rc(ae),Ke=sp(ae),ot=g.pageX-Ke,jt=g.pageY-Ae,{left:ti,bottom:Nt,right:hn}=y,Mn=hn-ti;return ot>=ti-Mn&&jt<=Nt+Mn}}function Xn(g){if($t){let ae=rc(g.currentTarget),Ae=h.height,Ke=g.pageY-ae;if(Hn(g)){t(131,Gi=!1);return}Ke<40?t(131,Gi=!0):Ke>Ae-40?t(130,$i=!0):(t(131,Gi=!1),s||t(130,$i=!1))}}function Jn(g){Xn(g),an||Dt(Ve.controls.hideTimeoutCursor),p&&ei&&Oi&&he.actions.internal.moveCameraFocusPX(Oi.clientX-g.clientX,Oi.clientY-g.clientY,g.timeStamp-Oi.timeStamp),Oi=g}let xn=g=>{g.button===0&&(ei=!0,he.actions.internal.holdCamera()),Dt(Ve.controls.hideTimeoutCursor)},$n=g=>{g.button===0&&(Oi=g,ei=!1,he.actions.internal.releaseCamera()),Dt(Ve.controls.hideTimeoutCursor)},eo=()=>{rp&&(Ci({message:"double click on video"}),pn(),Dt(Ve.controls.hideTimeoutCursor))},po=()=>{if(n||s){fn();return}if(!(f&&!Xi)){if(ft)return Gt();if(Fi?.focus(),!at){ai(),Dt(Ve.controls.hideTimeoutCursor);return}he.actions.internal.togglePlay(),Dt(Ve.controls.hideTimeoutCursor)}},ee=g=>{fn(),oi.set(!0),Dt(Ve.controls.hideTimeout),g&&Nn(Ve.controls.hideHotKeyHelpers,g)},_n=()=>{fn(),he.callbacks?.onOpenHotKeyMap?he.callbacks?.onOpenHotKeyMap(u):_i.update(g=>!g)},_o=()=>{if(n||s){fn();return}},ho=()=>{oi.set(!0)},to=he.ui.contextMenu.openedByBtnKeyboard$;F(i,to,g=>t(138,a=g));let No=he.ui.contextMenu.btnRef$;F(i,No,g=>t(137,l=g));let zn,io=he.ui.contextMenu.openedByHotKey$;F(i,io,g=>t(136,r=g));let Oo=he.ui.contextMenu.lastActiveElem$;F(i,Oo,g=>t(135,o=g));function Fo(g){_e[g?"unshift":"push"](()=>{le=g,t(0,le)})}let pl=()=>Fi?.focus();function Gn(g){hi=g,t(41,hi)}let go=()=>Fi?.focus();function bo(g){zn=g,t(32,zn)}function Ho(g){_e[g?"unshift":"push"](()=>{Fi=g,t(48,Fi)})}function vo(g){_e[g?"unshift":"push"](()=>{Bi=g,t(30,Bi)})}function pt(g){_e[g?"unshift":"push"](()=>{$t=g,t(40,$t)})}return i.$$set=g=>{"store"in g&&t(125,he=g.store),"uiConfig"in g&&t(1,Ve=g.uiConfig),"title"in g&&t(2,ze=g.title),"thumbUrl"in g&&t(3,tt=g.thumbUrl),"videoContainer"in g&&t(0,le=g.videoContainer),"interactiveContainer"in g&&t(126,oe=g.interactiveContainer),"live"in g&&t(4,Ce=g.live),"autoplay"in g&&t(5,fe=g.autoplay),"canRewindLive"in g&&t(6,Ee=g.canRewindLive),"showAds"in g&&t(7,je=g.showAds),"adsSlotId"in g&&t(8,rt=g.adsSlotId),"adsParams"in g&&t(9,dt=g.adsParams),"adsPreviewParam"in g&&t(10,st=g.adsPreviewParam),"duration"in g&&t(11,de=g.duration),"logoClickable"in g&&t(12,ct=g.logoClickable),"logoHidden"in g&&t(13,It=g.logoHidden),"logoTargetUrl"in g&&t(14,_t=g.logoTargetUrl),"showNextPrevButtons"in g&&t(15,yt=g.showNextPrevButtons),"nextButtonActive"in g&&t(16,Lt=g.nextButtonActive),"prevButtonActive"in g&&t(17,Ue=g.prevButtonActive),"endScreenVideoTitle"in g&&t(18,Qt=g.endScreenVideoTitle),"endScreenVideoThumb"in g&&t(19,ve=g.endScreenVideoThumb),"isOneVideoPlaylist"in g&&t(20,bt=g.isOneVideoPlaylist),"supportLink"in g&&t(21,Tt=g.supportLink),"outerContainerRef"in g&&t(127,Xe=g.outerContainerRef),"playerStarted"in g&&t(22,at=g.playerStarted),"fullScreenTarget"in g&&t(128,kt=g.fullScreenTarget),"showMiniTimer"in g&&t(129,Et=g.showMiniTimer),"playNextVideo"in g&&t(23,yi=g.playNextVideo),"playPrevVideo"in g&&t(24,ki=g.playPrevVideo),"repeatPlaylist"in g&&t(25,wi=g.repeatPlaylist),"seekToInteractive"in g&&t(26,Qi=g.seekToInteractive),"toggleGraph"in g&&t(27,ln=g.toggleGraph),"playPrevChapter"in g&&t(28,si=g.playPrevChapter),"firstStart"in g&&t(29,ai=g.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,Li=(te==="video"&&j||te==="ads"&&D==="inactive")&&!W);if(i.$$.dirty[0]&1073741824)e:rn.set(Bi);if(i.$$.dirty[4]&134217728)e:t(132,Di=x!==lp.PlaybackState.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,an=v&&!s&&!($i||Gi)&&!(Di&&!$));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:fi.set((Di||s||S||X||Y)&&!an&&(te==="video"||te==="ads")&&!W);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,Ni=Ve.features.thumbTimer&&Et&&te==="video"&&!E&&!W&&!Ut&&(Ve.hideThumbTimerAfterTouch&&!I||!Ve.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,en=te==="video"&&!re&&b);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,Wt=(je&&K||!je)&&f&&!W);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,tn=G&&!(E||Wt)&&!v);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!S&&li&&!v&&Dt(Ve.controls.hideTimeoutCursor),t(134,li=S);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,se=le&&A%180?h.height/h.width:1);if(i.$$.dirty[4]&262144)e:t(47,ft=C!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384)e:Lo(zn,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let g=l;g&&$o(g,n,to)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:Lo(zn,n,r);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let g=o;g&&Uf(g,n,io)}},[le,Ve,ze,tt,Ce,fe,Ee,je,rt,dt,st,de,ct,It,_t,yt,Lt,Ue,Qt,ve,bt,Tt,at,yi,ki,wi,Qi,ln,si,ai,Bi,Wt,zn,n,h,A,E,W,te,X,$t,hi,Li,Ni,en,tn,se,ft,Fi,p,P,V,Q,De,We,qe,Ze,Me,ye,J,ke,Fe,Ye,Je,Yt,ui,Yi,Si,Pi,ci,Ii,fi,Ti,Ei,Mt,zt,Zt,di,Ft,mi,Xt,ii,Bt,Rt,Jt,pi,cn,Zi,xt,ni,Ai,zi,Ut,wt,Mi,oi,Ji,_i,xi,qi,Kt,Qe,Ht,He,Ri,Gt,pn,fn,ie,vt,An,Fn,Jn,xn,$n,eo,po,ee,_n,_o,ho,to,No,io,Oo,he,oe,Xe,kt,Et,$i,Gi,Di,an,li,o,r,l,a,s,f,b,C,S,v,G,K,re,I,Y,$,x,D,j,Fo,pl,Gn,go,bo,Ho,vo,pt]}var sc=class extends z{constructor(e){super(),q(this,e,F5,O5,H,{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},D5,[-1,-1,-1,-1,-1,-1,-1])}},ap=sc;var Tp=require("@vkontakte/videoplayer-core"),Do=require("@vkontakte/videoplayer-shared");var al=require("@vkontakte/videoplayer-shared"),up=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 H5(i){we(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 cp(i){let e,t,n,o,r,l,a,s,u,f,p,h,y,b,P,C=U("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",A;return{c(){e=T("div"),n=N(),o=T("div"),r=T("div"),l=T("div"),s=N(),u=T("div"),p=N(),h=T("div"),b=N(),P=T("p"),A=Be(C),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",y="triangle "+i[0]+" svelte-nhq2ld"),c(r,"class","triangles-wrapper svelte-nhq2ld"),c(P,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(S,v){w(S,e,v),w(S,n,v),w(S,o,v),m(o,r),m(r,l),m(r,s),m(r,u),m(r,p),m(r,h),m(o,b),m(o,P),m(P,A)},p(S,v){v&1&&t!==(t="semicircle "+S[0]+" svelte-nhq2ld")&&c(e,"class",t),v&1&&a!==(a="triangle "+S[0]+" svelte-nhq2ld")&&c(l,"class",a),v&1&&f!==(f="triangle "+S[0]+" svelte-nhq2ld")&&c(u,"class",f),v&1&&y!==(y="triangle "+S[0]+" svelte-nhq2ld")&&c(h,"class",y),v&2&&C!==(C=U("doubletap_seek_step",{seconds:S[1].toFixed(0)})+"")&&Ge(A,C)},d(S){S&&(k(e),k(n),k(o))}}}function z5(i){let e,t,n,o,r=i[2]&&cp(i);return{c(){e=T("div"),r&&r.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){w(l,e,a),r&&r.m(e,null),n||(o=pe(e,"click",lt(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=cp(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&&k(e),r&&r.d(),n=!1,o()}}}function q5(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 ac=class extends z{constructor(e){super(),q(this,e,q5,z5,H,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},H5)}},uc=ac;function U5(i,e,t){let{playNextVideo:n}=e;return St(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var cc=class extends z{constructor(e){super(),q(this,e,U5,null,H,{playNextVideo:0})}},fp=cc;var{window:K5}=yo;function W5(i){we(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 dp(i){let e,t,n,o;e=new uc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[130]}});let r=!i[48]&&mp(i);return{c(){R(e.$$.fragment),t=N(),r&&r.c(),n=nt()},m(l,a){L(e,l,a),w(l,t,a),r&&r.m(l,a),w(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=mp(l),r.c(),d(r,1),r.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(r),o=!0)},o(l){_(e.$$.fragment,l),_(r),o=!1},d(l){l&&(k(t),k(n)),B(e,l),r&&r.d(l)}}}function mp(i){let e,t;return e=new uc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function pp(i){let e,t;return e=new is({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function _p(i){let e,t;return e=new ns({}),{c(){R(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){B(e,n)}}}function hp(i){let e,t,n;return t=new rr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","ads-container svelte-1jy89ut"),O(e,"hidden",i[34]!=="ads")},m(o,r){w(o,e,r),L(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)&&O(e,"hidden",o[34]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function gp(i){let e,t;return e=new fp({props:{playNextVideo:i[22]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function bp(i){let e,t;return e=new Jr({}),{c(){R(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){B(e,n)}}}function vp(i){let e,t,n;return t=new Jl({props:{"aria-label":U("video360")}}),{c(){e=T("div"),R(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){w(o,e,r),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&&k(e),B(t)}}}function yp(i){let e,t;return e=new $r({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function kp(i){let e,t;return e=new xr({props:{shifted:i[30],captions:i[53],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function wp(i){let e,t,n,o,r;return t=new es({}),{c(){e=T("div"),R(t.$$.fragment)},m(l,a){w(l,e,a),L(t,e,null),n=!0,o||(r=pe(e,"click",lt(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&&k(e),B(t),o=!1,r()}}}function Cp(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 Xr({props:r}),_e.push(()=>Oe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Sp(i){let e,t;return e=new _r({}),{c(){R(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){B(e,n)}}}function Pp(i){let e,t;return e=new dr({}),{c(){R(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){B(e,n)}}}function Ip(i){let e,t,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v;e=new ts({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let E=n&&dp(i),G=i[34]==="waitingLive"&&pp(i),W=i[34]==="waitingRecord"&&_p(i),K=i[6]&&i[21]&&hp(i),re=i[41]&&i[17]&&i[18]&&gp(i),te=i[49]&&bp(i),I=i[50]&&vp(i),Y=i[35]&&yp(i),X=i[52].value!=="off"&&kp(i),$=i[33]&&wp(i),x=i[21]&&Cp(i);P=new ar({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let D=i[38]&&Sp(i),j=i[57]&&Pp(i);return{c(){R(e.$$.fragment),t=N(),E&&E.c(),o=N(),G&&G.c(),r=N(),W&&W.c(),l=N(),K&&K.c(),a=N(),re&&re.c(),s=N(),te&&te.c(),u=N(),I&&I.c(),f=N(),Y&&Y.c(),p=N(),X&&X.c(),h=N(),$&&$.c(),y=N(),x&&x.c(),b=N(),R(P.$$.fragment),C=N(),D&&D.c(),A=N(),j&&j.c(),S=nt()},m(V,Q){L(e,V,Q),w(V,t,Q),E&&E.m(V,Q),w(V,o,Q),G&&G.m(V,Q),w(V,r,Q),W&&W.m(V,Q),w(V,l,Q),K&&K.m(V,Q),w(V,a,Q),re&&re.m(V,Q),w(V,s,Q),te&&te.m(V,Q),w(V,u,Q),I&&I.m(V,Q),w(V,f,Q),Y&&Y.m(V,Q),w(V,p,Q),X&&X.m(V,Q),w(V,h,Q),$&&$.m(V,Q),w(V,y,Q),x&&x.m(V,Q),w(V,b,Q),L(P,V,Q),w(V,C,Q),D&&D.m(V,Q),w(V,A,Q),j&&j.m(V,Q),w(V,S,Q),v=!0},p(V,Q){let De={};Q[0]&16|Q[1]&12&&(De.hidden=V[34]!=="thumb"||V[33]||V[89]&&V[4]),Q[0]&4&&(De.thumbUrl=V[2]),Q[0]&268435456&&(De.startVideo=V[28]),e.$set(De),Q[0]&32|Q[1]&65536&&(n=V[5]&&V[78]&&!V[47].has("TIMELINE")),n?E?(E.p(V,Q),Q[0]&32|Q[1]&65536&&d(E,1)):(E=dp(V),E.c(),d(E,1),E.m(o.parentNode,o)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),V[34]==="waitingLive"?G?(G.p(V,Q),Q[1]&8&&d(G,1)):(G=pp(V),G.c(),d(G,1),G.m(r.parentNode,r)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),V[34]==="waitingRecord"?W?Q[1]&8&&d(W,1):(W=_p(V),W.c(),d(W,1),W.m(l.parentNode,l)):W&&(ue(),_(W,1,1,()=>{W=null}),ce()),V[6]&&V[21]?K?(K.p(V,Q),Q[0]&2097216&&d(K,1)):(K=hp(V),K.c(),d(K,1),K.m(a.parentNode,a)):K&&(ue(),_(K,1,1,()=>{K=null}),ce()),V[41]&&V[17]&&V[18]?re?(re.p(V,Q),Q[0]&393216|Q[1]&1024&&d(re,1)):(re=gp(V),re.c(),d(re,1),re.m(s.parentNode,s)):re&&(ue(),_(re,1,1,()=>{re=null}),ce()),V[49]?te?Q[1]&262144&&d(te,1):(te=bp(V),te.c(),d(te,1),te.m(u.parentNode,u)):te&&(ue(),_(te,1,1,()=>{te=null}),ce()),V[50]?I?(I.p(V,Q),Q[1]&524288&&d(I,1)):(I=vp(V),I.c(),d(I,1),I.m(f.parentNode,f)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),V[35]?Y?(Y.p(V,Q),Q[1]&16&&d(Y,1)):(Y=yp(V),Y.c(),d(Y,1),Y.m(p.parentNode,p)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),ce()),V[52].value!=="off"?X?(X.p(V,Q),Q[1]&2097152&&d(X,1)):(X=kp(V),X.c(),d(X,1),X.m(h.parentNode,h)):X&&(ue(),_(X,1,1,()=>{X=null}),ce()),V[33]?$?($.p(V,Q),Q[1]&4&&d($,1)):($=wp(V),$.c(),d($,1),$.m(y.parentNode,y)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),V[21]?x?(x.p(V,Q),Q[0]&2097152&&d(x,1)):(x=Cp(V),x.c(),d(x,1),x.m(b.parentNode,b)):x&&(ue(),_(x,1,1,()=>{x=null}),ce());let We={};Q[1]&16777216&&(We.isLive=V[55]),Q[1]&512&&(We.isHidden=!V[40]),Q[1]&33554432&&(We.isPlaying=V[56]),Q[1]&8192&&(We.position=V[44]),Q[1]&4096&&(We.duration=V[43]),P.$set(We),V[38]?D?Q[1]&128&&d(D,1):(D=Sp(V),D.c(),d(D,1),D.m(A.parentNode,A)):D&&(ue(),_(D,1,1,()=>{D=null}),ce()),V[57]?j?Q[1]&67108864&&d(j,1):(j=Pp(V),j.c(),d(j,1),j.m(S.parentNode,S)):j&&(ue(),_(j,1,1,()=>{j=null}),ce())},i(V){v||(d(e.$$.fragment,V),d(E),d(G),d(W),d(K),d(re),d(te),d(I),d(Y),d(X),d($),d(x),d(P.$$.fragment,V),d(D),d(j),v=!0)},o(V){_(e.$$.fragment,V),_(E),_(G),_(W),_(K),_(re),_(te),_(I),_(Y),_(X),_($),_(x),_(P.$$.fragment,V),_(D),_(j),v=!1},d(V){V&&(k(t),k(o),k(r),k(l),k(a),k(s),k(u),k(f),k(p),k(h),k(y),k(b),k(C),k(A),k(S)),B(e,V),E&&E.d(V),G&&G.d(V),W&&W.d(V),K&&K.d(V),re&&re.d(V),te&&te.d(V),I&&I.d(V),Y&&Y.d(V),X&&X.d(V),$&&$.d(V),x&&x.d(V),B(P,V),D&&D.d(V),j&&j.d(V)}}}function G5(i){let e,t,n,o,r,l=i[46],a,s,u,f,p,h,y=Ip(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=N(),y.c(),a=N(),s=T("div"),c(n,"class","video-container svelte-1jy89ut"),c(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),O(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-1jy89ut"),O(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=U("aria_label_video_player")),c(e,"tabindex","-1")},m(b,P){w(b,e,P),m(e,t),m(t,n),i[129](n),m(e,r),y.m(e,null),m(e,a),m(e,s),i[133](s),i[134](e),f=!0,p||(h=[pe(K5,"blur",i[99]),pe(t,"click",Ct(i[100])),pe(e,"click",i[102],!0),pe(e,"focusin",i[103],!0)],p=!0)},p(b,P){(!f||P[1]&2050&&o!==(o=`transform: rotate(${b[32]}deg) scale(${b[42]})`))&&c(n,"style",o),(!f||P[0]&2)&&O(n,"fast-rotate",!b[1].isSmoothVideoRotate),(!f||P[1]&8)&&O(t,"hidden",b[34]!=="video"),P[1]&32768&&H(l,l=b[46])?(ue(),_(y,1,1,me),ce(),y=Ip(b),y.c(),d(y,1),y.m(e,a)):y.p(b,P)},i(b){f||(d(y),f=!0)},o(b){_(y),f=!1},d(b){b&&k(e),i[129](null),y.d(b),i[133](null),i[134](null),p=!1,et(h)}}}function j5(i,e,t){let n,o,r,l,a,s,u,f,p,h,y,b,P,C,A,S,v,E,G,W,K,re,te,I,Y,X,$,x,D,j,V,Q,De,We,qe,Ze,Me,{store:ye}=e,{uiConfig:J}=e,{thumbUrl:ke}=e,{videoContainer:Fe}=e,{interactiveContainer:Ye}=e,{live:Je}=e,{autoplay:he}=e,{canRewindLive:Ve}=e,{showAds:ze}=e,{adsSlotId:tt=void 0}=e,{adsParams:le=void 0}=e,{adsPreviewParam:oe=void 0}=e,{duration:Ce=void 0}=e,{logoClickable:fe}=e,{logoHidden:Ee}=e,{logoTargetUrl:je=""}=e,{showNextPrevButtons:rt=!1}=e,{nextButtonActive:dt=!1}=e,{prevButtonActive:st=!1}=e,{endScreenVideoTitle:de=void 0}=e,{endScreenVideoThumb:ct=void 0}=e,{isOneVideoPlaylist:It=!1}=e,{supportLink:_t}=e,{outerContainerRef:yt=void 0}=e,{showMiniTimer:Lt=!1}=e,{fullScreenTarget:Ue=void 0}=e,{playerStarted:Qt=!1}=e,{playNextVideo:ve=Do.noop}=e,{playPrevVideo:bt=Do.noop}=e,{repeatPlaylist:Tt=Do.noop}=e,{seekToInteractive:Xe}=e,{toggleGraph:at}=e,{playPrevChapter:kt}=e,{firstStart:Et}=e,{seekTime:yi}=e,ki=ye.getLogger().createComponentLog("Root component"),wi=ye.interfaceLanguage$;F(i,wi,ie=>t(46,X=ie));let Qi=ye.state.playbackState$;F(i,Qi,ie=>t(126,te=ie));let ln=ye.ads.playbackState;F(i,ln,ie=>t(127,I=ie));let si=ye.state.positionWithScrubbing$;F(i,si,ie=>t(44,a=ie));let ai=ye.state.duration$;F(i,ai,ie=>t(43,l=ie));let Ci=ye.playerPhase;F(i,Ci,ie=>t(34,G=ie));let Yt=ye.ui.isFullscreen;F(i,Yt,ie=>t(141,u=ie));let ui=ye.ui.controlsVisible;F(i,ui,ie=>t(30,o=ie));let Yi=ye.ui.interactiveHideMobileControls;F(i,Yi,ie=>t(118,y=ie));let Si=ye.ui.settingsMenuVisible;F(i,Si,ie=>t(117,n=ie));let Pi=ye.ui.scrubbingInProgress;F(i,Pi,ie=>t(119,P=ie));let ci=ye.ui.debugPanelVisible;F(i,ci,ie=>t(57,Me=ie));let Ii=ye.state.isLoaderVisible;F(i,Ii,ie=>t(128,Y=ie));let fi=ye.state.isEnded$;F(i,fi,ie=>t(121,S=ie));let Ti=ye.state.chromecastConnected$;F(i,Ti,ie=>t(35,W=ie));let Ei=ye.state.chromecastDeviceName$;F(i,Ei,ie=>t(51,V=ie));let Mt=ye.ads.postrollPassed;F(i,Mt,ie=>t(122,v=ie));let zt=ye.ui.mobileUnmuteButtonExpanded,Zt=ye.ui.mobileUnmuteButtonVisible,di=ye.state.isLive$;F(i,di,ie=>t(55,qe=ie));let Ft=ye.state.isPlaying$;F(i,Ft,ie=>t(56,Ze=ie));let mi=ye.state.isActiveLive$;F(i,mi,ie=>t(48,x=ie));let Xt=ye.state.isRewindableLive$,ii=ye.state.crashed$;F(i,ii,ie=>t(33,A=ie));let Bt=ye.webApi.pictureInPictureApi,Rt=ye.state.videoSize$;F(i,Rt,ie=>t(142,p=ie));let qt=ye.state.currentSubtitle$;F(i,qt,ie=>t(52,Q=ie));let Jt=ye.state.currentSubtitleCaptions$;F(i,Jt,ie=>t(53,De=ie));let pi=ye.state.duration$;F(i,pi,ie=>t(54,We=ie));let cn=ye.state.graphIsOpened$;F(i,cn,ie=>t(125,re=ie));let Zi=ye.ui.playerSize;F(i,Zi,ie=>t(31,f=ie));let xt=ye.ui.is3DVideo;F(i,xt,ie=>t(49,D=ie));let ni=ye.ui.icon3DVideoVisible;F(i,ni,ie=>t(50,j=ie));let Ai=ye.ui.rotateAlpha;F(i,Ai,ie=>t(32,b=ie));let zi=ye.state.isInteractive,Ut=ye.state.isInteractiveTime$;F(i,Ut,ie=>t(120,C=ie));let wt=ye.state.isInteractiveExpectation$;F(i,wt,ie=>t(124,K=ie));let Mi=ye.state.hasInteractiveBranches,Xi=ye.ui.controls.disabledControls$;F(i,Xi,ie=>t(47,$=ie));let oi=ye.ui.touched;F(i,oi,ie=>t(123,E=ie));let Ji=ye.ui.clientInfo$;F(i,Ji,ie=>t(140,s=ie));let _i=ye.ui.overlayContainer$,rn=ye.state.isFirstBytes$;F(i,rn,ie=>t(139,r=ie));let xi=ye.actions.internal.closeSettingsMenu,sn=ye.callbacks?.onDisabledPlayPrevChapterClick,qi=ye.callbacks?.onDisabledSeekToInteractiveClick,Vi,Kt,$t,hi,Ui,Ki,gi,Li=Re(!1);F(i,Li,ie=>t(45,h=ie));let Bi,Qe=!1,Wi,Ht=!1,He,Ri=!0,$i,Gi,Di=!1,an;Bt?.setContext(gl());let Ni=ie=>{clearTimeout(hi),ie&&(Zt.set(!0),zt.set(!0),hi=window.setTimeout(()=>{zt.set(!1)},J.controls.collapseMobileUnmute),zi||Wt(J.controls.hideTimeoutMobile))};ye.setUiCallbacks({onStarted:Ni});let en=()=>{window.clearTimeout($t),t(112,Qe=!1),y&&Yi.set(!1)},Wt=ie=>{en(),t(112,Qe=!0),$t=window.setTimeout(()=>t(112,Qe=!1),ie);let vt=ie-100;Bi=window.setTimeout(()=>{h&&Li.set(!1)},vt>0?vt:ie)},tn=xt.subscribe(ie=>{ni.set(ie),ie&&(window.clearTimeout(Ui),Ui=window.setTimeout(()=>ni.set(!1),J.controls.hide360IconTimeout))}),li=async()=>{let ie=lo();if(ie){Wt(J.controls.hideTimeoutFullscreen);try{await Bt?.remove()}catch(vt){ki({message:String(vt)})}try{let vt=p?.width&&p?.height?p:f;await Pf(vt)}catch(vt){ki({message:String(vt)})}}Yt.set(ie),ye.getAdmanWrapper().setFullscreen(ie),u?ye.callbacks?.onFullscreenEnter?.():ye.callbacks?.onFullscreenExit?.()},se=ie=>{let vt=ie;Zi.set({width:vt.target.width,height:vt.target.height})};St(()=>(or(li),Ao(Bt)&&(Bt?.assignPlayerContainer(Vi),Bt?.registryExternalEventHandlers({resize:se})),t(39,Ri=!up(s)),Ye&&Fe.parentElement?.insertBefore(Ye,Fe.nextSibling),()=>{window.clearTimeout($t),window.clearTimeout(Bi),window.clearTimeout(hi),window.clearTimeout(Ui),tn(),Bt?.dispose(),lr(li)}));let ft=ie=>{let vt=a+(ie==="forward"?1:-1)*J.controls.seekStepMobile/1e3;vt<0?vt=0:vt>l&&(vt=l-1),t(114,Ht=!0),yi(vt)},Gt=async()=>{if(lo())await nr(document),ki({message:"exit fullscreen"});else{if(ki({message:"request fullscreen"}),(0,Do.isIOS)()&&!r)return;let ie=(0,Do.isIOS)()||!yt?Vi:yt,vt=ie.getRootNode(),An=vt instanceof ShadowRoot?vt.host:vt,Fn=Ue instanceof HTMLElement&&Ue.contains(An),Hn=J.allowChangingFullscreenTarget&&Ue&&Fn?Ue:ie;await ir(Hn)}},ei=()=>{xi()},Oi=()=>{if(n){ei();return}if(!Qt){Et(),Wt(J.controls.hideTimeoutCursor);return}t(114,Ht=!1),o?en():Wt(J.controls.hideTimeoutMobile)},Fi=()=>{if(n){ei();return}},yn=()=>{oi.set(!0)},kn=()=>{zi||(Li.set(!0),Wt(J.controls.hideTimeoutCursor))},mn=ie=>{sn&&(sn(ie),Wt(J.controls.hideTimeoutMobile))},Dt=ie=>{qi&&(qi(ie),Wt(J.controls.hideTimeoutMobile))};function Nn(ie){_e[ie?"unshift":"push"](()=>{Fe=ie,t(0,Fe)})}let On=()=>ft("backward"),wn=()=>ft("forward");function En(ie){Kt=ie,t(37,Kt)}function pn(ie){_e[ie?"unshift":"push"](()=>{gi=ie,t(29,gi)})}function fn(ie){_e[ie?"unshift":"push"](()=>{Vi=ie,t(36,Vi)})}return i.$$set=ie=>{"store"in ie&&t(106,ye=ie.store),"uiConfig"in ie&&t(1,J=ie.uiConfig),"thumbUrl"in ie&&t(2,ke=ie.thumbUrl),"videoContainer"in ie&&t(0,Fe=ie.videoContainer),"interactiveContainer"in ie&&t(107,Ye=ie.interactiveContainer),"live"in ie&&t(3,Je=ie.live),"autoplay"in ie&&t(4,he=ie.autoplay),"canRewindLive"in ie&&t(5,Ve=ie.canRewindLive),"showAds"in ie&&t(6,ze=ie.showAds),"adsSlotId"in ie&&t(7,tt=ie.adsSlotId),"adsParams"in ie&&t(8,le=ie.adsParams),"adsPreviewParam"in ie&&t(9,oe=ie.adsPreviewParam),"duration"in ie&&t(10,Ce=ie.duration),"logoClickable"in ie&&t(11,fe=ie.logoClickable),"logoHidden"in ie&&t(12,Ee=ie.logoHidden),"logoTargetUrl"in ie&&t(13,je=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,rt=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,dt=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,st=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,de=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,ct=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,It=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,_t=ie.supportLink),"outerContainerRef"in ie&&t(108,yt=ie.outerContainerRef),"showMiniTimer"in ie&&t(109,Lt=ie.showMiniTimer),"fullScreenTarget"in ie&&t(110,Ue=ie.fullScreenTarget),"playerStarted"in ie&&t(21,Qt=ie.playerStarted),"playNextVideo"in ie&&t(22,ve=ie.playNextVideo),"playPrevVideo"in ie&&t(23,bt=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,Tt=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,Xe=ie.seekToInteractive),"toggleGraph"in ie&&t(26,at=ie.toggleGraph),"playPrevChapter"in ie&&t(27,kt=ie.playPrevChapter),"firstStart"in ie&&t(28,Et=ie.firstStart),"seekTime"in ie&&t(111,yi=ie.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,Ki=(G==="video"&&Y||G==="ads"&&I==="inactive")&&!A);if(i.$$.dirty[0]&536870912)e:_i.set(gi);if(i.$$.dirty[4]&4)e:t(113,Wi=te!==Tp.PlaybackState.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,He=re||y||!Qe&&(S&&!!Mi||Wi&&K));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:ui.set((Wi||n||P||W||Qe&&!Ht)&&!He&&G==="video"&&!A);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,$i=J.features.thumbTimer&&Lt&&G==="video"&&!o&&!A&&!zi&&(J.hideThumbTimerAfterTouch&&!E||!J.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,Gi=(ze&&v||!ze)&&S&&!A);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!P&&Di&&!C&&Wt(J.controls.hideTimeoutMobile),t(116,Di=P);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,an=Fe&&b%180?f.height/f.width:1)},[Fe,J,ke,Je,he,Ve,ze,tt,le,oe,Ce,fe,Ee,je,rt,dt,st,de,ct,It,_t,Qt,ve,bt,Tt,Xe,at,kt,Et,gi,o,f,b,A,G,W,Vi,Kt,Ki,Ri,$i,Gi,an,l,a,h,X,$,x,D,j,V,Q,De,We,qe,Ze,Me,wi,Qi,ln,si,ai,Ci,Yt,ui,Yi,Si,Pi,ci,Ii,fi,Ti,Ei,Mt,di,Ft,mi,Xt,ii,Rt,qt,Jt,pi,cn,Zi,xt,ni,Ai,zi,Ut,wt,Xi,oi,Ji,rn,Li,ft,Gt,ei,Oi,Fi,yn,kn,mn,Dt,ye,Ye,yt,Lt,Ue,yi,Qe,Wi,Ht,He,Di,n,y,P,C,S,v,E,K,re,te,I,Y,Nn,On,wn,En,pn,fn]}var fc=class extends z{constructor(e){super(),q(this,e,j5,G5,H,{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},W5,[-1,-1,-1,-1,-1,-1])}},Ep=fc;function Q5(i){we(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 P5(i){let e,t;return{c(){e=P("div"),t=Be(i[0]),c(e,"class","title svelte-1bcvcf2"),H(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&&H(e,"hidden",n[1])},i:_e,o:_e,d(n){n&&y(e)}}}function I5(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 ic=class extends q{constructor(e){super(),U(this,e,I5,P5,z,{title:0,isHidden:1},S5)}},z0=ic;function T5(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 q0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Be(i[0]),o=O(),l=P("span"),l.textContent=`${j("waiting_live_day_value")}`,r=O(),a=P("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&&(y(e),y(r),y(a))}}}function U0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Be(i[1]),o=O(),l=P("span"),l.textContent=`${j("waiting_live_hour_value")}`,r=O(),a=P("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&&(y(e),y(r),y(a))}}}function K0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Be(i[2]),o=O(),l=P("span"),l.textContent=`${j("waiting_live_minute_value")}`,r=O(),a=P("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&&(y(e),y(r),y(a))}}}function j0(i){let e,t,n,o,l;return{c(){e=P("div"),t=P("span"),n=Be(i[3]),o=O(),l=P("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&&y(e)}}}function E5(i){let e,t,n,o,l=i[0]&&q0(i),r=i[1]&&U0(i),a=i[2]&&K0(i),s=i[3]&&j0(i);return{c(){e=P("div"),l&&l.c(),t=O(),r&&r.c(),n=O(),a&&a.c(),o=O(),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=q0(u),l.c(),l.m(e,t)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=U0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=K0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=j0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:_e,o:_e,d(u){u&&y(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function A5(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 w=Math.floor(b/60)%60;t(2,a=f(w));let T=b%60;t(3,s=f(T))},h=()=>{let b=Math.floor(Date.now()/1e3),g=n-b;p(g),g>=1?u=requestAnimationFrame(h):o()};return St(()=>{u=requestAnimationFrame(h)}),Ln(()=>{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 nc=class extends q{constructor(e){super(),U(this,e,A5,E5,z,{startTime:4,onTimerOver:5},T5)}},W0=nc;function M5(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"),di(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"),di(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"),di(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"),di(l,"opacity",".986"),be(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),be(e,f=Ve(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&&y(e),s&&s.d(p)}}}function V5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var oc=class extends q{constructor(e){super(),U(this,e,V5,M5,z,{})}},G0=oc;function L5(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 R5(i){let e,t,n,o,l;return o=new W0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=P("div"),t=P("span"),t.textContent=`${j("waiting_live_timer_title")}`,n=O(),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&&y(e),R(o)}}}function B5(i){let e,t,n,o,l,r;return n=new G0({}),{c(){e=P("div"),t=P("div"),B(n.$$.fragment),o=O(),l=P("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:_e,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){_(n.$$.fragment,a),r=!1},d(a){a&&y(e),R(n)}}}function D5(i){let e,t,n,o,l,r=[B5,R5],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=r[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){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):(fe(),_(a[p],1,1,()=>{a[p]=null}),de(),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&&y(e),a[t].d()}}}function N5(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 lc=class extends q{constructor(e){super(),U(this,e,N5,D5,z,{thumbUrl:0,startTime:1},L5)}},ns=lc;function O5(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 F5(i){let e,t;return{c(){e=P("div"),t=P("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:_e,i:_e,o:_e,d(n){n&&y(e)}}}var rc=class extends q{constructor(e){super(),U(this,e,null,F5,z,{},O5)}},os=rc;var{window:H5}=bo;function z5(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 Y0(i){let e,t;return e=new ns({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 Z0(i){let e,t;return e=new os({}),{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 X0(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"),B(t.$$.fragment),c(e,"class","ads-container svelte-1o4wf3x"),H(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)&&H(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 J0(i){let e,t;return e=new h1({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 x0(i){let e,t;return e=new z0({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 $0(i){let e,t;return e=new xr({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 ep(i){let e,t,n;return t=new xl({props:{"aria-label":j("video360")}}),{c(){e=P("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:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&y(e),R(t)}}}function tp(i){let e,t;return e=new es({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 ip(i){let e,t;return e=new $r({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 np(i){let e,t,n,o,l;return t=new ts({}),{c(){e=P("div"),B(t.$$.fragment)},m(r,a){C(r,e,a),L(t,e,null),n=!0,o||(l=[pe(e,"contextmenu",Ct(i[108])),pe(e,"click",lt(i[119]))],o=!0)},p:_e,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&y(e),R(t),o=!1,it(l)}}}function op(i){let e,t,n;function o(r){i[156](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="waitingLive"||i[38]==="waitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[57]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:cp,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[155],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new Jr({props:l}),he.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[155]),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 lp(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 rp(i){let e,t;return e=new T1({}),{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 mr({}),{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,n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v,I,W,Q,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"&&Y0(i),V=i[38]==="waitingRecord"&&Z0(i),A=i[7]&&i[22]&&X0(i),$=i[31]&&i[18]&&i[19]&&J0(i),X=i[44]&&x0(i),x=i[49]&&$0(i),N=i[52]&&ep(i),te=i[39]&&tp(i),E=i[54].value!=="off"&&ip(i),Y=i[37]&&np(i),Re=i[22]&&op(i);g=new ur({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),w=new V0({props:{data:i[103]}});function je(J){i[158](J)}let Ue={supportLink:i[21],returnFocus:i[157],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ue.menuElementRef=i[32]),k=new xf({props:Ue}),he.push(()=>Fe(k,"menuElementRef",je));let Je=i[42]&&lp(i),Ne=i[62]&&rp(i),ve=i[63]&&sp(i);return{c(){B(e.$$.fragment),t=O(),se&&se.c(),n=O(),V&&V.c(),o=O(),A&&A.c(),l=O(),$&&$.c(),r=O(),X&&X.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(),Re&&Re.c(),b=O(),B(g.$$.fragment),S=O(),B(w.$$.fragment),T=O(),B(k.$$.fragment),I=O(),Je&&Je.c(),W=O(),Ne&&Ne.c(),Q=O(),ve&&ve.c(),G=ot()},m(J,we){L(e,J,we),C(J,t,we),se&&se.m(J,we),C(J,n,we),V&&V.m(J,we),C(J,o,we),A&&A.m(J,we),C(J,l,we),$&&$.m(J,we),C(J,r,we),X&&X.m(J,we),C(J,a,we),x&&x.m(J,we),C(J,s,we),N&&N.m(J,we),C(J,u,we),te&&te.m(J,we),C(J,f,we),E&&E.m(J,we),C(J,p,we),Y&&Y.m(J,we),C(J,h,we),Re&&Re.m(J,we),C(J,b,we),L(g,J,we),C(J,S,we),L(w,J,we),C(J,T,we),L(k,J,we),C(J,I,we),Je&&Je.m(J,we),C(J,W,we),Ne&&Ne.m(J,we),C(J,Q,we),ve&&ve.m(J,we),C(J,G,we),le=!0},p(J,we){let He={};we[0]&32|we[1]&192&&(He.hidden=J[38]!=="thumb"||J[37]||J[92]&&J[5]),we[0]&8&&(He.thumbUrl=J[3]),we[0]&536870912&&(He.startVideo=J[29]),e.$set(He),J[38]==="waitingLive"?se?(se.p(J,we),we[1]&128&&d(se,1)):(se=Y0(J),se.c(),d(se,1),se.m(n.parentNode,n)):se&&(fe(),_(se,1,1,()=>{se=null}),de()),J[38]==="waitingRecord"?V?we[1]&128&&d(V,1):(V=Z0(J),V.c(),d(V,1),V.m(o.parentNode,o)):V&&(fe(),_(V,1,1,()=>{V=null}),de()),J[7]&&J[22]?A?(A.p(J,we),we[0]&4194432&&d(A,1)):(A=X0(J),A.c(),d(A,1),A.m(l.parentNode,l)):A&&(fe(),_(A,1,1,()=>{A=null}),de()),J[31]&&J[18]&&J[19]?$?($.p(J,we),we[0]&786432|we[1]&1&&d($,1)):($=J0(J),$.c(),d($,1),$.m(r.parentNode,r)):$&&(fe(),_($,1,1,()=>{$=null}),de()),J[44]?X?(X.p(J,we),we[1]&8192&&d(X,1)):(X=x0(J),X.c(),d(X,1),X.m(a.parentNode,a)):X&&(fe(),_(X,1,1,()=>{X=null}),de()),J[49]?x?(x.p(J,we),we[1]&262144&&d(x,1)):(x=$0(J),x.c(),d(x,1),x.m(s.parentNode,s)):x&&(fe(),_(x,1,1,()=>{x=null}),de()),J[52]?N?(N.p(J,we),we[1]&2097152&&d(N,1)):(N=ep(J),N.c(),d(N,1),N.m(u.parentNode,u)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),J[39]?te?(te.p(J,we),we[1]&256&&d(te,1)):(te=tp(J),te.c(),d(te,1),te.m(f.parentNode,f)):te&&(fe(),_(te,1,1,()=>{te=null}),de()),J[54].value!=="off"?E?(E.p(J,we),we[1]&8388608&&d(E,1)):(E=ip(J),E.c(),d(E,1),E.m(p.parentNode,p)):E&&(fe(),_(E,1,1,()=>{E=null}),de()),J[37]?Y?(Y.p(J,we),we[1]&64&&d(Y,1)):(Y=np(J),Y.c(),d(Y,1),Y.m(h.parentNode,h)):Y&&(fe(),_(Y,1,1,()=>{Y=null}),de()),J[22]?Re?(Re.p(J,we),we[0]&4194304&&d(Re,1)):(Re=op(J),Re.c(),d(Re,1),Re.m(b.parentNode,b)):Re&&(fe(),_(Re,1,1,()=>{Re=null}),de());let Xe={};we[1]&134217728&&(Xe.isLive=J[58]),we[1]&4096&&(Xe.isHidden=!J[43]),we[1]&268435456&&(Xe.isPlaying=J[59]),we[1]&33554432&&(Xe.position=J[56]),we[1]&536870912&&(Xe.duration=J[60]),g.$set(Xe);let xe={};we[0]&2097152&&(xe.supportLink=J[21]),we[1]&131072&&(xe.returnFocus=J[157]),we[1]&4&&(xe.visible=J[33]),we[1]&512&&(xe.playerContainerRef=J[40]),we[1]&1024&&(xe.controlsContainerRef=J[41]),we[1]&1073741824&&(xe.position=J[61]),!v&&we[1]&2&&(v=!0,xe.menuElementRef=J[32],Oe(()=>v=!1)),k.$set(xe),J[42]?Je?we[1]&2048&&d(Je,1):(Je=lp(J),Je.c(),d(Je,1),Je.m(W.parentNode,W)):Je&&(fe(),_(Je,1,1,()=>{Je=null}),de()),J[62]?Ne?we[2]&1&&d(Ne,1):(Ne=rp(J),Ne.c(),d(Ne,1),Ne.m(Q.parentNode,Q)):Ne&&(fe(),_(Ne,1,1,()=>{Ne=null}),de()),J[63]?ve?we[2]&2&&d(ve,1):(ve=sp(J),ve.c(),d(ve,1),ve.m(G.parentNode,G)):ve&&(fe(),_(ve,1,1,()=>{ve=null}),de())},i(J){le||(d(e.$$.fragment,J),d(se),d(V),d(A),d($),d(X),d(x),d(N),d(te),d(E),d(Y),d(Re),d(g.$$.fragment,J),d(w.$$.fragment,J),d(k.$$.fragment,J),d(Je),d(Ne),d(ve),le=!0)},o(J){_(e.$$.fragment,J),_(se),_(V),_(A),_($),_(X),_(x),_(N),_(te),_(E),_(Y),_(Re),_(g.$$.fragment,J),_(w.$$.fragment,J),_(k.$$.fragment,J),_(Je),_(Ne),_(ve),le=!1},d(J){J&&(y(t),y(n),y(o),y(l),y(r),y(a),y(s),y(u),y(f),y(p),y(h),y(b),y(S),y(T),y(I),y(W),y(Q),y(G)),R(e,J),se&&se.d(J),V&&V.d(J),A&&A.d(J),$&&$.d(J),X&&X.d(J),x&&x.d(J),N&&N.d(J),te&&te.d(J),E&&E.d(J),Y&&Y.d(J),Re&&Re.d(J),R(g,J),R(w,J),R(k,J),Je&&Je.d(J),Ne&&Ne.d(J),ve&&ve.d(J)}}}function q5(i){let e,t,n,o,l=i[51],r,a,s,u,f=ap(i);return{c(){e=P("div"),t=P("div"),o=O(),f.c(),r=ot(),c(t,"class","video-container svelte-1o4wf3x"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),H(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-1o4wf3x"),H(e,"hidden",i[38]!=="video"),H(e,"nocursor",i[45])},m(p,h){C(p,e,h),m(e,t),i[154](t),C(p,o,h),f.m(p,h),C(p,r,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)&&H(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&H(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&H(e,"nocursor",p[45]),h[1]&1048576&&z(l,l=p[51])?(fe(),_(f,1,1,_e),de(),f=ap(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&&(y(e),y(o),y(r)),i[154](null),f.d(p),s=!1,it(u)}}}function U5(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:[q5]},$$scope:{ctx:i}};return t=new b1({props:s}),i[159](t),{c(){e=P("div"),B(t.$$.fragment),n=O(),o=P("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[160](o),i[161](e),l=!0,r||(a=[pe(H5,"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)],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]&1&&(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&&y(e),i[159](null),R(t),i[160](null),i[161](null),r=!1,it(a)}}}var cp=!0;function sc(i){return i?i.offsetTop+sc(i.offsetParent):0}function fp(i){return i?i.offsetLeft+fp(i.offsetParent):0}function K5(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v,I,W,Q,G,le,se,V,A,$,X,x,N,te,E,Y,Re,je,Ue,Je,Ne,ve,J,we,He,Xe,xe,{store:ke}=e,{uiConfig:Le}=e,{title:ze}=e,{thumbUrl:Ye}=e,{videoContainer:ue}=e,{interactiveContainer:oe}=e,{live:Se}=e,{autoplay:ce}=e,{canRewindLive:Ae}=e,{showAds:Ze}=e,{adsSlotId:st=void 0}=e,{adsParams:ct=void 0}=e,{adsPreviewParam:at=void 0}=e,{duration:ye=void 0}=e,{logoClickable:$e}=e,{logoHidden:pt}=e,{logoTargetUrl:ht=""}=e,{showNextPrevButtons:gt=!1}=e,{nextButtonActive:Mt=!1}=e,{prevButtonActive:Ke=!1}=e,{endScreenVideoTitle:Yt=void 0}=e,{endScreenVideoThumb:Nt=void 0}=e,{isOneVideoPlaylist:Lt=!1}=e,{supportLink:ii}=e,{outerContainerRef:ae=void 0}=e,{playerStarted:ft=!1}=e,{fullScreenTarget:_t=void 0}=e,{showMiniTimer:bt=!1}=e,{playNextVideo:wt=ls.noop}=e,{playPrevVideo:Ot=ls.noop}=e,{repeatPlaylist:Vt=ls.noop}=e,{seekToInteractive:Yi}=e,{toggleGraph:on}=e,{playPrevChapter:mi}=e,{firstStart:pi}=e,Ai=ke.getLogger().createComponentLog("Root component"),Zt=ke.interfaceLanguage$;F(i,Zt,K=>t(51,E=K));let _i=ke.state.playbackState$;F(i,_i,K=>t(151,x=K));let ln=ke.ads.playbackState;F(i,ln,K=>t(152,N=K));let hi=ke.state.positionWithScrubbing$;F(i,hi,K=>t(56,Je=K));let Fi=ke.state.duration$;F(i,Fi,K=>t(60,we=K));let ni=ke.playerPhase;F(i,ni,K=>t(38,se=K));let Mi=ke.ui.isFullscreen;F(i,Mi,K=>t(141,g=K));let gi=ke.ui.controlsVisible;F(i,gi,K=>t(36,I=K));let Hi=ke.ui.settingsMenuVisible;F(i,Hi,K=>t(139,s=K));let bi=ke.ui.scrubbingInProgress;F(i,bi,K=>t(143,k=K));let oi=ke.ui.contextMenu.visible$;F(i,oi,K=>t(33,n=K));let Tt=ke.ui.debugPanelVisible;F(i,Tt,K=>t(63,xe=K));let Ft=ke.state.isLoaderVisible;F(i,Ft,K=>t(153,te=K));let vi=ke.state.isEnded$;F(i,vi,K=>t(140,f=K));let yi=ke.state.chromecastConnected$;F(i,yi,K=>t(39,$=K));let Ht=ke.state.chromecastDeviceName$;F(i,Ht,K=>t(53,Re=K));let li=ke.ads.postrollPassed;F(i,li,K=>t(146,G=K));let ri=ke.state.isLive$;F(i,ri,K=>t(58,ve=K));let Rt=ke.state.isPlaying$;F(i,Rt,K=>t(59,J=K));let Et=ke.state.crashed$;F(i,Et,K=>t(37,Q=K));let jt=ke.webApi.pictureInPictureApi,Vi=ke.state.currentSubtitle$;F(i,Vi,K=>t(54,je=K));let Xt=ke.state.currentSubtitleCaptions$;F(i,Xt,K=>t(55,Ue=K));let rn=ke.state.duration$;F(i,rn,K=>t(57,Ne=K));let sn=ke.state.graphIsOpened$;F(i,sn,K=>t(147,le=K));let Wt=ke.ui.playerSize;F(i,Wt,K=>t(34,h=K));let wi=ke.ui.is3DVideo;F(i,wi,K=>t(49,p=K));let zi=ke.ui.icon3DVideoVisible;F(i,zi,K=>t(52,Y=K));let ki=ke.ui.rotateAlpha;F(i,ki,K=>t(35,T=K));let si=ke.state.isInteractive,zt=ke.state.isInteractiveTime$;F(i,zt,K=>t(144,v=K));let Gt=ke.state.isInteractiveExpectation$;F(i,Gt,K=>t(150,X=K));let Ci=ke.state.hasInteractiveBranches,Jt=ke.ui.touched;F(i,Jt,K=>t(148,V=K));let Zi=ke.ui.modals.hotKeyMap.data;F(i,Zi,K=>t(168,u=K));let Si=ke.ui.modals.hotKeyMap.show;F(i,Si,K=>t(62,Xe=K));let an=ke.ui.overlayContainer$,un=ke.ui.controls.interactiveTimeIndicator;F(i,un,K=>t(169,b=K));let Xi=ke.state.showInteractiveTimeIndicator,qi=ke.ui.contextMenu.position$;F(i,qi,K=>t(61,He=K));let Li=ke.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Qt}=Sn();F(i,Qt,K=>t(142,w=K));let ai,Pi,Ri,Ji,Ii;Zi.set(Af());let Bi,Di,Qe=De(!1);F(i,Qe,K=>t(50,S=K));let Ui,qt=De(!1);F(i,qt,K=>t(149,A=K));let qe=De(),xi=De(!1);F(i,xi,K=>t(145,W=K));let Ni=!1,Ki=!1,$i,ji,_n,xt,$t,Wi,ui=!1,re,dt=!1,{toggle:ci}=Qt,fi=!1,ei=null,Gi;jt?.setContext(bl());let Tn=()=>{ce&&!si&&Bt(Le.controls.hideTimeout)};ke.setUiCallbacks({onStarted:Tn});let yn=()=>{window.clearTimeout(Ri),qt.set(!1)},hn=()=>{window.clearTimeout(Ji),qe.set(null)},Bt=K=>{yn(),qt.set(!0),Ri=window.setTimeout(()=>qt.set(!1),K);let M=K-100;Ui=window.setTimeout(()=>{S&&Qe.set(!1)},M>0?M:K)},wn=(K,M)=>{hn(),qe.set(M),Ji=window.setTimeout(()=>qe.set(null),K)},Nn=wi.subscribe(K=>{zi.set(K),K&&(window.clearTimeout(Ii),Ii=window.setTimeout(()=>zi.set(!1),Le.controls.hide360IconTimeout))}),En=async()=>{let K=lo();if(K){Bt(Le.controls.hideTimeoutFullscreen);try{await jt?.remove()}catch(M){Ai({message:String(M)})}}Mi.set(K),ke.getAdmanWrapper().setFullscreen(K),g?ke.callbacks?.onFullscreenEnter?.():ke.callbacks?.onFullscreenExit?.()},An=K=>{let M=K;Wt.set({width:M.target.width,height:M.target.height})};St(()=>(lr(En),To(jt)&&(jt?.assignPlayerContainer(ai),jt?.registryExternalEventHandlers({resize:An})),oe&&ue.parentElement?.insertBefore(oe,ue.nextSibling),()=>{window.clearTimeout(Ri),window.clearTimeout(Ui),window.clearTimeout(Ji),window.clearTimeout(Ii),Nn(),jt?.dispose(),rr(En)}));let kn=async()=>{if(lo())await or(document),Ai({message:"exit fullscreen"});else{Ai({message:"request fullscreen"});let K=ae??ai,M=K.getRootNode(),me=M instanceof ShadowRoot?M.host:M,Me=_t instanceof HTMLElement&&_t.contains(me),We=Le.allowChangingFullscreenTarget&&_t&&Me?_t:K;await nr(We)}},en=()=>{Li(),oi.set(!1)},ie=K=>{oi.set(!0),qi.set({left:K.clientX,top:K.clientY})};function kt(){xi.set(!0),si||Bt(Le.controls.hideTimeoutCursor)}function Mn(){si||(Qe.set(!0),Bt(Le.controls.hideTimeoutCursor))}function On(){xi.set(!1),t(131,Ki=!1),t(130,Ni=!1),fi=!1,ke.actions.internal.releaseCamera()}function Fn(K){if(b&&Xi){let M=K.currentTarget,me=sc(M),Me=fp(M),We=K.pageX-Me,rt=K.pageY-me,{left:Ut,bottom:ti,right:Kt}=b,cn=Kt-Ut;return We>=Ut-cn&&rt<=ti+cn}}function Jn(K){if(ai){let M=sc(K.currentTarget),me=h.height,Me=K.pageY-M;if(Fn(K)){t(131,Ki=!1);return}Me<40?t(131,Ki=!0):Me>me-40?t(130,Ni=!0):(t(131,Ki=!1),s||t(130,Ni=!1))}}function xn(K){Jn(K),ji||Bt(Le.controls.hideTimeoutCursor),p&&fi&&ei&&ke.actions.internal.moveCameraFocusPX(ei.clientX-K.clientX,ei.clientY-K.clientY,K.timeStamp-ei.timeStamp),ei=K}let $n=K=>{K.button===0&&(fi=!0,ke.actions.internal.holdCamera()),Bt(Le.controls.hideTimeoutCursor)},eo=K=>{K.button===0&&(ei=K,fi=!1,ke.actions.internal.releaseCamera()),Bt(Le.controls.hideTimeoutCursor)},to=()=>{cp&&(Ai({message:"double click on video"}),kn(),Bt(Le.controls.hideTimeoutCursor))},po=()=>{if(n||s){en();return}if(!(f&&!Ci)){if(dt)return ci();if(Gi?.focus(),!ft){pi(),Bt(Le.controls.hideTimeoutCursor);return}ke.actions.internal.togglePlay(),Bt(Le.controls.hideTimeoutCursor)}},ee=K=>{en(),Jt.set(!0),Bt(Le.controls.hideTimeout),K&&wn(Le.controls.hideHotKeyHelpers,K)},mn=()=>{en(),ke.callbacks?.onOpenHotKeyMap?ke.callbacks?.onOpenHotKeyMap(u):Si.update(K=>!K)},Bo=()=>{if(n||s){en();return}},Do=()=>{Jt.set(!0)},jn=ke.ui.contextMenu.openedByBtnKeyboard$;F(i,jn,K=>t(138,a=K));let _o=ke.ui.contextMenu.btnRef$;F(i,_o,K=>t(137,r=K));let Wn,Gn=ke.ui.contextMenu.openedByHotKey$;F(i,Gn,K=>t(136,l=K));let No=ke.ui.contextMenu.lastActiveElem$;F(i,No,K=>t(135,o=K));function Oo(K){he[K?"unshift":"push"](()=>{ue=K,t(0,ue)})}let pl=()=>Gi?.focus();function Fo(K){Pi=K,t(41,Pi)}let Hn=()=>Gi?.focus();function Ho(K){Wn=K,t(32,Wn)}function ho(K){he[K?"unshift":"push"](()=>{Gi=K,t(48,Gi)})}function go(K){he[K?"unshift":"push"](()=>{Di=K,t(30,Di)})}function zo(K){he[K?"unshift":"push"](()=>{ai=K,t(40,ai)})}return i.$$set=K=>{"store"in K&&t(125,ke=K.store),"uiConfig"in K&&t(1,Le=K.uiConfig),"title"in K&&t(2,ze=K.title),"thumbUrl"in K&&t(3,Ye=K.thumbUrl),"videoContainer"in K&&t(0,ue=K.videoContainer),"interactiveContainer"in K&&t(126,oe=K.interactiveContainer),"live"in K&&t(4,Se=K.live),"autoplay"in K&&t(5,ce=K.autoplay),"canRewindLive"in K&&t(6,Ae=K.canRewindLive),"showAds"in K&&t(7,Ze=K.showAds),"adsSlotId"in K&&t(8,st=K.adsSlotId),"adsParams"in K&&t(9,ct=K.adsParams),"adsPreviewParam"in K&&t(10,at=K.adsPreviewParam),"duration"in K&&t(11,ye=K.duration),"logoClickable"in K&&t(12,$e=K.logoClickable),"logoHidden"in K&&t(13,pt=K.logoHidden),"logoTargetUrl"in K&&t(14,ht=K.logoTargetUrl),"showNextPrevButtons"in K&&t(15,gt=K.showNextPrevButtons),"nextButtonActive"in K&&t(16,Mt=K.nextButtonActive),"prevButtonActive"in K&&t(17,Ke=K.prevButtonActive),"endScreenVideoTitle"in K&&t(18,Yt=K.endScreenVideoTitle),"endScreenVideoThumb"in K&&t(19,Nt=K.endScreenVideoThumb),"isOneVideoPlaylist"in K&&t(20,Lt=K.isOneVideoPlaylist),"supportLink"in K&&t(21,ii=K.supportLink),"outerContainerRef"in K&&t(127,ae=K.outerContainerRef),"playerStarted"in K&&t(22,ft=K.playerStarted),"fullScreenTarget"in K&&t(128,_t=K.fullScreenTarget),"showMiniTimer"in K&&t(129,bt=K.showMiniTimer),"playNextVideo"in K&&t(23,wt=K.playNextVideo),"playPrevVideo"in K&&t(24,Ot=K.playPrevVideo),"repeatPlaylist"in K&&t(25,Vt=K.repeatPlaylist),"seekToInteractive"in K&&t(26,Yi=K.seekToInteractive),"toggleGraph"in K&&t(27,on=K.toggleGraph),"playPrevChapter"in K&&t(28,mi=K.playPrevChapter),"firstStart"in K&&t(29,pi=K.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,Bi=(se==="video"&&te||se==="ads"&&N==="inactive")&&!Q);if(i.$$.dirty[0]&1073741824)e:an.set(Di);if(i.$$.dirty[4]&134217728)e:t(132,$i=x!==up.PlaybackState.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,ji=v&&!s&&!(Ni||Ki)&&!($i&&!X));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:gi.set(($i||s||k||$||A)&&!ji&&(se==="video"||se==="ads")&&!Q);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,_n=Le.features.thumbTimer&&bt&&se==="video"&&!I&&!Q&&!si&&(Le.hideThumbTimerAfterTouch&&!V||!Le.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,xt=se==="video"&&!le&&g);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,$t=(Ze&&G||!Ze)&&f&&!Q);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,Wi=W&&!(I||$t)&&!v);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!k&&ui&&!v&&Bt(Le.controls.hideTimeoutCursor),t(134,ui=k);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,re=ue&&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(Wn,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let K=r;K&&$o(K,n,jn)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:Mo(Wn,n,l);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let K=o;K&&Wf(K,n,Gn)}},[ue,Le,ze,Ye,Se,ce,Ae,Ze,st,ct,at,ye,$e,pt,ht,gt,Mt,Ke,Yt,Nt,Lt,ii,ft,wt,Ot,Vt,Yi,on,mi,pi,Di,$t,Wn,n,h,T,I,Q,se,$,ai,Pi,Bi,_n,xt,Wi,re,dt,Gi,p,S,E,Y,Re,je,Ue,Je,Ne,ve,J,we,He,Xe,xe,Zt,_i,ln,hi,Fi,ni,Mi,gi,Hi,bi,oi,Tt,Ft,vi,yi,Ht,li,ri,Rt,Et,Vi,Xt,rn,sn,Wt,wi,zi,ki,si,zt,Gt,Jt,Zi,Si,un,qi,Qt,Qe,qt,qe,xi,ci,kn,en,ie,kt,Mn,On,xn,$n,eo,to,po,ee,mn,Bo,Do,jn,_o,Gn,No,ke,oe,ae,_t,bt,Ni,Ki,$i,ji,ui,o,l,r,a,s,f,g,w,k,v,W,G,le,V,A,X,x,N,te,Oo,pl,Fo,Hn,Ho,ho,go,zo]}var ac=class extends q{constructor(e){super(),U(this,e,K5,U5,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},z5,[-1,-1,-1,-1,-1,-1,-1])}},dp=ac;var Vp=require("@vkontakte/videoplayer-core"),Ro=require("@vkontakte/videoplayer-shared");var al=require("@vkontakte/videoplayer-shared"),mp=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 j5(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 pp(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,w=j("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",T;return{c(){e=P("div"),n=O(),o=P("div"),l=P("div"),r=P("div"),s=O(),u=P("div"),p=O(),h=P("div"),g=O(),S=P("p"),T=Be(w),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,T)},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&&w!==(w=j("doubletap_seek_step",{seconds:k[1].toFixed(0)})+"")&&Ge(T,w)},d(k){k&&(y(e),y(n),y(o))}}}function W5(i){let e,t,n,o,l=i[2]&&pp(i);return{c(){e=P("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=pe(e,"click",lt(i[3]())),n=!0)},p(r,[a]){r[2]?l?l.p(r,a):(l=pp(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:_e,o:_e,d(r){r&&y(e),l&&l.d(),n=!1,o()}}}function G5(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 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,l=p.handleSingleFirstClick),"handleSecondClick"in p&&t(5,r=p.handleSecondClick)},[n,o,a,f,l,r]}var uc=class extends q{constructor(e){super(),U(this,e,G5,W5,z,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},j5)}},cc=uc;function Q5(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,Q5,null,z,{playNextVideo:0})}},_p=fc;var{window:Y5}=bo;function Z5(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 hp(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 l=!i[48]&&gp(i);return{c(){B(e.$$.fragment),t=O(),l&&l.c(),n=ot()},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&&(fe(),_(l,1,1,()=>{l=null}),de()):l?(l.p(r,a),a[1]&131072&&d(l,1)):(l=gp(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&&(y(t),y(n)),R(e,r),l&&l.d(r)}}}function gp(i){let e,t;return e=new cc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}}),{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 bp(i){let e,t;return e=new ns({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 vp(i){let e,t;return e=new os({}),{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 yp(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"),B(t.$$.fragment),c(e,"class","ads-container svelte-1jy89ut"),H(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)&&H(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 wp(i){let e,t;return e=new _p({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 kp(i){let e,t;return e=new xr({}),{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 Cp(i){let e,t,n;return t=new xl({props:{"aria-label":j("video360")}}),{c(){e=P("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:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&y(e),R(t)}}}function Sp(i){let e,t;return e=new es({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 Pp(i){let e,t;return e=new $r({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 Ip(i){let e,t,n,o,l;return t=new ts({}),{c(){e=P("div"),B(t.$$.fragment)},m(r,a){C(r,e,a),L(t,e,null),n=!0,o||(l=pe(e,"click",lt(i[101])),o=!0)},p:_e,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&y(e),R(t),o=!1,l()}}}function Tp(i){let e,t,n;function o(r){i[132](r)}let l={bottomHidden:i[34]==="thumb"||i[34]==="waitingLive"||i[34]==="waitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[54]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[39],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[98],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[104],onDisabledSeekToInteractiveClick:i[105]};return i[37]!==void 0&&(l.controlsElementRef=i[37]),e=new Jr({props:l}),he.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 Ep(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 Ap(i){let e,t;return e=new mr({}),{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,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v;e=new is({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let I=n&&hp(i),W=i[34]==="waitingLive"&&bp(i),Q=i[34]==="waitingRecord"&&vp(i),G=i[6]&&i[21]&&yp(i),le=i[41]&&i[17]&&i[18]&&wp(i),se=i[49]&&kp(i),V=i[50]&&Cp(i),A=i[35]&&Sp(i),$=i[52].value!=="off"&&Pp(i),X=i[33]&&Ip(i),x=i[21]&&Tp(i);S=new ur({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let N=i[38]&&Ep(i),te=i[57]&&Ap(i);return{c(){B(e.$$.fragment),t=O(),I&&I.c(),o=O(),W&&W.c(),l=O(),Q&&Q.c(),r=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(),X&&X.c(),b=O(),x&&x.c(),g=O(),B(S.$$.fragment),w=O(),N&&N.c(),T=O(),te&&te.c(),k=ot()},m(E,Y){L(e,E,Y),C(E,t,Y),I&&I.m(E,Y),C(E,o,Y),W&&W.m(E,Y),C(E,l,Y),Q&&Q.m(E,Y),C(E,r,Y),G&&G.m(E,Y),C(E,a,Y),le&&le.m(E,Y),C(E,s,Y),se&&se.m(E,Y),C(E,u,Y),V&&V.m(E,Y),C(E,f,Y),A&&A.m(E,Y),C(E,p,Y),$&&$.m(E,Y),C(E,h,Y),X&&X.m(E,Y),C(E,b,Y),x&&x.m(E,Y),C(E,g,Y),L(S,E,Y),C(E,w,Y),N&&N.m(E,Y),C(E,T,Y),te&&te.m(E,Y),C(E,k,Y),v=!0},p(E,Y){let Re={};Y[0]&16|Y[1]&12&&(Re.hidden=E[34]!=="thumb"||E[33]||E[89]&&E[4]),Y[0]&4&&(Re.thumbUrl=E[2]),Y[0]&268435456&&(Re.startVideo=E[28]),e.$set(Re),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=hp(E),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(fe(),_(I,1,1,()=>{I=null}),de()),E[34]==="waitingLive"?W?(W.p(E,Y),Y[1]&8&&d(W,1)):(W=bp(E),W.c(),d(W,1),W.m(l.parentNode,l)):W&&(fe(),_(W,1,1,()=>{W=null}),de()),E[34]==="waitingRecord"?Q?Y[1]&8&&d(Q,1):(Q=vp(E),Q.c(),d(Q,1),Q.m(r.parentNode,r)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),de()),E[6]&&E[21]?G?(G.p(E,Y),Y[0]&2097216&&d(G,1)):(G=yp(E),G.c(),d(G,1),G.m(a.parentNode,a)):G&&(fe(),_(G,1,1,()=>{G=null}),de()),E[41]&&E[17]&&E[18]?le?(le.p(E,Y),Y[0]&393216|Y[1]&1024&&d(le,1)):(le=wp(E),le.c(),d(le,1),le.m(s.parentNode,s)):le&&(fe(),_(le,1,1,()=>{le=null}),de()),E[49]?se?Y[1]&262144&&d(se,1):(se=kp(E),se.c(),d(se,1),se.m(u.parentNode,u)):se&&(fe(),_(se,1,1,()=>{se=null}),de()),E[50]?V?(V.p(E,Y),Y[1]&524288&&d(V,1)):(V=Cp(E),V.c(),d(V,1),V.m(f.parentNode,f)):V&&(fe(),_(V,1,1,()=>{V=null}),de()),E[35]?A?(A.p(E,Y),Y[1]&16&&d(A,1)):(A=Sp(E),A.c(),d(A,1),A.m(p.parentNode,p)):A&&(fe(),_(A,1,1,()=>{A=null}),de()),E[52].value!=="off"?$?($.p(E,Y),Y[1]&2097152&&d($,1)):($=Pp(E),$.c(),d($,1),$.m(h.parentNode,h)):$&&(fe(),_($,1,1,()=>{$=null}),de()),E[33]?X?(X.p(E,Y),Y[1]&4&&d(X,1)):(X=Ip(E),X.c(),d(X,1),X.m(b.parentNode,b)):X&&(fe(),_(X,1,1,()=>{X=null}),de()),E[21]?x?(x.p(E,Y),Y[0]&2097152&&d(x,1)):(x=Tp(E),x.c(),d(x,1),x.m(g.parentNode,g)):x&&(fe(),_(x,1,1,()=>{x=null}),de());let je={};Y[1]&16777216&&(je.isLive=E[55]),Y[1]&512&&(je.isHidden=!E[40]),Y[1]&33554432&&(je.isPlaying=E[56]),Y[1]&8192&&(je.position=E[44]),Y[1]&4096&&(je.duration=E[43]),S.$set(je),E[38]?N?Y[1]&128&&d(N,1):(N=Ep(E),N.c(),d(N,1),N.m(T.parentNode,T)):N&&(fe(),_(N,1,1,()=>{N=null}),de()),E[57]?te?Y[1]&67108864&&d(te,1):(te=Ap(E),te.c(),d(te,1),te.m(k.parentNode,k)):te&&(fe(),_(te,1,1,()=>{te=null}),de())},i(E){v||(d(e.$$.fragment,E),d(I),d(W),d(Q),d(G),d(le),d(se),d(V),d(A),d($),d(X),d(x),d(S.$$.fragment,E),d(N),d(te),v=!0)},o(E){_(e.$$.fragment,E),_(I),_(W),_(Q),_(G),_(le),_(se),_(V),_(A),_($),_(X),_(x),_(S.$$.fragment,E),_(N),_(te),v=!1},d(E){E&&(y(t),y(o),y(l),y(r),y(a),y(s),y(u),y(f),y(p),y(h),y(b),y(g),y(w),y(T),y(k)),R(e,E),I&&I.d(E),W&&W.d(E),Q&&Q.d(E),G&&G.d(E),le&&le.d(E),se&&se.d(E),V&&V.d(E),A&&A.d(E),$&&$.d(E),X&&X.d(E),x&&x.d(E),R(S,E),N&&N.d(E),te&&te.d(E)}}}function X5(i){let e,t,n,o,l,r=i[46],a,s,u,f,p,h,b=Mp(i);return{c(){e=P("div"),t=P("div"),n=P("div"),l=O(),b.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]})`),H(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-1jy89ut"),H(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[129](n),m(e,l),b.m(e,null),m(e,a),m(e,s),i[133](s),i[134](e),f=!0,p||(h=[pe(Y5,"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)&&H(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||S[1]&8)&&H(t,"hidden",g[34]!=="video"),S[1]&32768&&z(r,r=g[46])?(fe(),_(b,1,1,_e),de(),b=Mp(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&&y(e),i[129](null),b.d(g),i[133](null),i[134](null),p=!1,it(h)}}}function J5(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,w,T,k,v,I,W,Q,G,le,se,V,A,$,X,x,N,te,E,Y,Re,je,Ue,Je,Ne,{store:ve}=e,{uiConfig:J}=e,{thumbUrl:we}=e,{videoContainer:He}=e,{interactiveContainer:Xe}=e,{live:xe}=e,{autoplay:ke}=e,{canRewindLive:Le}=e,{showAds:ze}=e,{adsSlotId:Ye=void 0}=e,{adsParams:ue=void 0}=e,{adsPreviewParam:oe=void 0}=e,{duration:Se=void 0}=e,{logoClickable:ce}=e,{logoHidden:Ae}=e,{logoTargetUrl:Ze=""}=e,{showNextPrevButtons:st=!1}=e,{nextButtonActive:ct=!1}=e,{prevButtonActive:at=!1}=e,{endScreenVideoTitle:ye=void 0}=e,{endScreenVideoThumb:$e=void 0}=e,{isOneVideoPlaylist:pt=!1}=e,{supportLink:ht}=e,{outerContainerRef:gt=void 0}=e,{showMiniTimer:Mt=!1}=e,{fullScreenTarget:Ke=void 0}=e,{playerStarted:Yt=!1}=e,{playNextVideo:Nt=Ro.noop}=e,{playPrevVideo:Lt=Ro.noop}=e,{repeatPlaylist:ii=Ro.noop}=e,{seekToInteractive:ae}=e,{toggleGraph:ft}=e,{playPrevChapter:_t}=e,{firstStart:bt}=e,{seekTime:wt}=e,Ot=ve.getLogger().createComponentLog("Root component"),Vt=ve.interfaceLanguage$;F(i,Vt,ie=>t(46,$=ie));let Yi=ve.state.playbackState$;F(i,Yi,ie=>t(126,se=ie));let on=ve.ads.playbackState;F(i,on,ie=>t(127,V=ie));let mi=ve.state.positionWithScrubbing$;F(i,mi,ie=>t(44,a=ie));let pi=ve.state.duration$;F(i,pi,ie=>t(43,r=ie));let Ai=ve.playerPhase;F(i,Ai,ie=>t(34,W=ie));let Zt=ve.ui.isFullscreen;F(i,Zt,ie=>t(141,u=ie));let _i=ve.ui.controlsVisible;F(i,_i,ie=>t(30,o=ie));let ln=ve.ui.interactiveHideMobileControls;F(i,ln,ie=>t(118,b=ie));let hi=ve.ui.settingsMenuVisible;F(i,hi,ie=>t(117,n=ie));let Fi=ve.ui.scrubbingInProgress;F(i,Fi,ie=>t(119,S=ie));let ni=ve.ui.debugPanelVisible;F(i,ni,ie=>t(57,Ne=ie));let Mi=ve.state.isLoaderVisible;F(i,Mi,ie=>t(128,A=ie));let gi=ve.state.isEnded$;F(i,gi,ie=>t(121,k=ie));let Hi=ve.state.chromecastConnected$;F(i,Hi,ie=>t(35,Q=ie));let bi=ve.state.chromecastDeviceName$;F(i,bi,ie=>t(51,E=ie));let oi=ve.ads.postrollPassed;F(i,oi,ie=>t(122,v=ie));let Tt=ve.ui.mobileUnmuteButtonExpanded,Ft=ve.ui.mobileUnmuteButtonVisible,vi=ve.state.isLive$;F(i,vi,ie=>t(55,Ue=ie));let yi=ve.state.isPlaying$;F(i,yi,ie=>t(56,Je=ie));let Ht=ve.state.isActiveLive$;F(i,Ht,ie=>t(48,x=ie));let li=ve.state.isRewindableLive$,ri=ve.state.crashed$;F(i,ri,ie=>t(33,T=ie));let Rt=ve.webApi.pictureInPictureApi,Et=ve.state.videoSize$;F(i,Et,ie=>t(142,p=ie));let jt=ve.state.currentSubtitle$;F(i,jt,ie=>t(52,Y=ie));let Vi=ve.state.currentSubtitleCaptions$;F(i,Vi,ie=>t(53,Re=ie));let Xt=ve.state.duration$;F(i,Xt,ie=>t(54,je=ie));let rn=ve.state.graphIsOpened$;F(i,rn,ie=>t(125,le=ie));let sn=ve.ui.playerSize;F(i,sn,ie=>t(31,f=ie));let Wt=ve.ui.is3DVideo;F(i,Wt,ie=>t(49,N=ie));let wi=ve.ui.icon3DVideoVisible;F(i,wi,ie=>t(50,te=ie));let zi=ve.ui.rotateAlpha;F(i,zi,ie=>t(32,g=ie));let ki=ve.state.isInteractive,si=ve.state.isInteractiveTime$;F(i,si,ie=>t(120,w=ie));let zt=ve.state.isInteractiveExpectation$;F(i,zt,ie=>t(124,G=ie));let Gt=ve.state.hasInteractiveBranches,Ci=ve.ui.controls.disabledControls$;F(i,Ci,ie=>t(47,X=ie));let Jt=ve.ui.touched;F(i,Jt,ie=>t(123,I=ie));let Zi=ve.ui.clientInfo$;F(i,Zi,ie=>t(140,s=ie));let Si=ve.ui.overlayContainer$,an=ve.state.isFirstBytes$;F(i,an,ie=>t(139,l=ie));let un=ve.actions.internal.closeSettingsMenu,Xi=ve.callbacks?.onDisabledPlayPrevChapterClick,qi=ve.callbacks?.onDisabledSeekToInteractiveClick,Li,Qt,ai,Pi,Ri,Ji,Ii,Bi=De(!1);F(i,Bi,ie=>t(45,h=ie));let Di,Qe=!1,Ui,qt=!1,qe,xi=!0,Ni,Ki,$i=!1,ji;Rt?.setContext(bl());let _n=ie=>{clearTimeout(Pi),ie&&(Ft.set(!0),Tt.set(!0),Pi=window.setTimeout(()=>{Tt.set(!1)},J.controls.collapseMobileUnmute),ki||$t(J.controls.hideTimeoutMobile))};ve.setUiCallbacks({onStarted:_n});let xt=()=>{window.clearTimeout(ai),t(112,Qe=!1),b&&ln.set(!1)},$t=ie=>{xt(),t(112,Qe=!0),ai=window.setTimeout(()=>t(112,Qe=!1),ie);let kt=ie-100;Di=window.setTimeout(()=>{h&&Bi.set(!1)},kt>0?kt:ie)},Wi=Wt.subscribe(ie=>{wi.set(ie),ie&&(window.clearTimeout(Ri),Ri=window.setTimeout(()=>wi.set(!1),J.controls.hide360IconTimeout))}),ui=async()=>{let ie=lo();if(ie){$t(J.controls.hideTimeoutFullscreen);try{await Rt?.remove()}catch(kt){Ot({message:String(kt)})}try{let kt=p?.width&&p?.height?p:f;await Ef(kt)}catch(kt){Ot({message:String(kt)})}}Zt.set(ie),ve.getAdmanWrapper().setFullscreen(ie),u?ve.callbacks?.onFullscreenEnter?.():ve.callbacks?.onFullscreenExit?.()},re=ie=>{let kt=ie;sn.set({width:kt.target.width,height:kt.target.height})};St(()=>(lr(ui),To(Rt)&&(Rt?.assignPlayerContainer(Li),Rt?.registryExternalEventHandlers({resize:re})),t(39,xi=!mp(s)),Xe&&He.parentElement?.insertBefore(Xe,He.nextSibling),()=>{window.clearTimeout(ai),window.clearTimeout(Di),window.clearTimeout(Pi),window.clearTimeout(Ri),Wi(),Rt?.dispose(),rr(ui)}));let dt=ie=>{let kt=a+(ie==="forward"?1:-1)*J.controls.seekStepMobile/1e3;kt<0?kt=0:kt>r&&(kt=r-1),t(114,qt=!0),wt(kt)},ci=async()=>{if(lo())await or(document),Ot({message:"exit fullscreen"});else{if(Ot({message:"request fullscreen"}),(0,Ro.isIOS)()&&!l)return;let ie=(0,Ro.isIOS)()||!gt?Li:gt,kt=ie.getRootNode(),Mn=kt instanceof ShadowRoot?kt.host:kt,On=Ke instanceof HTMLElement&&Ke.contains(Mn),Fn=J.allowChangingFullscreenTarget&&Ke&&On?Ke:ie;await nr(Fn)}},fi=()=>{un()},ei=()=>{if(n){fi();return}if(!Yt){bt(),$t(J.controls.hideTimeoutCursor);return}t(114,qt=!1),o?xt():$t(J.controls.hideTimeoutMobile)},Gi=()=>{if(n){fi();return}},Tn=()=>{Jt.set(!0)},yn=()=>{ki||(Bi.set(!0),$t(J.controls.hideTimeoutCursor))},hn=ie=>{Xi&&(Xi(ie),$t(J.controls.hideTimeoutMobile))},Bt=ie=>{qi&&(qi(ie),$t(J.controls.hideTimeoutMobile))};function wn(ie){he[ie?"unshift":"push"](()=>{He=ie,t(0,He)})}let Nn=()=>dt("backward"),En=()=>dt("forward");function An(ie){Qt=ie,t(37,Qt)}function kn(ie){he[ie?"unshift":"push"](()=>{Ii=ie,t(29,Ii)})}function en(ie){he[ie?"unshift":"push"](()=>{Li=ie,t(36,Li)})}return i.$$set=ie=>{"store"in ie&&t(106,ve=ie.store),"uiConfig"in ie&&t(1,J=ie.uiConfig),"thumbUrl"in ie&&t(2,we=ie.thumbUrl),"videoContainer"in ie&&t(0,He=ie.videoContainer),"interactiveContainer"in ie&&t(107,Xe=ie.interactiveContainer),"live"in ie&&t(3,xe=ie.live),"autoplay"in ie&&t(4,ke=ie.autoplay),"canRewindLive"in ie&&t(5,Le=ie.canRewindLive),"showAds"in ie&&t(6,ze=ie.showAds),"adsSlotId"in ie&&t(7,Ye=ie.adsSlotId),"adsParams"in ie&&t(8,ue=ie.adsParams),"adsPreviewParam"in ie&&t(9,oe=ie.adsPreviewParam),"duration"in ie&&t(10,Se=ie.duration),"logoClickable"in ie&&t(11,ce=ie.logoClickable),"logoHidden"in ie&&t(12,Ae=ie.logoHidden),"logoTargetUrl"in ie&&t(13,Ze=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,st=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,ct=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,at=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,ye=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,$e=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,pt=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,ht=ie.supportLink),"outerContainerRef"in ie&&t(108,gt=ie.outerContainerRef),"showMiniTimer"in ie&&t(109,Mt=ie.showMiniTimer),"fullScreenTarget"in ie&&t(110,Ke=ie.fullScreenTarget),"playerStarted"in ie&&t(21,Yt=ie.playerStarted),"playNextVideo"in ie&&t(22,Nt=ie.playNextVideo),"playPrevVideo"in ie&&t(23,Lt=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,ii=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,ae=ie.seekToInteractive),"toggleGraph"in ie&&t(26,ft=ie.toggleGraph),"playPrevChapter"in ie&&t(27,_t=ie.playPrevChapter),"firstStart"in ie&&t(28,bt=ie.firstStart),"seekTime"in ie&&t(111,wt=ie.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,Ji=(W==="video"&&A||W==="ads"&&V==="inactive")&&!T);if(i.$$.dirty[0]&536870912)e:Si.set(Ii);if(i.$$.dirty[4]&4)e:t(113,Ui=se!==Vp.PlaybackState.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,qe=le||b||!Qe&&(k&&!!Gt||Ui&&G));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:_i.set((Ui||n||S||Q||Qe&&!qt)&&!qe&&W==="video"&&!T);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,Ni=J.features.thumbTimer&&Mt&&W==="video"&&!o&&!T&&!ki&&(J.hideThumbTimerAfterTouch&&!I||!J.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,Ki=(ze&&v||!ze)&&k&&!T);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!S&&$i&&!w&&$t(J.controls.hideTimeoutMobile),t(116,$i=S);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,ji=He&&g%180?f.height/f.width:1)},[He,J,we,xe,ke,Le,ze,Ye,ue,oe,Se,ce,Ae,Ze,st,ct,at,ye,$e,pt,ht,Yt,Nt,Lt,ii,ae,ft,_t,bt,Ii,o,f,g,T,W,Q,Li,Qt,Ji,xi,Ni,Ki,ji,r,a,h,$,X,x,N,te,E,Y,Re,je,Ue,Je,Ne,Vt,Yi,on,mi,pi,Ai,Zt,_i,ln,hi,Fi,ni,Mi,gi,Hi,bi,oi,vi,yi,Ht,li,ri,Et,jt,Vi,Xt,rn,sn,Wt,wi,zi,ki,si,zt,Ci,Jt,Zi,an,Bi,dt,ci,fi,ei,Gi,Tn,yn,hn,Bt,ve,Xe,gt,Mt,Ke,wt,Qe,Ui,qt,qe,$i,n,b,S,w,k,v,I,G,le,se,V,A,wn,Nn,En,An,kn,en]}var dc=class extends q{constructor(e){super(),U(this,e,J5,X5,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},Z5,[-1,-1,-1,-1,-1,-1])}},Lp=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(
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 Y5(i){let e,t,n;function o(l){i[57](l)}let r={store:i[0],uiConfig:i[34],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[36]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new ap({props:r}),_e.push(()=>Oe(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Z5(i){let e,t,n;function o(l){i[56](l)}let r={store:i[0],uiConfig:i[34],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[36],seekTime:i[31]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new Ep({props:r}),_e.push(()=>Oe(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(l,a){L(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],Ne(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function X5(i){let e,t,n,o,r=[Z5,Y5],l=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),c(e,"class","root svelte-cghoty")},m(s,u){w(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&&k(e),l[t].d()}}}function J5(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:y}=e,{autoplay:b}=e,{volume:P=void 0}=e,{muted:C=void 0}=e,{fromTime:A}=e,{canRewindLive:S}=e,{showAds:v}=e,{adsSlotId:E=void 0}=e,{adsParams:G=void 0}=e,{adsPreviewParam:W=void 0}=e,{duration:K=void 0}=e,{logoClickable:re}=e,{logoHidden:te}=e,{isMobile:I}=e,{showNextPrevButtons:Y=!1}=e,{nextButtonActive:X=!1}=e,{prevButtonActive:$=!1}=e,{endScreenVideoTitle:x=void 0}=e,{endScreenVideoThumb:D=void 0}=e,{isOneVideoPlaylist:j=!1}=e,{supportLink:V}=e,{outerContainerRef:Q=void 0}=e,{fullScreenTarget:De=void 0}=e,{failoverHosts:We=void 0}=e,{showMiniTimer:qe=!1}=e,{playNextVideo:Ze=Dn.noop}=e,{playPrevVideo:Me=Dn.noop}=e,{repeatPlaylist:ye=Dn.noop}=e,{seekToInteractive:J=Dn.noop}=e,{toggleGraph:ke=Dn.noop}=e,{playPrevChapter:Fe=Dn.noop}=e,{subscribers:Ye,stores:Je}=r;jc(a);let he=Vt(),Ve=a.logoLink,ze=o.ui.debugPanelVisible,tt=o.ui.playerSize,le,oe=null,Ce=!1;o.getAdmanWrapper().init({switchFromAdsToVideo:o.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:o.actions.internal.switchFromVideoToAds,setMuted:o.actions.external.setMuted},o.ads,{isMobile:o.ui.isMobile,mobileUnmuteButtonVisible:o.ui.mobileUnmuteButtonVisible,vsid:o.vsid}),of(o,Je);let fe=(ve=!1)=>{t(33,Ce=!0),ve?o.actions.external.firstStart(v):o.actions.internal.firstStart(v)};function Ee(ve){let bt=n||ve;bt&&o.initVideo({container:le,sources:bt,failoverHosts:We,subtitles:p});let Tt=Dn.safeStorage.get(bl)==="true";ze.set(Tt),A>0&&o.actions.external.seekTime(A);let Xe=I?he.volumeDefault:P??Zl()??he.volumeDefault,at=C??hf();if(o.actions.external.setVolume(Xe),o.actions.external.setMuted(at),o.getAdmanWrapper().setInitialVolume(at?0:Xe),he.features.trafficSaving){let Et=bf();Et&&o.actions.internal.setTrafficSavingEnabled(Et)}let kt=mf(o.videoId);kt&&o.actions.internal.setQuality(kt),o.ui.isAutoplay.set(b),b?fe():y&&he.features.preload&&o.actions.internal.preload()}let je=ve=>{if(window.ResizeObserver){let bt,Tt;oe=new ResizeObserver((0,Dn.throttleFn)(Xe=>{let at=Xe[0];if(at){if(at.contentBoxSize){let kt=Array.isArray(at.contentBoxSize)?at.contentBoxSize[0]:at.contentBoxSize;bt=kt.inlineSize,Tt=kt.blockSize}else at.contentRect&&(bt=at.contentRect.width,Tt=at.contentRect.height);tt.set({width:bt,height:Tt})}},300)),oe.observe(ve)}tt.set({width:ve.clientWidth,height:ve.clientHeight})};St(()=>{je(le);let ve=Ye.map(Tt=>Tt.init({store:o,microStores:Je,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 Ee(),()=>{oe?.disconnect(),ve.forEach(Tt=>Tt.unsubscribe()),o.destroy()}});function rt(){Ce?o.actions.external.play():fe(!0)}function dt(){o.actions.external.pause()}function st(ve){I||o.actions.external.setMuted(ve)}function de(ve){I||ve>=0&&ve<=1&&o.actions.external.setVolume(ve)}function ct(ve){o.actions.internal.seekTime(ve,Ap.SeekAction.UNKNOWN)}function It(ve){o.actions.external.seekEpisodeStartTime(ve)}function _t(){o.actions.external.returnFocusToEpisodes()}function yt(ve){o.actions.external.setPlaybackRate(ve)}function Lt(ve){o.actions.external.setAutoQualityLimits(ve)}function Ue(ve){le=ve,t(32,le)}function Qt(ve){le=ve,t(32,le)}return i.$$set=ve=>{"sources"in ve&&t(37,n=ve.sources),"store"in ve&&t(0,o=ve.store),"microStoresRoot"in ve&&t(38,r=ve.microStoresRoot),"videoConfig"in ve&&t(39,l=ve.videoConfig),"uiConfig"in ve&&t(40,a=ve.uiConfig),"title"in ve&&t(1,s=ve.title),"thumbUrl"in ve&&t(2,u=ve.thumbUrl),"interactiveContainer"in ve&&t(3,f=ve.interactiveContainer),"subtitles"in ve&&t(41,p=ve.subtitles),"live"in ve&&t(4,h=ve.live),"preload"in ve&&t(42,y=ve.preload),"autoplay"in ve&&t(5,b=ve.autoplay),"volume"in ve&&t(43,P=ve.volume),"muted"in ve&&t(44,C=ve.muted),"fromTime"in ve&&t(45,A=ve.fromTime),"canRewindLive"in ve&&t(6,S=ve.canRewindLive),"showAds"in ve&&t(7,v=ve.showAds),"adsSlotId"in ve&&t(8,E=ve.adsSlotId),"adsParams"in ve&&t(9,G=ve.adsParams),"adsPreviewParam"in ve&&t(10,W=ve.adsPreviewParam),"duration"in ve&&t(11,K=ve.duration),"logoClickable"in ve&&t(12,re=ve.logoClickable),"logoHidden"in ve&&t(13,te=ve.logoHidden),"isMobile"in ve&&t(14,I=ve.isMobile),"showNextPrevButtons"in ve&&t(15,Y=ve.showNextPrevButtons),"nextButtonActive"in ve&&t(16,X=ve.nextButtonActive),"prevButtonActive"in ve&&t(17,$=ve.prevButtonActive),"endScreenVideoTitle"in ve&&t(18,x=ve.endScreenVideoTitle),"endScreenVideoThumb"in ve&&t(19,D=ve.endScreenVideoThumb),"isOneVideoPlaylist"in ve&&t(20,j=ve.isOneVideoPlaylist),"supportLink"in ve&&t(21,V=ve.supportLink),"outerContainerRef"in ve&&t(22,Q=ve.outerContainerRef),"fullScreenTarget"in ve&&t(23,De=ve.fullScreenTarget),"failoverHosts"in ve&&t(46,We=ve.failoverHosts),"showMiniTimer"in ve&&t(24,qe=ve.showMiniTimer),"playNextVideo"in ve&&t(25,Ze=ve.playNextVideo),"playPrevVideo"in ve&&t(26,Me=ve.playPrevVideo),"repeatPlaylist"in ve&&t(27,ye=ve.repeatPlaylist),"seekToInteractive"in ve&&t(28,J=ve.seekToInteractive),"toggleGraph"in ve&&t(29,ke=ve.toggleGraph),"playPrevChapter"in ve&&t(30,Fe=ve.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:o.ui.isMobile.set(I)},[o,s,u,f,h,b,S,v,E,G,W,K,re,te,I,Y,X,$,x,D,j,V,Q,De,qe,Ze,Me,ye,J,ke,Fe,ct,le,Ce,he,Ve,fe,n,r,l,a,p,y,P,C,A,We,Ee,rt,dt,st,de,It,_t,yt,Lt,Ue,Qt]}var dc=class extends z{constructor(e){super(),q(this,e,J5,X5,H,{sources:37,store:0,microStoresRoot:38,videoConfig:39,uiConfig:40,title:1,thumbUrl:2,interactiveContainer:3,subtitles:41,live:4,preload:42,autoplay:5,volume:43,muted:44,fromTime:45,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:22,fullScreenTarget:23,failoverHosts:46,showMiniTimer:24,playNextVideo:25,playPrevVideo:26,repeatPlaylist:27,seekToInteractive:28,toggleGraph:29,playPrevChapter:30,initVideo:47,play:48,pause:49,setMuted:50,setVolume:51,seekTime:31,seekEpisodeStartTime:52,returnFocusToEpisodes:53,setPlaybackRate:54,setAutoQualityLimits:55},Q5,[-1,-1,-1])}get initVideo(){return this.$$.ctx[47]}get play(){return this.$$.ctx[48]}get pause(){return this.$$.ctx[49]}get setMuted(){return this.$$.ctx[50]}get setVolume(){return this.$$.ctx[51]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[52]}get returnFocusToEpisodes(){return this.$$.ctx[53]}get setPlaybackRate(){return this.$$.ctx[54]}get setAutoQualityLimits(){return this.$$.ctx[55]}},Mp=dc;function x5(i){let e,t,n,o=i[2].default,r=Se(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=ne(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){w(s,e,u),r&&r.m(e,null),m(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ie(r,o,s,s[1],n?Pe(o,s[1],u,null):Te(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&&k(e),r&&r.d(s)}}}function $5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var mc=class extends z{constructor(e){super(),q(this,e,$5,x5,H,{})}},Vp=mc;function e6(i){let e,t;return e=new Vp({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function t6(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 pc=class extends z{constructor(e){super(),q(this,e,t6,e6,H,{isWhite:1})}},Lp=pc;function i6(i){we(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 Bp(i){let e,t;return{c(){e=T("div"),t=Be(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){w(n,e,o),m(e,t)},p(n,o){o&1&&Ge(t,n[0])},d(n){n&&k(e)}}}function Rp(i){let e,t;return e=new Lp({props:{isWhite:!!i[1]}}),{c(){R(e.$$.fragment)},m(n,o){L(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){B(e,n)}}}function n6(i){let e,t,n,o,r=i[0]&&Bp(i),l=(!i[0]||!i[1])&&Rp(i);return{c(){e=T("div"),r&&r.c(),t=N(),l&&l.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){w(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=Bp(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=Rp(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&&k(e),r&&r.d(),l&&l.d()}}}function o6(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 _c=class extends z{constructor(e){super(),q(this,e,o6,n6,H,{title:0,thumbUrl:1},i6)}},Dp=_c;var on=require("@vkontakte/videoplayer-shared"),dD=require("@vkontakte/videoplayer-core"),dl=require("@vkontakte/videoplayer-statistics");var ls=class{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}};var mo=require("@vkontakte/videoplayer-shared");function l6(i){let e,t,n,o,r,l=i[2].default,a=Se(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=ne(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){w(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)&&Ie(a,l,f,f[1],r?Pe(l,f[1],p,null):Te(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&&k(e),a&&a.d(f)}}}function r6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ne(ne({},e),ge(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ge(e),[e,o,n]}var hc=class extends z{constructor(e){super(),q(this,e,r6,l6,H,{})}},Np=hc;function s6(i){we(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 a6(i){let e,t,n,o,r,l,a;return n=new Np({}),{c(){e=T("div"),t=T("div"),R(n.$$.fragment),o=N(),r=T("span"),l=Be(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),O(t,"desktop",!i[1]),c(r,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),O(e,"is-pip-api",i[2])},m(s,u){w(s,e,u),m(e,t),L(n,t,null),m(e,o),m(e,r),m(r,l),a=!0},p(s,[u]){(!a||u&2)&&O(t,"desktop",!s[1]),(!a||u&1)&&Ge(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&k(e),B(n)}}}function u6(i,e,t){let n,o,r=$e(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;F(i,a,f=>t(5,n=f));let s=r.ui.isMobile;F(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&U("pip_dummy_title"))},[u,o,l,a,s,n]}var gc=class extends z{constructor(e){super(),q(this,e,u6,a6,H,{},s6)}},Op=gc;var c6=460,f6=280,Ml=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:c6,height:f6,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 Op({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 Fp(i){return i instanceof Ml}var rs=class{static getLatestSupportedVersion(){let e=new Eo,t=new Ml;if(t.isSupported())return t;if(e.isSupported())return e}};function bc(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 Hp="Inner error. Unexpectedly root annotation container null reference exception",zp="Annotation with such name already exists",qp="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"),d6="1",m6=100,ss=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"},m6);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(Hp);if(this.annotations.has(e))throw new ul(zp);t.style.zIndex=t.style.zIndex??d6,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(qp);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"),Wn=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 Vl=class extends Wn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Re(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 Ll=class extends Wn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Re(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=xe(f),h=()=>p&&xe(u);return n.add(u.subscribe(y=>{if(!p)return;let b=xe(l);xe(s)?this.state$.set(y):b!==null&&this.state$.set(!b||y)})),n.add(s.subscribe(y=>{this.state$.set(!y||h())})),n.add(l.subscribe(y=>{if(y===null)return;let b=xe(a);if(h()){this.state$.set(!0);return}b&&this.state$.set(!y)})),n}};var Bl=class extends Wn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Re("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 Up=require("@vkontakte/videoplayer-shared"),vc=Re(!1),as=null,Rl=class extends Wn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...vc,set:(t,n=!1)=>{t!==xe(vc)&&(this.clearTimeout(),vc.set(t),!t&&as&&(as=!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=>{xe(l)&&p&&this.state$.set(!1)}));let f=r?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,Up.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:y})=>{if(!(!p||!y?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&as===null&&(as=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Kp=()=>[Vl,Ll,Bl,Rl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var p6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:on.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,on.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]}},us=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 on.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new on.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 Dp({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:y,muted:b,fromTime:P,canRewindLive:C,supportLink:A,showAds:S,adsSlotId:v,adsParams:E={},adsPreviewParam:G,interfaceLanguage:W,logoClickable:K,logoHidden:re,isMobile:te,isAudioDisabled:I,isLiveCatchUpMode:Y,fullScreenTarget:X,failoverHosts:$,canDownload:x,callbacks:D,interactiveData:j,showThumbTimer:V,additionalButtons:Q=[],repeat:De}=bc(this.videoConfig,n),{sources:We,title:qe,thumbUrl:Ze,unitedVideoId:Me,isClip:ye=!1,duration:J,adsParams:ke={},videoEpisodes:Fe,previewThumbsData:Ye,subtitles:Je,live:he}=t,Ve={...E,...ke},ze=this.getNextVideoInfo(),tt={sources:We,title:qe,thumbUrl:Ze,subtitles:Je,unitedVideoId:Me,isClip:ye,live:he,albumId:r,statPlace:l,autoplay:h,muted:b,volume:y,fromTime:P,canRewindLive:C,showAds:S,adsSlotId:v,adsParams:Ve,adsPreviewParam:G,duration:J,logoClickable:K,logoHidden:re,isMobile:te,repeat:De,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ze.nextVideoTitle,endScreenVideoThumb:ze.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},le={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(tt)}`});let oe=this.uiConfig.features.statistics&&!!Me,{pid:Ce}=this.videoConfig?.interactiveData?.projectInfo||{};oe&&(this.statistics=new Wr({movieId:Me,albumId:r,place:l,trackCode:u,autoplay:(h&&!this.interactiveController)??!1,mobile:te,clip:ye,refDomain:this.videoConfig.refDomain,...Ce&&!this.isInited&&{projectId:Number(Ce)}},{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:Ql},{movieId:Me,albumId:r,place:l,autoplay:(h&&!this.interactiveController)??!1,mobile:te,clip:ye}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...To.getInstance()};let Ee=!!j,je=[],rt="tooltip_interactive_go_back_disabled_first";if(Ee&&this.interactiveController){let de=this.interactiveController.state.isInitialChapter$.getValue(),ct=this.interactiveController.getHistoryState();de&&je.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||je.push("SEEK_TO_INTERACTIVE_BUTTON"),ct.hasPrevChapter$.getValue()||(je.push("PLAY_PREV_CHAPTER_BUTTON"),de||(ct.isGoBackLimited$.getValue()?rt="tooltip_interactive_go_back_disabled_limit":rt="tooltip_interactive_go_back_disabled"))}let dt=()=>{this.isInited=!1,this.prevIsid=void 0;let de=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();D.onReplayInteractiveVideo&&!de?D.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=cm({player:o,interfaceLanguage:W,videoId:Me,isClip:ye,isLiveCatchUpMode:Y,isAudioDisabled:I,statAuthToken:s,callbacks:D,webApi:le,videoEpisodes:Fe,previewThumbsData:Ye,canDownload:x,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:je,isInteractive:Ee,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:dt,playPrevChapterDisabledTooltip:rt,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Q:[],looped:De&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:st}=this.microStoresRoot=Kp();this.subscription.add(this.store.state.currentFormat$.subscribe(de=>D?.onCurrentFormatChanged?.(de))),this.subscription.add(st.interactiveControlsOpacity$.subscribe(de=>{de!==null&&this?.interactiveController?.setDisabledControls(de)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(de=>D?.onThroughputEstimationChanged?.(de))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(de=>D?.onTrafficSavingEnabledChanged?.(de))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(de=>D?.onCurrentPlaybackRateChanged?.(de))),this.subscription.add(this.store.state.volume$.subscribe(de=>D?.onVolumeChange?.(de))),this.subscription.add(this.store.state.muted$.subscribe(de=>de?D?.onMute?.():D?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(de=>D?.onVideoBitrateChanged?.(de))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(de=>{let ct=this.store?.ui.controls.disabledControls$;ct&&(de&&!ct.includes(vl)&&ct.add(vl),de||ct.remove(vl))})),this.initMediaSession(),this.interactiveController&&oe&&this.initInteractivesStatistics(),this.svelteRootComponent=new Mp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:We,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:qe,thumbUrl:Ze,subtitles:Je,live:he,preload:p,autoplay:h,muted:b,volume:y,fromTime:P,canRewindLive:C,supportLink:A,showAds:S,adsSlotId:v,adsParams:Ve,adsPreviewParam:G,duration:J,logoClickable:K,logoHidden:re,isMobile:te,failoverHosts:$,fullScreenTarget:X,showMiniTimer:V,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ze.nextVideoTitle,endScreenVideoThumb:ze.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph()}}),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,on.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=xe(n),s=xe(o);xe(r)?(r.set(!1),this.interactiveController?.toggleGraphView(!1),l.remove(ys),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),this.interactiveController?.toggleGraphView(!0),l.add(ys),!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?xe(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(y=>{if(!this.isInited)return;let b=this.store;y?b.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):b.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(y=>{this.store&&this.store.state.isInteractiveExpectation$.set(y)}));let h=!0;if(this.interactiveController.on(n.playerChanged,y=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...y.config,title:a?.title||y.config.title};let b=h?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(y.player,b),h&&(h=!1)}),this.interactiveController.on(n.interactives,({type:y,actionType:b})=>{if(!this.store)return;let P=p.getValue();if(y==="action-choice"&&b==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(jl)),y==="action-choice-canceled"){let C=xe(this.store.state.isPlaying$)||P;if(this.videoConfig?.isMobile&&C){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let y=this.interactiveController.getHistoryState();this.subscription.add(y.history$.subscribe(b=>{b.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(b)}))}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,y=>{this.log({message:y.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 on.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=bc(p6,(0,on.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,on.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),(0,on.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=rs.getLatestSupportedVersion():this.pictureInPictureApi=new Eo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ls:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ss(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]),Fp(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"),cs=require("@vkontakte/videoplayer-core"),_6=()=>{window.customElements.define("vk-video-player",us)};
50
+ );--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--mobile-settings-bg:#2C2D2E;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:10000}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function $5(i){let e,t,n;function o(r){i[59](r)}let l={store:i[0],uiConfig:i[34],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[37]};return i[32]!==void 0&&(l.videoContainer=i[32]),e=new dp({props:l}),he.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.outerContainerRef=r[22]),a[0]&8388608&&(s.fullScreenTarget=r[23]),a[0]&16777216&&(s.showMiniTimer=r[24]),a[1]&4&&(s.playerStarted=r[33]),a[0]&33554432&&(s.playNextVideo=r[25]),a[0]&67108864&&(s.playPrevVideo=r[26]),a[0]&134217728&&(s.repeatPlaylist=r[27]),a[0]&268435456&&(s.seekToInteractive=r[28]),a[0]&536870912&&(s.toggleGraph=r[29]),a[0]&1073741824&&(s.playPrevChapter=r[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=r[32],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 e6(i){let e,t,n;function o(r){i[58](r)}let l={store:i[0],uiConfig:i[34],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[37],seekTime:i[31]};return i[32]!==void 0&&(l.videoContainer=i[32]),e=new Lp({props:l}),he.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.outerContainerRef=r[22]),a[0]&8388608&&(s.fullScreenTarget=r[23]),a[0]&16777216&&(s.showMiniTimer=r[24]),a[1]&4&&(s.playerStarted=r[33]),a[0]&33554432&&(s.playNextVideo=r[25]),a[0]&67108864&&(s.playPrevVideo=r[26]),a[0]&134217728&&(s.repeatPlaylist=r[27]),a[0]&268435456&&(s.seekToInteractive=r[28]),a[0]&536870912&&(s.toggleGraph=r[29]),a[0]&1073741824&&(s.playPrevChapter=r[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=r[32],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,o,l=[e6,$5],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=P("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):(fe(),_(r[f],1,1,()=>{r[f]=null}),de(),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&&y(e),r[t].d()}}}function i6(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:w=void 0}=e,{muted:T=void 0}=e,{fromTime:k}=e,{canRewindLive:v}=e,{showAds:I}=e,{adsSlotId:W=void 0}=e,{adsParams:Q=void 0}=e,{adsPreviewParam:G=void 0}=e,{duration:le=void 0}=e,{logoClickable:se}=e,{logoHidden:V}=e,{isMobile:A}=e,{showNextPrevButtons:$=!1}=e,{nextButtonActive:X=!1}=e,{prevButtonActive:x=!1}=e,{endScreenVideoTitle:N=void 0}=e,{endScreenVideoThumb:te=void 0}=e,{isOneVideoPlaylist:E=!1}=e,{supportLink:Y}=e,{outerContainerRef:Re=void 0}=e,{fullScreenTarget:je=void 0}=e,{failoverHosts:Ue=void 0}=e,{showMiniTimer:Je=!1}=e,{saveRate:Ne}=e,{playNextVideo:ve=Dn.noop}=e,{playPrevVideo:J=Dn.noop}=e,{repeatPlaylist:we=Dn.noop}=e,{seekToInteractive:He=Dn.noop}=e,{toggleGraph:Xe=Dn.noop}=e,{playPrevChapter:xe=Dn.noop}=e,{subscribers:ke,stores:Le}=r;Gc(s);let ze=At(),Ye=s.logoLink,ue=l.ui.debugPanelVisible,oe=l.ui.playerSize,Se=l.state.isLive$;F(i,Se,ae=>t(61,n=ae));let ce,Ae=null,Ze=!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}),of(l,Le);let st=(ae=!1)=>{t(33,Ze=!0),ae?l.actions.external.firstStart(I):l.actions.internal.firstStart(I)};function ct(ae){let ft=o||ae;ft&&l.initVideo({container:ce,sources:ft,failoverHosts:Ue,subtitles:h});let _t=Dn.safeStorage.get(vl)==="true";ue.set(_t),k>0&&l.actions.external.seekTime(k);let bt=A?ze.volumeDefault:w??Xl()??ze.volumeDefault,wt=T??gf();if(l.actions.external.setVolume(bt),l.actions.external.setMuted(wt),l.getAdmanWrapper().setInitialVolume(wt?0:bt),ze.features.trafficSaving){let Vt=vf();Vt&&l.actions.internal.setTrafficSavingEnabled(Vt)}if(ze.features.saveRate&&Ne){let Vt=wf();Vt&&!n&&l.actions.internal.setPlaybackRate(Vt)}let Ot=pf(l.videoId);Ot&&l.actions.internal.setQuality(Ot),l.ui.isAutoplay.set(S),S?st():g&&ze.features.preload&&l.actions.internal.preload()}let at=ae=>{if(window.ResizeObserver){let ft,_t;Ae=new ResizeObserver((0,Dn.throttleFn)(bt=>{let wt=bt[0];if(wt){if(wt.contentBoxSize){let Ot=Array.isArray(wt.contentBoxSize)?wt.contentBoxSize[0]:wt.contentBoxSize;ft=Ot.inlineSize,_t=Ot.blockSize}else wt.contentRect&&(ft=wt.contentRect.width,_t=wt.contentRect.height);oe.set({width:ft,height:_t})}},300)),Ae.observe(ae)}oe.set({width:ae.clientWidth,height:ae.clientHeight})};St(()=>{at(ce);let ae=ke.map(_t=>_t.init({store:l,microStores:Le,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 ct(),()=>{Ae?.disconnect(),ae.forEach(_t=>_t.unsubscribe()),l.destroy()}});function ye(){Ze?l.actions.external.play():st(!0)}function $e(){l.actions.external.pause()}function pt(ae){A||l.actions.external.setMuted(ae)}function ht(ae){A||ae>=0&&ae<=1&&l.actions.external.setVolume(ae)}function gt(ae){l.actions.internal.seekTime(ae,Rp.SeekAction.UNKNOWN)}function Mt(ae){l.actions.external.seekEpisodeStartTime(ae)}function Ke(){l.actions.external.returnFocusToEpisodes()}function Yt(ae){l.actions.external.setPlaybackRate(ae)}function Nt(ae){l.actions.external.setAutoQualityLimits(ae)}function Lt(ae){ce=ae,t(32,ce)}function ii(ae){ce=ae,t(32,ce)}return i.$$set=ae=>{"sources"in ae&&t(38,o=ae.sources),"store"in ae&&t(0,l=ae.store),"microStoresRoot"in ae&&t(39,r=ae.microStoresRoot),"videoConfig"in ae&&t(40,a=ae.videoConfig),"uiConfig"in ae&&t(41,s=ae.uiConfig),"title"in ae&&t(1,u=ae.title),"thumbUrl"in ae&&t(2,f=ae.thumbUrl),"interactiveContainer"in ae&&t(3,p=ae.interactiveContainer),"subtitles"in ae&&t(42,h=ae.subtitles),"live"in ae&&t(4,b=ae.live),"preload"in ae&&t(43,g=ae.preload),"autoplay"in ae&&t(5,S=ae.autoplay),"volume"in ae&&t(44,w=ae.volume),"muted"in ae&&t(45,T=ae.muted),"fromTime"in ae&&t(46,k=ae.fromTime),"canRewindLive"in ae&&t(6,v=ae.canRewindLive),"showAds"in ae&&t(7,I=ae.showAds),"adsSlotId"in ae&&t(8,W=ae.adsSlotId),"adsParams"in ae&&t(9,Q=ae.adsParams),"adsPreviewParam"in ae&&t(10,G=ae.adsPreviewParam),"duration"in ae&&t(11,le=ae.duration),"logoClickable"in ae&&t(12,se=ae.logoClickable),"logoHidden"in ae&&t(13,V=ae.logoHidden),"isMobile"in ae&&t(14,A=ae.isMobile),"showNextPrevButtons"in ae&&t(15,$=ae.showNextPrevButtons),"nextButtonActive"in ae&&t(16,X=ae.nextButtonActive),"prevButtonActive"in ae&&t(17,x=ae.prevButtonActive),"endScreenVideoTitle"in ae&&t(18,N=ae.endScreenVideoTitle),"endScreenVideoThumb"in ae&&t(19,te=ae.endScreenVideoThumb),"isOneVideoPlaylist"in ae&&t(20,E=ae.isOneVideoPlaylist),"supportLink"in ae&&t(21,Y=ae.supportLink),"outerContainerRef"in ae&&t(22,Re=ae.outerContainerRef),"fullScreenTarget"in ae&&t(23,je=ae.fullScreenTarget),"failoverHosts"in ae&&t(47,Ue=ae.failoverHosts),"showMiniTimer"in ae&&t(24,Je=ae.showMiniTimer),"saveRate"in ae&&t(48,Ne=ae.saveRate),"playNextVideo"in ae&&t(25,ve=ae.playNextVideo),"playPrevVideo"in ae&&t(26,J=ae.playPrevVideo),"repeatPlaylist"in ae&&t(27,we=ae.repeatPlaylist),"seekToInteractive"in ae&&t(28,He=ae.seekToInteractive),"toggleGraph"in ae&&t(29,Xe=ae.toggleGraph),"playPrevChapter"in ae&&t(30,xe=ae.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:l.ui.isMobile.set(A)},[l,u,f,p,b,S,v,I,W,Q,G,le,se,V,A,$,X,x,N,te,E,Y,Re,je,Je,ve,J,we,He,Xe,xe,gt,ce,Ze,ze,Ye,Se,st,o,r,a,s,h,g,w,T,k,Ue,Ne,ct,ye,$e,pt,ht,Mt,Ke,Yt,Nt,Lt,ii]}var mc=class extends q{constructor(e){super(),U(this,e,i6,t6,z,{sources:38,store:0,microStoresRoot:39,videoConfig:40,uiConfig:41,title:1,thumbUrl:2,interactiveContainer:3,subtitles:42,live:4,preload:43,autoplay:5,volume:44,muted:45,fromTime:46,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:22,fullScreenTarget:23,failoverHosts:47,showMiniTimer:24,saveRate:48,playNextVideo:25,playPrevVideo:26,repeatPlaylist:27,seekToInteractive:28,toggleGraph:29,playPrevChapter:30,initVideo:49,play:50,pause:51,setMuted:52,setVolume:53,seekTime:31,seekEpisodeStartTime:54,returnFocusToEpisodes:55,setPlaybackRate:56,setAutoQualityLimits:57},x5,[-1,-1,-1])}get initVideo(){return this.$$.ctx[49]}get play(){return this.$$.ctx[50]}get pause(){return this.$$.ctx[51]}get setMuted(){return this.$$.ctx[52]}get setVolume(){return this.$$.ctx[53]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[54]}get returnFocusToEpisodes(){return this.$$.ctx[55]}get setPlaybackRate(){return this.$$.ctx[56]}get setAutoQualityLimits(){return this.$$.ctx[57]}},Bp=mc;function n6(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"),be(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),be(e,a=Ve(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&&y(e),l&&l.d(s)}}}function o6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var pc=class extends q{constructor(e){super(),U(this,e,o6,n6,z,{})}},Dp=pc;function l6(i){let e,t;return e=new Dp({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 r6(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 _c=class extends q{constructor(e){super(),U(this,e,r6,l6,z,{isWhite:1})}},Np=_c;function s6(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 Op(i){let e,t;return{c(){e=P("div"),t=Be(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&&y(e)}}}function Fp(i){let e,t;return e=new Np({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 a6(i){let e,t,n,o,l=i[0]&&Op(i),r=(!i[0]||!i[1])&&Fp(i);return{c(){e=P("div"),l&&l.c(),t=O(),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=Op(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=Fp(a),r.c(),d(r,1),r.m(e,null)):r&&(fe(),_(r,1,1,()=>{r=null}),de()),(!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&&y(e),l&&l.d(),r&&r.d()}}}function u6(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 hc=class extends q{constructor(e){super(),U(this,e,u6,a6,z,{title:0,thumbUrl:1},s6)}},Hp=hc;var nn=require("@vkontakte/videoplayer-shared"),vD=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 c6(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"),be(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),be(e,u=Ve(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&&y(e),a&&a.d(f)}}}function f6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var gc=class extends q{constructor(e){super(),U(this,e,f6,c6,z,{})}},zp=gc;function d6(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 m6(i){let e,t,n,o,l,r,a;return n=new zp({}),{c(){e=P("div"),t=P("div"),B(n.$$.fragment),o=O(),l=P("span"),r=Be(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),H(t,"desktop",!i[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),H(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)&&H(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&&y(e),R(n)}}}function p6(i,e,t){let n,o,l=tt(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;F(i,a,f=>t(5,n=f));let s=l.ui.isMobile;F(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 bc=class extends q{constructor(e){super(),U(this,e,p6,m6,z,{},d6)}},qp=bc;var _6=460,h6=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:_6,height:h6,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 qp({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 Up(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 Kp="Inner error. Unexpectedly root annotation container null reference exception",jp="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"),g6="1",b6=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"},b6);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(Kp);if(this.annotations.has(e))throw new ul(jp);t.style.zIndex=t.style.zIndex??g6,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,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 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(l=>{this.state$.set(l?!0:null)})),n}};var Rl=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:l}=t,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,p=et(f),h=()=>p&&et(u);return n.add(u.subscribe(b=>{if(!p)return;let g=et(r);et(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=et(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!b)})),n}};var Bl=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(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 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!==et(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:l}=t,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{et(r)&&p&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,Gp.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&&us===null&&(us=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Qp=()=>[Ll,Rl,Bl,Dl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var v6={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 Hp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%";let t=document.createElement("div");t.style.position="absolute",t.className="shadow-root-container",t.style.width="100%",t.style.height="100%",this._shadowRoot=t.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(t),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:f,preload:p,autoplay:h,volume:b,muted:g,fromTime:S,canRewindLive:w,supportLink:T,showAds:k,adsSlotId:v,adsParams:I={},adsPreviewParam:W,interfaceLanguage:Q,logoClickable:G,logoHidden:le,isMobile:se,isAudioDisabled:V,isLiveCatchUpMode:A,fullScreenTarget:$,failoverHosts:X,canDownload:x,callbacks:N,interactiveData:te,showThumbTimer:E,additionalButtons:Y=[],repeat:Re,saveRate:je}=vc(this.videoConfig,n),{sources:Ue,title:Je,thumbUrl:Ne,unitedVideoId:ve,isClip:J=!1,duration:we,adsParams:He={},videoEpisodes:Xe,previewThumbsData:xe,subtitles:ke,live:Le}=t,ze={...I,...He},Ye=this.getNextVideoInfo(),ue={sources:Ue,title:Je,thumbUrl:Ne,subtitles:ke,unitedVideoId:ve,isClip:J,live:Le,albumId:l,statPlace:r,autoplay:h,muted:g,volume:b,fromTime:S,canRewindLive:w,showAds:k,adsSlotId:v,adsParams:ze,adsPreviewParam:W,duration:we,logoClickable:G,logoHidden:le,isMobile:se,repeat:Re,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ye.nextVideoTitle,endScreenVideoThumb:Ye.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},oe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(ue)}`});let Se=this.uiConfig.features.statistics&&!!ve,{pid:ce}=this.videoConfig?.interactiveData?.projectInfo||{};Se&&(this.statistics=new Wr({movieId:ve,albumId:l,place:r,trackCode:u,autoplay:(h&&!this.interactiveController)??!1,mobile:se,clip:J,refDomain:this.videoConfig.refDomain,...ce&&!this.isInited&&{projectId:Number(ce)}},{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:l,place:r,autoplay:(h&&!this.interactiveController)??!1,mobile:se,clip:J}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Po.getInstance()};let Ze=!!te,st=[],ct="tooltip_interactive_go_back_disabled_first";if(Ze&&this.interactiveController){let $e=this.interactiveController.state.isInitialChapter$.getValue(),pt=this.interactiveController.getHistoryState();$e&&st.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||st.push("SEEK_TO_INTERACTIVE_BUTTON"),pt.hasPrevChapter$.getValue()||(st.push("PLAY_PREV_CHAPTER_BUTTON"),$e||(pt.isGoBackLimited$.getValue()?ct="tooltip_interactive_go_back_disabled_limit":ct="tooltip_interactive_go_back_disabled"))}let at=()=>{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=pm({player:o,interfaceLanguage:Q,videoId:ve,isClip:J,isLiveCatchUpMode:A,isAudioDisabled:V,statAuthToken:s,callbacks:N,webApi:oe,videoEpisodes:Xe,previewThumbsData:xe,canDownload:x,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:st,isInteractive:Ze,saveRate:je,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:at,playPrevChapterDisabledTooltip:ct,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Y:[],looped:Re&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:ye}=this.microStoresRoot=Qp();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 pt=this.store?.ui.controls.disabledControls$;pt&&($e&&!pt.includes(yl)&&pt.add(yl),$e||pt.remove(yl))})),this.initMediaSession(),this.interactiveController&&Se&&this.initInteractivesStatistics(),this.svelteRootComponent=new Bp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Ue,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Je,thumbUrl:Ne,subtitles:ke,live:Le,preload:p,autoplay:h,muted:g,volume:b,fromTime:S,canRewindLive:w,supportLink:T,showAds:k,adsSlotId:v,adsParams:ze,adsPreviewParam:W,duration:we,logoClickable:G,logoHidden:le,isMobile:se,failoverHosts:X,fullScreenTarget:$,saveRate:je,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(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,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$:l}=t.state,{disabledControls$:r}=t.ui.controls,a=et(n),s=et(o);et(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(ws),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(ws),!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?et(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(Ql)),b==="action-choice-canceled"){let w=et(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 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]: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$:r,nextMovie$:a}=this.interactiveController.getStatEvents(),s=new nn.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=vc(v6,(0,nn.cloneDeepWith)(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Wc(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]),Up(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("waitingLive")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy();let t=this.videoConfig.videos[0];t&&(this.svelteRootComponent?.$destroy(),this.createPlayer(t))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setWaitingLive(!1),this.svelteRootComponent?.initVideo(t),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}};var ml=require("@vkontakte/videoplayer-shared"),fs=require("@vkontakte/videoplayer-core"),y6=()=>{window.customElements.define("vk-video-player",cs)};