@vkontakte/videoplayer 1.1.39-dev.e7a805cd.0 → 1.1.39-dev.f8b1be6a.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.39-dev.e7a805cd.0
3
- * Wed, 07 Aug 2024 06:59:57 GMT
2
+ * @vkontakte/videoplayer v1.1.39-dev.f8b1be6a.0
3
+ * Tue, 13 Aug 2024 12:45:53 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-39/doc/
5
5
  */
6
- "use strict";var F_=Object.create;var Jl=Object.defineProperty;var H_=Object.getOwnPropertyDescriptor;var z_=Object.getOwnPropertyNames;var U_=Object.getPrototypeOf,K_=Object.prototype.hasOwnProperty;var j_=(i,e)=>{for(var t in e)Jl(i,t,{get:e[t],enumerable:!0})},Dc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of z_(e))!K_.call(i,o)&&o!==t&&Jl(i,o,{get:()=>e[o],enumerable:!(n=H_(e,o))||n.enumerable});return i};var Ps=(i,e,t)=>(t=i!=null?F_(U_(i)):{},Dc(e||!i||!i.__esModule?Jl(t,"default",{value:i,enumerable:!0}):t,i)),W_=i=>Dc(Jl({},"__esModule",{value:!0}),i);var U6={};j_(U6,{GridTypes:()=>co,InterfaceLanguage:()=>Tl.InterfaceLanguage,VERSION:()=>No,VKNumericLanguage:()=>Tl.VKNumericLanguage,VideoFormat:()=>ws.VideoFormat,VideoQuality:()=>ws.VideoQuality,loadVKLangPack:()=>Tl.loadVKLangPack,registerPlayerWebComponent:()=>z6});module.exports=W_(U6);function _e(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function Is(i){return i()}function $l(){return Object.create(null)}function et(i){i.forEach(Is)}function Ii(i){return typeof i=="function"}function z(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var xl;function Ts(i,e){return xl||(xl=document.createElement("a")),xl.href=e,i===xl.href}function Nc(i){return Object.keys(i).length===0}function Ut(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 xe(i){let e;return Ut(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Ut(e,t))}function Pe(i,e,t,n){if(i){let o=qc(i,e,t,n);return i[0](o)}}function qc(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Ie(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let 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=qc(e,t,n,l);i.p(r,o)}}function Ee(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function he(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Oc(i){return i??""}var Vo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var er=class i{_listeners="WeakMap"in Vo?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)}))}};er.entries="WeakMap"in Vo?new WeakMap:void 0;var Fc=!1;function Hc(){Fc=!0}function zc(){Fc=!1}function m(i,e){i.appendChild(e)}function Ce(i,e,t){let n=Uc(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,Y_(n,o)}}function Uc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function Y_(i,e){return m(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Ti(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 B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Me(i){return document.createTextNode(i)}function N(){return Me(" ")}function ut(){return Me("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function It(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ge(i,e){for(let t in e)c(i,t,e[t])}function Kc(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function hi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var tr;function Z_(){if(tr===void 0){tr=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{tr=!0}}return tr}function xo(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=Z_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=de(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function jc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Sn(i,e){return new i(e)}var uo;function eo(i){uo=i}function $o(){if(!uo)throw new Error("Function called outside component initialization");return uo}function Tt(i){$o().$$.on_mount.push(i)}function jn(i){$o().$$.on_destroy.push(i)}function el(i,e){return $o().$$.context.set(i,e),e}function tl(i){return $o().$$.context.get(i)}function Ll(){return $o().$$.context}function Vn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Lo=[];var pe=[],nl=[],As=[],Gc=Promise.resolve(),Ms=!1;function Vs(){Ms||(Ms=!0,Gc.then(ir))}function Wn(){return Vs(),Gc}function Gn(i){nl.push(i)}function Oe(i){As.push(i)}var Es=new Set,il=0;function ir(){if(il!==0)return;let i=uo;do{try{for(;il<Lo.length;){let e=Lo[il];il++,eo(e),th(e.$$)}}catch(e){throw Lo.length=0,il=0,e}for(eo(null),Lo.length=0,il=0;pe.length;)pe.pop()();for(let e=0;e<nl.length;e+=1){let t=nl[e];Es.has(t)||(Es.add(t),t())}nl.length=0}while(Lo.length);for(;As.length;)As.pop()();Ms=!1,Es.clear(),eo(i)}function th(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(Gn)}}function Qc(i){let e=[],t=[];nl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),nl=e}var nr=new Set,Ro;function ae(){Ro={r:0,c:[],p:Ro}}function ue(){Ro.r||et(Ro.c),Ro=Ro.p}function d(i,e){i&&i.i&&(nr.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(nr.has(i))return;nr.add(i),Ro.c.push(()=>{nr.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ct(i){return i?.length!==void 0?i:Array.from(i)}function Le(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 Yc(i){return typeof i=="object"&&i!==null?i:{}}var ih=["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"],nh=new Set([...ih]);function Fe(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 V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Gn(()=>{let l=i.$$.on_mount.map(Is).filter(Ii);i.$$.on_destroy?i.$$.on_destroy.push(...l):et(l),i.$$.on_mount=[]}),o.forEach(Gn)}function L(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 lh(i,e){i.$$.dirty[0]===-1&&(Lo.push(i),Vs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,l,r,a=[-1]){let s=uo;eo(i);let u=i.$$={fragment:null,ctx:[],props:l,update:_e,not_equal:o,bound:$l(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:$l(),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,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&lh(i,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Hc();let p=Kc(e.target);u.fragment&&u.fragment.l(p),p.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),zc(),ir()}eo(s)}var rh;typeof HTMLElement=="function"&&(rh=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){S(s,l,u)},d:function(s){s&&C(l)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=jc(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]=Zc(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]=Zc(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 Zc(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=_e}$on(e,t){if(!Ii(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&&!Nc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Xc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Xc);var DB=require("@vkontakte/videoplayer-core"),Yn=require("@vkontakte/videoplayer-shared"),Jp=require("@vkontakte/videoplayer-statistics");var ol=require("@vkontakte/videoplayer-shared");var sh={isMobile:void 0,defaultLanguage:ol.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:ol.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,audioLanguages:!1,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}},Jc=i=>(0,ol.fillWithDefault)(i,sh),xc=i=>el("ui-config",i),Ot=()=>tl("ui-config");var Rl="vk_player_debug_panel_opened";var $c="videoplayer",ef="videoplayer";var Zn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},tf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),nf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),of=new Set(["ShiftRight","ShiftLeft"]);var lf=["TIMELINE"],Bl=[...lf,"GRAPH_BUTTON"],Ls=[...lf,"PLAY_BUTTON"],or=[...Bl,"PLAY_BUTTON"];var co=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(co||{}),Do={xs:0,s:1,m:2,l:3,xl:4};var ll=[];function Ln(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=!ll.length;for(let u of n)u[1](),ll.push(u,i);if(s){for(let u=0;u<ll.length;u+=2)ll[u][0](ll[u+1]);ll.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 Ln(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=Ii(g)?g:_e},w=o.map((g,k)=>Ut(g,y=>{u[k]=y,f&=~(1<<k),s&&h()},()=>{f|=1<<k}));return s=!0,h(),function(){et(w),p(),s=!1}})}var Dl=require("@vkontakte/videoplayer-shared"),rf=require("@vkontakte/videoplayer-core"),sf=require("@vkontakte/videoplayer-statistics");var lr="prod",No="1.1.39-dev.e7a805cd.0";var rr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var af=Symbol("storeContext"),uf=Symbol("microStoresContext"),cf=(i,e)=>{el(af,i),el(uf,e),lr==="dev"&&(window.app={store:i,microStores:e})},ot=()=>{let i=tl(af);return(0,Dl.assertNonNullable)(i,"Store context is empty!"),i},qn=()=>{let i=tl(uf);return(0,Dl.assertNonNullable)(i,"MicroStores context is empty!"),i},kt=(i,e)=>Rs(i,i.getValue(),e),Rs=(i,e,t)=>Ln(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),ff=(i,e,t)=>{let n=i.info,{width:o,height:l}=xe(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${No} (core: ${rf.VERSION}, stat: ${sf.VERSION}, shared: ${Dl.VERSION})`,f=xe(t.state.errorLog$),p=f.length?`
7
- `+f.map((T,b)=>{let v=`${b}) Type: ${T.id}
8
- `,I=`Message: ${T.message} (${T.thrown})
9
- `,G=`Trace: ${T.thrown?.stack}
10
- `;return v+I+G}).join(`
11
- `):void 0,h=t.state.isAudioDisabled?"disabled":xe(t.state.isAudioAvailable$)?void 0:"unavailable",w=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),k=[];w&&k.push(`Video: ${w?.codec??""}`+(w?.hdr?" (HDR)":"")),g&&k.push(`Audio: ${g?.codec??""}`+(g?.language?` (${g.language})`:""));let y={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:xe(t.vsid),"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(", "),Streams:k.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${xe(t.state.positionExact$)}s`,State:`${xe(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${l}`,URL:window.location.href,Errors:p};return Object.entries(y).filter(([T,b])=>b!==void 0).map(([T,b])=>`${T}: ${b}`).join(`
12
- `)},df=(i,e,t)=>{let n=i.info,{width:o,height:l}=xe(t.ui.playerSize),r={version:No,viewport:`${o}x${l}`,volume:Math.round(xe(t.state.volume$)*100)};r.id=t.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),p=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();f&&(p&&h?r.buffer=f.end-h:r.buffer=Math.max(f.end-xe(t.state.positionExact$),0));let w=n.throughputEstimation$.getValue();w&&(r.speed=w);let g=n.videoBitrate$.getValue();g&&(r.bitrate=g);let k=n.currentVideoSegmentLength$.getValue();k&&(r.currentVideoSegmentLength=k);let y=n.currentAudioSegmentLength$.getValue();y&&(r.currentAudioSegmentLength=y);let T=xe(t.vsid);typeof T=="string"&&(r.vsid=T);let b=i.info.currentVideoStream$.getValue()?.codec;b&&(r.videoCodec=b);let v=i.info.currentAudioStream$.getValue()?.codec;v&&(r.audioCodec=v),i.info.currentVideoStream$.getValue()?.hdr&&(r.hdr=!0);let G=i.info.currentAudioStream$.getValue()?.language;return G&&(r.audioLanguage=G),r},mf=(i,e)=>rr(i,e,"mp4");var en=require("@vkontakte/videoplayer-shared"),s9=require("@vkontakte/videoplayer-core"),pf="vk_player_prefer_traffic_saving_enabled",_f="vk_player_preferred_volume",hf="vk_player_prefer_volume_mute",Bs="vk_player_preferred_quality",gf="vk_player_preferred_stream_language",bf="vk_player_preferred_rate",vf=i=>i>1?1:i<0?0:i,Ds=i=>en.safeStorage.set(_f,vf(i).toString(10)),sr=()=>{let i=en.safeStorage.get(_f);return(0,en.isNullable)(i)?void 0:vf(parseFloat(i))},yf=(i,e)=>en.safeStorage.set(Bs,JSON.stringify({videoId:i,value:e})),Ns=()=>en.safeStorage.remove(Bs),kf=i=>{let e=en.safeStorage.get(Bs);if((0,en.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ns();return}return n},wf=(i,e)=>{e?en.safeStorage.set(i,"true"):en.safeStorage.remove(i)},Cf=i=>en.safeStorage.get(i)==="true",ar=i=>wf(hf,i),Sf=()=>Cf(hf),Pf=i=>wf(pf,i),If=()=>Cf(pf),Tf=()=>en.safeStorage.get(gf),qs=i=>en.safeStorage.set(gf,i),Ef=i=>en.safeStorage.set(bf,JSON.stringify({rate:i})),Af=()=>{let i=en.safeStorage.get(bf);if((0,en.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var Ip=require("@vkontakte/videoplayer-core"),hs=require("@vkontakte/videoplayer-shared");function ah(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b=i[2].default,v=Pe(b,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]],G={};for(let q=0;q<I.length;q+=1)G=oe(G,I[q]);return{c(){e=B("svg"),v&&v.c(),t=B("g"),n=B("path"),o=B("path"),l=B("path"),r=B("path"),a=B("path"),s=B("defs"),u=B("filter"),f=B("feFlood"),p=B("feColorMatrix"),h=B("feOffset"),w=B("feGaussianBlur"),g=B("feColorMatrix"),k=B("feBlend"),y=B("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(w,"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(k,"in2","BackgroundImageFix"),c(k,"result","effect1_dropShadow_618_12297"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_618_12297"),c(y,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ge(e,G)},m(q,F){S(q,e,F),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,w),m(u,g),m(u,k),m(u,y),T=!0},p(q,[F]){v&&v.p&&(!T||F&2)&&Te(v,b,q,q[1],T?Ie(b,q[1],F,null):Ee(q[1]),null),ge(e,G=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},F&1&&q[0]]))},i(q){T||(d(v,q),T=!0)},o(q){_(v,q),T=!1},d(q){q&&C(e),v&&v.d(q)}}}function uh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Os=class extends U{constructor(e){super(),j(this,e,uh,ah,z,{})}},ur=Os;var rl=require("@vkontakte/videoplayer-shared");var ch={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",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",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",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",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_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\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"},Mf=ch;var fh={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",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",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",submenu_audio_languages:"Audio track",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_audio_languages:"Audio language: {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"},Vf=fh;var to=new Map;to.set(rl.InterfaceLanguage.EN,Vf);to.set(rl.InterfaceLanguage.RU,Mf);var Lf=new Map,Fs=({language:i,pack:e,fallback:t})=>{if(to.has(i)){let n=to.get(i);to.set(i,{...n,...e})}else to.set(i,e);Lf.set(i,t)},Hs=i=>to.has(i),zs=(i,e,t,n)=>{let l=to.get(i)?.[e];if((0,rl.isNullable)(l)){let r=Lf.get(i)??n;l=(r?to.get(r):void 0)?.[e]}return(0,rl.isNullable)(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,a)=>t[a]??""):l},K=(i,e)=>{let{interfaceLanguage$:t}=ot(),n=xe(t),o=Ot();return zs(n,i,e,o.defaultLanguage)};var T9=require("@vkontakte/videoplayer-core");var sl;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(sl||(sl={}));var dh=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,ph=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,cr="?",_h="X-Sentry-Auth",hh=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function gh(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=dh.exec(t[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||cr,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=ph.exec(t[l]))o={filename:n[2],function:n[1]||cr,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=mh.exec(t[l]))l===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||cr,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=cr),e.push(o)}return e.length?{value:Rf(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Rf(i){return(i&&i.message||"No error message").split(`
14
- `).filter(t=>!!t)[0]}function bh(i){try{let e=gh(i);if(e)return e}catch{}return{value:Rf(i),type:i&&i.name,stacktrace:{frames:[]}}}function vh(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var fr=class{constructor(e){if(e&&e.dsn){let t=hh.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:[bh(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(_h,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:vh(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Bf(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function yh(){return window}var dr=class i extends fr{constructor(e,t=yh()){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=>Bf(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=>Bf(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 qo=require("@vkontakte/videoplayer-shared");var mr=null,Oo=class{constructor(e,t,n={}){!mr&&e.dsn&&(this.sentryClient=new dr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new qo.Subscription,this.options=e,this.context=n,mr=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),mr=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:w}=t;if((0,qo.isNonNullable)(w)&&p.includes(w)||(0,qo.isNonNullable)(h)&&f.includes(h))return;if(Math.random()<=a||(0,qo.isNonNullable)(w)&&u.includes(w)||(0,qo.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?sl.fatal:sl.error),o.report(e)}catch(k){console.error(k)}}}static getInstance(){return mr}};var pr=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()},_r=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Df=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Nl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},fo=()=>!!Nl(),hr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},gr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Nf=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 Us=require("@vkontakte/videoplayer-shared"),qf=()=>({title:K("hotkey_map_modal_title"),closeBtnText:K("hotkey_map_modal_close_btn_text"),groups:[{title:K("hotkey_map_group_title_common"),items:[{description:K("hotkey_map_item_mute_description"),value:K("hotkey_map_item_mute_value")},{description:K("hotkey_map_item_volume_up_description"),value:K("hotkey_map_item_volume_up_value")},{description:K("hotkey_map_item_volume_down_description"),value:K("hotkey_map_item_volume_down_value")},{description:K("hotkey_map_item_pip_description"),value:K("hotkey_map_item_pip_value")},{description:K("hotkey_map_item_full_screen_description"),value:K("hotkey_map_item_full_screen_value")},{description:K("hotkey_map_item_show_context_menu_description"),value:K("hotkey_map_item_show_context_menu_value")},{description:K("hotkey_map_item_show_hotkey_map_description"),value:K("hotkey_map_item_show_hotkey_map_value")}]},{title:K("hotkey_map_group_title_playback"),items:[{description:K("hotkey_map_item_play_toggle_description"),value:K("hotkey_map_item_play_toggle_value")},{description:K("hotkey_map_item_seek_backward_description"),value:K("hotkey_map_item_seek_backward_value")},{description:K("hotkey_map_item_seek_forward_description"),value:K("hotkey_map_item_seek_forward_value")},{description:K("hotkey_map_item_fast_seek_backward_description"),value:K("hotkey_map_item_fast_seek_backward_value")},{description:K("hotkey_map_item_fast_seek_forward_description"),value:K("hotkey_map_item_fast_seek_forward_value")},{description:K("hotkey_map_item_rate_down_description"),value:K("hotkey_map_item_rate_down_value")},{description:K("hotkey_map_item_rate_up_description"),value:K("hotkey_map_item_rate_up_value")},{description:K("hotkey_map_item_prev_frame_description"),value:K("hotkey_map_item_prev_frame_value")},{description:K("hotkey_map_item_next_frame_description"),value:K("hotkey_map_item_next_frame_value")},{description:K("hotkey_map_item_jump_seek_description"),value:K("hotkey_map_item_jump_seek_value")}]},{title:K("hotkey_map_group_title_subtitles"),items:[{description:K("hotkey_map_item_subtitles_toggle_description"),value:K("hotkey_map_item_subtitles_toggle_value")}]},{title:K("hotkey_map_group_title_episodes"),items:[{description:K("hotkey_map_item_prev_episode_description"),value:(0,Us.isMacLike)()?K("hotkey_map_item_prev_episode_mac_value"):K("hotkey_map_item_prev_episode_pc_value")},{description:K("hotkey_map_item_next_episode_description"),value:(0,Us.isMacLike)()?K("hotkey_map_item_next_episode_mac_value"):K("hotkey_map_item_next_episode_pc_value")}]}]});var mo=require("@vkontakte/videoplayer-shared");var Fo=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,mo.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new mo.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,mo.getCurrentBrowser)().browser===mo.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){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 Ho(i){return i instanceof Fo}function kh(i){let e=ot();return Tt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Ws=class extends U{constructor(e){super(),j(this,e,kh,null,z,{})}},Of=Ws;var Ff=require("@vkontakte/videoplayer-shared");function wh(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 Ch(i){let e=K("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Me(e)},m(n,o){S(n,t,o)},p(n,o){o&3&&e!==(e=K("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ke(t,e)},d(n){n&&C(t)}}}function Sh(i){let e,t=K("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=P("div"),n=Me(t),o=N(),l=B("svg"),r=B("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){S(u,e,f),m(e,n),m(e,o),m(e,l),m(l,r),a||(s=de(e,"click",st(function(){Ii(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&C(e),a=!1,s()}}}function Ph(i){let e;function t(l,r){return l[3]?Sh:Ch}let n=t(i,-1),o=n(i);return{c(){e=P("div"),o.c(),c(e,"class","container svelte-1k4i25s"),O(e,"container-mobile",i[4]),O(e,"skippable",i[3])},m(l,r){S(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&&O(e,"container-mobile",l[4]),r&8&&O(e,"skippable",l[3])},i:_e,o:_e,d(l){l&&C(e),o.d()}}}function Ih(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=Ff.noop}=e,s=ot().ui.isMobile;H(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var Gs=class extends U{constructor(e){super(),j(this,e,Ih,Ph,z,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},wh)}},Hf=Gs;function Th(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 Eh(i){let e;return{c(){e=P("button"),e.textContent=`${K("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){S(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&C(e)}}}var Qs=class extends U{constructor(e){super(),j(this,e,null,Eh,z,{},Th)}},zf=Qs;function Ah(i){Ce(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
6
+ "use strict";var B_=Object.create;var Xl=Object.defineProperty;var D_=Object.getOwnPropertyDescriptor;var N_=Object.getOwnPropertyNames;var q_=Object.getPrototypeOf,O_=Object.prototype.hasOwnProperty;var F_=(t,e)=>{for(var i in e)Xl(t,i,{get:e[i],enumerable:!0})},Dc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of N_(e))!O_.call(t,o)&&o!==i&&Xl(t,o,{get:()=>e[o],enumerable:!(n=D_(e,o))||n.enumerable});return t};var Ss=(t,e,i)=>(i=t!=null?B_(q_(t)):{},Dc(e||!t||!t.__esModule?Xl(i,"default",{value:t,enumerable:!0}):i,t)),H_=t=>Dc(Xl({},"__esModule",{value:!0}),t);var q6={};F_(q6,{GridTypes:()=>fo,InterfaceLanguage:()=>Tl.InterfaceLanguage,VERSION:()=>Ro,VKNumericLanguage:()=>Tl.VKNumericLanguage,VideoFormat:()=>ks.VideoFormat,VideoQuality:()=>ks.VideoQuality,loadVKLangPack:()=>Tl.loadVKLangPack,registerPlayerWebComponent:()=>N6});module.exports=H_(q6);function _e(){}function oe(t,e){for(let i in e)t[i]=e[i];return t}function Ps(t){return t()}function xl(){return Object.create(null)}function et(t){t.forEach(Ps)}function Ii(t){return typeof t=="function"}function U(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Jl;function Is(t,e){return Jl||(Jl=document.createElement("a")),Jl.href=e,t===Jl.href}function Nc(t){return Object.keys(t).length===0}function Ot(t,...e){if(t==null){for(let n of e)n(void 0);return _e}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function $e(t){let e;return Ot(t,i=>e=i)(),e}function H(t,e,i){t.$$.on_destroy.push(Ot(e,i))}function Pe(t,e,i,n){if(t){let o=qc(t,e,i,n);return t[0](o)}}function qc(t,e,i,n){return t[1]&&n?oe(i.ctx.slice(),t[1](n(e))):i.ctx}function Ie(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));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(t,e,i,n,o,l){if(o){let r=qc(e,i,n,l);t.p(r,o)}}function Ee(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ge(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Oc(t){return t??""}var Eo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var $l=class t{_listeners="WeakMap"in Eo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),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 i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};$l.entries="WeakMap"in Eo?new WeakMap:void 0;var Fc=!1;function Hc(){Fc=!0}function zc(){Fc=!1}function m(t,e){t.appendChild(e)}function Se(t,e,i){let n=Uc(t);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=i,K_(n,o)}}function Uc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function K_(t,e){return m(t.head||t,e),e.sheet}function S(t,e,i){t.insertBefore(e,i||null)}function C(t){t.parentNode&&t.parentNode.removeChild(t)}function Ti(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function I(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ae(t){return document.createTextNode(t)}function D(){return Ae(" ")}function at(){return Ae("")}function de(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Et(t){return function(e){return e.preventDefault(),t.call(this,e)}}function st(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function be(t,e){for(let i in e)c(t,i,e[i])}function Kc(t){return Array.from(t.childNodes)}function Ke(t,e){e=""+e,t.data!==e&&(t.data=e)}function pi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var er;function j_(){if(er===void 0){er=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{er=!0}}return er}function Jo(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");let n=I("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=j_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=de(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),C(n)}}function q(t,e,i){t.classList.toggle(e,!!i)}function jc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function Cn(t,e){return new t(e)}var co;function eo(t){co=t}function xo(){if(!co)throw new Error("Function called outside component initialization");return co}function At(t){xo().$$.on_mount.push(t)}function jn(t){xo().$$.on_destroy.push(t)}function $o(t,e){return xo().$$.context.set(t,e),e}function el(t){return xo().$$.context.get(t)}function Ll(){return xo().$$.context}function An(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var Ao=[];var pe=[],il=[],Es=[],Gc=Promise.resolve(),As=!1;function Ms(){As||(As=!0,Gc.then(tr))}function Wn(){return Ms(),Gc}function Gn(t){il.push(t)}function Oe(t){Es.push(t)}var Ts=new Set,tl=0;function tr(){if(tl!==0)return;let t=co;do{try{for(;tl<Ao.length;){let e=Ao[tl];tl++,eo(e),X_(e.$$)}}catch(e){throw Ao.length=0,tl=0,e}for(eo(null),Ao.length=0,tl=0;pe.length;)pe.pop()();for(let e=0;e<il.length;e+=1){let i=il[e];Ts.has(i)||(Ts.add(i),i())}il.length=0}while(Ao.length);for(;Es.length;)Es.pop()();As=!1,Ts.clear(),eo(t)}function X_(t){if(t.fragment!==null){t.update(),et(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Gn)}}function Qc(t){let e=[],i=[];il.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),il=e}var ir=new Set,Mo;function ue(){Mo={r:0,c:[],p:Mo}}function ce(){Mo.r||et(Mo.c),Mo=Mo.p}function d(t,e){t&&t.i&&(ir.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(ir.has(t))return;ir.add(t),Mo.c.push(()=>{ir.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function wt(t){return t?.length!==void 0?t:Array.from(t)}function Le(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function Yc(t){return typeof t=="object"&&t!==null?t:{}}var J_=["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"],x_=new Set([...J_]);function Fe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function R(t){t&&t.c()}function M(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),Gn(()=>{let l=t.$$.on_mount.map(Ps).filter(Ii);t.$$.on_destroy?t.$$.on_destroy.push(...l):et(l),t.$$.on_mount=[]}),o.forEach(Gn)}function V(t,e){let i=t.$$;i.fragment!==null&&(Qc(i.after_update),et(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function e2(t,e){t.$$.dirty[0]===-1&&(Ao.push(t),Ms(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function W(t,e,i,n,o,l,r,a=[-1]){let s=co;eo(t);let u=t.$$={fragment:null,ctx:[],props:l,update:_e,not_equal:o,bound:xl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:xl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&e2(t,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Hc();let p=Kc(e.target);u.fragment&&u.fragment.l(p),p.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),M(t,e.target,e.anchor),zc(),tr()}eo(s)}var t2;typeof HTMLElement=="function"&&(t2=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(t,e,i){super(),this.$$componentCtor=t,this.$$slots=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$listeners[t]=this.$$listeners[t]||[],this.$$listeners[t].push(e),this.$$component){let n=this.$$component.$on(t,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),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){S(s,l,u)},d:function(s){s&&C(l)}}}};var t=e;if(await Promise.resolve(),!this.$$connected)return;let i={},n=jc(this);for(let o of this.$$slots)o in n&&(i[o]=[e(o)]);for(let o of this.attributes){let l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=Zc(l,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:i,$$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(t,e,i){this.$$reflecting||(t=this.$$get_prop_name(t),this.$$data[t]=Zc(t,i,this.$$props_definition,"toProp"),this.$$component?.$set({[t]:this.$$data[t]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(t){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===t||!this.$$props_definition[e].attribute&&e.toLowerCase()===t)||t}});function Zc(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])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 K=class{$$=void 0;$$set=void 0;$destroy(){V(this,1),this.$destroy=_e}$on(e,i){if(!Ii(i))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Nc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Xc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Xc);var EB=require("@vkontakte/videoplayer-core"),Yn=require("@vkontakte/videoplayer-shared"),Gp=require("@vkontakte/videoplayer-statistics");var nl=require("@vkontakte/videoplayer-shared");var i2={isMobile:void 0,defaultLanguage:nl.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:nl.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,audioLanguages:!1,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}},Jc=t=>(0,nl.fillWithDefault)(t,i2),xc=t=>$o("ui-config",t),Dt=()=>el("ui-config");var Rl="vk_player_debug_panel_opened";var $c="videoplayer",ef="videoplayer";var Zn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},tf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),nf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),of=new Set(["ShiftRight","ShiftLeft"]);var lf=["TIMELINE"],Bl=[...lf,"GRAPH_BUTTON"],Vs=[...lf,"PLAY_BUTTON"],nr=[...Bl,"PLAY_BUTTON"];var fo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(fo||{}),Lo={xs:0,s:1,m:2,l:3,xl:4};var ol=[];function On(t,e){return{subscribe:De(t,e).subscribe}}function De(t,e=_e){let i,n=new Set;function o(a){if(U(t,a)&&(t=a,i)){let s=!ol.length;for(let u of n)u[1](),ol.push(u,t);if(s){for(let u=0;u<ol.length;u+=2)ol[u][0](ol[u+1]);ol.length=0}}}function l(a){o(a(t))}function r(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||_e),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Ei(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return On(i,(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=Ii(g)?g:_e},k=o.map((g,w)=>Ot(g,b=>{u[w]=b,f&=~(1<<w),s&&h()},()=>{f|=1<<w}));return s=!0,h(),function(){et(k),p(),s=!1}})}var Dl=require("@vkontakte/videoplayer-shared"),rf=require("@vkontakte/videoplayer-core"),sf=require("@vkontakte/videoplayer-statistics");var or="prod",Ro="1.1.39-dev.f8b1be6a.0";var lr=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var af=Symbol("storeContext"),uf=Symbol("microStoresContext"),cf=(t,e)=>{$o(af,t),$o(uf,e),or==="dev"&&(window.app={store:t,microStores:e})},nt=()=>{let t=el(af);return(0,Dl.assertNonNullable)(t,"Store context is empty!"),t},Fn=()=>{let t=el(uf);return(0,Dl.assertNonNullable)(t,"MicroStores context is empty!"),t},vt=(t,e)=>Ls(t,t.getValue(),e),Ls=(t,e,i)=>On(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),ff=(t,e,i)=>{let n=t.info,{width:o,height:l}=$e(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Ro} (core: ${rf.VERSION}, stat: ${sf.VERSION}, shared: ${Dl.VERSION})`,f=$e(i.state.errorLog$),p=f.length?`
7
+ `+f.map((T,v)=>{let y=`${v}) Type: ${T.id}
8
+ `,P=`Message: ${T.message} (${T.thrown})
9
+ `,Z=`Trace: ${T.thrown?.stack}
10
+ `;return y+P+Z}).join(`
11
+ `):void 0,h=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",k=t.info.currentVideoStream$.getValue(),g=t.info.currentAudioStream$.getValue(),w=[];k&&w.push(`Video: ${k?.codec??""}`+(k?.hdr?" (HDR)":"")),g&&w.push(`Audio: ${g?.codec??""}`+(g?.language?` (${g.language})`:""));let b={Version:u,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:$e(i.vsid),"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(", "),Streams:w.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${$e(i.state.positionExact$)}s`,State:`${$e(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${l}`,URL:window.location.href,Errors:p};return Object.entries(b).filter(([T,v])=>v!==void 0).map(([T,v])=>`${T}: ${v}`).join(`
12
+ `)},df=(t,e,i)=>{let n=t.info,{width:o,height:l}=$e(i.ui.playerSize),r={version:Ro,viewport:`${o}x${l}`,volume:Math.round($e(i.state.volume$)*100)};r.id=i.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),p=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();f&&(p&&h?r.buffer=f.end-h:r.buffer=Math.max(f.end-$e(i.state.positionExact$),0));let k=n.throughputEstimation$.getValue();k&&(r.speed=k);let g=n.videoBitrate$.getValue();g&&(r.bitrate=g);let w=n.currentVideoSegmentLength$.getValue();w&&(r.currentVideoSegmentLength=w);let b=n.currentAudioSegmentLength$.getValue();b&&(r.currentAudioSegmentLength=b);let T=$e(i.vsid);typeof T=="string"&&(r.vsid=T);let v=t.info.currentVideoStream$.getValue()?.codec;v&&(r.videoCodec=v);let y=t.info.currentAudioStream$.getValue()?.codec;y&&(r.audioCodec=y),t.info.currentVideoStream$.getValue()?.hdr&&(r.hdr=!0);let Z=t.info.currentAudioStream$.getValue()?.language;return Z&&(r.audioLanguage=Z),r},mf=(t,e)=>lr(t,e,"mp4");var tn=require("@vkontakte/videoplayer-shared"),i9=require("@vkontakte/videoplayer-core"),pf="vk_player_prefer_traffic_saving_enabled",_f="vk_player_preferred_volume",hf="vk_player_prefer_volume_mute",Rs="vk_player_preferred_quality",gf="vk_player_preferred_stream_language",bf="vk_player_preferred_rate",vf=t=>t>1?1:t<0?0:t,Bs=t=>tn.safeStorage.set(_f,vf(t).toString(10)),rr=()=>{let t=tn.safeStorage.get(_f);return(0,tn.isNullable)(t)?void 0:vf(parseFloat(t))},yf=(t,e)=>tn.safeStorage.set(Rs,JSON.stringify({videoId:t,value:e})),Ds=()=>tn.safeStorage.remove(Rs),kf=t=>{let e=tn.safeStorage.get(Rs);if((0,tn.isNullable)(e))return;let{videoId:i,value:n}=JSON.parse(e);if(t!==i){Ds();return}return n},wf=(t,e)=>{e?tn.safeStorage.set(t,"true"):tn.safeStorage.remove(t)},Cf=t=>tn.safeStorage.get(t)==="true",sr=t=>wf(hf,t),Sf=()=>Cf(hf),Pf=t=>wf(pf,t),If=()=>Cf(pf),Tf=()=>tn.safeStorage.get(gf),Ns=t=>tn.safeStorage.set(gf,t),Ef=t=>tn.safeStorage.set(bf,JSON.stringify({rate:t})),Af=()=>{let t=tn.safeStorage.get(bf);if((0,tn.isNullable)(t))return;let{rate:e}=JSON.parse(t);return e};var Cp=require("@vkontakte/videoplayer-core"),_s=require("@vkontakte/videoplayer-shared");function n2(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v=t[2].default,y=Pe(v,t,t[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},t[0]],Z={};for(let N=0;N<P.length;N+=1)Z=oe(Z,P[N]);return{c(){e=B("svg"),y&&y.c(),i=B("g"),n=B("path"),o=B("path"),l=B("path"),r=B("path"),a=B("path"),s=B("defs"),u=B("filter"),f=B("feFlood"),p=B("feColorMatrix"),h=B("feOffset"),k=B("feGaussianBlur"),g=B("feColorMatrix"),w=B("feBlend"),b=B("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(i,"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(k,"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(w,"in2","BackgroundImageFix"),c(w,"result","effect1_dropShadow_618_12297"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_618_12297"),c(b,"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,Z)},m(N,z){S(N,e,z),y&&y.m(e,null),m(e,i),m(i,n),m(i,o),m(i,l),m(i,r),m(i,a),m(e,s),m(s,u),m(u,f),m(u,p),m(u,h),m(u,k),m(u,g),m(u,w),m(u,b),T=!0},p(N,[z]){y&&y.p&&(!T||z&2)&&Te(y,v,N,N[1],T?Ie(v,N[1],z,null):Ee(N[1]),null),be(e,Z=Le(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},z&1&&N[0]]))},i(N){T||(d(y,N),T=!0)},o(N){_(y,N),T=!1},d(N){N&&C(e),y&&y.d(N)}}}function o2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var qs=class extends K{constructor(e){super(),W(this,e,o2,n2,U,{})}},ar=qs;var ll=require("@vkontakte/videoplayer-shared");var l2={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",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",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",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",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_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\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"},Mf=l2;var r2={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",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",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",submenu_audio_languages:"Audio track",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_audio_languages:"Audio language: {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"},Vf=r2;var to=new Map;to.set(ll.InterfaceLanguage.EN,Vf);to.set(ll.InterfaceLanguage.RU,Mf);var Lf=new Map,Os=({language:t,pack:e,fallback:i})=>{if(to.has(t)){let n=to.get(t);to.set(t,{...n,...e})}else to.set(t,e);Lf.set(t,i)},Fs=t=>to.has(t),Hs=(t,e,i,n)=>{let l=to.get(t)?.[e];if((0,ll.isNullable)(l)){let r=Lf.get(t)??n;l=(r?to.get(r):void 0)?.[e]}return(0,ll.isNullable)(l)?e+Object.values(i??{}).join(" "):i?l.replaceAll(/{(\w+?)}/g,(r,a)=>i[a]??""):l},j=(t,e)=>{let{interfaceLanguage$:i}=nt(),n=$e(i),o=Dt();return Hs(n,t,e,o.defaultLanguage)};var w9=require("@vkontakte/videoplayer-core");var rl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(rl||(rl={}));var s2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,u2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ur="?",c2="X-Sentry-Auth",f2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function d2(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
13
+ `),n,o;for(let l=0;l<i.length;++l){if(n=s2.exec(i[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||ur,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=u2.exec(i[l]))o={filename:n[2],function:n[1]||ur,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=a2.exec(i[l]))l===0&&!n[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),o={filename:n[3],function:n[1]||ur,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=ur),e.push(o)}return e.length?{value:Rf(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Rf(t){return(t&&t.message||"No error message").split(`
14
+ `).filter(i=>!!i)[0]}function m2(t){try{let e=d2(t);if(e)return e}catch{}return{value:Rf(t),type:t&&t.name,stacktrace:{frames:[]}}}function p2(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var cr=class{constructor(e){if(e&&e.dsn){let i=f2.exec(e.dsn),n=i?i.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:[m2(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(c2,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:p2(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Bf(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function _2(){return window}var fr=class t extends cr{constructor(e,i=_2()){super(e),this.options=e,this.window=i,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,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(n=>Bf(i,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${i}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(n=>Bf(i,n)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((i,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],a=Array.isArray(r)?r:null;return{...i,[n]:l||a?[...l||[],...a||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};var Bo=require("@vkontakte/videoplayer-shared");var dr=null,Do=class{constructor(e,i,n={}){!dr&&e.dsn&&(this.sentryClient=new fr({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Bo.Subscription,this.options=e,this.context=n,dr=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),dr=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},n={}){let{sentryClient:o,context:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:h,category:k}=i;if((0,Bo.isNonNullable)(k)&&p.includes(k)||(0,Bo.isNonNullable)(h)&&f.includes(h))return;if(Math.random()<=a||(0,Bo.isNonNullable)(k)&&u.includes(k)||(0,Bo.isNonNullable)(h)&&s.includes(h)){Object.keys(i).length&&o.setTags({version:this.version,...i}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{h&&o.captureMessage(h,i.fatal?rl.fatal:rl.error),o.report(e)}catch(w){console.error(w)}}}static getInstance(){return dr}};var mr=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},pr=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Df=t=>{let e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Nl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},mo=()=>!!Nl(),_r=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},hr=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Nf=t=>{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")(t))};var zs=require("@vkontakte/videoplayer-shared"),qf=()=>({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:zs.CC.isApple?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:zs.CC.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});var sl=require("@vkontakte/videoplayer-shared");var No=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,sl.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new sl.ValueSubject(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!sl.CC.isYandex}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 qo(t){return t instanceof No}function h2(t){let e=nt();return At(()=>{e.getAdmanWrapper().startPostroll()}),[]}var js=class extends K{constructor(e){super(),W(this,e,h2,null,U,{})}},Of=js;var Ff=require("@vkontakte/videoplayer-shared");function g2(t){Se(t,"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 b2(t){let e=j("skip_ads_after",{time:Math.ceil(t[1]-t[0]).toFixed(0)})+"",i;return{c(){i=Ae(e)},m(n,o){S(n,i,o)},p(n,o){o&3&&e!==(e=j("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ke(i,e)},d(n){n&&C(i)}}}function v2(t){let e,i=j("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=I("div"),n=Ae(i),o=D(),l=B("svg"),r=B("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){S(u,e,f),m(e,n),m(e,o),m(e,l),m(l,r),a||(s=de(e,"click",st(function(){Ii(t[2])&&t[2].apply(this,arguments)})),a=!0)},p(u,f){t=u},d(u){u&&C(e),a=!1,s()}}}function y2(t){let e;function i(l,r){return l[3]?v2:b2}let n=i(t,-1),o=n(t);return{c(){e=I("div"),o.c(),c(e,"class","container svelte-1k4i25s"),q(e,"container-mobile",t[4]),q(e,"skippable",t[3])},m(l,r){S(l,e,r),o.m(e,null)},p(l,[r]){n===(n=i(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&q(e,"container-mobile",l[4]),r&8&&q(e,"skippable",l[3])},i:_e,o:_e,d(l){l&&C(e),o.d()}}}function k2(t,e,i){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=Ff.noop}=e,s=nt().ui.isMobile;H(t,s,f=>i(4,n=f));let u;return t.$$set=f=>{"position"in f&&i(0,o=f.position),"secondsToWatchBeforeSkip"in f&&i(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&i(2,r=f.skipAd)},t.$$.update=()=>{if(t.$$.dirty&3)e:i(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var Ws=class extends K{constructor(e){super(),W(this,e,k2,y2,U,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},g2)}},Hf=Ws;function w2(t){Se(t,"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 C2(t){let e;return{c(){e=I("button"),e.textContent=`${j("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(i,n){S(i,e,n)},p:_e,i:_e,o:_e,d(i){i&&C(e)}}}var Gs=class extends K{constructor(e){super(),W(this,e,null,C2,U,{},w2)}},zf=Gs;function S2(t){Se(t,"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,17 +21,17 @@
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 Uf(i){let e;return{c(){e=P("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function Kf(i){let e,t;return e=new Hf({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function jf(i){let e,t;return e=new Of({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Wf(i){let e,t;return e=new zf({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Mh(i){let e,t,n,o,l,r,a,s=i[0]&&Uf(i),u=i[3]&&Kf(i),f=i[7]&&jf(i),p=i[4]&&Wf(i);return{c(){e=P("div"),s&&s.c(),t=N(),n=P("video"),o=N(),u&&u.c(),l=N(),f&&f.c(),r=N(),p&&p.c(),hi(n,"width","100%"),hi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,w){S(h,e,w),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,[w]){h[0]?s||(s=Uf(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,w),w&8&&d(u,1)):(u=Kf(h),u.c(),d(u,1),u.m(e,l)):u&&(ae(),_(u,1,1,()=>{u=null}),ue()),h[7]?f?w&128&&d(f,1):(f=jf(h),f.c(),d(f,1),f.m(e,r)):f&&(ae(),_(f,1,1,()=>{f=null}),ue()),h[4]?p?w&16&&d(p,1):(p=Wf(h),p.c(),d(p,1),p.m(e,null)):p&&(ae(),_(p,1,1,()=>{p=null}),ue())},i(h){a||(d(u),d(f),d(p),a=!0)},o(h){_(u),_(f),_(p),a=!1},d(h){h&&C(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function Vh(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=ot(),w=h.state.isEnded$;H(i,w,D=>t(7,a=D));let g=h.ui.isMobile;H(i,g,D=>t(0,o=D));let k,y,T=!1,b=h.ads.playbackState;H(i,b,D=>t(18,n=D));let v=h.ads.canSkip,I=h.ads.position;H(i,I,D=>t(5,l=D));let G=h.ads.secondsToWatchBeforeSkip;H(i,G,D=>t(6,r=D));let q,F;Tt(()=>{let D=new AbortController,A=()=>{D.abort()},$=h.getAdmanWrapper();if(!s){$.onAdmanLoadingError();return}let{width:Y,height:X}=xe(h.ui.playerSize),W=xe(h.ui.isFullscreen),ne=xe(h.ui.isAutoplay),E={width:Y,height:X,isFullscreen:W,isAutoplay:ne,adsContainer:k,adsVideoElement:y,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?($.initAdman(E),T=!0):$.loadAdman(D.signal).then(()=>{$.initAdman(E),T=!0}).catch(()=>{$.onAdmanLoadingError()}),()=>{!T&&A()}});function fe(D){pe[D?"unshift":"push"](()=>{y=D,t(2,y)})}function re(D){pe[D?"unshift":"push"](()=>{k=D,t(1,k)})}return i.$$set=D=>{"adsSlotId"in D&&t(14,s=D.adsSlotId),"adsParams"in D&&t(15,u=D.adsParams),"adsPreviewParam"in D&&t(16,f=D.adsPreviewParam),"duration"in D&&t(17,p=D.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,q=v&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,F=o&&n!=="inactive")},[o,k,y,q,F,l,r,a,h,w,g,b,I,G,s,u,f,p,n,fe,re]}var Ys=class extends U{constructor(e){super(),j(this,e,Vh,Mh,z,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Ah)}},br=Ys;var Rn=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 Lh(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("path"),c(t,"fill","none"),c(t,"stroke","#fff"),c(t,"stroke-width","2"),c(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),ge(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function Rh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Zs=class extends U{constructor(e){super(),j(this,e,Rh,Lh,z,{})}},Gf=Zs;function Bh(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("rect"),n=B("path"),c(t,"width","42"),c(t,"height","20"),c(t,"fill","#FF3347"),c(t,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function Dh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Xs=class extends U{constructor(e){super(),j(this,e,Dh,Bh,z,{})}},Qf=Xs;function Nh(i){let e,t;return e=new Gf({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function qh(i){let e,t;return e=new Qf({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Oh(i){let e,t,n,o,l=[qh,Nh],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=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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&&C(n),r[e].d(s)}}}function Fh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Js=class extends U{constructor(e){super(),j(this,e,Fh,Oh,z,{isActive:0})}},vr=Js;function Hh(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 zh(i){let e=Rn(i[4]-i[3])+"",t;return{c(){t=Me(e)},m(n,o){S(n,t,o)},p(n,o){o&24&&e!==(e=Rn(n[4]-n[3])+"")&&Ke(t,e)},i:_e,o:_e,d(n){n&&C(t)}}}function Uh(i){let e,t,n;return t=new vr({props:{isActive:!0}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,l){S(o,e,l),V(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&&C(e),L(t)}}}function Kh(i){let e,t,n,o,l,r,a,s=[Uh,zh],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=N(),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"),O(e,"live",i[1]),O(e,"hidden",i[0]),O(e,"playing",i[2])},m(p,h){S(p,e,h),m(e,t),m(e,n),m(e,o),u[l].m(o,null),a=!0},p(p,[h]){let w=l;l=f(p,h),l===w?u[l].p(p,h):(ae(),_(u[w],1,1,()=>{u[w]=null}),ue(),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)&&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(r),a=!0)},o(p){_(r),a=!1},d(p){p&&C(e),u[l].d()}}}function jh(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 xs=class extends U{constructor(e){super(),j(this,e,jh,Kh,z,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},Hh)}},yr=xs;var al=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 $s=require("@vkontakte/videoplayer-core");var Zf=require("@vkontakte/videoplayer-shared"),Wh=(0,Zf.isAndroid)(),Uo=i=>{i.stopPropagation(),i.preventDefault()},Gh=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},Qh=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},Yh=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Zh=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Xf=i=>i.code==="Escape",Xh=i=>i.code==="ArrowLeft",Jf=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},xf=i=>{if(Yh(i)){Uo(i),Qh(i.target);return}Zh(i)&&(Uo(i),Gh(i.target))},cl=i=>i?.detail===0||Wh&&i?.pointerType==="",fl=async(i,e,t)=>{await Wn(),i&&!i.classList.contains("opened")&&!e&&xe(t)&&(await Wn(),t.set(!1),i.focus())},$f=async(i,e,t)=>{await Wn(),i&&!e&&xe(t)&&(t.set(!1),i.focus())},Ko=async(i,e,t)=>{await Wn(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)},dl=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},kr=(i,e)=>{xf(i),Xf(i)&&(Uo(i),e())},ml=async(i,e,t)=>{Jf(i,!1)&&(Uo(i),e(),await Wn(),t()?.focus())},pl=async(i,e,t,n)=>{if(xf(i),Xh(i)){Uo(i),e(),t.set(!0);return}Xf(i)&&(Uo(i),n())},gi=(i,e)=>{Jf(i)&&(Uo(i),e())},e1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},t1=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 ql=require("@vkontakte/videoplayer-shared");function Jh(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 i1(i){let e,t,n,o,l,r,a,s,u,f,p=(i[10].features.saveDebugInfoToFile?K("menu_save_debug"):K("menu_copy_debug"))+"",h,w,g,k,y=K("menu_debug_overlay")+"",T,b,v,I,G=i[10].features.copyVideoLink&&i[9].callbacks?.onCopyVideoLink&&xh(i),q=i[19]&&$h(i),F=i[12]&&i[6]!==$s.ChromecastState.CONNECTED&&!i[17]&&o1(i);function fe(Y,X){return Y[4]?t2:e2}let re=fe(i,[-1,-1]),D=re(i),A=i[10].features.videoRotate&&!i[17]&&i2(i),$=i[10].showSupport&&!i[7]&&l1(i);return{c(){e=P("ul"),G&&G.c(),t=N(),q&&q.c(),n=N(),F&&F.c(),o=N(),l=P("li"),D.c(),a=N(),A&&A.c(),s=N(),$&&$.c(),u=N(),f=P("li"),h=Me(p),g=N(),k=P("li"),T=Me(y),c(l,"tabindex","0"),c(l,"role","menuitem"),c(l,"aria-label",r=K("aria_label_menu_loop")),c(l,"class","svelte-1vzqlps"),c(f,"tabindex","0"),c(f,"role","menuitem"),c(f,"aria-label",w=i[10].features.saveDebugInfoToFile?K("menu_save_debug"):K("menu_copy_debug")),c(f,"class","svelte-1vzqlps"),c(k,"tabindex","0"),c(k,"role","menuitem"),c(k,"aria-label",b=i[8]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable")),c(k,"class","svelte-1vzqlps"),c(e,"role","menu"),hi(e,"top",i[3]+"px"),hi(e,"left",i[2]+"px"),c(e,"class","svelte-1vzqlps")},m(Y,X){S(Y,e,X),G&&G.m(e,null),m(e,t),q&&q.m(e,null),m(e,n),F&&F.m(e,null),m(e,o),m(e,l),D.m(l,null),m(e,a),A&&A.m(e,null),m(e,s),$&&$.m(e,null),m(e,u),m(e,f),m(f,h),m(e,g),m(e,k),m(k,T),i[46](e),v||(I=[de(l,"click",st(i[25])),de(l,"keydown",i[37]),de(f,"click",st(i[22])),de(f,"keydown",i[34]),de(k,"click",st(i[23])),de(k,"keydown",i[35]),de(e,"contextmenu",It(i[43])),de(e,"keydown",i[28])],v=!0)},p(Y,X){Y[10].features.copyVideoLink&&Y[9].callbacks?.onCopyVideoLink&&G.p(Y,X),Y[19]&&q.p(Y,X),Y[12]&&Y[6]!==$s.ChromecastState.CONNECTED&&!Y[17]?F?F.p(Y,X):(F=o1(Y),F.c(),F.m(e,o)):F&&(F.d(1),F=null),re===(re=fe(Y,X))&&D?D.p(Y,X):(D.d(1),D=re(Y),D&&(D.c(),D.m(l,null))),Y[10].features.videoRotate&&!Y[17]&&A.p(Y,X),Y[10].showSupport&&!Y[7]?$?$.p(Y,X):($=l1(Y),$.c(),$.m(e,u)):$&&($.d(1),$=null),X[0]&256&&b!==(b=Y[8]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable"))&&c(k,"aria-label",b),X[0]&8&&hi(e,"top",Y[3]+"px"),X[0]&4&&hi(e,"left",Y[2]+"px")},d(Y){Y&&C(e),G&&G.d(),q&&q.d(),F&&F.d(),D.d(),A&&A.d(),$&&$.d(),i[46](null),v=!1,et(I)}}}function xh(i){let e,t=K("menu_copy_video_link")+"",n,o,l,r,a,s,u=!i[5]&&!i[17]&&n1(i);return{c(){e=P("li"),n=Me(t),l=N(),u&&u.c(),r=ut(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=K("menu_copy_video_link")),c(e,"class","svelte-1vzqlps")},m(f,p){S(f,e,p),m(e,n),S(f,l,p),u&&u.m(f,p),S(f,r,p),a||(s=[de(e,"click",st(i[44])),de(e,"keydown",i[29])],a=!0)},p(f,p){!f[5]&&!f[17]?u?u.p(f,p):(u=n1(f),u.c(),u.m(r.parentNode,r)):u&&(u.d(1),u=null)},d(f){f&&(C(e),C(l),C(r)),u&&u.d(f),a=!1,et(s)}}}function n1(i){let e,t=K("menu_copy_video_link_with_timestamp")+"",n,o,l,r;return{c(){e=P("li"),n=Me(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=K("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(i[45])),de(e,"keydown",i[30])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function $h(i){let e,t=K("menu_copy_embed_code")+"",n,o,l,r;return{c(){e=P("li"),n=Me(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=K("menu_copy_embed_code")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(i[26])),de(e,"keydown",i[36])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function o1(i){let e,t=K("menu_pip")+"",n,o,l,r;return{c(){e=P("li"),n=Me(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=K("menu_pip")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(i[24])),de(e,"keydown",i[31])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function e2(i){let e=K("menu_video_loop_on")+"",t;return{c(){t=Me(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function t2(i){let e=K("menu_video_loop_off")+"",t;return{c(){t=Me(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function i2(i){let e,t=K("menu_video_rotate")+"",n,o,l,r;return{c(){e=P("li"),n=Me(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=K("aria_label_menu_rotate")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(i[20])),de(e,"keydown",i[32])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function l1(i){let e,t=K("menu_report")+"",n,o,l,r;return{c(){e=P("li"),n=Me(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(i[21])),de(e,"keydown",i[33])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function n2(i){let e,t=i[1]&&i1(i);return{c(){t&&t.c(),e=ut()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=i1(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:_e,o:_e,d(n){n&&C(e),t&&t.d(n)}}}function o2(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:w=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:k}=e,y=0,T=0,b=ot(),v=Ot(),I=b.ui.contextMenu.visible$,G=b.ui.debugPanelVisible;H(i,G,le=>t(8,s=le));let q=b.webApi.pictureInPictureApi,F=b.webApi.pictureInPictureApi?.info.isActive$;H(i,F,le=>t(7,a=le));let fe=b.state.chromecastState$;H(i,fe,le=>t(6,r=le));let re=b.state.isLive$;H(i,re,le=>t(5,l=le));let D=b.state.positionExact$;H(i,D,le=>t(47,n=le));let A=b.state.isInteractive,$=b.state.looped$;H(i,$,le=>t(4,o=le));let Y=!!b.callbacks?.onCopyEmbedCodeClicked,X=()=>{I.set(!1)},W=(le,Ne)=>{if(!g||!h||!w)return;let Ae=g.getBoundingClientRect(),Ue=h.getBoundingClientRect();t(2,y=le-Ue.left),t(3,T=Ne-Ue.top),y+Ae.width>Ue.width&&t(2,y=Ue.width-Ae.width),T+Ae.height>Ue.height&&t(3,T=Ue.height-Ae.height),t(2,y=Math.max(y,0)),t(3,T=Math.max(T,0))},ne=()=>{X(),b.actions.internal.videoRotate()},E=()=>{window.open(f,"_blank"),X(),b.actions.internal.pause()},Q=()=>{let le=b.actions.internal.getDebugTextData();if(v.features.saveDebugInfoToFile){let Ne=new Blob([...le],{type:"plain/text"}),Ae=window.URL.createObjectURL(Ne);rr(Ae,"vk_player_debug_info","txt")}else al(b.actions.internal.getDebugTextData());X(),k?.()},Be=()=>{G.set(!0),X(),k?.()},je=async()=>{try{q?.isActive()?await q?.remove():await q?.request()}finally{X(),k?.()}},Qe=()=>{b.actions.internal.setLooped(!o),X()},Xe=()=>{if(Y){let le=b.callbacks?.onCopyEmbedCodeClicked?.();le&&al(le)}X()},qe=(le=!1)=>{if(b.callbacks?.onCopyVideoLink){let Ne=b.callbacks?.onCopyVideoLink(le,n);Ne&&al(Ne)}X()},ye=le=>{kr(le,X)},J=le=>{gi(le,()=>qe())},we=le=>{gi(le,()=>qe(!0))},We=le=>{gi(le,()=>je())},$e=le=>{gi(le,()=>ne())},it=le=>{gi(le,()=>E())},ke=le=>{gi(le,()=>Q())},Re=le=>{gi(le,()=>Be())},Ge=le=>{gi(le,()=>Xe())},Je=le=>{gi(le,()=>Qe())};function Se(le){Vn.call(this,i,le)}let se=()=>qe(),ze=()=>qe(!0);function me(le){pe[le?"unshift":"push"](()=>{g=le,t(0,g)})}return i.$$set=le=>{"visible"in le&&t(1,u=le.visible),"supportLink"in le&&t(38,f=le.supportLink),"position"in le&&t(39,p=le.position),"playerContainerRef"in le&&t(40,h=le.playerContainerRef),"controlsContainerRef"in le&&t(41,w=le.controlsContainerRef),"menuElementRef"in le&&t(0,g=le.menuElementRef),"returnFocus"in le&&t(42,k=le.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&1792){e:if(g&&h&&w){let{top:le,left:Ne,bottom:Ae,right:Ue}=p,at=Ne??0,ve=le??0,dt=g.getBoundingClientRect();(0,ql.isNullable)(Ne)&&!(0,ql.isNullable)(Ue)&&(at=Ue-dt.width),(0,ql.isNullable)(le)&&!(0,ql.isNullable)(Ae)&&(ve=Ae-dt.height),at=Math.max(at,0),ve=Math.max(ve,0),W(at,ve)}}},[g,u,y,T,o,l,r,a,s,b,v,G,q,F,fe,re,D,A,$,Y,ne,E,Q,Be,je,Qe,Xe,qe,ye,J,we,We,$e,it,ke,Re,Ge,Je,f,p,h,w,k,Se,se,ze,me]}var ea=class extends U{constructor(e){super(),j(this,e,o2,n2,z,{visible:1,supportLink:38,position:39,playerContainerRef:40,controlsContainerRef:41,menuElementRef:0,returnFocus:42},Jh,[-1,-1])}},r1=ea;var wr=class{constructor(e){this.value=e,this.next=null}};var _l=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new wr(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 l2(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 r2(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){S(n,e,o),m(e,t),i[3](t)},p:_e,i:_e,o:_e,d(n){n&&C(e),i[3](null)}}}var ta=16,ia=120,s1=60;function s2(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function a2(i,e,t){let{values:n=[]}=e,o,l,r=ia/s1;Tt(()=>{t(0,o.width=ia,o),t(0,o.height=ta,o),t(2,l=o.getContext("2d"))});function a(s){pe[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6)e:{let s="";if(l){let u=n[0];for(let p=1;p<n.length;p++)n[p]>u&&(u=n[p]);l.clearRect(0,0,ia,ta);let f=s1-1;for(let p=n.length-1;p>=0;p--){let h=f*r,w=u>0?ta*(n[p]/u):0;s2(l,h,0,r,w),s=w+" "+s,f--}}}},[o,n,l,a]}var na=class extends U{constructor(e){super(),j(this,e,a2,r2,z,{values:1},l2)}},Cr=na;var oa=require("@vkontakte/videoplayer-shared");function u2(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 a1(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Video id",n=N(),o=P("span"),r=Me(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(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+"")&&Ke(r,l)},d(a){a&&C(e)}}}function u1(i){let e,t,n,o,l=i[0].vsid+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="VSID",n=N(),o=P("span"),r=Me(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].vsid+"")&&Ke(r,l)},d(a){a&&C(e)}}}function c1(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Provider",n=N(),o=P("span"),r=Me(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(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+"")&&Ke(r,l)},d(a){a&&C(e)}}}function f1(i){let e,t,n,o,l,r=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",f,p,h=(i[0].audioCodec||"")+"",w,g,k=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",y;return{c(){e=P("div"),t=P("div"),t.textContent="Streams",n=N(),o=P("span"),l=Me("Video: "),a=Me(r),s=N(),f=Me(u),p=Me(`
24
+ )}`)}function Uf(t){let e;return{c(){e=I("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(i,n){S(i,e,n)},d(i){i&&C(e)}}}function Kf(t){let e,i;return e=new Hf({props:{position:t[5],secondsToWatchBeforeSkip:t[6],skipAd:t[8].actions.internal.skipAd}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function jf(t){let e,i;return e=new Of({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Wf(t){let e,i;return e=new zf({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function P2(t){let e,i,n,o,l,r,a,s=t[0]&&Uf(t),u=t[3]&&Kf(t),f=t[7]&&jf(t),p=t[4]&&Wf(t);return{c(){e=I("div"),s&&s.c(),i=D(),n=I("video"),o=D(),u&&u.c(),l=D(),f&&f.c(),r=D(),p&&p.c(),pi(n,"width","100%"),pi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,k){S(h,e,k),s&&s.m(e,null),m(e,i),m(e,n),t[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),t[20](e),a=!0},p(h,[k]){h[0]?s||(s=Uf(h),s.c(),s.m(e,i)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,k),k&8&&d(u,1)):(u=Kf(h),u.c(),d(u,1),u.m(e,l)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),h[7]?f?k&128&&d(f,1):(f=jf(h),f.c(),d(f,1),f.m(e,r)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),h[4]?p?k&16&&d(p,1):(p=Wf(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&&C(e),s&&s.d(),t[19](null),u&&u.d(),f&&f.d(),p&&p.d(),t[20](null)}}}function I2(t,e,i){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=nt(),k=h.state.isEnded$;H(t,k,O=>i(7,a=O));let g=h.ui.isMobile;H(t,g,O=>i(0,o=O));let w,b,T=!1,v=h.ads.playbackState;H(t,v,O=>i(18,n=O));let y=h.ads.canSkip,P=h.ads.position;H(t,P,O=>i(5,l=O));let Z=h.ads.secondsToWatchBeforeSkip;H(t,Z,O=>i(6,r=O));let N,z;At(()=>{let O=new AbortController,J=()=>{O.abort()},E=h.getAdmanWrapper();if(!s){E.onAdmanLoadingError();return}let{width:X,height:Q}=$e(h.ui.playerSize),G=$e(h.ui.isFullscreen),$=$e(h.ui.isAutoplay),L={width:X,height:Q,isFullscreen:G,isAutoplay:$,adsContainer:w,adsVideoElement:b,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?(E.initAdman(L),T=!0):E.loadAdman(O.signal).then(()=>{E.initAdman(L),T=!0}).catch(()=>{E.onAdmanLoadingError()}),()=>{!T&&J()}});function re(O){pe[O?"unshift":"push"](()=>{b=O,i(2,b)})}function se(O){pe[O?"unshift":"push"](()=>{w=O,i(1,w)})}return t.$$set=O=>{"adsSlotId"in O&&i(14,s=O.adsSlotId),"adsParams"in O&&i(15,u=O.adsParams),"adsPreviewParam"in O&&i(16,f=O.adsPreviewParam),"duration"in O&&i(17,p=O.duration)},t.$$.update=()=>{if(t.$$.dirty&262144)e:i(3,N=y&&n!=="inactive");if(t.$$.dirty&262145)e:i(4,z=o&&n!=="inactive")},[o,w,b,N,z,l,r,a,h,k,g,v,P,Z,s,u,f,p,n,re,se]}var Qs=class extends K{constructor(e){super(),W(this,e,I2,P2,U,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},S2)}},gr=Qs;var Mn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let n=Math.floor(e/60);return e-=n*60,(i>0?[i,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function T2(t){let e,i,n,o,l=t[2].default,r=Pe(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),i=B("path"),n=B("path"),c(i,"fill","none"),c(i,"stroke","#fff"),c(i,"stroke-width","2"),c(i,"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){S(u,e,f),r&&r.m(e,null),m(e,i),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=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function E2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ys=class extends K{constructor(e){super(),W(this,e,E2,T2,U,{})}},Gf=Ys;function A2(t){let e,i,n,o,l=t[2].default,r=Pe(l,t,t[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"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),i=B("rect"),n=B("path"),c(i,"width","42"),c(i,"height","20"),c(i,"fill","#FF3347"),c(i,"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){S(u,e,f),r&&r.m(e,null),m(e,i),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=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function M2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Zs=class extends K{constructor(e){super(),W(this,e,M2,A2,U,{})}},Qf=Zs;function V2(t){let e,i;return e=new Gf({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function L2(t){let e,i;return e=new Qf({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function R2(t){let e,i,n,o,l=[L2,V2],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=at()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),i=r[e],i||(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&C(n),r[e].d(s)}}}function B2(t,e,i){let{isActive:n=!1}=e;return t.$$set=o=>{"isActive"in o&&i(0,n=o.isActive)},[n]}var Xs=class extends K{constructor(e){super(),W(this,e,B2,R2,U,{isActive:0})}},br=Xs;function D2(t){Se(t,"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 N2(t){let e=Mn(t[4]-t[3])+"",i;return{c(){i=Ae(e)},m(n,o){S(n,i,o)},p(n,o){o&24&&e!==(e=Mn(n[4]-n[3])+"")&&Ke(i,e)},i:_e,o:_e,d(n){n&&C(i)}}}function q2(t){let e,i,n;return i=new br({props:{isActive:!0}}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,l){S(o,e,l),M(i,e,null),n=!0},p:_e,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function O2(t){let e,i,n,o,l,r,a,s=[q2,N2],u=[];function f(p,h){return p[1]?0:1}return l=f(t,-1),r=u[l]=s[l](t),{c(){e=I("div"),i=I("div"),i.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=D(),o=I("span"),r.c(),c(i,"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"),q(e,"live",t[1]),q(e,"hidden",t[0]),q(e,"playing",t[2])},m(p,h){S(p,e,h),m(e,i),m(e,n),m(e,o),u[l].m(o,null),a=!0},p(p,[h]){let k=l;l=f(p,h),l===k?u[l].p(p,h):(ue(),_(u[k],1,1,()=>{u[k]=null}),ce(),r=u[l],r?r.p(p,h):(r=u[l]=s[l](p),r.c()),d(r,1),r.m(o,null)),(!a||h&2)&&q(e,"live",p[1]),(!a||h&1)&&q(e,"hidden",p[0]),(!a||h&4)&&q(e,"playing",p[2])},i(p){a||(d(r),a=!0)},o(p){_(r),a=!1},d(p){p&&C(e),u[l].d()}}}function F2(t,e,i){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=e,{duration:a}=e;return t.$$set=s=>{"isHidden"in s&&i(0,n=s.isHidden),"isLive"in s&&i(1,o=s.isLive),"isPlaying"in s&&i(2,l=s.isPlaying),"position"in s&&i(3,r=s.position),"duration"in s&&i(4,a=s.duration)},[n,o,l,r,a]}var Js=class extends K{constructor(e){super(),W(this,e,F2,O2,U,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},D2)}},vr=Js;var al=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var $s=require("@vkontakte/videoplayer-core");var xs=require("@vkontakte/videoplayer-shared"),Fo=t=>{t.stopPropagation(),t.preventDefault()},z2=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},U2=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},K2=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},j2=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Yf=t=>t.code==="Escape",W2=t=>t.code==="ArrowLeft",Zf=(t,e=!0)=>{let i=t.code;return["Enter","Space"].includes(i)||!e&&i==="ArrowRight"},Xf=t=>{if(K2(t)){Fo(t),U2(t.target);return}j2(t)&&(Fo(t),z2(t.target))},cl=t=>!xs.CC.isAndroid&&t?.detail===0||xs.CC.isAndroid&&t?.pointerType==="",fl=async(t,e,i)=>{await Wn(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(await Wn(),i.set(!1),t.focus())},Jf=async(t,e,i)=>{await Wn(),t&&!e&&$e(i)&&(i.set(!1),t.focus())},Ho=async(t,e,i)=>{await Wn(),!!t&&e&&i&&t.children[0]?.focus()},dl=async(t,e,i)=>{!!t&&i&&(e.set(!1),setTimeout(()=>{t.focus()},100))},yr=(t,e)=>{Xf(t),Yf(t)&&(Fo(t),e())},ml=async(t,e,i)=>{Zf(t,!1)&&(Fo(t),e(),await Wn(),i()?.focus())},pl=async(t,e,i,n)=>{if(Xf(t),W2(t)){Fo(t),e(),i.set(!0);return}Yf(t)&&(Fo(t),n())},_i=(t,e)=>{Zf(t)&&(Fo(t),e())},xf=t=>{let e=t.getBoundingClientRect(),i=-14,n=e.left+e.width,o=e.top+i;return{right:n,bottom:o}},$f=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,n=8,o=e.left+n;return{bottom:e.bottom+i,left:o}};var ql=require("@vkontakte/videoplayer-shared");function G2(t){Se(t,"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 e1(t){let e,i,n,o,l,r,a,s,u,f,p=(t[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug"))+"",h,k,g,w,b=j("menu_debug_overlay")+"",T,v,y,P,Z=t[10].features.copyVideoLink&&t[9].callbacks?.onCopyVideoLink&&Q2(t),N=t[19]&&Y2(t),z=t[12]&&t[6]!==$s.ChromecastState.CONNECTED&&!t[17]&&i1(t);function re(X,Q){return X[4]?X2:Z2}let se=re(t,[-1,-1]),O=se(t),J=t[10].features.videoRotate&&!t[17]&&J2(t),E=t[10].showSupport&&!t[7]&&n1(t);return{c(){e=I("ul"),Z&&Z.c(),i=D(),N&&N.c(),n=D(),z&&z.c(),o=D(),l=I("li"),O.c(),a=D(),J&&J.c(),s=D(),E&&E.c(),u=D(),f=I("li"),h=Ae(p),g=D(),w=I("li"),T=Ae(b),c(l,"tabindex","0"),c(l,"role","menuitem"),c(l,"aria-label",r=j("aria_label_menu_loop")),c(l,"class","svelte-1vzqlps"),c(f,"tabindex","0"),c(f,"role","menuitem"),c(f,"aria-label",k=t[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),c(f,"class","svelte-1vzqlps"),c(w,"tabindex","0"),c(w,"role","menuitem"),c(w,"aria-label",v=t[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")),c(w,"class","svelte-1vzqlps"),c(e,"role","menu"),pi(e,"top",t[3]+"px"),pi(e,"left",t[2]+"px"),c(e,"class","svelte-1vzqlps")},m(X,Q){S(X,e,Q),Z&&Z.m(e,null),m(e,i),N&&N.m(e,null),m(e,n),z&&z.m(e,null),m(e,o),m(e,l),O.m(l,null),m(e,a),J&&J.m(e,null),m(e,s),E&&E.m(e,null),m(e,u),m(e,f),m(f,h),m(e,g),m(e,w),m(w,T),t[46](e),y||(P=[de(l,"click",st(t[25])),de(l,"keydown",t[37]),de(f,"click",st(t[22])),de(f,"keydown",t[34]),de(w,"click",st(t[23])),de(w,"keydown",t[35]),de(e,"contextmenu",Et(t[43])),de(e,"keydown",t[28])],y=!0)},p(X,Q){X[10].features.copyVideoLink&&X[9].callbacks?.onCopyVideoLink&&Z.p(X,Q),X[19]&&N.p(X,Q),X[12]&&X[6]!==$s.ChromecastState.CONNECTED&&!X[17]?z?z.p(X,Q):(z=i1(X),z.c(),z.m(e,o)):z&&(z.d(1),z=null),se===(se=re(X,Q))&&O?O.p(X,Q):(O.d(1),O=se(X),O&&(O.c(),O.m(l,null))),X[10].features.videoRotate&&!X[17]&&J.p(X,Q),X[10].showSupport&&!X[7]?E?E.p(X,Q):(E=n1(X),E.c(),E.m(e,u)):E&&(E.d(1),E=null),Q[0]&256&&v!==(v=X[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))&&c(w,"aria-label",v),Q[0]&8&&pi(e,"top",X[3]+"px"),Q[0]&4&&pi(e,"left",X[2]+"px")},d(X){X&&C(e),Z&&Z.d(),N&&N.d(),z&&z.d(),O.d(),J&&J.d(),E&&E.d(),t[46](null),y=!1,et(P)}}}function Q2(t){let e,i=j("menu_copy_video_link")+"",n,o,l,r,a,s,u=!t[5]&&!t[17]&&t1(t);return{c(){e=I("li"),n=Ae(i),l=D(),u&&u.c(),r=at(),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){S(f,e,p),m(e,n),S(f,l,p),u&&u.m(f,p),S(f,r,p),a||(s=[de(e,"click",st(t[44])),de(e,"keydown",t[29])],a=!0)},p(f,p){!f[5]&&!f[17]?u?u.p(f,p):(u=t1(f),u.c(),u.m(r.parentNode,r)):u&&(u.d(1),u=null)},d(f){f&&(C(e),C(l),C(r)),u&&u.d(f),a=!1,et(s)}}}function t1(t){let e,i=j("menu_copy_video_link_with_timestamp")+"",n,o,l,r;return{c(){e=I("li"),n=Ae(i),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){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(t[45])),de(e,"keydown",t[30])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function Y2(t){let e,i=j("menu_copy_embed_code")+"",n,o,l,r;return{c(){e=I("li"),n=Ae(i),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_copy_embed_code")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(t[26])),de(e,"keydown",t[36])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function i1(t){let e,i=j("menu_pip")+"",n,o,l,r;return{c(){e=I("li"),n=Ae(i),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_pip")),c(e,"class","svelte-1vzqlps")},m(a,s){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(t[24])),de(e,"keydown",t[31])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function Z2(t){let e=j("menu_video_loop_on")+"",i;return{c(){i=Ae(e)},m(n,o){S(n,i,o)},p:_e,d(n){n&&C(i)}}}function X2(t){let e=j("menu_video_loop_off")+"",i;return{c(){i=Ae(e)},m(n,o){S(n,i,o)},p:_e,d(n){n&&C(i)}}}function J2(t){let e,i=j("menu_video_rotate")+"",n,o,l,r;return{c(){e=I("li"),n=Ae(i),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){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(t[20])),de(e,"keydown",t[32])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function n1(t){let e,i=j("menu_report")+"",n,o,l,r;return{c(){e=I("li"),n=Ae(i),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){S(a,e,s),m(e,n),l||(r=[de(e,"click",st(t[21])),de(e,"keydown",t[33])],l=!0)},p:_e,d(a){a&&C(e),l=!1,et(r)}}}function x2(t){let e,i=t[1]&&e1(t);return{c(){i&&i.c(),e=at()},m(n,o){i&&i.m(n,o),S(n,e,o)},p(n,o){n[1]?i?i.p(n,o):(i=e1(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:_e,o:_e,d(n){n&&C(e),i&&i.d(n)}}}function $2(t,e,i){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:k=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:w}=e,b=0,T=0,v=nt(),y=Dt(),P=v.ui.contextMenu.visible$,Z=v.ui.debugPanelVisible;H(t,Z,le=>i(8,s=le));let N=v.webApi.pictureInPictureApi,z=v.webApi.pictureInPictureApi?.info.isActive$;H(t,z,le=>i(7,a=le));let re=v.state.chromecastState$;H(t,re,le=>i(6,r=le));let se=v.state.isLive$;H(t,se,le=>i(5,l=le));let O=v.state.positionExact$;H(t,O,le=>i(47,n=le));let J=v.state.isInteractive,E=v.state.looped$;H(t,E,le=>i(4,o=le));let X=!!v.callbacks?.onCopyEmbedCodeClicked,Q=()=>{P.set(!1)},G=(le,Ne)=>{if(!g||!h||!k)return;let Me=g.getBoundingClientRect(),Qe=h.getBoundingClientRect();i(2,b=le-Qe.left),i(3,T=Ne-Qe.top),b+Me.width>Qe.width&&i(2,b=Qe.width-Me.width),T+Me.height>Qe.height&&i(3,T=Qe.height-Me.height),i(2,b=Math.max(b,0)),i(3,T=Math.max(T,0))},$=()=>{Q(),v.actions.internal.videoRotate()},L=()=>{window.open(f,"_blank"),Q(),v.actions.internal.pause()},F=()=>{let le=v.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){let Ne=new Blob([...le],{type:"plain/text"}),Me=window.URL.createObjectURL(Ne);lr(Me,"vk_player_debug_info","txt")}else al(v.actions.internal.getDebugTextData());Q(),w?.()},qe=()=>{Z.set(!0),Q(),w?.()},ze=async()=>{try{N?.isActive()?await N?.remove():await N?.request()}finally{Q(),w?.()}},We=()=>{v.actions.internal.setLooped(!o),Q()},Xe=()=>{if(X){let le=v.callbacks?.onCopyEmbedCodeClicked?.();le&&al(le)}Q()},ve=(le=!1)=>{if(v.callbacks?.onCopyVideoLink){let Ne=v.callbacks?.onCopyVideoLink(le,n);Ne&&al(Ne)}Q()},Be=le=>{yr(le,Q)},ee=le=>{_i(le,()=>ve())},ke=le=>{_i(le,()=>ve(!0))},Ge=le=>{_i(le,()=>ze())},tt=le=>{_i(le,()=>$())},it=le=>{_i(le,()=>L())},we=le=>{_i(le,()=>F())},Re=le=>{_i(le,()=>qe())},Ze=le=>{_i(le,()=>Xe())},Je=le=>{_i(le,()=>We())};function Ce(le){An.call(this,t,le)}let ae=()=>ve(),He=()=>ve(!0);function me(le){pe[le?"unshift":"push"](()=>{g=le,i(0,g)})}return t.$$set=le=>{"visible"in le&&i(1,u=le.visible),"supportLink"in le&&i(38,f=le.supportLink),"position"in le&&i(39,p=le.position),"playerContainerRef"in le&&i(40,h=le.playerContainerRef),"controlsContainerRef"in le&&i(41,k=le.controlsContainerRef),"menuElementRef"in le&&i(0,g=le.menuElementRef),"returnFocus"in le&&i(42,w=le.returnFocus)},t.$$.update=()=>{if(t.$$.dirty[0]&1|t.$$.dirty[1]&1792){e:if(g&&h&&k){let{top:le,left:Ne,bottom:Me,right:Qe}=p,ot=Ne??0,ye=le??0,ft=g.getBoundingClientRect();(0,ql.isNullable)(Ne)&&!(0,ql.isNullable)(Qe)&&(ot=Qe-ft.width),(0,ql.isNullable)(le)&&!(0,ql.isNullable)(Me)&&(ye=Me-ft.height),ot=Math.max(ot,0),ye=Math.max(ye,0),G(ot,ye)}}},[g,u,b,T,o,l,r,a,s,v,y,Z,N,z,re,se,O,J,E,X,$,L,F,qe,ze,We,Xe,ve,Be,ee,ke,Ge,tt,it,we,Re,Ze,Je,f,p,h,k,w,Ce,ae,He,me]}var ea=class extends K{constructor(e){super(),W(this,e,$2,x2,U,{visible:1,supportLink:38,position:39,playerContainerRef:40,controlsContainerRef:41,menuElementRef:0,returnFocus:42},G2,[-1,-1])}},o1=ea;var kr=class{constructor(e){this.value=e,this.next=null}};var _l=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new kr(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};function eh(t){Se(t,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function th(t){let e,i;return{c(){e=I("div"),i=I("canvas"),c(i,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){S(n,e,o),m(e,i),t[3](i)},p:_e,i:_e,o:_e,d(n){n&&C(e),t[3](null)}}}var ta=16,ia=120,l1=60;function ih(t,e,i,n,o){o===0&&(o=1),t.fillStyle="#fff",t.fillRect(e,i,n,o)}function nh(t,e,i){let{values:n=[]}=e,o,l,r=ia/l1;At(()=>{i(0,o.width=ia,o),i(0,o.height=ta,o),i(2,l=o.getContext("2d"))});function a(s){pe[s?"unshift":"push"](()=>{o=s,i(0,o)})}return t.$$set=s=>{"values"in s&&i(1,n=s.values)},t.$$.update=()=>{if(t.$$.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,ia,ta);let f=l1-1;for(let p=n.length-1;p>=0;p--){let h=f*r,k=u>0?ta*(n[p]/u):0;ih(l,h,0,r,k),s=k+" "+s,f--}}}},[o,n,l,a]}var na=class extends K{constructor(e){super(),W(this,e,nh,th,U,{values:1},eh)}},wr=na;var oa=require("@vkontakte/videoplayer-shared");function oh(t){Se(t,"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 r1(t){let e,i,n,o,l=t[0].id+"",r;return{c(){e=I("div"),i=I("div"),i.textContent="Video id",n=D(),o=I("span"),r=Ae(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].id+"")&&Ke(r,l)},d(a){a&&C(e)}}}function s1(t){let e,i,n,o,l=t[0].vsid+"",r;return{c(){e=I("div"),i=I("div"),i.textContent="VSID",n=D(),o=I("span"),r=Ae(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].vsid+"")&&Ke(r,l)},d(a){a&&C(e)}}}function a1(t){let e,i,n,o,l=t[0].provider+"",r;return{c(){e=I("div"),i=I("div"),i.textContent="Provider",n=D(),o=I("span"),r=Ae(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].provider+"")&&Ke(r,l)},d(a){a&&C(e)}}}function u1(t){let e,i,n,o,l,r=(t[0].videoCodec||"")+"",a,s,u=t[0].hdr?"(HDR)":"",f,p,h=(t[0].audioCodec||"")+"",k,g,w=t[0].audioLanguage?`(${t[0].audioLanguage})`:"",b;return{c(){e=I("div"),i=I("div"),i.textContent="Streams",n=D(),o=I("span"),l=Ae("Video: "),a=Ae(r),s=D(),f=Ae(u),p=Ae(`
25
25
  &
26
- Audio: `),w=Me(h),g=N(),y=Me(k),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(T,b){S(T,e,b),m(e,t),m(e,n),m(e,o),m(o,l),m(o,a),m(o,s),m(o,f),m(o,p),m(o,w),m(o,g),m(o,y)},p(T,b){b&1&&r!==(r=(T[0].videoCodec||"")+"")&&Ke(a,r),b&1&&u!==(u=T[0].hdr?"(HDR)":"")&&Ke(f,u),b&1&&h!==(h=(T[0].audioCodec||"")+"")&&Ke(w,h),b&1&&k!==(k=T[0].audioLanguage?`(${T[0].audioLanguage})`:"")&&Ke(y,k)},d(T){T&&C(e)}}}function d1(i){let e,t,n,o,l=i[0].viewport+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Viewport",n=N(),o=P("span"),r=Me(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(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+"")&&Ke(r,l)},d(a){a&&C(e)}}}function m1(i){let e,t,n,o,l=i[0].videoSize+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Video size",n=N(),o=P("span"),r=Me(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(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+"")&&Ke(r,l)},d(a){a&&C(e)}}}function p1(i){let e,t,n,o,l=i[0].cdn+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="CDN host",n=N(),o=P("span"),r=Me(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(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+"")&&Ke(r,l)},d(a){a&&C(e)}}}function _1(i){let e,t,n,o,l=i[0].volume+"",r,a;return{c(){e=P("div"),t=P("div"),t.textContent="Volume",n=N(),o=P("span"),r=Me(l),a=Me(" %"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){S(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+"")&&Ke(r,l)},d(s){s&&C(e)}}}function h1(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=N(),o=P("span"),r=Me(l),a=Me(" s"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){S(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)+"")&&Ke(r,l)},d(s){s&&C(e)}}}function g1(i){let e,t,n,o,l=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(y1).map(k1).join(" & ")+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Segment",n=N(),o=P("span"),r=Me(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(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(y1).map(k1).join(" & ")+"")&&Ke(r,l)},d(a){a&&C(e)}}}function b1(i){let e,t,n,o,l,r,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new Cr({props:{values:i[5]}}),{c(){e=P("div"),t=P("div"),t.textContent="Network",n=N(),R(o.$$.fragment),l=N(),r=P("span"),s=Me(a),u=Me(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){S(p,e,h),m(e,t),m(e,n),V(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let w={};h&32&&(w.values=p[5]),o.$set(w),(!f||h&1)&&a!==(a=p[0].speed.toFixed(2)+"")&&Ke(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&C(e),L(o)}}}function v1(i){let e,t,n,o,l,r,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new Cr({props:{values:i[6]}}),{c(){e=P("div"),t=P("div"),t.textContent="V bitrate",n=N(),R(o.$$.fragment),l=N(),r=P("span"),s=Me(a),u=Me(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){S(p,e,h),m(e,t),m(e,n),V(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let w={};h&64&&(w.values=p[6]),o.$set(w),(!f||h&1)&&a!==(a=p[0].bitrate.toFixed(2)+"")&&Ke(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&C(e),L(o)}}}function c2(i){let e,t,n,o,l,r,a,s,u=i[0].version+"",f,p,h,w,g,k,y,T,b,v,I,G,q,F,fe,re,D,A,$,Y,X,W,ne,E,Q,Be,je,Qe,Xe,qe,ye,J,we,We,$e=i[0].id&&a1(i),it=i[0].vsid&&u1(i),ke=i[0].provider&&c1(i),Re=(i[0].videoCodec||i[0].audioCodec)&&f1(i),Ge=i[0].viewport&&d1(i),Je=i[0].videoSize&&m1(i),Se=i[0].cdn&&p1(i),se=i[0].volume&&_1(i),ze=i[0].buffer&&h1(i),me=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&g1(i),le=i[0].speed&&b1(i),Ne=i[0].bitrate&&v1(i);return je=new Cr({props:{values:i[4]}}),{c(){e=P("div"),t=P("button"),t.textContent="[x]",n=N(),o=P("div"),l=P("div"),r=P("div"),r.textContent="Version",a=N(),s=P("span"),f=Me(u),p=N(),$e&&$e.c(),h=N(),it&&it.c(),w=N(),ke&&ke.c(),g=N(),Re&&Re.c(),k=N(),Ge&&Ge.c(),y=N(),Je&&Je.c(),T=N(),Se&&Se.c(),b=N(),se&&se.c(),v=N(),ze&&ze.c(),I=N(),me&&me.c(),G=N(),q=P("div"),F=P("div"),F.textContent="Dropped",fe=N(),re=P("span"),D=Me(i[2]),A=Me(" / "),$=Me(i[1]),Y=Me(" frames"),X=N(),le&&le.c(),W=N(),Ne&&Ne.c(),ne=N(),E=P("div"),Q=P("div"),Q.textContent="FPS",Be=N(),R(je.$$.fragment),Qe=N(),Xe=P("span"),qe=Me(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(F,"class","svelte-1fypj5i"),c(q,"class","svelte-1fypj5i"),c(Q,"class","svelte-1fypj5i"),c(E,"class","svelte-1fypj5i"),c(o,"class","content svelte-1fypj5i"),c(e,"class","container svelte-1fypj5i"),c(e,"role","region"),c(e,"aria-label",ye=K("aria_label_debug_panel")),O(e,"container-mobile",i[7])},m(Ae,Ue){S(Ae,e,Ue),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),$e&&$e.m(o,null),m(o,h),it&&it.m(o,null),m(o,w),ke&&ke.m(o,null),m(o,g),Re&&Re.m(o,null),m(o,k),Ge&&Ge.m(o,null),m(o,y),Je&&Je.m(o,null),m(o,T),Se&&Se.m(o,null),m(o,b),se&&se.m(o,null),m(o,v),ze&&ze.m(o,null),m(o,I),me&&me.m(o,null),m(o,G),m(o,q),m(q,F),m(q,fe),m(q,re),m(re,D),m(re,A),m(re,$),m(re,Y),m(o,X),le&&le.m(o,null),m(o,W),Ne&&Ne.m(o,null),m(o,ne),m(o,E),m(E,Q),m(E,Be),V(je,E,null),m(E,Qe),m(E,Xe),m(Xe,qe),J=!0,we||(We=de(t,"click",st(i[9])),we=!0)},p(Ae,[Ue]){(!J||Ue&1)&&u!==(u=Ae[0].version+"")&&Ke(f,u),Ae[0].id?$e?$e.p(Ae,Ue):($e=a1(Ae),$e.c(),$e.m(o,h)):$e&&($e.d(1),$e=null),Ae[0].vsid?it?it.p(Ae,Ue):(it=u1(Ae),it.c(),it.m(o,w)):it&&(it.d(1),it=null),Ae[0].provider?ke?ke.p(Ae,Ue):(ke=c1(Ae),ke.c(),ke.m(o,g)):ke&&(ke.d(1),ke=null),Ae[0].videoCodec||Ae[0].audioCodec?Re?Re.p(Ae,Ue):(Re=f1(Ae),Re.c(),Re.m(o,k)):Re&&(Re.d(1),Re=null),Ae[0].viewport?Ge?Ge.p(Ae,Ue):(Ge=d1(Ae),Ge.c(),Ge.m(o,y)):Ge&&(Ge.d(1),Ge=null),Ae[0].videoSize?Je?Je.p(Ae,Ue):(Je=m1(Ae),Je.c(),Je.m(o,T)):Je&&(Je.d(1),Je=null),Ae[0].cdn?Se?Se.p(Ae,Ue):(Se=p1(Ae),Se.c(),Se.m(o,b)):Se&&(Se.d(1),Se=null),Ae[0].volume?se?se.p(Ae,Ue):(se=_1(Ae),se.c(),se.m(o,v)):se&&(se.d(1),se=null),Ae[0].buffer?ze?ze.p(Ae,Ue):(ze=h1(Ae),ze.c(),ze.m(o,I)):ze&&(ze.d(1),ze=null),Ae[0].currentVideoSegmentLength||Ae[0].currentAudioSegmentLength?me?me.p(Ae,Ue):(me=g1(Ae),me.c(),me.m(o,G)):me&&(me.d(1),me=null),(!J||Ue&4)&&Ke(D,Ae[2]),(!J||Ue&2)&&Ke($,Ae[1]),Ae[0].speed?le?(le.p(Ae,Ue),Ue&1&&d(le,1)):(le=b1(Ae),le.c(),d(le,1),le.m(o,W)):le&&(ae(),_(le,1,1,()=>{le=null}),ue()),Ae[0].bitrate?Ne?(Ne.p(Ae,Ue),Ue&1&&d(Ne,1)):(Ne=v1(Ae),Ne.c(),d(Ne,1),Ne.m(o,ne)):Ne&&(ae(),_(Ne,1,1,()=>{Ne=null}),ue());let at={};Ue&16&&(at.values=Ae[4]),je.$set(at),(!J||Ue&8)&&Ke(qe,Ae[3]),(!J||Ue&128)&&O(e,"container-mobile",Ae[7])},i(Ae){J||(d(le),d(Ne),d(je.$$.fragment,Ae),J=!0)},o(Ae){_(le),_(Ne),_(je.$$.fragment,Ae),J=!1},d(Ae){Ae&&C(e),$e&&$e.d(),it&&it.d(),ke&&ke.d(),Re&&Re.d(),Ge&&Ge.d(),Je&&Je.d(),Se&&Se.d(),se&&se.d(),ze&&ze.d(),me&&me.d(),le&&le.d(),Ne&&Ne.d(),L(je),we=!1,We()}}}var y1=({value:i})=>i,k1=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function f2(i,e,t){let n,o=ot(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;H(i,r,v=>t(7,n=v));let a=()=>{oa.safeStorage.remove(Rl),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,h=0,w=new _l(60),g=new _l(60),k=new _l(60),y=[],T=[],b=[];return Tt(()=>{oa.safeStorage.set(Rl,"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 G=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=G-f),t(1,f=G),w.push(h),s.speed&&g.push(s.speed),s.bitrate&&k.push(s.bitrate),t(4,y=w.getValuesFromBottom()),t(5,T=g.getValuesFromBottom()),t(6,b=k.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(v),I&&clearInterval(I)}}),[s,f,p,h,y,T,b,n,r,a]}var la=class extends U{constructor(e){super(),j(this,e,f2,c2,z,{},u2)}},Sr=la;function d2(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 m2(i){let e,t,n;return{c(){e=P("div"),c(e,"class","close svelte-1ome55p")},m(o,l){S(o,e,l),t||(n=de(e,"click",st(i[0])),t=!0)},p:_e,i:_e,o:_e,d(o){o&&C(e),t=!1,n()}}}function p2(i){function e(t){Vn.call(this,i,t)}return[e]}var ra=class extends U{constructor(e){super(),j(this,e,p2,m2,z,{},d2)}},w1=ra;var C1=require("@vkontakte/videoplayer-shared");function _2(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)
27
- }.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function h2(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("canvas"),n=N(),o=B("svg"),l=B("g"),r=B("g"),a=B("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){S(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&&C(e),i[2](null)}}}var g2=5e3;function b2(i,e,t){let{onTimerEnded:n=C1.noop}=e,o;Tt(()=>{let r,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/g2;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),r=requestAnimationFrame(u)):n()};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r)}});function l(r){pe[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var sa=class extends U{constructor(e){super(),j(this,e,b2,h2,z,{onTimerEnded:1},_2)}},S1=sa;function v2(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 P1(i){let e,t;return e=new S1({props:{onTimerEnded:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function y2(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v,I,G;a=new w1({}),a.$on("click",i[4]);let q=i[3]&&P1(i);return{c(){e=P("div"),t=N(),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=N(),R(a.$$.fragment),s=N(),u=P("div"),f=P("div"),p=P("div"),h=P("div"),w=N(),q&&q.c(),k=N(),y=P("div"),T=P("div"),b=Me(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(y,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(F,fe){S(F,e,fe),S(F,t,fe),S(F,n,fe),m(n,o),m(o,l),m(o,r),V(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,w),q&&q.m(p,null),m(u,k),m(u,y),m(y,T),m(T,b),v=!0,I||(G=de(u,"click",function(){Ii(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(F,[fe]){i=F,i[3]?q?(q.p(i,fe),fe&8&&d(q,1)):(q=P1(i),q.c(),d(q,1),q.m(p,null)):q&&(ae(),_(q,1,1,()=>{q=null}),ue()),(!v||fe&2&&g!==(g=`background-image: url('${i[1]}')`))&&c(p,"style",g),(!v||fe&1)&&Ke(b,i[0])},i(F){v||(d(a.$$.fragment,F),d(q),v=!0)},o(F){_(a.$$.fragment,F),_(q),v=!1},d(F){F&&(C(e),C(t),C(n)),L(a),q&&q.d(),I=!1,G()}}}function k2(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 aa=class extends U{constructor(e){super(),j(this,e,k2,y2,z,{title:0,thumb:1,playNextVideo:2},v2)}},I1=aa;var ho=require("@vkontakte/videoplayer-core"),T1=require("@vkontakte/videoplayer-shared"),vn=require("@vkontakte/videoplayer-statistics");var ua=(i,e)=>Math.min(+(i+e).toFixed(2),1),ca=(i,e)=>Math.max(+(i-e).toFixed(2),0),Pr=(i,e,t)=>{let n=ua(e,t);e<1&&i.actions.internal.setVolume(n)},Ir=(i,e,t)=>{let n=ca(e,t);e>0&&i.actions.internal.setVolume(n)};var _o=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function C2(i){Ce(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function S2(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=K("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(l=[de(e,"keyup",i[17]),de(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Te(a,r,s,s[25],n?Ie(r,s[25],u,null):Ee(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&C(e),a&&a.d(s),i[27](null),o=!1,et(l)}}}function P2(i,e,t){let n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,{$$slots:b={},$$scope:v}=e,{isAds:I}=e,{hideContextMenu:G}=e,{toggleFullscreen:q}=e,{showHotKeyHelpers:F}=e,{showKeyMap:fe}=e,{fakePlayButtonHandler:re}=e,D=ot(),A=Ot(),$=D.getLogger().createComponentLog("KeyboardControls component"),Y=D.state.playbackState$;H(i,Y,ve=>t(31,o=ve));let X=D.ads.playbackState;H(i,X,ve=>t(30,n=ve));let W=D.state.positionExact$;H(i,W,ve=>t(41,g=ve));let ne=D.state.duration$;H(i,ne,ve=>t(40,w=ve));let E=D.state.volume$;H(i,E,ve=>t(44,T=ve));let Q=D.ui.controls.disabledControls$;H(i,Q,ve=>t(39,h=ve));let Be=D.state.muted$;H(i,Be,ve=>t(34,a=ve));let je=D.state.currentSubtitle$;H(i,je,ve=>t(33,r=ve));let Qe=D.state.currentPlaybackRate$;H(i,Qe,ve=>t(42,k=ve));let Xe=D.state.availablePlaybackRates$;H(i,Xe,ve=>t(43,y=ve));let qe=D.ui.contextMenu.openedByHotKey$,ye=D.ui.contextMenu.lastActiveElem$,J=D.ui.contextMenu.visible$,we=D.ui.contextMenu.position$,We=D.state.isEnded$;H(i,We,ve=>t(36,u=ve));let $e=D.ui.overlayContainer$;H(i,$e,ve=>t(32,l=ve));let it=D.callbacks?.onAudioDoesNotExistHint,ke=D.callbacks?.onAudioDisabledHint,Re=D.state.isAudioAvailable$;H(i,Re,ve=>t(35,s=ve));let Ge=D.state.isAudioDisabled,Je=D.state.isInteractiveTime$;H(i,Je,ve=>t(38,p=ve));let{showInteractiveTimeIndicatorTooltip$:Se}=qn();H(i,Se,ve=>t(37,f=ve));let se=0,ze=!0,me,le=()=>me?.focus(),Ne=ve=>(ve!==ze&&(ze=ve,se=0),se+=1,(A.controls.seekStepKeyboard+A.controls.seekStepKeyboard*se)/1e3),Ae=ve=>{let dt=ve.target,nt=dt?.getAttribute("role")?.includes("menuitem"),gt=dt.classList.contains("btn"),wt=ve.code;if(gt&&wt==="Space")return;let At=nf.has(wt);if(nt&&At)return;let Ye=!tf.has(wt);if(ve.ctrlKey&&Ye||ve.altKey&&Ye||ve.metaKey)return;let Ft=nt&&wt==="Escape";of.has(wt)||Ft||G();let Rt=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,St=I&&(n==="paused"||n==="playing"),ui=!St&&!h.has("TIMELINE");if(Rt||St)switch($({message:`key down, code: ${wt}`}),wt){case"KeyJ":case"ArrowLeft":{if(!ui)break;if(ve.ctrlKey||ve.altKey){let lt=D.actions.internal.getPrevEpisode();D.actions.internal.seekToPrevEpisode(lt),lt&&F({type:"EPISODE_PREV",text:lt.text}),ve.preventDefault()}else{let lt=ve.shiftKey?Ne(!1):A.controls.seekStepKeyboard/1e3,bt=Math.max(g-lt,0);g>0&&(D.actions.internal.seekTime(bt,vn.SeekAction.DOUBLE_TAP),F({type:"BACKWARD_SEEK",text:lt.toString()}),ve.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ui)break;if(ve.ctrlKey||ve.altKey){let lt=D.actions.internal.getNextEpisode();D.actions.internal.seekToNextEpisode(lt),lt&&F({type:"EPISODE_NEXT",text:lt.text}),ve.preventDefault()}else{let lt=ve.shiftKey?Ne(!0):A.controls.seekStepKeyboard/1e3,bt=Math.min(g+lt,w);Math.round(g)<Math.round(w)&&(D.actions.internal.seekTime(bt,vn.SeekAction.DOUBLE_TAP),F({type:"FORWARD_SEEK",text:lt.toString()}),ve.preventDefault())}break}case"ArrowUp":{if(_o({isAudioDisabled:Ge,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:it})){let lt=T,bt=A.controls.volumeStepKeyboard,be=lt<=1;if(Pr(D,lt,bt),be){let _t=Math.round(ua(lt,bt)*100).toString();F({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_t}})}}ve.preventDefault();break}case"ArrowDown":{if(_o({isAudioDisabled:Ge,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:it})){let lt=T,bt=A.controls.volumeStepKeyboard,be=lt>=0;if(Ir(D,lt,bt),be){let _t=Math.round(ca(lt,bt)*100).toString();F({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_t}})}}ve.preventDefault();break}case"Comma":{if(ve.shiftKey){D.actions.internal.decrementPlaybackRate();let lt=y.find(bt=>bt.value===k);F({type:"RATE_DOWN",text:lt?.displayValue}),ve.preventDefault()}else{if(St||o!==ho.PlaybackState.PAUSED)break;let lt=Math.max(g-A.controls.seekStepFrame/1e3,0);g>0&&(F({type:"BACKWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(lt,vn.SeekAction.DOUBLE_TAP),ve.preventDefault())}break}case"Period":{if(ve.shiftKey){D.actions.internal.incrementPlaybackRate();let lt=y.find(bt=>bt.value===k);F({type:"RATE_UP",text:lt?.displayValue}),ve.preventDefault()}else{if(St||o!==ho.PlaybackState.PAUSED)break;let lt=Math.min(g+A.controls.seekStepFrame/1e3,w);g<w&&(F({type:"FORWARD_SEEK"}),D.actions.internal.clearDelayedBufferingCheckTimeout(),D.actions.internal.seekTime(lt,vn.SeekAction.DOUBLE_TAP),ve.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&Se.set(!1),re)re();else{D.actions.internal.togglePlay();let lt="PLAY";o===ho.PlaybackState.PAUSED?lt="PAUSE":u&&(lt="REPLAY"),F({type:lt})}ve.preventDefault();break;case"KeyM":{_o({isAudioDisabled:Ge,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:it})&&(F({type:a?"VOLUME":"MUTE"}),D.actions.internal.toggleMuted()),ve.preventDefault();break}case"KeyF":q(),ve.preventDefault();break;case"KeyC":D.actions.internal.toggleSubtitle(),r.value!=="off"?F({type:"SUBTITLES_ON",text:r?.displayValue}):F({type:"SUBTITLES_OFF"}),ve.preventDefault();break;case"KeyI":D.actions.internal.togglePictureInPicture(),ve.preventDefault();break;case"Digit1":case"Numpad1":if(ve.shiftKey){let lt=t1(l);we.set(lt),ye.set(dt),qe.set(!0),J.set(!0),ve.preventDefault();break}F(),D.actions.internal.seekToPercent(.1,vn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit2":case"Numpad2":F(),D.actions.internal.seekToPercent(.2,vn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit3":case"Numpad3":F(),D.actions.internal.seekToPercent(.3,vn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit4":case"Numpad4":F(),D.actions.internal.seekToPercent(.4,vn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit5":case"Numpad5":F(),D.actions.internal.seekToPercent(.5,vn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit6":case"Numpad6":F(),D.actions.internal.seekToPercent(.6,vn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit7":case"Numpad7":F(),D.actions.internal.seekToPercent(.7,vn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit8":case"Numpad8":F(),D.actions.internal.seekToPercent(.8,vn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit9":case"Numpad9":F(),D.actions.internal.seekToPercent(.9,vn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Digit0":case"Numpad0":F(),D.actions.internal.seekToPercent(0,vn.SeekAction.DOUBLE_TAP),ve.preventDefault();break;case"Slash":{ve.shiftKey&&A.features.hotKeyMapModal&&(fe(),ve.preventDefault());break}case"ShiftLeft":case"ShiftRight":ve.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,T1.checkNever)(wt);break}},Ue=ve=>{let dt=ve.code;if(ve.ctrlKey||ve.altKey||ve.metaKey)return;let nt=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,gt=I&&(n==="paused"||n==="playing");if(nt||gt)switch(dt){case"ShiftLeft":case"ShiftRight":se=0;break}};function at(ve){pe[ve?"unshift":"push"](()=>{me=ve,t(0,me)})}return i.$$set=ve=>{"isAds"in ve&&t(18,I=ve.isAds),"hideContextMenu"in ve&&t(19,G=ve.hideContextMenu),"toggleFullscreen"in ve&&t(20,q=ve.toggleFullscreen),"showHotKeyHelpers"in ve&&t(21,F=ve.showHotKeyHelpers),"showKeyMap"in ve&&t(22,fe=ve.showKeyMap),"fakePlayButtonHandler"in ve&&t(23,re=ve.fakePlayButtonHandler),"$$scope"in ve&&t(25,v=ve.$$scope)},[me,Y,X,W,ne,E,Q,Be,je,Qe,Xe,We,$e,Re,Je,Se,Ae,Ue,I,G,q,F,fe,re,le,v,b,at]}var fa=class extends U{constructor(e){super(),j(this,e,P2,S2,z,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},C2,[-1,-1])}get focus(){return this.$$.ctx[24]}},E1=fa;function I2(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 T2(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){S(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&C(e)}}}var da=class extends U{constructor(e){super(),j(this,e,null,T2,z,{},I2)}},Tr=da;function E2(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k=i[2].default,y=Pe(k,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]],b={};for(let v=0;v<T.length;v+=1)b=oe(b,T[v]);return{c(){e=B("svg"),y&&y.c(),t=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),w=B("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(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2422_111980"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","23"),c(r,"height","23"),c(r,"x",".5"),c(r,"y",".5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ge(e,b)},m(v,I){S(v,e,I),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(v,[I]){y&&y.p&&(!g||I&2)&&Te(y,k,v,v[1],g?Ie(k,v[1],I,null):Ee(v[1]),null),ge(e,b=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},I&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&C(e),y&&y.d(v)}}}function A2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ma=class extends U{constructor(e){super(),j(this,e,A2,E2,z,{})}},A1=ma;var Xn=require("@vkontakte/videoplayer-shared");function M2(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 V2(i){let e,t,n,o,l,r,a,s,u,f,p,h,w=i[14].default,g=Pe(w,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(k,y){S(k,e,y),g&&g.m(e,null),i[16](e),f=!0,p||(h=[de(e,"pointerdown",st(It(i[15]))),de(e,"click",st(It(function(){Ii(i[10]===Xn.noop?null:i[10])&&(i[10]===Xn.noop?null:i[10]).apply(this,arguments)}))),de(e,"focus",It(function(){Ii(i[11]===Xn.noop?null:i[11])&&(i[11]===Xn.noop?null:i[11]).apply(this,arguments)})),de(e,"blur",It(function(){Ii(i[12]===Xn.noop?null:i[12])&&(i[12]===Xn.noop?null:i[12]).apply(this,arguments)}))],p=!0)},p(k,[y]){i=k,g&&g.p&&(!f||y&8192)&&Te(g,w,i,i[13],f?Ie(w,i[13],y,null):Ee(i[13]),null),(!f||y&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||y&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||y&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||y&32&&l!==(l=i[5]??null))&&c(e,"aria-hidden",l),(!f||y&64&&r!==(r=i[6]??null))&&c(e,"aria-label",r),(!f||y&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||y&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||y&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||y&512)&&c(e,"tabindex",i[9])},i(k){f||(d(g,k),f=!0)},o(k){_(g,k),f=!1},d(k){k&&C(e),g&&g.d(k),i[16](null),p=!1,et(h)}}}function L2(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:w=void 0}=e,{tabIndex:g=0}=e,{click:k=Xn.noop}=e,{focus:y=Xn.noop}=e,{blur:T=Xn.noop}=e;function b(I){Vn.call(this,i,I)}function v(I){pe[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,w=I.ariaExpanded),"tabIndex"in I&&t(9,g=I.tabIndex),"click"in I&&t(10,k=I.click),"focus"in I&&t(11,y=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,w,g,k,y,T,o,n,b,v]}var pa=class extends U{constructor(e){super(),j(this,e,L2,V2,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},M2)}},pt=pa;function R2(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 M1(i){let e,t,n,o,l,r=i[2]&&V1(i);return{c(){e=P("div"),t=P("h3"),n=Me(i[3]),o=N(),r&&r.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){S(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)&&Ke(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=V1(a),r.c(),d(r,1),r.m(e,null)):r&&(ae(),_(r,1,1,()=>{r=null}),ue())},i(a){l||(d(r),l=!0)},o(a){_(r),l=!1},d(a){a&&C(e),r&&r.d()}}}function V1(i){let e,t;return e=new pt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:K("hotkey_map_modal_close_btn_text"),$$slots:{default:[B2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function B2(i){let e,t;return e=new A1({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function D2(i){let e,t,n,o,l,r,a=i[1]&&M1(i),s=i[4].default,u=Pe(s,i,i[5],null);return{c(){e=P("div"),t=P("div"),a&&a.c(),n=N(),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){S(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=M1(f),a.c(),d(a,1),a.m(t,n)):a&&(ae(),_(a,1,1,()=>{a=null}),ue()),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&&C(e),a&&a.d(),u&&u.d(f)}}}function N2(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 _a=class extends U{constructor(e){super(),j(this,e,N2,D2,z,{onClose:0,showHeader:1,showCloseCross:2,title:3},R2)}},L1=_a;var q2=new Set(["BR"]),ha=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;q2.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function O2(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 R1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function B1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function D1(i){let e,t,n=ha(i[9])+"",o,l,r=i[10]+"",a,s;return{c(){e=P("li"),t=P("span"),o=N(),l=P("span"),a=Me(r),s=N(),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){S(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=ha(u[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=u[10]+"")&&Ke(a,r)},d(u){u&&C(e)}}}function N1(i){let e,t,n=i[5]+"",o,l,r,a,s=Ct(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=D1(B1(i,s,f));return{c(){e=P("div"),t=P("h5"),o=Me(n),l=N(),r=P("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(r,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,p){S(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]+"")&&Ke(o,n),p&1){s=Ct(f[6]);let h;for(h=0;h<s.length;h+=1){let w=B1(f,s,h);u[h]?u[h].p(w,p):(u[h]=D1(w),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&&C(e),Ti(u,f)}}}function F2(i){let e,t=Ct(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=N1(R1(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){S(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=Ct(o[0].groups);let r;for(r=0;r<t.length;r+=1){let a=R1(o,t,r);n[r]?n[r].p(a,l):(n[r]=N1(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&&C(e),Ti(n,o)}}}function H2(i){let e,t;return e=new L1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[F2]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function z2(i,e,t){let n,o=ot(),{data:l,show:r}=o.ui.modals.hotKeyMap;return H(i,l,s=>t(0,n=s)),[n,l,()=>{r.set(!1)}]}var ga=class extends U{constructor(e){super(),j(this,e,z2,H2,z,{},O2)}},q1=ga;var ss=require("@vkontakte/videoplayer-shared");var Qo=require("@vkontakte/videoplayer-core");var Vd=require("@vkontakte/videoplayer-core");var jo={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:"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"},O1={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"};var U2=i=>jo[i]??jo[O1[i]]??void 0,Er=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),io=(i,e)=>{if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=U2(t)??t),n&&t&&o){let r=e.filter(a=>a.label===n&&a.language===t);if(r.length===1)return K("audio_stream_display_language_label",{language:o,label:n});{let a=Er(i,r);return K("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let r=e.filter(a=>a.label===n);if(r.length===1)return n;{let a=Er(i,r);return K("audio_stream_display_label_index",{label:n,index:a})}}if(t&&o){let r=e.filter(a=>a.language===t);if(r.length===1)return o;{let a=Er(i,r);return K("audio_stream_display_language_index",{language:o,index:a})}}let l=Er(i,e);return K("audio_stream_display_unknown",{index:l})};var Nw=require("@vkontakte/videoplayer-shared");function K2(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 j2(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){S(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&&C(e),o&&o.d(l)}}}function W2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var ba=class extends U{constructor(e){super(),j(this,e,W2,j2,z,{},K2)}},F1=ba;var hl=require("@vkontakte/videoplayer-core");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:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("path"),c(t,"fill","currentColor"),c(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function Q2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var va=class extends U{constructor(e){super(),j(this,e,Q2,G2,z,{})}},H1=va;function Y2(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("path"),c(t,"fill","currentColor"),c(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function Z2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ya=class extends U{constructor(e){super(),j(this,e,Z2,Y2,z,{})}},z1=ya;function X2(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","currentColor"),c(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function J2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ka=class extends U{constructor(e){super(),j(this,e,J2,X2,z,{})}},U1=ka;function x2(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","currentColor"),c(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function $2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var wa=class extends U{constructor(e){super(),j(this,e,$2,x2,z,{})}},Ar=wa;function eg(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("path"),c(t,"fill","currentColor"),c(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function tg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ca=class extends U{constructor(e){super(),j(this,e,tg,eg,z,{})}},Mr=Ca;var go=i=>{switch(i){case hl.VideoQuality.Q_720P:return U1;case hl.VideoQuality.Q_1080P:return Ar;case hl.VideoQuality.Q_1440P:return Mr;case hl.VideoQuality.Q_2160P:return H1;case hl.VideoQuality.Q_4320P:return z1}};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:"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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function ng(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Sa=class extends U{constructor(e){super(),j(this,e,ng,ig,z,{})}},K1=Sa;function og(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),c(n,"class","_full"),ge(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Pa=class extends U{constructor(e){super(),j(this,e,lg,og,z,{})}},j1=Pa;function rg(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 sg(i){let e,t,n,o,l=i[1]&&W1(i);return n=new j1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=P("div"),l&&l.c(),t=N(),R(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),O(e,"triple",i[2])},m(r,a){S(r,e,a),l&&l.m(e,null),m(e,t),V(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=W1(r),l.c(),d(l,1),l.m(e,t)):l&&(ae(),_(l,1,1,()=>{l=null}),ue());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&O(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&&C(e),l&&l.d(),L(n)}}}function ag(i){let e,t;return e=new K1({}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function W1(i){let e,t;return e=new F1({props:{$$slots:{default:[ug]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function ug(i){let e,t,n;var o=i[1];function l(r){return{}}return o&&(e=Sn(o,l(i))),{c(){e&&R(e.$$.fragment),t=ut()},m(r,a){e&&V(e,r,a),S(r,t,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){ae();let s=e;_(s.$$.fragment,1,0,()=>{L(s,1)}),ue()}o?(e=Sn(o,l(r)),R(e.$$.fragment),d(e.$$.fragment,1),V(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&&C(t),e&&L(e,r)}}}function cg(i){let e,t,n,o,l=[ag,sg],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=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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&&C(n),r[e].d(s)}}}function fg(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=go(l));if(i.$$.dirty&2)e:t(2,r=!!n&&[Ar,Mr].includes(n))},[o,n,r,l]}var Ia=class extends U{constructor(e){super(),j(this,e,fg,cg,z,{isMobile:0,currentQuality:3},rg)}},Vr=Ia;function dg(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ta=class extends U{constructor(e){super(),j(this,e,mg,dg,z,{})}},Lr=Ta;function pg(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function _g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ea=class extends U{constructor(e){super(),j(this,e,_g,pg,z,{})}},G1=Ea;function hg(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function gg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Aa=class extends U{constructor(e){super(),j(this,e,gg,hg,z,{})}},Q1=Aa;function bg(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=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=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){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&C(e),a&&a.d(f)}}}function vg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ma=class extends U{constructor(e){super(),j(this,e,vg,bg,z,{})}},Y1=Ma;function yg(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:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&C(e),l&&l.d(s)}}}function kg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Va=class extends U{constructor(e){super(),j(this,e,kg,yg,z,{})}},Z1=Va;function wg(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"fill-opacity",".72"),c(t,"fill-rule","evenodd"),c(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var La=class extends U{constructor(e){super(),j(this,e,Cg,wg,z,{})}},X1=La;function Sg(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Ra=class extends U{constructor(e){super(),j(this,e,Pg,Sg,z,{})}},J1=Ra;function Ig(i){let e,t;return e=new J1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Tg(i){let e,t;return e=new X1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Eg(i){let e,t,n,o,l=[Tg,Ig],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=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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&&C(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 Ba=class extends U{constructor(e){super(),j(this,e,Ag,Eg,z,{direction:3})}},Qn=Ba;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":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Vg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Da=class extends U{constructor(e){super(),j(this,e,Vg,Mg,z,{})}},x1=Da;function Lg(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Rg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Na=class extends U{constructor(e){super(),j(this,e,Rg,Lg,z,{})}},Wo=Na;function Bg(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var qa=class extends U{constructor(e){super(),j(this,e,Dg,Bg,z,{})}},$1=qa;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:"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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function qg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Oa=class extends U{constructor(e){super(),j(this,e,qg,Ng,z,{})}},ed=Oa;function Og(i){Ce(i,"svelte-1h807jq","ul.svelte-1h807jq.svelte-1h807jq{margin:0;padding:0}.menu.svelte-1h807jq.svelte-1h807jq{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-1h807jq.svelte-1h807jq{width:100%}.menu-desktop.svelte-1h807jq.svelte-1h807jq{position:absolute;right:0;bottom:0}.menu-mobile.svelte-1h807jq.svelte-1h807jq{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-1h807jq.svelte-1h807jq{display:none}.menu-subList.svelte-1h807jq.svelte-1h807jq{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-1h807jq.svelte-1h807jq{min-width:164px}.menu-subList-traffic-saving.svelte-1h807jq.svelte-1h807jq{min-width:286px}.item.svelte-1h807jq.svelte-1h807jq{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-1h807jq.svelte-1h807jq{padding:0 14px}.item-quality.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-traffic-saving.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{flex-direction:row-reverse}.item-helper-text.svelte-1h807jq.svelte-1h807jq{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-1h807jq span.svelte-1h807jq{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:7px 14px}.item-helper-text.item-mobile.svelte-1h807jq span.svelte-1h807jq{text-align:start}.submenu-value.svelte-1h807jq.svelte-1h807jq{overflow:hidden;;;text-overflow:ellipsis}.submenu-value-mobile.svelte-1h807jq.svelte-1h807jq{flex-grow:1}.item.svelte-1h807jq.svelte-1h807jq:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-1h807jq.svelte-1h807jq:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-1h807jq.svelte-1h807jq:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-1h807jq.svelte-1h807jq:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-1h807jq.svelte-1h807jq{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-1h807jq.svelte-1h807jq{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-1h807jq.svelte-1h807jq{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}.menu-valueIcon.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-1h807jq svg,.menu-valueIcon-list.svelte-1h807jq svg{color:var(--blue-light)}.menu-divider.svelte-1h807jq.svelte-1h807jq{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-1h807jq.svelte-1h807jq{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex}.itemIcon.svelte-1h807jq.svelte-1h807jq{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar{width:8px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-1h807jq.svelte-1h807jq{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-1h807jq.svelte-1h807jq{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1h807jq.svelte-1h807jq:before,.close.svelte-1h807jq.svelte-1h807jq:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1h807jq.svelte-1h807jq:before{transform:rotate(45deg)}.close.svelte-1h807jq.svelte-1h807jq:after{transform:rotate(-45deg)}")}function td(i,e,t){let n=i.slice();return n[163]=e[t],n}function id(i,e,t){let n=i.slice();return n[166]=e[t],n}function nd(i,e,t){let n=i.slice();return n[169]=e[t],n}function od(i,e,t){let n=i.slice();return n[172]=e[t],n}function ld(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g=i[40]&&rd(i),k=i[30]&&sd(i),y=i[29]&&ud(i),T=i[28]&&cd(i),b=i[27]&&fd(i),v=i[26]&&dd(i),I=i[25]&&md(i),G=i[40]&&pd(i);return{c(){e=P("div"),g&&g.c(),t=N(),n=P("ul"),k&&k.c(),o=N(),y&&y.c(),l=N(),T&&T.c(),r=N(),b&&b.c(),a=N(),v&&v.c(),s=N(),I&&I.c(),u=N(),G&&G.c(),c(n,"class","items svelte-1h807jq"),c(n,"role","menu"),c(n,"style",f=i[84]()),O(n,"items-mobile",i[40]),c(e,"class","menu svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40]),O(e,"hidden",!i[13])},m(q,F){S(q,e,F),g&&g.m(e,null),m(e,t),m(e,n),k&&k.m(n,null),m(n,o),y&&y.m(n,null),m(n,l),T&&T.m(n,null),m(n,r),b&&b.m(n,null),m(n,a),v&&v.m(n,null),m(n,s),I&&I.m(n,null),m(n,u),G&&G.m(n,null),i[129](n),p=!0,h||(w=[de(e,"keydown",i[90]),de(e,"mouseenter",i[82]),de(e,"mouseleave",i[83])],h=!0)},p(q,F){q[40]?g?g.p(q,F):(g=rd(q),g.c(),g.m(e,t)):g&&(g.d(1),g=null),q[30]?k?(k.p(q,F),F[0]&1073741824&&d(k,1)):(k=sd(q),k.c(),d(k,1),k.m(n,o)):k&&(ae(),_(k,1,1,()=>{k=null}),ue()),q[29]?y?(y.p(q,F),F[0]&536870912&&d(y,1)):(y=ud(q),y.c(),d(y,1),y.m(n,l)):y&&(ae(),_(y,1,1,()=>{y=null}),ue()),q[28]?T?(T.p(q,F),F[0]&268435456&&d(T,1)):(T=cd(q),T.c(),d(T,1),T.m(n,r)):T&&(ae(),_(T,1,1,()=>{T=null}),ue()),q[27]?b?(b.p(q,F),F[0]&134217728&&d(b,1)):(b=fd(q),b.c(),d(b,1),b.m(n,a)):b&&(ae(),_(b,1,1,()=>{b=null}),ue()),q[26]?v?(v.p(q,F),F[0]&67108864&&d(v,1)):(v=dd(q),v.c(),d(v,1),v.m(n,s)):v&&(ae(),_(v,1,1,()=>{v=null}),ue()),q[25]?I?(I.p(q,F),F[0]&33554432&&d(I,1)):(I=md(q),I.c(),d(I,1),I.m(n,u)):I&&(ae(),_(I,1,1,()=>{I=null}),ue()),q[40]?G?(G.p(q,F),F[1]&512&&d(G,1)):(G=pd(q),G.c(),d(G,1),G.m(n,null)):G&&(ae(),_(G,1,1,()=>{G=null}),ue()),(!p||F[1]&512)&&O(n,"items-mobile",q[40]),(!p||F[1]&512)&&O(e,"menu-desktop",!q[40]),(!p||F[1]&512)&&O(e,"menu-mobile",q[40]),(!p||F[0]&8192)&&O(e,"hidden",!q[13])},i(q){p||(d(k),d(y),d(T),d(b),d(v),d(I),d(G),p=!0)},o(q){_(k),_(y),_(T),_(b),_(v),_(I),_(G),p=!1},d(q){q&&C(e),g&&g.d(),k&&k.d(),y&&y.d(),T&&T.d(),b&&b.d(),v&&v.d(),I&&I.d(),G&&G.d(),i[129](null),h=!1,et(w)}}}function rd(i){let e,t,n,o,l,r,a,s;return{c(){e=P("div"),t=P("div"),t.textContent=`${K("submenu_settings")}`,n=N(),o=P("div"),l=N(),r=P("div"),c(o,"class","close svelte-1h807jq"),c(e,"class","item menu-header svelte-1h807jq"),O(e,"item-mobile",i[40]),c(r,"class","menu-divider svelte-1h807jq")},m(u,f){S(u,e,f),m(e,t),m(e,n),m(e,o),S(u,l,f),S(u,r,f),a||(s=de(o,"click",st(i[66])),a=!0)},p(u,f){f[1]&512&&O(e,"item-mobile",u[40])},d(u){u&&(C(e),C(l),C(r)),a=!1,s()}}}function sd(i){let e,t,n,o,l,r,a,s,u,f,p,h,w;n=new Vr({});let g=i[39]&&!i[40]&&ad(i);return{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("menu_quality")}`,r=N(),a=P("div"),s=Me(i[19]),u=N(),g&&g.c(),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=K("aria_label_menu_quality",{actual:i[32]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(k,y){S(k,e,y),m(e,t),V(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[124](e),p=!0,h||(w=[de(e,"click",st(i[67])),de(e,"keydown",i[91])],h=!0)},p(k,y){(!p||y[0]&524288)&&Ke(s,k[19]),k[39]&&!k[40]?g?(g.p(k,y),y[1]&768&&d(g,1)):(g=ad(k),g.c(),d(g,1),g.m(a,null)):g&&(ae(),_(g,1,1,()=>{g=null}),ue()),(!p||y[1]&2&&f!==(f=K("aria_label_menu_quality",{actual:k[32]})))&&c(e,"aria-label",f),(!p||y[1]&512)&&O(e,"item-mobile",k[40])},i(k){p||(d(n.$$.fragment,k),d(g),p=!0)},o(k){_(n.$$.fragment,k),_(g),p=!1},d(k){k&&C(e),L(n),g&&g.d(),i[124](null),h=!1,et(w)}}}function ad(i){let e,t,n;var o=i[39];function l(r){return{}}return o&&(t=Sn(o,l(i))),{c(){e=P("div"),t&&R(t.$$.fragment),c(e,"class","menu-valueIcon svelte-1h807jq")},m(r,a){S(r,e,a),t&&V(t,e,null),n=!0},p(r,a){if(a[1]&256&&o!==(o=r[39])){if(t){ae();let s=t;_(s.$$.fragment,1,0,()=>{L(s,1)}),ue()}o?(t=Sn(o,l(r)),R(t.$$.fragment),d(t.$$.fragment,1),V(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&&C(e),t&&L(t)}}}function ud(i){let e,t,n,o,l,r,a,s=io(i[41],i[9])+"",u,f,p,h,w;return n=new Z1({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("menu_audio_languages")}`,r=N(),a=P("div"),u=Me(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=K("aria_label_menu_audio_languages",{actual:io(i[41],i[9])})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,k){S(g,e,k),m(e,t),V(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),i[125](e),p=!0,h||(w=[de(e,"click",st(i[68])),de(e,"keydown",i[92])],h=!0)},p(g,k){(!p||k[0]&512|k[1]&1024)&&s!==(s=io(g[41],g[9])+"")&&Ke(u,s),(!p||k[0]&512|k[1]&1024&&f!==(f=K("aria_label_menu_audio_languages",{actual:io(g[41],g[9])})))&&c(e,"aria-label",f),(!p||k[1]&512)&&O(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),L(n),i[125](null),h=!1,et(w)}}}function cd(i){let e,t,n,o,l,r,a,s,u,f,p,h,w;return n=new Y1({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("menu_playback_rate")}`,r=N(),a=P("div"),s=Me(i[11]),u=Me("x"),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=K("aria_label_menu_rate",{actual:i[33]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,k){S(g,e,k),m(e,t),V(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),i[126](e),p=!0,h||(w=[de(e,"click",st(It(i[73]))),de(e,"keydown",i[97])],h=!0)},p(g,k){(!p||k[0]&2048)&&Ke(s,g[11]),(!p||k[1]&4&&f!==(f=K("aria_label_menu_rate",{actual:g[33]})))&&c(e,"aria-label",f),(!p||k[1]&512)&&O(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),L(n),i[126](null),h=!1,et(w)}}}function fd(i){let e,t,n,o,l,r,a,s=i[42].displayValue+"",u,f,p,h,w;return n=new Lr({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("subtitles_caption")}`,r=N(),a=P("div"),u=Me(s),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=K("aria_label_menu_subtitle",{actual:i[42].displayValue})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,k){S(g,e,k),m(e,t),V(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),i[127](e),p=!0,h||(w=[de(e,"click",st(i[75])),de(e,"keydown",i[100])],h=!0)},p(g,k){(!p||k[1]&2048)&&s!==(s=g[42].displayValue+"")&&Ke(u,s),(!p||k[1]&2048&&f!==(f=K("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&c(e,"aria-label",f),(!p||k[1]&512)&&O(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),L(n),i[127](null),h=!1,et(w)}}}function dd(i){let e,t,n,o,l,r,a,s,u,f,p,h;return n=new Q1({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("menu_traffic_saving")}`,r=N(),a=P("div"),s=Me(i[31]),c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=K("aria_label_menu_traffic_saving",{actual:i[31]})),c(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(w,g){S(w,e,g),m(e,t),V(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),i[128](e),f=!0,p||(h=[de(e,"click",st(i[69])),de(e,"keydown",i[103])],p=!0)},p(w,g){(!f||g[1]&1)&&Ke(s,w[31]),(!f||g[1]&1&&u!==(u=K("aria_label_menu_traffic_saving",{actual:w[31]})))&&c(e,"aria-label",u),(!f||g[1]&512)&&O(e,"item-mobile",w[40])},i(w){f||(d(n.$$.fragment,w),f=!0)},o(w){_(n.$$.fragment,w),f=!1},d(w){w&&C(e),L(n),i[128](null),p=!1,et(h)}}}function md(i){let e,t,n,o,l,r,a,s,u;return n=new G1({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("download_video_caption")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=K("aria_label_menu_download")),O(e,"item-mobile",i[40])},m(f,p){S(f,e,p),m(e,t),V(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[de(e,"click",st(i[78])),de(e,"keydown",i[106])],s=!0)},p(f,p){(!a||p[1]&512)&&O(e,"item-mobile",f[40])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&C(e),L(n),s=!1,et(u)}}}function pd(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b=i[44].showSupport&&Fg(i);return o=new $1({}),p=new ed({}),{c(){b&&b.c(),e=N(),t=P("li"),n=P("div"),R(o.$$.fragment),l=N(),r=P("div"),r.textContent=`${K("menu_copy_debug")}`,s=N(),u=P("li"),f=P("div"),R(p.$$.fragment),h=N(),w=P("div"),w.textContent=`${K("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(t,"class","item item-mobile svelte-1h807jq"),c(t,"role","menuitem"),c(t,"tabindex","0"),c(t,"aria-label",a=K("menu_copy_debug")),c(f,"class","menu-icon-wrapper svelte-1h807jq"),c(w,"class","menu-title svelte-1h807jq"),c(u,"class","item item-mobile svelte-1h807jq"),c(u,"role","menuitem"),c(u,"tabindex","0"),c(u,"aria-label",g=i[43]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable"))},m(v,I){b&&b.m(v,I),S(v,e,I),S(v,t,I),m(t,n),V(o,n,null),m(t,l),m(t,r),S(v,s,I),S(v,u,I),m(u,f),V(p,f,null),m(u,h),m(u,w),k=!0,y||(T=[de(t,"click",st(i[80])),de(t,"keydown",i[108]),de(u,"click",st(i[81])),de(u,"keydown",i[109])],y=!0)},p(v,I){v[44].showSupport&&b.p(v,I),(!k||I[1]&4096&&g!==(g=v[43]?K("aria_label_menu_debug_overlay_disable"):K("aria_label_menu_debug_overlay_enable")))&&c(u,"aria-label",g)},i(v){k||(d(b),d(o.$$.fragment,v),d(p.$$.fragment,v),k=!0)},o(v){_(b),_(o.$$.fragment,v),_(p.$$.fragment,v),k=!1},d(v){v&&(C(e),C(t),C(s),C(u)),b&&b.d(v),L(o),L(p),y=!1,et(T)}}}function Fg(i){let e,t,n,o,l,r,a,s,u;return n=new x1({}),{c(){e=P("li"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("menu_report")}`,c(t,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=`${K("menu_report")}. ${K("aria_label_new_tab_alert")}`)},m(f,p){S(f,e,p),m(e,t),V(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[de(e,"click",st(i[79])),de(e,"keydown",i[107])],s=!0)},p:_e,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&C(e),L(n),s=!1,et(u)}}}function _d(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g;n=new Qn({props:{direction:"left"}});let k=Ct(i[10]),y=[];for(let b=0;b<k.length;b+=1)y[b]=bd(od(i,k,b));let T=b=>_(y[b],1,1,()=>{y[b]=null});return{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("submenu_quality")}`,a=N(),s=P("div"),u=N(),f=P("ul");for(let b=0;b<y.length;b+=1)y[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=K("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=i[84](i[20]?.clientHeight,!0)),O(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(b,v){S(b,e,v),m(e,t),V(n,t,null),m(t,o),m(t,l),i[130](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<y.length;I+=1)y[I]&&y[I].m(f,null);i[133](f),h=!0,w||(g=[de(t,"click",st(i[77])),de(f,"keydown",i[93])],w=!0)},p(b,v){if((!h||v[1]&512)&&O(t,"item-mobile",b[40]),v[0]&1024|v[1]&512|v[2]&256|v[3]&2){k=Ct(b[10]);let I;for(I=0;I<k.length;I+=1){let G=od(b,k,I);y[I]?(y[I].p(G,v),d(y[I],1)):(y[I]=bd(G),y[I].c(),d(y[I],1),y[I].m(f,null))}for(ae(),I=k.length;I<y.length;I+=1)T(I);ue()}(!h||v[0]&1048576&&p!==(p=b[84](b[20]?.clientHeight,!0)))&&c(f,"style",p),(!h||v[1]&512)&&O(f,"items-mobile",b[40]),(!h||v[1]&512)&&O(e,"menu-desktop",!b[40]),(!h||v[1]&512)&&O(e,"menu-mobile",b[40])},i(b){if(!h){d(n.$$.fragment,b);for(let v=0;v<k.length;v+=1)d(y[v]);h=!0}},o(b){_(n.$$.fragment,b),y=y.filter(Boolean);for(let v=0;v<y.length;v+=1)_(y[v]);h=!1},d(b){b&&C(e),L(n),i[130](null),Ti(y,b),i[133](null),w=!1,et(g)}}}function hd(i){let e,t,n;return t=new Wo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function gd(i){let e,t,n;var o=go(i[172].value);function l(r){return{}}return o&&(t=Sn(o,l(i))),{c(){e=P("div"),t&&R(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-1h807jq")},m(r,a){S(r,e,a),t&&V(t,e,null),n=!0},p(r,a){if(a[0]&1024&&o!==(o=go(r[172].value))){if(t){ae();let s=t;_(s.$$.fragment,1,0,()=>{L(s,1)}),ue()}o?(t=Sn(o,l(r)),R(t.$$.fragment),d(t.$$.fragment,1),V(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&&C(e),t&&L(t)}}}function bd(i){let e,t,n,o=i[172].displayValue+"",l,r,a=!i[40]&&go(i[172].value),s,u,f,p,h,w,g=i[172].selected&&hd(i),k=a&&gd(i);function y(){return i[131](i[172])}function T(...b){return i[132](i[172],...b)}return{c(){e=P("li"),g&&g.c(),t=N(),n=P("div"),l=Me(o),r=N(),k&&k.c(),s=N(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",u=i[172].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=i[172].displayValue),O(e,"item-mobile",i[40])},m(b,v){S(b,e,v),g&&g.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),k&&k.m(e,null),m(e,s),p=!0,h||(w=[de(e,"click",st(y)),de(e,"keydown",T)],h=!0)},p(b,v){i=b,i[172].selected?g?v[0]&1024&&d(g,1):(g=hd(i),g.c(),d(g,1),g.m(e,t)):g&&(ae(),_(g,1,1,()=>{g=null}),ue()),(!p||v[0]&1024)&&o!==(o=i[172].displayValue+"")&&Ke(l,o),(!p||v[1]&512)&&O(n,"submenu-value-mobile",i[40]),v[0]&1024|v[1]&512&&(a=!i[40]&&go(i[172].value)),a?k?(k.p(i,v),v[0]&1024|v[1]&512&&d(k,1)):(k=gd(i),k.c(),d(k,1),k.m(e,s)):k&&(ae(),_(k,1,1,()=>{k=null}),ue()),(!p||v[0]&1024&&u!==(u=i[172].value))&&c(e,"data-value",u),(!p||v[0]&1024&&f!==(f=i[172].displayValue))&&c(e,"aria-label",f),(!p||v[1]&512)&&O(e,"item-mobile",i[40])},i(b){p||(d(g),d(k),p=!0)},o(b){_(g),_(k),p=!1},d(b){b&&C(e),g&&g.d(),k&&k.d(),h=!1,et(w)}}}function vd(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g;n=new Qn({props:{direction:"left"}});let k=Ct(i[9]),y=[];for(let b=0;b<k.length;b+=1)y[b]=kd(nd(i,k,b));let T=b=>_(y[b],1,1,()=>{y[b]=null});return{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("submenu_audio_languages")}`,a=N(),s=P("div"),u=N(),f=P("ul");for(let b=0;b<y.length;b+=1)y[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=K("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=i[84](i[21]?.clientHeight,!0)),O(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(b,v){S(b,e,v),m(e,t),V(n,t,null),m(t,o),m(t,l),i[134](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<y.length;I+=1)y[I]&&y[I].m(f,null);i[137](f),h=!0,w||(g=[de(t,"click",st(i[77])),de(f,"keydown",i[95])],w=!0)},p(b,v){if((!h||v[1]&512)&&O(t,"item-mobile",b[40]),v[0]&512|v[1]&1536|v[2]&512|v[3]&8){k=Ct(b[9]);let I;for(I=0;I<k.length;I+=1){let G=nd(b,k,I);y[I]?(y[I].p(G,v),d(y[I],1)):(y[I]=kd(G),y[I].c(),d(y[I],1),y[I].m(f,null))}for(ae(),I=k.length;I<y.length;I+=1)T(I);ue()}(!h||v[0]&2097152&&p!==(p=b[84](b[21]?.clientHeight,!0)))&&c(f,"style",p),(!h||v[1]&512)&&O(f,"items-mobile",b[40]),(!h||v[1]&512)&&O(e,"menu-desktop",!b[40]),(!h||v[1]&512)&&O(e,"menu-mobile",b[40])},i(b){if(!h){d(n.$$.fragment,b);for(let v=0;v<k.length;v+=1)d(y[v]);h=!0}},o(b){_(n.$$.fragment,b),y=y.filter(Boolean);for(let v=0;v<y.length;v+=1)_(y[v]);h=!1},d(b){b&&C(e),L(n),i[134](null),Ti(y,b),i[137](null),w=!1,et(g)}}}function yd(i){let e,t,n;return t=new Wo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function kd(i){let e,t,n,o=io(i[169],i[9])+"",l,r,a,s,u,f,p,h=i[169].id===i[41]?.id&&yd(i);function w(){return i[135](i[169])}function g(...k){return i[136](i[169],...k)}return{c(){e=P("li"),h&&h.c(),t=N(),n=P("div"),l=Me(o),r=N(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[169].id),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=io(i[169],i[9])),O(e,"item-mobile",i[40])},m(k,y){S(k,e,y),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[de(e,"click",st(w)),de(e,"keydown",g)],f=!0)},p(k,y){i=k,i[169].id===i[41]?.id?h?y[0]&512|y[1]&1024&&d(h,1):(h=yd(i),h.c(),d(h,1),h.m(e,t)):h&&(ae(),_(h,1,1,()=>{h=null}),ue()),(!u||y[0]&512)&&o!==(o=io(i[169],i[9])+"")&&Ke(l,o),(!u||y[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||y[0]&512&&a!==(a=i[169].id))&&c(e,"data-value",a),(!u||y[0]&512&&s!==(s=io(i[169],i[9])))&&c(e,"aria-label",s),(!u||y[1]&512)&&O(e,"item-mobile",i[40])},i(k){u||(d(h),u=!0)},o(k){_(h),u=!1},d(k){k&&C(e),h&&h.d(),f=!1,et(p)}}}function wd(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g;n=new Qn({props:{direction:"left"}});let k=Ct(i[8]),y=[];for(let b=0;b<k.length;b+=1)y[b]=Sd(id(i,k,b));let T=b=>_(y[b],1,1,()=>{y[b]=null});return{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("submenu_playback_rate")}`,a=N(),s=P("div"),u=N(),f=P("ul");for(let b=0;b<y.length;b+=1)y[b].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=K("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=i[84](i[22]?.clientHeight,!0)),O(f,"items-mobile",i[40]),c(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(b,v){S(b,e,v),m(e,t),V(n,t,null),m(t,o),m(t,l),i[138](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<y.length;I+=1)y[I]&&y[I].m(f,null);i[141](f),h=!0,w||(g=[de(t,"click",st(i[77])),de(f,"keydown",i[98])],w=!0)},p(b,v){if((!h||v[1]&512)&&O(t,"item-mobile",b[40]),v[0]&256|v[1]&512|v[2]&4096|v[3]&64){k=Ct(b[8]);let I;for(I=0;I<k.length;I+=1){let G=id(b,k,I);y[I]?(y[I].p(G,v),d(y[I],1)):(y[I]=Sd(G),y[I].c(),d(y[I],1),y[I].m(f,null))}for(ae(),I=k.length;I<y.length;I+=1)T(I);ue()}(!h||v[0]&4194304&&p!==(p=b[84](b[22]?.clientHeight,!0)))&&c(f,"style",p),(!h||v[1]&512)&&O(f,"items-mobile",b[40]),(!h||v[1]&512)&&O(e,"menu-desktop",!b[40]),(!h||v[1]&512)&&O(e,"menu-mobile",b[40])},i(b){if(!h){d(n.$$.fragment,b);for(let v=0;v<k.length;v+=1)d(y[v]);h=!0}},o(b){_(n.$$.fragment,b),y=y.filter(Boolean);for(let v=0;v<y.length;v+=1)_(y[v]);h=!1},d(b){b&&C(e),L(n),i[138](null),Ti(y,b),i[141](null),w=!1,et(g)}}}function Cd(i){let e,t,n;return t=new Wo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function Sd(i){let e,t,n,o=i[166].displayValue+"",l,r,a,s,u,f,p,h=i[166].selected&&Cd(i);function w(){return i[139](i[166])}function g(...k){return i[140](i[166],...k)}return{c(){e=P("li"),h&&h.c(),t=N(),n=P("div"),l=Me(o),r=N(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[166].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[166].displayValue),O(e,"item-mobile",i[40])},m(k,y){S(k,e,y),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[de(e,"click",st(w)),de(e,"keydown",g)],f=!0)},p(k,y){i=k,i[166].selected?h?y[0]&256&&d(h,1):(h=Cd(i),h.c(),d(h,1),h.m(e,t)):h&&(ae(),_(h,1,1,()=>{h=null}),ue()),(!u||y[0]&256)&&o!==(o=i[166].displayValue+"")&&Ke(l,o),(!u||y[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||y[0]&256&&a!==(a=i[166].value))&&c(e,"data-value",a),(!u||y[0]&256&&s!==(s=i[166].displayValue))&&c(e,"aria-label",s),(!u||y[1]&512)&&O(e,"item-mobile",i[40])},i(k){u||(d(h),u=!0)},o(k){_(h),u=!1},d(k){k&&C(e),h&&h.d(),f=!1,et(p)}}}function Pd(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v,I,G,q,F,fe,re,D,A,$,Y;n=new Qn({props:{direction:"left"}});let X=!i[6]&&Id(i),W=i[6]&&Td(i);return{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("submenu_traffic_saving")}`,a=N(),s=P("div"),u=N(),f=P("div"),p=P("ul"),h=P("li"),X&&X.c(),w=N(),g=P("div"),g.textContent=`${K("traffic_saving_disable")}`,y=N(),T=P("li"),W&&W.c(),b=N(),v=P("div"),v.textContent=`${K("traffic_saving_enable")}`,G=N(),q=P("div"),F=N(),fe=P("div"),re=P("span"),re.textContent=`${K("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=K("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","menu-divider svelte-1h807jq"),c(g,"class","submenu-value svelte-1h807jq"),O(g,"submenu-value-mobile",i[40]),c(h,"class","item item-traffic-saving svelte-1h807jq"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",k=K("aria_label_submenu_traffic_saving_off")),O(h,"item-mobile",i[40]),c(v,"class","submenu-value svelte-1h807jq"),O(v,"submenu-value-mobile",i[40]),c(T,"class","item item-traffic-saving svelte-1h807jq"),c(T,"role","menuitem"),c(T,"tabindex","0"),c(T,"aria-label",I=`${K("aria_label_submenu_traffic_saving_on")}. ${K("traffic_saving_helper_text")}`),O(T,"item-mobile",i[40]),c(p,"class","items svelte-1h807jq"),c(p,"role","menu"),O(p,"items-mobile",i[40]),c(q,"class","menu-divider svelte-1h807jq"),c(re,"class","svelte-1h807jq"),c(fe,"class","item item-helper-text svelte-1h807jq"),O(fe,"item-mobile",i[40]),c(f,"style",D=i[84](i[23]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(ne,E){S(ne,e,E),m(e,t),V(n,t,null),m(t,o),m(t,l),i[142](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,w),m(h,g),m(p,y),m(p,T),W&&W.m(T,null),m(T,b),m(T,v),i[147](p),m(f,G),m(f,q),m(f,F),m(f,fe),m(fe,re),A=!0,$||(Y=[de(t,"click",st(i[77])),de(h,"click",st(i[143])),de(h,"keydown",i[144]),de(T,"click",st(i[145])),de(T,"keydown",i[146]),de(p,"keydown",i[104])],$=!0)},p(ne,E){(!A||E[1]&512)&&O(t,"item-mobile",ne[40]),ne[6]?X&&(ae(),_(X,1,1,()=>{X=null}),ue()):X?E[0]&64&&d(X,1):(X=Id(ne),X.c(),d(X,1),X.m(h,w)),(!A||E[1]&512)&&O(g,"submenu-value-mobile",ne[40]),(!A||E[1]&512)&&O(h,"item-mobile",ne[40]),ne[6]?W?E[0]&64&&d(W,1):(W=Td(ne),W.c(),d(W,1),W.m(T,b)):W&&(ae(),_(W,1,1,()=>{W=null}),ue()),(!A||E[1]&512)&&O(v,"submenu-value-mobile",ne[40]),(!A||E[1]&512)&&O(T,"item-mobile",ne[40]),(!A||E[1]&512)&&O(p,"items-mobile",ne[40]),(!A||E[1]&512)&&O(fe,"item-mobile",ne[40]),(!A||E[0]&8388608&&D!==(D=ne[84](ne[23]?.clientHeight,!0)))&&c(f,"style",D),(!A||E[1]&512)&&O(e,"menu-desktop",!ne[40]),(!A||E[1]&512)&&O(e,"menu-mobile",ne[40])},i(ne){A||(d(n.$$.fragment,ne),d(X),d(W),A=!0)},o(ne){_(n.$$.fragment,ne),_(X),_(W),A=!1},d(ne){ne&&C(e),L(n),i[142](null),X&&X.d(),W&&W.d(),i[147](null),$=!1,et(Y)}}}function Id(i){let e,t,n;return t=new Wo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function Td(i){let e,t,n;return t=new Wo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function Ed(i){let e,t,n,o,l,r,a,s,u,f,p,h;n=new Qn({props:{direction:"left"}});let w=Ct(i[7]),g=[];for(let y=0;y<w.length;y+=1)g[y]=Md(td(i,w,y));let k=y=>_(g[y],1,1,()=>{g[y]=null});return{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=N(),l=P("div"),l.textContent=`${K("subtitles_caption")}`,a=N(),s=P("ul");for(let y=0;y<g.length;y+=1)g[y].c();c(t,"class","item menu-header svelte-1h807jq"),c(t,"aria-label",r=K("aria_label_submenu_back")),O(t,"item-mobile",i[40]),c(s,"class","items svelte-1h807jq"),c(s,"role","menu"),c(s,"style",u=i[84](i[24]?.clientHeight,!0)),O(s,"items-mobile",i[40]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(y,T){S(y,e,T),m(e,t),V(n,t,null),m(t,o),m(t,l),i[148](t),m(e,a),m(e,s);for(let b=0;b<g.length;b+=1)g[b]&&g[b].m(s,null);i[151](s),f=!0,p||(h=[de(t,"click",st(i[77])),de(s,"keydown",i[101])],p=!0)},p(y,T){if((!f||T[1]&512)&&O(t,"item-mobile",y[40]),T[0]&128|T[1]&512|T[2]&16384|T[3]&512){w=Ct(y[7]);let b;for(b=0;b<w.length;b+=1){let v=td(y,w,b);g[b]?(g[b].p(v,T),d(g[b],1)):(g[b]=Md(v),g[b].c(),d(g[b],1),g[b].m(s,null))}for(ae(),b=w.length;b<g.length;b+=1)k(b);ue()}(!f||T[0]&16777216&&u!==(u=y[84](y[24]?.clientHeight,!0)))&&c(s,"style",u),(!f||T[1]&512)&&O(s,"items-mobile",y[40]),(!f||T[1]&512)&&O(e,"menu-desktop",!y[40]),(!f||T[1]&512)&&O(e,"menu-mobile",y[40])},i(y){if(!f){d(n.$$.fragment,y);for(let T=0;T<w.length;T+=1)d(g[T]);f=!0}},o(y){_(n.$$.fragment,y),g=g.filter(Boolean);for(let T=0;T<g.length;T+=1)_(g[T]);f=!1},d(y){y&&C(e),L(n),i[148](null),Ti(g,y),i[151](null),p=!1,et(h)}}}function Ad(i){let e,t,n;return t=new Wo({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&C(e),L(t)}}}function Md(i){let e,t,n,o=i[163].displayValue+"",l,r,a,s,u,f,p,h=i[163].selected&&Ad(i);function w(){return i[149](i[163])}function g(...k){return i[150](i[163],...k)}return{c(){e=P("li"),h&&h.c(),t=N(),n=P("div"),l=Me(o),r=N(),c(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=i[163].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[163].displayValue),O(e,"item-mobile",i[40])},m(k,y){S(k,e,y),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[de(e,"click",st(w)),de(e,"keydown",g)],f=!0)},p(k,y){i=k,i[163].selected?h?y[0]&128&&d(h,1):(h=Ad(i),h.c(),d(h,1),h.m(e,t)):h&&(ae(),_(h,1,1,()=>{h=null}),ue()),(!u||y[0]&128)&&o!==(o=i[163].displayValue+"")&&Ke(l,o),(!u||y[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||y[0]&128&&a!==(a=i[163].value))&&c(e,"data-value",a),(!u||y[0]&128&&s!==(s=i[163].displayValue))&&c(e,"aria-label",s),(!u||y[1]&512)&&O(e,"item-mobile",i[40])},i(k){u||(d(h),u=!0)},o(k){_(h),u=!1},d(k){k&&C(e),h&&h.d(),f=!1,et(p)}}}function Hg(i){let e,t,n,o,l,r,a,s=i[12]&&ld(i),u=i[14]&&_d(i),f=i[15]&&vd(i),p=i[16]&&wd(i),h=i[18]&&Pd(i),w=i[17]&&Ed(i);return{c(){e=P("div"),s&&s.c(),t=N(),u&&u.c(),n=N(),f&&f.c(),o=N(),p&&p.c(),l=N(),h&&h.c(),r=N(),w&&w.c(),c(e,"class","svelte-1h807jq"),O(e,"hidden",!i[12]),O(e,"container-mobile",i[40])},m(g,k){S(g,e,k),s&&s.m(e,null),m(e,t),u&&u.m(e,null),m(e,n),f&&f.m(e,null),m(e,o),p&&p.m(e,null),m(e,l),h&&h.m(e,null),m(e,r),w&&w.m(e,null),a=!0},p(g,k){g[12]?s?(s.p(g,k),k[0]&4096&&d(s,1)):(s=ld(g),s.c(),d(s,1),s.m(e,t)):s&&(ae(),_(s,1,1,()=>{s=null}),ue()),g[14]?u?(u.p(g,k),k[0]&16384&&d(u,1)):(u=_d(g),u.c(),d(u,1),u.m(e,n)):u&&(ae(),_(u,1,1,()=>{u=null}),ue()),g[15]?f?(f.p(g,k),k[0]&32768&&d(f,1)):(f=vd(g),f.c(),d(f,1),f.m(e,o)):f&&(ae(),_(f,1,1,()=>{f=null}),ue()),g[16]?p?(p.p(g,k),k[0]&65536&&d(p,1)):(p=wd(g),p.c(),d(p,1),p.m(e,l)):p&&(ae(),_(p,1,1,()=>{p=null}),ue()),g[18]?h?(h.p(g,k),k[0]&262144&&d(h,1)):(h=Pd(g),h.c(),d(h,1),h.m(e,r)):h&&(ae(),_(h,1,1,()=>{h=null}),ue()),g[17]?w?(w.p(g,k),k[0]&131072&&d(w,1)):(w=Ed(g),w.c(),d(w,1),w.m(e,null)):w&&(ae(),_(w,1,1,()=>{w=null}),ue()),(!a||k[0]&4096)&&O(e,"hidden",!g[12]),(!a||k[1]&512)&&O(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(f),d(p),d(h),d(w),a=!0)},o(g){_(s),_(u),_(f),_(p),_(h),_(w),a=!1},d(g){g&&C(e),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d(),h&&h.d(),w&&w.d()}}}var zg=18;function Ug(i,e,t){let n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v,I,G,q,F,fe,re,D,A,$,Y,{ref:X=void 0}=e,{supportLink:W}=e,{playerControlsHeight:ne=0}=e,{returnFocus:E}=e,Q=ot(),Be=Ot(),je=Q.state.audioStream$;H(i,je,ee=>t(41,g=ee));let Qe=Q.state.availableAudioStreams$;H(i,Qe,ee=>t(9,k=ee));let Xe=Q.state.currentQuality$;H(i,Xe,ee=>t(118,b=ee));let qe=Q.state.availableQualities$;H(i,qe,ee=>t(10,y=ee));let ye=Q.state.autoQualityLimitingAvailable$;H(i,ye,ee=>t(122,q=ee));let J=Q.state.isAutoQualityEnabled$;H(i,J,ee=>t(119,v=ee));let we=Q.state.currentPlaybackRate$;H(i,we,ee=>t(11,T=ee));let We=Q.state.availablePlaybackRates$;H(i,We,ee=>t(8,p=ee));let $e=Q.state.currentSubtitle$;H(i,$e,ee=>t(42,$=ee));let it=Q.state.availableSubtitlesList$;H(i,it,ee=>t(7,u=ee));let ke=Q.state.canDownload,Re=Q.state.hasMpegSources$;H(i,Re,ee=>t(123,F=ee));let Ge=Q.ui.settingsMenuVisible;H(i,Ge,ee=>t(12,A=ee));let Je=Q.ui.settingsMenuOpenedByKeyboard;H(i,Je,ee=>t(153,o=ee));let Se=Q.ui.isMobile;H(i,Se,ee=>t(40,l=ee));let se=Q.ui.mobileNotReportControlHidden$;H(i,se,ee=>t(120,I=ee));let ze=Q.state.canChangePlaybackSpeed$;H(i,ze,ee=>t(121,G=ee));let me=Q.ui.isFullscreen;H(i,me,ee=>t(156,D=ee));let le=Q.state.trafficSavingEnabled$;H(i,le,ee=>t(6,a=ee));let Ne=Q.ui.playerSize;H(i,Ne,ee=>t(155,re=ee));let Ae=Q.ui.debugPanelVisible;H(i,Ae,ee=>t(43,Y=ee));let Ue=Q.ui.playerSize;H(i,Ue,ee=>t(154,fe=ee));let at=Q.state.isInteractiveTime$,ve=Q.actions.internal.downloadVideo,dt=Q.actions.internal.closeSettingsMenu,nt=!0,gt=!1,wt=!1,At=!1,Ye=!1,Ft=!1,Rt=!1;function St(){o||E?.(),dt(),Rt=!1}function ui(){t(13,nt=!1),t(14,gt=!0)}function lt(){t(13,nt=!1),t(15,wt=!0)}function bt(){t(13,nt=!1),t(18,Ft=!0)}function be(ee){Q.actions.internal.setQuality(ee),St()}function _t(ee){Q.actions.internal.setAudioStream(ee),St()}function Pt(ee){Q.actions.internal.setTrafficSavingEnabled(ee),St()}function $t(){t(13,nt=!1),t(16,At=!0)}function vt(ee){Q.actions.internal.setPlaybackRate(ee),St()}function Kt(){t(13,nt=!1),t(17,Ye=!0)}function jt(ee){Q.actions.internal.setSubtitle(ee),St()}function Wt(){t(13,nt=!0),t(14,gt=!1),t(15,wt=!1),t(16,At=!1),t(17,Ye=!1),t(18,Ft=!1)}function Hi(){ve(),St()}function tn(){window.open(W,"_blank"),St(),Q.actions.internal.pause()}function ei(){al(Q.actions.internal.getDebugTextData()),St()}function Ai(){Ae.set(!0),St()}function dn(){Rt=!0}function vi(){Rt=!1}function nn(ee,mt,_i){if(!ee)return"...";let An=mt.find(xn=>xn.value===ee),Hn=An?An.displayValue:ee;return _i?ee===Vd.VideoQuality.INVARIANT?K("auto_quality_invariant"):K("auto_quality",{actual:Hn}):Hn}let ci,Mi,fi,yi,di,ki;function Bt(ee=0,mt=!1){return l&&D&&mt?`max-height: ${Math.round(re.height*.6)}px`:l?"":`max-height: ${fe.height-zg-ee-ne}px; overflow: auto;`}let Yt,on,zi,ti,wi,Ui,Vi,Mt,ln,Zt,Li,Ki,ji,Gt=De(!1);H(i,Gt,ee=>t(117,w=ee));let mi=De(!1);H(i,mi,ee=>t(116,h=ee));let pi,ii,Xt=De(!1);H(i,Xt,ee=>t(115,f=ee));let Vt,ni,Ri=De(!1);H(i,Ri,ee=>t(114,s=ee));let Ci,Jt,oi=De(!1);H(i,oi,ee=>t(113,r=ee));let Wi=ee=>{kr(ee,dt)},Gi=async ee=>{ml(ee,ui,()=>{let mt=y.findIndex(_i=>_i.selected);return Ki.childNodes[mt]})},mn=async ee=>{ml(ee,lt,()=>{let mt=k.findIndex(_i=>_i.id===g?.id);return ji.childNodes[mt]})},Qi=async ee=>{pl(ee,Wt,Gt,dt)},Dt=(ee,mt)=>{gi(ee,()=>be(mt))},Nt=async ee=>{pl(ee,Wt,mi,dt)},Si=(ee,mt)=>{gi(ee,()=>_t(mt))},li=async ee=>{ml(ee,$t,()=>{let mt=p.findIndex(_i=>_i.selected);return ii.childNodes[mt]})},Yi=async ee=>{pl(ee,Wt,Xt,dt)},Bi=(ee,mt)=>{gi(ee,()=>vt(mt))},rn=async ee=>{ml(ee,Kt,()=>{let mt=u.findIndex(_i=>_i.selected);return ni.childNodes[mt]})},Pi=async ee=>{pl(ee,Wt,Ri,dt)},Di=(ee,mt)=>{gi(ee,()=>jt(mt))},tt=async ee=>{ml(ee,bt,()=>{let mt=a?2:0;return Jt.childNodes[mt]})},ri=async ee=>{pl(ee,Wt,oi,dt)},xt=(ee,mt)=>{gi(ee,()=>Pt(mt))},He=ee=>{gi(ee,()=>Hi())},Ni=ee=>{gi(ee,()=>tn())},pn=ee=>{gi(ee,()=>ei())},Zi=ee=>{gi(ee,()=>Ai())};Tt(()=>{let ee=at.subscribe(mt=>{mt&&!l&&!Rt&&!o&&St()});return()=>{ee()}});function qi(ee){pe[ee?"unshift":"push"](()=>{Zt=ee,t(1,Zt)})}function Xi(ee){pe[ee?"unshift":"push"](()=>{Li=ee,t(2,Li)})}function Ji(ee){pe[ee?"unshift":"push"](()=>{pi=ee,t(3,pi)})}function _n(ee){pe[ee?"unshift":"push"](()=>{Vt=ee,t(4,Vt)})}function yn(ee){pe[ee?"unshift":"push"](()=>{Ci=ee,t(5,Ci)})}function Ht(ee){pe[ee?"unshift":"push"](()=>{X=ee,t(0,X)})}function Oi(ee){pe[ee?"unshift":"push"](()=>{Mi=ee,t(20,Mi)})}let sn=ee=>be(ee.value),Pn=(ee,mt)=>Dt(mt,ee.value);function an(ee){pe[ee?"unshift":"push"](()=>{Ki=ee,t(34,Ki)})}function un(ee){pe[ee?"unshift":"push"](()=>{fi=ee,t(21,fi)})}let hn=ee=>_t(ee),zt=(ee,mt)=>Si(mt,ee);function xi(ee){pe[ee?"unshift":"push"](()=>{ji=ee,t(35,ji)})}function In(ee){pe[ee?"unshift":"push"](()=>{yi=ee,t(22,yi)})}let Tn=ee=>vt(ee.value),En=(ee,mt)=>Bi(mt,ee.value);function Qt(ee){pe[ee?"unshift":"push"](()=>{ii=ee,t(36,ii)})}function Dn(ee){pe[ee?"unshift":"push"](()=>{di=ee,t(23,di)})}let kn=()=>Pt(!1),cn=ee=>xt(ee,!1),Nn=()=>Pt(!0),wn=ee=>xt(ee,!0);function gn(ee){pe[ee?"unshift":"push"](()=>{Jt=ee,t(38,Jt)})}function Fi(ee){pe[ee?"unshift":"push"](()=>{ki=ee,t(24,ki)})}let te=ee=>jt(ee),ht=(ee,mt)=>Di(mt,ee);function Cn(ee){pe[ee?"unshift":"push"](()=>{ni=ee,t(37,ni)})}return i.$$set=ee=>{"ref"in ee&&t(0,X=ee.ref),"supportLink"in ee&&t(110,W=ee.supportLink),"playerControlsHeight"in ee&&t(111,ne=ee.playerControlsHeight),"returnFocus"in ee&&t(112,E=ee.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&4096)e:A&&(t(13,nt=!0),t(14,gt=!1),t(15,wt=!1),t(16,At=!1),t(17,Ye=!1),t(18,Ft=!1));if(i.$$.dirty[3]&33554432)e:t(39,n=go(b));if(i.$$.dirty[0]&1024|i.$$.dirty[3]&100663296)e:t(19,ci=nn(b,y,v));if(i.$$.dirty[3]&1207959552)e:t(25,Yt=ke&&F&&!I);if(i.$$.dirty[3]&671088640)e:t(26,on=Be.features.trafficSaving&&!I&&q);if(i.$$.dirty[0]&128|i.$$.dirty[3]&134217728)e:t(27,zi=u.length>0&&!I);if(i.$$.dirty[3]&402653184)e:t(28,ti=!!G&&!I);if(i.$$.dirty[0]&512|i.$$.dirty[3]&134217728)e:t(29,wi=Be.features.audioLanguages&&k.length>=2&&!I);if(i.$$.dirty[3]&134217728)e:t(30,Ui=!I);if(i.$$.dirty[0]&64)e:t(31,Vi=a?K("traffic_saving_on"):K("traffic_saving_off"));if(i.$$.dirty[3]&100663296)e:t(32,Mt=v?K("auto_quality_option"):b);if(i.$$.dirty[0]&2304)e:t(33,ln=p.find(ee=>ee.value===T)?.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&16777216)e:dl(Zt,Gt,w);if(i.$$.dirty[0]&4|i.$$.dirty[3]&8388608)e:dl(Li,mi,h);if(i.$$.dirty[0]&8|i.$$.dirty[3]&4194304)e:dl(pi,Xt,f);if(i.$$.dirty[0]&16|i.$$.dirty[3]&2097152)e:dl(Vt,Ri,s);if(i.$$.dirty[0]&32|i.$$.dirty[3]&1048576)e:dl(Ci,oi,r)},[X,Zt,Li,pi,Vt,Ci,a,u,p,k,y,T,A,nt,gt,wt,At,Ye,Ft,ci,Mi,fi,yi,di,ki,Yt,on,zi,ti,wi,Ui,Vi,Mt,ln,Ki,ji,ii,ni,Jt,n,l,g,$,Y,Be,je,Qe,Xe,qe,ye,J,we,We,$e,it,Re,Ge,Je,Se,se,ze,me,le,Ne,Ae,Ue,St,ui,lt,bt,be,_t,Pt,$t,vt,Kt,jt,Wt,Hi,tn,ei,Ai,dn,vi,Bt,Gt,mi,Xt,Ri,oi,Wi,Gi,mn,Qi,Dt,Nt,Si,li,Yi,Bi,rn,Pi,Di,tt,ri,xt,He,Ni,pn,Zi,W,ne,E,r,s,f,h,w,b,v,I,G,q,F,qi,Xi,Ji,_n,yn,Ht,Oi,sn,Pn,an,un,hn,zt,xi,In,Tn,En,Qt,Dn,kn,cn,Nn,wn,gn,Fi,te,ht,Cn]}var Fa=class extends U{constructor(e){super(),j(this,e,Ug,Hg,z,{ref:0,supportLink:110,playerControlsHeight:111,returnFocus:112},Og,[-1,-1,-1,-1,-1,-1])}},Rr=Fa;function Kg(i){Ce(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function jg(i){let e,t,n;return t=new Vr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=P("span"),R(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){S(o,e,l),V(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&&C(e),L(t)}}}function Wg(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:[jg]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function Gg(i,e,t){let n,o,l,{ref:r=void 0}=e,a=ot(),s=a.state.currentQuality$;H(i,s,k=>t(4,l=k));let u=a.ui.settingsMenuVisible;H(i,u,k=>t(1,n=k));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;H(i,p,k=>t(3,o=k));let h;function w(k){let y=cl(k);f(y)}function g(k){r=k,t(0,r)}return i.$$set=k=>{"ref"in k&&t(0,r=k.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?K("tooltip_settings_on"):K("tooltip_settings_off"))},[r,n,h,o,l,s,u,p,w,g]}var Ha=class extends U{constructor(e){super(),j(this,e,Gg,Wg,z,{ref:0},Kg)}},Ol=Ha;function Qg(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Yg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var za=class extends U{constructor(e){super(),j(this,e,Yg,Qg,z,{})}},Ld=za;function Zg(i){let e,t;return e=new Lr({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Xg(i){let e,t;return e=new Ld({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Jg(i){let e,t,n,o,l=[Xg,Zg],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=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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&&C(n),r[e].d(s)}}}function xg(i){let e,t;return e=new pt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Zn.KeyC,$$slots:{default:[Jg]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function $g(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?K("tooltip_subtitles_on"):K("tooltip_subtitles_off"))},[n,o,l]}var Ua=class extends U{constructor(e){super(),j(this,e,$g,xg,z,{isSubtitlesEnabled:0,click:1})}},Rd=Ua;function eb(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 Bd(i){let e,t;return{c(){e=P("span"),t=Me(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&8&&Ke(t,n[3])},d(n){n&&C(e)}}}function tb(i){let e,t,n,o,l=i[2]&&Bd(i);return{c(){e=P("div"),t=P("span"),n=Me(i[4]),o=N(),l&&l.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),O(e,"mobile",i[1])},m(r,a){S(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&&Ke(n,r[4]),r[2]?l?l.p(r,a):(l=Bd(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&O(e,"mobile",r[1])},i:_e,o:_e,d(r){r&&C(e),l&&l.d(),i[7](null)}}}function ib(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(p){pe[p?"unshift":"push"](()=>{a=p,t(0,a)})}return i.$$set=p=>{"isMobile"in p&&t(1,n=p.isMobile),"duration"in p&&t(5,o=p.duration),"position"in p&&t(6,l=p.position),"showDuration"in p&&t(2,r=p.showDuration),"ref"in p&&t(0,a=p.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=Rn(o));if(i.$$.dirty&64)e:t(4,u=Rn(l))},[a,n,r,s,u,o,l,f]}var Ka=class extends U{constructor(e){super(),j(this,e,ib,tb,z,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},eb)}},Br=Ka;var no=require("@vkontakte/videoplayer-shared");function nb(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 ob(i){let e,t,n,o,l,r;return{c(){e=B("svg"),t=B("g"),n=B("path"),o=B("path"),l=B("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){S(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&&C(e)}}}function lb(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 ja=class extends U{constructor(e){super(),j(this,e,lb,ob,z,{volume:1,muted:2},nb)}},Go=ja;var On=require("@vkontakte/videoplayer-shared");var Od=require("@vkontakte/videoplayer-shared");var qd=require("@vkontakte/videoplayer-shared");function rb(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){S(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&&C(e),o&&o.d(l),i[5](null)}}}function sb(i,e,t){let n,{$$slots:o={},$$scope:l}=e,a=ot().ui.overlayContainer$;H(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},f=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Tt(()=>(f(n),()=>u(n)));function p(h){pe[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,l=h.$$scope)},i.$$.update=()=>{if(i.$$.dirty&4)e:f(n)},[s,a,n,l,o,p]}var Wa=class extends U{constructor(e){super(),j(this,e,sb,rb,z,{})}},Dd=Wa;function ab(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 Nd(i){let e,t;return e=new Dd({props:{$$slots:{default:[ub]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function ub(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("div"),n=Me(i[1]),o=N(),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"});`),O(l,"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){S(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),i[20](e)},p(s,u){u&2&&Ke(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&&O(e,"active",s[0])},d(s){s&&C(e),i[20](null)}}}function cb(i){let e,t,n,o,l,r,a=i[18].default,s=Pe(a,i,i[21],null),u=i[1]&&Nd(i);return{c(){e=P("div"),s&&s.c(),t=N(),u&&u.c(),n=ut(),c(e,"class","tooltip-wrapper svelte-tny135"),O(e,"full-width",i[2])},m(f,p){S(f,e,p),s&&s.m(e,null),i[19](e),S(f,t,p),u&&u.m(f,p),S(f,n,p),o=!0,l||(r=[de(e,"mouseenter",i[12]),de(e,"mousemove",i[12]),de(e,"mouseleave",i[13]),de(e,"mousedown",i[13]),de(e,"mouseup",i[12])],l=!0)},p(f,[p]){s&&s.p&&(!o||p&2097152)&&Te(s,a,f,f[21],o?Ie(a,f[21],p,null):Ee(f[21]),null),(!o||p&4)&&O(e,"full-width",f[2]),f[1]?u?(u.p(f,p),p&2&&d(u,1)):(u=Nd(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ae(),_(u,1,1,()=>{u=null}),ue())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(C(e),C(t),C(n)),s&&s.d(f),i[19](null),u&&u.d(f),l=!1,et(r)}}}var Fl=5;function fb(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:w=qd.noop}=e,g=h==="top",k,y,T,b=0,v=g?Fl:-Fl,I=0,G=0,q=Ot(),F=ot(),fe=F.ui.playerSize;H(i,fe,Q=>t(24,o=Q));let re=F.ui.overlayContainer$;H(i,re,Q=>t(23,n=Q));let D=F.getLogger().createComponentLog("Tooltip component"),A=()=>{if(!n||!y||!k)return;let Q=n.getBoundingClientRect(),Be=k.getBoundingClientRect(),je=Be.width,Qe=y.clientWidth,Xe=o.width,qe=(je-Qe)/2,ye=Be.left+u-Q.left,J=ye+qe,we=Be.top+f-Q.top,We=Qe/2-Fl,$e=J<8,it=J+Qe>Xe-8;$e&&(J=8,We=ye+Be.width/2-2.5*Fl),it&&(J=Xe-8-Qe,We=Be.left-Q.left+Be.width/2-J-Fl),t(6,I=J),t(7,G=we),t(5,b=We)},$=()=>{try{if(!n||!k)return;A(),t(0,s=!0)}catch(Q){D({message:String(Q)})}},Y=()=>{t(0,s=!1)},X=()=>{y&&(T||(T=window.setTimeout($,q.controls.hideTimeoutTooltips)),s&&$())},W=()=>{Y(),window.clearTimeout(T),T=void 0};Tt(A),jn(()=>window.clearTimeout(T));function ne(Q){pe[Q?"unshift":"push"](()=>{k=Q,t(3,k)})}function E(Q){pe[Q?"unshift":"push"](()=>{y=Q,t(4,y)})}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,w=Q.onVisibilityChange),"$$scope"in Q&&t(21,r=Q.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:w(s)},[s,a,p,k,y,b,I,G,g,v,fe,re,X,W,u,f,h,w,l,ne,E,r]}var Ga=class extends U{constructor(e){super(),j(this,e,fb,cb,z,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},ab)}},Dr=Ga;function db(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 mb(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 pb(i){let e,t;return e=new Dr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[_b]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let l={};o&2048&&(l.content=n[11]),o&512&&(l.translateX=n[9]),o&1024&&(l.translateY=n[10]),o&16&&(l.isFullWidthWrapper=n[4]),o&32&&(l.active=n[5]),o&64&&(l.placement=n[6]),o&256&&(l.onVisibilityChange=n[8]),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){L(e,n)}}}function _b(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 hb(i){let e,t,n,o,l,r,a,s,u,f=[pb,mb],p=[];function h(w,g){return w[3]&&w[11]&&!w[12]?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[7]||null),Gn(()=>i[23].call(e))},m(w,g){S(w,e,g),p[t].m(e,null),i[22](e),r=xo(e,i[23].bind(e)),a=!0,s||(u=[de(e,"pointerdown",st(It(i[20]))),de(e,"click",st(It(i[21])))],s=!0)},p(w,[g]){let k=t;t=h(w,g),t===k?p[t].p(w,g):(ae(),_(p[k],1,1,()=>{p[k]=null}),ue(),n=p[t],n?n.p(w,g):(n=p[t]=f[t](w),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+w[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&128&&l!==(l=w[7]||null))&&c(e,"aria-hidden",l)},i(w){a||(d(n),a=!0)},o(w){_(n),a=!1},d(w){w&&C(e),p[t].d(),i[22](null),r(),s=!1,et(u)}}}function gb(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:w=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:k="top"}=e,{disabledTooltipContent:y=K("tooltip_button_disabled")}=e,{isAriaHidden:T=!1}=e,{onTooltipVisibilityChange:b=Od.noop}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:I=-18}=e,G=ot(),q=G.ui.isMobile;H(i,q,Y=>t(12,o=Y));let F=G.state.graphIsOpened$;H(i,F,Y=>t(18,n=Y));let fe;function re(Y){Vn.call(this,i,Y)}function D(Y){Vn.call(this,i,Y)}function A(Y){pe[Y?"unshift":"push"](()=>{f=Y,t(0,f)})}function $(){p=this.clientWidth,t(1,p)}return i.$$set=Y=>{"className"in Y&&t(2,a=Y.className),"disabled"in Y&&t(15,s=Y.disabled),"hasTooltip"in Y&&t(3,u=Y.hasTooltip),"ref"in Y&&t(0,f=Y.ref),"width"in Y&&t(1,p=Y.width),"isFullWidthTooltip"in Y&&t(4,h=Y.isFullWidthTooltip),"tooltipContent"in Y&&t(16,w=Y.tooltipContent),"tooltipActive"in Y&&t(5,g=Y.tooltipActive),"tooltipPlacement"in Y&&t(6,k=Y.tooltipPlacement),"disabledTooltipContent"in Y&&t(17,y=Y.disabledTooltipContent),"isAriaHidden"in Y&&t(7,T=Y.isAriaHidden),"onTooltipVisibilityChange"in Y&&t(8,b=Y.onTooltipVisibilityChange),"initialTranslateXPx"in Y&&t(9,v=Y.initialTranslateXPx),"initialTranslateYPx"in Y&&t(10,I=Y.initialTranslateYPx),"$$scope"in Y&&t(24,r=Y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&491520)e:s?t(11,fe=n?K("tooltip_disabled_when_graph_on"):y):t(11,fe=w)},[f,p,a,u,h,g,k,T,b,v,I,fe,o,q,F,s,w,y,n,l,re,D,A,$,r]}var Qa=class extends U{constructor(e){super(),j(this,e,gb,hb,z,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},db)}},Lt=Qa;function bb(i){let e,t,n,o,l,r;return{c(){e=B("svg"),t=B("rect"),o=B("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){S(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&&C(e)}}}function vb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Ya=class extends U{constructor(e){super(),j(this,e,vb,bb,z,{completed:0})}},Nr=Ya;function yb(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 kb(i){let e,t,n,o,l;return t=new Nr({props:{completed:!!i[0].completed}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Gn(()=>i[3].call(e)),O(e,"disabled",i[1])},m(r,a){S(r,e,a),V(t,e,null),o=xo(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)&&O(e,"disabled",r[1])},i(r){l||(d(t.$$.fragment,r),l=!0)},o(r){_(t.$$.fragment,r),l=!1},d(r){r&&C(e),L(t),o()}}}function wb(i){let e,t;return e=new Lt({props:{tooltipContent:K(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:[kb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=K(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){L(e,n)}}}function Cb(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 Za=class extends U{constructor(e){super(),j(this,e,Cb,wb,z,{videoEpisode:0,disabled:1},yb)}},Fd=Za;function Sb(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 Hd(i,e,t){let n=i.slice();return n[2]=e[t],n}function zd(i){let e,t,n,o,l,r,a,s,u;return{c(){e=P("div"),t=P("div"),n=P("div"),l=N(),r=P("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(r,"class","video-episode-filled svelte-1h9p3m2"),c(r,"style",a=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),O(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}%`),O(e,"mobile",i[1])},m(f,p){S(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&&O(r,"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&&C(e)}}}function Pb(i){let e,t=Ct(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=zd(Hd(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){S(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=Ct(o[0]);let r;for(r=0;r<t.length;r+=1){let a=Hd(o,t,r);n[r]?n[r].p(a,l):(n[r]=zd(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&&C(e),Ti(n,o)}}}function Ib(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 Xa=class extends U{constructor(e){super(),j(this,e,Ib,Pb,z,{videoEpisodes:0,isMobile:1},Sb)}},Ud=Xa;function Tb(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 Kd(i,e,t){let n=i.slice();return n[48]=e[t],n}function jd(i){let e,t,n=Ct(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=Gd(Kd(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"),O(e,"mobile",i[5]),O(e,"hidden",i[5]&&!i[20])},m(r,a){S(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=Ct(r[21]);let s;for(s=0;s<n.length;s+=1){let u=Kd(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=Gd(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ae(),s=n.length;s<o.length;s+=1)l(s);ue()}(!t||a[0]&32)&&O(e,"mobile",r[5]),(!t||a[0]&1048608)&&O(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&&C(e),Ti(o,r)}}}function Wd(i){let e,t;return e=new Fd({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Gd(i){let e,t,n=i[48].interactive&&Wd(i);return{c(){n&&n.c(),e=ut()},m(o,l){n&&n.m(o,l),S(o,e,l),t=!0},p(o,l){o[48].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=Wd(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),_(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function Eb(i){let e,t,n,o,l,r;return{c(){e=P("div"),t=P("div"),o=N(),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}%);`),O(l,"active-live",i[4]),O(l,"ads",i[6]),c(e,"class","bars svelte-1golz1y")},m(a,s){S(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&&O(l,"active-live",a[4]),s[0]&64&&O(l,"ads",a[6])},i:_e,o:_e,d(a){a&&C(e)}}}function Ab(i){let e,t;return e=new Ud({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Mb(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g=i[8]&&jd(i),k=[Ab,Eb],y=[];function T(b,v){return b[21].length?0:1}return n=T(i,[-1,-1]),o=y[n]=k[n](i),{c(){g&&g.c(),e=N(),t=P("div"),o.c(),l=N(),r=P("div"),a=P("div"),c(a,"class","handle svelte-1golz1y"),O(a,"active-live",i[4]),c(r,"class","handleWrap svelte-1golz1y"),c(r,"style",s=`transform: translateX(${i[13]*100}%);`),O(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),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(b,v){g&&g.m(b,v),S(b,e,v),S(b,t,v),y[n].m(t,null),m(t,l),m(t,r),m(r,a),i[42](t),p=!0,h||(w=[de(t,"pointerdown",It(i[22])),de(t,"pointermove",It(i[23])),de(t,"pointerup",It(i[24])),de(t,"pointerenter",It(i[25])),de(t,"pointerleave",It(i[26])),de(t,"click",st(On.noop)),de(t,"wheel",i[27])],h=!0)},p(b,v){b[8]?g?(g.p(b,v),v[0]&256&&d(g,1)):(g=jd(b),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ae(),_(g,1,1,()=>{g=null}),ue());let I=n;n=T(b,v),n===I?y[n].p(b,v):(ae(),_(y[I],1,1,()=>{y[I]=null}),ue(),o=y[n],o?o.p(b,v):(o=y[n]=k[n](b),o.c()),d(o,1),o.m(t,l)),(!p||v[0]&16)&&O(a,"active-live",b[4]),(!p||v[0]&8192&&s!==(s=`transform: translateX(${b[13]*100}%);`))&&c(r,"style",s),(!p||v[0]&1024)&&O(r,"hidden",b[10]),(!p||v[0]&1&&u!==(u="slider "+b[0]+" svelte-1golz1y"))&&c(t,"class",u),(!p||v[0]&16384)&&c(t,"aria-label",b[14]),(!p||v[0]&32768)&&c(t,"aria-valuemin",b[15]),(!p||v[0]&65536)&&c(t,"aria-valuemax",b[16]),(!p||v[0]&131072)&&c(t,"aria-valuenow",b[17]),(!p||v[0]&262144)&&c(t,"aria-valuetext",b[18]),(!p||v[0]&2&&f!==(f=b[1]??null))&&c(t,"data-testid",f),(!p||v[0]&513)&&O(t,"disabled",b[9]),(!p||v[0]&1048577)&&O(t,"slider-dragging",b[20]),(!p||v[0]&5)&&O(t,"hidden",b[2]),(!p||v[0]&9)&&O(t,"slider-vertical",b[3]),(!p||v[0]&1025)&&O(t,"no-handle",b[10]),(!p||v[0]&129)&&O(t,"square",b[7])},i(b){p||(d(g),d(o),p=!0)},o(b){_(g),_(o),p=!1},d(b){b&&(C(e),C(t)),g&&g.d(b),y[n].d(),i[42](null),h=!1,et(w)}}}function Vb(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:w=[]}=e,{withWheelHandler:g=!1}=e,{isInteractive:k=!1}=e,{disabled:y=!1}=e,{hideHandel:T=!1}=e,b,v,{onPointerDown:I=On.noop}=e,{onHandleMove:G=On.noop}=e,{onPointerUp:q=On.noop}=e,{onPointerEnter:F=On.noop}=e,{onPointerMove:fe=On.noop}=e,{onPointerLeave:re=On.noop}=e,{onWheelUp:D=On.noop}=e,{onWheelDown:A=On.noop}=e,{onWheelLeft:$=On.noop}=e,{onWheelRight:Y=On.noop}=e,{loadedProgress:X=0}=e,{filledProgress:W=0}=e,{handleProgress:ne=0}=e,{ariaLabel:E=""}=e,{ariaValueMin:Q=void 0}=e,{ariaValueMax:Be=void 0}=e,{ariaValueNow:je=void 0}=e,{ariaValueText:Qe=""}=e,Xe=Ot(),qe=!1,ye;function J(se){if(qe)return;t(20,qe=!0),v=b.getBoundingClientRect();let ze=Re(se.clientX,se.clientY);I(ze),b.setPointerCapture(se.pointerId)}function we(se){let ze=Re(se.clientX,se.clientY),me=Ge(se.clientX);fe(ze,me,v.width),qe&&G(ze)}function We(se){if(!qe)return;t(20,qe=!1);let ze=Re(se.clientX,se.clientY);q(ze)}function $e(se){v=b.getBoundingClientRect();let ze=Re(se.clientX,se.clientY),me=Ge(se.clientX);F(ze,me,v.width)}function it(){re()}function ke(se){g&&(se.preventDefault(),se.deltaY<0?D():se.deltaY>0?A():se.deltaX>0?Y():$())}function Re(se,ze){return s?Math.max(0,Math.min(1,(v.height-(ze-v.top))/v.height)):Math.min(Math.max(se-v.x,0),v.width)/v.width}function Ge(se){return Math.min(Math.max(se-v.x,0),v.width)}function Je(se,ze){let me=Xe.features.episodesClustering&&!k?Xe.episodeMinWidthPc:0,le=[],Ne=0,Ae=0,Ue=0;for(let dt=1;dt<w.length;dt++)Ae=w[dt].time/ye*100,Ae-Ne>me&&(le.push({from:Ne,width:Math.max(0,Ae-Ne),loadedWidth:Math.max(0,Math.min(Ae,se)-Ne),filledWidth:Math.max(0,Math.min(Ae,ze)-Ne),interactive:w[dt-1].interactive,completed:w[dt-1].completed}),Ne=w[dt].time/ye*100,Ue++);let at={from:Ne,width:Math.max(0,100-Ne),loadedWidth:Math.max(0,Math.min(se,100)-Ne),filledWidth:Math.max(0,Math.min(ze,100)-Ne),interactive:w[Ue].interactive,completed:w[Ue].completed};100-Ne<me?(Ue-=1,le[Ue].width+=100-Ne,le[Ue].loadedWidth+=Math.max(0,Math.min(se,100)-Ne),le[Ue].filledWidth+=Math.max(0,Math.min(ze,100)-Ne)):le[Ue]=at;let ve=w[0].time;if(ve!==0){let dt=ve/ye*100;le.unshift({from:0,width:dt,loadedWidth:Math.min(dt,se),filledWidth:Math.min(dt,ze)})}return le}function Se(se){pe[se?"unshift":"push"](()=>{b=se,t(19,b)})}return i.$$set=se=>{"className"in se&&t(0,l=se.className),"testId"in se&&t(1,r=se.testId),"isHidden"in se&&t(2,a=se.isHidden),"isVertical"in se&&t(3,s=se.isVertical),"isActiveLive"in se&&t(4,u=se.isActiveLive),"isMobile"in se&&t(5,f=se.isMobile),"isAds"in se&&t(6,p=se.isAds),"squareBorders"in se&&t(7,h=se.squareBorders),"videoEpisodes"in se&&t(28,w=se.videoEpisodes),"withWheelHandler"in se&&t(29,g=se.withWheelHandler),"isInteractive"in se&&t(8,k=se.isInteractive),"disabled"in se&&t(9,y=se.disabled),"hideHandel"in se&&t(10,T=se.hideHandel),"onPointerDown"in se&&t(30,I=se.onPointerDown),"onHandleMove"in se&&t(31,G=se.onHandleMove),"onPointerUp"in se&&t(32,q=se.onPointerUp),"onPointerEnter"in se&&t(33,F=se.onPointerEnter),"onPointerMove"in se&&t(34,fe=se.onPointerMove),"onPointerLeave"in se&&t(35,re=se.onPointerLeave),"onWheelUp"in se&&t(36,D=se.onWheelUp),"onWheelDown"in se&&t(37,A=se.onWheelDown),"onWheelLeft"in se&&t(38,$=se.onWheelLeft),"onWheelRight"in se&&t(39,Y=se.onWheelRight),"loadedProgress"in se&&t(11,X=se.loadedProgress),"filledProgress"in se&&t(12,W=se.filledProgress),"handleProgress"in se&&t(13,ne=se.handleProgress),"ariaLabel"in se&&t(14,E=se.ariaLabel),"ariaValueMin"in se&&t(15,Q=se.ariaValueMin),"ariaValueMax"in se&&t(16,Be=se.ariaValueMax),"ariaValueNow"in se&&t(17,je=se.ariaValueNow),"ariaValueText"in se&&t(18,Qe=se.ariaValueText)},i.$$.update=()=>{if(i.$$.dirty[0]&65536)e:t(40,ye=Be??0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=w[w.length-1]?.time<ye);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=w.length&&n&&ye?Je(X*100,W*100):[])},[l,r,a,s,u,f,p,h,k,y,T,X,W,ne,E,Q,Be,je,Qe,b,qe,o,J,we,We,$e,it,ke,w,g,I,G,q,F,fe,re,D,A,$,Y,ye,n,Se]}var Ja=class extends U{constructor(e){super(),j(this,e,Vb,Mb,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},Tb,[-1,-1])}},gl=Ja;var Bn=(i,e)=>Do[i]>=Do[e],Qd=(i,e)=>Do[i]<Do[e],qr=(i,e)=>Do[i]<=Do[e],Yd=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Lb(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 Rb(i){let e,t;return e=new Go({props:{volume:i[3],muted:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Bb(i){let e,t;return e=new pt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Zn.KeyM,$$slots:{default:[Rb]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Zd(i){let e,t,n;return t=new gl({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:no.noop,onPointerLeave:i[2]?i[20]:no.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),O(e,"volumeBar-vertical",i[2])},m(o,l){S(o,e,l),V(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]:no.noop),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:no.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)&&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&&C(e),L(t)}}}function Db(i){let e,t,n,o,l,r;t=new Dr({props:{content:i[6],translateY:-18,$$slots:{default:[Bb]},$$scope:{ctx:i}}});let a=i[4]&&Zd(i);return{c(){e=P("div"),R(t.$$.fragment),n=N(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),O(e,"vertical",i[2])},m(s,u){S(s,e,u),V(t,e,null),m(e,n),a&&a.m(e,null),o=!0,l||(r=[de(e,"mouseenter",function(){Ii(i[2]?i[21]:no.noop)&&(i[2]?i[21]:no.noop).apply(this,arguments)}),de(e,"mouseleave",function(){Ii(i[2]?i[22]:no.noop)&&(i[2]?i[22]:no.noop).apply(this,arguments)}),de(e,"wheel",It(i[23]))],l=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=Zd(i),a.c(),d(a,1),a.m(e,null)):a&&(ae(),_(a,1,1,()=>{a=null}),ue()),(!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&&C(e),L(t),a&&a.d(),l=!1,et(r)}}}function Nb(i,e,t){let n,o,l,r,{click:a}=e,s=ot(),u=Ot(),f=s.state.volume$;H(i,f,qe=>t(3,n=qe));let p=s.state.muted$;H(i,p,qe=>t(25,r=qe));let h=s.actions.internal.setVolume,w=s.ui.currentGridType$;H(i,w,qe=>t(24,l=qe));let g=s.callbacks?.onAudioDoesNotExistHint,k=s.callbacks?.onAudioDisabledHint,y=s.state.isAudioAvailable$;H(i,y,qe=>t(4,o=qe));let T=s.state.isAudioDisabled,b=!1,v,I,G,q,F,fe,re=1,D=!1,A=!1;function $(qe){re=n,h(qe)}function Y(){Pr(s,n,u.controls.volumeStepWheel)}function X(){Ir(s,n,u.controls.volumeStepWheel)}function W(qe){h(qe)}function ne(qe){let ye=qe;h(ye,ye===0?re:ye)}function E(){D=!0}function Q(){D=!1,Qe()}function Be(){clearTimeout(v),t(5,b=!0)}function je(){Qe()}function Qe(){v=window.setTimeout(()=>{D||t(5,b=!1)},u.controls.volumeBarTimeout)}function Xe(qe){qe.deltaY<0?Y():qe.deltaY>0&&X()}return i.$$set=qe=>{"click"in qe&&t(0,a=qe.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,q=!o||r);if(i.$$.dirty[0]&16777216)e:t(2,F=qr(l,"s"));if(i.$$.dirty[0]&6)e:F?t(6,I=""):t(6,I=q?K("tooltip_volume"):K("tooltip_volume_muted")),t(7,G=q?K("tooltip_volume"):K("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,fe=q?0:n);if(i.$$.dirty[0]&16)e:o?t(9,A=T&&!k):t(9,A=!g)},[a,q,F,n,o,b,I,G,fe,A,f,p,w,y,$,Y,X,W,ne,E,Q,Be,je,Xe,l,r]}var xa=class extends U{constructor(e){super(),j(this,e,Nb,Db,z,{click:0},Lb,[-1,-1])}},Xd=xa;var $d=require("@vkontakte/videoplayer-shared");function qb(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=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("path"),c(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),c(n,"class","_exit"),c(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),c(o,"class","_enter"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Le(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&&C(e),a&&a.d(f)}}}function Ob(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var $a=class extends U{constructor(e){super(),j(this,e,Ob,qb,z,{})}},Jd=$a;function Fb(i){Ce(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Hb(i){let e,t;return e=new Jd({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function zb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var eu=class extends U{constructor(e){super(),j(this,e,zb,Hb,z,{isFullscreen:0},Fb)}},xd=eu;function Ub(i){let e,t;return e=new xd({props:{isFullscreen:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Kb(i){let e,t;return e=new pt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Zn.KeyF,$$slots:{default:[Ub]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function jb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=$d.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?K("tooltip_fullscreen_on"):K("tooltip_fullscreen_off"))},[n,o,l]}var tu=class extends U{constructor(e){super(),j(this,e,jb,Kb,z,{isFullscreen:0,click:1})}},Or=tu;function Wb(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078z"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Gb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var iu=class extends U{constructor(e){super(),j(this,e,Gb,Wb,z,{})}},bl=iu;function Qb(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function Yb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var nu=class extends U{constructor(e){super(),j(this,e,Yb,Qb,z,{})}},Fr=nu;var tm=require("@vkontakte/videoplayer-shared");function Zb(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 em(i){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function Xb(i){let e,t,n,o,l=i[1]&&em(i);var r=i[8];function a(s){return{}}return r&&(n=Sn(r,a(i))),{c(){l&&l.c(),e=N(),t=P("div"),n&&R(n.$$.fragment),c(t,"class","svelte-1ot3duq"),O(t,"mobile",i[1])},m(s,u){l&&l.m(s,u),S(s,e,u),S(s,t,u),n&&V(n,t,null),o=!0},p(s,u){if(s[1]?l||(l=em(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){ae();let f=n;_(f.$$.fragment,1,0,()=>{L(f,1)}),ue()}r?(n=Sn(r,a(s)),R(n.$$.fragment),d(n.$$.fragment,1),V(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&&(C(e),C(t)),l&&l.d(s),n&&L(n)}}}function Jb(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:[Xb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function xb(i,e,t){let n,o,{fakeIsPlaying$:l}=qn();H(i,l,b=>t(12,o=b));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=tm.noop}=e,{toggle:h}=l,w,g,k,y;function T(b){r=b,t(0,r)}i.$$set=b=>{"ref"in b&&t(0,r=b.ref),"isMobile"in b&&t(1,a=b.isMobile),"isPlaying"in b&&t(10,s=b.isPlaying),"disabled"in b&&t(2,u=b.disabled),"className"in b&&t(3,f=b.className),"click"in b&&t(4,p=b.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,g=o!==null);if(i.$$.dirty&5152)e:t(11,k=g?o:s);if(i.$$.dirty&2048)e:t(7,y=k?K("tooltip_pause"):K("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=k?Fr:bl)};e:t(6,w=h);return[r,a,u,f,p,g,w,y,n,l,s,k,o,T]}var ou=class extends U{constructor(e){super(),j(this,e,xb,Jb,z,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Zb)}},Hl=ou;function $b(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function ev(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var lu=class extends U{constructor(e){super(),j(this,e,ev,$b,z,{})}},im=lu;function tv(i){let e,t;return e=new im({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function iv(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 ru=class extends U{constructor(e){super(),j(this,e,iv,tv,z,{isPrev:0,isMobile:2})}},nm=ru;function nv(i){let e,t;return e=new nm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function ov(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:[nv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function lv(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"?K("tooltip_previous"):K("tooltip_next"))},[n,o,l,r,a,s,u]}var su=class extends U{constructor(e){super(),j(this,e,lv,ov,z,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},vl=su;function rv(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function sv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var au=class extends U{constructor(e){super(),j(this,e,sv,rv,z,{})}},om=au;function av(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=oe(f,u[p]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),o=B("path"),l=B("path"),c(t,"fill","#fff"),c(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),c(n,"fill","#fff"),c(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),c(n,"class","_ru"),c(o,"fill","#fff"),c(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),c(o,"class","_en"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),c(l,"clip-rule","evenodd"),ge(e,f)},m(p,h){S(p,e,h),s&&s.m(e,null),m(e,t),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Te(s,a,p,p[1],r?Ie(a,p[1],h,null):Ee(p[1]),null),ge(e,f=Le(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&&C(e),s&&s.d(p)}}}function uv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var uu=class extends U{constructor(e){super(),j(this,e,uv,av,z,{})}},lm=uu;function cv(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 fv(i){let e,t;return e=new lm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}var dv="vk-video-logo-icon--short";function mv(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?dv:"vk-video-logo-icon"),!o&&!n&&(t(0,l=91),t(1,r="vk-video-logo-icon--en"))},[l,r,n,o]}var cu=class extends U{constructor(e){super(),j(this,e,mv,fv,z,{short:2,isCyrillic:3},cv)}},rm=cu;var sm=require("@vkontakte/videoplayer-shared");function _v(i){let e,t;return e=new om({}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function hv(i){let e,t;return e=new rm({props:{short:i[4],isCyrillic:i[5]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function gv(i){let e,t,n,o,l=[hv,_v],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=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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&&C(n),r[e].d(s)}}}function bv(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:[gv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function vv(i,e,t){let n,o,l,r,{ref:a=void 0}=e,{logoClickable:s=!1}=e,{targetUrl:u=""}=e,{click:f}=e,p=Ot(),h=ot(),w=h.ui.currentGridType$;H(i,w,G=>t(13,l=G));let g=h.ui.isMobile;H(i,g,G=>t(14,r=G));let k=h.interfaceLanguage$;H(i,k,G=>t(12,o=G));let y,T,b,v=()=>{f(),h.callbacks?.onLogoClicked?.(),u&&window.open(u,"_blank")};function I(G){a=G,t(0,a)}i.$$set=G=>{"ref"in G&&t(0,a=G.ref),"logoClickable"in G&&t(1,s=G.logoClickable),"targetUrl"in G&&t(10,u=G.targetUrl),"click"in G&&t(11,f=G.click)},i.$$.update=()=>{if(i.$$.dirty&24580)e:t(4,b=(r||qr(l,"l"))&&T);if(i.$$.dirty&4096)e:t(5,n=o===sm.InterfaceLanguage.RU)};e:t(3,y=p.logoType==="vk_video"?K("tooltip_vk_video_logo"):K("tooltip_vk_logo"));e:t(2,T=p.logoType==="vk_video"||p.logoType==="vk_video_mobile");return[a,s,T,y,b,n,w,g,k,v,u,f,o,l,r,I]}var fu=class extends U{constructor(e){super(),j(this,e,vv,bv,z,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Hr=fu;var um=require("@vkontakte/videoplayer-core");var du=require("@vkontakte/videoplayer-core");function yv(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 kv(i){let e,t,n,o,l,r,a,s;return{c(){e=B("svg"),t=B("g"),n=B("path"),o=B("path"),l=B("path"),r=B("path"),a=B("path"),s=B("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"),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){S(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&&O(s,"hidden",!u[1]),f&4&&O(e,"connecting",u[2])},d(u){u&&C(e)}}}function wv(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v,I,G;return{c(){e=B("svg"),t=B("g"),n=B("mask"),o=B("path"),r=B("path"),a=B("path"),u=B("path"),f=B("defs"),p=B("clipPath"),h=B("path"),g=B("filter"),k=B("feFlood"),y=B("feColorMatrix"),T=B("feOffset"),b=B("feGaussianBlur"),v=B("feColorMatrix"),I=B("feBlend"),G=B("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",w=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(k,"flood-opacity","0"),c(k,"result","BackgroundImageFix"),c(y,"in","SourceAlpha"),c(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"result","hardAlpha"),c(b,"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(G,"in","SourceGraphic"),c(G,"in2","effect1_dropShadow_4085_178456"),c(G,"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,F){S(q,e,F),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,k),m(g,y),m(g,T),m(g,b),m(g,v),m(g,I),m(g,G)},p(q,F){F&2&&l!==(l=q[1]?"#2688EB":"#fff")&&c(o,"fill",l),F&2&&s!==(s=q[1]?"#2688EB":"#fff")&&c(a,"fill",s),F&2&&w!==(w=q[1]?"#2688EB":"#fff")&&c(h,"fill",w)},d(q){q&&C(e)}}}function Cv(i){let e;function t(l,r){return l[0]?wv:kv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(l,r){o.m(l,r),S(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&&C(e),o.d(l)}}}function Sv(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===du.ChromecastState.CONNECTING),t(1,l=o===du.ChromecastState.CONNECTED)},[n,l,r,o]}var mu=class extends U{constructor(e){super(),j(this,e,Sv,Cv,z,{isMobile:0,state:3},yv)}},am=mu;var cm=require("@vkontakte/videoplayer-shared");function Pv(i){let e,t;return e=new am({props:{isMobile:i[1],state:i[2]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Iv(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Pv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function Tv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=cm.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===um.ChromecastState.CONNECTED?K("tooltip_chromecast_on"):K("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var pu=class extends U{constructor(e){super(),j(this,e,Tv,Iv,z,{ref:0,isMobile:1,state:2,click:3})}},zr=pu;var Ur=require("@vkontakte/videoplayer-core");function Ev(i){let e,t;return e=new vr({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Av(i){let e,t;return e=new pt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Ur.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[Ev]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(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]===Ur.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){L(e,n)}}}function Mv(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=ot(),s=a.state.playbackState$;H(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,l=h.isActiveLive),"ariaLabel"in h&&t(2,r=h.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&10)e:t(4,p=()=>{if(!l){u();return}n===Ur.PlaybackState.PAUSED&&f()})},[o,l,r,n,p,s]}var _u=class extends U{constructor(e){super(),j(this,e,Mv,Av,z,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Kr=_u;function Vv(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 Lv(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"),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){S(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)&&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(r,a),o=!0)},o(a){_(r,a),o=!1},d(a){a&&C(e),r&&r.d(a),i[10](null),i[11](null)}}}function Rv(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 w(y){if(!h)return 0;let{width:T}=h.getBoundingClientRect(),b=T/2;return y<b?b:y>f-b?f-b:y}function g(y){pe[y?"unshift":"push"](()=>{h=y,t(4,h)})}function k(y){pe[y?"unshift":"push"](()=>{p=y,t(3,p)})}return i.$$set=y=>{"active"in y&&t(0,r=y.active),"pointer"in y&&t(1,a=y.pointer),"translateXPx"in y&&t(6,s=y.translateXPx),"translateYPx"in y&&t(2,u=y.translateYPx),"containerWidth"in y&&t(7,f=y.containerWidth),"$$scope"in y&&t(8,l=y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=w(s))},[r,a,u,p,h,n,s,f,l,o,g,k]}var hu=class extends U{constructor(e){super(),j(this,e,Rv,Lv,z,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Vv)}},fm=hu;var jr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function Bv(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 dm(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?Nv:Dv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(l,r){o.m(l,r),S(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&&C(e),o.d(l)}}}function Dv(i){let e=(i[10].text||"")+"",t;return{c(){t=Me(e)},m(n,o){S(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ke(t,e)},d(n){n&&C(t)}}}function Nv(i){let e=K("tooltip_episode_unfinished")+"",t;return{c(){t=Me(e)},m(n,o){S(n,t,o)},p:_e,d(n){n&&C(t)}}}function mm(i){let e,t;return{c(){e=P("div"),t=Me(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&1&&Ke(t,n[0])},d(n){n&&C(e)}}}function qv(i){let e,t,n,o,l,r,a=i[10]&&dm(i),s=!i[2]&&mm(i);return{c(){e=P("div"),t=P("div"),o=N(),l=P("div"),a&&a.c(),r=N(),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"),O(e,"mobile",i[1])},m(u,f){S(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=dm(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=mm(u),s.c(),s.m(e,null)),f&2&&O(e,"mobile",u[1])},i:_e,o:_e,d(u){u&&C(e),a&&a.d(),s&&s.d()}}}var yl=150;function Ov(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=ot().ui.rotateAlpha;H(i,h,F=>t(11,n=F));let w,g,k,y,T,b,v,I;function G(){let F=a.frameWidth,fe=a.frameHeight;return F>yl?(fe=fe/F*yl,F=yl):fe>yl&&(F=F/fe*yl,fe=yl),{width:F,height:fe}}function q(F){let fe;a.isUV?fe=Math.floor(u*F/a.frequency):fe=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*F)));let re=Math.floor(fe/a.countPerImage),D=Math.floor(fe%a.countPerImage/a.countPerRow),A=fe%a.countPerRow,$=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&re===Math.floor(a.countTotal/a.countPerImage)&&($=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&$++);let Y=a.countPerRow;!a.isUV&&re===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(Y=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let X=w*Y,W=g*$,ne=-A*w,E=-D*g;return{imgSrc:a.links[re],imgWidth:X,imgHeight:W,imgOffsetX:ne,imgOffsetY:E}}i.$$set=F=>{"time"in F&&t(0,o=F.time),"isMobile"in F&&t(1,l=F.isMobile),"videoEpisodes"in F&&t(13,r=F.videoEpisodes),"previewThumbsData"in F&&t(14,a=F.previewThumbsData),"progress"in F&&t(15,s=F.progress),"duration"in F&&t(16,u=F.duration),"isInteractive"in F&&t(2,f=F.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:k,imgWidth:y,imgHeight:T,imgOffsetX:b,imgOffsetY:v}=q(s),k,(t(6,y),t(15,s)),(t(7,T),t(15,s)),(t(8,b),t(15,s)),(t(9,v),t(15,s)));if(i.$$.dirty&106496)e:t(10,I=jr(s,u,r))};e:t(3,{width:w,height:g}=G(),w,t(4,g));return[o,l,f,w,g,k,y,T,b,v,I,n,h,r,a,s,u]}var gu=class extends U{constructor(e){super(),j(this,e,Ov,qv,z,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Bv)}},pm=gu;function Fv(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 Hv(i){let e,t;return{c(){e=P("span"),t=Me(i[7]),c(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o[0]&128&&Ke(t,n[7])},i:_e,o:_e,d(n){n&&C(e)}}}function zv(i){let e,t;return e=new pm({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){V(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){L(e,n)}}}function Uv(i){let e,t,n,o,l=[zv,Hv],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=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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&&C(n),r[e].d(s)}}}function Kv(i){let e,t,n,o,l=[i[9]],r={$$slots:{default:[Uv]},$$scope:{ctx:i}};for(let a=0;a<l.length;a+=1)r=oe(r,l[a]);return e=new fm({props:r}),n=new gl({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:K("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:K("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){V(e,a,s),S(a,t,s),V(n,a,s),o=!0},p(a,s){let u=s[0]&512?Le(l,[Yc(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=K("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&&C(t),L(e,a),L(n,a)}}}function jv(i,e,t){let n,o,l,r,a,s,u,f,p,h,w,{showTimeline:g=!1}=e,k=ot(),y=Ot(),T=k.state.bufferedProgress$;H(i,T,Se=>t(12,h=Se));let b=k.state.positionWithScrubbing$;H(i,b,Se=>t(39,s=Se));let v=k.state.duration$;H(i,v,Se=>t(1,l=Se));let I=k.state.isLive$;H(i,I,Se=>t(0,o=Se));let G=k.state.isActiveLive$;H(i,G,Se=>t(11,p=Se));let q=k.ui.isMobile;H(i,q,Se=>t(10,f=Se));let F=y.features.episodes?k.actions.internal.getVideoEpisodes():void 0,fe=k.actions.internal.getPreviewThumbsData(),re=k.state.interactiveEpisodes$;H(i,re,Se=>t(40,u=Se));let D=k.state.isInteractive,A=k.state.isInteractiveTime$;H(i,A,Se=>t(2,r=Se));let $=k.state.isInteractiveExpectation$;H(i,$,Se=>t(38,a=Se));let Y=k.actions.internal.correctSeekTimeToInteractive,X=k.ui.controls.disabledControls$;H(i,X,Se=>t(13,w=Se));let W,ne,E,Q,Be=!1,je="",Qe=0,Xe=0,qe=0,ye;function J(Se){return!Y||!D?Se:Y(Se*l)/l}function we(Se){k.actions.internal.startScrubbing(J(Se))}function We(Se){r||k.actions.internal.progressScrubbing(J(Se))}function $e(Se){k.actions.internal.completeScrubbing(J(Se)),t(34,Be=!1)}function it(Se,se,ze){Ge(Se,se,ze),t(34,Be=!0)}function ke(Se,se,ze){Ge(Se,se,ze),t(34,Be=!0)}function Re(){t(34,Be=!1)}function Ge(Se,se,ze){t(8,qe=J(Se)),t(35,Qe=se),ze&&t(36,Xe=ze),t(7,je=Je(Se))}function Je(Se){let se=Rn((o?1-Se:Se)*l);return o?`-${se}`:se}return i.$$set=Se=>{"showTimeline"in Se&&t(33,g=Se.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,W=D?u:F);if(i.$$.dirty[0]&2)e:t(4,ne=Rn(l));if(i.$$.dirty[1]&256)e:t(5,E=Rn(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,Q=s/l);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,ye=a||r);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:Xe,translateXPx:Qe,translateYPx:D&&fe?-36:-16,active:Be&&g&&!ye,pointer:!y.features.timelinePreview||!fe||o})},[o,l,r,W,ne,E,Q,je,qe,n,f,p,h,w,y,T,b,v,I,G,q,fe,re,D,A,$,X,we,We,$e,it,ke,Re,g,Be,Qe,Xe,ye,a,s,u]}var bu=class extends U{constructor(e){super(),j(this,e,jv,Kv,z,{showTimeline:33},Fv,[-1,-1])}},_m=bu;function Wv(i){let e,t;return e=new gl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:K("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){V(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=K("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){L(e,n)}}}function Gv(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,a=ot().ui.isMobile;H(i,a,p=>t(4,n=p));let s,u,f;return i.$$set=p=>{"position"in p&&t(6,o=p.position),"duration"in p&&t(0,l=p.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,s=Rn(l));if(i.$$.dirty&64)e:t(2,u=Rn(o));if(i.$$.dirty&65)e:t(3,f=o/l)},[l,s,u,f,n,a,o]}var vu=class extends U{constructor(e){super(),j(this,e,Gv,Wv,z,{position:6,duration:0})}},Wr=vu;function Qv(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 Yv(i){let e;return{c(){e=P("div"),c(e,"class","timeline-stub svelte-1gqonyf"),O(e,"mobile",i[2])},m(t,n){S(t,e,n)},p(t,n){n&4&&O(e,"mobile",t[2])},i:_e,o:_e,d(t){t&&C(e)}}}function Zv(i){let e,t,n,o,l=[Jv,Xv],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"),O(e,"mobile",i[2])},m(s,u){S(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):(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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)&&O(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&C(e),r[t].d()}}}function Xv(i){let e,t;return e=new _m({props:{showTimeline:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Jv(i){let e,t;return e=new Wr({props:{position:i[3],duration:i[4]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function xv(i){let e,t,n,o,l=[Zv,Yv],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=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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&&C(n),r[e].d(s)}}}function $v(i,e,t){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,p=ot(),h=p.state.isLive$;H(i,h,T=>t(12,n=T));let w=p.ads.duration;H(i,w,T=>t(4,r=T));let g=p.ads.position;H(i,g,T=>t(3,l=T));let k=p.ui.isMobile;H(i,k,T=>t(2,o=T));let y;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,y=!f&&(!n||n&&s&&u||a))},[a,y,o,l,r,h,w,g,k,s,u,f,n]}var yu=class extends U{constructor(e){super(),j(this,e,$v,xv,z,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},Qv)}},Gr=yu;var bm=require("@vkontakte/videoplayer-shared");function e4(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=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("path"),n=B("path"),o=B("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=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){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&C(e),a&&a.d(f)}}}function t4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ku=class extends U{constructor(e){super(),j(this,e,t4,e4,z,{})}},hm=ku;function i4(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),c(t,"clip-rule","evenodd"),c(t,"opacity",".7"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function n4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var wu=class extends U{constructor(e){super(),j(this,e,n4,i4,z,{})}},gm=wu;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 l4(i){let e,t,n,o;e=new hm({});function l(s,u){if(s[4]==="FULL")return a4;if(s[4]==="COUNT")return s4}let r=l(i,-1),a=r&&r(i);return{c(){R(e.$$.fragment),t=N(),a&&a.c(),n=ut()},m(s,u){V(e,s,u),S(s,t,u),a&&a.m(s,u),S(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&&(C(t),C(n)),L(e,s),a&&a.d(s)}}}function r4(i){let e,t,n,o,l,r;return l=new gm({}),{c(){e=P("span"),t=Me(i[2]),n=N(),o=P("div"),R(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){S(a,e,s),m(e,t),S(a,n,s),S(a,o,s),V(l,o,null),r=!0},p(a,s){(!r||s&4)&&Ke(t,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){_(l.$$.fragment,a),r=!1},d(a){a&&(C(e),C(n),C(o)),L(l)}}}function s4(i){let e,t=i[0].length+"",n;return{c(){e=P("span"),n=Me(t),c(e,"class","text count svelte-1yhs2ga")},m(o,l){S(o,e,l),m(e,n)},p(o,l){l&1&&t!==(t=o[0].length+"")&&Ke(n,t)},d(o){o&&C(e)}}}function a4(i){let e,t;return{c(){e=P("span"),t=Me(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&4&&Ke(t,n[2])},d(n){n&&C(e)}}}function u4(i){let e,t,n,o,l=[r4,l4],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=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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&&C(n),r[e].d(s)}}}function c4(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 pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function f4(i,e,t){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=ot(),w=h.callbacks?.onEpisodeChanged??bm.noop,g=!!h.callbacks?.onEpisodeClicked,k=h.ui.currentGridType$;H(i,k,D=>t(18,a=D));let y=h.ui.episodes.openedByKeyboard$;H(i,y,D=>t(17,r=D));let T=h.ui.episodes.panelOpened$;H(i,T,D=>t(3,l=D));let b=h.ui.isMobile;H(i,b,D=>t(6,s=D));let v,I=D=>{if(!!h.callbacks?.onEpisodeClicked){let $=cl(D);y.set($),T.set(!0),h.callbacks?.onEpisodeClicked?.($)}},G,q,F,fe=async(D,A,$)=>{await Wn(),D?.getAttribute("aria-expanded")==="false"&&A&&!$&&(y.set(!1),D.focus())};function re(D){v=D,t(1,v)}return i.$$set=D=>{"position"in D&&t(13,u=D.position),"duration"in D&&t(14,f=D.duration),"timeCodes"in D&&t(0,p=D.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/f);if(i.$$.dirty&114689)e:{let D=jr(n,f,p);D&&G?.text!==D.text&&(w(D),t(15,G=D))}if(i.$$.dirty&32768)e:t(2,o=G?.text||"");if(i.$$.dirty&262144)e:Bn(a,"xl")?t(4,q="FULL"):Bn(a,"m")&&Qd(a,"xl")?t(4,q="COUNT"):t(4,q="SHORT");if(i.$$.dirty&4)e:t(5,F=`${K("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:fe(v,r,l)},[p,v,o,l,q,F,s,g,k,y,T,b,I,u,f,G,n,r,a,re]}var Cu=class extends U{constructor(e){super(),j(this,e,f4,c4,z,{position:13,duration:14,timeCodes:0},o4)}},Qr=Cu;function d4(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=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),ge(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function m4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Su=class extends U{constructor(e){super(),j(this,e,m4,d4,z,{})}},vm=Su;function p4(i){let e,t;return e=new vm({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function _4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:K("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[p4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function h4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var Pu=class extends U{constructor(e){super(),j(this,e,h4,_4,z,{ref:0,hidden:1,disabled:2,click:3})}},Yr=Pu;function g4(i){let e,t,n,o,l=i[2].default,r=Pe(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),t=B("path"),n=B("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),ge(e,s=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function b4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Iu=class extends U{constructor(e){super(),j(this,e,b4,g4,z,{})}},ym=Iu;function v4(i){Ce(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function y4(i){let e,t;return e=new ym({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function k4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var Tu=class extends U{constructor(e){super(),j(this,e,k4,y4,z,{isOpened:0},v4)}},km=Tu;function w4(i){let e,t;return e=new km({props:{isOpened:i[3]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function C4(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:[w4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function S4(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?K("tooltip_interactive_graph_on"):K("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var Eu=class extends U{constructor(e){super(),j(this,e,S4,C4,z,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Zr=Eu;function P4(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function I4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Au=class extends U{constructor(e){super(),j(this,e,I4,P4,z,{})}},Xr=Au;var Cm=require("@vkontakte/videoplayer-shared");function T4(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 wm(i){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&C(e)}}}function E4(i){let e,t,n,o,l=i[1]&&wm(i);return n=new Xr({}),{c(){l&&l.c(),e=N(),t=P("div"),R(n.$$.fragment),c(t,"class","svelte-1ot3duq"),O(t,"mobile",i[1])},m(r,a){l&&l.m(r,a),S(r,e,a),S(r,t,a),V(n,t,null),o=!0},p(r,a){r[1]?l||(l=wm(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&O(t,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(C(e),C(t)),l&&l.d(r),L(n)}}}function A4(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:K("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Zn.KeyK,$$slots:{default:[E4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function M4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=Cm.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 Mu=class extends U{constructor(e){super(),j(this,e,M4,A4,z,{ref:0,isMobile:1,disabled:2,className:3,click:4},T4)}},zl=Mu;function V4(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function L4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Vu=class extends U{constructor(e){super(),j(this,e,L4,V4,z,{})}},Sm=Vu;function R4(i){let e,t;return e=new Sm({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function B4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:K("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[R4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function D4(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 Lu=class extends U{constructor(e){super(),j(this,e,D4,B4,z,{ref:0,hidden:1,disabled:2,click:3})}},Jr=Lu;var Ru=require("@vkontakte/videoplayer-shared");function N4(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 q4(i){let e,t,n,o;return{c(){e=P("img"),c(e,"class","icon svelte-1x1zctw"),Ts(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),n||(o=de(e,"error",i[7]),n=!0)},p(l,r){r&1&&!Ts(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&C(e),n=!1,o()}}}function O4(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){S(t,e,n)},p:_e,d(t){t&&C(e)}}}function F4(i){let e;function t(l,r){return l[5]?O4:q4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ut()},m(l,r){o.m(l,r),S(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&&C(e),o.d(l)}}}function H4(i){let e,t;return e=new pt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[F4]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function z4(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=Ru.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===Ru.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 Bu=class extends U{constructor(e){super(),j(this,e,z4,H4,z,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},N4)}},xr=Bu;var Zm=require("@vkontakte/videoplayer-shared");var fn=require("@vkontakte/videoplayer-core"),ZE=require("@vkontakte/videoplayer-shared"),ft=require("@vkontakte/videoplayer-shared"),oo=require("@vkontakte/videoplayer-statistics"),XE=require("@vkontakte/videoplayer-interactive");var Et=require("@vkontakte/videoplayer-shared");var Pm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var U4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",$r=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new Et.Subject,started$:new Et.Subject,paused$:new Et.Subject,resumed$:new Et.Subject,ended$:new Et.Subject,skipped$:new Et.Subject,clicked$:new Et.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Et.addScript)(U4,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,Et.assertNonNullable)(this.adsState),(0,Et.assertNonNullable)(this.playerState),(0,Et.assertNonNullable)(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),xe(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay)};this.onAdTimeRemained=({currentTime:e})=>{(0,Et.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Et.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Et.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Et.assertNonNullable)(this.adman),(0,Et.assertNonNullable)(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.adman.start("midroll")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){let{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,w=this.playerState&&xe(this.playerState.vsid);w&&(h=parseInt(w,36));let g={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:Pm(t,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...u},k={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}},y=new window.AdmanHTML;y.setDebug(!1),y.onReady(this.onAdsReady),y.onStarted(this.onAdStarted),y.onPlayed(this.onAdPlayed),y.onPaused(this.onAdPaused),y.adMidrollPoint(this.onAdMidrollPoint),y.onClosed(this.onAdClosed),y.onSkipped(this.onAdSkipped),y.onClicked(this.onAdClicked),y.onTimeRemained(this.onAdTimeRemained),y.onCompleted(this.onAdCompleted),y.onError(this.onAdError),y.init(k),this.adman=y,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,Et.assertNonNullable)(this.actions),(0,Et.assertNonNullable)(this.adsState),(0,Et.assertNonNullable)(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){(0,Et.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=xe(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){this.log({message:`set volume ${e}`}),this.adman?.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){this.log({message:`set fullscreen ${e}`}),this.adman?.setFullscreen(e)}startPreroll(){(0,Et.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,Et.assertNonNullable)(this.adman),(0,Et.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Et.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Et.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Et.assertNonNullable)(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.adman?.destroy()}};var Im=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 Du=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 es,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new Nu,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}},es=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}},Nu=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 es;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}},Tm=Du;var ts=require("@vkontakte/videoplayer-shared"),bo,Fn,qu=0,Ou=!1,Em=(i,e,t)=>{let n=i>=qu,o=i<qu,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(qu=i,o&&(Ou=!1),(0,ts.isNonNullable)(bo)&&r(i,bo.startTime,bo.endTime)&&bo.lang===e.value)return bo;if(!(0,ts.isNonNullable)(Fn)&&s?.length&&!Ou){let u=s.find(({startTime:f,endTime:p})=>r(i,f,p)||n&&l(i,f,p));Fn=u&&{...u,lang:e.value},bo=void 0,!(0,ts.isNonNullable)(Fn)&&s[s.length-1].endTime<i&&(Ou=!0);return}else{if(r(i,Fn?.startTime,Fn?.endTime))return bo=Fn,Fn=void 0,bo;(n&&a(i,Fn?.startTime,Fn?.endTime)||o&&l(i,Fn?.startTime,Fn?.endTime))&&(Fn=void 0)}};var Am=require("@vkontakte/videoplayer-shared"),Mm=require("@vkontakte/videoplayer-statistics"),is=class{constructor(e,t){this.oneStat=new Mm.OneStat(e,t),this.statSubscription=new Am.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Vm=({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:w,disabledControls:g,isInteractive:k,interactiveRanges$:y,isInteractiveTime$:T,replayInteractive:b,hasInteractiveBranches:v,playPrevChapterDisabledTooltip:I,additionalButtons:G,looped:q=!1,statistics:F,saveRate:fe})=>{let re={...h,configName:[...h.configName??[],"ui"],isAudioDisabled:l,live:{...h.live??{},isLiveCatchUpMode:!!n}},D=p,A=w||new fn.Player(re),$=new ft.Logger,Y=new $r($,{loadTimeout:D.ads.loadTimeout,initTimeout:D.ads.initTimeout}),X=Oo.getInstance(),W=s?.pictureInPictureApi,ne=s?.annotationsApi,E=$.createComponentLog("Store"),Q,Be,je={},Qe=(0,ft.getCurrentBrowser)(),Xe=F?kt(F.oneStat.vsid$):Ln(void 0),qe=De(fo()),ye=W?.info.isActive$??new ft.ValueSubject(!1),J=W?.info.type,we=De(0),We=De([]),$e=(0,ft.merge)(A.events.fatalError$,A.events.managedError$).subscribe(M=>We.update(ce=>[...ce,M])),it=Ln(!1,M=>{let ce=A.events.fatalError$.subscribe(()=>M(!0));return()=>ce.unsubscribe()}),ke=async M=>{let ce=Object.values(ft.InterfaceLanguage).includes(M);if(D.downloadVKLanguages&&(ce&&D.updateBuiltinLanguages||!Hs(M))){let Ze;try{Ze=await(0,ft.loadVKLangPack)(M,$c,ef)}catch(ct){F?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),X?.report(ct,{errorType:"VKLangPack",fatal:!1})}Ze&&(Fs({language:M,pack:Ze,fallback:D.defaultLanguage}),Re.set(M))}Hs(M)&&Re.set(M)},Re=De(i);ke(i);let Ge=(M,ce)=>{let Ve=xe(Re);return zs(Ve,M,ce,D.defaultLanguage)},Je=De("thumb"),Se=(()=>{let M=Ei([it,Je],([ce,Ve])=>ce?"crashed":Ve);return{...M,is:ce=>xe(M)===ce}})(),se=(()=>{let M=De(new Set(g));return{...M,add:ce=>{M.update(Ve=>new Set([...Ve].concat(ce)))},remove:ce=>{M.update(Ve=>{let Ze=[...Ve];return new Set(Array.isArray(ce)?Ze.filter(ct=>!ce.includes(ct)):Ze.filter(ct=>ct!==ce))})},includes:ce=>{let Ve=xe(M);return Array.isArray(ce)?ce.every(Ze=>Ve.has(Ze)):Ve.has(ce)}}})();E({message:"create store"});let ze=M=>{let ce=M.container;ce.append(A.experimental.element$.getValue()),ve=new MutationObserver(Ve=>{let{removedNodes:Ze}=Ve[0];Ze.length&&ce.append(A.experimental.element$.getValue())}),ve.observe(ce,{childList:!0})},me=M=>{E({message:`init video, config: ${JSON.stringify(M)}`}),k?ze(M):A.initVideo(M),M.subtitles&&A.setExternalTextTracks(M.subtitles),Q=M},le=new ft.Subject,Ne=M=>le.next(M),Ae=new ft.Subject,Ue=new ft.Subject,at=new ft.Subject,ve=null,dt={actionRewind$:Ae,actionSeek$:Ue,inPiP$:ye,inFullscreen$:new ft.Observable(M=>qe.subscribe(ce=>M.next(ce))),actionSetSubtitle$:at,nextMovie$:le};if(F){let{oneStat:M,statSubscription:ce}=F;ce.add(M.attachTo(A)),ce.add(M.attachToUi(dt)),ce.add(M.attachToAds(Y.events)),M.authorize(o).catch(Ve=>{E({message:`onestat auth error ${String(Ve)}`})})}if(X){let M=new ft.Subscription,ce=(Ve,Ze)=>M.add(Ve.subscribe(Ze));if(ce(A.events.managedError$,Ve=>{X.logIError(Ve)}),ce(A.events.fatalError$,Ve=>{X.logIError(Ve,!0)}),F){let{oneStat:Ve}=F;ce(Ve.experimental.error$,Ze=>{X.logIError(Ze)})}X.sentrySubscription.add(M)}let nt=()=>{(0,ft.isIOS)()&&Be&&Df(Be)},gt=new ft.Subscription().add(A.experimental.element$.subscribe(M=>{M&&(Be=M,M.classList.add("player-media"),Ho(W)&&(W.updateVideoElement(),W.registryEventHandlers()),k&&M.setAttribute("pip","false"))})).add(A.events.ended$.subscribe(()=>{nt(),a?.onEnded?.()})).add(A.events.started$.subscribe(async()=>{Ho(W)&&await W?.revealPictureInPicture();let M=A.info.muted$.getValue();a?.onStarted?.(),je.onStarted?.(M)})).add(A.events.willSeek$.subscribe(({from:M,to:ce})=>{a?.onSeek?.(M,ce)})).add(A.info.position$.subscribe(M=>{let ce=A.info.duration$.getValue();a?.onTimeupdate?.(ce,M),Y.setPosition(M,ce)})).add(A.events.fatalError$.subscribe(()=>{a?.onCrashed?.()})).add(A.events.firstBytes$.subscribe(()=>{yt.state.isFirstBytes$.set(!0)})).add(A.info.is3DVideo$.subscribe(M=>{yt.ui.is3DVideo.set(M)})).add(A.info.isEnded$.subscribe(M=>{k&&(M?(T?.getValue()&&se.add(or),se.add("PLAY_BUTTON")):se.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(M=>{a?.onLiveTime?.(M)})).add(A.info.isStalled$.subscribe(M=>{a?.onStalledChanged?.(M)})).add(Y.events.started$.subscribe(()=>{a?.adsInfo?.onStarted?.()})).add(Y.events.ended$.subscribe(()=>{a?.adsInfo?.onCompleted?.()})),wt=new ft.Subscription,At=()=>{wt.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)}))},Ye=()=>{wt.unsubscribe()},Ft=(M,ce)=>{A.startCameraManualRotation(M,ce)},Rt=(M=!1)=>{A.stopCameraManualRotation(M)},St=(M,ce,Ve)=>{A.moveCameraFocusPX(M,ce,Ve)},ui=()=>{A.holdCamera()},lt=()=>{A.releaseCamera()},bt=Ln(A.info.position$.getValue(),M=>{let ce,Ve,Ze=()=>{let ct=A.info.playbackState$.getValue(),si=A.info.isLive$.getValue(),$i=A.info.duration$.getValue(),ai=A.info.position$.getValue();if([fn.PlaybackState.PLAYING,fn.PlaybackState.PAUSED].includes(ct)){let Un=si?ai-$i:A.getExactTime();Un!==Ve&&M(Un),Ve=Un}ce=requestAnimationFrame(Ze)};return Ze(),()=>cancelAnimationFrame(ce)}),be=kt(ye),_t=kt(A.info.playbackState$),Pt=kt(A.info.currentBuffer$),$t=kt(A.info.isEnded$),vt=kt(A.info.isLive$),Kt=D.features.playbackRate?kt(A.info.canChangePlaybackSpeed$):Ln(!1),jt=kt(A.info.liveBufferTime$),Wt=kt(A.info.volume$),Hi=kt(A.info.muted$),tn=Rs(A.info.autoQualityLimits$.pipe((0,ft.map)(({max:M})=>M!==void 0)),A.info.autoQualityLimits$.getValue()?.max!==void 0),ei=kt(A.info.autoQualityLimitingAvailable$),Ai=kt(A.info.availableQualities$),dn=kt(A.info.availableQualitiesFps$),vi=kt(A.info.chromecastState$),nn=kt(A.info.chromecastDeviceName$),ci=kt(A.info.currentFormat$),Mi=kt(A.info.throughputEstimation$),fi=kt(A.info.videoBitrate$),yi=kt(A.info.intrinsicVideoSize$),di=kt(A.info.duration$),ki=kt(A.info.isAudioAvailable$),Bt=null,Yt=A.info.isBuffering$,on=Ln(Yt.getValue(),M=>{let ce=Yt.subscribe(Ve=>{Ve&&Bt===null?Bt=window.setTimeout(()=>{M(Yt.getValue()),Bt=null},D.loaderDelay):M(Ve)});return()=>{ce.unsubscribe(),Bt&&clearTimeout(Bt)}}),zi=()=>{Bt&&clearTimeout(Bt),Bt=null},ti=Ei([di,vt],([M,ce])=>ce?-M:M),wi=Ei([_t],([M])=>M===fn.PlaybackState.PLAYING),Ui=kt(A.info.atLiveEdge$),Vi=kt(A.info.atLiveDurationEdge$),Mt=kt(A.info.position$),ln=Ei([Mt,di],([M,ce])=>isFinite(M)&&isFinite(ce)&&!!ce),Zt=Ei([vi],([M])=>M===fn.ChromecastState.CONNECTED),Li=kt(A.info.availableVideoStreams$),Ki=D.features.audioLanguages?kt(A.info.availableAudioStreams$):Ln([]),ji=kt(A.info.currentVideoStream$),Gt=kt(A.info.currentAudioStream$),mi=M=>{M.language&&qs(M.language),A.setVideoStream(M)},pi=M=>{M.language&&qs(M.language),A.setAudioStream(M)},ii=M=>{let ce;if(M.length===1&&(ce=M.at(0)),ce??=M.find(Ze=>"isDefault"in Ze&&Ze.isDefault),ce)return ce;let Ve=Tf();return Ve&&(ce=M.find(({language:Ze})=>Ve===Ze)),ce??=M.at(0),ce},Xt=!1;gt.add(A.info.availableAudioStreams$.subscribe(M=>{if(!Xt&&M.length){let ce=ii(M);ce&&(A.setAudioStream(ce),Xt=!0)}}));let Vt=!1;gt.add(A.info.availableVideoStreams$.subscribe(M=>{if(!Vt&&M.length){let ce=ii(M);ce&&(A.setVideoStream(ce),Vt=!0)}}));let ni=De(void 0),Ri=kt(A.info.isAutoQualityEnabled$,M=>M&&ni.set(void 0)),Ci=kt(A.info.currentQuality$,()=>ni.set(void 0)),Jt=Ei([ni,Ci],([M,ce])=>M??ce),oi=Ei([Ai,dn,Ri,Jt,ci],([M,ce,Ve,Ze,ct])=>{let si=[];ct!==fn.VideoFormat.MPEG&&si.push({value:"auto",displayValue:Ge("auto_quality_option"),selected:Ve});let $i=M.filter(ai=>ai!==ft.VideoQuality.INVARIANT);for(let ai of $i){let Un=ce[ai],Ao=ai===ft.VideoQuality.INVARIANT?Ge("auto_quality_option"):ai;si.push({value:ai,displayValue:`${Ao}${Un?Im(Un):""}`,selected:Ve?!1:ai===Ze})}return si}),Wi=kt(A.info.currentPlaybackRate$),Gi=Ei([Wi,Ui,Vi],([M,ce,Ve])=>{let Ze=Ve||k?1:D.controls.playbackRateMin,ct=ce?1:D.controls.playbackRateMax,si=D.controls.playbackRateStep,$i=[];for(let ai=Ze;ai<=ct;ai+=si)$i.push({value:ai,displayValue:ai===1?Ge("playback_rate_1"):Ge("playback_rate",{multiplier:ai.toString(10)}),selected:M===ai});return $i}),mn=D.features.subtitles?kt(A.info.availableTextTracks$):Ln([]),Qi=Ei([mn],([M],ce)=>{let Ve=[],Ze=[];for(let ct of M)ct.url&&Ve.push(fetch(ct.url));Promise.allSettled(Ve).then(ct=>{for(let[si,$i]of ct.entries())$i.status==="fulfilled"&&$i.value.text().then(ai=>{let Un=new Tm,Ao=M[si].language,Ql=!!M[si].isAuto,Mo=Un.parse(ai);Ao&&Mo&&Ze.push({lang:Ao,subtitles:Mo,isAuto:Ql}),si===ct.length-1&&ce(Ze)})})}),Dt={displayValue:Ge("subtitles_off"),value:"off"},Nt=De({...Dt}),Si=Ei([Qi,Nt,Qi],([M,ce])=>{if(M?.length>0){let Ve=[{...Dt,selected:ce?.value===Dt.value}];for(let{lang:Ze,isAuto:ct}of M)jo[Ze]&&Ve.push({displayValue:ct?Ge("subtitles_auto",{language:jo[Ze]}):jo[Ze],value:Ze,selected:ce?.value===Ze,isAuto:ct});return Ve}else return[]}),li=Ei([bt,Nt,Qi],([M,ce,Ve])=>{if(ce&&ce.value!==Dt.value)return Em(M,ce,Ve)}),Yi=Ei([li],([M])=>M?.texts?M.texts:[]),Bi=De(!0),rn=Ei([Pt,ti,Mt,jt],([M,ce,Ve,Ze])=>{let ct=M?.end??0;if(!Ze)return ct/ce;let $i=-Ve+Ze-ce;return(ct-$i)/ce}),Pi=kt(A.info.availableSources$),Di=Ei([Pi],([M])=>Object.keys(M?.[fn.VideoFormat.MPEG]||{}).length>0),tt=()=>{let M=Object.keys(A.info.availableSources$?.getValue()?.[fn.VideoFormat.MPEG]||{}),ce=(0,ft.getHighestQuality)(M)||ft.VideoQuality.Q_144P;return Q.sources[fn.VideoFormat.MPEG]?.[ce]},ri=()=>{let M=tt();M?mf(M,Q?.meta?.title||"video"):E({message:"There is no URL for download video"})},xt=()=>{E({message:"toggle muted"});let M=A.info.muted$.getValue(),Ze=!(A.info.volume$.getValue()===0||M);qi(Ze)},He=()=>{yt.ui.settingsMenuVisible.set(!1)},Ni=M=>{yt.ui.settingsMenuOpenedByKeyboard.set(!!M),yt.ui.settingsMenuVisible.set(!0)},pn=M=>{xe(yt.ui.settingsMenuVisible)?He():Ni(M)},Zi=(M,ce=M,Ve=!1)=>{let Ze=!Ve,ct=A.info.muted$.getValue();E({message:`set volume, volume: ${M}, preferredVolume: ${ce}, internalCall: ${Ze}`}),A.setVolume(M),Y.setVolume(M),Ze&&a?.onVolumeChange?.(M),Ds(ce),ct?(A.setMuted(!1),Ze&&a?.onUnmute?.(),ar(!1)):!ct&&M===0&&(A.setMuted(!0),Ze&&a?.onMute?.(),ar(!0))},qi=(M,ce=!1)=>{let Ve=!ce,Ze=A.info.volume$.getValue();if(E({message:`set muted, currentVolume: ${Ze}, mute: ${M}, internalCall: ${Ve}`}),A.setMuted(M),Y.setVolume(M?0:Ze),ar(M),Ve&&(M?a?.onMute?.():a?.onUnmute?.()),Ze===0){let ct=sr()??D.volumeDefault;ct===0&&(ct=D.volumeMinRestore,Ds(ct)),A.setVolume(ct),Y.setVolume(ct),Ve&&a?.onVolumeChange?.(ct)}},Xi=De(!1),Ji=M=>{Xi.set(M),A.setLooped(M)};Ji(q);let _n=()=>{A.prepare()},yn=()=>{if((0,ft.assertNonNullable)(yt),xe(yt.ui.controls.disabledControls$).has("PLAY_BUTTON"))return;if(E({message:"toggle play"}),xe(yt.playerPhase)==="ads"){Y.togglePlay();return}let ce=()=>{E({message:"toggle play, call player.play"}),A.play(),a?.onPlay?.()},Ve=()=>{E({message:"toggle play, call player.pause"}),A.pause(),a?.onPause?.()};if(A.info.isEnded$.getValue()){if(E({message:"toggle play, video ended, seek to 0"}),Ae.next(),Ue.next(oo.SeekAction.REWIND),k){b?.();return}A.seekTime(0),ce()}else A.info.playbackState$.getValue()!==fn.PlaybackState.PLAYING?ce():Ve()},Ht=M=>{E({message:`set quality, quality: ${M}`}),A.setAutoQuality(M==="auto"),M!=="auto"?(yf(e,M),ni.set(M),A.setQuality(M)):Ns()},Oi=M=>{E({message:`set trafficSavingEnabled, value: ${M}`}),A.setAutoQualityLimits({max:M?D.trafficSavingLimit:void 0}),Pf(M)},sn=M=>{A.setPlaybackRate(M),D.features.saveRate&&fe&&!A.info.isLive$.getValue()&&Ef(M)},Pn=()=>{let M=xe(Gi),ce=M.findIndex(({selected:Ze})=>Ze);if(ce===M.length-1)return;let Ve=M[ce+1];sn(Ve.value)},an=()=>{let M=xe(Gi),ce=M.findIndex(({selected:Ze})=>Ze);if(ce===0)return;let Ve=M[ce-1];sn(Ve.value)},un=M=>{M&&M.value!==Dt.value&&at.next(M.isAuto?M.value+"_auto":M.value),Nt.set(M)},hn=()=>{let M=xe(Si),ce=xe(Nt),Ve=xe(Re);if(ce?.value===Dt.value){let Ze=M.filter(ct=>ct.value!==Dt.value).find(ct=>ct.value===Ve)||M[1];un(Ze??{...Dt})}else un({...Dt,selected:!1})},zt=(M,ce,Ve=!0)=>{if(E({message:`seek to time, time: ${M}`}),Ue.next(ce),A.info.isLive$.getValue()){let Ze=A.info.duration$.getValue(),ct=Math.min(0,Ze+M);A.seekTime(ct,Ve)}else{if(T?.getValue())return;A.seekTime(Io(M),Ve)}},xi=M=>{E({message:`seek to episode start time: ${M}`}),zt(M,oo.SeekAction.EPISODE,!0)},In=(M,ce)=>{E({message:`seek to percent, percent: ${M}`});let Ve=Math.round(xe(ti)*M);zt(Ve,ce,!1)},Tn=M=>{E({message:`seek external, time: ${M}`}),Ue.next(oo.SeekAction.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-M:M)},En=M=>{E({message:`set auto quality limitation. Max: ${M.max??"none"}. Min: ${M.min??"none"}`}),A.setAutoQualityLimits(M)},Qt=M=>{E({message:`seek external to episode start time: ${M}`}),zt(M,oo.SeekAction.EPISODE,!0)},Dn=M=>{E({message:`set playback rate to: ${M}`}),A.setPlaybackRate(M)},kn=De(void 0),cn=De(!1),Nn=M=>{E({message:`start scrubbing, progress: ${M}`}),cn.set(!0),wn(M)},wn=M=>{kn.set(M)},gn,Fi,te=()=>{kn.set(void 0),cn.set(!1)},ht=()=>{clearTimeout(Fi),clearTimeout(gn),gn=window.setTimeout(()=>{te()},500),Be?.removeEventListener("seeked",ht)},Cn=M=>{E({message:`complete scrubbing, progress: ${M}`}),In(M,oo.SeekAction.SLIDER),xe(yt.ui.isMobile)&&xe(yt.state.currentFormat$)===fn.VideoFormat.HLS?(Be?.addEventListener("seeked",ht),Fi=window.setTimeout(()=>{ht()},300)):te()},ee=Ei([bt,ti,kn],([M,ce,Ve],Ze)=>{Ze((0,ft.isNonNullable)(Ve)?Ve*ce:M)}),mt=De({width:0,height:0}),_i=Ei([mt],([{width:M}],ce)=>{let Ve=Yd(M);ce(Ve)}),An=De(!1),Hn=Ei([_i,An],([M,ce])=>ce?G.filter(Ve=>!Ve.hideOnMobile):G.filter(Ve=>!Ve.hideOnDesktopGridTypes?.includes(M))),xn=Ei([An,it],([M,ce],Ve)=>{Ve(M&&ce)}),ie=()=>{Ue.next(oo.SeekAction.LIVE),E({message:"switch to active live"}),A.seekTime(0),A.info.playbackState$.getValue()!==fn.PlaybackState.PLAYING&&yt.actions.internal.togglePlay()},Mn=()=>Y.skip(),Yo=(M=!0)=>{(0,ft.assertNonNullable)(yt),E({message:`switch from ads to video, callPlay: ${M}`}),Je.set("video"),M&&A.play()},El=()=>{(0,ft.assertNonNullable)(yt),E({message:"switch from video to ads"}),yt.actions.internal.pause(),nt(),Je.set("ads")},Al=M=>{(0,ft.assertNonNullable)(yt);let ce=M?"waitingLive":"thumb";Je.set(ce)},Ml=M=>{(0,ft.assertNonNullable)(yt);let ce=M?"waitingRecord":"thumb";Je.set(ce)},yo=()=>((0,ft.assertNonNullable)(yt),ff(A,Q,yt)),ko=()=>((0,ft.assertNonNullable)(yt),df(A,Q,yt)),$n=()=>Be,ro=()=>{E({message:"toggle chromecast"}),A.toggleChromecast()},wo=M=>{(0,ft.assertNonNullable)(yt);let ce=!M;if(xe(yt.playerPhase)==="ads"){E({message:`pause ads, internalCall: ${ce}`}),Y.pause();return}E({message:`pause video, internalCall: ${ce}`}),ce&&a?.onPause?.(),A.pause()},Zo=M=>{(0,ft.assertNonNullable)(yt);let ce=!M;if(xe(yt.playerPhase)==="ads"){E({message:`play ads, internalCall: ${ce}`}),Y.play();return}E({message:`play video, internalCall: ${ce}`}),ce&&a?.onPlay?.(),A.play()},so=(M,ce)=>{(0,ft.assertNonNullable)(yt),E({message:`first start, show ads: ${M}, internalCall: ${!ce}`}),M?Je.set("ads"):(Je.set("video"),ce?A.play():yt.actions.internal.togglePlay())},ao=()=>(E({message:"getting time codes"}),u),Co=()=>{let M=ao();if(!M||[0,1].includes(M.length))return;let ce=A.info.position$.getValue();return M.find(Ve=>Ve.time>ce)},So=M=>{let ce=M;ce||(ce=Co()),ce&&(E({message:"seek to next episode"}),zt(ce.time,oo.SeekAction.EPISODE,!0))},Po=()=>{let M=ao();if(!M||[0,1].includes(M.length))return;let ce=A.info.position$.getValue(),Ve=M.findIndex(ct=>ct.time>ce),Ze=Ve===-1?M.length-2:Ve-2;if(!(Ze<0))return M[Ze]},Xo=M=>{let ce=M;ce||(ce=Po()),ce&&(E({message:"seek to prev episode"}),zt(ce.time,oo.SeekAction.EPISODE,!0))},Jo=()=>(E({message:"getting preview thumbs data"}),f),Z=async()=>{W?.isActive()?await W?.remove():await W?.request()},qt=(M=-90)=>{we.update(ce=>ce+M)},bn=De([]);y?.subscribe(M=>{let ce=[];for(let Ve=0;Ve<M.length;Ve++){let{range:[Ze,ct],subjects:si}=M[Ve];Ve===0&&Ze!==0&&ce.push({time:0,text:"",interactive:!1,completed:!0}),ce.push({time:Ze/1e3,text:"",interactive:!0,completed:!si.length}),ct!==1/0&&ce.push({time:ct/1e3,text:"",interactive:!1,completed:!0})}bn.set(ce)});let zn=De(!1);T?.subscribe(M=>{M&&xe(cn)&&te()});let Io=M=>{if(!k)return M;let ce=xe(bn),Ve=xe(ti),ct=xe(Mt)/Ve,si=ce.find($i=>$i.interactive&&!$i.completed&&$i.time>ct);return typeof si?.time=="number"?Math.min(M,si.time-.05):M},To=()=>{yt.ui.episodes.panelOpened$.set(!1)},Eo=()=>{clearTimeout(Fi),clearTimeout(gn),gt.unsubscribe(),wt.unsubscribe(),A.destroy(),Y.destroy(),F?.destroy(),X?.destroy(),$e.unsubscribe(),ve?.disconnect(),ve=null},yt={interfaceLanguage$:Re,initVideo:me,videoId:e,isClip:t,playerPhase:Se,vsid:Xe,state:{positionExact$:bt,positionWithScrubbing$:ee,duration$:ti,playbackState$:_t,isPlaying$:wi,isLoaderVisible:on,bufferedProgress$:rn,isLive$:vt,canChangePlaybackSpeed$:Kt,isActiveLive$:Ui,isOldestAvailableLive$:Vi,isRewindableLive$:ln,isEnded$:$t,muted$:Hi,volume$:Wt,trafficSavingEnabled$:tn,autoQualityLimitingAvailable$:ei,availableVideoStreams$:Li,availableAudioStreams$:Ki,videoStream$:ji,audioStream$:Gt,currentQuality$:Jt,isAutoQualityEnabled$:Ri,availableQualities$:oi,currentPlaybackRate$:Wi,availablePlaybackRates$:Gi,currentSubtitle$:Nt,availableSubtitlesList$:Si,currentSubtitleCaptions$:Yi,isAutoSubtitleCaptionVisible$:Bi,chromecastState$:vi,chromecastDeviceName$:nn,chromecastConnected$:Zt,currentFormat$:ci,throughputEstimation$:Mi,videoBitrate$:fi,videoSize$:yi,errorLog$:We,crashed$:it,isAudioAvailable$:ki,isAudioDisabled:!!l,canDownload:D.features.download&&!!r,availableSources$:Pi,hasMpegSources$:Di,isInteractive:k,showInteractiveGraph:D.features.interactiveGraph,showSeekToInteractive:D.features.seekToInteractive,showPlayPrevChapter:D.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:D.features.interactiveTimeIndicator&&!!xe(bn).length,interactiveEpisodes$:bn,isInteractiveTime$:T?kt(T):De(!1),graphIsOpened$:De(!1),isInteractiveExpectation$:zn,hasInteractiveBranches:v,playPrevChapterDisabledTooltip:I,looped$:Xi,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:G.length?G.reduce(M=>[...M,De(void 0)],[]):[],disabledControls$:se},modals:{hotKeyMap:{show:De(!1),data:De({title:"",closeBtnText:"",groups:[]})}},isFullscreen:qe,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:mt,isMobile:An,mobileNotReportControlHidden$:xn,mobileUnmuteButtonExpanded:De(!1),mobileUnmuteButtonVisible:De(!1),icon3DVideoVisible:De(!1),settingsMenuVisible:De(!1),settingsMenuOpenedByKeyboard:De(!1),scrubbingInProgress:cn,is3DVideo:De(!1),isPictureInPictureActive$:be,pictureInPictureType$:Ln(J),clientInfo$:Ln(Qe),currentGridType$:_i,additionalButtons$:Hn,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:W,annotationsApi:ne},actions:{internal:{preload:_n,firstStart:M=>so(M,!1),pause:()=>wo(!1),togglePlay:yn,toggleMuted:xt,toggleSettingsMenu:pn,openSettingsMenu:Ni,closeSettingsMenu:He,setVolume:Zi,setVideoStream:mi,setAudioStream:pi,setQuality:Ht,setTrafficSavingEnabled:M=>Oi(M),setPlaybackRate:sn,incrementPlaybackRate:Pn,decrementPlaybackRate:an,setSubtitle:un,toggleSubtitle:hn,togglePictureInPicture:Z,startScrubbing:Nn,progressScrubbing:wn,completeScrubbing:Cn,toggleChromecast:ro,switchToActiveLive:ie,switchFromAdsToVideo:Yo,switchFromVideoToAds:El,skipAd:Mn,setWaitingLive:Al,setWaitingRecord:Ml,getDebugTextData:yo,getDebugPanelData:ko,getVideoElement:$n,seekTime:(M,ce,Ve)=>zt(M,ce,Ve),clearDelayedBufferingCheckTimeout:zi,seekEpisodeStartTime:xi,seekToPercent:In,getNextEpisode:Co,seekToNextEpisode:So,getPrevEpisode:Po,seekToPrevEpisode:Xo,startLogging:At,stopLogging:Ye,startCameraManualRotation:Ft,stopCameraManualRotation:Rt,moveCameraFocusPX:St,holdCamera:ui,releaseCamera:lt,getVideoEpisodes:ao,getPreviewThumbsData:Jo,downloadVideo:ri,addLanguage:Fs,setLanguage:ke,nextMovie:Ne,videoRotate:qt,correctSeekTimeToInteractive:Io,replayInteractive:b,setLooped:Ji},external:{firstStart:M=>so(M,!0),play:()=>Zo(!0),pause:()=>wo(!0),seekTime:M=>Tn(M),seekEpisodeStartTime:M=>Qt(M),setPlaybackRate:M=>Dn(M),setAutoQualityLimits:M=>En(M),setMuted:M=>qi(M,!0),setVolume:M=>Zi(M,M,!0),returnFocusToEpisodes:To}},callbacks:a,setUiCallbacks:M=>{je={...M}},getAdmanWrapper:()=>Y,getLogger:()=>$,destroy:Eo};return yt};var os=(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 ls=async(i,e,t)=>{await Wn(),e&&t&&(t.focus(),i.set(!1))};function j4(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function W4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Fu=class extends U{constructor(e){super(),j(this,e,W4,j4,z,{})}},Lm=Fu;function G4(i){let e,t;return e=new Lm({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Q4(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:[G4]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function Y4(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=ot(),a=r.ui.contextMenu.visible$;H(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,w=T=>{let b=cl(T),v=e1(h);f.set(v),s.set(b),a.set(!n)},g=()=>{u.set(!0)},k=()=>{u.set(!1)};function y(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,w,g,k,y]}var Hu=class extends U{constructor(e){super(),j(this,e,Y4,Q4,z,{disabled:0,ariaLabel:1})}},Rm=Hu;function Z4(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 X4(i){let e,t;return e=new Nr({props:{completed:!0}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function J4(i){let e,t,n,o,l,r,a,s,u,f;function p(w){i[22](w)}let h={tooltipContent:K("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[X4]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Lt({props:h}),pe.push(()=>Fe(t,"ref",p)),t.$on("click",i[14]),{c(){e=P("div"),R(t.$$.fragment),o=N(),l=P("div"),r=N(),a=P("div"),c(l,"class","ref-block svelte-17imlp9"),O(l,"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(w,g){S(w,e,g),V(t,e,null),m(e,o),m(e,l),i[23](l),m(e,r),m(e,a),i[24](a),s=!0,u||(f=[de(e,"mousemove",st(i[21])),de(e,"mouseleave",i[15])],u=!0)},p(w,g){let k={};g[0]&32&&(k.tooltipActive=w[5]),g[1]&1&&(k.$$scope={dirty:g,ctx:w}),!n&&g[0]&1&&(n=!0,k.ref=w[0],Oe(()=>n=!1)),t.$set(k),(!s||g[0]&2)&&O(l,"hidden",w[1]),(!s||g[0]&16)&&O(a,"paused",w[4]),(!s||g[0]&4)&&O(e,"mobile",w[2]),(!s||g[0]&64)&&O(e,"fullscreen",w[6]),(!s||g[0]&2)&&O(e,"invisible",w[1])},i(w){s||(d(t.$$.fragment,w),s=!0)},o(w){_(t.$$.fragment,w),s=!1},d(w){w&&C(e),L(t),i[23](null),i[24](null),u=!1,et(f)}}}function x4(i,e,t){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=ot(),h=qn(),{interactiveControlsOpacity$:w}=h;H(i,w,Q=>t(18,o=Q));let g=p.ui.isMobile;H(i,g,Q=>t(2,a=Q));let k=p.ui.isFullscreen;H(i,k,Q=>t(6,s=Q));let y=p.state.isInteractiveTime$;H(i,y,Q=>t(19,l=Q));let T=h.showInteractiveTimeIndicatorTooltip$;H(i,T,Q=>t(17,n=Q));let b=p.ui.controlsVisible;H(i,b,Q=>t(20,r=Q));let v=p.callbacks?.onInteractiveTimeIndicatorClick,I,G,q,F=()=>{t(4,q=!0)},fe=()=>{re(),f?.addEventListener("animationiteration",F,{once:!0})},re=()=>{t(4,q=!1),f?.removeEventListener("animationiteration",F)},D=Q=>{T.set(Q)},A,$=()=>{G||(T.set(!0),v?.())};jn(()=>{T.clearTimeout(),re()});let Y=()=>{T.set(!1)};function X(Q){Vn.call(this,i,Q)}function W(Q){u=Q,t(0,u)}function ne(Q){pe[Q?"unshift":"push"](()=>{u=Q,t(0,u)})}function E(Q){pe[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,I=!a&&r);if(i.$$.dirty[0]&851968)e:t(1,G=!l||!!o||I);if(i.$$.dirty[0]&2)e:t(4,q=G);if(i.$$.dirty[0]&131074)e:t(5,A=n&&!G);if(i.$$.dirty[0]&131072)e:n?fe():re()},[u,G,a,f,q,A,s,w,g,k,y,T,b,D,$,Y,I,n,o,l,r,X,W,ne,E]}var zu=class extends U{constructor(e){super(),j(this,e,x4,J4,z,{ref:0},Z4,[-1,-1])}},rs=zu;function e3(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 Bm(i,e,t){let n=i.slice();return n[209]=e[t].iconUrl,n[210]=e[t].ariaLabel,n[211]=e[t].testId,n[212]=e[t].onClick,n[213]=e[t].tooltip,n}function Dm(i){let e,t,n;function o(r){i[173](r)}let l={disabled:!i[9],tooltipContent:K("tooltip_previous"),$$slots:{default:[t3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function t3(i){let e,t;return e=new vl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Nm(i){let e,t,n;function o(r){i[174](r)}let l={disabled:i[74],tooltipContent:K("tooltip_restart"),$$slots:{default:[i3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function i3(i){let e,t;return e=new zl({props:{click:i[128],disabled:i[74]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function qm(i){let e,t,n;function o(r){i[176](r)}let l={tooltipContent:i[47],disabled:i[75],$$slots:{default:[n3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function n3(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 Hl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function Om(i){let e,t,n;function o(r){i[177](r)}let l={disabled:!i[8],tooltipContent:K("tooltip_next"),$$slots:{default:[o3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function o3(i){let e,t;return e=new vl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function l3(i){let e,t,n,o,l=i[121]&&r3(i),r=i[120]&&a3(i),a=i[119]&&c3(i);return{c(){l&&l.c(),e=N(),r&&r.c(),t=N(),a&&a.c(),n=ut()},m(s,u){l&&l.m(s,u),S(s,e,u),r&&r.m(s,u),S(s,t,u),a&&a.m(s,u),S(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&&(C(e),C(t),C(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function r3(i){let e,t,n;function o(r){i[178](r)}let l={disabled:i[73],tooltipContent:K("tooltip_interactive_go_back"),disabledTooltipContent:K(i[124]),$$slots:{default:[s3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function s3(i){let e,t;return e=new Jr({props:{disabled:i[73],click:i[17]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function a3(i){let e,t,n;function o(r){i[179](r)}let l={disabled:i[76],tooltipContent:K("tooltip_interactive_seek"),disabledTooltipContent:K(i[78]),$$slots:{default:[u3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[2]&65536&&(s.disabledTooltipContent=K(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){L(e,r)}}}function u3(i){let e,t;return e=new Yr({props:{disabled:i[76],click:i[15]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function c3(i){let e,t,n;function o(r){i[180](r)}let l={tooltipContent:i[48],disabled:i[77],$$slots:{default:[f3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function f3(i){let e,t;return e=new Zr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Fm(i){let e,t,n;function o(r){i[181](r)}let l={tooltipContent:i[50],$$slots:{default:[d3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function d3(i){let e,t;return e=new Kr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Hm(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 Br({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function zm(i){let e,t;return e=new Qr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function m3(i){let e,t,n=i[20]&&zm(i);return{c(){n&&n.c(),e=ut()},m(o,l){n&&n.m(o,l),S(o,e,l),t=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=zm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),_(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function p3(i){let e,t;return e=new xr({props:{iconUrl:i[209],ariaLabel:i[210]??i[213],testId:i[211],onClick:i[212]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Um(i){let e,t;return e=new Lt({props:{tooltipContent:i[213],width:40,$$slots:{default:[p3]},$$scope:{ctx:i}}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Km(i){let e,t,n;function o(r){i[185](r)}let l={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[_3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function _3(i){let e,t;return e=new Hr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function h3(i){let e,t;return e=new Xd({props:{click:i[127]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function jm(i){let e,t,n;function o(r){i[187](r)}let l={tooltipContent:i[52],$$slots:{default:[g3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function g3(i){let e,t;return e=new Rd({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Wm(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 Rr({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","settings-menu svelte-st0uzk")},m(a,s){S(a,e,s),V(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&&C(e),L(t)}}}function Gm(i){let e,t,n;function o(r){i[190](r)}let l={tooltipContent:i[27]?void 0:K("tooltip_settings_off"),$$slots:{default:[b3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:K("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){L(e,r)}}}function b3(i){let e,t,n;function o(r){i[189](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new Ol({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function v3(i){let e,t,n;function o(r){i[191](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[y3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function y3(i){let e,t;return e=new Rm({props:{ariaLabel:i[49]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Qm(i){let e,t,n;function o(r){i[192](r)}let l={tooltipContent:i[53],$$slots:{default:[k3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function k3(i){let e,t;return e=new Or({props:{click:i[13],isFullscreen:i[30]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Ym(i){let e,t,n;function o(r){i[193](r)}let l={tooltipContent:i[54],$$slots:{default:[w3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function w3(i){let e,t;return e=new zr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function C3(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 rs({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function S3(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v,I,G,q,F,fe,re,D,A,$,Y,X;t=new Gr({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let W=i[38]&&Dm(i),ne=i[35]&&Nm(i),E=i[36]&&qm(i),Q=i[37]&&Om(i),Be=i[117]&&l3(i),je=!i[4]&&i[33]&&Fm(i),Qe=i[19]&&Hm(i);function Xe(me){i[183](me)}let qe={className:"w-max",disabled:!i[20],tooltipContent:K("tooltip_episodes"),$$slots:{default:[m3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(qe.ref=i[23].episodes),w=new Lt({props:qe}),pe.push(()=>Fe(w,"ref",Xe));let ye=Ct(i[28]),J=[];for(let me=0;me<ye.length;me+=1)J[me]=Um(Bm(i,ye,me));let we=me=>_(J[me],1,1,()=>{J[me]=null}),We=i[43]&&!i[4]&&Km(i);function $e(me){i[186](me)}let it={$$slots:{default:[h3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(it.ref=i[23].volume),I=new Lt({props:it}),pe.push(()=>Fe(I,"ref",$e));let ke=i[40]&&jm(i),Re=!i[83]&&!i[4]&&Wm(i),Ge=i[42]&&!i[4]&&Gm(i),Je=i[84].features.contextMenuButton&&v3(i),Se=i[44]&&Qm(i),se=i[39]&&Ym(i),ze=i[122]&&C3(i);return{c(){e=P("div"),R(t.$$.fragment),n=N(),o=P("div"),l=P("div"),W&&W.c(),r=N(),ne&&ne.c(),a=N(),E&&E.c(),s=N(),Q&&Q.c(),u=N(),Be&&Be.c(),f=N(),je&&je.c(),p=N(),Qe&&Qe.c(),h=N(),R(w.$$.fragment),y=N(),T=P("div");for(let me=0;me<J.length;me+=1)J[me].c();b=N(),We&&We.c(),v=N(),R(I.$$.fragment),q=N(),ke&&ke.c(),F=N(),Re&&Re.c(),fe=N(),Ge&&Ge.c(),re=N(),Je&&Je.c(),D=N(),Se&&Se.c(),A=N(),se&&se.c(),$=N(),ze&&ze.c(),Y=ut(),c(l,"class","controls-left svelte-st0uzk"),Gn(()=>i[184].call(l)),c(T,"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(me,le){S(me,e,le),V(t,e,null),m(e,n),m(e,o),m(o,l),W&&W.m(l,null),m(l,r),ne&&ne.m(l,null),m(l,a),E&&E.m(l,null),m(l,s),Q&&Q.m(l,null),m(l,u),Be&&Be.m(l,null),m(l,f),je&&je.m(l,null),m(l,p),Qe&&Qe.m(l,null),m(l,h),V(w,l,null),k=xo(l,i[184].bind(l)),m(o,y),m(o,T);for(let Ne=0;Ne<J.length;Ne+=1)J[Ne]&&J[Ne].m(T,null);m(T,b),We&&We.m(T,null),m(T,v),V(I,T,null),m(T,q),ke&&ke.m(T,null),m(T,F),Re&&Re.m(T,null),m(T,fe),Ge&&Ge.m(T,null),m(T,re),Je&&Je.m(T,null),m(T,D),Se&&Se.m(T,null),m(T,A),se&&se.m(T,null),i[194](o),i[195](e),S(me,$,le),ze&&ze.m(me,le),S(me,Y,le),X=!0},p(me,le){let Ne={};le[1]&16384&&(Ne.isHidden=!me[45]),le[0]&16&&(Ne.isAds=me[4]),le[0]&32&&(Ne.canRewindLive=me[5]),le[1]&2&&(Ne.isRewindableLive=me[32]),t.$set(Ne),me[38]?W?(W.p(me,le),le[1]&128&&d(W,1)):(W=Dm(me),W.c(),d(W,1),W.m(l,r)):W&&(ae(),_(W,1,1,()=>{W=null}),ue()),me[35]?ne?(ne.p(me,le),le[1]&16&&d(ne,1)):(ne=Nm(me),ne.c(),d(ne,1),ne.m(l,a)):ne&&(ae(),_(ne,1,1,()=>{ne=null}),ue()),me[36]?E?(E.p(me,le),le[1]&32&&d(E,1)):(E=qm(me),E.c(),d(E,1),E.m(l,s)):E&&(ae(),_(E,1,1,()=>{E=null}),ue()),me[37]?Q?(Q.p(me,le),le[1]&64&&d(Q,1)):(Q=Om(me),Q.c(),d(Q,1),Q.m(l,u)):Q&&(ae(),_(Q,1,1,()=>{Q=null}),ue()),me[117]&&Be.p(me,le),!me[4]&&me[33]?je?(je.p(me,le),le[0]&16|le[1]&4&&d(je,1)):(je=Fm(me),je.c(),d(je,1),je.m(l,p)):je&&(ae(),_(je,1,1,()=>{je=null}),ue()),me[19]?Qe?(Qe.p(me,le),le[0]&524288&&d(Qe,1)):(Qe=Hm(me),Qe.c(),d(Qe,1),Qe.m(l,h)):Qe&&(ae(),_(Qe,1,1,()=>{Qe=null}),ue());let Ae={};if(le[0]&1048576&&(Ae.disabled=!me[20]),le[0]&1048576|le[2]&1310720|le[6]&1073741824&&(Ae.$$scope={dirty:le,ctx:me}),!g&&le[0]&8388608&&(g=!0,Ae.ref=me[23].episodes,Oe(()=>g=!1)),w.$set(Ae),le[0]&268435456){ye=Ct(me[28]);let at;for(at=0;at<ye.length;at+=1){let ve=Bm(me,ye,at);J[at]?(J[at].p(ve,le),d(J[at],1)):(J[at]=Um(ve),J[at].c(),d(J[at],1),J[at].m(T,b))}for(ae(),at=ye.length;at<J.length;at+=1)we(at);ue()}me[43]&&!me[4]?We?(We.p(me,le),le[0]&16|le[1]&4096&&d(We,1)):(We=Km(me),We.c(),d(We,1),We.m(T,v)):We&&(ae(),_(We,1,1,()=>{We=null}),ue());let Ue={};le[6]&1073741824&&(Ue.$$scope={dirty:le,ctx:me}),!G&&le[0]&8388608&&(G=!0,Ue.ref=me[23].volume,Oe(()=>G=!1)),I.$set(Ue),me[40]?ke?(ke.p(me,le),le[1]&512&&d(ke,1)):(ke=jm(me),ke.c(),d(ke,1),ke.m(T,F)):ke&&(ae(),_(ke,1,1,()=>{ke=null}),ue()),!me[83]&&!me[4]?Re?(Re.p(me,le),le[0]&16|le[2]&2097152&&d(Re,1)):(Re=Wm(me),Re.c(),d(Re,1),Re.m(T,fe)):Re&&(ae(),_(Re,1,1,()=>{Re=null}),ue()),me[42]&&!me[4]?Ge?(Ge.p(me,le),le[0]&16|le[1]&2048&&d(Ge,1)):(Ge=Gm(me),Ge.c(),d(Ge,1),Ge.m(T,re)):Ge&&(ae(),_(Ge,1,1,()=>{Ge=null}),ue()),me[84].features.contextMenuButton&&Je.p(me,le),me[44]?Se?(Se.p(me,le),le[1]&8192&&d(Se,1)):(Se=Qm(me),Se.c(),d(Se,1),Se.m(T,A)):Se&&(ae(),_(Se,1,1,()=>{Se=null}),ue()),me[39]?se?(se.p(me,le),le[1]&256&&d(se,1)):(se=Ym(me),se.c(),d(se,1),se.m(T,null)):se&&(ae(),_(se,1,1,()=>{se=null}),ue()),(!X||le[0]&2)&&O(e,"hidden",me[1]),(!X||le[0]&8)&&O(e,"controls-hidden",!me[3]),(!X||le[0]&4)&&O(e,"no-smooth",me[2]),me[122]&&ze.p(me,le)},i(me){if(!X){d(t.$$.fragment,me),d(W),d(ne),d(E),d(Q),d(Be),d(je),d(Qe),d(w.$$.fragment,me);for(let le=0;le<ye.length;le+=1)d(J[le]);d(We),d(I.$$.fragment,me),d(ke),d(Re),d(Ge),d(Je),d(Se),d(se),d(ze),X=!0}},o(me){_(t.$$.fragment,me),_(W),_(ne),_(E),_(Q),_(Be),_(je),_(Qe),_(w.$$.fragment,me),J=J.filter(Boolean);for(let le=0;le<J.length;le+=1)_(J[le]);_(We),_(I.$$.fragment,me),_(ke),_(Re),_(Ge),_(Je),_(Se),_(se),_(ze),X=!1},d(me){me&&(C(e),C($),C(Y)),L(t),W&&W.d(),ne&&ne.d(),E&&E.d(),Q&&Q.d(),Be&&Be.d(),je&&je.d(),Qe&&Qe.d(),L(w),k(),Ti(J,me),We&&We.d(),L(I),ke&&ke.d(),Re&&Re.d(),Ge&&Ge.d(),Je&&Je.d(),Se&&Se.d(),se&&se.d(),i[194](null),i[195](null),ze&&ze.d(me)}}}function P3(i,e,t){let n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v,I,G,q,F,fe,re,D,A,$,Y,X,W,ne,E,Q,Be=_e,je=()=>(Be(),Be=Ut(re,x=>t(144,Q=x)),re),Qe,Xe=_e,qe=()=>(Xe(),Xe=Ut(fe,x=>t(145,Qe=x)),fe),ye,J=_e,we=()=>(J(),J=Ut(F,x=>t(146,ye=x)),F),We,$e=_e,it=()=>($e(),$e=Ut(q,x=>t(147,We=x)),q),ke,Re=_e,Ge=()=>(Re(),Re=Ut(G,x=>t(148,ke=x)),G),Je,Se=_e,se=()=>(Se(),Se=Ut(I,x=>t(149,Je=x)),I),ze,me=_e,le=()=>(me(),me=Ut(v,x=>t(150,ze=x)),v),Ne,Ae=_e,Ue=()=>(Ae(),Ae=Ut(b,x=>t(151,Ne=x)),b),at,ve=_e,dt=()=>(ve(),ve=Ut(T,x=>t(152,at=x)),T),nt,gt=_e,wt=()=>(gt(),gt=Ut(y,x=>t(153,nt=x)),y),At,Ye=_e,Ft=()=>(Ye(),Ye=Ut(k,x=>t(154,At=x)),k),Rt,St=_e,ui=()=>(St(),St=Ut(g,x=>t(155,Rt=x)),g),lt,bt=_e,be=()=>(bt(),bt=Ut(w,x=>t(156,lt=x)),w),_t,Pt=_e,$t=()=>(Pt(),Pt=Ut(h,x=>t(157,_t=x)),h),vt,Kt=_e,jt=()=>(Kt(),Kt=Ut(p,x=>t(158,vt=x)),p),Wt,Hi=_e,tn=()=>(Hi(),Hi=Ut(f,x=>t(159,Wt=x)),f),ei,Ai=_e,dn=()=>(Ai(),Ai=Ut(u,x=>t(160,ei=x)),u),vi,nn,ci,Mi,fi,yi,di,ki,Bt,Yt,on,zi,ti,wi,Ui,Vi,Mt,ln,Zt,Li,Ki,ji,Gt;i.$$.on_destroy.push(()=>Be()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>J()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>Re()),i.$$.on_destroy.push(()=>Se()),i.$$.on_destroy.push(()=>me()),i.$$.on_destroy.push(()=>Ae()),i.$$.on_destroy.push(()=>ve()),i.$$.on_destroy.push(()=>gt()),i.$$.on_destroy.push(()=>Ye()),i.$$.on_destroy.push(()=>St()),i.$$.on_destroy.push(()=>bt()),i.$$.on_destroy.push(()=>Pt()),i.$$.on_destroy.push(()=>Kt()),i.$$.on_destroy.push(()=>Hi()),i.$$.on_destroy.push(()=>Ai());let{bottomHidden:mi}=e,{bottomNoSmooth:pi}=e,{showControls:ii}=e,{controlsElementRef:Xt=void 0}=e,{isAds:Vt=!1}=e,{canRewindLive:ni}=e,{logoClickable:Ri}=e,{logoHidden:Ci}=e,{logoTargetUrl:Jt=""}=e,{showNextPrevButtons:oi}=e,{nextButtonActive:Wi}=e,{prevButtonActive:Gi}=e,{isOneVideoPlaylist:mn=!1}=e,{supportLink:Qi}=e,{customFullscreenSupported:Dt=!0}=e,{playNextVideo:Nt}=e,{playPrevVideo:Si}=e,{repeatPlaylist:li}=e,{toggleFullscreen:Yi}=e,{returnFocus:Bi}=e,{seekToInteractive:rn}=e,{toggleGraph:Pi}=e,{playPrevChapter:Di}=e,tt=ot(),ri=qn(),xt=Ot(),He=tt.actions.internal.toggleMuted,Ni=tt.actions.internal.togglePlay,pn=tt.actions.internal.pause,Zi=tt.actions.internal.toggleSubtitle,qi=tt.callbacks?.onAudioDoesNotExistHint,Xi=tt.callbacks?.onAudioDisabledHint,Ji=tt.state.duration$;H(i,Ji,x=>t(82,ji=x));let _n=tt.state.positionWithScrubbing$;H(i,_n,x=>t(80,Li=x));let yn=tt.state.playbackState$;H(i,yn,x=>t(161,ci=x));let Ht=tt.state.chromecastConnected$;H(i,Ht,x=>t(83,Gt=x));let Oi=tt.state.isAudioAvailable$;H(i,Oi,x=>t(197,D=x));let sn=tt.state.isAudioDisabled,Pn=tt.state.isEnded$;H(i,Pn,x=>t(169,wi=x));let an=tt.state.isLive$;H(i,an,x=>t(33,ki=x));let un=tt.state.isActiveLive$;H(i,un,x=>t(163,yi=x));let hn=tt.state.isRewindableLive$;H(i,hn,x=>t(32,di=x));let zt=tt.ui.isPictureInPictureActive$;H(i,zt,x=>t(165,Yt=x));let xi=tt.ui.pictureInPictureType$;H(i,xi,x=>t(164,Bt=x));let In=tt.ui.settingsMenuVisible;H(i,In,x=>t(27,Y=x));let Tn=tt.ui.settingsMenuOpenedByKeyboard;H(i,Tn,x=>t(140,$=x));let En=tt.ui.controls,Qt=tt.actions.internal.getVideoEpisodes(),Dn=tt.state.chromecastState$;H(i,Dn,x=>t(29,vi=x));let kn=tt.state.availableSubtitlesList$;H(i,kn,x=>t(168,ti=x));let cn=tt.state.currentSubtitle$;H(i,cn,x=>t(170,Ui=x));let Nn=En.disabledControls$;H(i,Nn,x=>t(172,Mt=x));let wn=tt.ui.contextMenu.visible$;H(i,wn,x=>t(162,Mi=x));let gn=tt.ui.contextMenu.showContextMenuBtn$;H(i,gn,x=>t(166,on=x));let Fi=tt.ui.contextMenu.openedByBtnKeyboard$;H(i,Fi,x=>t(167,zi=x));let te=tt.ui.startedByKeyboard$;H(i,te,x=>t(139,A=x));let ht=tt.ads.duration;H(i,ht,x=>t(81,Ki=x));let Cn=tt.ads.position;H(i,Cn,x=>t(79,Zt=x));let ee=tt.ads.playbackState;H(i,ee,x=>t(171,Vi=x));let mt=tt.ui.isFullscreen;H(i,mt,x=>t(30,nn=x));let _i=tt.ui.playerSize;H(i,_i,x=>t(142,W=x));let An=tt.ui.currentGridType$;H(i,An,x=>t(143,ne=x));let Hn=tt.ui.additionalButtons$;H(i,Hn,x=>t(28,E=x));let xn=tt.actions.internal.getVideoElement,ie=tt.actions.internal.replayInteractive,Mn=tt.state.isInteractive,Yo=tt.state.isInteractiveTime$;H(i,Yo,x=>t(141,X=x));let El=tt.state.showInteractiveGraph,Al=tt.state.showSeekToInteractive,Ml=tt.state.showPlayPrevChapter,yo=tt.state.showInteractiveTimeIndicator,ko=tt.state.graphIsOpened$;H(i,ko,x=>t(31,fi=x));let $n=tt.state.playPrevChapterDisabledTooltip,ro=ri.seekToInteractiveDisabledTooltip$;H(i,ro,x=>t(78,ln=x));let wo=()=>tt.actions.internal.toggleChromecast(),Zo,so,ao,Co,So,Po,Xo,Jo,Z,qt,bn,zn,Io,To,Eo,yt,M,ce,Ve,Ze,ct,si="",$i=(x,Ss)=>{if(!x){t(50,si=K("tooltip_live"));return}Ss===Qo.PlaybackState.PAUSED&&t(50,si=K("tooltip_play"))},ai,Un,Ao,Ql,Mo,rt={},Kn,Vl,Cs,Bc,d_=(0,Zm.throttleFn)(os,260,{leading:!1}),Yl,Zl,Xl;function m_(){_o({isAudioDisabled:sn,audioDisabledHintCallback:Xi,isAudioAvailable:D,audioIsNotExistHintCallback:qi})&&He()}let p_=Mn?ie:mn?Ni:li;function __(x){i.$$.not_equal(rt.prevButton,x)&&(rt.prevButton=x,t(23,rt))}function h_(x){i.$$.not_equal(rt.replayButton,x)&&(rt.replayButton=x,t(23,rt))}function g_(x){Xl=x,t(26,Xl)}function b_(x){i.$$.not_equal(rt.playButton,x)&&(rt.playButton=x,t(23,rt))}function v_(x){i.$$.not_equal(rt.nextButton,x)&&(rt.nextButton=x,t(23,rt))}function y_(x){i.$$.not_equal(rt.playPrevChapterButton,x)&&(rt.playPrevChapterButton=x,t(23,rt))}function k_(x){i.$$.not_equal(rt.seekToInteractiveButton,x)&&(rt.seekToInteractiveButton=x,t(23,rt))}function w_(x){i.$$.not_equal(rt.interactiveGraphButton,x)&&(rt.interactiveGraphButton=x,t(23,rt))}function C_(x){i.$$.not_equal(rt.liveButton,x)&&(rt.liveButton=x,t(23,rt))}function S_(x){i.$$.not_equal(rt.time,x)&&(rt.time=x,t(23,rt))}function P_(x){i.$$.not_equal(rt.episodes,x)&&(rt.episodes=x,t(23,rt))}function I_(){Mo=this.clientWidth,t(22,Mo)}function T_(x){i.$$.not_equal(rt.vkLogo,x)&&(rt.vkLogo=x,t(23,rt))}function E_(x){i.$$.not_equal(rt.volume,x)&&(rt.volume=x,t(23,rt))}function A_(x){i.$$.not_equal(rt.subtitles,x)&&(rt.subtitles=x,t(23,rt))}function M_(x){Yl=x,t(24,Yl)}function V_(x){Zl=x,t(25,Zl)}function L_(x){i.$$.not_equal(rt.settings,x)&&(rt.settings=x,t(23,rt))}function R_(x){i.$$.not_equal(rt.context,x)&&(rt.context=x,t(23,rt))}function B_(x){i.$$.not_equal(rt.fullscreen,x)&&(rt.fullscreen=x,t(23,rt))}function D_(x){i.$$.not_equal(rt.chromecast,x)&&(rt.chromecast=x,t(23,rt))}function N_(x){pe[x?"unshift":"push"](()=>{M=x,t(46,M)})}function q_(x){pe[x?"unshift":"push"](()=>{Xt=x,t(0,Xt)})}function O_(x){i.$$.not_equal(rt.interactiveTimeIndicator,x)&&(rt.interactiveTimeIndicator=x,t(23,rt))}i.$$set=x=>{"bottomHidden"in x&&t(1,mi=x.bottomHidden),"bottomNoSmooth"in x&&t(2,pi=x.bottomNoSmooth),"showControls"in x&&t(3,ii=x.showControls),"controlsElementRef"in x&&t(0,Xt=x.controlsElementRef),"isAds"in x&&t(4,Vt=x.isAds),"canRewindLive"in x&&t(5,ni=x.canRewindLive),"logoClickable"in x&&t(6,Ri=x.logoClickable),"logoHidden"in x&&t(129,Ci=x.logoHidden),"logoTargetUrl"in x&&t(7,Jt=x.logoTargetUrl),"showNextPrevButtons"in x&&t(130,oi=x.showNextPrevButtons),"nextButtonActive"in x&&t(8,Wi=x.nextButtonActive),"prevButtonActive"in x&&t(9,Gi=x.prevButtonActive),"isOneVideoPlaylist"in x&&t(131,mn=x.isOneVideoPlaylist),"supportLink"in x&&t(10,Qi=x.supportLink),"customFullscreenSupported"in x&&t(132,Dt=x.customFullscreenSupported),"playNextVideo"in x&&t(11,Nt=x.playNextVideo),"playPrevVideo"in x&&t(12,Si=x.playPrevVideo),"repeatPlaylist"in x&&t(133,li=x.repeatPlaylist),"toggleFullscreen"in x&&t(13,Yi=x.toggleFullscreen),"returnFocus"in x&&t(14,Bi=x.returnFocus),"seekToInteractive"in x&&t(15,rn=x.seekToInteractive),"toggleGraph"in x&&t(16,Pi=x.toggleGraph),"playPrevChapter"in x&&t(17,Di=x.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=Mt.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=Mt.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,l=Mt.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,r=Mt.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=Mt.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=Mt.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Zo=Vt?Vi==="playing":ci===Qo.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,so=Ui.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,ao=wi&&!Vt||Mn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,Co=!wi||Mn||Vt);if(i.$$.dirty[4]&524288)e:t(134,So=Bn(ne,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,Po=oi&&Bn(ne,"m")&&!Vt&&Wi);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,Xo=oi&&Bn(ne,"m")&&!Vt&&Gi);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,Jo=vi!==Qo.ChromecastState.NOT_AVAILABLE&&!(Yt&&Bt===1)&&Bn(ne,"m")&&!Mn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,Z=ti.length>0&&Bn(ne,"m"));if(i.$$.dirty[5]&6144)e:t(41,qt=zi||on);if(i.$$.dirty[4]&524288)e:t(42,bn=Bn(ne,"s"));if(i.$$.dirty[4]&32)e:t(43,zn=!Ci);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,Io=xt.features.fullscreen&&(Ci||Bn(ne,"s"))&&!(Yt&&Bt===1)&&(Mn?Dt:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,To=(!ki||Vt)&&!(xt.features.interactiveHideTime&&Mn));if(i.$$.dirty[4]&262144)e:t(45,Eo=W.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,yt=!Vt&&!ki&&!!Qt?.length&&So&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,ce=!di||yi);if(i.$$.dirty[5]&64)e:t(47,Ve=ci===Qo.PlaybackState.PLAYING?K("tooltip_pause"):K("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,Ze=fi?K("tooltip_interactive_graph_on"):K("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,ct=Mi?K("aria_label_context_menu_close"):K("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:$i(ce,ci);if(i.$$.dirty[0]&262144)e:t(52,Un=so?K("tooltip_subtitles_on"):K("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,Ao=nn?K("tooltip_fullscreen_on"):K("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Ql=vi===Qo.ChromecastState.CONNECTED?K("tooltip_chromecast_on"):K("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,Kn={prevButton:ei?ei.right-ei.left:0,replayButton:Wt?Wt.right-Wt.left:0,playButton:vt?vt.right-vt.left:0,nextButton:_t?_t.right-_t.left:0,playPrevChapterButton:lt?lt.right-lt.left:0,seekToInteractiveButton:Rt?Rt.right-Rt.left:0,interactiveGraphButton:At?At.right-At.left:0,liveButton:nt?nt.right-nt.left:0,time:at?at.right-at.left:0,episodes:Ne?Ne.right-Ne.left:0,vkLogo:ze?ze.right-ze.left:0,volume:Je?Je.right-Je.left:0,subtitles:ke?ke.right-ke.left:0,settings:We?We.right-We.left:0,context:ye?ye.right-ye.left:0,fullscreen:Qe?Qe.right-Qe.left:0,chromecast:Q?Q.right-Q.left:0,additionalButtons:E.length?E.reduce(x=>[...x,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!Vl||Vl<Kn.time)&&t(136,Vl=Kn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let x=0;yt&&(Bn(ne,"xl")?x=Kn.time:x=60);let Ss=Kn.prevButton+Kn.playButton+Kn.nextButton+Kn.seekToInteractiveButton+Kn.interactiveGraphButton+Kn.liveButton+Vl+x;t(137,Cs=To&&Mo>=Ss)}if(i.$$.dirty[4]&532480)e:t(55,Bc=Cs&&Bn(ne,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:d_(xn(),En,rt,ii);if(i.$$.dirty[0]&167772160)e:fl(Zl,Y,Tn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:Ko(Yl,Y,$);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:ls(te,A,Xl)};e:t(51,ai=xt.logoType==="vk_video"?K("tooltip_vk_video_logo"):K("tooltip_vk_logo"));e:dn(t(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:w,seekToInteractiveButton:g,interactiveGraphButton:k,liveButton:y,time:T,episodes:b,vkLogo:v,volume:I,subtitles:G,settings:q,context:F,fullscreen:fe,chromecast:re}=En,u,tn(t(71,f)),jt(t(70,p)),$t(t(69,h)),be(t(68,w)),ui(t(67,g)),Ft(t(66,k)),wt(t(65,y)),dt(t(64,T)),Ue(t(63,b)),le(t(62,v)),se(t(61,I)),Ge(t(60,G)),it(t(59,q)),we(t(58,F)),qe(t(57,fe)),je(t(56,re))));return[Xt,mi,pi,ii,Vt,ni,Ri,Jt,Wi,Gi,Qi,Nt,Si,Yi,Bi,rn,Pi,Di,so,To,yt,ce,Mo,rt,Yl,Zl,Xl,Y,E,vi,nn,fi,di,ki,Zo,ao,Co,Po,Xo,Jo,Z,qt,bn,zn,Io,Eo,M,Ve,Ze,ct,si,ai,Un,Ao,Ql,Bc,re,fe,F,q,G,I,v,b,T,y,k,g,w,h,p,f,u,s,a,r,l,o,ln,Zt,Li,Ki,ji,Gt,xt,Ni,pn,Zi,Ji,_n,yn,Ht,Oi,Pn,an,un,hn,zt,xi,In,Tn,Qt,Dn,kn,cn,Nn,wn,gn,Fi,te,ht,Cn,ee,mt,_i,An,Hn,Mn,Yo,El,Al,Ml,yo,ko,$n,ro,wo,m_,p_,Ci,oi,mn,Dt,li,So,Kn,Vl,Cs,n,A,$,X,W,ne,Q,Qe,ye,We,ke,Je,ze,Ne,at,nt,At,Rt,lt,_t,vt,Wt,ei,ci,Mi,yi,Bt,Yt,on,zi,ti,wi,Ui,Vi,Mt,__,h_,g_,b_,v_,y_,k_,w_,C_,S_,P_,I_,T_,E_,A_,M_,V_,L_,R_,B_,D_,N_,q_,O_]}var Uu=class extends U{constructor(e){super(),j(this,e,P3,S3,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},e3,[-1,-1,-1,-1,-1,-1,-1])}},Xm=Uu;var kl=require("@vkontakte/videoplayer-core");function I3(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=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=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){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&C(e),a&&a.d(f)}}}function T3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ju=class extends U{constructor(e){super(),j(this,e,T3,I3,z,{})}},Jm=ju;var $m=require("@vkontakte/videoplayer-shared");function E3(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 xm(i){let e;return{c(){e=P("span"),e.textContent=`${K("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){S(t,e,n)},p:_e,d(t){t&&C(e)}}}function A3(i){let e,t,n,o;var l=i[4];function r(s){return{}}l&&(t=Sn(l,r(i)));let a=i[1]&&xm(i);return{c(){e=P("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){S(s,e,u),t&&V(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){ae();let f=t;_(f.$$.fragment,1,0,()=>{L(f,1)}),ue()}l?(t=Sn(l,r(s)),R(t.$$.fragment),d(t.$$.fragment,1),V(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=xm(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&&C(e),t&&L(t),a&&a.d()}}}function M3(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 pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function V3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=$m.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?K("tooltip_volume"):K("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?Go:Jm)},[r,o,l,a,s,n,u]}var Wu=class extends U{constructor(e){super(),j(this,e,V3,M3,z,{muted:5,expanded:1,click:2,ref:0},E3)}},Gu=Wu;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"},{fill:"none"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("path"),n=B("path"),o=B("path"),c(t,"fill","currentColor"),c(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),c(t,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),c(o,"class","hidden-active"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=Le(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&&C(e),a&&a.d(f)}}}function R3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Qu=class extends U{constructor(e){super(),j(this,e,R3,L3,z,{})}},e0=Qu;function B3(i){Ce(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function D3(i){let e,t;return e=new e0({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function N3(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 Yu=class extends U{constructor(e){super(),j(this,e,N3,D3,z,{isActive:0},B3)}},t0=Yu;var i0=require("@vkontakte/videoplayer-shared");function q3(i){let e,t;return e=new t0({props:{isActive:i[1]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function O3(i){let e,t,n;function o(r){i[3](r)}let l={testId:"btn-pip",ariaLabel:K("menu_pip"),click:i[2],$$slots:{default:[q3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function F3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=i0.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 Zu=class extends U{constructor(e){super(),j(this,e,F3,O3,z,{ref:0,isPictureInPictureActive:1,click:2})}},n0=Zu;var I0=require("@vkontakte/videoplayer-shared");function H3(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 o0(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 l0(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b=(!i[51]||i[53])&&r0(i),v=Ct(i[56]),I=[];for(let W=0;W<v.length;W+=1)I[W]=s0(o0(i,v,W));let G=W=>_(I[W],1,1,()=>{I[W]=null}),q=i[36]&&a0(i),F=i[37]&&u0(i),fe=i[57]&&c0(i),re=i[39]&&f0(i),D=i[8]&&d0(i),A=i[34]&&m0(i),$=i[33]&&p0(i),Y=i[8]&&_0(i),X=i[96]&&!i[29]&&h0(i);return{c(){e=P("div"),t=N(),n=P("div"),b&&b.c(),o=N(),l=P("div");for(let W=0;W<I.length;W+=1)I[W].c();r=N(),q&&q.c(),a=N(),F&&F.c(),s=N(),fe&&fe.c(),u=N(),re&&re.c(),f=N(),p=P("div"),D&&D.c(),h=N(),A&&A.c(),w=N(),$&&$.c(),g=N(),Y&&Y.c(),k=N(),X&&X.c(),y=ut(),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(l,"class","wrapper-top-right svelte-1tcstu3"),O(l,"hidden",!i[3]&&!i[27]),O(l,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-1tcstu3"),O(p,"hidden",!i[3]||i[29])},m(W,ne){S(W,e,ne),S(W,t,ne),S(W,n,ne),b&&b.m(n,null),S(W,o,ne),S(W,l,ne);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),F&&F.m(l,null),m(l,s),fe&&fe.m(l,null),m(l,u),re&&re.m(l,null),S(W,f,ne),S(W,p,ne),D&&D.m(p,null),m(p,h),A&&A.m(p,null),m(p,w),$&&$.m(p,null),m(p,g),Y&&Y.m(p,null),S(W,k,ne),X&&X.m(W,ne),S(W,y,ne),T=!0},p(W,ne){if((!T||ne[1]&2048)&&O(e,"hidden",!W[42]),!W[51]||W[53]?b?(b.p(W,ne),ne[1]&5242880&&d(b,1)):(b=r0(W),b.c(),d(b,1),b.m(n,null)):b&&(ae(),_(b,1,1,()=>{b=null}),ue()),(!T||ne[0]&8)&&O(n,"hidden",!W[3]),(!T||ne[1]&2097152)&&O(n,"fullscreen",W[52]),ne[1]&33554432){v=Ct(W[56]);let E;for(E=0;E<v.length;E+=1){let Q=o0(W,v,E);I[E]?(I[E].p(Q,ne),d(I[E],1)):(I[E]=s0(Q),I[E].c(),d(I[E],1),I[E].m(l,r))}for(ae(),E=v.length;E<I.length;E+=1)G(E);ue()}W[36]?q?(q.p(W,ne),ne[1]&32&&d(q,1)):(q=a0(W),q.c(),d(q,1),q.m(l,a)):q&&(ae(),_(q,1,1,()=>{q=null}),ue()),W[37]?F?(F.p(W,ne),ne[1]&64&&d(F,1)):(F=u0(W),F.c(),d(F,1),F.m(l,s)):F&&(ae(),_(F,1,1,()=>{F=null}),ue()),W[57]?fe?(fe.p(W,ne),ne[1]&67108864&&d(fe,1)):(fe=c0(W),fe.c(),d(fe,1),fe.m(l,u)):fe&&(ae(),_(fe,1,1,()=>{fe=null}),ue()),W[39]?re?(re.p(W,ne),ne[1]&256&&d(re,1)):(re=f0(W),re.c(),d(re,1),re.m(l,null)):re&&(ae(),_(re,1,1,()=>{re=null}),ue()),(!T||ne[0]&134217736)&&O(l,"hidden",!W[3]&&!W[27]),(!T||ne[1]&2097152)&&O(l,"fullscreen",W[52]),W[8]?D?(D.p(W,ne),ne[0]&256&&d(D,1)):(D=d0(W),D.c(),d(D,1),D.m(p,h)):D&&(ae(),_(D,1,1,()=>{D=null}),ue()),W[34]?A?(A.p(W,ne),ne[1]&8&&d(A,1)):(A=m0(W),A.c(),d(A,1),A.m(p,w)):A&&(ae(),_(A,1,1,()=>{A=null}),ue()),W[33]?$?($.p(W,ne),ne[1]&4&&d($,1)):($=p0(W),$.c(),d($,1),$.m(p,g)):$&&(ae(),_($,1,1,()=>{$=null}),ue()),W[8]?Y?(Y.p(W,ne),ne[0]&256&&d(Y,1)):(Y=_0(W),Y.c(),d(Y,1),Y.m(p,null)):Y&&(ae(),_(Y,1,1,()=>{Y=null}),ue()),(!T||ne[0]&536870920)&&O(p,"hidden",!W[3]||W[29]),W[96]&&!W[29]?X?(X.p(W,ne),ne[0]&536870912&&d(X,1)):(X=h0(W),X.c(),d(X,1),X.m(y.parentNode,y)):X&&(ae(),_(X,1,1,()=>{X=null}),ue())},i(W){if(!T){d(b);for(let ne=0;ne<v.length;ne+=1)d(I[ne]);d(q),d(F),d(fe),d(re),d(D),d(A),d($),d(Y),d(X),T=!0}},o(W){_(b),I=I.filter(Boolean);for(let ne=0;ne<I.length;ne+=1)_(I[ne]);_(q),_(F),_(fe),_(re),_(D),_(A),_($),_(Y),_(X),T=!1},d(W){W&&(C(e),C(t),C(n),C(o),C(l),C(f),C(p),C(k),C(y)),b&&b.d(),Ti(I,W),q&&q.d(),F&&F.d(),fe&&fe.d(),re&&re.d(),D&&D.d(),A&&A.d(),$&&$.d(),Y&&Y.d(),X&&X.d(W)}}}function r0(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 Gu({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function s0(i){let e,t;return e=new xr({props:{iconUrl:i[169],ariaLabel:i[170]??i[173],testId:i[171],onClick:i[172]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function a0(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 zr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function u0(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 n0({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function c0(i){let e,t,n;function o(r){i[133](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Ol({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function f0(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 Hr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function d0(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 vl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function m0(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 Hl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function p0(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 zl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function _0(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 vl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function h0(i){let e,t,n,o,l=i[100]&&z3(i),r=i[98]&&U3(i),a=i[99]&&K3(i);return{c(){l&&l.c(),e=N(),r&&r.c(),t=N(),a&&a.c(),n=ut()},m(s,u){l&&l.m(s,u),S(s,e,u),r&&r.m(s,u),S(s,t,u),a&&a.m(s,u),S(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&&(C(e),C(t),C(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function z3(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 Jr({props:s}),pe.push(()=>Fe(t,"ref",a)),{c(){e=P("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){S(u,e,f),V(t,e,null),o=!0,l||(r=de(e,"click",i[108]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&65536&&(p.disabled=u[47]),f[0]&262144&&(p.click=u[18]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].playPrevChapterButton,Oe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&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&&C(e),L(t),l=!1,r()}}}function U3(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 Zr({props:a}),pe.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class",o=Oc(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){S(s,e,u),V(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)&&O(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&O(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&&C(e),L(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 Yr({props:s}),pe.push(()=>Fe(t,"ref",a)),{c(){e=P("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){S(u,e,f),V(t,e,null),o=!0,l||(r=de(e,"click",i[109]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&32768&&(p.disabled=u[46]),f[0]&65536&&(p.click=u[16]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].seekToInteractiveButton,Oe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&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&&C(e),L(t),l=!1,r()}}}function g0(i){let e,t,n,o,l,r=i[53]&&b0(i),a=i[32]&&v0(i);return o=new Wr({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=N(),a&&a.c(),t=N(),n=P("div"),R(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),O(n,"fullscreen",i[52])},m(s,u){r&&r.m(s,u),S(s,e,u),a&&a.m(s,u),S(s,t,u),S(s,n,u),V(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=b0(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(ae(),_(r,1,1,()=>{r=null}),ue()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=v0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ae(),_(a,1,1,()=>{a=null}),ue());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&O(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&&(C(e),C(t),C(n)),r&&r.d(s),a&&a.d(s),L(o)}}}function b0(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 Gu({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","wrapper-top-right svelte-1tcstu3"),O(e,"fullscreen",i[52])},m(a,s){S(a,e,s),V(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)&&O(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&C(e),L(t)}}}function v0(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 Hl({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){S(a,e,s),V(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&&C(e),L(t)}}}function j3(i){let e,t,n;function o(r){i[144](r)}let l={disabled:i[48],$$slots:{default:[W3]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function W3(i){let e,t;return e=new zl({props:{disabled:i[48],click:i[95]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function y0(i){let e,t,n;function o(r){i[145](r)}let l={$$slots:{default:[G3]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function G3(i){let e,t;return e=new Kr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function k0(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 Br({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function w0(i){let e,t,n,o;return n=new Qr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=P("div"),e.textContent="\xB7",t=N(),R(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),S(l,t,r),V(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&&(C(e),C(t)),L(n,l)}}}function Q3(i){let e,t,n=i[43]&&w0(i);return{c(){n&&n.c(),e=ut()},m(o,l){n&&n.m(o,l),S(o,e,l),t=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=w0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),_(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&C(e),n&&n.d(o)}}}function C0(i){let e,t,n;function o(r){i[149](r)}let l={$$slots:{default:[Y3]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function Y3(i){let e,t,n;function o(r){i[148](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Ol({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function S0(i){let e,t,n;function o(r){i[150](r)}let l={$$slots:{default:[Z3]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function Z3(i){let e,t;return e=new Or({props:{click:i[14],isFullscreen:i[52]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function P0(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 Rr({props:r}),pe.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){S(a,e,s),V(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&&C(e),L(t)}}}function X3(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 rs({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function J3(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v=!i[4]&&l0(i),I=i[4]&&i[30]!=="inactive"&&g0(i),G=i[96]&&j3(i),q=!i[4]&&i[25]&&y0(i),F=i[41]&&k0(i);function fe(X){i[147](X)}let re={className:"w-max",disabled:!i[43],$$slots:{default:[Q3]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(re.ref=i[20].episodes),u=new Lt({props:re}),pe.push(()=>Fe(u,"ref",fe));let D=i[38]&&C0(i),A=i[40]&&S0(i);g=new Gr({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let $=i[23]&&P0(i),Y=i[101]&&X3(i);return{c(){v&&v.c(),e=N(),I&&I.c(),t=N(),n=P("div"),o=P("div"),l=P("div"),G&&G.c(),r=N(),q&&q.c(),a=N(),F&&F.c(),s=N(),R(u.$$.fragment),p=N(),D&&D.c(),h=N(),A&&A.c(),w=N(),R(g.$$.fragment),k=N(),$&&$.c(),y=N(),Y&&Y.c(),T=ut(),c(l,"class","controls svelte-1tcstu3"),O(l,"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,W){v&&v.m(X,W),S(X,e,W),I&&I.m(X,W),S(X,t,W),S(X,n,W),m(n,o),m(o,l),G&&G.m(l,null),m(l,r),q&&q.m(l,null),m(l,a),F&&F.m(l,null),m(l,s),V(u,l,null),m(l,p),D&&D.m(l,null),m(l,h),A&&A.m(l,null),i[151](l),m(o,w),V(g,o,null),i[152](n),S(X,k,W),$&&$.m(X,W),S(X,y,W),Y&&Y.m(X,W),S(X,T,W),b=!0},p(X,W){X[4]?v&&(ae(),_(v,1,1,()=>{v=null}),ue()):v?(v.p(X,W),W[0]&16&&d(v,1)):(v=l0(X),v.c(),d(v,1),v.m(e.parentNode,e)),X[4]&&X[30]!=="inactive"?I?(I.p(X,W),W[0]&1073741840&&d(I,1)):(I=g0(X),I.c(),d(I,1),I.m(t.parentNode,t)):I&&(ae(),_(I,1,1,()=>{I=null}),ue()),X[96]&&G.p(X,W),!X[4]&&X[25]?q?(q.p(X,W),W[0]&33554448&&d(q,1)):(q=y0(X),q.c(),d(q,1),q.m(l,a)):q&&(ae(),_(q,1,1,()=>{q=null}),ue()),X[41]?F?(F.p(X,W),W[1]&1024&&d(F,1)):(F=k0(X),F.c(),d(F,1),F.m(l,s)):F&&(ae(),_(F,1,1,()=>{F=null}),ue());let ne={};W[1]&4096&&(ne.disabled=!X[43]),W[1]&1073745920|W[2]&1|W[5]&2097152&&(ne.$$scope={dirty:W,ctx:X}),!f&&W[0]&1048576&&(f=!0,ne.ref=X[20].episodes,Oe(()=>f=!1)),u.$set(ne),X[38]?D?(D.p(X,W),W[1]&128&&d(D,1)):(D=C0(X),D.c(),d(D,1),D.m(l,h)):D&&(ae(),_(D,1,1,()=>{D=null}),ue()),X[40]?A?(A.p(X,W),W[1]&512&&d(A,1)):(A=S0(X),A.c(),d(A,1),A.m(l,null)):A&&(ae(),_(A,1,1,()=>{A=null}),ue());let E={};W[0]&16&&(E.isAds=X[4]),W[0]&32&&(E.canRewindLive=X[5]),W[0]&16777216&&(E.isRewindableLive=X[24]),g.$set(E),(!b||W[1]&2097152)&&O(o,"fullscreen",X[52]),(!b||W[0]&2)&&O(n,"hidden",X[1]),(!b||W[0]&8)&&O(n,"controls-hidden",!X[3]),(!b||W[0]&4)&&O(n,"no-smooth",X[2]),X[23]?$?($.p(X,W),W[0]&8388608&&d($,1)):($=P0(X),$.c(),d($,1),$.m(y.parentNode,y)):$&&(ae(),_($,1,1,()=>{$=null}),ue()),X[101]&&Y.p(X,W)},i(X){b||(d(v),d(I),d(G),d(q),d(F),d(u.$$.fragment,X),d(D),d(A),d(g.$$.fragment,X),d($),d(Y),b=!0)},o(X){_(v),_(I),_(G),_(q),_(F),_(u.$$.fragment,X),_(D),_(A),_(g.$$.fragment,X),_($),_(Y),b=!1},d(X){X&&(C(e),C(t),C(n),C(k),C(y),C(T)),v&&v.d(X),I&&I.d(X),G&&G.d(),q&&q.d(),F&&F.d(),L(u),D&&D.d(),A&&A.d(),i[151](null),L(g),i[152](null),$&&$.d(X),Y&&Y.d(X)}}}function x3(i,e,t){let n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v,I,G,q,F,fe,re,D,A,$,Y,X,W,ne,E,Q,Be,je,Qe,Xe,qe,{bottomHidden:ye}=e,{bottomNoSmooth:J}=e,{showControls:we}=e,{controlsElementRef:We=void 0}=e,{isAds:$e=!1}=e,{canRewindLive:it}=e,{logoClickable:ke}=e,{logoHidden:Re}=e,{logoTargetUrl:Ge=""}=e,{showNextPrevButtons:Je}=e,{nextButtonActive:Se}=e,{prevButtonActive:se}=e,{isOneVideoPlaylist:ze=!1}=e,{supportLink:me}=e,{customFullscreenSupported:le=!0}=e,{playNextVideo:Ne}=e,{playPrevVideo:Ae}=e,{repeatPlaylist:Ue}=e,{toggleFullscreen:at}=e,{returnFocus:ve}=e,{seekToInteractive:dt}=e,{toggleGraph:nt}=e,{playPrevChapter:gt}=e,{onDisabledPlayPrevChapterClick:wt}=e,{onDisabledSeekToInteractiveClick:At}=e,Ye=ot(),Ft=qn(),Rt=Ot(),St=Ye.actions.internal.toggleMuted,ui=Ye.actions.internal.togglePlay,lt=Ye.actions.internal.pause,bt=Ye.callbacks?.onAudioDoesNotExistHint,be=Ye.callbacks?.onAudioDisabledHint,_t=Ye.playerPhase;H(i,_t,ie=>t(126,F=ie));let Pt=Ye.state.duration$;H(i,Pt,ie=>t(62,qe=ie));let $t=Ye.state.positionWithScrubbing$;H(i,$t,ie=>t(61,Xe=ie));let vt=Ye.state.playbackState$;H(i,vt,ie=>t(121,h=ie));let Kt=Ye.state.isAudioAvailable$;H(i,Kt,ie=>t(51,w=ie));let jt=Ye.state.isAudioDisabled,Wt=Ye.state.isEnded$;H(i,Wt,ie=>t(127,re=ie));let Hi=Ye.state.isLive$;H(i,Hi,ie=>t(25,b=ie));let tn=Ye.state.muted$;H(i,tn,ie=>t(54,W=ie));let ei=Ye.state.isActiveLive$;H(i,ei,ie=>t(124,y=ie));let Ai=Ye.state.isRewindableLive$;H(i,Ai,ie=>t(24,T=ie));let dn=Ye.ui.scrubbingInProgress;H(i,dn,ie=>t(29,fe=ie));let vi=Ye.ui.mobileNotReportControlHidden$;H(i,vi,ie=>t(27,G=ie));let nn=Ye.ui.isPictureInPictureActive$;H(i,nn,ie=>t(26,I=ie));let ci=Ye.ui.pictureInPictureType$;H(i,ci,ie=>t(125,v=ie));let Mi=Ye.ui.mobileUnmuteButtonExpanded;H(i,Mi,ie=>t(55,ne=ie));let fi=Ye.ui.mobileUnmuteButtonVisible;H(i,fi,ie=>t(53,X=ie));let yi=Ye.ui.settingsMenuVisible;H(i,yi,ie=>t(23,p=ie));let di=Ye.ui.settingsMenuOpenedByKeyboard;H(i,di,ie=>t(120,f=ie));let ki=Ye.ui.controls,Bt=Ye.actions.internal.getVideoEpisodes(),Yt=Ye.webApi.pictureInPictureApi,on=Ye.state.chromecastState$;H(i,on,ie=>t(28,q=ie));let zi=Ye.state.crashed$;H(i,zi,ie=>t(57,Q=ie));let ti=ki.disabledControls$;H(i,ti,ie=>t(128,A=ie));let wi=Ye.ui.startedByKeyboard$;H(i,wi,ie=>t(119,u=ie));let Ui=Ye.ads.duration;H(i,Ui,ie=>t(60,Qe=ie));let Vi=Ye.ads.position;H(i,Vi,ie=>t(59,je=ie));let Mt=Ye.ads.playbackState;H(i,Mt,ie=>t(30,D=ie));let ln=Ye.ui.isFullscreen;H(i,ln,ie=>t(52,Y=ie));let Zt=Ye.ui.playerSize;H(i,Zt,ie=>t(123,k=ie));let Li=Ye.ui.additionalButtons$;H(i,Li,ie=>t(56,E=ie));let Ki=Ye.actions.internal.getVideoElement,ji=Ye.actions.internal.replayInteractive,Gt=Ye.state.isInteractive,mi=Ye.state.isInteractiveTime$;H(i,mi,ie=>t(122,g=ie));let pi=Ye.state.showInteractiveGraph,ii=Ye.state.showSeekToInteractive,Xt=Ye.state.showPlayPrevChapter,Vt=Ye.state.showInteractiveTimeIndicator,ni=Ye.state.graphIsOpened$;H(i,ni,ie=>t(58,Be=ie));let Ri=Ft.seekToInteractiveDisabledTooltip$;H(i,Ri,ie=>t(129,$=ie));let Ci,Jt,oi,Wi,Gi,mn,Qi,Dt,Nt,Si,li,Yi,Bi,rn,Pi,Di,tt,ri,xt,He={},Ni=(0,I0.throttleFn)(os,260,{leading:!1}),pn=()=>Ye.actions.internal.toggleChromecast();function Zi(){_o({isAudioDisabled:jt,audioDisabledHintCallback:be,isAudioAvailable:w,audioIsNotExistHintCallback:bt})&&St()}async function qi(){Yt?.isActive()?await Yt?.remove():await Yt?.request()}function Xi(){!jt&&w&&fi.set(!1),Zi()}let Ji=ze?ui:Ue,_n="",yn=(ie,Mn)=>{if(!ie){t(45,_n=K("tooltip_live"));return}Mn===kl.PlaybackState.PAUSED&&t(45,_n=K("tooltip_play"))},Ht,Oi,sn=()=>{s&&wt(Ci)},Pn=()=>{l&&At(Jt)};function an(ie){i.$$.not_equal(He.volume,ie)&&(He.volume=ie,t(20,He))}function un(ie){i.$$.not_equal(He.chromecast,ie)&&(He.chromecast=ie,t(20,He))}function hn(ie){i.$$.not_equal(He.pip,ie)&&(He.pip=ie,t(20,He))}function zt(ie){Oi=ie,t(22,Oi)}function xi(ie){i.$$.not_equal(He.vkLogo,ie)&&(He.vkLogo=ie,t(20,He))}function In(ie){i.$$.not_equal(He.prevButton,ie)&&(He.prevButton=ie,t(20,He))}function Tn(ie){i.$$.not_equal(He.playButton,ie)&&(He.playButton=ie,t(20,He))}function En(ie){i.$$.not_equal(He.replayButton,ie)&&(He.replayButton=ie,t(20,He))}function Qt(ie){i.$$.not_equal(He.nextButton,ie)&&(He.nextButton=ie,t(20,He))}function Dn(ie){i.$$.not_equal(He.playPrevChapterButton,ie)&&(He.playPrevChapterButton=ie,t(20,He))}function kn(ie){i.$$.not_equal(He.interactiveGraphButton,ie)&&(He.interactiveGraphButton=ie,t(20,He))}function cn(ie){i.$$.not_equal(He.seekToInteractiveButton,ie)&&(He.seekToInteractiveButton=ie,t(20,He))}function Nn(ie){i.$$.not_equal(He.volume,ie)&&(He.volume=ie,t(20,He))}function wn(ie){i.$$.not_equal(He.playButton,ie)&&(He.playButton=ie,t(20,He))}function gn(ie){i.$$.not_equal(He.replayButton,ie)&&(He.replayButton=ie,t(20,He))}function Fi(ie){i.$$.not_equal(He.liveButton,ie)&&(He.liveButton=ie,t(20,He))}function te(ie){i.$$.not_equal(He.time,ie)&&(He.time=ie,t(20,He))}function ht(ie){i.$$.not_equal(He.episodes,ie)&&(He.episodes=ie,t(20,He))}function Cn(ie){Oi=ie,t(22,Oi)}function ee(ie){i.$$.not_equal(He.settings,ie)&&(He.settings=ie,t(20,He))}function mt(ie){i.$$.not_equal(He.fullscreen,ie)&&(He.fullscreen=ie,t(20,He))}function _i(ie){pe[ie?"unshift":"push"](()=>{ri=ie,t(44,ri)})}function An(ie){pe[ie?"unshift":"push"](()=>{We=ie,t(0,We)})}function Hn(ie){Ht=ie,t(21,Ht)}function xn(ie){i.$$.not_equal(He.interactiveTimeIndicator,ie)&&(He.interactiveTimeIndicator=ie,t(20,He))}i.$$set=ie=>{"bottomHidden"in ie&&t(1,ye=ie.bottomHidden),"bottomNoSmooth"in ie&&t(2,J=ie.bottomNoSmooth),"showControls"in ie&&t(3,we=ie.showControls),"controlsElementRef"in ie&&t(0,We=ie.controlsElementRef),"isAds"in ie&&t(4,$e=ie.isAds),"canRewindLive"in ie&&t(5,it=ie.canRewindLive),"logoClickable"in ie&&t(6,ke=ie.logoClickable),"logoHidden"in ie&&t(110,Re=ie.logoHidden),"logoTargetUrl"in ie&&t(7,Ge=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(8,Je=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(9,Se=ie.nextButtonActive),"prevButtonActive"in ie&&t(10,se=ie.prevButtonActive),"isOneVideoPlaylist"in ie&&t(111,ze=ie.isOneVideoPlaylist),"supportLink"in ie&&t(11,me=ie.supportLink),"customFullscreenSupported"in ie&&t(112,le=ie.customFullscreenSupported),"playNextVideo"in ie&&t(12,Ne=ie.playNextVideo),"playPrevVideo"in ie&&t(13,Ae=ie.playPrevVideo),"repeatPlaylist"in ie&&t(113,Ue=ie.repeatPlaylist),"toggleFullscreen"in ie&&t(14,at=ie.toggleFullscreen),"returnFocus"in ie&&t(15,ve=ie.returnFocus),"seekToInteractive"in ie&&t(16,dt=ie.seekToInteractive),"toggleGraph"in ie&&t(17,nt=ie.toggleGraph),"playPrevChapter"in ie&&t(18,gt=ie.playPrevChapter),"onDisabledPlayPrevChapterClick"in ie&&t(114,wt=ie.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ie&&t(115,At=ie.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:Jt=K($);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,oi=h===kl.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,Wi=D==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,Gi=re&&!$e&&!Gt);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,mn=!re||$e);if(i.$$.dirty[3]&1073741824)e:t(116,Qi=k.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Dt=k.width>400);if(i.$$.dirty[0]&536870912)e:t(117,Nt=fe);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,Si=q!==kl.ChromecastState.NOT_AVAILABLE&&!(I&&v===1)&&!G&&!Gt);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ie=F==="waitingLive";t(37,li=!!Yt&&q!==kl.ChromecastState.CONNECTED&&!G&&(v===1&&ie||!ie)&&!Nt&&!Gt)}if(i.$$.dirty[3]&16777216)e:t(38,Yi=!Nt);if(i.$$.dirty[3]&1073872896)e:t(39,Bi=!Re&&k.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,rn=Rt.features.fullscreen&&!(I&&v===1)&&(Gt?le:!0)&&!Nt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Pi=(!b||$e)&&k.width>260&&!Nt&&!(Rt.features.interactiveHideTime&&Gt));if(i.$$.dirty[0]&8388616)e:t(42,Di=p||we);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,tt=!$e&&!b&&!!Bt?.length&&Qi&&!n&&!Nt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,xt=!T||y);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:Ni(Ki(),ki,He,we);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:yn(xt,h);if(i.$$.dirty[0]&12582912)e:fl(Oi,p,di);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:Ko(Ht,p,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:ls(wi,u,He.playButton)};e:Ci=K(Ye.state.playPrevChapterDisabledTooltip);return[We,ye,J,we,$e,it,ke,Ge,Je,Se,se,me,Ne,Ae,at,ve,dt,nt,gt,xt,He,Ht,Oi,p,T,b,I,G,q,fe,D,oi,Wi,Gi,mn,Dt,Si,li,Yi,Bi,rn,Pi,Di,tt,ri,_n,l,s,a,r,o,w,Y,X,W,ne,E,Q,Be,je,Qe,Xe,qe,ui,lt,_t,Pt,$t,vt,Kt,jt,Wt,Hi,tn,ei,Ai,dn,vi,nn,ci,Mi,fi,yi,di,Bt,on,zi,ti,wi,Ui,Vi,Mt,ln,Zt,Li,ji,Gt,mi,pi,ii,Xt,Vt,ni,Ri,pn,qi,Xi,Ji,sn,Pn,Re,ze,le,Ue,wt,At,Qi,Nt,n,u,f,h,g,k,y,v,F,re,A,$,an,un,hn,zt,xi,In,Tn,En,Qt,Dn,kn,cn,Nn,wn,gn,Fi,te,ht,Cn,ee,mt,_i,An,Hn,xn]}var Xu=class extends U{constructor(e){super(),j(this,e,x3,J3,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},H3,[-1,-1,-1,-1,-1,-1])}},T0=Xu;function $3(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 Xm({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function e5(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 T0({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){V(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){L(e,r)}}}function t5(i){let e,t,n,o,l=[e5,$3],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=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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&&C(n),r[e].d(s)}}}function i5(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:w}=e,{nextButtonActive:g}=e,{prevButtonActive:k}=e,{isOneVideoPlaylist:y=!1}=e,{supportLink:T}=e,{customFullscreenSupported:b=!0}=e,{playNextVideo:v}=e,{playPrevVideo:I}=e,{repeatPlaylist:G}=e,{toggleFullscreen:q}=e,{returnFocus:F=ss.noop}=e,{seekToInteractive:fe}=e,{toggleGraph:re}=e,{playPrevChapter:D}=e,{onDisabledPlayPrevChapterClick:A=ss.noop}=e,{onDisabledSeekToInteractiveClick:$=ss.noop}=e,X=ot().ui.isMobile;H(i,X,E=>t(25,n=E));function W(E){a=E,t(0,a)}function ne(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,w=E.showNextPrevButtons),"nextButtonActive"in E&&t(10,g=E.nextButtonActive),"prevButtonActive"in E&&t(11,k=E.prevButtonActive),"isOneVideoPlaylist"in E&&t(12,y=E.isOneVideoPlaylist),"supportLink"in E&&t(13,T=E.supportLink),"customFullscreenSupported"in E&&t(14,b=E.customFullscreenSupported),"playNextVideo"in E&&t(15,v=E.playNextVideo),"playPrevVideo"in E&&t(16,I=E.playPrevVideo),"repeatPlaylist"in E&&t(17,G=E.repeatPlaylist),"toggleFullscreen"in E&&t(18,q=E.toggleFullscreen),"returnFocus"in E&&t(19,F=E.returnFocus),"seekToInteractive"in E&&t(20,fe=E.seekToInteractive),"toggleGraph"in E&&t(21,re=E.toggleGraph),"playPrevChapter"in E&&t(22,D=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,w,g,k,y,T,b,v,I,G,q,F,fe,re,D,A,$,n,X,W,ne]}var Ju=class extends U{constructor(e){super(),j(this,e,i5,t5,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})}},as=Ju;function n5(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k=i[2].default,y=Pe(k,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]],b={};for(let v=0;v<T.length;v+=1)b=oe(b,T[v]);return{c(){e=B("svg"),y&&y.c(),t=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),w=B("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(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_100684"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","43.996"),c(r,"height","49.5"),c(r,"x","2.5"),c(r,"y","0"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ge(e,b)},m(v,I){S(v,e,I),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(v,[I]){y&&y.p&&(!g||I&2)&&Te(y,k,v,v[1],g?Ie(k,v[1],I,null):Ee(v[1]),null),ge(e,b=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},I&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&C(e),y&&y.d(v)}}}function o5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var xu=class extends U{constructor(e){super(),j(this,e,o5,n5,z,{})}},E0=xu;function l5(i){let e,t;return e=new E0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function r5(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 $u=class extends U{constructor(e){super(),j(this,e,r5,l5,z,{reversed:1})}},A0=$u;function s5(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T=i[2].default,b=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 G=0;G<v.length;G+=1)I=oe(I,v[G]);return{c(){e=B("svg"),b&&b.c(),t=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("clipPath"),a=B("path"),s=B("filter"),u=B("feFlood"),f=B("feColorMatrix"),p=B("feOffset"),h=B("feGaussianBlur"),w=B("feColorMatrix"),g=B("feBlend"),k=B("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(w,"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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2260_104204"),c(k,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),ge(e,I)},m(G,q){S(G,e,q),b&&b.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,w),m(s,g),m(s,k),y=!0},p(G,[q]){b&&b.p&&(!y||q&2)&&Te(b,T,G,G[1],y?Ie(T,G[1],q,null):Ee(G[1]),null),ge(e,I=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"},q&1&&G[0]]))},i(G){y||(d(b,G),y=!0)},o(G){_(b,G),y=!1},d(G){G&&C(e),b&&b.d(G)}}}function a5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var ec=class extends U{constructor(e){super(),j(this,e,a5,s5,z,{})}},M0=ec;function u5(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b=i[2].default,v=Pe(b,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]],G={};for(let q=0;q<I.length;q+=1)G=oe(G,I[q]);return{c(){e=B("svg"),v&&v.c(),t=B("g"),n=B("path"),o=B("path"),l=B("path"),r=B("defs"),a=B("clipPath"),s=B("path"),u=B("filter"),f=B("feFlood"),p=B("feColorMatrix"),h=B("feOffset"),w=B("feGaussianBlur"),g=B("feColorMatrix"),k=B("feBlend"),y=B("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(w,"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(k,"in2","BackgroundImageFix"),c(k,"result","effect1_dropShadow_2260_104293"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_104293"),c(y,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ge(e,G)},m(q,F){S(q,e,F),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,w),m(u,g),m(u,k),m(u,y),T=!0},p(q,[F]){v&&v.p&&(!T||F&2)&&Te(v,b,q,q[1],T?Ie(b,q[1],F,null):Ee(q[1]),null),ge(e,G=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},F&1&&q[0]]))},i(q){T||(d(v,q),T=!0)},o(q){_(v,q),T=!1},d(q){q&&C(e),v&&v.d(q)}}}function c5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var tc=class extends U{constructor(e){super(),j(this,e,c5,u5,z,{})}},V0=tc;function f5(i){let e,t;return e=new M0({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function d5(i){let e,t;return e=new V0({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function m5(i){let e,t,n,o,l=[d5,f5],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=ut()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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&&C(n),r[e].d(s)}}}function p5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var ic=class extends U{constructor(e){super(),j(this,e,p5,m5,z,{isOff:0})}},nc=ic;function _5(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k=i[2].default,y=Pe(k,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],b={};for(let v=0;v<T.length;v+=1)b=oe(b,T[v]);return{c(){e=B("svg"),y&&y.c(),t=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),w=B("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(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_106627"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","40.098"),c(r,"height","27.785"),c(r,"x","3.402"),c(r,"y","10.105"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ge(e,b)},m(v,I){S(v,e,I),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(v,[I]){y&&y.p&&(!g||I&2)&&Te(y,k,v,v[1],g?Ie(k,v[1],I,null):Ee(v[1]),null),ge(e,b=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},I&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&C(e),y&&y.d(v)}}}function h5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var oc=class extends U{constructor(e){super(),j(this,e,h5,_5,z,{})}},L0=oc;function g5(i){let e,t;return e=new L0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function b5(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 lc=class extends U{constructor(e){super(),j(this,e,b5,g5,z,{reversed:1})}},R0=lc;function v5(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k=i[2].default,y=Pe(k,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],b={};for(let v=0;v<T.length;v+=1)b=oe(b,T[v]);return{c(){e=B("svg"),y&&y.c(),t=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),w=B("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(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2340_106922"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","37"),c(r,"height","37"),c(r,"x","5.5"),c(r,"y","5.5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ge(e,b)},m(v,I){S(v,e,I),y&&y.m(e,null),m(e,t),m(t,n),m(t,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(v,[I]){y&&y.p&&(!g||I&2)&&Te(y,k,v,v[1],g?Ie(k,v[1],I,null):Ee(v[1]),null),ge(e,b=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},I&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&C(e),y&&y.d(v)}}}function y5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var rc=class extends U{constructor(e){super(),j(this,e,y5,v5,z,{})}},B0=rc;function k5(i){let e,t;return e=new B0({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function w5(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 sc=class extends U{constructor(e){super(),j(this,e,w5,k5,z,{reversed:1})}},D0=sc;function C5(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 N0(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,w,g,k,y,T=t&&q0(i),b=i[4]==="PAUSE"&&O0(i),v=i[4]==="PLAY"&&F0(i),I=i[4]==="REPLAY"&&H0(i),G=i[4]==="SUBTITLES_OFF"&&z0(i),q=i[4]==="SUBTITLES_ON"&&U0(i),F=u&&K0(i),fe=p&&j0(i),re=i[4]==="MUTE"&&W0(i),D=i[4]==="VOLUME"&&G0(i),A=i[5]&&Q0(i);return{c(){e=P("div"),T&&T.c(),n=N(),b&&b.c(),o=N(),v&&v.c(),l=N(),I&&I.c(),r=N(),G&&G.c(),a=N(),q&&q.c(),s=N(),F&&F.c(),f=N(),fe&&fe.c(),h=N(),re&&re.c(),w=N(),D&&D.c(),g=N(),A&&A.c(),k=ut(),c(e,"class","svelte-4ftgwp")},m($,Y){S($,e,Y),T&&T.m(e,null),m(e,n),b&&b.m(e,null),m(e,o),v&&v.m(e,null),m(e,l),I&&I.m(e,null),m(e,r),G&&G.m(e,null),m(e,a),q&&q.m(e,null),m(e,s),F&&F.m(e,null),m(e,f),fe&&fe.m(e,null),m(e,h),re&&re.m(e,null),m(e,w),D&&D.m(e,null),S($,g,Y),A&&A.m($,Y),S($,k,Y),y=!0},p($,Y){Y&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes($[4])),t?T?(T.p($,Y),Y&16&&d(T,1)):(T=q0($),T.c(),d(T,1),T.m(e,n)):T&&(ae(),_(T,1,1,()=>{T=null}),ue()),$[4]==="PAUSE"?b?Y&16&&d(b,1):(b=O0($),b.c(),d(b,1),b.m(e,o)):b&&(ae(),_(b,1,1,()=>{b=null}),ue()),$[4]==="PLAY"?v?Y&16&&d(v,1):(v=F0($),v.c(),d(v,1),v.m(e,l)):v&&(ae(),_(v,1,1,()=>{v=null}),ue()),$[4]==="REPLAY"?I?Y&16&&d(I,1):(I=H0($),I.c(),d(I,1),I.m(e,r)):I&&(ae(),_(I,1,1,()=>{I=null}),ue()),$[4]==="SUBTITLES_OFF"?G?Y&16&&d(G,1):(G=z0($),G.c(),d(G,1),G.m(e,a)):G&&(ae(),_(G,1,1,()=>{G=null}),ue()),$[4]==="SUBTITLES_ON"?q?Y&16&&d(q,1):(q=U0($),q.c(),d(q,1),q.m(e,s)):q&&(ae(),_(q,1,1,()=>{q=null}),ue()),Y&16&&(u=["RATE_DOWN","RATE_UP"].includes($[4])),u?F?(F.p($,Y),Y&16&&d(F,1)):(F=K0($),F.c(),d(F,1),F.m(e,f)):F&&(ae(),_(F,1,1,()=>{F=null}),ue()),Y&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes($[4])),p?fe?(fe.p($,Y),Y&16&&d(fe,1)):(fe=j0($),fe.c(),d(fe,1),fe.m(e,h)):fe&&(ae(),_(fe,1,1,()=>{fe=null}),ue()),$[4]==="MUTE"?re?Y&16&&d(re,1):(re=W0($),re.c(),d(re,1),re.m(e,w)):re&&(ae(),_(re,1,1,()=>{re=null}),ue()),$[4]==="VOLUME"?D?Y&16&&d(D,1):(D=G0($),D.c(),d(D,1),D.m(e,null)):D&&(ae(),_(D,1,1,()=>{D=null}),ue()),$[5]?A?A.p($,Y):(A=Q0($),A.c(),A.m(k.parentNode,k)):A&&(A.d(1),A=null)},i($){y||(d(T),d(b),d(v),d(I),d(G),d(q),d(F),d(fe),d(re),d(D),y=!0)},o($){_(T),_(b),_(v),_(I),_(G),_(q),_(F),_(fe),_(re),_(D),y=!1},d($){$&&(C(e),C(g),C(k)),T&&T.d(),b&&b.d(),v&&v.d(),I&&I.d(),G&&G.d(),q&&q.d(),F&&F.d(),fe&&fe.d(),re&&re.d(),D&&D.d(),A&&A.d($)}}}function q0(i){let e,t;return e=new A0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function O0(i){let e,t;return e=new Fr({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function F0(i){let e,t;return e=new bl({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function H0(i){let e,t;return e=new Xr({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function z0(i){let e,t;return e=new nc({props:{isOff:!0}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function U0(i){let e,t;return e=new nc({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function K0(i){let e,t;return e=new R0({props:{reversed:i[4]==="RATE_UP"}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function j0(i){let e,t;return e=new D0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function W0(i){let e,t;return e=new Go({props:{volume:0}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function G0(i){let e,t;return e=new Go({props:{volume:1}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Q0(i){let e,t;return{c(){e=P("span"),t=Me(i[5]),c(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&32&&Ke(t,n[5])},d(n){n&&C(e)}}}function S5(i){let e,t,n=!i[1]&&i[4]&&N0(i);return{c(){e=P("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,l){S(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=N0(o),n.c(),d(n,1),n.m(e,null)):n&&(ae(),_(n,1,1,()=>{n=null}),ue()),(!t||l&2)&&O(e,"hidden",o[1]),(!t||l&4)&&O(e,"hot-key-helpers-container--left",o[2]),(!t||l&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&&C(e),n&&n.d()}}}function P5(i,e,t){let n,o=_e,l=()=>(o(),o=Ut(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=K(n.t.key,{value:n.t.value||""})):t(5,p=n?.text)},[r,a,s,u,f,p,n]}var ac=class extends U{constructor(e){super(),j(this,e,P5,S5,z,{data:0},C5)}},Y0=ac;function I5(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 T5(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v;return l=new Qn({props:{direction:"up"}}),s=new Qn({props:{direction:"up"}}),h=new Qn({props:{direction:"up"}}),k=new Qn({props:{direction:"up"}}),{c(){e=P("div"),t=P("div"),n=P("div"),o=P("div"),R(l.$$.fragment),r=N(),a=P("div"),R(s.$$.fragment),u=N(),f=P("div"),p=P("div"),R(h.$$.fragment),w=N(),g=P("div"),R(k.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(p,"class","button button-left svelte-1yzc86r"),c(g,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(t,"class","button-block svelte-1yzc86r"),c(t,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",y=K("aria_label_spherical_control")),O(e,"m-shifted",i[0])},m(I,G){S(I,e,G),m(e,t),m(t,n),m(n,o),V(l,o,null),m(n,r),m(n,a),V(s,a,null),m(t,u),m(t,f),m(f,p),V(h,p,null),m(f,w),m(f,g),V(k,g,null),T=!0,b||(v=[de(o,"mousedown",i[1]),de(o,"mouseup",i[5]),de(o,"mouseleave",i[5]),de(a,"mousedown",i[3]),de(a,"mouseup",i[5]),de(a,"mouseleave",i[5]),de(p,"mousedown",i[4]),de(p,"mouseup",i[5]),de(p,"mouseleave",i[5]),de(g,"mousedown",i[2]),de(g,"mouseup",i[5]),de(g,"mouseleave",i[5]),de(e,"keydown",i[6]),de(e,"keyup",i[7])],b=!0)},p(I,[G]){(!T||G&1)&&O(e,"m-shifted",I[0])},i(I){T||(d(l.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(k.$$.fragment,I),T=!0)},o(I){_(l.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(k.$$.fragment,I),T=!1},d(I){I&&C(e),L(l),L(s),L(h),L(k),b=!1,et(v)}}}function E5(i,e,t){let{isShifted:n=!1}=e,o=ot(),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=w=>{if(l.has(w.code))switch(w.preventDefault(),w.stopPropagation(),w.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=w=>{l.has(w.code)&&(w.preventDefault(),w.stopPropagation(),f())};return i.$$set=w=>{"isShifted"in w&&t(0,n=w.isShifted)},[n,r,a,s,u,f,p,h]}var uc=class extends U{constructor(e){super(),j(this,e,E5,T5,z,{isShifted:0},I5)}},us=uc;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 Z0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function X0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function J0(i){let e,t;function n(r,a){return r[7]&&r[8]?L5:r[5]?V5:M5}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"),O(e,"mobile",i[3])},m(r,a){S(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&&O(e,"mobile",r[3])},d(r){r&&C(e),l.d()}}}function M5(i){let e,t=Ct(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=x0(Z0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ut()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);S(o,e,l)},p(o,l){if(l&18){t=Ct(o[1]);let r;for(r=0;r<t.length;r+=1){let a=Z0(o,t,r);n[r]?n[r].p(a,l):(n[r]=x0(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&&C(e),Ti(n,o)}}}function V5(i){let e,t,n=Ct(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=ep(X0(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"),hi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){S(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=Ct(l[6]);let a;for(a=0;a<n.length;a+=1){let s=X0(l,n,a);o[a]?o[a].p(s,r):(o[a]=ep(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&&hi(t,"font-size",l[4]+"px")},d(l){l&&C(e),Ti(o,l)}}}function L5(i){let e,t,n=K("subtitles_auto_caption")+"",o;return{c(){e=P("span"),t=P("span"),o=Me(n),c(t,"class","caption-segment svelte-ovfyp5"),hi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){S(l,e,r),m(e,t),m(t,o)},p(l,r){r&16&&hi(t,"font-size",l[4]+"px")},d(l){l&&C(e)}}}function x0(i){let e,t,n=i[16]+"",o,l;return{c(){e=P("span"),t=P("span"),o=Me(n),l=N(),c(t,"class","caption-segment svelte-ovfyp5"),hi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){S(r,e,a),m(e,t),m(t,o),m(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&Ke(o,n),a&16&&hi(t,"font-size",r[4]+"px")},d(r){r&&C(e)}}}function $0(i){let e=i[16]+"",t;return{c(){t=Me(e)},m(n,o){S(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ke(t,e)},d(n){n&&C(t)}}}function ep(i){let e,t=(!i[17]||i[17]<=i[2])&&$0(i);return{c(){t&&t.c(),e=ut()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=$0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&C(e),t&&t.d(n)}}}function R5(i){let e,t=i[1].length>0&&J0(i);return{c(){e=P("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){S(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=J0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&O(e,"shifted",n[0]),o&288&&O(e,"auto",n[5]&&!n[8])},i:_e,o:_e,d(n){n&&C(e),t&&t.d()}}}function B5(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=ot(),p=Ot(),h=f.state.currentSubtitle$;H(i,h,v=>t(12,n=v));let w=f.state.isAutoSubtitleCaptionVisible$;H(i,w,v=>t(8,o=v));let g,k,y,T,b;return Tt(()=>{b=window.setTimeout(()=>{w.set(!1)},p.autoSubtitlesTimeout)}),jn(()=>{window.clearTimeout(b)}),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,k=r.some(v=>v.type==="timestamp"));if(i.$$.dirty&2)e:t(6,y=r.reduce((v,{type:I,value:G})=>(I==="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,T=!!n.isAuto)},[l,r,a,u,g,k,y,T,o,h,w,s,n]}var cc=class extends U{constructor(e){super(),j(this,e,B5,R5,z,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},A5)}},cs=cc;function D5(i){Ce(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function tp(i){let e,t,n;return{c(){e=P("div"),t=Me("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Me(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,l){S(o,e,l),m(e,t),m(e,n)},p(o,l){l&2&&Ke(n,o[1])},d(o){o&&C(e)}}}function N5(i){let e,t,n,o,l,r,a=i[1]&&tp(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=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){S(s,e,u),m(e,t),m(e,n),a&&a.m(e,null),l||(r=de(e,"click",i[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=tp(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&&C(e),a&&a.d(),l=!1,r()}}}function q5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){Vn.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 fc=class extends U{constructor(e){super(),j(this,e,q5,N5,z,{thumbUrl:0,chromecastDeviceName:1},D5)}},fs=fc;function O5(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function F5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var dc=class extends U{constructor(e){super(),j(this,e,F5,O5,z,{})}},ip=dc;function H5(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 z5(i){let e,t,n;return t=new ip({}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){S(o,e,l),V(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&&C(e),L(t)}}}var mc=class extends U{constructor(e){super(),j(this,e,null,z5,z,{},H5)}},ds=mc;function U5(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 bl({}),{c(){e=P("div"),t=P("div"),n=P("div"),o=N(),R(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=K("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){S(p,e,h),m(e,t),m(t,n),m(t,o),V(l,t,null),s=!0,u||(f=[de(t,"keydown",i[3]),de(e,"click",st(function(){Ii(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(p,[h]){i=p,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&O(e,"hidden",i[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){_(l.$$.fragment,p),s=!1},d(p){p&&C(e),L(l),u=!1,et(f)}}}function j5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=ot().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 pc=class extends U{constructor(e){super(),j(this,e,j5,K5,z,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},U5)}get handlePressKey(){return this.$$.ctx[3]}},ms=pc;function W5(i){Ce(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
26
+ Audio: `),k=Ae(h),g=D(),b=Ae(w),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(T,v){S(T,e,v),m(e,i),m(e,n),m(e,o),m(o,l),m(o,a),m(o,s),m(o,f),m(o,p),m(o,k),m(o,g),m(o,b)},p(T,v){v&1&&r!==(r=(T[0].videoCodec||"")+"")&&Ke(a,r),v&1&&u!==(u=T[0].hdr?"(HDR)":"")&&Ke(f,u),v&1&&h!==(h=(T[0].audioCodec||"")+"")&&Ke(k,h),v&1&&w!==(w=T[0].audioLanguage?`(${T[0].audioLanguage})`:"")&&Ke(b,w)},d(T){T&&C(e)}}}function c1(t){let e,i,n,o,l=t[0].viewport+"",r;return{c(){e=I("div"),i=I("div"),i.textContent="Viewport",n=D(),o=I("span"),r=Ae(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].viewport+"")&&Ke(r,l)},d(a){a&&C(e)}}}function f1(t){let e,i,n,o,l=t[0].videoSize+"",r;return{c(){e=I("div"),i=I("div"),i.textContent="Video size",n=D(),o=I("span"),r=Ae(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].videoSize+"")&&Ke(r,l)},d(a){a&&C(e)}}}function d1(t){let e,i,n,o,l=t[0].cdn+"",r;return{c(){e=I("div"),i=I("div"),i.textContent="CDN host",n=D(),o=I("span"),r=Ae(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].cdn+"")&&Ke(r,l)},d(a){a&&C(e)}}}function m1(t){let e,i,n,o,l=t[0].volume+"",r,a;return{c(){e=I("div"),i=I("div"),i.textContent="Volume",n=D(),o=I("span"),r=Ae(l),a=Ae(" %"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),m(e,i),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].volume+"")&&Ke(r,l)},d(s){s&&C(e)}}}function p1(t){let e,i,n,o,l=t[0].buffer.toFixed(2)+"",r,a;return{c(){e=I("div"),i=I("div"),i.textContent="Buffer",n=D(),o=I("span"),r=Ae(l),a=Ae(" s"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),m(e,i),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].buffer.toFixed(2)+"")&&Ke(r,l)},d(s){s&&C(e)}}}function _1(t){let e,i,n,o,l=[{value:t[0].currentVideoSegmentLength,title:"Video:"},{value:t[0].currentAudioSegmentLength,title:"Audio:"}].filter(b1).map(v1).join(" & ")+"",r;return{c(){e=I("div"),i=I("div"),i.textContent="Segment",n=D(),o=I("span"),r=Ae(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),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(b1).map(v1).join(" & ")+"")&&Ke(r,l)},d(a){a&&C(e)}}}function h1(t){let e,i,n,o,l,r,a=t[0].speed.toFixed(2)+"",s,u,f;return o=new wr({props:{values:t[5]}}),{c(){e=I("div"),i=I("div"),i.textContent="Network",n=D(),R(o.$$.fragment),l=D(),r=I("span"),s=Ae(a),u=Ae(" Kbps"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){S(p,e,h),m(e,i),m(e,n),M(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let k={};h&32&&(k.values=p[5]),o.$set(k),(!f||h&1)&&a!==(a=p[0].speed.toFixed(2)+"")&&Ke(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&C(e),V(o)}}}function g1(t){let e,i,n,o,l,r,a=t[0].bitrate.toFixed(2)+"",s,u,f;return o=new wr({props:{values:t[6]}}),{c(){e=I("div"),i=I("div"),i.textContent="V bitrate",n=D(),R(o.$$.fragment),l=D(),r=I("span"),s=Ae(a),u=Ae(" Kbps"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){S(p,e,h),m(e,i),m(e,n),M(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let k={};h&64&&(k.values=p[6]),o.$set(k),(!f||h&1)&&a!==(a=p[0].bitrate.toFixed(2)+"")&&Ke(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&C(e),V(o)}}}function lh(t){let e,i,n,o,l,r,a,s,u=t[0].version+"",f,p,h,k,g,w,b,T,v,y,P,Z,N,z,re,se,O,J,E,X,Q,G,$,L,F,qe,ze,We,Xe,ve,Be,ee,ke,Ge,tt=t[0].id&&r1(t),it=t[0].vsid&&s1(t),we=t[0].provider&&a1(t),Re=(t[0].videoCodec||t[0].audioCodec)&&u1(t),Ze=t[0].viewport&&c1(t),Je=t[0].videoSize&&f1(t),Ce=t[0].cdn&&d1(t),ae=t[0].volume&&m1(t),He=t[0].buffer&&p1(t),me=(t[0].currentVideoSegmentLength||t[0].currentAudioSegmentLength)&&_1(t),le=t[0].speed&&h1(t),Ne=t[0].bitrate&&g1(t);return ze=new wr({props:{values:t[4]}}),{c(){e=I("div"),i=I("button"),i.textContent="[x]",n=D(),o=I("div"),l=I("div"),r=I("div"),r.textContent="Version",a=D(),s=I("span"),f=Ae(u),p=D(),tt&&tt.c(),h=D(),it&&it.c(),k=D(),we&&we.c(),g=D(),Re&&Re.c(),w=D(),Ze&&Ze.c(),b=D(),Je&&Je.c(),T=D(),Ce&&Ce.c(),v=D(),ae&&ae.c(),y=D(),He&&He.c(),P=D(),me&&me.c(),Z=D(),N=I("div"),z=I("div"),z.textContent="Dropped",re=D(),se=I("span"),O=Ae(t[2]),J=Ae(" / "),E=Ae(t[1]),X=Ae(" frames"),Q=D(),le&&le.c(),G=D(),Ne&&Ne.c(),$=D(),L=I("div"),F=I("div"),F.textContent="FPS",qe=D(),R(ze.$$.fragment),We=D(),Xe=I("span"),ve=Ae(t[3]),c(i,"class","close svelte-1fypj5i"),c(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(r,"class","svelte-1fypj5i"),c(l,"class","svelte-1fypj5i"),c(z,"class","svelte-1fypj5i"),c(N,"class","svelte-1fypj5i"),c(F,"class","svelte-1fypj5i"),c(L,"class","svelte-1fypj5i"),c(o,"class","content svelte-1fypj5i"),c(e,"class","container svelte-1fypj5i"),c(e,"role","region"),c(e,"aria-label",Be=j("aria_label_debug_panel")),q(e,"container-mobile",t[7])},m(Me,Qe){S(Me,e,Qe),m(e,i),m(e,n),m(e,o),m(o,l),m(l,r),m(l,a),m(l,s),m(s,f),m(o,p),tt&&tt.m(o,null),m(o,h),it&&it.m(o,null),m(o,k),we&&we.m(o,null),m(o,g),Re&&Re.m(o,null),m(o,w),Ze&&Ze.m(o,null),m(o,b),Je&&Je.m(o,null),m(o,T),Ce&&Ce.m(o,null),m(o,v),ae&&ae.m(o,null),m(o,y),He&&He.m(o,null),m(o,P),me&&me.m(o,null),m(o,Z),m(o,N),m(N,z),m(N,re),m(N,se),m(se,O),m(se,J),m(se,E),m(se,X),m(o,Q),le&&le.m(o,null),m(o,G),Ne&&Ne.m(o,null),m(o,$),m(o,L),m(L,F),m(L,qe),M(ze,L,null),m(L,We),m(L,Xe),m(Xe,ve),ee=!0,ke||(Ge=de(i,"click",st(t[9])),ke=!0)},p(Me,[Qe]){(!ee||Qe&1)&&u!==(u=Me[0].version+"")&&Ke(f,u),Me[0].id?tt?tt.p(Me,Qe):(tt=r1(Me),tt.c(),tt.m(o,h)):tt&&(tt.d(1),tt=null),Me[0].vsid?it?it.p(Me,Qe):(it=s1(Me),it.c(),it.m(o,k)):it&&(it.d(1),it=null),Me[0].provider?we?we.p(Me,Qe):(we=a1(Me),we.c(),we.m(o,g)):we&&(we.d(1),we=null),Me[0].videoCodec||Me[0].audioCodec?Re?Re.p(Me,Qe):(Re=u1(Me),Re.c(),Re.m(o,w)):Re&&(Re.d(1),Re=null),Me[0].viewport?Ze?Ze.p(Me,Qe):(Ze=c1(Me),Ze.c(),Ze.m(o,b)):Ze&&(Ze.d(1),Ze=null),Me[0].videoSize?Je?Je.p(Me,Qe):(Je=f1(Me),Je.c(),Je.m(o,T)):Je&&(Je.d(1),Je=null),Me[0].cdn?Ce?Ce.p(Me,Qe):(Ce=d1(Me),Ce.c(),Ce.m(o,v)):Ce&&(Ce.d(1),Ce=null),Me[0].volume?ae?ae.p(Me,Qe):(ae=m1(Me),ae.c(),ae.m(o,y)):ae&&(ae.d(1),ae=null),Me[0].buffer?He?He.p(Me,Qe):(He=p1(Me),He.c(),He.m(o,P)):He&&(He.d(1),He=null),Me[0].currentVideoSegmentLength||Me[0].currentAudioSegmentLength?me?me.p(Me,Qe):(me=_1(Me),me.c(),me.m(o,Z)):me&&(me.d(1),me=null),(!ee||Qe&4)&&Ke(O,Me[2]),(!ee||Qe&2)&&Ke(E,Me[1]),Me[0].speed?le?(le.p(Me,Qe),Qe&1&&d(le,1)):(le=h1(Me),le.c(),d(le,1),le.m(o,G)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),Me[0].bitrate?Ne?(Ne.p(Me,Qe),Qe&1&&d(Ne,1)):(Ne=g1(Me),Ne.c(),d(Ne,1),Ne.m(o,$)):Ne&&(ue(),_(Ne,1,1,()=>{Ne=null}),ce());let ot={};Qe&16&&(ot.values=Me[4]),ze.$set(ot),(!ee||Qe&8)&&Ke(ve,Me[3]),(!ee||Qe&128)&&q(e,"container-mobile",Me[7])},i(Me){ee||(d(le),d(Ne),d(ze.$$.fragment,Me),ee=!0)},o(Me){_(le),_(Ne),_(ze.$$.fragment,Me),ee=!1},d(Me){Me&&C(e),tt&&tt.d(),it&&it.d(),we&&we.d(),Re&&Re.d(),Ze&&Ze.d(),Je&&Je.d(),Ce&&Ce.d(),ae&&ae.d(),He&&He.d(),me&&me.d(),le&&le.d(),Ne&&Ne.d(),V(ze),ke=!1,Ge()}}}var b1=({value:t})=>t,v1=({value:t,title:e})=>`${e} ${((t??0)/1e3).toFixed(2)} s`;function rh(t,e,i){let n,o=nt(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;H(t,r,y=>i(7,n=y));let a=()=>{oa.safeStorage.remove(Rl),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,h=0,k=new _l(60),g=new _l(60),w=new _l(60),b=[],T=[],v=[];return At(()=>{oa.safeStorage.set(Rl,"true"),o.actions.internal.startLogging(),u&&(i(2,p=u.getVideoPlaybackQuality().droppedVideoFrames),i(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let y=window.setInterval(()=>{i(0,s=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){i(2,p=u.getVideoPlaybackQuality().droppedVideoFrames);let Z=u.getVideoPlaybackQuality().totalVideoFrames;i(3,h=Z-f),i(1,f=Z),k.push(h),s.speed&&g.push(s.speed),s.bitrate&&w.push(s.bitrate),i(4,b=k.getValuesFromBottom()),i(5,T=g.getValuesFromBottom()),i(6,v=w.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(y),P&&clearInterval(P)}}),[s,f,p,h,b,T,v,n,r,a]}var la=class extends K{constructor(e){super(),W(this,e,rh,lh,U,{},oh)}},Cr=la;function sh(t){Se(t,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function ah(t){let e,i,n;return{c(){e=I("div"),c(e,"class","close svelte-1ome55p")},m(o,l){S(o,e,l),i||(n=de(e,"click",st(t[0])),i=!0)},p:_e,i:_e,o:_e,d(o){o&&C(e),i=!1,n()}}}function uh(t){function e(i){An.call(this,t,i)}return[e]}var ra=class extends K{constructor(e){super(),W(this,e,uh,ah,U,{},sh)}},y1=ra;var k1=require("@vkontakte/videoplayer-shared");function ch(t){Se(t,"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)
27
+ }.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function fh(t){let e,i,n,o,l,r,a;return{c(){e=I("div"),i=I("canvas"),n=D(),o=B("svg"),l=B("g"),r=B("g"),a=B("path"),c(i,"class","timer-canvas svelte-8jhsry"),c(i,"width","100"),c(i,"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){S(s,e,u),m(e,i),t[2](i),m(e,n),m(e,o),m(o,l),m(l,r),m(r,a)},p:_e,i:_e,o:_e,d(s){s&&C(e),t[2](null)}}}var dh=5e3;function mh(t,e,i){let{onTimerEnded:n=k1.noop}=e,o;At(()=>{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)/dh;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),r=requestAnimationFrame(u)):n()};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r)}});function l(r){pe[r?"unshift":"push"](()=>{o=r,i(0,o)})}return t.$$set=r=>{"onTimerEnded"in r&&i(1,n=r.onTimerEnded)},[o,n,l]}var sa=class extends K{constructor(e){super(),W(this,e,mh,fh,U,{onTimerEnded:1},ch)}},w1=sa;function ph(t){Se(t,"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 C1(t){let e,i;return e=new w1({props:{onTimerEnded:t[2]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function _h(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y,P,Z;a=new y1({}),a.$on("click",t[4]);let N=t[3]&&C1(t);return{c(){e=I("div"),i=D(),n=I("div"),o=I("div"),l=I("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=D(),R(a.$$.fragment),s=D(),u=I("div"),f=I("div"),p=I("div"),h=I("div"),k=D(),N&&N.c(),w=D(),b=I("div"),T=I("div"),v=Ae(t[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('${t[1]}')`),c(f,"class","column svelte-kisfwc"),c(T,"class","title svelte-kisfwc"),c(b,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(z,re){S(z,e,re),S(z,i,re),S(z,n,re),m(n,o),m(o,l),m(o,r),M(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,k),N&&N.m(p,null),m(u,w),m(u,b),m(b,T),m(T,v),y=!0,P||(Z=de(u,"click",function(){Ii(t[2])&&t[2].apply(this,arguments)}),P=!0)},p(z,[re]){t=z,t[3]?N?(N.p(t,re),re&8&&d(N,1)):(N=C1(t),N.c(),d(N,1),N.m(p,null)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),(!y||re&2&&g!==(g=`background-image: url('${t[1]}')`))&&c(p,"style",g),(!y||re&1)&&Ke(v,t[0])},i(z){y||(d(a.$$.fragment,z),d(N),y=!0)},o(z){_(a.$$.fragment,z),_(N),y=!1},d(z){z&&(C(e),C(i),C(n)),V(a),N&&N.d(),P=!1,Z()}}}function hh(t,e,i){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,a=()=>i(3,r=!1);return t.$$set=s=>{"title"in s&&i(0,n=s.title),"thumb"in s&&i(1,o=s.thumb),"playNextVideo"in s&&i(2,l=s.playNextVideo)},[n,o,l,r,a]}var aa=class extends K{constructor(e){super(),W(this,e,hh,_h,U,{title:0,thumb:1,playNextVideo:2},ph)}},S1=aa;var ho=require("@vkontakte/videoplayer-core"),P1=require("@vkontakte/videoplayer-shared"),vn=require("@vkontakte/videoplayer-statistics");var ua=(t,e)=>Math.min(+(t+e).toFixed(2),1),ca=(t,e)=>Math.max(+(t-e).toFixed(2),0),Sr=(t,e,i)=>{let n=ua(e,i);e<1&&t.actions.internal.setVolume(n)},Pr=(t,e,i)=>{let n=ca(e,i);e>0&&t.actions.internal.setVolume(n)};var _o=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:n})=>t?(e?.(),!1):i?!0:(n?.(),!1);function bh(t){Se(t,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function vh(t){let e,i,n,o,l,r=t[26].default,a=Pe(r,t,t[25],null);return{c(){e=I("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",i=j("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),t[27](e),n=!0,o||(l=[de(e,"keyup",t[17]),de(e,"keydown",t[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&&C(e),a&&a.d(s),t[27](null),o=!1,et(l)}}}function yh(t,e,i){let n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,{$$slots:v={},$$scope:y}=e,{isAds:P}=e,{hideContextMenu:Z}=e,{toggleFullscreen:N}=e,{showHotKeyHelpers:z}=e,{showKeyMap:re}=e,{fakePlayButtonHandler:se}=e,O=nt(),J=Dt(),E=O.getLogger().createComponentLog("KeyboardControls component"),X=O.state.playbackState$;H(t,X,ye=>i(31,o=ye));let Q=O.ads.playbackState;H(t,Q,ye=>i(30,n=ye));let G=O.state.positionExact$;H(t,G,ye=>i(41,g=ye));let $=O.state.duration$;H(t,$,ye=>i(40,k=ye));let L=O.state.volume$;H(t,L,ye=>i(44,T=ye));let F=O.ui.controls.disabledControls$;H(t,F,ye=>i(39,h=ye));let qe=O.state.muted$;H(t,qe,ye=>i(34,a=ye));let ze=O.state.currentSubtitle$;H(t,ze,ye=>i(33,r=ye));let We=O.state.currentPlaybackRate$;H(t,We,ye=>i(42,w=ye));let Xe=O.state.availablePlaybackRates$;H(t,Xe,ye=>i(43,b=ye));let ve=O.ui.contextMenu.openedByHotKey$,Be=O.ui.contextMenu.lastActiveElem$,ee=O.ui.contextMenu.visible$,ke=O.ui.contextMenu.position$,Ge=O.state.isEnded$;H(t,Ge,ye=>i(36,u=ye));let tt=O.ui.overlayContainer$;H(t,tt,ye=>i(32,l=ye));let it=O.callbacks?.onAudioDoesNotExistHint,we=O.callbacks?.onAudioDisabledHint,Re=O.state.isAudioAvailable$;H(t,Re,ye=>i(35,s=ye));let Ze=O.state.isAudioDisabled,Je=O.state.isInteractiveTime$;H(t,Je,ye=>i(38,p=ye));let{showInteractiveTimeIndicatorTooltip$:Ce}=Fn();H(t,Ce,ye=>i(37,f=ye));let ae=0,He=!0,me,le=()=>me?.focus(),Ne=ye=>(ye!==He&&(He=ye,ae=0),ae+=1,(J.controls.seekStepKeyboard+J.controls.seekStepKeyboard*ae)/1e3),Me=ye=>{let ft=ye.target,yt=ft?.getAttribute("role")?.includes("menuitem"),ut=ft.classList.contains("btn"),mt=ye.code;if(ut&&mt==="Space")return;let Tt=nf.has(mt);if(yt&&Tt)return;let je=!tf.has(mt);if(ye.ctrlKey&&je||ye.altKey&&je||ye.metaKey)return;let ti=yt&&mt==="Escape";of.has(mt)||ti||Z();let Nt=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,Ct=P&&(n==="paused"||n==="playing"),ui=!Ct&&!h.has("TIMELINE");if(Nt||Ct)switch(E({message:`key down, code: ${mt}`}),mt){case"KeyJ":case"ArrowLeft":{if(!ui)break;if(ye.ctrlKey||ye.altKey){let rt=O.actions.internal.getPrevEpisode();O.actions.internal.seekToPrevEpisode(rt),rt&&z({type:"EPISODE_PREV",text:rt.text}),ye.preventDefault()}else{let rt=ye.shiftKey?Ne(!1):J.controls.seekStepKeyboard/1e3,kt=Math.max(g-rt,0);g>0&&(O.actions.internal.seekTime(kt,vn.SeekAction.DOUBLE_TAP),z({type:"BACKWARD_SEEK",text:rt.toString()}),ye.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ui)break;if(ye.ctrlKey||ye.altKey){let rt=O.actions.internal.getNextEpisode();O.actions.internal.seekToNextEpisode(rt),rt&&z({type:"EPISODE_NEXT",text:rt.text}),ye.preventDefault()}else{let rt=ye.shiftKey?Ne(!0):J.controls.seekStepKeyboard/1e3,kt=Math.min(g+rt,k);Math.round(g)<Math.round(k)&&(O.actions.internal.seekTime(kt,vn.SeekAction.DOUBLE_TAP),z({type:"FORWARD_SEEK",text:rt.toString()}),ye.preventDefault())}break}case"ArrowUp":{if(_o({isAudioDisabled:Ze,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:it})){let rt=T,kt=J.controls.volumeStepKeyboard,he=rt<=1;if(Sr(O,rt,kt),he){let gt=Math.round(ua(rt,kt)*100).toString();z({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gt}})}}ye.preventDefault();break}case"ArrowDown":{if(_o({isAudioDisabled:Ze,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:it})){let rt=T,kt=J.controls.volumeStepKeyboard,he=rt>=0;if(Pr(O,rt,kt),he){let gt=Math.round(ca(rt,kt)*100).toString();z({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gt}})}}ye.preventDefault();break}case"Comma":{if(ye.shiftKey){O.actions.internal.decrementPlaybackRate();let rt=b.find(kt=>kt.value===w);z({type:"RATE_DOWN",text:rt?.displayValue}),ye.preventDefault()}else{if(Ct||o!==ho.PlaybackState.PAUSED)break;let rt=Math.max(g-J.controls.seekStepFrame/1e3,0);g>0&&(z({type:"BACKWARD_SEEK"}),O.actions.internal.clearDelayedBufferingCheckTimeout(),O.actions.internal.seekTime(rt,vn.SeekAction.DOUBLE_TAP),ye.preventDefault())}break}case"Period":{if(ye.shiftKey){O.actions.internal.incrementPlaybackRate();let rt=b.find(kt=>kt.value===w);z({type:"RATE_UP",text:rt?.displayValue}),ye.preventDefault()}else{if(Ct||o!==ho.PlaybackState.PAUSED)break;let rt=Math.min(g+J.controls.seekStepFrame/1e3,k);g<k&&(z({type:"FORWARD_SEEK"}),O.actions.internal.clearDelayedBufferingCheckTimeout(),O.actions.internal.seekTime(rt,vn.SeekAction.DOUBLE_TAP),ye.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&Ce.set(!1),se)se();else{O.actions.internal.togglePlay();let rt="PLAY";o===ho.PlaybackState.PAUSED?rt="PAUSE":u&&(rt="REPLAY"),z({type:rt})}ye.preventDefault();break;case"KeyM":{_o({isAudioDisabled:Ze,audioDisabledHintCallback:we,isAudioAvailable:s,audioIsNotExistHintCallback:it})&&(z({type:a?"VOLUME":"MUTE"}),O.actions.internal.toggleMuted()),ye.preventDefault();break}case"KeyF":N(),ye.preventDefault();break;case"KeyC":O.actions.internal.toggleSubtitle(),r.value!=="off"?z({type:"SUBTITLES_ON",text:r?.displayValue}):z({type:"SUBTITLES_OFF"}),ye.preventDefault();break;case"KeyI":O.actions.internal.togglePictureInPicture(),ye.preventDefault();break;case"Digit1":case"Numpad1":if(ye.shiftKey){let rt=$f(l);ke.set(rt),Be.set(ft),ve.set(!0),ee.set(!0),ye.preventDefault();break}z(),O.actions.internal.seekToPercent(.1,vn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit2":case"Numpad2":z(),O.actions.internal.seekToPercent(.2,vn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit3":case"Numpad3":z(),O.actions.internal.seekToPercent(.3,vn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit4":case"Numpad4":z(),O.actions.internal.seekToPercent(.4,vn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit5":case"Numpad5":z(),O.actions.internal.seekToPercent(.5,vn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit6":case"Numpad6":z(),O.actions.internal.seekToPercent(.6,vn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit7":case"Numpad7":z(),O.actions.internal.seekToPercent(.7,vn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit8":case"Numpad8":z(),O.actions.internal.seekToPercent(.8,vn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit9":case"Numpad9":z(),O.actions.internal.seekToPercent(.9,vn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Digit0":case"Numpad0":z(),O.actions.internal.seekToPercent(0,vn.SeekAction.DOUBLE_TAP),ye.preventDefault();break;case"Slash":{ye.shiftKey&&J.features.hotKeyMapModal&&(re(),ye.preventDefault());break}case"ShiftLeft":case"ShiftRight":ye.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,P1.checkNever)(mt);break}},Qe=ye=>{let ft=ye.code;if(ye.ctrlKey||ye.altKey||ye.metaKey)return;let yt=o===ho.PlaybackState.PLAYING||o===ho.PlaybackState.PAUSED,ut=P&&(n==="paused"||n==="playing");if(yt||ut)switch(ft){case"ShiftLeft":case"ShiftRight":ae=0;break}};function ot(ye){pe[ye?"unshift":"push"](()=>{me=ye,i(0,me)})}return t.$$set=ye=>{"isAds"in ye&&i(18,P=ye.isAds),"hideContextMenu"in ye&&i(19,Z=ye.hideContextMenu),"toggleFullscreen"in ye&&i(20,N=ye.toggleFullscreen),"showHotKeyHelpers"in ye&&i(21,z=ye.showHotKeyHelpers),"showKeyMap"in ye&&i(22,re=ye.showKeyMap),"fakePlayButtonHandler"in ye&&i(23,se=ye.fakePlayButtonHandler),"$$scope"in ye&&i(25,y=ye.$$scope)},[me,X,Q,G,$,L,F,qe,ze,We,Xe,Ge,tt,Re,Je,Ce,Me,Qe,P,Z,N,z,re,se,le,y,v,ot]}var fa=class extends K{constructor(e){super(),W(this,e,yh,vh,U,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},bh,[-1,-1])}get focus(){return this.$$.ctx[24]}},I1=fa;function kh(t){Se(t,"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 wh(t){let e;return{c(){e=I("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',c(e,"class","container svelte-8nkw5s")},m(i,n){S(i,e,n)},p:_e,i:_e,o:_e,d(i){i&&C(e)}}}var da=class extends K{constructor(e){super(),W(this,e,null,wh,U,{},kh)}},Ir=da;function Ch(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w=t[2].default,b=Pe(w,t,t[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"},t[0]],v={};for(let y=0;y<T.length;y+=1)v=oe(v,T[y]);return{c(){e=B("svg"),b&&b.c(),i=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(i,"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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2422_111980"),c(k,"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,v)},m(y,P){S(y,e,P),b&&b.m(e,null),m(e,i),m(i,n),m(i,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,k),g=!0},p(y,[P]){b&&b.p&&(!g||P&2)&&Te(b,w,y,y[1],g?Ie(w,y[1],P,null):Ee(y[1]),null),be(e,v=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},P&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&C(e),b&&b.d(y)}}}function Sh(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ma=class extends K{constructor(e){super(),W(this,e,Sh,Ch,U,{})}},T1=ma;var Xn=require("@vkontakte/videoplayer-shared");function Ph(t){Se(t,"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 Ih(t){let e,i,n,o,l,r,a,s,u,f,p,h,k=t[14].default,g=Pe(k,t,t[13],null);return{c(){e=I("button"),g&&g.c(),c(e,"class",i="btn "+t[1]+" svelte-1anemql"),c(e,"style",n=t[2]||null),e.disabled=o=t[3]??null,c(e,"aria-hidden",l=t[5]??null),c(e,"aria-label",r=t[6]??null),c(e,"aria-keyshortcuts",a=t[7]??null),c(e,"aria-expanded",s=t[8]??null),c(e,"data-testid",u=t[4]??null),c(e,"tabindex",t[9])},m(w,b){S(w,e,b),g&&g.m(e,null),t[16](e),f=!0,p||(h=[de(e,"pointerdown",st(Et(t[15]))),de(e,"click",st(Et(function(){Ii(t[10]===Xn.noop?null:t[10])&&(t[10]===Xn.noop?null:t[10]).apply(this,arguments)}))),de(e,"focus",Et(function(){Ii(t[11]===Xn.noop?null:t[11])&&(t[11]===Xn.noop?null:t[11]).apply(this,arguments)})),de(e,"blur",Et(function(){Ii(t[12]===Xn.noop?null:t[12])&&(t[12]===Xn.noop?null:t[12]).apply(this,arguments)}))],p=!0)},p(w,[b]){t=w,g&&g.p&&(!f||b&8192)&&Te(g,k,t,t[13],f?Ie(k,t[13],b,null):Ee(t[13]),null),(!f||b&2&&i!==(i="btn "+t[1]+" svelte-1anemql"))&&c(e,"class",i),(!f||b&4&&n!==(n=t[2]||null))&&c(e,"style",n),(!f||b&8&&o!==(o=t[3]??null))&&(e.disabled=o),(!f||b&32&&l!==(l=t[5]??null))&&c(e,"aria-hidden",l),(!f||b&64&&r!==(r=t[6]??null))&&c(e,"aria-label",r),(!f||b&128&&a!==(a=t[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||b&256&&s!==(s=t[8]??null))&&c(e,"aria-expanded",s),(!f||b&16&&u!==(u=t[4]??null))&&c(e,"data-testid",u),(!f||b&512)&&c(e,"tabindex",t[9])},i(w){f||(d(g,w),f=!0)},o(w){_(g,w),f=!1},d(w){w&&C(e),g&&g.d(w),t[16](null),p=!1,et(h)}}}function Th(t,e,i){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:k=void 0}=e,{tabIndex:g=0}=e,{click:w=Xn.noop}=e,{focus:b=Xn.noop}=e,{blur:T=Xn.noop}=e;function v(P){An.call(this,t,P)}function y(P){pe[P?"unshift":"push"](()=>{p=P,i(0,p)})}return t.$$set=P=>{"className"in P&&i(1,l=P.className),"style"in P&&i(2,r=P.style),"disabled"in P&&i(3,a=P.disabled),"testId"in P&&i(4,s=P.testId),"ariaHidden"in P&&i(5,u=P.ariaHidden),"ariaLabel"in P&&i(6,f=P.ariaLabel),"ref"in P&&i(0,p=P.ref),"ariaKeyShortCut"in P&&i(7,h=P.ariaKeyShortCut),"ariaExpanded"in P&&i(8,k=P.ariaExpanded),"tabIndex"in P&&i(9,g=P.tabIndex),"click"in P&&i(10,w=P.click),"focus"in P&&i(11,b=P.focus),"blur"in P&&i(12,T=P.blur),"$$scope"in P&&i(13,o=P.$$scope)},[p,l,r,a,s,u,f,h,k,g,w,b,T,o,n,v,y]}var pa=class extends K{constructor(e){super(),W(this,e,Th,Ih,U,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},Ph)}},ht=pa;function Eh(t){Se(t,"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 E1(t){let e,i,n,o,l,r=t[2]&&A1(t);return{c(){e=I("div"),i=I("h3"),n=Ae(t[3]),o=D(),r&&r.c(),c(i,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){S(a,e,s),m(e,i),m(i,n),m(e,o),r&&r.m(e,null),l=!0},p(a,s){(!l||s&8)&&Ke(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=A1(a),r.c(),d(r,1),r.m(e,null)):r&&(ue(),_(r,1,1,()=>{r=null}),ce())},i(a){l||(d(r),l=!0)},o(a){_(r),l=!1},d(a){a&&C(e),r&&r.d()}}}function A1(t){let e,i;return e=new ht({props:{click:t[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[Ah]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Ah(t){let e,i;return e=new T1({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Mh(t){let e,i,n,o,l,r,a=t[1]&&E1(t),s=t[4].default,u=Pe(s,t,t[5],null);return{c(){e=I("div"),i=I("div"),a&&a.c(),n=D(),o=I("div"),l=I("div"),u&&u.c(),c(l,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(i,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,p){S(f,e,p),m(e,i),a&&a.m(i,null),m(i,n),m(i,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=E1(f),a.c(),d(a,1),a.m(i,n)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),u&&u.p&&(!r||p&32)&&Te(u,s,f,f[5],r?Ie(s,f[5],p,null):Ee(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){_(a),_(u,f),r=!1},d(f){f&&C(e),a&&a.d(),u&&u.d(f)}}}function Vh(t,e,i){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return t.$$set=u=>{"onClose"in u&&i(0,l=u.onClose),"showHeader"in u&&i(1,r=u.showHeader),"showCloseCross"in u&&i(2,a=u.showCloseCross),"title"in u&&i(3,s=u.title),"$$scope"in u&&i(5,o=u.$$scope)},[l,r,a,s,n,o]}var _a=class extends K{constructor(e){super(),W(this,e,Vh,Mh,U,{onClose:0,showHeader:1,showCloseCross:2,title:3},Eh)}},M1=_a;var Lh=new Set(["BR"]),ha=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),n=i.length;for(;n--;){let o=i[n],l=o.tagName;Lh.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function Rh(t){Se(t,"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 V1(t,e,i){let n=t.slice();return n[5]=e[i].title,n[6]=e[i].items,n}function L1(t,e,i){let n=t.slice();return n[9]=e[i].description,n[10]=e[i].value,n}function R1(t){let e,i,n=ha(t[9])+"",o,l,r=t[10]+"",a,s;return{c(){e=I("li"),i=I("span"),o=D(),l=I("span"),a=Ae(r),s=D(),c(i,"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){S(u,e,f),m(e,i),i.innerHTML=n,m(e,o),m(e,l),m(l,a),m(e,s)},p(u,f){f&1&&n!==(n=ha(u[9])+"")&&(i.innerHTML=n),f&1&&r!==(r=u[10]+"")&&Ke(a,r)},d(u){u&&C(e)}}}function B1(t){let e,i,n=t[5]+"",o,l,r,a,s=wt(t[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=R1(L1(t,s,f));return{c(){e=I("div"),i=I("h5"),o=Ae(n),l=D(),r=I("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=D(),c(i,"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){S(f,e,p),m(e,i),m(i,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]+"")&&Ke(o,n),p&1){s=wt(f[6]);let h;for(h=0;h<s.length;h+=1){let k=L1(f,s,h);u[h]?u[h].p(k,p):(u[h]=R1(k),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&&C(e),Ti(u,f)}}}function Bh(t){let e,i=wt(t[0].groups),n=[];for(let o=0;o<i.length;o+=1)n[o]=B1(V1(t,i,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,l){S(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){i=wt(o[0].groups);let r;for(r=0;r<i.length;r+=1){let a=V1(o,i,r);n[r]?n[r].p(a,l):(n[r]=B1(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},d(o){o&&C(e),Ti(n,o)}}}function Dh(t){let e,i;return e=new M1({props:{title:t[0].title,onClose:t[2],$$slots:{default:[Bh]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Nh(t,e,i){let n,o=nt(),{data:l,show:r}=o.ui.modals.hotKeyMap;return H(t,l,s=>i(0,n=s)),[n,l,()=>{r.set(!1)}]}var ga=class extends K{constructor(e){super(),W(this,e,Nh,Dh,U,{},Rh)}},D1=ga;var rs=require("@vkontakte/videoplayer-shared");var jo=require("@vkontakte/videoplayer-core");var Ad=require("@vkontakte/videoplayer-core");var zo={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:"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"},N1={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"};var qh=t=>zo[t]??zo[N1[t]]??void 0,Tr=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),io=(t,e)=>{if(!t)return"";let{language:i,label:n}=t,o;if(i==="und"?o=void 0:i&&(o=qh(i)??i),n&&i&&o){let r=e.filter(a=>a.label===n&&a.language===i);if(r.length===1)return j("audio_stream_display_language_label",{language:o,label:n});{let a=Tr(t,r);return j("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let r=e.filter(a=>a.label===n);if(r.length===1)return n;{let a=Tr(t,r);return j("audio_stream_display_label_index",{label:n,index:a})}}if(i&&o){let r=e.filter(a=>a.language===i);if(r.length===1)return o;{let a=Tr(t,r);return j("audio_stream_display_language_index",{language:o,index:a})}}let l=Tr(t,e);return j("audio_stream_display_unknown",{index:l})};var Vw=require("@vkontakte/videoplayer-shared");function Oh(t){Se(t,"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 Fh(t){let e,i,n=t[1].default,o=Pe(n,t,t[0],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(l,r){S(l,e,r),o&&o.m(e,null),i=!0},p(l,[r]){o&&o.p&&(!i||r&1)&&Te(o,n,l,l[0],i?Ie(n,l[0],r,null):Ee(l[0]),null)},i(l){i||(d(o,l),i=!0)},o(l){_(o,l),i=!1},d(l){l&&C(e),o&&o.d(l)}}}function Hh(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{"$$scope"in l&&i(0,o=l.$$scope)},[o,n]}var ba=class extends K{constructor(e){super(),W(this,e,Hh,Fh,U,{},Oh)}},q1=ba;var hl=require("@vkontakte/videoplayer-core");function zh(t){let e,i,n,o,l=t[2].default,r=Pe(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),i=B("path"),n=B("path"),c(i,"fill","currentColor"),c(i,"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){S(u,e,f),r&&r.m(e,null),m(e,i),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=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function Uh(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var va=class extends K{constructor(e){super(),W(this,e,Uh,zh,U,{})}},O1=va;function Kh(t){let e,i,n,o,l=t[2].default,r=Pe(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),i=B("path"),n=B("path"),c(i,"fill","currentColor"),c(i,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.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){S(u,e,f),r&&r.m(e,null),m(e,i),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=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function jh(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ya=class extends K{constructor(e){super(),W(this,e,jh,Kh,U,{})}},F1=ya;function Wh(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","currentColor"),c(i,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.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){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function Gh(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ka=class extends K{constructor(e){super(),W(this,e,Gh,Wh,U,{})}},H1=ka;function Qh(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","currentColor"),c(i,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.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){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function Yh(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var wa=class extends K{constructor(e){super(),W(this,e,Yh,Qh,U,{})}},Er=wa;function Zh(t){let e,i,n,o,l=t[2].default,r=Pe(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),i=B("path"),n=B("path"),c(i,"fill","currentColor"),c(i,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.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){S(u,e,f),r&&r.m(e,null),m(e,i),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=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function Xh(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ca=class extends K{constructor(e){super(),W(this,e,Xh,Zh,U,{})}},Ar=Ca;var go=t=>{switch(t){case hl.VideoQuality.Q_720P:return H1;case hl.VideoQuality.Q_1080P:return Er;case hl.VideoQuality.Q_1440P:return Ar;case hl.VideoQuality.Q_2160P:return O1;case hl.VideoQuality.Q_4320P:return F1}};function Jh(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"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){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function xh(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Sa=class extends K{constructor(e){super(),W(this,e,xh,Jh,U,{})}},z1=Sa;function $h(t){let e,i,n,o,l=t[2].default,r=Pe(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),i=B("path"),n=B("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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(i,"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){S(u,e,f),r&&r.m(e,null),m(e,i),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=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function eg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Pa=class extends K{constructor(e){super(),W(this,e,eg,$h,U,{})}},U1=Pa;function tg(t){Se(t,"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 ig(t){let e,i,n,o,l=t[1]&&K1(t);return n=new U1({props:{"data-testid":t[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=I("div"),l&&l.c(),i=D(),R(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),q(e,"triple",t[2])},m(r,a){S(r,e,a),l&&l.m(e,null),m(e,i),M(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=K1(r),l.c(),d(l,1),l.m(e,i)):l&&(ue(),_(l,1,1,()=>{l=null}),ce());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&q(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&&C(e),l&&l.d(),V(n)}}}function ng(t){let e,i;return e=new z1({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p:_e,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function K1(t){let e,i;return e=new q1({props:{$$slots:{default:[og]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function og(t){let e,i,n;var o=t[1];function l(r){return{}}return o&&(e=Cn(o,l(t))),{c(){e&&R(e.$$.fragment),i=at()},m(r,a){e&&M(e,r,a),S(r,i,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){ue();let s=e;_(s.$$.fragment,1,0,()=>{V(s,1)}),ce()}o?(e=Cn(o,l(r)),R(e.$$.fragment),d(e.$$.fragment,1),M(e,i.parentNode,i)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&_(e.$$.fragment,r),n=!1},d(r){r&&C(i),e&&V(e,r)}}}function lg(t){let e,i,n,o,l=[ng,ig],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=at()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&C(n),r[e].d(s)}}}function rg(t,e,i){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return t.$$set=a=>{"isMobile"in a&&i(0,o=a.isMobile),"currentQuality"in a&&i(3,l=a.currentQuality)},t.$$.update=()=>{if(t.$$.dirty&8)e:i(1,n=go(l));if(t.$$.dirty&2)e:i(2,r=!!n&&[Er,Ar].includes(n))},[o,n,r,l]}var Ia=class extends K{constructor(e){super(),W(this,e,rg,lg,U,{isMobile:0,currentQuality:3},tg)}},Mr=Ia;function sg(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"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){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function ag(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ta=class extends K{constructor(e){super(),W(this,e,ag,sg,U,{})}},Vr=Ta;function ug(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 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(i,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function cg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ea=class extends K{constructor(e){super(),W(this,e,cg,ug,U,{})}},j1=Ea;function fg(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.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(i,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function dg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Aa=class extends K{constructor(e){super(),W(this,e,dg,fg,U,{})}},W1=Aa;function mg(t){let e,i,n,o,l,r=t[2].default,a=Pe(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),i=B("g"),n=B("path"),o=B("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(i,"fill","none"),c(i,"fill-rule","evenodd"),be(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,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=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){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&C(e),a&&a.d(f)}}}function pg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ma=class extends K{constructor(e){super(),W(this,e,pg,mg,U,{})}},G1=Ma;function _g(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&C(e),l&&l.d(s)}}}function hg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Va=class extends K{constructor(e){super(),W(this,e,hg,_g,U,{})}},Q1=Va;function gg(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"fill-opacity",".72"),c(i,"fill-rule","evenodd"),c(i,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),c(i,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function bg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var La=class extends K{constructor(e){super(),W(this,e,bg,gg,U,{})}},Y1=La;function vg(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function yg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ra=class extends K{constructor(e){super(),W(this,e,yg,vg,U,{})}},Z1=Ra;function kg(t){let e,i;return e=new Z1({props:{style:t[2],"data-testid":t[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function wg(t){let e,i;return e=new Y1({props:{style:t[2],"data-testid":t[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Cg(t){let e,i,n,o,l=[wg,kg],r=[];function a(s,u){return s[1]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=at()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&C(n),r[e].d(s)}}}function Sg(t,e,i){let n,{direction:o="left"}=e,l,r;return t.$$set=a=>{"direction"in a&&i(3,o=a.direction)},t.$$.update=()=>{if(t.$$.dirty&8)e:i(1,l=["up","down"].includes(o)),i(0,r=["right","down"].includes(o));if(t.$$.dirty&1)e:i(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var Ba=class extends K{constructor(e){super(),W(this,e,Sg,Cg,U,{direction:3})}},Qn=Ba;function Pg(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.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(i,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function Ig(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Da=class extends K{constructor(e){super(),W(this,e,Ig,Pg,U,{})}},X1=Da;function Tg(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function Eg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Na=class extends K{constructor(e){super(),W(this,e,Eg,Tg,U,{})}},Uo=Na;function Ag(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 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(i,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function Mg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var qa=class extends K{constructor(e){super(),W(this,e,Mg,Ag,U,{})}},J1=qa;function Vg(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"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){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function Lg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Oa=class extends K{constructor(e){super(),W(this,e,Lg,Vg,U,{})}},x1=Oa;function Rg(t){Se(t,"svelte-1h807jq","ul.svelte-1h807jq.svelte-1h807jq{margin:0;padding:0}.menu.svelte-1h807jq.svelte-1h807jq{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-1h807jq.svelte-1h807jq{width:100%}.menu-desktop.svelte-1h807jq.svelte-1h807jq{position:absolute;right:0;bottom:0}.menu-mobile.svelte-1h807jq.svelte-1h807jq{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-1h807jq.svelte-1h807jq{display:none}.menu-subList.svelte-1h807jq.svelte-1h807jq{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-1h807jq.svelte-1h807jq{min-width:164px}.menu-subList-traffic-saving.svelte-1h807jq.svelte-1h807jq{min-width:286px}.item.svelte-1h807jq.svelte-1h807jq{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-1h807jq.svelte-1h807jq{padding:0 14px}.item-quality.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-traffic-saving.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{flex-direction:row-reverse}.item-helper-text.svelte-1h807jq.svelte-1h807jq{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-1h807jq span.svelte-1h807jq{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:7px 14px}.item-helper-text.item-mobile.svelte-1h807jq span.svelte-1h807jq{text-align:start}.submenu-value.svelte-1h807jq.svelte-1h807jq{overflow:hidden;;;text-overflow:ellipsis}.submenu-value-mobile.svelte-1h807jq.svelte-1h807jq{flex-grow:1}.item.svelte-1h807jq.svelte-1h807jq:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-1h807jq.svelte-1h807jq:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-1h807jq.svelte-1h807jq:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-1h807jq.svelte-1h807jq:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-1h807jq.svelte-1h807jq{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-1h807jq.svelte-1h807jq{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-1h807jq.svelte-1h807jq{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}.menu-valueIcon.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-1h807jq svg,.menu-valueIcon-list.svelte-1h807jq svg{color:var(--blue-light)}.menu-divider.svelte-1h807jq.svelte-1h807jq{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-1h807jq.svelte-1h807jq{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex}.itemIcon.svelte-1h807jq.svelte-1h807jq{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar{width:8px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-1h807jq.svelte-1h807jq{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-1h807jq.svelte-1h807jq{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1h807jq.svelte-1h807jq:before,.close.svelte-1h807jq.svelte-1h807jq:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1h807jq.svelte-1h807jq:before{transform:rotate(45deg)}.close.svelte-1h807jq.svelte-1h807jq:after{transform:rotate(-45deg)}")}function $1(t,e,i){let n=t.slice();return n[163]=e[i],n}function ed(t,e,i){let n=t.slice();return n[166]=e[i],n}function td(t,e,i){let n=t.slice();return n[169]=e[i],n}function id(t,e,i){let n=t.slice();return n[172]=e[i],n}function nd(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g=t[40]&&od(t),w=t[30]&&ld(t),b=t[29]&&sd(t),T=t[28]&&ad(t),v=t[27]&&ud(t),y=t[26]&&cd(t),P=t[25]&&fd(t),Z=t[40]&&dd(t);return{c(){e=I("div"),g&&g.c(),i=D(),n=I("ul"),w&&w.c(),o=D(),b&&b.c(),l=D(),T&&T.c(),r=D(),v&&v.c(),a=D(),y&&y.c(),s=D(),P&&P.c(),u=D(),Z&&Z.c(),c(n,"class","items svelte-1h807jq"),c(n,"role","menu"),c(n,"style",f=t[84]()),q(n,"items-mobile",t[40]),c(e,"class","menu svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40]),q(e,"hidden",!t[13])},m(N,z){S(N,e,z),g&&g.m(e,null),m(e,i),m(e,n),w&&w.m(n,null),m(n,o),b&&b.m(n,null),m(n,l),T&&T.m(n,null),m(n,r),v&&v.m(n,null),m(n,a),y&&y.m(n,null),m(n,s),P&&P.m(n,null),m(n,u),Z&&Z.m(n,null),t[129](n),p=!0,h||(k=[de(e,"keydown",t[90]),de(e,"mouseenter",t[82]),de(e,"mouseleave",t[83])],h=!0)},p(N,z){N[40]?g?g.p(N,z):(g=od(N),g.c(),g.m(e,i)):g&&(g.d(1),g=null),N[30]?w?(w.p(N,z),z[0]&1073741824&&d(w,1)):(w=ld(N),w.c(),d(w,1),w.m(n,o)):w&&(ue(),_(w,1,1,()=>{w=null}),ce()),N[29]?b?(b.p(N,z),z[0]&536870912&&d(b,1)):(b=sd(N),b.c(),d(b,1),b.m(n,l)):b&&(ue(),_(b,1,1,()=>{b=null}),ce()),N[28]?T?(T.p(N,z),z[0]&268435456&&d(T,1)):(T=ad(N),T.c(),d(T,1),T.m(n,r)):T&&(ue(),_(T,1,1,()=>{T=null}),ce()),N[27]?v?(v.p(N,z),z[0]&134217728&&d(v,1)):(v=ud(N),v.c(),d(v,1),v.m(n,a)):v&&(ue(),_(v,1,1,()=>{v=null}),ce()),N[26]?y?(y.p(N,z),z[0]&67108864&&d(y,1)):(y=cd(N),y.c(),d(y,1),y.m(n,s)):y&&(ue(),_(y,1,1,()=>{y=null}),ce()),N[25]?P?(P.p(N,z),z[0]&33554432&&d(P,1)):(P=fd(N),P.c(),d(P,1),P.m(n,u)):P&&(ue(),_(P,1,1,()=>{P=null}),ce()),N[40]?Z?(Z.p(N,z),z[1]&512&&d(Z,1)):(Z=dd(N),Z.c(),d(Z,1),Z.m(n,null)):Z&&(ue(),_(Z,1,1,()=>{Z=null}),ce()),(!p||z[1]&512)&&q(n,"items-mobile",N[40]),(!p||z[1]&512)&&q(e,"menu-desktop",!N[40]),(!p||z[1]&512)&&q(e,"menu-mobile",N[40]),(!p||z[0]&8192)&&q(e,"hidden",!N[13])},i(N){p||(d(w),d(b),d(T),d(v),d(y),d(P),d(Z),p=!0)},o(N){_(w),_(b),_(T),_(v),_(y),_(P),_(Z),p=!1},d(N){N&&C(e),g&&g.d(),w&&w.d(),b&&b.d(),T&&T.d(),v&&v.d(),y&&y.d(),P&&P.d(),Z&&Z.d(),t[129](null),h=!1,et(k)}}}function od(t){let e,i,n,o,l,r,a,s;return{c(){e=I("div"),i=I("div"),i.textContent=`${j("submenu_settings")}`,n=D(),o=I("div"),l=D(),r=I("div"),c(o,"class","close svelte-1h807jq"),c(e,"class","item menu-header svelte-1h807jq"),q(e,"item-mobile",t[40]),c(r,"class","menu-divider svelte-1h807jq")},m(u,f){S(u,e,f),m(e,i),m(e,n),m(e,o),S(u,l,f),S(u,r,f),a||(s=de(o,"click",st(t[66])),a=!0)},p(u,f){f[1]&512&&q(e,"item-mobile",u[40])},d(u){u&&(C(e),C(l),C(r)),a=!1,s()}}}function ld(t){let e,i,n,o,l,r,a,s,u,f,p,h,k;n=new Mr({});let g=t[39]&&!t[40]&&rd(t);return{c(){e=I("li"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("menu_quality")}`,r=D(),a=I("div"),s=Ae(t[19]),u=D(),g&&g.c(),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=j("aria_label_menu_quality",{actual:t[32]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",t[40])},m(w,b){S(w,e,b),m(e,i),M(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),g&&g.m(a,null),t[124](e),p=!0,h||(k=[de(e,"click",st(t[67])),de(e,"keydown",t[91])],h=!0)},p(w,b){(!p||b[0]&524288)&&Ke(s,w[19]),w[39]&&!w[40]?g?(g.p(w,b),b[1]&768&&d(g,1)):(g=rd(w),g.c(),d(g,1),g.m(a,null)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),(!p||b[1]&2&&f!==(f=j("aria_label_menu_quality",{actual:w[32]})))&&c(e,"aria-label",f),(!p||b[1]&512)&&q(e,"item-mobile",w[40])},i(w){p||(d(n.$$.fragment,w),d(g),p=!0)},o(w){_(n.$$.fragment,w),_(g),p=!1},d(w){w&&C(e),V(n),g&&g.d(),t[124](null),h=!1,et(k)}}}function rd(t){let e,i,n;var o=t[39];function l(r){return{}}return o&&(i=Cn(o,l(t))),{c(){e=I("div"),i&&R(i.$$.fragment),c(e,"class","menu-valueIcon svelte-1h807jq")},m(r,a){S(r,e,a),i&&M(i,e,null),n=!0},p(r,a){if(a[1]&256&&o!==(o=r[39])){if(i){ue();let s=i;_(s.$$.fragment,1,0,()=>{V(s,1)}),ce()}o?(i=Cn(o,l(r)),R(i.$$.fragment),d(i.$$.fragment,1),M(i,e,null)):i=null}},i(r){n||(i&&d(i.$$.fragment,r),n=!0)},o(r){i&&_(i.$$.fragment,r),n=!1},d(r){r&&C(e),i&&V(i)}}}function sd(t){let e,i,n,o,l,r,a,s=io(t[41],t[9])+"",u,f,p,h,k;return n=new Q1({}),{c(){e=I("li"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("menu_audio_languages")}`,r=D(),a=I("div"),u=Ae(s),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=j("aria_label_menu_audio_languages",{actual:io(t[41],t[9])})),c(e,"aria-haspopup","true"),q(e,"item-mobile",t[40])},m(g,w){S(g,e,w),m(e,i),M(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),t[125](e),p=!0,h||(k=[de(e,"click",st(t[68])),de(e,"keydown",t[92])],h=!0)},p(g,w){(!p||w[0]&512|w[1]&1024)&&s!==(s=io(g[41],g[9])+"")&&Ke(u,s),(!p||w[0]&512|w[1]&1024&&f!==(f=j("aria_label_menu_audio_languages",{actual:io(g[41],g[9])})))&&c(e,"aria-label",f),(!p||w[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),V(n),t[125](null),h=!1,et(k)}}}function ad(t){let e,i,n,o,l,r,a,s,u,f,p,h,k;return n=new G1({}),{c(){e=I("li"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("menu_playback_rate")}`,r=D(),a=I("div"),s=Ae(t[11]),u=Ae("x"),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=j("aria_label_menu_rate",{actual:t[33]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",t[40])},m(g,w){S(g,e,w),m(e,i),M(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),t[126](e),p=!0,h||(k=[de(e,"click",st(Et(t[73]))),de(e,"keydown",t[97])],h=!0)},p(g,w){(!p||w[0]&2048)&&Ke(s,g[11]),(!p||w[1]&4&&f!==(f=j("aria_label_menu_rate",{actual:g[33]})))&&c(e,"aria-label",f),(!p||w[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),V(n),t[126](null),h=!1,et(k)}}}function ud(t){let e,i,n,o,l,r,a,s=t[42].displayValue+"",u,f,p,h,k;return n=new Vr({}),{c(){e=I("li"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("subtitles_caption")}`,r=D(),a=I("div"),u=Ae(s),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=j("aria_label_menu_subtitle",{actual:t[42].displayValue})),c(e,"aria-haspopup","true"),q(e,"item-mobile",t[40])},m(g,w){S(g,e,w),m(e,i),M(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),t[127](e),p=!0,h||(k=[de(e,"click",st(t[75])),de(e,"keydown",t[100])],h=!0)},p(g,w){(!p||w[1]&2048)&&s!==(s=g[42].displayValue+"")&&Ke(u,s),(!p||w[1]&2048&&f!==(f=j("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&c(e,"aria-label",f),(!p||w[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&C(e),V(n),t[127](null),h=!1,et(k)}}}function cd(t){let e,i,n,o,l,r,a,s,u,f,p,h;return n=new W1({}),{c(){e=I("li"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("menu_traffic_saving")}`,r=D(),a=I("div"),s=Ae(t[31]),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=j("aria_label_menu_traffic_saving",{actual:t[31]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",t[40])},m(k,g){S(k,e,g),m(e,i),M(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),t[128](e),f=!0,p||(h=[de(e,"click",st(t[69])),de(e,"keydown",t[103])],p=!0)},p(k,g){(!f||g[1]&1)&&Ke(s,k[31]),(!f||g[1]&1&&u!==(u=j("aria_label_menu_traffic_saving",{actual:k[31]})))&&c(e,"aria-label",u),(!f||g[1]&512)&&q(e,"item-mobile",k[40])},i(k){f||(d(n.$$.fragment,k),f=!0)},o(k){_(n.$$.fragment,k),f=!1},d(k){k&&C(e),V(n),t[128](null),p=!1,et(h)}}}function fd(t){let e,i,n,o,l,r,a,s,u;return n=new j1({}),{c(){e=I("li"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("download_video_caption")}`,c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=j("aria_label_menu_download")),q(e,"item-mobile",t[40])},m(f,p){S(f,e,p),m(e,i),M(n,i,null),m(e,o),m(e,l),a=!0,s||(u=[de(e,"click",st(t[78])),de(e,"keydown",t[106])],s=!0)},p(f,p){(!a||p[1]&512)&&q(e,"item-mobile",f[40])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&C(e),V(n),s=!1,et(u)}}}function dd(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v=t[44].showSupport&&Bg(t);return o=new J1({}),p=new x1({}),{c(){v&&v.c(),e=D(),i=I("li"),n=I("div"),R(o.$$.fragment),l=D(),r=I("div"),r.textContent=`${j("menu_copy_debug")}`,s=D(),u=I("li"),f=I("div"),R(p.$$.fragment),h=D(),k=I("div"),k.textContent=`${j("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(i,"class","item item-mobile svelte-1h807jq"),c(i,"role","menuitem"),c(i,"tabindex","0"),c(i,"aria-label",a=j("menu_copy_debug")),c(f,"class","menu-icon-wrapper svelte-1h807jq"),c(k,"class","menu-title svelte-1h807jq"),c(u,"class","item item-mobile svelte-1h807jq"),c(u,"role","menuitem"),c(u,"tabindex","0"),c(u,"aria-label",g=t[43]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))},m(y,P){v&&v.m(y,P),S(y,e,P),S(y,i,P),m(i,n),M(o,n,null),m(i,l),m(i,r),S(y,s,P),S(y,u,P),m(u,f),M(p,f,null),m(u,h),m(u,k),w=!0,b||(T=[de(i,"click",st(t[80])),de(i,"keydown",t[108]),de(u,"click",st(t[81])),de(u,"keydown",t[109])],b=!0)},p(y,P){y[44].showSupport&&v.p(y,P),(!w||P[1]&4096&&g!==(g=y[43]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")))&&c(u,"aria-label",g)},i(y){w||(d(v),d(o.$$.fragment,y),d(p.$$.fragment,y),w=!0)},o(y){_(v),_(o.$$.fragment,y),_(p.$$.fragment,y),w=!1},d(y){y&&(C(e),C(i),C(s),C(u)),v&&v.d(y),V(o),V(p),b=!1,et(T)}}}function Bg(t){let e,i,n,o,l,r,a,s,u;return n=new X1({}),{c(){e=I("li"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("menu_report")}`,c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),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){S(f,e,p),m(e,i),M(n,i,null),m(e,o),m(e,l),a=!0,s||(u=[de(e,"click",st(t[79])),de(e,"keydown",t[107])],s=!0)},p:_e,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&C(e),V(n),s=!1,et(u)}}}function md(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g;n=new Qn({props:{direction:"left"}});let w=wt(t[10]),b=[];for(let v=0;v<w.length;v+=1)b[v]=hd(id(t,w,v));let T=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=I("div"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("submenu_quality")}`,a=D(),s=I("div"),u=D(),f=I("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=j("aria_label_submenu_back")),q(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=t[84](t[20]?.clientHeight,!0)),q(f,"items-mobile",t[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40])},m(v,y){S(v,e,y),m(e,i),M(n,i,null),m(i,o),m(i,l),t[130](i),m(e,a),m(e,s),m(e,u),m(e,f);for(let P=0;P<b.length;P+=1)b[P]&&b[P].m(f,null);t[133](f),h=!0,k||(g=[de(i,"click",st(t[77])),de(f,"keydown",t[93])],k=!0)},p(v,y){if((!h||y[1]&512)&&q(i,"item-mobile",v[40]),y[0]&1024|y[1]&512|y[2]&256|y[3]&2){w=wt(v[10]);let P;for(P=0;P<w.length;P+=1){let Z=id(v,w,P);b[P]?(b[P].p(Z,y),d(b[P],1)):(b[P]=hd(Z),b[P].c(),d(b[P],1),b[P].m(f,null))}for(ue(),P=w.length;P<b.length;P+=1)T(P);ce()}(!h||y[0]&1048576&&p!==(p=v[84](v[20]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",v[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&q(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<w.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&C(e),V(n),t[130](null),Ti(b,v),t[133](null),k=!1,et(g)}}}function pd(t){let e,i,n;return i=new Uo({}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function _d(t){let e,i,n;var o=go(t[172].value);function l(r){return{}}return o&&(i=Cn(o,l(t))),{c(){e=I("div"),i&&R(i.$$.fragment),c(e,"class","menu-valueIcon-list svelte-1h807jq")},m(r,a){S(r,e,a),i&&M(i,e,null),n=!0},p(r,a){if(a[0]&1024&&o!==(o=go(r[172].value))){if(i){ue();let s=i;_(s.$$.fragment,1,0,()=>{V(s,1)}),ce()}o?(i=Cn(o,l(r)),R(i.$$.fragment),d(i.$$.fragment,1),M(i,e,null)):i=null}},i(r){n||(i&&d(i.$$.fragment,r),n=!0)},o(r){i&&_(i.$$.fragment,r),n=!1},d(r){r&&C(e),i&&V(i)}}}function hd(t){let e,i,n,o=t[172].displayValue+"",l,r,a=!t[40]&&go(t[172].value),s,u,f,p,h,k,g=t[172].selected&&pd(t),w=a&&_d(t);function b(){return t[131](t[172])}function T(...v){return t[132](t[172],...v)}return{c(){e=I("li"),g&&g.c(),i=D(),n=I("div"),l=Ae(o),r=D(),w&&w.c(),s=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",u=t[172].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=t[172].displayValue),q(e,"item-mobile",t[40])},m(v,y){S(v,e,y),g&&g.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),w&&w.m(e,null),m(e,s),p=!0,h||(k=[de(e,"click",st(b)),de(e,"keydown",T)],h=!0)},p(v,y){t=v,t[172].selected?g?y[0]&1024&&d(g,1):(g=pd(t),g.c(),d(g,1),g.m(e,i)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),(!p||y[0]&1024)&&o!==(o=t[172].displayValue+"")&&Ke(l,o),(!p||y[1]&512)&&q(n,"submenu-value-mobile",t[40]),y[0]&1024|y[1]&512&&(a=!t[40]&&go(t[172].value)),a?w?(w.p(t,y),y[0]&1024|y[1]&512&&d(w,1)):(w=_d(t),w.c(),d(w,1),w.m(e,s)):w&&(ue(),_(w,1,1,()=>{w=null}),ce()),(!p||y[0]&1024&&u!==(u=t[172].value))&&c(e,"data-value",u),(!p||y[0]&1024&&f!==(f=t[172].displayValue))&&c(e,"aria-label",f),(!p||y[1]&512)&&q(e,"item-mobile",t[40])},i(v){p||(d(g),d(w),p=!0)},o(v){_(g),_(w),p=!1},d(v){v&&C(e),g&&g.d(),w&&w.d(),h=!1,et(k)}}}function gd(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g;n=new Qn({props:{direction:"left"}});let w=wt(t[9]),b=[];for(let v=0;v<w.length;v+=1)b[v]=vd(td(t,w,v));let T=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=I("div"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("submenu_audio_languages")}`,a=D(),s=I("div"),u=D(),f=I("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=j("aria_label_submenu_back")),q(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=t[84](t[21]?.clientHeight,!0)),q(f,"items-mobile",t[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40])},m(v,y){S(v,e,y),m(e,i),M(n,i,null),m(i,o),m(i,l),t[134](i),m(e,a),m(e,s),m(e,u),m(e,f);for(let P=0;P<b.length;P+=1)b[P]&&b[P].m(f,null);t[137](f),h=!0,k||(g=[de(i,"click",st(t[77])),de(f,"keydown",t[95])],k=!0)},p(v,y){if((!h||y[1]&512)&&q(i,"item-mobile",v[40]),y[0]&512|y[1]&1536|y[2]&512|y[3]&8){w=wt(v[9]);let P;for(P=0;P<w.length;P+=1){let Z=td(v,w,P);b[P]?(b[P].p(Z,y),d(b[P],1)):(b[P]=vd(Z),b[P].c(),d(b[P],1),b[P].m(f,null))}for(ue(),P=w.length;P<b.length;P+=1)T(P);ce()}(!h||y[0]&2097152&&p!==(p=v[84](v[21]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",v[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&q(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<w.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&C(e),V(n),t[134](null),Ti(b,v),t[137](null),k=!1,et(g)}}}function bd(t){let e,i,n;return i=new Uo({}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function vd(t){let e,i,n,o=io(t[169],t[9])+"",l,r,a,s,u,f,p,h=t[169].id===t[41]?.id&&bd(t);function k(){return t[135](t[169])}function g(...w){return t[136](t[169],...w)}return{c(){e=I("li"),h&&h.c(),i=D(),n=I("div"),l=Ae(o),r=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=t[169].id),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=io(t[169],t[9])),q(e,"item-mobile",t[40])},m(w,b){S(w,e,b),h&&h.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[de(e,"click",st(k)),de(e,"keydown",g)],f=!0)},p(w,b){t=w,t[169].id===t[41]?.id?h?b[0]&512|b[1]&1024&&d(h,1):(h=bd(t),h.c(),d(h,1),h.m(e,i)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||b[0]&512)&&o!==(o=io(t[169],t[9])+"")&&Ke(l,o),(!u||b[1]&512)&&q(n,"submenu-value-mobile",t[40]),(!u||b[0]&512&&a!==(a=t[169].id))&&c(e,"data-value",a),(!u||b[0]&512&&s!==(s=io(t[169],t[9])))&&c(e,"aria-label",s),(!u||b[1]&512)&&q(e,"item-mobile",t[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&C(e),h&&h.d(),f=!1,et(p)}}}function yd(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g;n=new Qn({props:{direction:"left"}});let w=wt(t[8]),b=[];for(let v=0;v<w.length;v+=1)b[v]=wd(ed(t,w,v));let T=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=I("div"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("submenu_playback_rate")}`,a=D(),s=I("div"),u=D(),f=I("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=j("aria_label_submenu_back")),q(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=t[84](t[22]?.clientHeight,!0)),q(f,"items-mobile",t[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40])},m(v,y){S(v,e,y),m(e,i),M(n,i,null),m(i,o),m(i,l),t[138](i),m(e,a),m(e,s),m(e,u),m(e,f);for(let P=0;P<b.length;P+=1)b[P]&&b[P].m(f,null);t[141](f),h=!0,k||(g=[de(i,"click",st(t[77])),de(f,"keydown",t[98])],k=!0)},p(v,y){if((!h||y[1]&512)&&q(i,"item-mobile",v[40]),y[0]&256|y[1]&512|y[2]&4096|y[3]&64){w=wt(v[8]);let P;for(P=0;P<w.length;P+=1){let Z=ed(v,w,P);b[P]?(b[P].p(Z,y),d(b[P],1)):(b[P]=wd(Z),b[P].c(),d(b[P],1),b[P].m(f,null))}for(ue(),P=w.length;P<b.length;P+=1)T(P);ce()}(!h||y[0]&4194304&&p!==(p=v[84](v[22]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",v[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&q(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<w.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&C(e),V(n),t[138](null),Ti(b,v),t[141](null),k=!1,et(g)}}}function kd(t){let e,i,n;return i=new Uo({}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function wd(t){let e,i,n,o=t[166].displayValue+"",l,r,a,s,u,f,p,h=t[166].selected&&kd(t);function k(){return t[139](t[166])}function g(...w){return t[140](t[166],...w)}return{c(){e=I("li"),h&&h.c(),i=D(),n=I("div"),l=Ae(o),r=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=t[166].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=t[166].displayValue),q(e,"item-mobile",t[40])},m(w,b){S(w,e,b),h&&h.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[de(e,"click",st(k)),de(e,"keydown",g)],f=!0)},p(w,b){t=w,t[166].selected?h?b[0]&256&&d(h,1):(h=kd(t),h.c(),d(h,1),h.m(e,i)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||b[0]&256)&&o!==(o=t[166].displayValue+"")&&Ke(l,o),(!u||b[1]&512)&&q(n,"submenu-value-mobile",t[40]),(!u||b[0]&256&&a!==(a=t[166].value))&&c(e,"data-value",a),(!u||b[0]&256&&s!==(s=t[166].displayValue))&&c(e,"aria-label",s),(!u||b[1]&512)&&q(e,"item-mobile",t[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&C(e),h&&h.d(),f=!1,et(p)}}}function Cd(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y,P,Z,N,z,re,se,O,J,E,X;n=new Qn({props:{direction:"left"}});let Q=!t[6]&&Sd(t),G=t[6]&&Pd(t);return{c(){e=I("div"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("submenu_traffic_saving")}`,a=D(),s=I("div"),u=D(),f=I("div"),p=I("ul"),h=I("li"),Q&&Q.c(),k=D(),g=I("div"),g.textContent=`${j("traffic_saving_disable")}`,b=D(),T=I("li"),G&&G.c(),v=D(),y=I("div"),y.textContent=`${j("traffic_saving_enable")}`,Z=D(),N=I("div"),z=D(),re=I("div"),se=I("span"),se.textContent=`${j("traffic_saving_helper_text")}`,c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=j("aria_label_submenu_back")),q(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(g,"class","submenu-value svelte-1h807jq"),q(g,"submenu-value-mobile",t[40]),c(h,"class","item item-traffic-saving svelte-1h807jq"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",w=j("aria_label_submenu_traffic_saving_off")),q(h,"item-mobile",t[40]),c(y,"class","submenu-value svelte-1h807jq"),q(y,"submenu-value-mobile",t[40]),c(T,"class","item item-traffic-saving svelte-1h807jq"),c(T,"role","menuitem"),c(T,"tabindex","0"),c(T,"aria-label",P=`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`),q(T,"item-mobile",t[40]),c(p,"class","items svelte-1h807jq"),c(p,"role","menu"),q(p,"items-mobile",t[40]),c(N,"class","menu-divider svelte-1h807jq"),c(se,"class","svelte-1h807jq"),c(re,"class","item item-helper-text svelte-1h807jq"),q(re,"item-mobile",t[40]),c(f,"style",O=t[84](t[23]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40])},m($,L){S($,e,L),m(e,i),M(n,i,null),m(i,o),m(i,l),t[142](i),m(e,a),m(e,s),m(e,u),m(e,f),m(f,p),m(p,h),Q&&Q.m(h,null),m(h,k),m(h,g),m(p,b),m(p,T),G&&G.m(T,null),m(T,v),m(T,y),t[147](p),m(f,Z),m(f,N),m(f,z),m(f,re),m(re,se),J=!0,E||(X=[de(i,"click",st(t[77])),de(h,"click",st(t[143])),de(h,"keydown",t[144]),de(T,"click",st(t[145])),de(T,"keydown",t[146]),de(p,"keydown",t[104])],E=!0)},p($,L){(!J||L[1]&512)&&q(i,"item-mobile",$[40]),$[6]?Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()):Q?L[0]&64&&d(Q,1):(Q=Sd($),Q.c(),d(Q,1),Q.m(h,k)),(!J||L[1]&512)&&q(g,"submenu-value-mobile",$[40]),(!J||L[1]&512)&&q(h,"item-mobile",$[40]),$[6]?G?L[0]&64&&d(G,1):(G=Pd($),G.c(),d(G,1),G.m(T,v)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),(!J||L[1]&512)&&q(y,"submenu-value-mobile",$[40]),(!J||L[1]&512)&&q(T,"item-mobile",$[40]),(!J||L[1]&512)&&q(p,"items-mobile",$[40]),(!J||L[1]&512)&&q(re,"item-mobile",$[40]),(!J||L[0]&8388608&&O!==(O=$[84]($[23]?.clientHeight,!0)))&&c(f,"style",O),(!J||L[1]&512)&&q(e,"menu-desktop",!$[40]),(!J||L[1]&512)&&q(e,"menu-mobile",$[40])},i($){J||(d(n.$$.fragment,$),d(Q),d(G),J=!0)},o($){_(n.$$.fragment,$),_(Q),_(G),J=!1},d($){$&&C(e),V(n),t[142](null),Q&&Q.d(),G&&G.d(),t[147](null),E=!1,et(X)}}}function Sd(t){let e,i,n;return i=new Uo({}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function Pd(t){let e,i,n;return i=new Uo({}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function Id(t){let e,i,n,o,l,r,a,s,u,f,p,h;n=new Qn({props:{direction:"left"}});let k=wt(t[7]),g=[];for(let b=0;b<k.length;b+=1)g[b]=Ed($1(t,k,b));let w=b=>_(g[b],1,1,()=>{g[b]=null});return{c(){e=I("div"),i=I("div"),R(n.$$.fragment),o=D(),l=I("div"),l.textContent=`${j("subtitles_caption")}`,a=D(),s=I("ul");for(let b=0;b<g.length;b+=1)g[b].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=j("aria_label_submenu_back")),q(i,"item-mobile",t[40]),c(s,"class","items svelte-1h807jq"),c(s,"role","menu"),c(s,"style",u=t[84](t[24]?.clientHeight,!0)),q(s,"items-mobile",t[40]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40])},m(b,T){S(b,e,T),m(e,i),M(n,i,null),m(i,o),m(i,l),t[148](i),m(e,a),m(e,s);for(let v=0;v<g.length;v+=1)g[v]&&g[v].m(s,null);t[151](s),f=!0,p||(h=[de(i,"click",st(t[77])),de(s,"keydown",t[101])],p=!0)},p(b,T){if((!f||T[1]&512)&&q(i,"item-mobile",b[40]),T[0]&128|T[1]&512|T[2]&16384|T[3]&512){k=wt(b[7]);let v;for(v=0;v<k.length;v+=1){let y=$1(b,k,v);g[v]?(g[v].p(y,T),d(g[v],1)):(g[v]=Ed(y),g[v].c(),d(g[v],1),g[v].m(s,null))}for(ue(),v=k.length;v<g.length;v+=1)w(v);ce()}(!f||T[0]&16777216&&u!==(u=b[84](b[24]?.clientHeight,!0)))&&c(s,"style",u),(!f||T[1]&512)&&q(s,"items-mobile",b[40]),(!f||T[1]&512)&&q(e,"menu-desktop",!b[40]),(!f||T[1]&512)&&q(e,"menu-mobile",b[40])},i(b){if(!f){d(n.$$.fragment,b);for(let T=0;T<k.length;T+=1)d(g[T]);f=!0}},o(b){_(n.$$.fragment,b),g=g.filter(Boolean);for(let T=0;T<g.length;T+=1)_(g[T]);f=!1},d(b){b&&C(e),V(n),t[148](null),Ti(g,b),t[151](null),p=!1,et(h)}}}function Td(t){let e,i,n;return i=new Uo({}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),M(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function Ed(t){let e,i,n,o=t[163].displayValue+"",l,r,a,s,u,f,p,h=t[163].selected&&Td(t);function k(){return t[149](t[163])}function g(...w){return t[150](t[163],...w)}return{c(){e=I("li"),h&&h.c(),i=D(),n=I("div"),l=Ae(o),r=D(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=t[163].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=t[163].displayValue),q(e,"item-mobile",t[40])},m(w,b){S(w,e,b),h&&h.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[de(e,"click",st(k)),de(e,"keydown",g)],f=!0)},p(w,b){t=w,t[163].selected?h?b[0]&128&&d(h,1):(h=Td(t),h.c(),d(h,1),h.m(e,i)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||b[0]&128)&&o!==(o=t[163].displayValue+"")&&Ke(l,o),(!u||b[1]&512)&&q(n,"submenu-value-mobile",t[40]),(!u||b[0]&128&&a!==(a=t[163].value))&&c(e,"data-value",a),(!u||b[0]&128&&s!==(s=t[163].displayValue))&&c(e,"aria-label",s),(!u||b[1]&512)&&q(e,"item-mobile",t[40])},i(w){u||(d(h),u=!0)},o(w){_(h),u=!1},d(w){w&&C(e),h&&h.d(),f=!1,et(p)}}}function Dg(t){let e,i,n,o,l,r,a,s=t[12]&&nd(t),u=t[14]&&md(t),f=t[15]&&gd(t),p=t[16]&&yd(t),h=t[18]&&Cd(t),k=t[17]&&Id(t);return{c(){e=I("div"),s&&s.c(),i=D(),u&&u.c(),n=D(),f&&f.c(),o=D(),p&&p.c(),l=D(),h&&h.c(),r=D(),k&&k.c(),c(e,"class","svelte-1h807jq"),q(e,"hidden",!t[12]),q(e,"container-mobile",t[40])},m(g,w){S(g,e,w),s&&s.m(e,null),m(e,i),u&&u.m(e,null),m(e,n),f&&f.m(e,null),m(e,o),p&&p.m(e,null),m(e,l),h&&h.m(e,null),m(e,r),k&&k.m(e,null),a=!0},p(g,w){g[12]?s?(s.p(g,w),w[0]&4096&&d(s,1)):(s=nd(g),s.c(),d(s,1),s.m(e,i)):s&&(ue(),_(s,1,1,()=>{s=null}),ce()),g[14]?u?(u.p(g,w),w[0]&16384&&d(u,1)):(u=md(g),u.c(),d(u,1),u.m(e,n)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),g[15]?f?(f.p(g,w),w[0]&32768&&d(f,1)):(f=gd(g),f.c(),d(f,1),f.m(e,o)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),g[16]?p?(p.p(g,w),w[0]&65536&&d(p,1)):(p=yd(g),p.c(),d(p,1),p.m(e,l)):p&&(ue(),_(p,1,1,()=>{p=null}),ce()),g[18]?h?(h.p(g,w),w[0]&262144&&d(h,1)):(h=Cd(g),h.c(),d(h,1),h.m(e,r)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),g[17]?k?(k.p(g,w),w[0]&131072&&d(k,1)):(k=Id(g),k.c(),d(k,1),k.m(e,null)):k&&(ue(),_(k,1,1,()=>{k=null}),ce()),(!a||w[0]&4096)&&q(e,"hidden",!g[12]),(!a||w[1]&512)&&q(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(f),d(p),d(h),d(k),a=!0)},o(g){_(s),_(u),_(f),_(p),_(h),_(k),a=!1},d(g){g&&C(e),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d(),h&&h.d(),k&&k.d()}}}var Ng=18;function qg(t,e,i){let n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y,P,Z,N,z,re,se,O,J,E,X,{ref:Q=void 0}=e,{supportLink:G}=e,{playerControlsHeight:$=0}=e,{returnFocus:L}=e,F=nt(),qe=Dt(),ze=F.state.audioStream$;H(t,ze,te=>i(41,g=te));let We=F.state.availableAudioStreams$;H(t,We,te=>i(9,w=te));let Xe=F.state.currentQuality$;H(t,Xe,te=>i(118,v=te));let ve=F.state.availableQualities$;H(t,ve,te=>i(10,b=te));let Be=F.state.autoQualityLimitingAvailable$;H(t,Be,te=>i(122,N=te));let ee=F.state.isAutoQualityEnabled$;H(t,ee,te=>i(119,y=te));let ke=F.state.currentPlaybackRate$;H(t,ke,te=>i(11,T=te));let Ge=F.state.availablePlaybackRates$;H(t,Ge,te=>i(8,p=te));let tt=F.state.currentSubtitle$;H(t,tt,te=>i(42,E=te));let it=F.state.availableSubtitlesList$;H(t,it,te=>i(7,u=te));let we=F.state.canDownload,Re=F.state.hasMpegSources$;H(t,Re,te=>i(123,z=te));let Ze=F.ui.settingsMenuVisible;H(t,Ze,te=>i(12,J=te));let Je=F.ui.settingsMenuOpenedByKeyboard;H(t,Je,te=>i(153,o=te));let Ce=F.ui.isMobile;H(t,Ce,te=>i(40,l=te));let ae=F.ui.mobileNotReportControlHidden$;H(t,ae,te=>i(120,P=te));let He=F.state.canChangePlaybackSpeed$;H(t,He,te=>i(121,Z=te));let me=F.ui.isFullscreen;H(t,me,te=>i(156,O=te));let le=F.state.trafficSavingEnabled$;H(t,le,te=>i(6,a=te));let Ne=F.ui.playerSize;H(t,Ne,te=>i(155,se=te));let Me=F.ui.debugPanelVisible;H(t,Me,te=>i(43,X=te));let Qe=F.ui.playerSize;H(t,Qe,te=>i(154,re=te));let ot=F.state.isInteractiveTime$,ye=F.actions.internal.downloadVideo,ft=F.actions.internal.closeSettingsMenu,yt=!0,ut=!1,mt=!1,Tt=!1,je=!1,ti=!1,Nt=!1;function Ct(){o||L?.(),ft(),Nt=!1}function ui(){i(13,yt=!1),i(14,ut=!0)}function rt(){i(13,yt=!1),i(15,mt=!0)}function kt(){i(13,yt=!1),i(18,ti=!0)}function he(te){F.actions.internal.setQuality(te),Ct()}function gt(te){F.actions.internal.setAudioStream(te),Ct()}function St(te){F.actions.internal.setTrafficSavingEnabled(te),Ct()}function Wt(){i(13,yt=!1),i(16,Tt=!0)}function Pt(te){F.actions.internal.setPlaybackRate(te),Ct()}function qt(){i(13,yt=!1),i(17,je=!0)}function Ft(te){F.actions.internal.setSubtitle(te),Ct()}function Ht(){i(13,yt=!0),i(14,ut=!1),i(15,mt=!1),i(16,Tt=!1),i(17,je=!1),i(18,ti=!1)}function Ui(){ye(),Ct()}function on(){window.open(G,"_blank"),Ct(),F.actions.internal.pause()}function Gt(){al(F.actions.internal.getDebugTextData()),Ct()}function Ai(){Me.set(!0),Ct()}function mn(){Nt=!0}function Ki(){Nt=!1}function ji(te,pt,mi){if(!te)return"...";let Nn=pt.find(xn=>xn.value===te),Tn=Nn?Nn.displayValue:te;return mi?te===Ad.VideoQuality.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:Tn}):Tn}let hi,gi,ci,bi,vi,fi;function yi(te=0,pt=!1){return l&&O&&pt?`max-height: ${Math.round(se.height*.6)}px`:l?"":`max-height: ${re.height-Ng-te-$}px; overflow: auto;`}let Rt,ki,Wi,Gi,Qt,Qi,Yt,zt,Mi,Zt,Vi,Yi,Li,Ut=De(!1);H(t,Ut,te=>i(117,k=te));let ii=De(!1);H(t,ii,te=>i(116,h=te));let Ri,Xt,di=De(!1);H(t,di,te=>i(115,f=te));let Mt,Bi,ni=De(!1);H(t,ni,te=>i(114,s=te));let oi,wi,Jt=De(!1);H(t,Jt,te=>i(113,r=te));let ln=te=>{yr(te,ft)},rn=async te=>{ml(te,ui,()=>{let pt=b.findIndex(mi=>mi.selected);return Yi.childNodes[pt]})},Di=async te=>{ml(te,rt,()=>{let pt=w.findIndex(mi=>mi.id===g?.id);return Li.childNodes[pt]})},Ni=async te=>{pl(te,Ht,Ut,ft)},li=(te,pt)=>{_i(te,()=>he(pt))},Vt=async te=>{pl(te,Ht,ii,ft)},xt=(te,pt)=>{_i(te,()=>gt(pt))},$t=async te=>{ml(te,Wt,()=>{let pt=p.findIndex(mi=>mi.selected);return Xt.childNodes[pt]})},sn=async te=>{pl(te,Ht,di,ft)},Ci=(te,pt)=>{_i(te,()=>Pt(pt))},qi=async te=>{ml(te,qt,()=>{let pt=u.findIndex(mi=>mi.selected);return Bi.childNodes[pt]})},an=async te=>{pl(te,Ht,ni,ft)},ri=(te,pt)=>{_i(te,()=>Ft(pt))},xe=async te=>{ml(te,kt,()=>{let pt=a?2:0;return wi.childNodes[pt]})},Si=async te=>{pl(te,Ht,Jt,ft)},si=(te,pt)=>{_i(te,()=>St(pt))},Ue=te=>{_i(te,()=>Ui())},Zi=te=>{_i(te,()=>on())},un=te=>{_i(te,()=>Gt())},Xi=te=>{_i(te,()=>Ai())};At(()=>{let te=ot.subscribe(pt=>{pt&&!l&&!Nt&&!o&&Ct()});return()=>{te()}});function Oi(te){pe[te?"unshift":"push"](()=>{Zt=te,i(1,Zt)})}function pn(te){pe[te?"unshift":"push"](()=>{Vi=te,i(2,Vi)})}function Ji(te){pe[te?"unshift":"push"](()=>{Ri=te,i(3,Ri)})}function Kt(te){pe[te?"unshift":"push"](()=>{Mt=te,i(4,Mt)})}function Sn(te){pe[te?"unshift":"push"](()=>{oi=te,i(5,oi)})}function Fi(te){pe[te?"unshift":"push"](()=>{Q=te,i(0,Q)})}function Hi(te){pe[te?"unshift":"push"](()=>{gi=te,i(20,gi)})}let _n=te=>he(te.value),cn=(te,pt)=>li(pt,te.value);function yn(te){pe[te?"unshift":"push"](()=>{Yi=te,i(34,Yi)})}function hn(te){pe[te?"unshift":"push"](()=>{ci=te,i(21,ci)})}let xi=te=>gt(te),$i=(te,pt)=>xt(pt,te);function ei(te){pe[te?"unshift":"push"](()=>{Li=te,i(35,Li)})}function Ln(te){pe[te?"unshift":"push"](()=>{bi=te,i(22,bi)})}let kn=te=>Pt(te.value),Pn=(te,pt)=>Ci(pt,te.value);function jt(te){pe[te?"unshift":"push"](()=>{Xt=te,i(36,Xt)})}function Rn(te){pe[te?"unshift":"push"](()=>{vi=te,i(23,vi)})}let Bn=()=>St(!1),gn=te=>si(te,!1),bn=()=>St(!0),In=te=>si(te,!0);function ie(te){pe[te?"unshift":"push"](()=>{wi=te,i(38,wi)})}function _t(te){pe[te?"unshift":"push"](()=>{fi=te,i(24,fi)})}let en=te=>Ft(te),fn=(te,pt)=>ri(pt,te);function Dn(te){pe[te?"unshift":"push"](()=>{Bi=te,i(37,Bi)})}return t.$$set=te=>{"ref"in te&&i(0,Q=te.ref),"supportLink"in te&&i(110,G=te.supportLink),"playerControlsHeight"in te&&i(111,$=te.playerControlsHeight),"returnFocus"in te&&i(112,L=te.returnFocus)},t.$$.update=()=>{if(t.$$.dirty[0]&4096)e:J&&(i(13,yt=!0),i(14,ut=!1),i(15,mt=!1),i(16,Tt=!1),i(17,je=!1),i(18,ti=!1));if(t.$$.dirty[3]&33554432)e:i(39,n=go(v));if(t.$$.dirty[0]&1024|t.$$.dirty[3]&100663296)e:i(19,hi=ji(v,b,y));if(t.$$.dirty[3]&1207959552)e:i(25,Rt=we&&z&&!P);if(t.$$.dirty[3]&671088640)e:i(26,ki=qe.features.trafficSaving&&!P&&N);if(t.$$.dirty[0]&128|t.$$.dirty[3]&134217728)e:i(27,Wi=u.length>0&&!P);if(t.$$.dirty[3]&402653184)e:i(28,Gi=!!Z&&!P);if(t.$$.dirty[0]&512|t.$$.dirty[3]&134217728)e:i(29,Qt=qe.features.audioLanguages&&w.length>=2&&!P);if(t.$$.dirty[3]&134217728)e:i(30,Qi=!P);if(t.$$.dirty[0]&64)e:i(31,Yt=a?j("traffic_saving_on"):j("traffic_saving_off"));if(t.$$.dirty[3]&100663296)e:i(32,zt=y?j("auto_quality_option"):v);if(t.$$.dirty[0]&2304)e:i(33,Mi=p.find(te=>te.value===T)?.displayValue);if(t.$$.dirty[0]&2|t.$$.dirty[3]&16777216)e:dl(Zt,Ut,k);if(t.$$.dirty[0]&4|t.$$.dirty[3]&8388608)e:dl(Vi,ii,h);if(t.$$.dirty[0]&8|t.$$.dirty[3]&4194304)e:dl(Ri,di,f);if(t.$$.dirty[0]&16|t.$$.dirty[3]&2097152)e:dl(Mt,ni,s);if(t.$$.dirty[0]&32|t.$$.dirty[3]&1048576)e:dl(oi,Jt,r)},[Q,Zt,Vi,Ri,Mt,oi,a,u,p,w,b,T,J,yt,ut,mt,Tt,je,ti,hi,gi,ci,bi,vi,fi,Rt,ki,Wi,Gi,Qt,Qi,Yt,zt,Mi,Yi,Li,Xt,Bi,wi,n,l,g,E,X,qe,ze,We,Xe,ve,Be,ee,ke,Ge,tt,it,Re,Ze,Je,Ce,ae,He,me,le,Ne,Me,Qe,Ct,ui,rt,kt,he,gt,St,Wt,Pt,qt,Ft,Ht,Ui,on,Gt,Ai,mn,Ki,yi,Ut,ii,di,ni,Jt,ln,rn,Di,Ni,li,Vt,xt,$t,sn,Ci,qi,an,ri,xe,Si,si,Ue,Zi,un,Xi,G,$,L,r,s,f,h,k,v,y,P,Z,N,z,Oi,pn,Ji,Kt,Sn,Fi,Hi,_n,cn,yn,hn,xi,$i,ei,Ln,kn,Pn,jt,Rn,Bn,gn,bn,In,ie,_t,en,fn,Dn]}var Fa=class extends K{constructor(e){super(),W(this,e,qg,Dg,U,{ref:0,supportLink:110,playerControlsHeight:111,returnFocus:112},Rg,[-1,-1,-1,-1,-1,-1])}},Lr=Fa;function Og(t){Se(t,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Fg(t){let e,i,n;return i=new Mr({props:{isMobile:t[3],currentQuality:t[4]}}),{c(){e=I("span"),R(i.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){S(o,e,l),M(i,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),i.$set(r)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function Hg(t){let e,i,n;function o(r){t[9](r)}let l={className:t[1]?"opened":"",testId:"btn-settings",click:t[8],ariaLabel:t[2],ariaExpanded:t[1],$$slots:{default:[Fg]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a&1&&(i=!0,s.ref=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function zg(t,e,i){let n,o,l,{ref:r=void 0}=e,a=nt(),s=a.state.currentQuality$;H(t,s,w=>i(4,l=w));let u=a.ui.settingsMenuVisible;H(t,u,w=>i(1,n=w));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;H(t,p,w=>i(3,o=w));let h;function k(w){let b=cl(w);f(b)}function g(w){r=w,i(0,r)}return t.$$set=w=>{"ref"in w&&i(0,r=w.ref)},t.$$.update=()=>{if(t.$$.dirty&2)e:i(2,h=n?j("tooltip_settings_on"):j("tooltip_settings_off"))},[r,n,h,o,l,s,u,p,k,g]}var Ha=class extends K{constructor(e){super(),W(this,e,zg,Hg,U,{ref:0},Og)}},Ol=Ha;function Ug(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-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){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function Kg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var za=class extends K{constructor(e){super(),W(this,e,Kg,Ug,U,{})}},Md=za;function jg(t){let e,i;return e=new Vr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Wg(t){let e,i;return e=new Md({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Gg(t){let e,i,n,o,l=[Wg,jg],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=at()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),i=r[e],i||(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&C(n),r[e].d(s)}}}function Qg(t){let e,i;return e=new ht({props:{testId:"btn-Subtitles",ariaLabel:t[2],click:t[1],ariaKeyShortCut:Zn.KeyC,$$slots:{default:[Gg]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Yg(t,e,i){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return t.$$set=r=>{"isSubtitlesEnabled"in r&&i(0,n=r.isSubtitlesEnabled),"click"in r&&i(1,o=r.click)},t.$$.update=()=>{if(t.$$.dirty&1)e:i(2,l=n?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"))},[n,o,l]}var Ua=class extends K{constructor(e){super(),W(this,e,Yg,Qg,U,{isSubtitlesEnabled:0,click:1})}},Vd=Ua;function Zg(t){Se(t,"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 Ld(t){let e,i;return{c(){e=I("span"),i=Ae(t[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&8&&Ke(i,n[3])},d(n){n&&C(e)}}}function Xg(t){let e,i,n,o,l=t[2]&&Ld(t);return{c(){e=I("div"),i=I("span"),n=Ae(t[4]),o=D(),l&&l.c(),c(i,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),q(e,"mobile",t[1])},m(r,a){S(r,e,a),m(e,i),m(i,n),m(e,o),l&&l.m(e,null),t[7](e)},p(r,[a]){a&16&&Ke(n,r[4]),r[2]?l?l.p(r,a):(l=Ld(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&q(e,"mobile",r[1])},i:_e,o:_e,d(r){r&&C(e),l&&l.d(),t[7](null)}}}function Jg(t,e,i){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(p){pe[p?"unshift":"push"](()=>{a=p,i(0,a)})}return t.$$set=p=>{"isMobile"in p&&i(1,n=p.isMobile),"duration"in p&&i(5,o=p.duration),"position"in p&&i(6,l=p.position),"showDuration"in p&&i(2,r=p.showDuration),"ref"in p&&i(0,a=p.ref)},t.$$.update=()=>{if(t.$$.dirty&32)e:i(3,s=Mn(o));if(t.$$.dirty&64)e:i(4,u=Mn(l))},[a,n,r,s,u,o,l,f]}var Ka=class extends K{constructor(e){super(),W(this,e,Jg,Xg,U,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Zg)}},Rr=Ka;var no=require("@vkontakte/videoplayer-shared");function xg(t){Se(t,"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 $g(t){let e,i,n,o,l,r;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),l=B("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(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(e,"data-value",t[0]),c(e,"data-testid",r="volume-"+t[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){S(a,e,s),m(e,i),m(i,n),m(i,o),m(i,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&&C(e)}}}function eb(t,e,i){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 t.$$set=a=>{"volume"in a&&i(1,n=a.volume),"muted"in a&&i(2,o=a.muted)},t.$$.update=()=>{if(t.$$.dirty&6)e:i(0,r=l(n,o))},[r,n,o]}var ja=class extends K{constructor(e){super(),W(this,e,eb,$g,U,{volume:1,muted:2},xg)}},Ko=ja;var Hn=require("@vkontakte/videoplayer-shared");var Nd=require("@vkontakte/videoplayer-shared");var Dd=require("@vkontakte/videoplayer-shared");function tb(t){let e,i,n=t[4].default,o=Pe(n,t,t[3],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","overlay")},m(l,r){S(l,e,r),o&&o.m(e,null),t[5](e),i=!0},p(l,[r]){o&&o.p&&(!i||r&8)&&Te(o,n,l,l[3],i?Ie(n,l[3],r,null):Ee(l[3]),null)},i(l){i||(d(o,l),i=!0)},o(l){_(o,l),i=!1},d(l){l&&C(e),o&&o.d(l),t[5](null)}}}function ib(t,e,i){let n,{$$slots:o={},$$scope:l}=e,a=nt().ui.overlayContainer$;H(t,a,h=>i(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)};At(()=>(f(n),()=>u(n)));function p(h){pe[h?"unshift":"push"](()=>{s=h,i(0,s)})}return t.$$set=h=>{"$$scope"in h&&i(3,l=h.$$scope)},t.$$.update=()=>{if(t.$$.dirty&4)e:f(n)},[s,a,n,l,o,p]}var Wa=class extends K{constructor(e){super(),W(this,e,ib,tb,U,{})}},Rd=Wa;function nb(t){Se(t,"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 Bd(t){let e,i;return e=new Rd({props:{$$slots:{default:[ob]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&2097395&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function ob(t){let e,i,n,o,l,r,a;return{c(){e=I("div"),i=I("div"),n=Ae(t[1]),o=D(),l=I("div"),c(i,"class","content svelte-tny135"),c(l,"class","tooltip-pointer svelte-tny135"),c(l,"style",r=`transform: translate(${t[5]}px, ${t[9]}px) rotate(${t[8]?0:"180deg"});`),q(l,"bottom-placement-pointer",!t[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${t[6]}px, ${t[7]}px);`),q(e,"active",t[0])},m(s,u){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),t[20](e)},p(s,u){u&2&&Ke(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&&q(e,"active",s[0])},d(s){s&&C(e),t[20](null)}}}function lb(t){let e,i,n,o,l,r,a=t[18].default,s=Pe(a,t,t[21],null),u=t[1]&&Bd(t);return{c(){e=I("div"),s&&s.c(),i=D(),u&&u.c(),n=at(),c(e,"class","tooltip-wrapper svelte-tny135"),q(e,"full-width",t[2])},m(f,p){S(f,e,p),s&&s.m(e,null),t[19](e),S(f,i,p),u&&u.m(f,p),S(f,n,p),o=!0,l||(r=[de(e,"mouseenter",t[12]),de(e,"mousemove",t[12]),de(e,"mouseleave",t[13]),de(e,"mousedown",t[13]),de(e,"mouseup",t[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)&&q(e,"full-width",f[2]),f[1]?u?(u.p(f,p),p&2&&d(u,1)):(u=Bd(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&&(C(e),C(i),C(n)),s&&s.d(f),t[19](null),u&&u.d(f),l=!1,et(r)}}}var Fl=5;function rb(t,e,i){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:k=Dd.noop}=e,g=h==="top",w,b,T,v=0,y=g?Fl:-Fl,P=0,Z=0,N=Dt(),z=nt(),re=z.ui.playerSize;H(t,re,F=>i(24,o=F));let se=z.ui.overlayContainer$;H(t,se,F=>i(23,n=F));let O=z.getLogger().createComponentLog("Tooltip component"),J=()=>{if(!n||!b||!w)return;let F=n.getBoundingClientRect(),qe=w.getBoundingClientRect(),ze=qe.width,We=b.clientWidth,Xe=o.width,ve=(ze-We)/2,Be=qe.left+u-F.left,ee=Be+ve,ke=qe.top+f-F.top,Ge=We/2-Fl,tt=ee<8,it=ee+We>Xe-8;tt&&(ee=8,Ge=Be+qe.width/2-2.5*Fl),it&&(ee=Xe-8-We,Ge=qe.left-F.left+qe.width/2-ee-Fl),i(6,P=ee),i(7,Z=ke),i(5,v=Ge)},E=()=>{try{if(!n||!w)return;J(),i(0,s=!0)}catch(F){O({message:String(F)})}},X=()=>{i(0,s=!1)},Q=()=>{b&&(T||(T=window.setTimeout(E,N.controls.hideTimeoutTooltips)),s&&E())},G=()=>{X(),window.clearTimeout(T),T=void 0};At(J),jn(()=>window.clearTimeout(T));function $(F){pe[F?"unshift":"push"](()=>{w=F,i(3,w)})}function L(F){pe[F?"unshift":"push"](()=>{b=F,i(4,b)})}return t.$$set=F=>{"content"in F&&i(1,a=F.content),"active"in F&&i(0,s=F.active),"translateX"in F&&i(14,u=F.translateX),"translateY"in F&&i(15,f=F.translateY),"isFullWidthWrapper"in F&&i(2,p=F.isFullWidthWrapper),"placement"in F&&i(16,h=F.placement),"onVisibilityChange"in F&&i(17,k=F.onVisibilityChange),"$$scope"in F&&i(21,r=F.$$scope)},t.$$.update=()=>{if(t.$$.dirty&131073)e:k(s)},[s,a,p,w,b,v,P,Z,g,y,re,se,Q,G,u,f,h,k,l,$,L,r]}var Ga=class extends K{constructor(e){super(),W(this,e,rb,lb,U,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},nb)}},Br=Ga;function sb(t){Se(t,"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 ab(t){let e,i=t[19].default,n=Pe(i,t,t[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,i,o,o[24],e?Ie(i,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 ub(t){let e,i;return e=new Br({props:{content:t[11],translateX:t[9],translateY:t[10],isFullWidthWrapper:t[4],active:t[5],placement:t[6],onVisibilityChange:t[8],$$slots:{default:[cb]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&2048&&(l.content=n[11]),o&512&&(l.translateX=n[9]),o&1024&&(l.translateY=n[10]),o&16&&(l.isFullWidthWrapper=n[4]),o&32&&(l.active=n[5]),o&64&&(l.placement=n[6]),o&256&&(l.onVisibilityChange=n[8]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function cb(t){let e,i=t[19].default,n=Pe(i,t,t[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,i,o,o[24],e?Ie(i,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 fb(t){let e,i,n,o,l,r,a,s,u,f=[ub,ab],p=[];function h(k,g){return k[3]&&k[11]&&!k[12]?0:1}return i=h(t,-1),n=p[i]=f[i](t),{c(){e=I("div"),n.c(),c(e,"class",o="btn-container "+t[2]+" svelte-p9r045"),c(e,"aria-hidden",l=t[7]||null),Gn(()=>t[23].call(e))},m(k,g){S(k,e,g),p[i].m(e,null),t[22](e),r=Jo(e,t[23].bind(e)),a=!0,s||(u=[de(e,"pointerdown",st(Et(t[20]))),de(e,"click",st(Et(t[21])))],s=!0)},p(k,[g]){let w=i;i=h(k,g),i===w?p[i].p(k,g):(ue(),_(p[w],1,1,()=>{p[w]=null}),ce(),n=p[i],n?n.p(k,g):(n=p[i]=f[i](k),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+k[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&128&&l!==(l=k[7]||null))&&c(e,"aria-hidden",l)},i(k){a||(d(n),a=!0)},o(k){_(n),a=!1},d(k){k&&C(e),p[i].d(),t[22](null),r(),s=!1,et(u)}}}function db(t,e,i){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:k=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:w="top"}=e,{disabledTooltipContent:b=j("tooltip_button_disabled")}=e,{isAriaHidden:T=!1}=e,{onTooltipVisibilityChange:v=Nd.noop}=e,{initialTranslateXPx:y=0}=e,{initialTranslateYPx:P=-18}=e,Z=nt(),N=Z.ui.isMobile;H(t,N,X=>i(12,o=X));let z=Z.state.graphIsOpened$;H(t,z,X=>i(18,n=X));let re;function se(X){An.call(this,t,X)}function O(X){An.call(this,t,X)}function J(X){pe[X?"unshift":"push"](()=>{f=X,i(0,f)})}function E(){p=this.clientWidth,i(1,p)}return t.$$set=X=>{"className"in X&&i(2,a=X.className),"disabled"in X&&i(15,s=X.disabled),"hasTooltip"in X&&i(3,u=X.hasTooltip),"ref"in X&&i(0,f=X.ref),"width"in X&&i(1,p=X.width),"isFullWidthTooltip"in X&&i(4,h=X.isFullWidthTooltip),"tooltipContent"in X&&i(16,k=X.tooltipContent),"tooltipActive"in X&&i(5,g=X.tooltipActive),"tooltipPlacement"in X&&i(6,w=X.tooltipPlacement),"disabledTooltipContent"in X&&i(17,b=X.disabledTooltipContent),"isAriaHidden"in X&&i(7,T=X.isAriaHidden),"onTooltipVisibilityChange"in X&&i(8,v=X.onTooltipVisibilityChange),"initialTranslateXPx"in X&&i(9,y=X.initialTranslateXPx),"initialTranslateYPx"in X&&i(10,P=X.initialTranslateYPx),"$$scope"in X&&i(24,r=X.$$scope)},t.$$.update=()=>{if(t.$$.dirty&491520)e:s?i(11,re=n?j("tooltip_disabled_when_graph_on"):b):i(11,re=k)},[f,p,a,u,h,g,w,T,v,y,P,re,o,N,z,s,k,b,n,l,se,O,J,E,r]}var Qa=class extends K{constructor(e){super(),W(this,e,db,fb,U,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},sb)}},Lt=Qa;function mb(t){let e,i,n,o,l,r;return{c(){e=B("svg"),i=B("rect"),o=B("path"),c(i,"width","20"),c(i,"height","20"),c(i,"rx","10"),c(i,"fill","white"),c(i,"fill-opacity",n=t[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=t[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=(t[0],"interactive-episode-completed-icon"))},m(a,s){S(a,e,s),m(e,i),m(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(i,"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&&C(e)}}}function pb(t,e,i){let{completed:n}=e;return t.$$set=o=>{"completed"in o&&i(0,n=o.completed)},[n]}var Ya=class extends K{constructor(e){super(),W(this,e,pb,mb,U,{completed:0})}},Dr=Ya;function _b(t){Se(t,"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 hb(t){let e,i,n,o,l;return i=new Dr({props:{completed:!!t[0].completed}}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${t[0].from+t[0].width/2}%`),Gn(()=>t[3].call(e)),q(e,"disabled",t[1])},m(r,a){S(r,e,a),M(i,e,null),o=Jo(e,t[3].bind(e)),l=!0},p(r,a){let s={};a&1&&(s.completed=!!r[0].completed),i.$set(s),(!l||a&1&&n!==(n=`left: ${r[0].from+r[0].width/2}%`))&&c(e,"style",n),(!l||a&2)&&q(e,"disabled",r[1])},i(r){l||(d(i.$$.fragment,r),l=!0)},o(r){_(i.$$.fragment,r),l=!1},d(r){r&&C(e),V(i),o()}}}function gb(t){let e,i;return e=new Lt({props:{tooltipContent:j(t[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:t[1],width:t[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[hb]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function bb(t,e,i){let{videoEpisode:n}=e,{disabled:o}=e,l;function r(){l=this.clientWidth,i(2,l)}return t.$$set=a=>{"videoEpisode"in a&&i(0,n=a.videoEpisode),"disabled"in a&&i(1,o=a.disabled)},[n,o,l,r]}var Za=class extends K{constructor(e){super(),W(this,e,bb,gb,U,{videoEpisode:0,disabled:1},_b)}},qd=Za;function vb(t){Se(t,"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 Od(t,e,i){let n=t.slice();return n[2]=e[i],n}function Fd(t){let e,i,n,o,l,r,a,s,u;return{c(){e=I("div"),i=I("div"),n=I("div"),l=D(),r=I("div"),s=D(),c(n,"class","video-episode-loaded svelte-1h9p3m2"),c(n,"style",o=`transform: translateX(${t[2].loadedWidth/t[2].width*100}%)`),c(r,"class","video-episode-filled svelte-1h9p3m2"),c(r,"style",a=`transform: translateX(${t[2].filledWidth/t[2].width*100}%)`),q(r,"mobile",t[1]),c(i,"class","video-episode-inner svelte-1h9p3m2"),c(e,"class","video-episode svelte-1h9p3m2"),c(e,"style",u=`left: ${t[2].from}%; width: ${t[2].width}%`),q(e,"mobile",t[1])},m(f,p){S(f,e,p),m(e,i),m(i,n),m(i,l),m(i,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&&q(r,"mobile",f[1]),p&1&&u!==(u=`left: ${f[2].from}%; width: ${f[2].width}%`)&&c(e,"style",u),p&2&&q(e,"mobile",f[1])},d(f){f&&C(e)}}}function yb(t){let e,i=wt(t[0]),n=[];for(let o=0;o<i.length;o+=1)n[o]=Fd(Od(t,i,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1h9p3m2")},m(o,l){S(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){i=wt(o[0]);let r;for(r=0;r<i.length;r+=1){let a=Od(o,i,r);n[r]?n[r].p(a,l):(n[r]=Fd(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},i:_e,o:_e,d(o){o&&C(e),Ti(n,o)}}}function kb(t,e,i){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return t.$$set=l=>{"videoEpisodes"in l&&i(0,n=l.videoEpisodes),"isMobile"in l&&i(1,o=l.isMobile)},[n,o]}var Xa=class extends K{constructor(e){super(),W(this,e,kb,yb,U,{videoEpisodes:0,isMobile:1},vb)}},Hd=Xa;function wb(t){Se(t,"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 zd(t,e,i){let n=t.slice();return n[48]=e[i],n}function Ud(t){let e,i,n=wt(t[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=jd(zd(t,n,r));let l=r=>_(o[r],1,1,()=>{o[r]=null});return{c(){e=I("div");for(let r=0;r<o.length;r+=1)o[r].c();c(e,"class","interactive-icons svelte-1golz1y"),q(e,"mobile",t[5]),q(e,"hidden",t[5]&&!t[20])},m(r,a){S(r,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);i=!0},p(r,a){if(a[0]&2097664){n=wt(r[21]);let s;for(s=0;s<n.length;s+=1){let u=zd(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=jd(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ue(),s=n.length;s<o.length;s+=1)l(s);ce()}(!i||a[0]&32)&&q(e,"mobile",r[5]),(!i||a[0]&1048608)&&q(e,"hidden",r[5]&&!r[20])},i(r){if(!i){for(let a=0;a<n.length;a+=1)d(o[a]);i=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);i=!1},d(r){r&&C(e),Ti(o,r)}}}function Kd(t){let e,i;return e=new qd({props:{videoEpisode:t[48],disabled:t[9]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function jd(t){let e,i,n=t[48].interactive&&Kd(t);return{c(){n&&n.c(),e=at()},m(o,l){n&&n.m(o,l),S(o,e,l),i=!0},p(o,l){o[48].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=Kd(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&C(e),n&&n.d(o)}}}function Cb(t){let e,i,n,o,l,r;return{c(){e=I("div"),i=I("div"),o=D(),l=I("div"),c(i,"class","loaded svelte-1golz1y"),c(i,"style",n=`transform: translateX(${t[11]*100}%);`),c(l,"class","filled svelte-1golz1y"),c(l,"style",r=`transform: translateX(${t[12]*100}%);`),q(l,"active-live",t[4]),q(l,"ads",t[6]),c(e,"class","bars svelte-1golz1y")},m(a,s){S(a,e,s),m(e,i),m(e,o),m(e,l)},p(a,s){s[0]&2048&&n!==(n=`transform: translateX(${a[11]*100}%);`)&&c(i,"style",n),s[0]&4096&&r!==(r=`transform: translateX(${a[12]*100}%);`)&&c(l,"style",r),s[0]&16&&q(l,"active-live",a[4]),s[0]&64&&q(l,"ads",a[6])},i:_e,o:_e,d(a){a&&C(e)}}}function Sb(t){let e,i;return e=new Hd({props:{videoEpisodes:t[21],isMobile:t[5]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Pb(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g=t[8]&&Ud(t),w=[Sb,Cb],b=[];function T(v,y){return v[21].length?0:1}return n=T(t,[-1,-1]),o=b[n]=w[n](t),{c(){g&&g.c(),e=D(),i=I("div"),o.c(),l=D(),r=I("div"),a=I("div"),c(a,"class","handle svelte-1golz1y"),q(a,"active-live",t[4]),c(r,"class","handleWrap svelte-1golz1y"),c(r,"style",s=`transform: translateX(${t[13]*100}%);`),q(r,"hidden",t[10]),c(i,"class",u="slider "+t[0]+" svelte-1golz1y"),c(i,"aria-label",t[14]),c(i,"aria-valuemin",t[15]),c(i,"aria-valuemax",t[16]),c(i,"aria-valuenow",t[17]),c(i,"aria-valuetext",t[18]),c(i,"role","slider"),c(i,"tabindex","0"),c(i,"data-testid",f=t[1]??null),q(i,"disabled",t[9]),q(i,"slider-dragging",t[20]),q(i,"hidden",t[2]),q(i,"slider-vertical",t[3]),q(i,"no-handle",t[10]),q(i,"square",t[7])},m(v,y){g&&g.m(v,y),S(v,e,y),S(v,i,y),b[n].m(i,null),m(i,l),m(i,r),m(r,a),t[42](i),p=!0,h||(k=[de(i,"pointerdown",Et(t[22])),de(i,"pointermove",Et(t[23])),de(i,"pointerup",Et(t[24])),de(i,"pointerenter",Et(t[25])),de(i,"pointerleave",Et(t[26])),de(i,"click",st(Hn.noop)),de(i,"wheel",t[27])],h=!0)},p(v,y){v[8]?g?(g.p(v,y),y[0]&256&&d(g,1)):(g=Ud(v),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ue(),_(g,1,1,()=>{g=null}),ce());let P=n;n=T(v,y),n===P?b[n].p(v,y):(ue(),_(b[P],1,1,()=>{b[P]=null}),ce(),o=b[n],o?o.p(v,y):(o=b[n]=w[n](v),o.c()),d(o,1),o.m(i,l)),(!p||y[0]&16)&&q(a,"active-live",v[4]),(!p||y[0]&8192&&s!==(s=`transform: translateX(${v[13]*100}%);`))&&c(r,"style",s),(!p||y[0]&1024)&&q(r,"hidden",v[10]),(!p||y[0]&1&&u!==(u="slider "+v[0]+" svelte-1golz1y"))&&c(i,"class",u),(!p||y[0]&16384)&&c(i,"aria-label",v[14]),(!p||y[0]&32768)&&c(i,"aria-valuemin",v[15]),(!p||y[0]&65536)&&c(i,"aria-valuemax",v[16]),(!p||y[0]&131072)&&c(i,"aria-valuenow",v[17]),(!p||y[0]&262144)&&c(i,"aria-valuetext",v[18]),(!p||y[0]&2&&f!==(f=v[1]??null))&&c(i,"data-testid",f),(!p||y[0]&513)&&q(i,"disabled",v[9]),(!p||y[0]&1048577)&&q(i,"slider-dragging",v[20]),(!p||y[0]&5)&&q(i,"hidden",v[2]),(!p||y[0]&9)&&q(i,"slider-vertical",v[3]),(!p||y[0]&1025)&&q(i,"no-handle",v[10]),(!p||y[0]&129)&&q(i,"square",v[7])},i(v){p||(d(g),d(o),p=!0)},o(v){_(g),_(o),p=!1},d(v){v&&(C(e),C(i)),g&&g.d(v),b[n].d(),t[42](null),h=!1,et(k)}}}function Ib(t,e,i){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:k=[]}=e,{withWheelHandler:g=!1}=e,{isInteractive:w=!1}=e,{disabled:b=!1}=e,{hideHandel:T=!1}=e,v,y,{onPointerDown:P=Hn.noop}=e,{onHandleMove:Z=Hn.noop}=e,{onPointerUp:N=Hn.noop}=e,{onPointerEnter:z=Hn.noop}=e,{onPointerMove:re=Hn.noop}=e,{onPointerLeave:se=Hn.noop}=e,{onWheelUp:O=Hn.noop}=e,{onWheelDown:J=Hn.noop}=e,{onWheelLeft:E=Hn.noop}=e,{onWheelRight:X=Hn.noop}=e,{loadedProgress:Q=0}=e,{filledProgress:G=0}=e,{handleProgress:$=0}=e,{ariaLabel:L=""}=e,{ariaValueMin:F=void 0}=e,{ariaValueMax:qe=void 0}=e,{ariaValueNow:ze=void 0}=e,{ariaValueText:We=""}=e,Xe=Dt(),ve=!1,Be;function ee(ae){if(ve)return;i(20,ve=!0),y=v.getBoundingClientRect();let He=Re(ae.clientX,ae.clientY);P(He),v.setPointerCapture(ae.pointerId)}function ke(ae){let He=Re(ae.clientX,ae.clientY),me=Ze(ae.clientX);re(He,me,y.width),ve&&Z(He)}function Ge(ae){if(!ve)return;i(20,ve=!1);let He=Re(ae.clientX,ae.clientY);N(He)}function tt(ae){y=v.getBoundingClientRect();let He=Re(ae.clientX,ae.clientY),me=Ze(ae.clientX);z(He,me,y.width)}function it(){se()}function we(ae){g&&(ae.preventDefault(),ae.deltaY<0?O():ae.deltaY>0?J():ae.deltaX>0?X():E())}function Re(ae,He){return s?Math.max(0,Math.min(1,(y.height-(He-y.top))/y.height)):Math.min(Math.max(ae-y.x,0),y.width)/y.width}function Ze(ae){return Math.min(Math.max(ae-y.x,0),y.width)}function Je(ae,He){let me=Xe.features.episodesClustering&&!w?Xe.episodeMinWidthPc:0,le=[],Ne=0,Me=0,Qe=0;for(let ft=1;ft<k.length;ft++)Me=k[ft].time/Be*100,Me-Ne>me&&(le.push({from:Ne,width:Math.max(0,Me-Ne),loadedWidth:Math.max(0,Math.min(Me,ae)-Ne),filledWidth:Math.max(0,Math.min(Me,He)-Ne),interactive:k[ft-1].interactive,completed:k[ft-1].completed}),Ne=k[ft].time/Be*100,Qe++);let ot={from:Ne,width:Math.max(0,100-Ne),loadedWidth:Math.max(0,Math.min(ae,100)-Ne),filledWidth:Math.max(0,Math.min(He,100)-Ne),interactive:k[Qe].interactive,completed:k[Qe].completed};100-Ne<me?(Qe-=1,le[Qe].width+=100-Ne,le[Qe].loadedWidth+=Math.max(0,Math.min(ae,100)-Ne),le[Qe].filledWidth+=Math.max(0,Math.min(He,100)-Ne)):le[Qe]=ot;let ye=k[0].time;if(ye!==0){let ft=ye/Be*100;le.unshift({from:0,width:ft,loadedWidth:Math.min(ft,ae),filledWidth:Math.min(ft,He)})}return le}function Ce(ae){pe[ae?"unshift":"push"](()=>{v=ae,i(19,v)})}return t.$$set=ae=>{"className"in ae&&i(0,l=ae.className),"testId"in ae&&i(1,r=ae.testId),"isHidden"in ae&&i(2,a=ae.isHidden),"isVertical"in ae&&i(3,s=ae.isVertical),"isActiveLive"in ae&&i(4,u=ae.isActiveLive),"isMobile"in ae&&i(5,f=ae.isMobile),"isAds"in ae&&i(6,p=ae.isAds),"squareBorders"in ae&&i(7,h=ae.squareBorders),"videoEpisodes"in ae&&i(28,k=ae.videoEpisodes),"withWheelHandler"in ae&&i(29,g=ae.withWheelHandler),"isInteractive"in ae&&i(8,w=ae.isInteractive),"disabled"in ae&&i(9,b=ae.disabled),"hideHandel"in ae&&i(10,T=ae.hideHandel),"onPointerDown"in ae&&i(30,P=ae.onPointerDown),"onHandleMove"in ae&&i(31,Z=ae.onHandleMove),"onPointerUp"in ae&&i(32,N=ae.onPointerUp),"onPointerEnter"in ae&&i(33,z=ae.onPointerEnter),"onPointerMove"in ae&&i(34,re=ae.onPointerMove),"onPointerLeave"in ae&&i(35,se=ae.onPointerLeave),"onWheelUp"in ae&&i(36,O=ae.onWheelUp),"onWheelDown"in ae&&i(37,J=ae.onWheelDown),"onWheelLeft"in ae&&i(38,E=ae.onWheelLeft),"onWheelRight"in ae&&i(39,X=ae.onWheelRight),"loadedProgress"in ae&&i(11,Q=ae.loadedProgress),"filledProgress"in ae&&i(12,G=ae.filledProgress),"handleProgress"in ae&&i(13,$=ae.handleProgress),"ariaLabel"in ae&&i(14,L=ae.ariaLabel),"ariaValueMin"in ae&&i(15,F=ae.ariaValueMin),"ariaValueMax"in ae&&i(16,qe=ae.ariaValueMax),"ariaValueNow"in ae&&i(17,ze=ae.ariaValueNow),"ariaValueText"in ae&&i(18,We=ae.ariaValueText)},t.$$.update=()=>{if(t.$$.dirty[0]&65536)e:i(40,Be=qe??0);if(t.$$.dirty[0]&268435456|t.$$.dirty[1]&512)e:i(41,n=k[k.length-1]?.time<Be);if(t.$$.dirty[0]&268441600|t.$$.dirty[1]&1536)e:i(21,o=k.length&&n&&Be?Je(Q*100,G*100):[])},[l,r,a,s,u,f,p,h,w,b,T,Q,G,$,L,F,qe,ze,We,v,ve,o,ee,ke,Ge,tt,it,we,k,g,P,Z,N,z,re,se,O,J,E,X,Be,n,Ce]}var Ja=class extends K{constructor(e){super(),W(this,e,Ib,Pb,U,{className:0,testId:1,isHidden:2,isVertical:3,isActiveLive:4,isMobile:5,isAds:6,squareBorders:7,videoEpisodes:28,withWheelHandler:29,isInteractive:8,disabled:9,hideHandel:10,onPointerDown:30,onHandleMove:31,onPointerUp:32,onPointerEnter:33,onPointerMove:34,onPointerLeave:35,onWheelUp:36,onWheelDown:37,onWheelLeft:38,onWheelRight:39,loadedProgress:11,filledProgress:12,handleProgress:13,ariaLabel:14,ariaValueMin:15,ariaValueMax:16,ariaValueNow:17,ariaValueText:18},wb,[-1,-1])}},gl=Ja;var Vn=(t,e)=>Lo[t]>=Lo[e],Wd=(t,e)=>Lo[t]<Lo[e],Nr=(t,e)=>Lo[t]<=Lo[e],Gd=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";function Tb(t){Se(t,"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 Eb(t){let e,i;return e=new Ko({props:{volume:t[3],muted:t[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Ab(t){let e,i;return e=new ht({props:{className:"btn-full-opacity",disabled:t[9],testId:t[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:t[7],click:t[0],ariaKeyShortCut:Zn.KeyM,$$slots:{default:[Eb]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Qd(t){let e,i,n;return i=new gl({props:{className:t[2]?"volumeBar-slider-vertical":"",isHidden:t[2]&&!t[5],isVertical:t[2],withWheelHandler:!0,onWheelUp:t[15],onWheelDown:t[16],onPointerDown:t[14],onHandleMove:t[17],onPointerUp:t[18],onPointerEnter:t[2]?t[19]:no.noop,onPointerLeave:t[2]?t[20]:no.noop,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(t[8]*100),ariaValueText:`${Math.round(t[8]*100)}%`,filledProgress:t[8],handleProgress:t[8],testId:t[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),q(e,"volumeBar-vertical",t[2])},m(o,l){S(o,e,l),M(i,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]:no.noop),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:no.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"),i.$set(r),(!n||l[0]&4)&&q(e,"volumeBar-vertical",o[2])},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function Mb(t){let e,i,n,o,l,r;i=new Br({props:{content:t[6],translateY:-18,$$slots:{default:[Ab]},$$scope:{ctx:t}}});let a=t[4]&&Qd(t);return{c(){e=I("div"),R(i.$$.fragment),n=D(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),q(e,"vertical",t[2])},m(s,u){S(s,e,u),M(i,e,null),m(e,n),a&&a.m(e,null),o=!0,l||(r=[de(e,"mouseenter",function(){Ii(t[2]?t[21]:no.noop)&&(t[2]?t[21]:no.noop).apply(this,arguments)}),de(e,"mouseleave",function(){Ii(t[2]?t[22]:no.noop)&&(t[2]?t[22]:no.noop).apply(this,arguments)}),de(e,"wheel",Et(t[23]))],l=!0)},p(s,u){t=s;let f={};u[0]&64&&(f.content=t[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:t}),i.$set(f),t[4]?a?(a.p(t,u),u[0]&16&&d(a,1)):(a=Qd(t),a.c(),d(a,1),a.m(e,null)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),(!o||u[0]&4)&&q(e,"vertical",t[2])},i(s){o||(d(i.$$.fragment,s),d(a),o=!0)},o(s){_(i.$$.fragment,s),_(a),o=!1},d(s){s&&C(e),V(i),a&&a.d(),l=!1,et(r)}}}function Vb(t,e,i){let n,o,l,r,{click:a}=e,s=nt(),u=Dt(),f=s.state.volume$;H(t,f,ve=>i(3,n=ve));let p=s.state.muted$;H(t,p,ve=>i(25,r=ve));let h=s.actions.internal.setVolume,k=s.ui.currentGridType$;H(t,k,ve=>i(24,l=ve));let g=s.callbacks?.onAudioDoesNotExistHint,w=s.callbacks?.onAudioDisabledHint,b=s.state.isAudioAvailable$;H(t,b,ve=>i(4,o=ve));let T=s.state.isAudioDisabled,v=!1,y,P,Z,N,z,re,se=1,O=!1,J=!1;function E(ve){se=n,h(ve)}function X(){Sr(s,n,u.controls.volumeStepWheel)}function Q(){Pr(s,n,u.controls.volumeStepWheel)}function G(ve){h(ve)}function $(ve){let Be=ve;h(Be,Be===0?se:Be)}function L(){O=!0}function F(){O=!1,We()}function qe(){clearTimeout(y),i(5,v=!0)}function ze(){We()}function We(){y=window.setTimeout(()=>{O||i(5,v=!1)},u.controls.volumeBarTimeout)}function Xe(ve){ve.deltaY<0?X():ve.deltaY>0&&Q()}return t.$$set=ve=>{"click"in ve&&i(0,a=ve.click)},t.$$.update=()=>{if(t.$$.dirty[0]&33554448)e:i(1,N=!o||r);if(t.$$.dirty[0]&16777216)e:i(2,z=Nr(l,"s"));if(t.$$.dirty[0]&6)e:z?i(6,P=""):i(6,P=N?j("tooltip_volume"):j("tooltip_volume_muted")),i(7,Z=N?j("tooltip_volume"):j("tooltip_volume_muted"));if(t.$$.dirty[0]&10)e:i(8,re=N?0:n);if(t.$$.dirty[0]&16)e:o?i(9,J=T&&!w):i(9,J=!g)},[a,N,z,n,o,v,P,Z,re,J,f,p,k,b,E,X,Q,G,$,L,F,qe,ze,Xe,l,r]}var xa=class extends K{constructor(e){super(),W(this,e,Vb,Mb,U,{click:0},Tb,[-1,-1])}},Yd=xa;var Jd=require("@vkontakte/videoplayer-shared");function Lb(t){let e,i,n,o,l,r=t[2].default,a=Pe(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),i=B("g"),n=B("path"),o=B("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(i,"fill","#fff"),c(i,"fill-rule","evenodd"),be(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,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=Le(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&&C(e),a&&a.d(f)}}}function Rb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var $a=class extends K{constructor(e){super(),W(this,e,Rb,Lb,U,{})}},Zd=$a;function Bb(t){Se(t,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Db(t){let e,i;return e=new Zd({props:{"data-testid":t[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Nb(t,e,i){let{isFullscreen:n=!1}=e;return t.$$set=o=>{"isFullscreen"in o&&i(0,n=o.isFullscreen)},[n]}var eu=class extends K{constructor(e){super(),W(this,e,Nb,Db,U,{isFullscreen:0},Bb)}},Xd=eu;function qb(t){let e,i;return e=new Xd({props:{isFullscreen:t[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Ob(t){let e,i;return e=new ht({props:{testId:"btn-fullscreen",ariaLabel:t[2],click:t[1],ariaKeyShortCut:Zn.KeyF,$$slots:{default:[qb]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Fb(t,e,i){let{isFullscreen:n=!1}=e,{click:o=Jd.noop}=e,l;return t.$$set=r=>{"isFullscreen"in r&&i(0,n=r.isFullscreen),"click"in r&&i(1,o=r.click)},t.$$.update=()=>{if(t.$$.dirty&1)e:i(2,l=n?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"))},[n,o,l]}var tu=class extends K{constructor(e){super(),W(this,e,Fb,Ob,U,{isFullscreen:0,click:1})}},qr=tu;function Hb(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078z"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function zb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var iu=class extends K{constructor(e){super(),W(this,e,zb,Hb,U,{})}},bl=iu;function Ub(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"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){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function Kb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var nu=class extends K{constructor(e){super(),W(this,e,Kb,Ub,U,{})}},Or=nu;var $d=require("@vkontakte/videoplayer-shared");function jb(t){Se(t,"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 xd(t){let e;return{c(){e=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(i,n){S(i,e,n)},d(i){i&&C(e)}}}function Wb(t){let e,i,n,o,l=t[1]&&xd(t);var r=t[8];function a(s){return{}}return r&&(n=Cn(r,a(t))),{c(){l&&l.c(),e=D(),i=I("div"),n&&R(n.$$.fragment),c(i,"class","svelte-1ot3duq"),q(i,"mobile",t[1])},m(s,u){l&&l.m(s,u),S(s,e,u),S(s,i,u),n&&M(n,i,null),o=!0},p(s,u){if(s[1]?l||(l=xd(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){ue();let f=n;_(f.$$.fragment,1,0,()=>{V(f,1)}),ce()}r?(n=Cn(r,a(s)),R(n.$$.fragment),d(n.$$.fragment,1),M(n,i,null)):n=null}(!o||u&2)&&q(i,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(C(e),C(i)),l&&l.d(s),n&&V(n)}}}function Gb(t){let e,i,n;function o(r){t[13](r)}let l={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-play",click:t[5]?t[6]:t[4],disabled:t[2],ariaLabel:t[7],ariaKeyShortCut:Zn.KeyK,$$slots:{default:[Wb]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a&1&&(i=!0,s.ref=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function Qb(t,e,i){let n,o,{fakeIsPlaying$:l}=Fn();H(t,l,v=>i(12,o=v));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=$d.noop}=e,{toggle:h}=l,k,g,w,b;function T(v){r=v,i(0,r)}t.$$set=v=>{"ref"in v&&i(0,r=v.ref),"isMobile"in v&&i(1,a=v.isMobile),"isPlaying"in v&&i(10,s=v.isPlaying),"disabled"in v&&i(2,u=v.disabled),"className"in v&&i(3,f=v.className),"click"in v&&i(4,p=v.click)},t.$$.update=()=>{if(t.$$.dirty&4096)e:i(5,g=o!==null);if(t.$$.dirty&5152)e:i(11,w=g?o:s);if(t.$$.dirty&2048)e:i(7,b=w?j("tooltip_pause"):j("tooltip_play"));if(t.$$.dirty&2048)e:i(8,n=w?Or:bl)};e:i(6,k=h);return[r,a,u,f,p,g,k,b,n,l,s,w,o,T]}var ou=class extends K{constructor(e){super(),W(this,e,Qb,Gb,U,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},jb)}},Hl=ou;function Yb(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function Zb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var lu=class extends K{constructor(e){super(),W(this,e,Zb,Yb,U,{})}},em=lu;function Xb(t){let e,i;return e=new em({props:{style:t[1],"data-testid":t[0]?"prev-icon":"next-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Jb(t,e,i){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,l;return t.$$set=r=>{"isPrev"in r&&i(0,n=r.isPrev),"isMobile"in r&&i(2,o=r.isMobile)},t.$$.update=()=>{if(t.$$.dirty&5)e:n&&o?i(1,l="transform: scaleX(-1) scale(1.3333);"):n?i(1,l="transform: scaleX(-1);"):o?i(1,l="transform: scale(1.3333);"):i(1,l=void 0)},[n,l,o]}var ru=class extends K{constructor(e){super(),W(this,e,Jb,Xb,U,{isPrev:0,isMobile:2})}},tm=ru;function xb(t){let e,i;return e=new tm({props:{isMobile:t[1],isPrev:t[3]==="prev"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function $b(t){let e,i,n;function o(r){t[6](r)}let l={testId:"btn-"+t[3],disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[xb]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a&1&&(i=!0,s.ref=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function ev(t,e,i){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,i(0,n)}return t.$$set=f=>{"ref"in f&&i(0,n=f.ref),"isMobile"in f&&i(1,o=f.isMobile),"disabled"in f&&i(2,l=f.disabled),"type"in f&&i(3,r=f.type),"click"in f&&i(4,a=f.click)},t.$$.update=()=>{if(t.$$.dirty&8)e:i(5,s=r==="prev"?j("tooltip_previous"):j("tooltip_next"))},[n,o,l,r,a,s,u]}var su=class extends K{constructor(e){super(),W(this,e,ev,$b,U,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},vl=su;function tv(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.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(i,"clip-rule","evenodd"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function iv(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var au=class extends K{constructor(e){super(),W(this,e,iv,tv,U,{})}},im=au;function nv(t){let e,i,n,o,l,r,a=t[2].default,s=Pe(a,t,t[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],f={};for(let p=0;p<u.length;p+=1)f=oe(f,u[p]);return{c(){e=B("svg"),s&&s.c(),i=B("path"),n=B("path"),o=B("path"),l=B("path"),c(i,"fill","#fff"),c(i,"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){S(p,e,h),s&&s.m(e,null),m(e,i),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=Le(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&&C(e),s&&s.d(p)}}}function ov(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var uu=class extends K{constructor(e){super(),W(this,e,ov,nv,U,{})}},nm=uu;function lv(t){Se(t,"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 rv(t){let e,i;return e=new nm({props:{width:t[0],height:"24",viewBox:"0 0 "+(t[0]+1)+" 24","data-testid":t[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}var sv="vk-video-logo-icon--short";function av(t,e,i){let{short:n=!1}=e,{isCyrillic:o=!0}=e,l,r;return t.$$set=a=>{"short"in a&&i(2,n=a.short),"isCyrillic"in a&&i(3,o=a.isCyrillic)},t.$$.update=()=>{if(t.$$.dirty&12)e:i(0,l=n?21:95),i(1,r=n?sv:"vk-video-logo-icon"),!o&&!n&&(i(0,l=91),i(1,r="vk-video-logo-icon--en"))},[l,r,n,o]}var cu=class extends K{constructor(e){super(),W(this,e,av,rv,U,{short:2,isCyrillic:3},lv)}},om=cu;function cv(t){let e,i;return e=new im({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p:_e,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function fv(t){let e,i;return e=new om({props:{short:t[4],isCyrillic:t[5]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function dv(t){let e,i,n,o,l=[fv,cv],r=[];function a(s,u){return s[2]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=at()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&C(n),r[e].d(s)}}}function mv(t){let e,i,n;function o(r){t[14](r)}let l={className:"btn-full-opacity",disabled:!t[1],click:t[9],testId:t[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:t[3],$$slots:{default:[dv]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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&131124&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function pv(t,e,i){let n,o,l,{ref:r=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=Dt(),p=nt(),h=p.ui.currentGridType$;H(t,h,P=>i(12,n=P));let k=p.ui.isMobile;H(t,k,P=>i(13,o=P));let g=p.isCyrillicRelatedInterface$;H(t,g,P=>i(5,l=P));let w,b,T,v=()=>{u(),p.callbacks?.onLogoClicked?.(),s&&window.open(s,"_blank")};function y(P){r=P,i(0,r)}t.$$set=P=>{"ref"in P&&i(0,r=P.ref),"logoClickable"in P&&i(1,a=P.logoClickable),"targetUrl"in P&&i(10,s=P.targetUrl),"click"in P&&i(11,u=P.click)},t.$$.update=()=>{if(t.$$.dirty&12292)e:i(4,T=(o||Nr(n,"l"))&&b)};e:i(3,w=f.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo"));e:i(2,b=f.logoType==="vk_video"||f.logoType==="vk_video_mobile");return[r,a,b,w,T,l,h,k,g,v,s,u,n,o,y]}var fu=class extends K{constructor(e){super(),W(this,e,pv,mv,U,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Fr=fu;var rm=require("@vkontakte/videoplayer-core");var du=require("@vkontakte/videoplayer-core");function _v(t){Se(t,"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 hv(t){let e,i,n,o,l,r,a,s;return{c(){e=B("svg"),i=B("g"),n=B("path"),o=B("path"),l=B("path"),r=B("path"),a=B("path"),s=B("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"),q(s,"hidden",!t[1]),c(i,"fill","none"),c(i,"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"),q(e,"connecting",t[2])},m(u,f){S(u,e,f),m(e,i),m(i,n),m(i,o),m(i,l),m(i,r),m(i,a),m(i,s)},p(u,f){f&2&&q(s,"hidden",!u[1]),f&4&&q(e,"connecting",u[2])},d(u){u&&C(e)}}}function gv(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y,P,Z;return{c(){e=B("svg"),i=B("g"),n=B("mask"),o=B("path"),r=B("path"),a=B("path"),u=B("path"),f=B("defs"),p=B("clipPath"),h=B("path"),g=B("filter"),w=B("feFlood"),b=B("feColorMatrix"),T=B("feOffset"),v=B("feGaussianBlur"),y=B("feColorMatrix"),P=B("feBlend"),Z=B("feBlend"),c(o,"fill",l=t[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=t[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(i,"filter","url(#b)"),c(i,"clip-path","url(#a)"),c(h,"fill",k=t[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(w,"flood-opacity","0"),c(w,"result","BackgroundImageFix"),c(b,"in","SourceAlpha"),c(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(b,"result","hardAlpha"),c(v,"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(P,"in2","BackgroundImageFix"),c(P,"result","effect1_dropShadow_4085_178456"),c(Z,"in","SourceGraphic"),c(Z,"in2","effect1_dropShadow_4085_178456"),c(Z,"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(N,z){S(N,e,z),m(e,i),m(i,n),m(n,o),m(n,r),m(i,a),m(i,u),m(e,f),m(f,p),m(p,h),m(f,g),m(g,w),m(g,b),m(g,T),m(g,v),m(g,y),m(g,P),m(g,Z)},p(N,z){z&2&&l!==(l=N[1]?"#2688EB":"#fff")&&c(o,"fill",l),z&2&&s!==(s=N[1]?"#2688EB":"#fff")&&c(a,"fill",s),z&2&&k!==(k=N[1]?"#2688EB":"#fff")&&c(h,"fill",k)},d(N){N&&C(e)}}}function bv(t){let e;function i(l,r){return l[0]?gv:hv}let n=i(t,-1),o=n(t);return{c(){o.c(),e=at()},m(l,r){o.m(l,r),S(l,e,r)},p(l,[r]){n===(n=i(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&&C(e),o.d(l)}}}function vv(t,e,i){let{isMobile:n=!1}=e,{state:o}=e,l,r;return t.$$set=a=>{"isMobile"in a&&i(0,n=a.isMobile),"state"in a&&i(3,o=a.state)},t.$$.update=()=>{if(t.$$.dirty&8)e:i(2,r=o===du.ChromecastState.CONNECTING),i(1,l=o===du.ChromecastState.CONNECTED)},[n,l,r,o]}var mu=class extends K{constructor(e){super(),W(this,e,vv,bv,U,{isMobile:0,state:3},_v)}},lm=mu;var sm=require("@vkontakte/videoplayer-shared");function yv(t){let e,i;return e=new lm({props:{isMobile:t[1],state:t[2]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function kv(t){let e,i,n;function o(r){t[5](r)}let l={ariaLabel:t[4],click:t[3],testId:"btn-chromecast",$$slots:{default:[yv]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a&1&&(i=!0,s.ref=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function wv(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=sm.noop}=e,a;function s(u){n=u,i(0,n)}return t.$$set=u=>{"ref"in u&&i(0,n=u.ref),"isMobile"in u&&i(1,o=u.isMobile),"state"in u&&i(2,l=u.state),"click"in u&&i(3,r=u.click)},t.$$.update=()=>{if(t.$$.dirty&4)e:i(4,a=l===rm.ChromecastState.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var pu=class extends K{constructor(e){super(),W(this,e,wv,kv,U,{ref:0,isMobile:1,state:2,click:3})}},Hr=pu;var zr=require("@vkontakte/videoplayer-core");function Cv(t){let e,i;return e=new br({props:{isActive:t[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Sv(t){let e,i;return e=new ht({props:{className:t[0]?"":"btn--live btn-full-opacity",testId:t[1]?"btn-live":"btn-live-offset",disabled:t[1]&&t[3]===zr.PlaybackState.PLAYING,ariaLabel:t[2],click:t[4],$$slots:{default:[Cv]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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]===zr.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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Pv(t,e,i){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=nt(),s=a.state.playbackState$;H(t,s,h=>i(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p;return t.$$set=h=>{"isMobile"in h&&i(0,o=h.isMobile),"isActiveLive"in h&&i(1,l=h.isActiveLive),"ariaLabel"in h&&i(2,r=h.ariaLabel)},t.$$.update=()=>{if(t.$$.dirty&10)e:i(4,p=()=>{if(!l){u();return}n===zr.PlaybackState.PAUSED&&f()})},[o,l,r,n,p,s]}var _u=class extends K{constructor(e){super(),W(this,e,Pv,Sv,U,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Ur=_u;function Iv(t){Se(t,"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 Tv(t){let e,i,n,o,l=t[9].default,r=Pe(l,t,t[8],null);return{c(){e=I("div"),i=I("div"),r&&r.c(),c(i,"class","tooltip svelte-5ygsa2"),q(i,"active",t[0]),q(i,"pointer",t[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${t[5]}px, ${t[2]}px);`)},m(a,s){S(a,e,s),m(e,i),r&&r.m(i,null),t[10](i),t[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)&&q(i,"active",a[0]),(!o||s&2)&&q(i,"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&&C(e),r&&r.d(a),t[10](null),t[11](null)}}}function Ev(t,e,i){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 k(b){if(!h)return 0;let{width:T}=h.getBoundingClientRect(),v=T/2;return b<v?v:b>f-v?f-v:b}function g(b){pe[b?"unshift":"push"](()=>{h=b,i(4,h)})}function w(b){pe[b?"unshift":"push"](()=>{p=b,i(3,p)})}return t.$$set=b=>{"active"in b&&i(0,r=b.active),"pointer"in b&&i(1,a=b.pointer),"translateXPx"in b&&i(6,s=b.translateXPx),"translateYPx"in b&&i(2,u=b.translateYPx),"containerWidth"in b&&i(7,f=b.containerWidth),"$$scope"in b&&i(8,l=b.$$scope)},t.$$.update=()=>{if(t.$$.dirty&64)e:i(5,n=k(s))},[r,a,u,p,h,n,s,f,l,o,g,w]}var hu=class extends K{constructor(e){super(),W(this,e,Ev,Tv,U,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Iv)}},am=hu;var Kr=(t,e,i)=>i.filter(n=>n.time<t*e).pop();function Av(t){Se(t,"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 um(t){let e;function i(l,r){return l[2]&&l[10].completed===!1?Vv:Mv}let n=i(t,-1),o=n(t);return{c(){o.c(),e=at()},m(l,r){o.m(l,r),S(l,e,r)},p(l,r){n===(n=i(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&C(e),o.d(l)}}}function Mv(t){let e=(t[10].text||"")+"",i;return{c(){i=Ae(e)},m(n,o){S(n,i,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ke(i,e)},d(n){n&&C(i)}}}function Vv(t){let e=j("tooltip_episode_unfinished")+"",i;return{c(){i=Ae(e)},m(n,o){S(n,i,o)},p:_e,d(n){n&&C(i)}}}function cm(t){let e,i;return{c(){e=I("div"),i=Ae(t[0]),c(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&1&&Ke(i,n[0])},d(n){n&&C(e)}}}function Lv(t){let e,i,n,o,l,r,a=t[10]&&um(t),s=!t[2]&&cm(t);return{c(){e=I("div"),i=I("div"),o=D(),l=I("div"),a&&a.c(),r=D(),s&&s.c(),c(i,"class","preview svelte-l51fc1"),c(i,"style",n=`width: ${t[3]}px; height: ${t[4]}px; background-image: url(${t[5]}); background-size: ${t[6]}px ${t[7]}px; background-position: ${t[8]}px ${t[9]}px; transform: translateY(${t[11]%180?-35:0}px) rotate(${t[11]}deg);`),c(l,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),q(e,"mobile",t[1])},m(u,f){S(u,e,f),m(e,i),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(i,"style",n),u[10]?a?a.p(u,f):(a=um(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=cm(u),s.c(),s.m(e,null)),f&2&&q(e,"mobile",u[1])},i:_e,o:_e,d(u){u&&C(e),a&&a.d(),s&&s.d()}}}var yl=150;function Rv(t,e,i){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=nt().ui.rotateAlpha;H(t,h,z=>i(11,n=z));let k,g,w,b,T,v,y,P;function Z(){let z=a.frameWidth,re=a.frameHeight;return z>yl?(re=re/z*yl,z=yl):re>yl&&(z=z/re*yl,re=yl),{width:z,height:re}}function N(z){let re;a.isUV?re=Math.floor(u*z/a.frequency):re=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*z)));let se=Math.floor(re/a.countPerImage),O=Math.floor(re%a.countPerImage/a.countPerRow),J=re%a.countPerRow,E=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&se===Math.floor(a.countTotal/a.countPerImage)&&(E=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&E++);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 Q=k*X,G=g*E,$=-J*k,L=-O*g;return{imgSrc:a.links[se],imgWidth:Q,imgHeight:G,imgOffsetX:$,imgOffsetY:L}}t.$$set=z=>{"time"in z&&i(0,o=z.time),"isMobile"in z&&i(1,l=z.isMobile),"videoEpisodes"in z&&i(13,r=z.videoEpisodes),"previewThumbsData"in z&&i(14,a=z.previewThumbsData),"progress"in z&&i(15,s=z.progress),"duration"in z&&i(16,u=z.duration),"isInteractive"in z&&i(2,f=z.isInteractive)},t.$$.update=()=>{if(t.$$.dirty&32768)e:i(5,{imgSrc:w,imgWidth:b,imgHeight:T,imgOffsetX:v,imgOffsetY:y}=N(s),w,(i(6,b),i(15,s)),(i(7,T),i(15,s)),(i(8,v),i(15,s)),(i(9,y),i(15,s)));if(t.$$.dirty&106496)e:i(10,P=Kr(s,u,r))};e:i(3,{width:k,height:g}=Z(),k,i(4,g));return[o,l,f,k,g,w,b,T,v,y,P,n,h,r,a,s,u]}var gu=class extends K{constructor(e){super(),W(this,e,Rv,Lv,U,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Av)}},fm=gu;function Bv(t){Se(t,"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 Dv(t){let e,i;return{c(){e=I("span"),i=Ae(t[7]),c(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o[0]&128&&Ke(i,n[7])},i:_e,o:_e,d(n){n&&C(e)}}}function Nv(t){let e,i;return e=new fm({props:{time:t[7],isMobile:t[10],videoEpisodes:t[3],previewThumbsData:t[21],progress:t[8],duration:t[1],isInteractive:t[23]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function qv(t){let e,i,n,o,l=[Nv,Dv],r=[];function a(s,u){return s[14].features.timelinePreview&&s[21]&&!s[0]?0:1}return e=a(t,[-1,-1]),i=r[e]=l[e](t),{c(){i.c(),n=at()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&C(n),r[e].d(s)}}}function Ov(t){let e,i,n,o,l=[t[9]],r={$$slots:{default:[qv]},$$scope:{ctx:t}};for(let a=0;a<l.length;a+=1)r=oe(r,l[a]);return e=new am({props:r}),n=new gl({props:{isActiveLive:t[11],isMobile:t[10],ariaLabel:j("aria_timeline"),ariaValueMin:0,ariaValueMax:t[1],ariaValueNow:Math.round(t[6]*100),ariaValueText:j("aria_timeline_value",{position:t[5],duration:t[4]}),loadedProgress:t[12],filledProgress:t[6],handleProgress:t[6],videoEpisodes:t[3],onPointerDown:t[27],onHandleMove:t[28],onPointerMove:t[31],onPointerUp:t[29],onPointerEnter:t[30],onPointerLeave:t[32],isInteractive:t[23],disabled:t[13].has("TIMELINE"),hideHandel:t[2]}}),{c(){R(e.$$.fragment),i=D(),R(n.$$.fragment)},m(a,s){M(e,a,s),S(a,i,s),M(n,a,s),o=!0},p(a,s){let u=s[0]&512?Le(l,[Yc(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&&C(i),V(e,a),V(n,a)}}}function Fv(t,e,i){let n,o,l,r,a,s,u,f,p,h,k,{showTimeline:g=!1}=e,w=nt(),b=Dt(),T=w.state.bufferedProgress$;H(t,T,Ce=>i(12,h=Ce));let v=w.state.positionWithScrubbing$;H(t,v,Ce=>i(39,s=Ce));let y=w.state.duration$;H(t,y,Ce=>i(1,l=Ce));let P=w.state.isLive$;H(t,P,Ce=>i(0,o=Ce));let Z=w.state.isActiveLive$;H(t,Z,Ce=>i(11,p=Ce));let N=w.ui.isMobile;H(t,N,Ce=>i(10,f=Ce));let z=b.features.episodes?w.actions.internal.getVideoEpisodes():void 0,re=w.actions.internal.getPreviewThumbsData(),se=w.state.interactiveEpisodes$;H(t,se,Ce=>i(40,u=Ce));let O=w.state.isInteractive,J=w.state.isInteractiveTime$;H(t,J,Ce=>i(2,r=Ce));let E=w.state.isInteractiveExpectation$;H(t,E,Ce=>i(38,a=Ce));let X=w.actions.internal.correctSeekTimeToInteractive,Q=w.ui.controls.disabledControls$;H(t,Q,Ce=>i(13,k=Ce));let G,$,L,F,qe=!1,ze="",We=0,Xe=0,ve=0,Be;function ee(Ce){return!X||!O?Ce:X(Ce*l)/l}function ke(Ce){w.actions.internal.startScrubbing(ee(Ce))}function Ge(Ce){r||w.actions.internal.progressScrubbing(ee(Ce))}function tt(Ce){w.actions.internal.completeScrubbing(ee(Ce)),i(34,qe=!1)}function it(Ce,ae,He){Ze(Ce,ae,He),i(34,qe=!0)}function we(Ce,ae,He){Ze(Ce,ae,He),i(34,qe=!0)}function Re(){i(34,qe=!1)}function Ze(Ce,ae,He){i(8,ve=ee(Ce)),i(35,We=ae),He&&i(36,Xe=He),i(7,ze=Je(Ce))}function Je(Ce){let ae=Mn((o?1-Ce:Ce)*l);return o?`-${ae}`:ae}return t.$$set=Ce=>{"showTimeline"in Ce&&i(33,g=Ce.showTimeline)},t.$$.update=()=>{if(t.$$.dirty[1]&512)e:i(3,G=O?u:z);if(t.$$.dirty[0]&2)e:i(4,$=Mn(l));if(t.$$.dirty[1]&256)e:i(5,L=Mn(s));if(t.$$.dirty[0]&2|t.$$.dirty[1]&256)e:i(6,F=s/l);if(t.$$.dirty[0]&4|t.$$.dirty[1]&128)e:i(37,Be=a||r);if(t.$$.dirty[0]&1|t.$$.dirty[1]&124)e:i(9,n={containerWidth:Xe,translateXPx:We,translateYPx:O&&re?-36:-16,active:qe&&g&&!Be,pointer:!b.features.timelinePreview||!re||o})},[o,l,r,G,$,L,F,ze,ve,n,f,p,h,k,b,T,v,y,P,Z,N,re,se,O,J,E,Q,ke,Ge,tt,it,we,Re,g,qe,We,Xe,Be,a,s,u]}var bu=class extends K{constructor(e){super(),W(this,e,Fv,Ov,U,{showTimeline:33},Bv,[-1,-1])}},dm=bu;function Hv(t){let e,i;return e=new gl({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:j("aria_timeline_value",{position:t[2],duration:t[1]}),filledProgress:t[3],isAds:!0,hideHandel:!0,squareBorders:t[4]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function zv(t,e,i){let n,{position:o=0}=e,{duration:l=0}=e,a=nt().ui.isMobile;H(t,a,p=>i(4,n=p));let s,u,f;return t.$$set=p=>{"position"in p&&i(6,o=p.position),"duration"in p&&i(0,l=p.duration)},t.$$.update=()=>{if(t.$$.dirty&1)e:i(1,s=Mn(l));if(t.$$.dirty&64)e:i(2,u=Mn(o));if(t.$$.dirty&65)e:i(3,f=o/l)},[l,s,u,f,n,a,o]}var vu=class extends K{constructor(e){super(),W(this,e,zv,Hv,U,{position:6,duration:0})}},jr=vu;function Uv(t){Se(t,"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 Kv(t){let e;return{c(){e=I("div"),c(e,"class","timeline-stub svelte-1gqonyf"),q(e,"mobile",t[2])},m(i,n){S(i,e,n)},p(i,n){n&4&&q(e,"mobile",i[2])},i:_e,o:_e,d(i){i&&C(e)}}}function jv(t){let e,i,n,o,l=[Gv,Wv],r=[];function a(s,u){return s[0]?0:1}return i=a(t,-1),n=r[i]=l[i](t),{c(){e=I("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),q(e,"mobile",t[2])},m(s,u){S(s,e,u),r[i].m(e,null),o=!0},p(s,u){let f=i;i=a(s,u),i===f?r[i].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),n=r[i],n?n.p(s,u):(n=r[i]=l[i](s),n.c()),d(n,1),n.m(e,null)),(!o||u&4)&&q(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&C(e),r[i].d()}}}function Wv(t){let e,i;return e=new dm({props:{showTimeline:t[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.showTimeline=n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Gv(t){let e,i;return e=new jr({props:{position:t[3],duration:t[4]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&8&&(l.position=n[3]),o&16&&(l.duration=n[4]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Qv(t){let e,i,n,o,l=[jv,Kv],r=[];function a(s,u){return s[1]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=at()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&C(n),r[e].d(s)}}}function Yv(t,e,i){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,p=nt(),h=p.state.isLive$;H(t,h,T=>i(12,n=T));let k=p.ads.duration;H(t,k,T=>i(4,r=T));let g=p.ads.position;H(t,g,T=>i(3,l=T));let w=p.ui.isMobile;H(t,w,T=>i(2,o=T));let b;return t.$$set=T=>{"isAds"in T&&i(0,a=T.isAds),"canRewindLive"in T&&i(9,s=T.canRewindLive),"isRewindableLive"in T&&i(10,u=T.isRewindableLive),"isHidden"in T&&i(11,f=T.isHidden)},t.$$.update=()=>{if(t.$$.dirty&7681)e:i(1,b=!f&&(!n||n&&s&&u||a))},[a,b,o,l,r,h,k,g,w,s,u,f,n]}var yu=class extends K{constructor(e){super(),W(this,e,Yv,Qv,U,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},Uv)}},Wr=yu;var _m=require("@vkontakte/videoplayer-shared");function Zv(t){let e,i,n,o,l,r=t[2].default,a=Pe(r,t,t[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"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),i=B("path"),n=B("path"),o=B("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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(i,"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){S(f,e,p),a&&a.m(e,null),m(e,i),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=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){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&C(e),a&&a.d(f)}}}function Xv(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ku=class extends K{constructor(e){super(),W(this,e,Xv,Zv,U,{})}},mm=ku;function Jv(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),c(i,"clip-rule","evenodd"),c(i,"opacity",".7"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function xv(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var wu=class extends K{constructor(e){super(),W(this,e,xv,Jv,U,{})}},pm=wu;function $v(t){Se(t,"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 e4(t){let e,i,n,o;e=new mm({});function l(s,u){if(s[4]==="FULL")return n4;if(s[4]==="COUNT")return i4}let r=l(t,-1),a=r&&r(t);return{c(){R(e.$$.fragment),i=D(),a&&a.c(),n=at()},m(s,u){M(e,s,u),S(s,i,u),a&&a.m(s,u),S(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&&(C(i),C(n)),V(e,s),a&&a.d(s)}}}function t4(t){let e,i,n,o,l,r;return l=new pm({}),{c(){e=I("span"),i=Ae(t[2]),n=D(),o=I("div"),R(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){S(a,e,s),m(e,i),S(a,n,s),S(a,o,s),M(l,o,null),r=!0},p(a,s){(!r||s&4)&&Ke(i,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){_(l.$$.fragment,a),r=!1},d(a){a&&(C(e),C(n),C(o)),V(l)}}}function i4(t){let e,i=t[0].length+"",n;return{c(){e=I("span"),n=Ae(i),c(e,"class","text count svelte-1yhs2ga")},m(o,l){S(o,e,l),m(e,n)},p(o,l){l&1&&i!==(i=o[0].length+"")&&Ke(n,i)},d(o){o&&C(e)}}}function n4(t){let e,i;return{c(){e=I("span"),i=Ae(t[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&4&&Ke(i,n[2])},d(n){n&&C(e)}}}function o4(t){let e,i,n,o,l=[t4,e4],r=[];function a(s,u){return s[6]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=at()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&C(n),r[e].d(s)}}}function l4(t){let e,i,n;function o(r){t[19](r)}let l={className:"w-max btn-full-opacity "+(t[6]?"px-0":""),testId:"btn-episodes",click:t[12],disabled:!t[7],ariaExpanded:t[3],ariaLabel:t[5],$$slots:{default:[o4]},$$scope:{ctx:t}};return t[1]!==void 0&&(l.ref=t[1]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a&2&&(i=!0,s.ref=r[1],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function r4(t,e,i){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=nt(),k=h.callbacks?.onEpisodeChanged??_m.noop,g=!!h.callbacks?.onEpisodeClicked,w=h.ui.currentGridType$;H(t,w,O=>i(18,a=O));let b=h.ui.episodes.openedByKeyboard$;H(t,b,O=>i(17,r=O));let T=h.ui.episodes.panelOpened$;H(t,T,O=>i(3,l=O));let v=h.ui.isMobile;H(t,v,O=>i(6,s=O));let y,P=O=>{if(!!h.callbacks?.onEpisodeClicked){let E=cl(O);b.set(E),T.set(!0),h.callbacks?.onEpisodeClicked?.(E)}},Z,N,z,re=async(O,J,E)=>{await Wn(),O?.getAttribute("aria-expanded")==="false"&&J&&!E&&(b.set(!1),O.focus())};function se(O){y=O,i(1,y)}return t.$$set=O=>{"position"in O&&i(13,u=O.position),"duration"in O&&i(14,f=O.duration),"timeCodes"in O&&i(0,p=O.timeCodes)},t.$$.update=()=>{if(t.$$.dirty&24576)e:i(16,n=u/f);if(t.$$.dirty&114689)e:{let O=Kr(n,f,p);O&&Z?.text!==O.text&&(k(O),i(15,Z=O))}if(t.$$.dirty&32768)e:i(2,o=Z?.text||"");if(t.$$.dirty&262144)e:Vn(a,"xl")?i(4,N="FULL"):Vn(a,"m")&&Wd(a,"xl")?i(4,N="COUNT"):i(4,N="SHORT");if(t.$$.dirty&4)e:i(5,z=`${j("tooltip_episodes")}: ${o}`);if(t.$$.dirty&131082)e:re(y,r,l)},[p,y,o,l,N,z,s,g,w,b,T,v,P,u,f,Z,n,r,a,se]}var Cu=class extends K{constructor(e){super(),W(this,e,r4,l4,U,{position:13,duration:14,timeCodes:0},$v)}},Gr=Cu;function s4(t){let e,i,n,o,l=t[2].default,r=Pe(l,t,t[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"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),i=B("path"),n=B("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),c(i,"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){S(u,e,f),r&&r.m(e,null),m(e,i),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=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function a4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Su=class extends K{constructor(e){super(),W(this,e,a4,s4,U,{})}},hm=Su;function u4(t){let e,i;return e=new hm({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function c4(t){let e,i,n;function o(r){t[4](r)}let l={className:t[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:j("tooltip_interactive_seek"),disabled:t[2],click:t[3],$$slots:{default:[u4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a&1&&(i=!0,s.ref=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function f4(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,i(0,n)}return t.$$set=s=>{"ref"in s&&i(0,n=s.ref),"hidden"in s&&i(1,o=s.hidden),"disabled"in s&&i(2,l=s.disabled),"click"in s&&i(3,r=s.click)},[n,o,l,r,a]}var Pu=class extends K{constructor(e){super(),W(this,e,f4,c4,U,{ref:0,hidden:1,disabled:2,click:3})}},Qr=Pu;function d4(t){let e,i,n,o,l=t[2].default,r=Pe(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=B("svg"),r&&r.c(),i=B("path"),n=B("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.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(i,"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){S(u,e,f),r&&r.m(e,null),m(e,i),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=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(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&C(e),r&&r.d(u)}}}function m4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Iu=class extends K{constructor(e){super(),W(this,e,m4,d4,U,{})}},gm=Iu;function p4(t){Se(t,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function _4(t){let e,i;return e=new gm({props:{"data-testid":t[0]?"graph-close-icon":"graph-open-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function h4(t,e,i){let{isOpened:n=!1}=e;return t.$$set=o=>{"isOpened"in o&&i(0,n=o.isOpened)},[n]}var Tu=class extends K{constructor(e){super(),W(this,e,h4,_4,U,{isOpened:0},p4)}},bm=Tu;function g4(t){let e,i;return e=new bm({props:{isOpened:t[3]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function b4(t){let e,i,n;function o(r){t[6](r)}let l={className:t[1]?"hidden":"",testId:"btn-graph",disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[g4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a&1&&(i=!0,s.ref=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function v4(t,e,i){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,i(0,n)}return t.$$set=f=>{"ref"in f&&i(0,n=f.ref),"hidden"in f&&i(1,o=f.hidden),"disabled"in f&&i(2,l=f.disabled),"graphIsOpened"in f&&i(3,r=f.graphIsOpened),"click"in f&&i(4,a=f.click)},t.$$.update=()=>{if(t.$$.dirty&8)e:i(5,s=r?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var Eu=class extends K{constructor(e){super(),W(this,e,v4,b4,U,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Yr=Eu;function y4(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"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){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function k4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Au=class extends K{constructor(e){super(),W(this,e,k4,y4,U,{})}},Zr=Au;var ym=require("@vkontakte/videoplayer-shared");function w4(t){Se(t,"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 vm(t){let e;return{c(){e=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(i,n){S(i,e,n)},d(i){i&&C(e)}}}function C4(t){let e,i,n,o,l=t[1]&&vm(t);return n=new Zr({}),{c(){l&&l.c(),e=D(),i=I("div"),R(n.$$.fragment),c(i,"class","svelte-1ot3duq"),q(i,"mobile",t[1])},m(r,a){l&&l.m(r,a),S(r,e,a),S(r,i,a),M(n,i,null),o=!0},p(r,a){r[1]?l||(l=vm(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&q(i,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(C(e),C(i)),l&&l.d(r),V(n)}}}function S4(t){let e,i,n;function o(r){t[5](r)}let l={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-replay",ariaLabel:j("tooltip_restart"),disabled:t[2],click:t[4],ariaKeyShortCut:Zn.KeyK,$$slots:{default:[C4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a&1&&(i=!0,s.ref=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function P4(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=ym.noop}=e;function s(u){n=u,i(0,n)}return t.$$set=u=>{"ref"in u&&i(0,n=u.ref),"isMobile"in u&&i(1,o=u.isMobile),"disabled"in u&&i(2,l=u.disabled),"className"in u&&i(3,r=u.className),"click"in u&&i(4,a=u.click)},[n,o,l,r,a,s]}var Mu=class extends K{constructor(e){super(),W(this,e,P4,S4,U,{ref:0,isMobile:1,disabled:2,className:3,click:4},w4)}},zl=Mu;function I4(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),be(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function T4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Vu=class extends K{constructor(e){super(),W(this,e,T4,I4,U,{})}},km=Vu;function E4(t){let e,i;return e=new km({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function A4(t){let e,i,n;function o(r){t[4](r)}let l={className:t[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:j("tooltip_interactive_go_back"),disabled:t[2],click:t[3],$$slots:{default:[E4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a&1&&(i=!0,s.ref=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function M4(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,i(0,n)}return t.$$set=s=>{"ref"in s&&i(0,n=s.ref),"hidden"in s&&i(1,o=s.hidden),"disabled"in s&&i(2,l=s.disabled),"click"in s&&i(3,r=s.click)},[n,o,l,r,a]}var Lu=class extends K{constructor(e){super(),W(this,e,M4,A4,U,{ref:0,hidden:1,disabled:2,click:3})}},Xr=Lu;var Ru=require("@vkontakte/videoplayer-shared");function V4(t){Se(t,"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 L4(t){let e,i,n,o;return{c(){e=I("img"),c(e,"class","icon svelte-1x1zctw"),Is(e.src,i=t[0])||c(e,"src",i),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),n||(o=de(e,"error",t[7]),n=!0)},p(l,r){r&1&&!Is(e.src,i=l[0])&&c(e,"src",i)},d(l){l&&C(e),n=!1,o()}}}function R4(t){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(i,n){S(i,e,n)},p:_e,d(i){i&&C(e)}}}function B4(t){let e;function i(l,r){return l[5]?R4:L4}let n=i(t,-1),o=n(t);return{c(){o.c(),e=at()},m(l,r){o.m(l,r),S(l,e,r)},p(l,r){n===(n=i(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&C(e),o.d(l)}}}function D4(t){let e,i;return e=new ht({props:{className:t[4]?"btn-full-opacity":"",ariaLabel:t[1],click:t[3],disabled:t[6],testId:t[2],$$slots:{default:[B4]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function N4(t,e,i){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=Ru.noop}=e,p=()=>{i(5,l=!0)};t.$$set=h=>{"iconUrl"in h&&i(0,r=h.iconUrl),"ariaLabel"in h&&i(1,a=h.ariaLabel),"disabled"in h&&i(8,s=h.disabled),"testId"in h&&i(2,u=h.testId),"onClick"in h&&i(3,f=h.onClick)},t.$$.update=()=>{if(t.$$.dirty&8)e:i(4,n=f===Ru.noop);if(t.$$.dirty&272)e:i(6,o=n||s)};e:i(5,l=!1);return[r,a,u,f,n,l,o,p,s]}var Bu=class extends K{constructor(e){super(),W(this,e,N4,D4,U,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},V4)}},Jr=Bu;var Gm=require("@vkontakte/videoplayer-shared");var dn=require("@vkontakte/videoplayer-core"),jE=require("@vkontakte/videoplayer-shared"),dt=require("@vkontakte/videoplayer-shared"),oo=require("@vkontakte/videoplayer-statistics"),WE=require("@vkontakte/videoplayer-interactive");var It=require("@vkontakte/videoplayer-shared");var wm=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var q4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",xr=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new It.Subject,started$:new It.Subject,paused$:new It.Subject,resumed$:new It.Subject,ended$:new It.Subject,skipped$:new It.Subject,clicked$:new It.Subject};this.loadAdman=e=>new Promise((i,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?i():n()};(0,It.addScript)(q4,e,this.loadTimeout).then(()=>{window.AdmanHTML?i():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,i)=>{(0,It.assertNonNullable)(this.adsState),(0,It.assertNonNullable)(this.playerState),(0,It.assertNonNullable)(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),$e(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay)};this.onAdTimeRemained=({currentTime:e})=>{(0,It.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,It.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,It.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,It.assertNonNullable)(this.adman),(0,It.assertNonNullable)(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.adman.start("midroll")};this.onAdSkipped=()=>{this.log({message:"ad skipped"})};this.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=i.loadTimeout,this.initTimeout=i.initTimeout}init(e,i,n){this.actions=e,this.adsState=i,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){if(this.adman)return;let{width:i,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,k=this.playerState&&$e(this.playerState.vsid);k&&(h=parseInt(k,36));let g={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:i,player_height:n,puid10:wm(i,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...u},w={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}},b=new window.AdmanHTML;b.setDebug(!1),b.onReady(this.onAdsReady),b.onStarted(this.onAdStarted),b.onPlayed(this.onAdPlayed),b.onPaused(this.onAdPaused),b.adMidrollPoint(this.onAdMidrollPoint),b.onClosed(this.onAdClosed),b.onSkipped(this.onAdSkipped),b.onClicked(this.onAdClicked),b.onTimeRemained(this.onAdTimeRemained),b.onCompleted(this.onAdCompleted),b.onError(this.onAdError),b.init(w),this.adman=b,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(w)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,It.assertNonNullable)(this.actions),(0,It.assertNonNullable)(this.adsState),(0,It.assertNonNullable)(this.playerState);let i=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!i)}togglePlay(){(0,It.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=$e(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){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,It.assertNonNullable)(this.adman),this.isDestroyed||(this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll"))}startPostroll(){(0,It.assertNonNullable)(this.adman),(0,It.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,It.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,It.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,It.assertNonNullable)(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){this.log({message:"destroy"}),this.adman?.destroy(),this.videoElement&&(0,It.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var Cm=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Du=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let i=[],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 $r,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new Nu,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&i.push(l)}return i}},$r=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 i={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(i.startTime=this.calcTime(n[1],n[2],n[3],n[4]),i.endTime=this.calcTime(n[6],n[7],n[8],n[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",n="0",o="0"){let l=Number(e)*60*60,r=Number(i)*60,a=Number(n),s=+`0.${o}`;return l+r+a+s}},Nu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={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 $r;for(let r of o)l.isTime(r)?i.texts.push({type:"timestamp",value:l.parseTime(r)}):i.texts.push({type:"text",value:r});return i}},Sm=Du;var es=require("@vkontakte/videoplayer-shared"),bo,zn,qu=0,Ou=!1,Pm=(t,e,i)=>{let n=t>=qu,o=t<qu,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=i.find(({lang:u})=>u===e.value)?.subtitles;if(qu=t,o&&(Ou=!1),(0,es.isNonNullable)(bo)&&r(t,bo.startTime,bo.endTime)&&bo.lang===e.value)return bo;if(!(0,es.isNonNullable)(zn)&&s?.length&&!Ou){let u=s.find(({startTime:f,endTime:p})=>r(t,f,p)||n&&l(t,f,p));zn=u&&{...u,lang:e.value},bo=void 0,!(0,es.isNonNullable)(zn)&&s[s.length-1].endTime<t&&(Ou=!0);return}else{if(r(t,zn?.startTime,zn?.endTime))return bo=zn,zn=void 0,bo;(n&&a(t,zn?.startTime,zn?.endTime)||o&&l(t,zn?.startTime,zn?.endTime))&&(zn=void 0)}};var Im=require("@vkontakte/videoplayer-shared"),Tm=require("@vkontakte/videoplayer-statistics"),ts=class{constructor(e,i){this.oneStat=new Tm.OneStat(e,i),this.statSubscription=new Im.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Em=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:n,isLiveCatchUpMode:o,statAuthToken:l,isAudioDisabled:r,canDownload:a,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:h,coreConfig:k,player:g,disabledControls:w,isInteractive:b,interactiveRanges$:T,isInteractiveTime$:v,replayInteractive:y,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:Z,additionalButtons:N,looped:z=!1,statistics:re,saveRate:se})=>{let O={...k,configName:[...k.configName??[],"ui"],isAudioDisabled:r,live:{...k.live??{},isLiveCatchUpMode:!!o}},J=h,E=g||new dn.Player(O),X=new dt.Logger,Q=new xr(X,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout}),G=Do.getInstance(),$=u?.pictureInPictureApi,L=u?.annotationsApi,F=X.createComponentLog("Store"),qe,ze,We={},Xe=re?vt(re.oneStat.vsid$):On(void 0),ve=De(mo()),Be=$?.info.isActive$??new dt.ValueSubject(!1),ee=$?.info.type,ke=De(0),Ge=De([]),tt=(0,dt.merge)(E.events.fatalError$,E.events.managedError$).subscribe(A=>Ge.update(fe=>[...fe,A])),it=On(!1,A=>{let fe=E.events.fatalError$.subscribe(()=>A(!0));return()=>fe.unsubscribe()}),we=async A=>{let fe=Object.values(dt.InterfaceLanguage).includes(A);if(J.downloadVKLanguages&&(fe&&J.updateBuiltinLanguages||!Fs(A))){let Ye;try{Ye=await(0,dt.loadVKLangPack)(A,$c,ef)}catch(ct){re?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),G?.report(ct,{errorType:"VKLangPack",fatal:!1})}Ye&&(Os({language:A,pack:Ye,fallback:J.defaultLanguage}),Re.set(A))}Fs(A)&&Re.set(A)},Re=De(t),Ze=De(e);we(t);let Je=(A,fe)=>{let Ve=$e(Re);return Hs(Ve,A,fe,J.defaultLanguage)},Ce=De("thumb"),ae=(()=>{let A=Ei([it,Ce],([fe,Ve])=>fe?"crashed":Ve);return{...A,is:fe=>$e(A)===fe}})(),He=(()=>{let A=De(new Set(w));return{...A,add:fe=>{A.update(Ve=>new Set([...Ve].concat(fe)))},remove:fe=>{A.update(Ve=>{let Ye=[...Ve];return new Set(Array.isArray(fe)?Ye.filter(ct=>!fe.includes(ct)):Ye.filter(ct=>ct!==fe))})},includes:fe=>{let Ve=$e(A);return Array.isArray(fe)?fe.every(Ye=>Ve.has(Ye)):Ve.has(fe)}}})();F({message:"create store"});let me=A=>{let fe=A.container;fe.append(E.experimental.element$.getValue()),ft=new MutationObserver(Ve=>{let{removedNodes:Ye}=Ve[0];Ye.length&&fe.append(E.experimental.element$.getValue())}),ft.observe(fe,{childList:!0})},le=A=>{F({message:`init video, config: ${JSON.stringify(A)}`}),b?me(A):E.initVideo(A),A.subtitles&&E.setExternalTextTracks(A.subtitles),qe=A},Ne=new dt.Subject,Me=A=>Ne.next(A),Qe=new dt.Subject,ot=new dt.Subject,ye=new dt.Subject,ft=null,yt={actionRewind$:Qe,actionSeek$:ot,inPiP$:Be,inFullscreen$:new dt.Observable(A=>ve.subscribe(fe=>A.next(fe))),actionSetSubtitle$:ye,nextMovie$:Ne};if(re){let{oneStat:A,statSubscription:fe}=re;fe.add(A.attachTo(E)),fe.add(A.attachToUi(yt)),fe.add(A.attachToAds(Q.events)),A.authorize(l).catch(Ve=>{F({message:`onestat auth error ${String(Ve)}`})})}if(G){let A=new dt.Subscription,fe=(Ve,Ye)=>A.add(Ve.subscribe(Ye));if(fe(E.events.managedError$,Ve=>{G.logIError(Ve)}),fe(E.events.fatalError$,Ve=>{G.logIError(Ve,!0)}),re){let{oneStat:Ve}=re;fe(Ve.experimental.error$,Ye=>{G.logIError(Ye)})}G.sentrySubscription.add(A)}let ut=()=>{dt.CC.isIOS&&ze&&Df(ze)},mt=new dt.Subscription().add(E.experimental.element$.subscribe(A=>{A&&(ze=A,A.classList.add("player-media"),qo($)&&($.updateVideoElement(),$.registryEventHandlers()),b&&A.setAttribute("pip","false"))})).add(E.events.ended$.subscribe(()=>{ut(),s?.onEnded?.()})).add(E.events.started$.subscribe(async()=>{qo($)&&await $?.revealPictureInPicture();let A=E.info.muted$.getValue();s?.onStarted?.(),We.onStarted?.(A)})).add(E.events.willSeek$.subscribe(({from:A,to:fe})=>{s?.onSeek?.(A,fe)})).add(E.info.position$.subscribe(A=>{let fe=E.info.duration$.getValue();s?.onTimeupdate?.(fe,A),Q.setPosition(A,fe)})).add(E.events.fatalError$.subscribe(()=>{s?.onCrashed?.()})).add(E.events.firstBytes$.subscribe(()=>{bt.state.isFirstBytes$.set(!0)})).add(E.info.is3DVideo$.subscribe(A=>{bt.ui.is3DVideo.set(A)})).add(E.info.isEnded$.subscribe(A=>{b&&(A?(v?.getValue()&&He.add(nr),He.add("PLAY_BUTTON")):He.remove("PLAY_BUTTON"))})).add(E.info.liveTime$.subscribe(A=>{s?.onLiveTime?.(A)})).add(E.info.isStalled$.subscribe(A=>{s?.onStalledChanged?.(A)})).add(Q.events.started$.subscribe(()=>{s?.adsInfo?.onStarted?.()})).add(Q.events.ended$.subscribe(()=>{s?.adsInfo?.onCompleted?.()})),Tt=new dt.Subscription,je=()=>{Tt.add(E.events.log$.subscribe(A=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${A.component}`,A.message)})).add(X.log$.subscribe(A=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${A.component}.`,A.message)}))},ti=()=>{Tt.unsubscribe()},Nt=(A,fe)=>{E.startCameraManualRotation(A,fe)},Ct=(A=!1)=>{E.stopCameraManualRotation(A)},ui=(A,fe,Ve)=>{E.moveCameraFocusPX(A,fe,Ve)},rt=()=>{E.holdCamera()},kt=()=>{E.releaseCamera()},he=On(E.info.position$.getValue(),A=>{let fe,Ve,Ye=()=>{let ct=E.info.playbackState$.getValue(),Pi=E.info.isLive$.getValue(),zi=E.info.duration$.getValue(),ai=E.info.position$.getValue();if([dn.PlaybackState.PLAYING,dn.PlaybackState.PAUSED].includes(ct)){let Un=Pi?ai-zi:E.getExactTime();Un!==Ve&&A(Un),Ve=Un}fe=requestAnimationFrame(Ye)};return Ye(),()=>cancelAnimationFrame(fe)}),gt=vt(Be),St=vt(E.info.playbackState$),Wt=vt(E.info.currentBuffer$),Pt=vt(E.info.isEnded$),qt=vt(E.info.isLive$),Ft=J.features.playbackRate?vt(E.info.canChangePlaybackSpeed$):On(!1),Ht=vt(E.info.liveBufferTime$),Ui=vt(E.info.volume$),on=vt(E.info.muted$),Gt=Ls(E.info.autoQualityLimits$.pipe((0,dt.map)(({max:A})=>A!==void 0)),E.info.autoQualityLimits$.getValue()?.max!==void 0),Ai=vt(E.info.autoQualityLimitingAvailable$),mn=vt(E.info.availableQualities$),Ki=vt(E.info.availableQualitiesFps$),ji=vt(E.info.chromecastState$),hi=vt(E.info.chromecastDeviceName$),gi=vt(E.info.currentFormat$),ci=vt(E.info.throughputEstimation$),bi=vt(E.info.videoBitrate$),vi=vt(E.info.intrinsicVideoSize$),fi=vt(E.info.duration$),yi=vt(E.info.isAudioAvailable$),Rt=null,ki=E.info.isBuffering$,Wi=On(ki.getValue(),A=>{let fe=ki.subscribe(Ve=>{Ve&&Rt===null?Rt=window.setTimeout(()=>{A(ki.getValue()),Rt=null},J.loaderDelay):A(Ve)});return()=>{fe.unsubscribe(),Rt&&clearTimeout(Rt)}}),Gi=()=>{Rt&&clearTimeout(Rt),Rt=null},Qt=Ei([fi,qt],([A,fe])=>fe?-A:A),Qi=Ei([St],([A])=>A===dn.PlaybackState.PLAYING),Yt=vt(E.info.atLiveEdge$),zt=vt(E.info.atLiveDurationEdge$),Mi=vt(E.info.position$),Zt=Ei([Mi,fi],([A,fe])=>isFinite(A)&&isFinite(fe)&&!!fe),Vi=Ei([ji],([A])=>A===dn.ChromecastState.CONNECTED),Yi=vt(E.info.availableVideoStreams$),Li=J.features.audioLanguages?vt(E.info.availableAudioStreams$):On([]),Ut=vt(E.info.currentVideoStream$),ii=vt(E.info.currentAudioStream$),Ri=A=>{A.language&&Ns(A.language),E.setVideoStream(A)},Xt=A=>{A.language&&Ns(A.language),E.setAudioStream(A)},di=A=>{let fe;if(A.length===1&&(fe=A.at(0)),fe??=A.find(Ye=>"isDefault"in Ye&&Ye.isDefault),fe)return fe;let Ve=Tf();return Ve&&(fe=A.find(({language:Ye})=>Ve===Ye)),fe??=A.at(0),fe},Mt=!1;mt.add(E.info.availableAudioStreams$.subscribe(A=>{if(!Mt&&A.length){let fe=di(A);fe&&(E.setAudioStream(fe),Mt=!0)}}));let Bi=!1;mt.add(E.info.availableVideoStreams$.subscribe(A=>{if(!Bi&&A.length){let fe=di(A);fe&&(E.setVideoStream(fe),Bi=!0)}}));let ni=De(void 0),oi=vt(E.info.isAutoQualityEnabled$,A=>A&&ni.set(void 0)),wi=vt(E.info.currentQuality$,()=>ni.set(void 0)),Jt=Ei([ni,wi],([A,fe])=>A??fe),ln=Ei([mn,Ki,oi,Jt,gi],([A,fe,Ve,Ye,ct])=>{let Pi=[];ct!==dn.VideoFormat.MPEG&&Pi.push({value:"auto",displayValue:Je("auto_quality_option"),selected:Ve});let zi=A.filter(ai=>ai!==dt.VideoQuality.INVARIANT);for(let ai of zi){let Un=fe[ai],To=ai===dt.VideoQuality.INVARIANT?Je("auto_quality_option"):ai;Pi.push({value:ai,displayValue:`${To}${Un?Cm(Un):""}`,selected:Ve?!1:ai===Ye})}return Pi}),rn=vt(E.info.currentPlaybackRate$),Di=Ei([rn,Yt,zt],([A,fe,Ve])=>{let Ye=Ve||b?1:J.controls.playbackRateMin,ct=fe?1:J.controls.playbackRateMax,Pi=J.controls.playbackRateStep,zi=[];for(let ai=Ye;ai<=ct;ai+=Pi)zi.push({value:ai,displayValue:ai===1?Je("playback_rate_1"):Je("playback_rate",{multiplier:ai.toString(10)}),selected:A===ai});return zi}),Ni=J.features.subtitles?vt(E.info.availableTextTracks$):On([]),li=Ei([Ni],([A],fe)=>{let Ve=[],Ye=[];for(let ct of A)ct.url&&Ve.push(fetch(ct.url));Promise.allSettled(Ve).then(ct=>{for(let[Pi,zi]of ct.entries())zi.status==="fulfilled"&&zi.value.text().then(ai=>{let Un=new Sm,To=A[Pi].language,Xo=!!A[Pi].isAuto,lt=Un.parse(ai);To&&lt&&Ye.push({lang:To,subtitles:lt,isAuto:Xo}),Pi===ct.length-1&&fe(Ye)})})}),Vt={displayValue:Je("subtitles_off"),value:"off"},xt=De({...Vt}),$t=Ei([li,xt,li],([A,fe])=>{if(A?.length>0){let Ve=[{...Vt,selected:fe?.value===Vt.value}];for(let{lang:Ye,isAuto:ct}of A)zo[Ye]&&Ve.push({displayValue:ct?Je("subtitles_auto",{language:zo[Ye]}):zo[Ye],value:Ye,selected:fe?.value===Ye,isAuto:ct});return Ve}else return[]}),sn=Ei([he,xt,li],([A,fe,Ve])=>{if(fe&&fe.value!==Vt.value)return Pm(A,fe,Ve)}),Ci=Ei([sn],([A])=>A?.texts?A.texts:[]),qi=De(!0),an=Ei([Wt,Qt,Mi,Ht],([A,fe,Ve,Ye])=>{let ct=A?.end??0;if(!Ye)return ct/fe;let zi=-Ve+Ye-fe;return(ct-zi)/fe}),ri=vt(E.info.availableSources$),xe=Ei([ri],([A])=>Object.keys(A?.[dn.VideoFormat.MPEG]||{}).length>0),Si=()=>{let A=Object.keys(E.info.availableSources$?.getValue()?.[dn.VideoFormat.MPEG]||{}),fe=(0,dt.getHighestQuality)(A)||dt.VideoQuality.Q_144P;return qe.sources[dn.VideoFormat.MPEG]?.[fe]},si=()=>{let A=Si();A?mf(A,qe?.meta?.title||"video"):F({message:"There is no URL for download video"})},Ue=()=>{F({message:"toggle muted"});let A=E.info.muted$.getValue(),Ye=!(E.info.volume$.getValue()===0||A);pn(Ye)},Zi=()=>{bt.ui.settingsMenuVisible.set(!1)},un=A=>{bt.ui.settingsMenuOpenedByKeyboard.set(!!A),bt.ui.settingsMenuVisible.set(!0)},Xi=A=>{$e(bt.ui.settingsMenuVisible)?Zi():un(A)},Oi=(A,fe=A,Ve=!1)=>{let Ye=!Ve,ct=E.info.muted$.getValue();F({message:`set volume, volume: ${A}, preferredVolume: ${fe}, internalCall: ${Ye}`}),E.setVolume(A),Q.setVolume(A),Ye&&s?.onVolumeChange?.(A),Bs(fe),ct?(E.setMuted(!1),Ye&&s?.onUnmute?.(),sr(!1)):!ct&&A===0&&(E.setMuted(!0),Ye&&s?.onMute?.(),sr(!0))},pn=(A,fe=!1)=>{let Ve=!fe,Ye=E.info.volume$.getValue();if(F({message:`set muted, currentVolume: ${Ye}, mute: ${A}, internalCall: ${Ve}`}),E.setMuted(A),Q.setVolume(A?0:Ye),sr(A),Ve&&(A?s?.onMute?.():s?.onUnmute?.()),Ye===0){let ct=rr()??J.volumeDefault;ct===0&&(ct=J.volumeMinRestore,Bs(ct)),E.setVolume(ct),Q.setVolume(ct),Ve&&s?.onVolumeChange?.(ct)}},Ji=De(!1),Kt=A=>{Ji.set(A),E.setLooped(A)};Kt(z);let Sn=()=>{E.prepare()},Fi=()=>{if((0,dt.assertNonNullable)(bt),$e(bt.ui.controls.disabledControls$).has("PLAY_BUTTON"))return;if(F({message:"toggle play"}),$e(bt.playerPhase)==="ads"){Q.togglePlay();return}let fe=()=>{F({message:"toggle play, call player.play"}),E.play(),s?.onPlay?.()},Ve=()=>{F({message:"toggle play, call player.pause"}),E.pause(),s?.onPause?.()};if(E.info.isEnded$.getValue()){if(F({message:"toggle play, video ended, seek to 0"}),Qe.next(),ot.next(oo.SeekAction.REWIND),b){y?.();return}E.seekTime(0),fe()}else E.info.playbackState$.getValue()!==dn.PlaybackState.PLAYING?fe():Ve()},Hi=A=>{F({message:`set quality, quality: ${A}`}),E.setAutoQuality(A==="auto"),A!=="auto"?(yf(i,A),ni.set(A),E.setQuality(A)):Ds()},_n=A=>{F({message:`set trafficSavingEnabled, value: ${A}`}),E.setAutoQualityLimits({max:A?J.trafficSavingLimit:void 0}),Pf(A)},cn=A=>{E.setPlaybackRate(A),J.features.saveRate&&se&&!E.info.isLive$.getValue()&&Ef(A)},yn=()=>{let A=$e(Di),fe=A.findIndex(({selected:Ye})=>Ye);if(fe===A.length-1)return;let Ve=A[fe+1];cn(Ve.value)},hn=()=>{let A=$e(Di),fe=A.findIndex(({selected:Ye})=>Ye);if(fe===0)return;let Ve=A[fe-1];cn(Ve.value)},xi=A=>{A&&A.value!==Vt.value&&ye.next(A.isAuto?A.value+"_auto":A.value),xt.set(A)},$i=()=>{let A=$e($t),fe=$e(xt),Ve=$e(Re);if(fe?.value===Vt.value){let Ye=A.filter(ct=>ct.value!==Vt.value).find(ct=>ct.value===Ve)||A[1];xi(Ye??{...Vt})}else xi({...Vt,selected:!1})},ei=(A,fe,Ve=!0)=>{if(F({message:`seek to time, time: ${A}`}),ot.next(fe),E.info.isLive$.getValue()){let Ye=E.info.duration$.getValue(),ct=Math.min(0,Ye+A);E.seekTime(ct,Ve)}else{if(v?.getValue())return;E.seekTime(uo(A),Ve)}},Ln=A=>{F({message:`seek to episode start time: ${A}`}),ei(A,oo.SeekAction.EPISODE,!0)},kn=(A,fe)=>{F({message:`seek to percent, percent: ${A}`});let Ve=Math.round($e(Qt)*A);ei(Ve,fe,!1)},Pn=A=>{F({message:`seek external, time: ${A}`}),ot.next(oo.SeekAction.UNKNOWN),E.seekTime(E.info.isLive$.getValue()?-A:A)},jt=A=>{F({message:`set auto quality limitation. Max: ${A.max??"none"}. Min: ${A.min??"none"}`}),E.setAutoQualityLimits(A)},Rn=A=>{F({message:`seek external to episode start time: ${A}`}),ei(A,oo.SeekAction.EPISODE,!0)},Bn=A=>{F({message:`set playback rate to: ${A}`}),E.setPlaybackRate(A)},gn=De(void 0),bn=De(!1),In=A=>{F({message:`start scrubbing, progress: ${A}`}),bn.set(!0),ie(A)},ie=A=>{gn.set(A)},_t,en,fn=()=>{gn.set(void 0),bn.set(!1)},Dn=()=>{clearTimeout(en),clearTimeout(_t),_t=window.setTimeout(()=>{fn()},500),ze?.removeEventListener("seeked",Dn)},te=A=>{F({message:`complete scrubbing, progress: ${A}`}),kn(A,oo.SeekAction.SLIDER),$e(bt.ui.isMobile)&&$e(bt.state.currentFormat$)===dn.VideoFormat.HLS?(ze?.addEventListener("seeked",Dn),en=window.setTimeout(()=>{Dn()},300)):fn()},pt=Ei([he,Qt,gn],([A,fe,Ve],Ye)=>{Ye((0,dt.isNonNullable)(Ve)?Ve*fe:A)}),mi=De({width:0,height:0}),Nn=Ei([mi],([{width:A}],fe)=>{let Ve=Gd(A);fe(Ve)}),Tn=De(!1),xn=Ei([Nn,Tn],([A,fe])=>fe?N.filter(Ve=>!Ve.hideOnMobile):N.filter(Ve=>!Ve.hideOnDesktopGridTypes?.includes(A))),ne=Ei([Tn,it],([A,fe],Ve)=>{Ve(A&&fe)}),En=()=>{ot.next(oo.SeekAction.LIVE),F({message:"switch to active live"}),E.seekTime(0),E.info.playbackState$.getValue()!==dn.PlaybackState.PLAYING&&bt.actions.internal.togglePlay()},Wo=()=>Q.skip(),El=(A=!0)=>{(0,dt.assertNonNullable)(bt),F({message:`switch from ads to video, callPlay: ${A}`}),Ce.set("video"),A&&E.play()},Al=()=>{(0,dt.assertNonNullable)(bt),F({message:"switch from video to ads"}),bt.actions.internal.pause(),ut(),Ce.set("ads")},Ml=A=>{(0,dt.assertNonNullable)(bt);let fe=A?"waitingLive":"thumb";Ce.set(fe)},vo=A=>{(0,dt.assertNonNullable)(bt);let fe=A?"waitingRecord":"thumb";Ce.set(fe)},yo=()=>((0,dt.assertNonNullable)(bt),ff(E,qe,bt)),$n=()=>((0,dt.assertNonNullable)(bt),df(E,qe,bt)),ro=()=>ze,Go=()=>{F({message:"toggle chromecast"}),E.toggleChromecast()},ko=A=>{(0,dt.assertNonNullable)(bt);let fe=!A;if($e(bt.playerPhase)==="ads"){F({message:`pause ads, internalCall: ${fe}`}),Q.pause();return}F({message:`pause video, internalCall: ${fe}`}),fe&&s?.onPause?.(),E.pause()},wo=A=>{(0,dt.assertNonNullable)(bt);let fe=!A;if($e(bt.playerPhase)==="ads"){F({message:`play ads, internalCall: ${fe}`}),Q.play();return}F({message:`play video, internalCall: ${fe}`}),fe&&s?.onPlay?.(),E.play()},Co=(A,fe)=>{(0,dt.assertNonNullable)(bt),F({message:`first start, show ads: ${A}, internalCall: ${!fe}`}),A?Ce.set("ads"):(Ce.set("video"),fe?E.play():bt.actions.internal.togglePlay())},so=()=>(F({message:"getting time codes"}),f),ao=()=>{let A=so();if(!A||[0,1].includes(A.length))return;let fe=E.info.position$.getValue();return A.find(Ve=>Ve.time>fe)},Qo=A=>{let fe=A;fe||(fe=ao()),fe&&(F({message:"seek to next episode"}),ei(fe.time,oo.SeekAction.EPISODE,!0))},So=()=>{let A=so();if(!A||[0,1].includes(A.length))return;let fe=E.info.position$.getValue(),Ve=A.findIndex(ct=>ct.time>fe),Ye=Ve===-1?A.length-2:Ve-2;if(!(Ye<0))return A[Ye]},Yo=A=>{let fe=A;fe||(fe=So()),fe&&(F({message:"seek to prev episode"}),ei(fe.time,oo.SeekAction.EPISODE,!0))},Y=()=>(F({message:"getting preview thumbs data"}),p),Bt=async()=>{$?.isActive()?await $?.remove():await $?.request()},qn=(A=-90)=>{ke.update(fe=>fe+A)},wn=De([]);T?.subscribe(A=>{let fe=[];for(let Ve=0;Ve<A.length;Ve++){let{range:[Ye,ct],subjects:Pi}=A[Ve];Ve===0&&Ye!==0&&fe.push({time:0,text:"",interactive:!1,completed:!0}),fe.push({time:Ye/1e3,text:"",interactive:!0,completed:!Pi.length}),ct!==1/0&&fe.push({time:ct/1e3,text:"",interactive:!1,completed:!0})}wn.set(fe)});let Zo=De(!1);v?.subscribe(A=>{A&&$e(bn)&&fn()});let uo=A=>{if(!b)return A;let fe=$e(wn),Ve=$e(Qt),ct=$e(Mi)/Ve,Pi=fe.find(zi=>zi.interactive&&!zi.completed&&zi.time>ct);return typeof Pi?.time=="number"?Math.min(A,Pi.time-.05):A},Po=()=>{bt.ui.episodes.panelOpened$.set(!1)},Io=()=>{clearTimeout(en),clearTimeout(_t),mt.unsubscribe(),Tt.unsubscribe(),E.destroy(),Q.destroy(),re?.destroy(),G?.destroy(),tt.unsubscribe(),ft?.disconnect(),ft=null},bt={interfaceLanguage$:Re,isCyrillicRelatedInterface$:Ze,initVideo:le,videoId:i,isClip:n,playerPhase:ae,vsid:Xe,state:{positionExact$:he,positionWithScrubbing$:pt,duration$:Qt,playbackState$:St,isPlaying$:Qi,isLoaderVisible:Wi,bufferedProgress$:an,isLive$:qt,canChangePlaybackSpeed$:Ft,isActiveLive$:Yt,isOldestAvailableLive$:zt,isRewindableLive$:Zt,isEnded$:Pt,muted$:on,volume$:Ui,trafficSavingEnabled$:Gt,autoQualityLimitingAvailable$:Ai,availableVideoStreams$:Yi,availableAudioStreams$:Li,videoStream$:Ut,audioStream$:ii,currentQuality$:Jt,isAutoQualityEnabled$:oi,availableQualities$:ln,currentPlaybackRate$:rn,availablePlaybackRates$:Di,currentSubtitle$:xt,availableSubtitlesList$:$t,currentSubtitleCaptions$:Ci,isAutoSubtitleCaptionVisible$:qi,chromecastState$:ji,chromecastDeviceName$:hi,chromecastConnected$:Vi,currentFormat$:gi,throughputEstimation$:ci,videoBitrate$:bi,videoSize$:vi,errorLog$:Ge,crashed$:it,isAudioAvailable$:yi,isAudioDisabled:!!r,canDownload:J.features.download&&!!a,availableSources$:ri,hasMpegSources$:xe,isInteractive:b,showInteractiveGraph:J.features.interactiveGraph,showSeekToInteractive:J.features.seekToInteractive,showPlayPrevChapter:J.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:J.features.interactiveTimeIndicator&&!!$e(wn).length,interactiveEpisodes$:wn,isInteractiveTime$:v?vt(v):De(!1),graphIsOpened$:De(!1),isInteractiveExpectation$:Zo,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:Z,looped$:Ji,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:N.length?N.reduce(A=>[...A,De(void 0)],[]):[],disabledControls$:He},modals:{hotKeyMap:{show:De(!1),data:De({title:"",closeBtnText:"",groups:[]})}},isFullscreen:ve,rotateAlpha:ke,isAutoplay:De(!1),debugPanelVisible:De(!1),episodes:{panelOpened$:De(!1),openedByKeyboard$:De(!1)},contextMenu:{visible$:De(!1),btnRef$:De(void 0),openedByBtnKeyboard$:De(!1),openedByHotKey$:De(!1),lastActiveElem$:De(void 0),showContextMenuBtn$:De(!1),position$:De({top:0,left:0})},playerSize:mi,isMobile:Tn,mobileNotReportControlHidden$:ne,mobileUnmuteButtonExpanded:De(!1),mobileUnmuteButtonVisible:De(!1),icon3DVideoVisible:De(!1),settingsMenuVisible:De(!1),settingsMenuOpenedByKeyboard:De(!1),scrubbingInProgress:bn,is3DVideo:De(!1),isPictureInPictureActive$:gt,pictureInPictureType$:On(ee),currentGridType$:Nn,additionalButtons$:xn,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:$,annotationsApi:L},actions:{internal:{preload:Sn,firstStart:A=>Co(A,!1),pause:()=>ko(!1),togglePlay:Fi,toggleMuted:Ue,toggleSettingsMenu:Xi,openSettingsMenu:un,closeSettingsMenu:Zi,setVolume:Oi,setVideoStream:Ri,setAudioStream:Xt,setQuality:Hi,setTrafficSavingEnabled:A=>_n(A),setPlaybackRate:cn,incrementPlaybackRate:yn,decrementPlaybackRate:hn,setSubtitle:xi,toggleSubtitle:$i,togglePictureInPicture:Bt,startScrubbing:In,progressScrubbing:ie,completeScrubbing:te,toggleChromecast:Go,switchToActiveLive:En,switchFromAdsToVideo:El,switchFromVideoToAds:Al,skipAd:Wo,setWaitingLive:Ml,setWaitingRecord:vo,getDebugTextData:yo,getDebugPanelData:$n,getVideoElement:ro,seekTime:(A,fe,Ve)=>ei(A,fe,Ve),clearDelayedBufferingCheckTimeout:Gi,seekEpisodeStartTime:Ln,seekToPercent:kn,getNextEpisode:ao,seekToNextEpisode:Qo,getPrevEpisode:So,seekToPrevEpisode:Yo,startLogging:je,stopLogging:ti,startCameraManualRotation:Nt,stopCameraManualRotation:Ct,moveCameraFocusPX:ui,holdCamera:rt,releaseCamera:kt,getVideoEpisodes:so,getPreviewThumbsData:Y,downloadVideo:si,addLanguage:Os,setLanguage:we,nextMovie:Me,videoRotate:qn,correctSeekTimeToInteractive:uo,replayInteractive:y,setLooped:Kt},external:{firstStart:A=>Co(A,!0),play:()=>wo(!0),pause:()=>ko(!0),seekTime:A=>Pn(A),seekEpisodeStartTime:A=>Rn(A),setPlaybackRate:A=>Bn(A),setAutoQualityLimits:A=>jt(A),setMuted:A=>pn(A,!0),setVolume:A=>Oi(A,A,!0),returnFocusToEpisodes:Po}},callbacks:s,setUiCallbacks:A=>{We={...A}},getAdmanWrapper:()=>Q,getLogger:()=>X,destroy:Io};return bt};var ns=(t,e,i,n)=>{if(!t)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=t.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=i[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 os=async(t,e,i)=>{await Wn(),e&&i&&(i.focus(),t.set(!1))};function F4(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"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){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function H4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Fu=class extends K{constructor(e){super(),W(this,e,H4,F4,U,{})}},Am=Fu;function z4(t){let e,i;return e=new Am({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function U4(t){let e,i,n;function o(r){t[8](r)}let l={className:t[3]?"opened":"",testId:"btn-context-menu",disabled:t[0],ariaLabel:t[1],click:t[5],focus:t[6],blur:t[7],ariaExpanded:t[3],$$slots:{default:[z4]},$$scope:{ctx:t}};return t[2]!==void 0&&(l.ref=t[2]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a&4&&(i=!0,s.ref=r[2],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function K4(t,e,i){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=nt(),a=r.ui.contextMenu.visible$;H(t,a,T=>i(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,k=T=>{let v=cl(T),y=xf(h);f.set(y),s.set(v),a.set(!n)},g=()=>{u.set(!0)},w=()=>{u.set(!1)};function b(T){h=T,i(2,h)}return t.$$set=T=>{"disabled"in T&&i(0,o=T.disabled),"ariaLabel"in T&&i(1,l=T.ariaLabel)},t.$$.update=()=>{if(t.$$.dirty&4)e:h&&p.set(h)},[o,l,h,n,a,k,g,w,b]}var Hu=class extends K{constructor(e){super(),W(this,e,K4,U4,U,{disabled:0,ariaLabel:1})}},Mm=Hu;function j4(t){Se(t,"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 W4(t){let e,i;return e=new Dr({props:{completed:!0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p:_e,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function G4(t){let e,i,n,o,l,r,a,s,u,f;function p(k){t[22](k)}let h={tooltipContent:j("tooltip_interactive_interaction_time_indicator"),tooltipActive:t[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:t[13],$$slots:{default:[W4]},$$scope:{ctx:t}};return t[0]!==void 0&&(h.ref=t[0]),i=new Lt({props:h}),pe.push(()=>Fe(i,"ref",p)),i.$on("click",t[14]),{c(){e=I("div"),R(i.$$.fragment),o=D(),l=I("div"),r=D(),a=I("div"),c(l,"class","ref-block svelte-17imlp9"),q(l,"hidden",t[1]),c(a,"class","pulse svelte-17imlp9"),q(a,"paused",t[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),q(e,"mobile",t[2]),q(e,"fullscreen",t[6]),q(e,"invisible",t[1])},m(k,g){S(k,e,g),M(i,e,null),m(e,o),m(e,l),t[23](l),m(e,r),m(e,a),t[24](a),s=!0,u||(f=[de(e,"mousemove",st(t[21])),de(e,"mouseleave",t[15])],u=!0)},p(k,g){let w={};g[0]&32&&(w.tooltipActive=k[5]),g[1]&1&&(w.$$scope={dirty:g,ctx:k}),!n&&g[0]&1&&(n=!0,w.ref=k[0],Oe(()=>n=!1)),i.$set(w),(!s||g[0]&2)&&q(l,"hidden",k[1]),(!s||g[0]&16)&&q(a,"paused",k[4]),(!s||g[0]&4)&&q(e,"mobile",k[2]),(!s||g[0]&64)&&q(e,"fullscreen",k[6]),(!s||g[0]&2)&&q(e,"invisible",k[1])},i(k){s||(d(i.$$.fragment,k),s=!0)},o(k){_(i.$$.fragment,k),s=!1},d(k){k&&C(e),V(i),t[23](null),t[24](null),u=!1,et(f)}}}function Q4(t,e,i){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=nt(),h=Fn(),{interactiveControlsOpacity$:k}=h;H(t,k,F=>i(18,o=F));let g=p.ui.isMobile;H(t,g,F=>i(2,a=F));let w=p.ui.isFullscreen;H(t,w,F=>i(6,s=F));let b=p.state.isInteractiveTime$;H(t,b,F=>i(19,l=F));let T=h.showInteractiveTimeIndicatorTooltip$;H(t,T,F=>i(17,n=F));let v=p.ui.controlsVisible;H(t,v,F=>i(20,r=F));let y=p.callbacks?.onInteractiveTimeIndicatorClick,P,Z,N,z=()=>{i(4,N=!0)},re=()=>{se(),f?.addEventListener("animationiteration",z,{once:!0})},se=()=>{i(4,N=!1),f?.removeEventListener("animationiteration",z)},O=F=>{T.set(F)},J,E=()=>{Z||(T.set(!0),y?.())};jn(()=>{T.clearTimeout(),se()});let X=()=>{T.set(!1)};function Q(F){An.call(this,t,F)}function G(F){u=F,i(0,u)}function $(F){pe[F?"unshift":"push"](()=>{u=F,i(0,u)})}function L(F){pe[F?"unshift":"push"](()=>{f=F,i(3,f)})}return t.$$set=F=>{"ref"in F&&i(0,u=F.ref)},t.$$.update=()=>{if(t.$$.dirty[0]&1048580)e:i(16,P=!a&&r);if(t.$$.dirty[0]&851968)e:i(1,Z=!l||!!o||P);if(t.$$.dirty[0]&2)e:i(4,N=Z);if(t.$$.dirty[0]&131074)e:i(5,J=n&&!Z);if(t.$$.dirty[0]&131072)e:n?re():se()},[u,Z,a,f,N,J,s,k,g,w,b,T,v,O,E,X,P,n,o,l,r,Q,G,$,L]}var zu=class extends K{constructor(e){super(),W(this,e,Q4,G4,U,{ref:0},j4,[-1,-1])}},ls=zu;function Z4(t){Se(t,"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 Vm(t,e,i){let n=t.slice();return n[209]=e[i].iconUrl,n[210]=e[i].ariaLabel,n[211]=e[i].testId,n[212]=e[i].onClick,n[213]=e[i].tooltip,n}function Lm(t){let e,i,n;function o(r){t[173](r)}let l={disabled:!t[9],tooltipContent:j("tooltip_previous"),$$slots:{default:[X4]},$$scope:{ctx:t}};return t[23].prevButton!==void 0&&(l.ref=t[23].prevButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].prevButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function X4(t){let e,i;return e=new vl({props:{click:t[12],type:"prev",disabled:!t[9],isMobile:!1}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Rm(t){let e,i,n;function o(r){t[174](r)}let l={disabled:t[74],tooltipContent:j("tooltip_restart"),$$slots:{default:[J4]},$$scope:{ctx:t}};return t[23].replayButton!==void 0&&(l.ref=t[23].replayButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].replayButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function J4(t){let e,i;return e=new zl({props:{click:t[128],disabled:t[74]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[2]&4096&&(l.disabled=n[74]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Bm(t){let e,i,n;function o(r){t[176](r)}let l={tooltipContent:t[47],disabled:t[75],$$slots:{default:[x4]},$$scope:{ctx:t}};return t[23].playButton!==void 0&&(l.ref=t[23].playButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].playButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function x4(t){let e,i,n;function o(r){t[175](r)}let l={isMobile:!1,isPlaying:t[34],click:t[85],disabled:t[75]};return t[26]!==void 0&&(l.ref=t[26]),e=new Hl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&8192&&(s.disabled=r[75]),!i&&a[0]&67108864&&(i=!0,s.ref=r[26],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function Dm(t){let e,i,n;function o(r){t[177](r)}let l={disabled:!t[8],tooltipContent:j("tooltip_next"),$$slots:{default:[$4]},$$scope:{ctx:t}};return t[23].nextButton!==void 0&&(l.ref=t[23].nextButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].nextButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function $4(t){let e,i;return e=new vl({props:{click:t[11],type:"next",disabled:!t[8],isMobile:!1}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function e3(t){let e,i,n,o,l=t[121]&&t3(t),r=t[120]&&n3(t),a=t[119]&&l3(t);return{c(){l&&l.c(),e=D(),r&&r.c(),i=D(),a&&a.c(),n=at()},m(s,u){l&&l.m(s,u),S(s,e,u),r&&r.m(s,u),S(s,i,u),a&&a.m(s,u),S(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&&(C(e),C(i),C(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function t3(t){let e,i,n;function o(r){t[178](r)}let l={disabled:t[73],tooltipContent:j("tooltip_interactive_go_back"),disabledTooltipContent:j(t[124]),$$slots:{default:[i3]},$$scope:{ctx:t}};return t[23].playPrevChapterButton!==void 0&&(l.ref=t[23].playPrevChapterButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].playPrevChapterButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function i3(t){let e,i;return e=new Xr({props:{disabled:t[73],click:t[17]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function n3(t){let e,i,n;function o(r){t[179](r)}let l={disabled:t[76],tooltipContent:j("tooltip_interactive_seek"),disabledTooltipContent:j(t[78]),$$slots:{default:[o3]},$$scope:{ctx:t}};return t[23].seekToInteractiveButton!==void 0&&(l.ref=t[23].seekToInteractiveButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].seekToInteractiveButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function o3(t){let e,i;return e=new Qr({props:{disabled:t[76],click:t[15]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function l3(t){let e,i,n;function o(r){t[180](r)}let l={tooltipContent:t[48],disabled:t[77],$$slots:{default:[r3]},$$scope:{ctx:t}};return t[23].interactiveGraphButton!==void 0&&(l.ref=t[23].interactiveGraphButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].interactiveGraphButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function r3(t){let e,i;return e=new Yr({props:{click:t[16],graphIsOpened:t[31],disabled:t[77]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Nm(t){let e,i,n;function o(r){t[181](r)}let l={tooltipContent:t[50],$$slots:{default:[s3]},$$scope:{ctx:t}};return t[23].liveButton!==void 0&&(l.ref=t[23].liveButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].liveButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function s3(t){let e,i;return e=new Ur({props:{isActiveLive:t[21],isMobile:!1,ariaLabel:t[50]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function qm(t){let e,i,n;function o(r){t[182](r)}let l={isMobile:!1,showDuration:t[55],position:t[4]?t[79]:t[80],duration:t[4]?t[81]:t[82]};return t[23].time!==void 0&&(l.ref=t[23].time),e=new Rr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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]),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].time,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function Om(t){let e,i;return e=new Gr({props:{position:t[80],duration:t[82],timeCodes:t[101]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function a3(t){let e,i,n=t[20]&&Om(t);return{c(){n&&n.c(),e=at()},m(o,l){n&&n.m(o,l),S(o,e,l),i=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=Om(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&C(e),n&&n.d(o)}}}function u3(t){let e,i;return e=new Jr({props:{iconUrl:t[209],ariaLabel:t[210]??t[213],testId:t[211],onClick:t[212]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Fm(t){let e,i;return e=new Lt({props:{tooltipContent:t[213],width:40,$$slots:{default:[u3]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Hm(t){let e,i,n;function o(r){t[185](r)}let l={disabled:!t[6],tooltipContent:t[51],disabledTooltipContent:"",$$slots:{default:[c3]},$$scope:{ctx:t}};return t[23].vkLogo!==void 0&&(l.ref=t[23].vkLogo),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].vkLogo,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function c3(t){let e,i;return e=new Fr({props:{click:t[86],targetUrl:t[7],logoClickable:t[6]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function f3(t){let e,i;return e=new Yd({props:{click:t[127]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p:_e,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function zm(t){let e,i,n;function o(r){t[187](r)}let l={tooltipContent:t[52],$$slots:{default:[d3]},$$scope:{ctx:t}};return t[23].subtitles!==void 0&&(l.ref=t[23].subtitles),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].subtitles,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function d3(t){let e,i;return e=new Vd({props:{isSubtitlesEnabled:t[18],click:t[87]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Um(t){let e,i,n,o;function l(a){t[188](a)}let r={supportLink:t[10],playerControlsHeight:t[46]?.clientHeight,returnFocus:t[14]};return t[24]!==void 0&&(r.ref=t[24]),i=new Lr({props:r}),pe.push(()=>Fe(i,"ref",l)),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","settings-menu svelte-st0uzk")},m(a,s){S(a,e,s),M(i,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)),i.$set(u)},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&C(e),V(i)}}}function Km(t){let e,i,n;function o(r){t[190](r)}let l={tooltipContent:t[27]?void 0:j("tooltip_settings_off"),$$slots:{default:[m3]},$$scope:{ctx:t}};return t[23].settings!==void 0&&(l.ref=t[23].settings),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].settings,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function m3(t){let e,i,n;function o(r){t[189](r)}let l={};return t[25]!==void 0&&(l.ref=t[25]),e=new Ol({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&33554432&&(i=!0,s.ref=r[25],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function p3(t){let e,i,n;function o(r){t[191](r)}let l={className:t[41]?"":"out-of-view",tooltipContent:t[49],$$slots:{default:[_3]},$$scope:{ctx:t}};return t[23].context!==void 0&&(l.ref=t[23].context),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].context,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function _3(t){let e,i;return e=new Mm({props:{ariaLabel:t[49]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[1]&262144&&(l.ariaLabel=n[49]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function jm(t){let e,i,n;function o(r){t[192](r)}let l={tooltipContent:t[53],$$slots:{default:[h3]},$$scope:{ctx:t}};return t[23].fullscreen!==void 0&&(l.ref=t[23].fullscreen),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].fullscreen,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function h3(t){let e,i;return e=new qr({props:{click:t[13],isFullscreen:t[30]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Wm(t){let e,i,n;function o(r){t[193](r)}let l={tooltipContent:t[54],$$slots:{default:[g3]},$$scope:{ctx:t}};return t[23].chromecast!==void 0&&(l.ref=t[23].chromecast),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].chromecast,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function g3(t){let e,i;return e=new Hr({props:{isMobile:!1,state:t[29],click:t[126]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function b3(t){let e,i,n;function o(r){t[196](r)}let l={};return t[23].interactiveTimeIndicator!==void 0&&(l.ref=t[23].interactiveTimeIndicator),e=new ls({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&8388608&&(i=!0,s.ref=r[23].interactiveTimeIndicator,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function v3(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y,P,Z,N,z,re,se,O,J,E,X,Q;i=new Wr({props:{isHidden:!t[45],isAds:t[4],canRewindLive:t[5],isRewindableLive:t[32]}});let G=t[38]&&Lm(t),$=t[35]&&Rm(t),L=t[36]&&Bm(t),F=t[37]&&Dm(t),qe=t[117]&&e3(t),ze=!t[4]&&t[33]&&Nm(t),We=t[19]&&qm(t);function Xe(me){t[183](me)}let ve={className:"w-max",disabled:!t[20],tooltipContent:j("tooltip_episodes"),$$slots:{default:[a3]},$$scope:{ctx:t}};t[23].episodes!==void 0&&(ve.ref=t[23].episodes),k=new Lt({props:ve}),pe.push(()=>Fe(k,"ref",Xe));let Be=wt(t[28]),ee=[];for(let me=0;me<Be.length;me+=1)ee[me]=Fm(Vm(t,Be,me));let ke=me=>_(ee[me],1,1,()=>{ee[me]=null}),Ge=t[43]&&!t[4]&&Hm(t);function tt(me){t[186](me)}let it={$$slots:{default:[f3]},$$scope:{ctx:t}};t[23].volume!==void 0&&(it.ref=t[23].volume),P=new Lt({props:it}),pe.push(()=>Fe(P,"ref",tt));let we=t[40]&&zm(t),Re=!t[83]&&!t[4]&&Um(t),Ze=t[42]&&!t[4]&&Km(t),Je=t[84].features.contextMenuButton&&p3(t),Ce=t[44]&&jm(t),ae=t[39]&&Wm(t),He=t[122]&&b3(t);return{c(){e=I("div"),R(i.$$.fragment),n=D(),o=I("div"),l=I("div"),G&&G.c(),r=D(),$&&$.c(),a=D(),L&&L.c(),s=D(),F&&F.c(),u=D(),qe&&qe.c(),f=D(),ze&&ze.c(),p=D(),We&&We.c(),h=D(),R(k.$$.fragment),b=D(),T=I("div");for(let me=0;me<ee.length;me+=1)ee[me].c();v=D(),Ge&&Ge.c(),y=D(),R(P.$$.fragment),N=D(),we&&we.c(),z=D(),Re&&Re.c(),re=D(),Ze&&Ze.c(),se=D(),Je&&Je.c(),O=D(),Ce&&Ce.c(),J=D(),ae&&ae.c(),E=D(),He&&He.c(),X=at(),c(l,"class","controls-left svelte-st0uzk"),Gn(()=>t[184].call(l)),c(T,"class","controls-right svelte-st0uzk"),c(o,"class","controls svelte-st0uzk"),c(e,"class","wrapper-bottom svelte-st0uzk"),q(e,"hidden",t[1]),q(e,"controls-hidden",!t[3]),q(e,"no-smooth",t[2])},m(me,le){S(me,e,le),M(i,e,null),m(e,n),m(e,o),m(o,l),G&&G.m(l,null),m(l,r),$&&$.m(l,null),m(l,a),L&&L.m(l,null),m(l,s),F&&F.m(l,null),m(l,u),qe&&qe.m(l,null),m(l,f),ze&&ze.m(l,null),m(l,p),We&&We.m(l,null),m(l,h),M(k,l,null),w=Jo(l,t[184].bind(l)),m(o,b),m(o,T);for(let Ne=0;Ne<ee.length;Ne+=1)ee[Ne]&&ee[Ne].m(T,null);m(T,v),Ge&&Ge.m(T,null),m(T,y),M(P,T,null),m(T,N),we&&we.m(T,null),m(T,z),Re&&Re.m(T,null),m(T,re),Ze&&Ze.m(T,null),m(T,se),Je&&Je.m(T,null),m(T,O),Ce&&Ce.m(T,null),m(T,J),ae&&ae.m(T,null),t[194](o),t[195](e),S(me,E,le),He&&He.m(me,le),S(me,X,le),Q=!0},p(me,le){let Ne={};le[1]&16384&&(Ne.isHidden=!me[45]),le[0]&16&&(Ne.isAds=me[4]),le[0]&32&&(Ne.canRewindLive=me[5]),le[1]&2&&(Ne.isRewindableLive=me[32]),i.$set(Ne),me[38]?G?(G.p(me,le),le[1]&128&&d(G,1)):(G=Lm(me),G.c(),d(G,1),G.m(l,r)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),me[35]?$?($.p(me,le),le[1]&16&&d($,1)):($=Rm(me),$.c(),d($,1),$.m(l,a)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),me[36]?L?(L.p(me,le),le[1]&32&&d(L,1)):(L=Bm(me),L.c(),d(L,1),L.m(l,s)):L&&(ue(),_(L,1,1,()=>{L=null}),ce()),me[37]?F?(F.p(me,le),le[1]&64&&d(F,1)):(F=Dm(me),F.c(),d(F,1),F.m(l,u)):F&&(ue(),_(F,1,1,()=>{F=null}),ce()),me[117]&&qe.p(me,le),!me[4]&&me[33]?ze?(ze.p(me,le),le[0]&16|le[1]&4&&d(ze,1)):(ze=Nm(me),ze.c(),d(ze,1),ze.m(l,p)):ze&&(ue(),_(ze,1,1,()=>{ze=null}),ce()),me[19]?We?(We.p(me,le),le[0]&524288&&d(We,1)):(We=qm(me),We.c(),d(We,1),We.m(l,h)):We&&(ue(),_(We,1,1,()=>{We=null}),ce());let Me={};if(le[0]&1048576&&(Me.disabled=!me[20]),le[0]&1048576|le[2]&1310720|le[6]&1073741824&&(Me.$$scope={dirty:le,ctx:me}),!g&&le[0]&8388608&&(g=!0,Me.ref=me[23].episodes,Oe(()=>g=!1)),k.$set(Me),le[0]&268435456){Be=wt(me[28]);let ot;for(ot=0;ot<Be.length;ot+=1){let ye=Vm(me,Be,ot);ee[ot]?(ee[ot].p(ye,le),d(ee[ot],1)):(ee[ot]=Fm(ye),ee[ot].c(),d(ee[ot],1),ee[ot].m(T,v))}for(ue(),ot=Be.length;ot<ee.length;ot+=1)ke(ot);ce()}me[43]&&!me[4]?Ge?(Ge.p(me,le),le[0]&16|le[1]&4096&&d(Ge,1)):(Ge=Hm(me),Ge.c(),d(Ge,1),Ge.m(T,y)):Ge&&(ue(),_(Ge,1,1,()=>{Ge=null}),ce());let Qe={};le[6]&1073741824&&(Qe.$$scope={dirty:le,ctx:me}),!Z&&le[0]&8388608&&(Z=!0,Qe.ref=me[23].volume,Oe(()=>Z=!1)),P.$set(Qe),me[40]?we?(we.p(me,le),le[1]&512&&d(we,1)):(we=zm(me),we.c(),d(we,1),we.m(T,z)):we&&(ue(),_(we,1,1,()=>{we=null}),ce()),!me[83]&&!me[4]?Re?(Re.p(me,le),le[0]&16|le[2]&2097152&&d(Re,1)):(Re=Um(me),Re.c(),d(Re,1),Re.m(T,re)):Re&&(ue(),_(Re,1,1,()=>{Re=null}),ce()),me[42]&&!me[4]?Ze?(Ze.p(me,le),le[0]&16|le[1]&2048&&d(Ze,1)):(Ze=Km(me),Ze.c(),d(Ze,1),Ze.m(T,se)):Ze&&(ue(),_(Ze,1,1,()=>{Ze=null}),ce()),me[84].features.contextMenuButton&&Je.p(me,le),me[44]?Ce?(Ce.p(me,le),le[1]&8192&&d(Ce,1)):(Ce=jm(me),Ce.c(),d(Ce,1),Ce.m(T,J)):Ce&&(ue(),_(Ce,1,1,()=>{Ce=null}),ce()),me[39]?ae?(ae.p(me,le),le[1]&256&&d(ae,1)):(ae=Wm(me),ae.c(),d(ae,1),ae.m(T,null)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),(!Q||le[0]&2)&&q(e,"hidden",me[1]),(!Q||le[0]&8)&&q(e,"controls-hidden",!me[3]),(!Q||le[0]&4)&&q(e,"no-smooth",me[2]),me[122]&&He.p(me,le)},i(me){if(!Q){d(i.$$.fragment,me),d(G),d($),d(L),d(F),d(qe),d(ze),d(We),d(k.$$.fragment,me);for(let le=0;le<Be.length;le+=1)d(ee[le]);d(Ge),d(P.$$.fragment,me),d(we),d(Re),d(Ze),d(Je),d(Ce),d(ae),d(He),Q=!0}},o(me){_(i.$$.fragment,me),_(G),_($),_(L),_(F),_(qe),_(ze),_(We),_(k.$$.fragment,me),ee=ee.filter(Boolean);for(let le=0;le<ee.length;le+=1)_(ee[le]);_(Ge),_(P.$$.fragment,me),_(we),_(Re),_(Ze),_(Je),_(Ce),_(ae),_(He),Q=!1},d(me){me&&(C(e),C(E),C(X)),V(i),G&&G.d(),$&&$.d(),L&&L.d(),F&&F.d(),qe&&qe.d(),ze&&ze.d(),We&&We.d(),V(k),w(),Ti(ee,me),Ge&&Ge.d(),V(P),we&&we.d(),Re&&Re.d(),Ze&&Ze.d(),Je&&Je.d(),Ce&&Ce.d(),ae&&ae.d(),t[194](null),t[195](null),He&&He.d(me)}}}function y3(t,e,i){let n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y,P,Z,N,z,re,se,O,J,E,X,Q,G,$,L,F,qe=_e,ze=()=>(qe(),qe=Ot(se,x=>i(144,F=x)),se),We,Xe=_e,ve=()=>(Xe(),Xe=Ot(re,x=>i(145,We=x)),re),Be,ee=_e,ke=()=>(ee(),ee=Ot(z,x=>i(146,Be=x)),z),Ge,tt=_e,it=()=>(tt(),tt=Ot(N,x=>i(147,Ge=x)),N),we,Re=_e,Ze=()=>(Re(),Re=Ot(Z,x=>i(148,we=x)),Z),Je,Ce=_e,ae=()=>(Ce(),Ce=Ot(P,x=>i(149,Je=x)),P),He,me=_e,le=()=>(me(),me=Ot(y,x=>i(150,He=x)),y),Ne,Me=_e,Qe=()=>(Me(),Me=Ot(v,x=>i(151,Ne=x)),v),ot,ye=_e,ft=()=>(ye(),ye=Ot(T,x=>i(152,ot=x)),T),yt,ut=_e,mt=()=>(ut(),ut=Ot(b,x=>i(153,yt=x)),b),Tt,je=_e,ti=()=>(je(),je=Ot(w,x=>i(154,Tt=x)),w),Nt,Ct=_e,ui=()=>(Ct(),Ct=Ot(g,x=>i(155,Nt=x)),g),rt,kt=_e,he=()=>(kt(),kt=Ot(k,x=>i(156,rt=x)),k),gt,St=_e,Wt=()=>(St(),St=Ot(h,x=>i(157,gt=x)),h),Pt,qt=_e,Ft=()=>(qt(),qt=Ot(p,x=>i(158,Pt=x)),p),Ht,Ui=_e,on=()=>(Ui(),Ui=Ot(f,x=>i(159,Ht=x)),f),Gt,Ai=_e,mn=()=>(Ai(),Ai=Ot(u,x=>i(160,Gt=x)),u),Ki,ji,hi,gi,ci,bi,vi,fi,yi,Rt,ki,Wi,Gi,Qt,Qi,Yt,zt,Mi,Zt,Vi,Yi,Li,Ut;t.$$.on_destroy.push(()=>qe()),t.$$.on_destroy.push(()=>Xe()),t.$$.on_destroy.push(()=>ee()),t.$$.on_destroy.push(()=>tt()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>Ce()),t.$$.on_destroy.push(()=>me()),t.$$.on_destroy.push(()=>Me()),t.$$.on_destroy.push(()=>ye()),t.$$.on_destroy.push(()=>ut()),t.$$.on_destroy.push(()=>je()),t.$$.on_destroy.push(()=>Ct()),t.$$.on_destroy.push(()=>kt()),t.$$.on_destroy.push(()=>St()),t.$$.on_destroy.push(()=>qt()),t.$$.on_destroy.push(()=>Ui()),t.$$.on_destroy.push(()=>Ai());let{bottomHidden:ii}=e,{bottomNoSmooth:Ri}=e,{showControls:Xt}=e,{controlsElementRef:di=void 0}=e,{isAds:Mt=!1}=e,{canRewindLive:Bi}=e,{logoClickable:ni}=e,{logoHidden:oi}=e,{logoTargetUrl:wi=""}=e,{showNextPrevButtons:Jt}=e,{nextButtonActive:ln}=e,{prevButtonActive:rn}=e,{isOneVideoPlaylist:Di=!1}=e,{supportLink:Ni}=e,{customFullscreenSupported:li=!0}=e,{playNextVideo:Vt}=e,{playPrevVideo:xt}=e,{repeatPlaylist:$t}=e,{toggleFullscreen:sn}=e,{returnFocus:Ci}=e,{seekToInteractive:qi}=e,{toggleGraph:an}=e,{playPrevChapter:ri}=e,xe=nt(),Si=Fn(),si=Dt(),Ue=xe.actions.internal.toggleMuted,Zi=xe.actions.internal.togglePlay,un=xe.actions.internal.pause,Xi=xe.actions.internal.toggleSubtitle,Oi=xe.callbacks?.onAudioDoesNotExistHint,pn=xe.callbacks?.onAudioDisabledHint,Ji=xe.state.duration$;H(t,Ji,x=>i(82,Li=x));let Kt=xe.state.positionWithScrubbing$;H(t,Kt,x=>i(80,Vi=x));let Sn=xe.state.playbackState$;H(t,Sn,x=>i(161,hi=x));let Fi=xe.state.chromecastConnected$;H(t,Fi,x=>i(83,Ut=x));let Hi=xe.state.isAudioAvailable$;H(t,Hi,x=>i(197,O=x));let _n=xe.state.isAudioDisabled,cn=xe.state.isEnded$;H(t,cn,x=>i(169,Qt=x));let yn=xe.state.isLive$;H(t,yn,x=>i(33,fi=x));let hn=xe.state.isActiveLive$;H(t,hn,x=>i(163,bi=x));let xi=xe.state.isRewindableLive$;H(t,xi,x=>i(32,vi=x));let $i=xe.ui.isPictureInPictureActive$;H(t,$i,x=>i(165,Rt=x));let ei=xe.ui.pictureInPictureType$;H(t,ei,x=>i(164,yi=x));let Ln=xe.ui.settingsMenuVisible;H(t,Ln,x=>i(27,X=x));let kn=xe.ui.settingsMenuOpenedByKeyboard;H(t,kn,x=>i(140,E=x));let Pn=xe.ui.controls,jt=xe.actions.internal.getVideoEpisodes(),Rn=xe.state.chromecastState$;H(t,Rn,x=>i(29,Ki=x));let Bn=xe.state.availableSubtitlesList$;H(t,Bn,x=>i(168,Gi=x));let gn=xe.state.currentSubtitle$;H(t,gn,x=>i(170,Qi=x));let bn=Pn.disabledControls$;H(t,bn,x=>i(172,zt=x));let In=xe.ui.contextMenu.visible$;H(t,In,x=>i(162,gi=x));let ie=xe.ui.contextMenu.showContextMenuBtn$;H(t,ie,x=>i(166,ki=x));let _t=xe.ui.contextMenu.openedByBtnKeyboard$;H(t,_t,x=>i(167,Wi=x));let en=xe.ui.startedByKeyboard$;H(t,en,x=>i(139,J=x));let fn=xe.ads.duration;H(t,fn,x=>i(81,Yi=x));let Dn=xe.ads.position;H(t,Dn,x=>i(79,Zt=x));let te=xe.ads.playbackState;H(t,te,x=>i(171,Yt=x));let pt=xe.ui.isFullscreen;H(t,pt,x=>i(30,ji=x));let mi=xe.ui.playerSize;H(t,mi,x=>i(142,G=x));let Nn=xe.ui.currentGridType$;H(t,Nn,x=>i(143,$=x));let Tn=xe.ui.additionalButtons$;H(t,Tn,x=>i(28,L=x));let xn=xe.actions.internal.getVideoElement,ne=xe.actions.internal.replayInteractive,En=xe.state.isInteractive,Wo=xe.state.isInteractiveTime$;H(t,Wo,x=>i(141,Q=x));let El=xe.state.showInteractiveGraph,Al=xe.state.showSeekToInteractive,Ml=xe.state.showPlayPrevChapter,vo=xe.state.showInteractiveTimeIndicator,yo=xe.state.graphIsOpened$;H(t,yo,x=>i(31,ci=x));let $n=xe.state.playPrevChapterDisabledTooltip,ro=Si.seekToInteractiveDisabledTooltip$;H(t,ro,x=>i(78,Mi=x));let Go=()=>xe.actions.internal.toggleChromecast(),ko,wo,Co,so,ao,Qo,So,Yo,Y,Bt,qn,wn,Zo,uo,Po,Io,bt,A,fe,Ve,Ye,ct="",Pi=(x,Cs)=>{if(!x){i(50,ct=j("tooltip_live"));return}Cs===jo.PlaybackState.PAUSED&&i(50,ct=j("tooltip_play"))},zi,ai,Un,To,Xo,lt={},Kn,Vl,ws,Bc,s_=(0,Gm.throttleFn)(ns,260,{leading:!1}),Ql,Yl,Zl;function a_(){_o({isAudioDisabled:_n,audioDisabledHintCallback:pn,isAudioAvailable:O,audioIsNotExistHintCallback:Oi})&&Ue()}let u_=En?ne:Di?Zi:$t;function c_(x){t.$$.not_equal(lt.prevButton,x)&&(lt.prevButton=x,i(23,lt))}function f_(x){t.$$.not_equal(lt.replayButton,x)&&(lt.replayButton=x,i(23,lt))}function d_(x){Zl=x,i(26,Zl)}function m_(x){t.$$.not_equal(lt.playButton,x)&&(lt.playButton=x,i(23,lt))}function p_(x){t.$$.not_equal(lt.nextButton,x)&&(lt.nextButton=x,i(23,lt))}function __(x){t.$$.not_equal(lt.playPrevChapterButton,x)&&(lt.playPrevChapterButton=x,i(23,lt))}function h_(x){t.$$.not_equal(lt.seekToInteractiveButton,x)&&(lt.seekToInteractiveButton=x,i(23,lt))}function g_(x){t.$$.not_equal(lt.interactiveGraphButton,x)&&(lt.interactiveGraphButton=x,i(23,lt))}function b_(x){t.$$.not_equal(lt.liveButton,x)&&(lt.liveButton=x,i(23,lt))}function v_(x){t.$$.not_equal(lt.time,x)&&(lt.time=x,i(23,lt))}function y_(x){t.$$.not_equal(lt.episodes,x)&&(lt.episodes=x,i(23,lt))}function k_(){Xo=this.clientWidth,i(22,Xo)}function w_(x){t.$$.not_equal(lt.vkLogo,x)&&(lt.vkLogo=x,i(23,lt))}function C_(x){t.$$.not_equal(lt.volume,x)&&(lt.volume=x,i(23,lt))}function S_(x){t.$$.not_equal(lt.subtitles,x)&&(lt.subtitles=x,i(23,lt))}function P_(x){Ql=x,i(24,Ql)}function I_(x){Yl=x,i(25,Yl)}function T_(x){t.$$.not_equal(lt.settings,x)&&(lt.settings=x,i(23,lt))}function E_(x){t.$$.not_equal(lt.context,x)&&(lt.context=x,i(23,lt))}function A_(x){t.$$.not_equal(lt.fullscreen,x)&&(lt.fullscreen=x,i(23,lt))}function M_(x){t.$$.not_equal(lt.chromecast,x)&&(lt.chromecast=x,i(23,lt))}function V_(x){pe[x?"unshift":"push"](()=>{bt=x,i(46,bt)})}function L_(x){pe[x?"unshift":"push"](()=>{di=x,i(0,di)})}function R_(x){t.$$.not_equal(lt.interactiveTimeIndicator,x)&&(lt.interactiveTimeIndicator=x,i(23,lt))}t.$$set=x=>{"bottomHidden"in x&&i(1,ii=x.bottomHidden),"bottomNoSmooth"in x&&i(2,Ri=x.bottomNoSmooth),"showControls"in x&&i(3,Xt=x.showControls),"controlsElementRef"in x&&i(0,di=x.controlsElementRef),"isAds"in x&&i(4,Mt=x.isAds),"canRewindLive"in x&&i(5,Bi=x.canRewindLive),"logoClickable"in x&&i(6,ni=x.logoClickable),"logoHidden"in x&&i(129,oi=x.logoHidden),"logoTargetUrl"in x&&i(7,wi=x.logoTargetUrl),"showNextPrevButtons"in x&&i(130,Jt=x.showNextPrevButtons),"nextButtonActive"in x&&i(8,ln=x.nextButtonActive),"prevButtonActive"in x&&i(9,rn=x.prevButtonActive),"isOneVideoPlaylist"in x&&i(131,Di=x.isOneVideoPlaylist),"supportLink"in x&&i(10,Ni=x.supportLink),"customFullscreenSupported"in x&&i(132,li=x.customFullscreenSupported),"playNextVideo"in x&&i(11,Vt=x.playNextVideo),"playPrevVideo"in x&&i(12,xt=x.playPrevVideo),"repeatPlaylist"in x&&i(133,$t=x.repeatPlaylist),"toggleFullscreen"in x&&i(13,sn=x.toggleFullscreen),"returnFocus"in x&&i(14,Ci=x.returnFocus),"seekToInteractive"in x&&i(15,qi=x.seekToInteractive),"toggleGraph"in x&&i(16,an=x.toggleGraph),"playPrevChapter"in x&&i(17,ri=x.playPrevChapter)},t.$$.update=()=>{if(t.$$.dirty[5]&131072)e:i(138,n=zt.has("EPISODE_BUTTON"));if(t.$$.dirty[5]&131072)e:i(77,o=zt.has("GRAPH_BUTTON"));if(t.$$.dirty[5]&131072)e:i(76,l=zt.has("SEEK_TO_INTERACTIVE_BUTTON"));if(t.$$.dirty[5]&131072)e:i(75,r=zt.has("PLAY_BUTTON"));if(t.$$.dirty[5]&131072)e:i(74,a=zt.has("REPLAY_BUTTON"));if(t.$$.dirty[5]&131072)e:i(73,s=zt.has("PLAY_PREV_CHAPTER_BUTTON"));if(t.$$.dirty[0]&16|t.$$.dirty[5]&65600)e:i(34,ko=Mt?Yt==="playing":hi===jo.PlaybackState.PLAYING);if(t.$$.dirty[5]&32768)e:i(18,wo=Qi.value!=="off");if(t.$$.dirty[0]&16|t.$$.dirty[5]&16384)e:i(35,Co=Qt&&!Mt||En);if(t.$$.dirty[0]&16|t.$$.dirty[5]&16384)e:i(36,so=!Qt||En||Mt);if(t.$$.dirty[4]&524288)e:i(134,ao=Vn($,"m"));if(t.$$.dirty[0]&272|t.$$.dirty[4]&524352)e:i(37,Qo=Jt&&Vn($,"m")&&!Mt&&ln);if(t.$$.dirty[0]&528|t.$$.dirty[4]&524352)e:i(38,So=Jt&&Vn($,"m")&&!Mt&&rn);if(t.$$.dirty[0]&536870912|t.$$.dirty[4]&524288|t.$$.dirty[5]&1536)e:i(39,Yo=Ki!==jo.ChromecastState.NOT_AVAILABLE&&!(Rt&&yi===1)&&Vn($,"m")&&!En);if(t.$$.dirty[4]&524288|t.$$.dirty[5]&8192)e:i(40,Y=Gi.length>0&&Vn($,"m"));if(t.$$.dirty[5]&6144)e:i(41,Bt=Wi||ki);if(t.$$.dirty[4]&524288)e:i(42,qn=Vn($,"s"));if(t.$$.dirty[4]&32)e:i(43,wn=!oi);if(t.$$.dirty[4]&524576|t.$$.dirty[5]&1536)e:i(44,Zo=si.features.fullscreen&&(oi||Vn($,"s"))&&!(Rt&&yi===1)&&(En?li:!0));if(t.$$.dirty[0]&16|t.$$.dirty[1]&4)e:i(19,uo=(!fi||Mt)&&!(si.features.interactiveHideTime&&En));if(t.$$.dirty[4]&262144)e:i(45,Po=G.width>100);if(t.$$.dirty[0]&16|t.$$.dirty[1]&4|t.$$.dirty[4]&17408)e:i(20,Io=!Mt&&!fi&&!!jt?.length&&ao&&!n);if(t.$$.dirty[1]&2|t.$$.dirty[5]&256)e:i(21,A=!vi||bi);if(t.$$.dirty[5]&64)e:i(47,fe=hi===jo.PlaybackState.PLAYING?j("tooltip_pause"):j("tooltip_play"));if(t.$$.dirty[1]&1)e:i(48,Ve=ci?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"));if(t.$$.dirty[5]&128)e:i(49,Ye=gi?j("aria_label_context_menu_close"):j("aria_label_context_menu_open"));if(t.$$.dirty[0]&2097152|t.$$.dirty[5]&64)e:Pi(A,hi);if(t.$$.dirty[0]&262144)e:i(52,ai=wo?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"));if(t.$$.dirty[0]&1073741824)e:i(53,Un=ji?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"));if(t.$$.dirty[0]&536870912)e:i(54,To=Ki===jo.ChromecastState.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"));if(t.$$.dirty[0]&268435456|t.$$.dirty[4]&2146435072|t.$$.dirty[5]&63)e:i(135,Kn={prevButton:Gt?Gt.right-Gt.left:0,replayButton:Ht?Ht.right-Ht.left:0,playButton:Pt?Pt.right-Pt.left:0,nextButton:gt?gt.right-gt.left:0,playPrevChapterButton:rt?rt.right-rt.left:0,seekToInteractiveButton:Nt?Nt.right-Nt.left:0,interactiveGraphButton:Tt?Tt.right-Tt.left:0,liveButton:yt?yt.right-yt.left:0,time:ot?ot.right-ot.left:0,episodes:Ne?Ne.right-Ne.left:0,vkLogo:He?He.right-He.left:0,volume:Je?Je.right-Je.left:0,subtitles:we?we.right-we.left:0,settings:Ge?Ge.right-Ge.left:0,context:Be?Be.right-Be.left:0,fullscreen:We?We.right-We.left:0,chromecast:F?F.right-F.left:0,additionalButtons:L.length?L.reduce(x=>[...x,40],[]):[]});if(t.$$.dirty[4]&6144)e:(!Vl||Vl<Kn.time)&&i(136,Vl=Kn.time);if(t.$$.dirty[0]&5767168|t.$$.dirty[4]&530432)e:{let x=0;Io&&(Vn($,"xl")?x=Kn.time:x=60);let Cs=Kn.prevButton+Kn.playButton+Kn.nextButton+Kn.seekToInteractiveButton+Kn.interactiveGraphButton+Kn.liveButton+Vl+x;i(137,ws=uo&&Xo>=Cs)}if(t.$$.dirty[4]&532480)e:i(55,Bc=ws&&Vn($,"m"));if(t.$$.dirty[0]&8388616|t.$$.dirty[4]&393216)e:s_(xn(),Pn,lt,Xt);if(t.$$.dirty[0]&167772160)e:fl(Yl,X,kn);if(t.$$.dirty[0]&150994944|t.$$.dirty[4]&65536)e:Ho(Ql,X,E);if(t.$$.dirty[0]&67108864|t.$$.dirty[4]&32768)e:os(en,J,Zl)};e:i(51,zi=si.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo"));e:mn(i(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:k,seekToInteractiveButton:g,interactiveGraphButton:w,liveButton:b,time:T,episodes:v,vkLogo:y,volume:P,subtitles:Z,settings:N,context:z,fullscreen:re,chromecast:se}=Pn,u,on(i(71,f)),Ft(i(70,p)),Wt(i(69,h)),he(i(68,k)),ui(i(67,g)),ti(i(66,w)),mt(i(65,b)),ft(i(64,T)),Qe(i(63,v)),le(i(62,y)),ae(i(61,P)),Ze(i(60,Z)),it(i(59,N)),ke(i(58,z)),ve(i(57,re)),ze(i(56,se))));return[di,ii,Ri,Xt,Mt,Bi,ni,wi,ln,rn,Ni,Vt,xt,sn,Ci,qi,an,ri,wo,uo,Io,A,Xo,lt,Ql,Yl,Zl,X,L,Ki,ji,ci,vi,fi,ko,Co,so,Qo,So,Yo,Y,Bt,qn,wn,Zo,Po,bt,fe,Ve,Ye,ct,zi,ai,Un,To,Bc,se,re,z,N,Z,P,y,v,T,b,w,g,k,h,p,f,u,s,a,r,l,o,Mi,Zt,Vi,Yi,Li,Ut,si,Zi,un,Xi,Ji,Kt,Sn,Fi,Hi,cn,yn,hn,xi,$i,ei,Ln,kn,jt,Rn,Bn,gn,bn,In,ie,_t,en,fn,Dn,te,pt,mi,Nn,Tn,En,Wo,El,Al,Ml,vo,yo,$n,ro,Go,a_,u_,oi,Jt,Di,li,$t,ao,Kn,Vl,ws,n,J,E,Q,G,$,F,We,Be,Ge,we,Je,He,Ne,ot,yt,Tt,Nt,rt,gt,Pt,Ht,Gt,hi,gi,bi,yi,Rt,ki,Wi,Gi,Qt,Qi,Yt,zt,c_,f_,d_,m_,p_,__,h_,g_,b_,v_,y_,k_,w_,C_,S_,P_,I_,T_,E_,A_,M_,V_,L_,R_]}var Uu=class extends K{constructor(e){super(),W(this,e,y3,v3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},Z4,[-1,-1,-1,-1,-1,-1,-1])}},Qm=Uu;var kl=require("@vkontakte/videoplayer-core");function k3(t){let e,i,n,o,l,r=t[2].default,a=Pe(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),i=B("g"),n=B("path"),o=B("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(i,"fill","none"),c(i,"fill-rule","evenodd"),be(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,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=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){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&C(e),a&&a.d(f)}}}function w3(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ju=class extends K{constructor(e){super(),W(this,e,w3,k3,U,{})}},Ym=ju;var Xm=require("@vkontakte/videoplayer-shared");function C3(t){Se(t,"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 Zm(t){let e;return{c(){e=I("span"),e.textContent=`${j("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(i,n){S(i,e,n)},p:_e,d(i){i&&C(e)}}}function S3(t){let e,i,n,o;var l=t[4];function r(s){return{}}l&&(i=Cn(l,r(t)));let a=t[1]&&Zm(t);return{c(){e=I("div"),i&&R(i.$$.fragment),n=D(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),q(e,"expanded",t[1])},m(s,u){S(s,e,u),i&&M(i,e,null),m(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&l!==(l=s[4])){if(i){ue();let f=i;_(f.$$.fragment,1,0,()=>{V(f,1)}),ce()}l?(i=Cn(l,r(s)),R(i.$$.fragment),d(i.$$.fragment,1),M(i,e,n)):i=null}s[1]?a?a.p(s,u):(a=Zm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&q(e,"expanded",s[1])},i(s){o||(i&&d(i.$$.fragment,s),o=!0)},o(s){i&&_(i.$$.fragment,s),o=!1},d(s){s&&C(e),i&&V(i),a&&a.d()}}}function P3(t){let e,i,n;function o(r){t[6](r)}let l={testId:t[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:t[2],ariaLabel:t[3],$$slots:{default:[S3]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a&1&&(i=!0,s.ref=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function I3(t,e,i){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=Xm.noop}=e,{ref:r=void 0}=e,a,s;function u(f){r=f,i(0,r)}return t.$$set=f=>{"muted"in f&&i(5,n=f.muted),"expanded"in f&&i(1,o=f.expanded),"click"in f&&i(2,l=f.click),"ref"in f&&i(0,r=f.ref)},t.$$.update=()=>{if(t.$$.dirty&32)e:i(3,a=n?j("tooltip_volume"):j("tooltip_volume_muted"));if(t.$$.dirty&2)e:i(4,s=o?Ko:Ym)},[r,o,l,a,s,n,u]}var Wu=class extends K{constructor(e){super(),W(this,e,I3,P3,U,{muted:5,expanded:1,click:2,ref:0},C3)}},Gu=Wu;function T3(t){let e,i,n,o,l,r=t[2].default,a=Pe(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),i=B("path"),n=B("path"),o=B("path"),c(i,"fill","currentColor"),c(i,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 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(i,"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){S(f,e,p),a&&a.m(e,null),m(e,i),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=Le(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&&C(e),a&&a.d(f)}}}function E3(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Qu=class extends K{constructor(e){super(),W(this,e,E3,T3,U,{})}},Jm=Qu;function A3(t){Se(t,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function M3(t){let e,i;return e=new Jm({props:{style:t[1],"data-testid":t[0]?"pip-icon--active":"pip-icon"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function V3(t,e,i){let n,{isActive:o=!1}=e;return t.$$set=l=>{"isActive"in l&&i(0,o=l.isActive)},t.$$.update=()=>{if(t.$$.dirty&1)e:i(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Yu=class extends K{constructor(e){super(),W(this,e,V3,M3,U,{isActive:0},A3)}},xm=Yu;var $m=require("@vkontakte/videoplayer-shared");function L3(t){let e,i;return e=new xm({props:{isActive:t[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function R3(t){let e,i,n;function o(r){t[3](r)}let l={testId:"btn-pip",ariaLabel:j("menu_pip"),click:t[2],$$slots:{default:[L3]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function B3(t,e,i){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=$m.noop}=e;function r(a){n=a,i(0,n)}return t.$$set=a=>{"ref"in a&&i(0,n=a.ref),"isPictureInPictureActive"in a&&i(1,o=a.isPictureInPictureActive),"click"in a&&i(2,l=a.click)},[n,o,l,r]}var Zu=class extends K{constructor(e){super(),W(this,e,B3,R3,U,{ref:0,isPictureInPictureActive:1,click:2})}},e0=Zu;var C0=require("@vkontakte/videoplayer-shared");function D3(t){Se(t,"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 t0(t,e,i){let n=t.slice();return n[169]=e[i].iconUrl,n[170]=e[i].ariaLabel,n[171]=e[i].testId,n[172]=e[i].onClick,n[173]=e[i].tooltip,n}function i0(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v=(!t[51]||t[53])&&n0(t),y=wt(t[56]),P=[];for(let G=0;G<y.length;G+=1)P[G]=o0(t0(t,y,G));let Z=G=>_(P[G],1,1,()=>{P[G]=null}),N=t[36]&&l0(t),z=t[37]&&r0(t),re=t[57]&&s0(t),se=t[39]&&a0(t),O=t[8]&&u0(t),J=t[34]&&c0(t),E=t[33]&&f0(t),X=t[8]&&d0(t),Q=t[96]&&!t[29]&&m0(t);return{c(){e=I("div"),i=D(),n=I("div"),v&&v.c(),o=D(),l=I("div");for(let G=0;G<P.length;G+=1)P[G].c();r=D(),N&&N.c(),a=D(),z&&z.c(),s=D(),re&&re.c(),u=D(),se&&se.c(),f=D(),p=I("div"),O&&O.c(),h=D(),J&&J.c(),k=D(),E&&E.c(),g=D(),X&&X.c(),w=D(),Q&&Q.c(),b=at(),c(e,"class","overlay-mobile svelte-1tcstu3"),q(e,"hidden",!t[42]),c(n,"class","wrapper-top-left svelte-1tcstu3"),q(n,"hidden",!t[3]),q(n,"fullscreen",t[52]),c(l,"class","wrapper-top-right svelte-1tcstu3"),q(l,"hidden",!t[3]&&!t[27]),q(l,"fullscreen",t[52]),c(p,"class","wrapper-middle svelte-1tcstu3"),q(p,"hidden",!t[3]||t[29])},m(G,$){S(G,e,$),S(G,i,$),S(G,n,$),v&&v.m(n,null),S(G,o,$),S(G,l,$);for(let L=0;L<P.length;L+=1)P[L]&&P[L].m(l,null);m(l,r),N&&N.m(l,null),m(l,a),z&&z.m(l,null),m(l,s),re&&re.m(l,null),m(l,u),se&&se.m(l,null),S(G,f,$),S(G,p,$),O&&O.m(p,null),m(p,h),J&&J.m(p,null),m(p,k),E&&E.m(p,null),m(p,g),X&&X.m(p,null),S(G,w,$),Q&&Q.m(G,$),S(G,b,$),T=!0},p(G,$){if((!T||$[1]&2048)&&q(e,"hidden",!G[42]),!G[51]||G[53]?v?(v.p(G,$),$[1]&5242880&&d(v,1)):(v=n0(G),v.c(),d(v,1),v.m(n,null)):v&&(ue(),_(v,1,1,()=>{v=null}),ce()),(!T||$[0]&8)&&q(n,"hidden",!G[3]),(!T||$[1]&2097152)&&q(n,"fullscreen",G[52]),$[1]&33554432){y=wt(G[56]);let L;for(L=0;L<y.length;L+=1){let F=t0(G,y,L);P[L]?(P[L].p(F,$),d(P[L],1)):(P[L]=o0(F),P[L].c(),d(P[L],1),P[L].m(l,r))}for(ue(),L=y.length;L<P.length;L+=1)Z(L);ce()}G[36]?N?(N.p(G,$),$[1]&32&&d(N,1)):(N=l0(G),N.c(),d(N,1),N.m(l,a)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),G[37]?z?(z.p(G,$),$[1]&64&&d(z,1)):(z=r0(G),z.c(),d(z,1),z.m(l,s)):z&&(ue(),_(z,1,1,()=>{z=null}),ce()),G[57]?re?(re.p(G,$),$[1]&67108864&&d(re,1)):(re=s0(G),re.c(),d(re,1),re.m(l,u)):re&&(ue(),_(re,1,1,()=>{re=null}),ce()),G[39]?se?(se.p(G,$),$[1]&256&&d(se,1)):(se=a0(G),se.c(),d(se,1),se.m(l,null)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),(!T||$[0]&134217736)&&q(l,"hidden",!G[3]&&!G[27]),(!T||$[1]&2097152)&&q(l,"fullscreen",G[52]),G[8]?O?(O.p(G,$),$[0]&256&&d(O,1)):(O=u0(G),O.c(),d(O,1),O.m(p,h)):O&&(ue(),_(O,1,1,()=>{O=null}),ce()),G[34]?J?(J.p(G,$),$[1]&8&&d(J,1)):(J=c0(G),J.c(),d(J,1),J.m(p,k)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),G[33]?E?(E.p(G,$),$[1]&4&&d(E,1)):(E=f0(G),E.c(),d(E,1),E.m(p,g)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),G[8]?X?(X.p(G,$),$[0]&256&&d(X,1)):(X=d0(G),X.c(),d(X,1),X.m(p,null)):X&&(ue(),_(X,1,1,()=>{X=null}),ce()),(!T||$[0]&536870920)&&q(p,"hidden",!G[3]||G[29]),G[96]&&!G[29]?Q?(Q.p(G,$),$[0]&536870912&&d(Q,1)):(Q=m0(G),Q.c(),d(Q,1),Q.m(b.parentNode,b)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce())},i(G){if(!T){d(v);for(let $=0;$<y.length;$+=1)d(P[$]);d(N),d(z),d(re),d(se),d(O),d(J),d(E),d(X),d(Q),T=!0}},o(G){_(v),P=P.filter(Boolean);for(let $=0;$<P.length;$+=1)_(P[$]);_(N),_(z),_(re),_(se),_(O),_(J),_(E),_(X),_(Q),T=!1},d(G){G&&(C(e),C(i),C(n),C(o),C(l),C(f),C(p),C(w),C(b)),v&&v.d(),Ti(P,G),N&&N.d(),z&&z.d(),re&&re.d(),se&&se.d(),O&&O.d(),J&&J.d(),E&&E.d(),X&&X.d(),Q&&Q.d(G)}}}function n0(t){let e,i,n;function o(r){t[130](r)}let l={muted:t[54],expanded:t[51]&&!t[70]&&t[55],click:t[106]};return t[20].volume!==void 0&&(l.ref=t[20].volume),e=new Gu({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].volume,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function o0(t){let e,i;return e=new Jr({props:{iconUrl:t[169],ariaLabel:t[170]??t[173],testId:t[171],onClick:t[172]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function l0(t){let e,i,n;function o(r){t[131](r)}let l={isMobile:!0,click:t[104],state:t[28]};return t[20].chromecast!==void 0&&(l.ref=t[20].chromecast),e=new Hr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].chromecast,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function r0(t){let e,i,n;function o(r){t[132](r)}let l={click:t[105],isPictureInPictureActive:t[26]};return t[20].pip!==void 0&&(l.ref=t[20].pip),e=new e0({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].pip,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function s0(t){let e,i,n;function o(r){t[133](r)}let l={};return t[22]!==void 0&&(l.ref=t[22]),e=new Ol({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&4194304&&(i=!0,s.ref=r[22],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function a0(t){let e,i,n;function o(r){t[134](r)}let l={click:t[64],targetUrl:t[7],logoClickable:t[6]};return t[20].vkLogo!==void 0&&(l.ref=t[20].vkLogo),e=new Fr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].vkLogo,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function u0(t){let e,i,n;function o(r){t[135](r)}let l={click:t[13],type:"prev",disabled:!t[10],isMobile:!0};return t[20].prevButton!==void 0&&(l.ref=t[20].prevButton),e=new vl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].prevButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function c0(t){let e,i,n;function o(r){t[136](r)}let l={disabled:t[49],click:t[63],isMobile:!0,isPlaying:t[31]};return t[20].playButton!==void 0&&(l.ref=t[20].playButton),e=new Hl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].playButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function f0(t){let e,i,n;function o(r){t[137](r)}let l={disabled:t[48],click:t[107],isMobile:!0};return t[20].replayButton!==void 0&&(l.ref=t[20].replayButton),e=new zl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].replayButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function d0(t){let e,i,n;function o(r){t[138](r)}let l={click:t[12],type:"next",disabled:!t[9],isMobile:!0};return t[20].nextButton!==void 0&&(l.ref=t[20].nextButton),e=new vl({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].nextButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function m0(t){let e,i,n,o,l=t[100]&&N3(t),r=t[98]&&q3(t),a=t[99]&&O3(t);return{c(){l&&l.c(),e=D(),r&&r.c(),i=D(),a&&a.c(),n=at()},m(s,u){l&&l.m(s,u),S(s,e,u),r&&r.m(s,u),S(s,i,u),a&&a.m(s,u),S(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&&(C(e),C(i),C(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function N3(t){let e,i,n,o,l,r;function a(u){t[139](u)}let s={hidden:!t[3],disabled:t[47],click:t[18]};return t[20].playPrevChapterButton!==void 0&&(s.ref=t[20].playPrevChapterButton),i=new Xr({props:s}),pe.push(()=>Fe(i,"ref",a)),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","wrapper-middle-left svelte-1tcstu3"),q(e,"fullscreen",t[52]),q(e,"hidden",!t[3])},m(u,f){S(u,e,f),M(i,e,null),o=!0,l||(r=de(e,"click",t[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)),i.$set(p),(!o||f[1]&2097152)&&q(e,"fullscreen",u[52]),(!o||f[0]&8)&&q(e,"hidden",!u[3])},i(u){o||(d(i.$$.fragment,u),o=!0)},o(u){_(i.$$.fragment,u),o=!1},d(u){u&&C(e),V(i),l=!1,r()}}}function q3(t){let e,i,n,o,l;function r(s){t[140](s)}let a={hidden:!t[3]&&!t[58],disabled:t[50],click:t[17],graphIsOpened:t[58]};return t[20].interactiveGraphButton!==void 0&&(a.ref=t[20].interactiveGraphButton),i=new Yr({props:a}),pe.push(()=>Fe(i,"ref",r)),{c(){e=I("div"),R(i.$$.fragment),c(e,"class",o=Oc(t[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),q(e,"fullscreen",t[52]),q(e,"hidden",!t[3]&&!t[58])},m(s,u){S(s,e,u),M(i,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)),i.$set(f),(!l||u[1]&2097152)&&q(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&q(e,"hidden",!s[3]&&!s[58])},i(s){l||(d(i.$$.fragment,s),l=!0)},o(s){_(i.$$.fragment,s),l=!1},d(s){s&&C(e),V(i)}}}function O3(t){let e,i,n,o,l,r;function a(u){t[141](u)}let s={hidden:!t[3],disabled:t[46],click:t[16]};return t[20].seekToInteractiveButton!==void 0&&(s.ref=t[20].seekToInteractiveButton),i=new Qr({props:s}),pe.push(()=>Fe(i,"ref",a)),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","wrapper-middle-right svelte-1tcstu3"),q(e,"fullscreen",t[52]),q(e,"hidden",!t[3])},m(u,f){S(u,e,f),M(i,e,null),o=!0,l||(r=de(e,"click",t[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)),i.$set(p),(!o||f[1]&2097152)&&q(e,"fullscreen",u[52]),(!o||f[0]&8)&&q(e,"hidden",!u[3])},i(u){o||(d(i.$$.fragment,u),o=!0)},o(u){_(i.$$.fragment,u),o=!1},d(u){u&&C(e),V(i),l=!1,r()}}}function p0(t){let e,i,n,o,l,r=t[53]&&_0(t),a=t[32]&&h0(t);return o=new jr({props:{position:t[59],duration:t[60]}}),{c(){r&&r.c(),e=D(),a&&a.c(),i=D(),n=I("div"),R(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),q(n,"fullscreen",t[52])},m(s,u){r&&r.m(s,u),S(s,e,u),a&&a.m(s,u),S(s,i,u),S(s,n,u),M(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=_0(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(ue(),_(r,1,1,()=>{r=null}),ce()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=h0(s),a.c(),d(a,1),a.m(i.parentNode,i)):a&&(ue(),_(a,1,1,()=>{a=null}),ce());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&q(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&&(C(e),C(i),C(n)),r&&r.d(s),a&&a.d(s),V(o)}}}function _0(t){let e,i,n,o;function l(a){t[142](a)}let r={muted:t[54],expanded:!1,click:t[106]};return t[20].volume!==void 0&&(r.ref=t[20].volume),i=new Gu({props:r}),pe.push(()=>Fe(i,"ref",l)),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","wrapper-top-right svelte-1tcstu3"),q(e,"fullscreen",t[52])},m(a,s){S(a,e,s),M(i,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)),i.$set(u),(!o||s[1]&2097152)&&q(e,"fullscreen",a[52])},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&C(e),V(i)}}}function h0(t){let e,i,n,o;function l(a){t[143](a)}let r={disabled:t[49],click:t[63],isMobile:!0,isPlaying:!t[32]};return t[20].playButton!==void 0&&(r.ref=t[20].playButton),i=new Hl({props:r}),pe.push(()=>Fe(i,"ref",l)),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){S(a,e,s),M(i,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)),i.$set(u)},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&C(e),V(i)}}}function F3(t){let e,i,n;function o(r){t[144](r)}let l={disabled:t[48],$$slots:{default:[H3]},$$scope:{ctx:t}};return t[20].replayButton!==void 0&&(l.ref=t[20].replayButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].replayButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function H3(t){let e,i;return e=new zl({props:{disabled:t[48],click:t[95]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function g0(t){let e,i,n;function o(r){t[145](r)}let l={$$slots:{default:[z3]},$$scope:{ctx:t}};return t[20].liveButton!==void 0&&(l.ref=t[20].liveButton),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].liveButton,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function z3(t){let e,i;return e=new Ur({props:{isActiveLive:t[19],isMobile:!0,ariaLabel:t[45]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function b0(t){let e,i,n;function o(r){t[146](r)}let l={showDuration:t[35],position:t[4]?t[59]:t[61],duration:t[4]?t[60]:t[62],isMobile:!0};return t[20].time!==void 0&&(l.ref=t[20].time),e=new Rr({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].time,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function v0(t){let e,i,n,o;return n=new Gr({props:{position:t[61],duration:t[62],timeCodes:t[84]}}),{c(){e=I("div"),e.textContent="\xB7",i=D(),R(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),S(l,i,r),M(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&&(C(e),C(i)),V(n,l)}}}function U3(t){let e,i,n=t[43]&&v0(t);return{c(){n&&n.c(),e=at()},m(o,l){n&&n.m(o,l),S(o,e,l),i=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=v0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&C(e),n&&n.d(o)}}}function y0(t){let e,i,n;function o(r){t[149](r)}let l={$$slots:{default:[K3]},$$scope:{ctx:t}};return t[20].settings!==void 0&&(l.ref=t[20].settings),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].settings,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function K3(t){let e,i,n;function o(r){t[148](r)}let l={};return t[22]!==void 0&&(l.ref=t[22]),e=new Ol({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&4194304&&(i=!0,s.ref=r[22],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function k0(t){let e,i,n;function o(r){t[150](r)}let l={$$slots:{default:[j3]},$$scope:{ctx:t}};return t[20].fullscreen!==void 0&&(l.ref=t[20].fullscreen),e=new Lt({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(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}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].fullscreen,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function j3(t){let e,i;return e=new qr({props:{click:t[14],isFullscreen:t[52]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function w0(t){let e,i,n,o;function l(a){t[153](a)}let r={supportLink:t[11],returnFocus:t[15]};return t[21]!==void 0&&(r.ref=t[21]),i=new Lr({props:r}),pe.push(()=>Fe(i,"ref",l)),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){S(a,e,s),M(i,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)),i.$set(u)},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&C(e),V(i)}}}function W3(t){let e,i,n;function o(r){t[154](r)}let l={};return t[20].interactiveTimeIndicator!==void 0&&(l.ref=t[20].interactiveTimeIndicator),e=new ls({props:l}),pe.push(()=>Fe(e,"ref",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&1048576&&(i=!0,s.ref=r[20].interactiveTimeIndicator,Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function G3(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y=!t[4]&&i0(t),P=t[4]&&t[30]!=="inactive"&&p0(t),Z=t[96]&&F3(t),N=!t[4]&&t[25]&&g0(t),z=t[41]&&b0(t);function re(Q){t[147](Q)}let se={className:"w-max",disabled:!t[43],$$slots:{default:[U3]},$$scope:{ctx:t}};t[20].episodes!==void 0&&(se.ref=t[20].episodes),u=new Lt({props:se}),pe.push(()=>Fe(u,"ref",re));let O=t[38]&&y0(t),J=t[40]&&k0(t);g=new Wr({props:{isAds:t[4],canRewindLive:t[5],isRewindableLive:t[24]}});let E=t[23]&&w0(t),X=t[101]&&W3(t);return{c(){y&&y.c(),e=D(),P&&P.c(),i=D(),n=I("div"),o=I("div"),l=I("div"),Z&&Z.c(),r=D(),N&&N.c(),a=D(),z&&z.c(),s=D(),R(u.$$.fragment),p=D(),O&&O.c(),h=D(),J&&J.c(),k=D(),R(g.$$.fragment),w=D(),E&&E.c(),b=D(),X&&X.c(),T=at(),c(l,"class","controls svelte-1tcstu3"),q(l,"mobile",!0),c(o,"class","controls-wrapper svelte-1tcstu3"),q(o,"fullscreen",t[52]),c(n,"class","wrapper-bottom svelte-1tcstu3"),q(n,"hidden",t[1]),q(n,"controls-hidden",!t[3]),q(n,"no-smooth",t[2]),q(n,"mobile",!0)},m(Q,G){y&&y.m(Q,G),S(Q,e,G),P&&P.m(Q,G),S(Q,i,G),S(Q,n,G),m(n,o),m(o,l),Z&&Z.m(l,null),m(l,r),N&&N.m(l,null),m(l,a),z&&z.m(l,null),m(l,s),M(u,l,null),m(l,p),O&&O.m(l,null),m(l,h),J&&J.m(l,null),t[151](l),m(o,k),M(g,o,null),t[152](n),S(Q,w,G),E&&E.m(Q,G),S(Q,b,G),X&&X.m(Q,G),S(Q,T,G),v=!0},p(Q,G){Q[4]?y&&(ue(),_(y,1,1,()=>{y=null}),ce()):y?(y.p(Q,G),G[0]&16&&d(y,1)):(y=i0(Q),y.c(),d(y,1),y.m(e.parentNode,e)),Q[4]&&Q[30]!=="inactive"?P?(P.p(Q,G),G[0]&1073741840&&d(P,1)):(P=p0(Q),P.c(),d(P,1),P.m(i.parentNode,i)):P&&(ue(),_(P,1,1,()=>{P=null}),ce()),Q[96]&&Z.p(Q,G),!Q[4]&&Q[25]?N?(N.p(Q,G),G[0]&33554448&&d(N,1)):(N=g0(Q),N.c(),d(N,1),N.m(l,a)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),Q[41]?z?(z.p(Q,G),G[1]&1024&&d(z,1)):(z=b0(Q),z.c(),d(z,1),z.m(l,s)):z&&(ue(),_(z,1,1,()=>{z=null}),ce());let $={};G[1]&4096&&($.disabled=!Q[43]),G[1]&1073745920|G[2]&1|G[5]&2097152&&($.$$scope={dirty:G,ctx:Q}),!f&&G[0]&1048576&&(f=!0,$.ref=Q[20].episodes,Oe(()=>f=!1)),u.$set($),Q[38]?O?(O.p(Q,G),G[1]&128&&d(O,1)):(O=y0(Q),O.c(),d(O,1),O.m(l,h)):O&&(ue(),_(O,1,1,()=>{O=null}),ce()),Q[40]?J?(J.p(Q,G),G[1]&512&&d(J,1)):(J=k0(Q),J.c(),d(J,1),J.m(l,null)):J&&(ue(),_(J,1,1,()=>{J=null}),ce());let L={};G[0]&16&&(L.isAds=Q[4]),G[0]&32&&(L.canRewindLive=Q[5]),G[0]&16777216&&(L.isRewindableLive=Q[24]),g.$set(L),(!v||G[1]&2097152)&&q(o,"fullscreen",Q[52]),(!v||G[0]&2)&&q(n,"hidden",Q[1]),(!v||G[0]&8)&&q(n,"controls-hidden",!Q[3]),(!v||G[0]&4)&&q(n,"no-smooth",Q[2]),Q[23]?E?(E.p(Q,G),G[0]&8388608&&d(E,1)):(E=w0(Q),E.c(),d(E,1),E.m(b.parentNode,b)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),Q[101]&&X.p(Q,G)},i(Q){v||(d(y),d(P),d(Z),d(N),d(z),d(u.$$.fragment,Q),d(O),d(J),d(g.$$.fragment,Q),d(E),d(X),v=!0)},o(Q){_(y),_(P),_(Z),_(N),_(z),_(u.$$.fragment,Q),_(O),_(J),_(g.$$.fragment,Q),_(E),_(X),v=!1},d(Q){Q&&(C(e),C(i),C(n),C(w),C(b),C(T)),y&&y.d(Q),P&&P.d(Q),Z&&Z.d(),N&&N.d(),z&&z.d(),V(u),O&&O.d(),J&&J.d(),t[151](null),V(g),t[152](null),E&&E.d(Q),X&&X.d(Q)}}}function Q3(t,e,i){let n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y,P,Z,N,z,re,se,O,J,E,X,Q,G,$,L,F,qe,ze,We,Xe,ve,{bottomHidden:Be}=e,{bottomNoSmooth:ee}=e,{showControls:ke}=e,{controlsElementRef:Ge=void 0}=e,{isAds:tt=!1}=e,{canRewindLive:it}=e,{logoClickable:we}=e,{logoHidden:Re}=e,{logoTargetUrl:Ze=""}=e,{showNextPrevButtons:Je}=e,{nextButtonActive:Ce}=e,{prevButtonActive:ae}=e,{isOneVideoPlaylist:He=!1}=e,{supportLink:me}=e,{customFullscreenSupported:le=!0}=e,{playNextVideo:Ne}=e,{playPrevVideo:Me}=e,{repeatPlaylist:Qe}=e,{toggleFullscreen:ot}=e,{returnFocus:ye}=e,{seekToInteractive:ft}=e,{toggleGraph:yt}=e,{playPrevChapter:ut}=e,{onDisabledPlayPrevChapterClick:mt}=e,{onDisabledSeekToInteractiveClick:Tt}=e,je=nt(),ti=Fn(),Nt=Dt(),Ct=je.actions.internal.toggleMuted,ui=je.actions.internal.togglePlay,rt=je.actions.internal.pause,kt=je.callbacks?.onAudioDoesNotExistHint,he=je.callbacks?.onAudioDisabledHint,gt=je.playerPhase;H(t,gt,ne=>i(126,z=ne));let St=je.state.duration$;H(t,St,ne=>i(62,ve=ne));let Wt=je.state.positionWithScrubbing$;H(t,Wt,ne=>i(61,Xe=ne));let Pt=je.state.playbackState$;H(t,Pt,ne=>i(121,h=ne));let qt=je.state.isAudioAvailable$;H(t,qt,ne=>i(51,k=ne));let Ft=je.state.isAudioDisabled,Ht=je.state.isEnded$;H(t,Ht,ne=>i(127,se=ne));let Ui=je.state.isLive$;H(t,Ui,ne=>i(25,v=ne));let on=je.state.muted$;H(t,on,ne=>i(54,G=ne));let Gt=je.state.isActiveLive$;H(t,Gt,ne=>i(124,b=ne));let Ai=je.state.isRewindableLive$;H(t,Ai,ne=>i(24,T=ne));let mn=je.ui.scrubbingInProgress;H(t,mn,ne=>i(29,re=ne));let Ki=je.ui.mobileNotReportControlHidden$;H(t,Ki,ne=>i(27,Z=ne));let ji=je.ui.isPictureInPictureActive$;H(t,ji,ne=>i(26,P=ne));let hi=je.ui.pictureInPictureType$;H(t,hi,ne=>i(125,y=ne));let gi=je.ui.mobileUnmuteButtonExpanded;H(t,gi,ne=>i(55,$=ne));let ci=je.ui.mobileUnmuteButtonVisible;H(t,ci,ne=>i(53,Q=ne));let bi=je.ui.settingsMenuVisible;H(t,bi,ne=>i(23,p=ne));let vi=je.ui.settingsMenuOpenedByKeyboard;H(t,vi,ne=>i(120,f=ne));let fi=je.ui.controls,yi=je.actions.internal.getVideoEpisodes(),Rt=je.webApi.pictureInPictureApi,ki=je.state.chromecastState$;H(t,ki,ne=>i(28,N=ne));let Wi=je.state.crashed$;H(t,Wi,ne=>i(57,F=ne));let Gi=fi.disabledControls$;H(t,Gi,ne=>i(128,J=ne));let Qt=je.ui.startedByKeyboard$;H(t,Qt,ne=>i(119,u=ne));let Qi=je.ads.duration;H(t,Qi,ne=>i(60,We=ne));let Yt=je.ads.position;H(t,Yt,ne=>i(59,ze=ne));let zt=je.ads.playbackState;H(t,zt,ne=>i(30,O=ne));let Mi=je.ui.isFullscreen;H(t,Mi,ne=>i(52,X=ne));let Zt=je.ui.playerSize;H(t,Zt,ne=>i(123,w=ne));let Vi=je.ui.additionalButtons$;H(t,Vi,ne=>i(56,L=ne));let Yi=je.actions.internal.getVideoElement,Li=je.actions.internal.replayInteractive,Ut=je.state.isInteractive,ii=je.state.isInteractiveTime$;H(t,ii,ne=>i(122,g=ne));let Ri=je.state.showInteractiveGraph,Xt=je.state.showSeekToInteractive,di=je.state.showPlayPrevChapter,Mt=je.state.showInteractiveTimeIndicator,Bi=je.state.graphIsOpened$;H(t,Bi,ne=>i(58,qe=ne));let ni=ti.seekToInteractiveDisabledTooltip$;H(t,ni,ne=>i(129,E=ne));let oi,wi,Jt,ln,rn,Di,Ni,li,Vt,xt,$t,sn,Ci,qi,an,ri,xe,Si,si,Ue={},Zi=(0,C0.throttleFn)(ns,260,{leading:!1}),un=()=>je.actions.internal.toggleChromecast();function Xi(){_o({isAudioDisabled:Ft,audioDisabledHintCallback:he,isAudioAvailable:k,audioIsNotExistHintCallback:kt})&&Ct()}async function Oi(){Rt?.isActive()?await Rt?.remove():await Rt?.request()}function pn(){!Ft&&k&&ci.set(!1),Xi()}let Ji=He?ui:Qe,Kt="",Sn=(ne,En)=>{if(!ne){i(45,Kt=j("tooltip_live"));return}En===kl.PlaybackState.PAUSED&&i(45,Kt=j("tooltip_play"))},Fi,Hi,_n=()=>{s&&mt(oi)},cn=()=>{l&&Tt(wi)};function yn(ne){t.$$.not_equal(Ue.volume,ne)&&(Ue.volume=ne,i(20,Ue))}function hn(ne){t.$$.not_equal(Ue.chromecast,ne)&&(Ue.chromecast=ne,i(20,Ue))}function xi(ne){t.$$.not_equal(Ue.pip,ne)&&(Ue.pip=ne,i(20,Ue))}function $i(ne){Hi=ne,i(22,Hi)}function ei(ne){t.$$.not_equal(Ue.vkLogo,ne)&&(Ue.vkLogo=ne,i(20,Ue))}function Ln(ne){t.$$.not_equal(Ue.prevButton,ne)&&(Ue.prevButton=ne,i(20,Ue))}function kn(ne){t.$$.not_equal(Ue.playButton,ne)&&(Ue.playButton=ne,i(20,Ue))}function Pn(ne){t.$$.not_equal(Ue.replayButton,ne)&&(Ue.replayButton=ne,i(20,Ue))}function jt(ne){t.$$.not_equal(Ue.nextButton,ne)&&(Ue.nextButton=ne,i(20,Ue))}function Rn(ne){t.$$.not_equal(Ue.playPrevChapterButton,ne)&&(Ue.playPrevChapterButton=ne,i(20,Ue))}function Bn(ne){t.$$.not_equal(Ue.interactiveGraphButton,ne)&&(Ue.interactiveGraphButton=ne,i(20,Ue))}function gn(ne){t.$$.not_equal(Ue.seekToInteractiveButton,ne)&&(Ue.seekToInteractiveButton=ne,i(20,Ue))}function bn(ne){t.$$.not_equal(Ue.volume,ne)&&(Ue.volume=ne,i(20,Ue))}function In(ne){t.$$.not_equal(Ue.playButton,ne)&&(Ue.playButton=ne,i(20,Ue))}function ie(ne){t.$$.not_equal(Ue.replayButton,ne)&&(Ue.replayButton=ne,i(20,Ue))}function _t(ne){t.$$.not_equal(Ue.liveButton,ne)&&(Ue.liveButton=ne,i(20,Ue))}function en(ne){t.$$.not_equal(Ue.time,ne)&&(Ue.time=ne,i(20,Ue))}function fn(ne){t.$$.not_equal(Ue.episodes,ne)&&(Ue.episodes=ne,i(20,Ue))}function Dn(ne){Hi=ne,i(22,Hi)}function te(ne){t.$$.not_equal(Ue.settings,ne)&&(Ue.settings=ne,i(20,Ue))}function pt(ne){t.$$.not_equal(Ue.fullscreen,ne)&&(Ue.fullscreen=ne,i(20,Ue))}function mi(ne){pe[ne?"unshift":"push"](()=>{Si=ne,i(44,Si)})}function Nn(ne){pe[ne?"unshift":"push"](()=>{Ge=ne,i(0,Ge)})}function Tn(ne){Fi=ne,i(21,Fi)}function xn(ne){t.$$.not_equal(Ue.interactiveTimeIndicator,ne)&&(Ue.interactiveTimeIndicator=ne,i(20,Ue))}t.$$set=ne=>{"bottomHidden"in ne&&i(1,Be=ne.bottomHidden),"bottomNoSmooth"in ne&&i(2,ee=ne.bottomNoSmooth),"showControls"in ne&&i(3,ke=ne.showControls),"controlsElementRef"in ne&&i(0,Ge=ne.controlsElementRef),"isAds"in ne&&i(4,tt=ne.isAds),"canRewindLive"in ne&&i(5,it=ne.canRewindLive),"logoClickable"in ne&&i(6,we=ne.logoClickable),"logoHidden"in ne&&i(110,Re=ne.logoHidden),"logoTargetUrl"in ne&&i(7,Ze=ne.logoTargetUrl),"showNextPrevButtons"in ne&&i(8,Je=ne.showNextPrevButtons),"nextButtonActive"in ne&&i(9,Ce=ne.nextButtonActive),"prevButtonActive"in ne&&i(10,ae=ne.prevButtonActive),"isOneVideoPlaylist"in ne&&i(111,He=ne.isOneVideoPlaylist),"supportLink"in ne&&i(11,me=ne.supportLink),"customFullscreenSupported"in ne&&i(112,le=ne.customFullscreenSupported),"playNextVideo"in ne&&i(12,Ne=ne.playNextVideo),"playPrevVideo"in ne&&i(13,Me=ne.playPrevVideo),"repeatPlaylist"in ne&&i(113,Qe=ne.repeatPlaylist),"toggleFullscreen"in ne&&i(14,ot=ne.toggleFullscreen),"returnFocus"in ne&&i(15,ye=ne.returnFocus),"seekToInteractive"in ne&&i(16,ft=ne.seekToInteractive),"toggleGraph"in ne&&i(17,yt=ne.toggleGraph),"playPrevChapter"in ne&&i(18,ut=ne.playPrevChapter),"onDisabledPlayPrevChapterClick"in ne&&i(114,mt=ne.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ne&&i(115,Tt=ne.onDisabledSeekToInteractiveClick)},t.$$.update=()=>{if(t.$$.dirty[4]&32)e:wi=j(E);if(t.$$.dirty[4]&16)e:i(118,n=J.has("EPISODE_BUTTON"));if(t.$$.dirty[4]&16)e:i(50,o=J.has("GRAPH_BUTTON"));if(t.$$.dirty[4]&16)e:i(46,l=J.has("SEEK_TO_INTERACTIVE_BUTTON"));if(t.$$.dirty[4]&16)e:i(49,r=J.has("PLAY_BUTTON"));if(t.$$.dirty[4]&16)e:i(48,a=J.has("REPLAY_BUTTON"));if(t.$$.dirty[4]&16)e:i(47,s=J.has("PLAY_PREV_CHAPTER_BUTTON"));if(t.$$.dirty[3]&268435456)e:i(31,Jt=h===kl.PlaybackState.PLAYING);if(t.$$.dirty[0]&1073741824)e:i(32,ln=O==="paused");if(t.$$.dirty[0]&16|t.$$.dirty[4]&8)e:i(33,rn=se&&!tt&&!Ut);if(t.$$.dirty[0]&16|t.$$.dirty[4]&8)e:i(34,Di=!se||tt);if(t.$$.dirty[3]&1073741824)e:i(116,Ni=w.width>300);if(t.$$.dirty[3]&1073741824)e:i(35,li=w.width>400);if(t.$$.dirty[0]&536870912)e:i(117,Vt=re);if(t.$$.dirty[0]&469762048|t.$$.dirty[4]&2)e:i(36,xt=N!==kl.ChromecastState.NOT_AVAILABLE&&!(P&&y===1)&&!Z&&!Ut);if(t.$$.dirty[0]&402653184|t.$$.dirty[3]&16777216|t.$$.dirty[4]&6)e:{let ne=z==="waitingLive";i(37,$t=!!Rt&&N!==kl.ChromecastState.CONNECTED&&!Z&&(y===1&&ne||!ne)&&!Vt&&!Ut)}if(t.$$.dirty[3]&16777216)e:i(38,sn=!Vt);if(t.$$.dirty[3]&1073872896)e:i(39,Ci=!Re&&w.width>350);if(t.$$.dirty[0]&67108864|t.$$.dirty[3]&17301504|t.$$.dirty[4]&2)e:i(40,qi=Nt.features.fullscreen&&!(P&&y===1)&&(Ut?le:!0)&&!Vt);if(t.$$.dirty[0]&33554448|t.$$.dirty[3]&1090519040)e:i(41,an=(!v||tt)&&w.width>260&&!Vt&&!(Nt.features.interactiveHideTime&&Ut));if(t.$$.dirty[0]&8388616)e:i(42,ri=p||ke);if(t.$$.dirty[0]&33554448|t.$$.dirty[3]&58720256)e:i(43,xe=!tt&&!v&&!!yi?.length&&Ni&&!n&&!Vt);if(t.$$.dirty[0]&16777216|t.$$.dirty[4]&1)e:i(19,si=!T||b);if(t.$$.dirty[0]&1048584|t.$$.dirty[3]&1610612736)e:Zi(Yi(),fi,Ue,ke);if(t.$$.dirty[0]&524288|t.$$.dirty[3]&268435456)e:Sn(si,h);if(t.$$.dirty[0]&12582912)e:fl(Hi,p,vi);if(t.$$.dirty[0]&10485760|t.$$.dirty[3]&134217728)e:Ho(Fi,p,f);if(t.$$.dirty[0]&1048576|t.$$.dirty[3]&67108864)e:os(Qt,u,Ue.playButton)};e:oi=j(je.state.playPrevChapterDisabledTooltip);return[Ge,Be,ee,ke,tt,it,we,Ze,Je,Ce,ae,me,Ne,Me,ot,ye,ft,yt,ut,si,Ue,Fi,Hi,p,T,v,P,Z,N,re,O,Jt,ln,rn,Di,li,xt,$t,sn,Ci,qi,an,ri,xe,Si,Kt,l,s,a,r,o,k,X,Q,G,$,L,F,qe,ze,We,Xe,ve,ui,rt,gt,St,Wt,Pt,qt,Ft,Ht,Ui,on,Gt,Ai,mn,Ki,ji,hi,gi,ci,bi,vi,yi,ki,Wi,Gi,Qt,Qi,Yt,zt,Mi,Zt,Vi,Li,Ut,ii,Ri,Xt,di,Mt,Bi,ni,un,Oi,pn,Ji,_n,cn,Re,He,le,Qe,mt,Tt,Ni,Vt,n,u,f,h,g,w,b,y,z,se,J,E,yn,hn,xi,$i,ei,Ln,kn,Pn,jt,Rn,Bn,gn,bn,In,ie,_t,en,fn,Dn,te,pt,mi,Nn,Tn,xn]}var Xu=class extends K{constructor(e){super(),W(this,e,Q3,G3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},D3,[-1,-1,-1,-1,-1,-1])}},S0=Xu;function Y3(t){let e,i,n;function o(r){t[28](r)}let l={bottomHidden:t[1],bottomNoSmooth:t[2],showControls:t[3],isAds:t[4],canRewindLive:t[5],logoClickable:t[6],logoHidden:t[7],logoTargetUrl:t[8],showNextPrevButtons:t[9],nextButtonActive:t[10],prevButtonActive:t[11],isOneVideoPlaylist:t[12],supportLink:t[13],customFullscreenSupported:t[14],playNextVideo:t[15],playPrevVideo:t[16],repeatPlaylist:t[17],toggleFullscreen:t[18],returnFocus:t[19],seekToInteractive:t[20],toggleGraph:t[21],playPrevChapter:t[22]};return t[0]!==void 0&&(l.controlsElementRef=t[0]),e=new Qm({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){M(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]),!i&&a&1&&(i=!0,s.controlsElementRef=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function Z3(t){let e,i,n;function o(r){t[27](r)}let l={bottomHidden:t[1],bottomNoSmooth:t[2],showControls:t[3],isAds:t[4],canRewindLive:t[5],logoClickable:t[6],logoHidden:t[7],logoTargetUrl:t[8],showNextPrevButtons:t[9],nextButtonActive:t[10],prevButtonActive:t[11],isOneVideoPlaylist:t[12],supportLink:t[13],customFullscreenSupported:t[14],playNextVideo:t[15],playPrevVideo:t[16],repeatPlaylist:t[17],toggleFullscreen:t[18],returnFocus:t[19],seekToInteractive:t[20],toggleGraph:t[21],playPrevChapter:t[22],onDisabledPlayPrevChapterClick:t[23],onDisabledSeekToInteractiveClick:t[24]};return t[0]!==void 0&&(l.controlsElementRef=t[0]),e=new S0({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){M(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]),!i&&a&1&&(i=!0,s.controlsElementRef=r[0],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function X3(t){let e,i,n,o,l=[Z3,Y3],r=[];function a(s,u){return s[25]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=at()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&C(n),r[e].d(s)}}}function J3(t,e,i){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:k}=e,{nextButtonActive:g}=e,{prevButtonActive:w}=e,{isOneVideoPlaylist:b=!1}=e,{supportLink:T}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:y}=e,{playPrevVideo:P}=e,{repeatPlaylist:Z}=e,{toggleFullscreen:N}=e,{returnFocus:z=rs.noop}=e,{seekToInteractive:re}=e,{toggleGraph:se}=e,{playPrevChapter:O}=e,{onDisabledPlayPrevChapterClick:J=rs.noop}=e,{onDisabledSeekToInteractiveClick:E=rs.noop}=e,Q=nt().ui.isMobile;H(t,Q,L=>i(25,n=L));function G(L){a=L,i(0,a)}function $(L){a=L,i(0,a)}return t.$$set=L=>{"bottomHidden"in L&&i(1,o=L.bottomHidden),"bottomNoSmooth"in L&&i(2,l=L.bottomNoSmooth),"showControls"in L&&i(3,r=L.showControls),"controlsElementRef"in L&&i(0,a=L.controlsElementRef),"isAds"in L&&i(4,s=L.isAds),"canRewindLive"in L&&i(5,u=L.canRewindLive),"logoClickable"in L&&i(6,f=L.logoClickable),"logoHidden"in L&&i(7,p=L.logoHidden),"logoTargetUrl"in L&&i(8,h=L.logoTargetUrl),"showNextPrevButtons"in L&&i(9,k=L.showNextPrevButtons),"nextButtonActive"in L&&i(10,g=L.nextButtonActive),"prevButtonActive"in L&&i(11,w=L.prevButtonActive),"isOneVideoPlaylist"in L&&i(12,b=L.isOneVideoPlaylist),"supportLink"in L&&i(13,T=L.supportLink),"customFullscreenSupported"in L&&i(14,v=L.customFullscreenSupported),"playNextVideo"in L&&i(15,y=L.playNextVideo),"playPrevVideo"in L&&i(16,P=L.playPrevVideo),"repeatPlaylist"in L&&i(17,Z=L.repeatPlaylist),"toggleFullscreen"in L&&i(18,N=L.toggleFullscreen),"returnFocus"in L&&i(19,z=L.returnFocus),"seekToInteractive"in L&&i(20,re=L.seekToInteractive),"toggleGraph"in L&&i(21,se=L.toggleGraph),"playPrevChapter"in L&&i(22,O=L.playPrevChapter),"onDisabledPlayPrevChapterClick"in L&&i(23,J=L.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in L&&i(24,E=L.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,p,h,k,g,w,b,T,v,y,P,Z,N,z,re,se,O,J,E,n,Q,G,$]}var Ju=class extends K{constructor(e){super(),W(this,e,J3,X3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},ss=Ju;function x3(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w=t[2].default,b=Pe(w,t,t[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"},t[0]],v={};for(let y=0;y<T.length;y+=1)v=oe(v,T[y]);return{c(){e=B("svg"),b&&b.c(),i=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(i,"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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2260_100684"),c(k,"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,v)},m(y,P){S(y,e,P),b&&b.m(e,null),m(e,i),m(i,n),m(i,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,k),g=!0},p(y,[P]){b&&b.p&&(!g||P&2)&&Te(b,w,y,y[1],g?Ie(w,y[1],P,null):Ee(y[1]),null),be(e,v=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},P&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&C(e),b&&b.d(y)}}}function $3(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var xu=class extends K{constructor(e){super(),W(this,e,$3,x3,U,{})}},P0=xu;function e5(t){let e,i;return e=new P0({props:{style:t[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function t5(t,e,i){let n,{reversed:o=!1}=e;return t.$$set=l=>{"reversed"in l&&i(1,o=l.reversed)},t.$$.update=()=>{if(t.$$.dirty&2)e:i(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var $u=class extends K{constructor(e){super(),W(this,e,t5,e5,U,{reversed:1})}},I0=$u;function i5(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T=t[2].default,v=Pe(T,t,t[1],null),y=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},t[0]],P={};for(let Z=0;Z<y.length;Z+=1)P=oe(P,y[Z]);return{c(){e=B("svg"),v&&v.c(),i=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("clipPath"),a=B("path"),s=B("filter"),u=B("feFlood"),f=B("feColorMatrix"),p=B("feOffset"),h=B("feGaussianBlur"),k=B("feColorMatrix"),g=B("feBlend"),w=B("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(i,"clip-path","url(#c)"),c(i,"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(k,"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(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_104204"),c(w,"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,P)},m(Z,N){S(Z,e,N),v&&v.m(e,null),m(e,i),m(i,n),m(i,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,k),m(s,g),m(s,w),b=!0},p(Z,[N]){v&&v.p&&(!b||N&2)&&Te(v,T,Z,Z[1],b?Ie(T,Z[1],N,null):Ee(Z[1]),null),be(e,P=Le(y,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},N&1&&Z[0]]))},i(Z){b||(d(v,Z),b=!0)},o(Z){_(v,Z),b=!1},d(Z){Z&&C(e),v&&v.d(Z)}}}function n5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ec=class extends K{constructor(e){super(),W(this,e,n5,i5,U,{})}},T0=ec;function o5(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v=t[2].default,y=Pe(v,t,t[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},t[0]],Z={};for(let N=0;N<P.length;N+=1)Z=oe(Z,P[N]);return{c(){e=B("svg"),y&&y.c(),i=B("g"),n=B("path"),o=B("path"),l=B("path"),r=B("defs"),a=B("clipPath"),s=B("path"),u=B("filter"),f=B("feFlood"),p=B("feColorMatrix"),h=B("feOffset"),k=B("feGaussianBlur"),g=B("feColorMatrix"),w=B("feBlend"),b=B("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(i,"clip-path","url(#c)"),c(i,"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(k,"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(w,"in2","BackgroundImageFix"),c(w,"result","effect1_dropShadow_2260_104293"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2260_104293"),c(b,"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,Z)},m(N,z){S(N,e,z),y&&y.m(e,null),m(e,i),m(i,n),m(i,o),m(i,l),m(e,r),m(r,a),m(a,s),m(r,u),m(u,f),m(u,p),m(u,h),m(u,k),m(u,g),m(u,w),m(u,b),T=!0},p(N,[z]){y&&y.p&&(!T||z&2)&&Te(y,v,N,N[1],T?Ie(v,N[1],z,null):Ee(N[1]),null),be(e,Z=Le(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},z&1&&N[0]]))},i(N){T||(d(y,N),T=!0)},o(N){_(y,N),T=!1},d(N){N&&C(e),y&&y.d(N)}}}function l5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var tc=class extends K{constructor(e){super(),W(this,e,l5,o5,U,{})}},E0=tc;function r5(t){let e,i;return e=new T0({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function s5(t){let e,i;return e=new E0({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function a5(t){let e,i,n,o,l=[s5,r5],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=at()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),i=r[e],i||(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&C(n),r[e].d(s)}}}function u5(t,e,i){let{isOff:n=!1}=e;return t.$$set=o=>{"isOff"in o&&i(0,n=o.isOff)},[n]}var ic=class extends K{constructor(e){super(),W(this,e,u5,a5,U,{isOff:0})}},nc=ic;function c5(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w=t[2].default,b=Pe(w,t,t[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"},t[0]],v={};for(let y=0;y<T.length;y+=1)v=oe(v,T[y]);return{c(){e=B("svg"),b&&b.c(),i=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(i,"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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2260_106627"),c(k,"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,v)},m(y,P){S(y,e,P),b&&b.m(e,null),m(e,i),m(i,n),m(i,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,k),g=!0},p(y,[P]){b&&b.p&&(!g||P&2)&&Te(b,w,y,y[1],g?Ie(w,y[1],P,null):Ee(y[1]),null),be(e,v=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},P&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&C(e),b&&b.d(y)}}}function f5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var oc=class extends K{constructor(e){super(),W(this,e,f5,c5,U,{})}},A0=oc;function d5(t){let e,i;return e=new A0({props:{style:t[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function m5(t,e,i){let n,{reversed:o=!1}=e;return t.$$set=l=>{"reversed"in l&&i(1,o=l.reversed)},t.$$.update=()=>{if(t.$$.dirty&2)e:i(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var lc=class extends K{constructor(e){super(),W(this,e,m5,d5,U,{reversed:1})}},M0=lc;function p5(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w=t[2].default,b=Pe(w,t,t[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"},t[0]],v={};for(let y=0;y<T.length;y+=1)v=oe(v,T[y]);return{c(){e=B("svg"),b&&b.c(),i=B("g"),n=B("path"),o=B("path"),l=B("defs"),r=B("filter"),a=B("feFlood"),s=B("feColorMatrix"),u=B("feOffset"),f=B("feGaussianBlur"),p=B("feColorMatrix"),h=B("feBlend"),k=B("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(i,"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(k,"in","SourceGraphic"),c(k,"in2","effect1_dropShadow_2340_106922"),c(k,"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,v)},m(y,P){S(y,e,P),b&&b.m(e,null),m(e,i),m(i,n),m(i,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,k),g=!0},p(y,[P]){b&&b.p&&(!g||P&2)&&Te(b,w,y,y[1],g?Ie(w,y[1],P,null):Ee(y[1]),null),be(e,v=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},P&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&C(e),b&&b.d(y)}}}function _5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var rc=class extends K{constructor(e){super(),W(this,e,_5,p5,U,{})}},V0=rc;function h5(t){let e,i;return e=new V0({props:{style:t[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function g5(t,e,i){let n,{reversed:o=!1}=e;return t.$$set=l=>{"reversed"in l&&i(1,o=l.reversed)},t.$$.update=()=>{if(t.$$.dirty&2)e:i(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var sc=class extends K{constructor(e){super(),W(this,e,g5,h5,U,{reversed:1})}},L0=sc;function b5(t){Se(t,"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 R0(t){let e,i=["BACKWARD_SEEK","FORWARD_SEEK"].includes(t[4]),n,o,l,r,a,s,u=["RATE_DOWN","RATE_UP"].includes(t[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(t[4]),h,k,g,w,b,T=i&&B0(t),v=t[4]==="PAUSE"&&D0(t),y=t[4]==="PLAY"&&N0(t),P=t[4]==="REPLAY"&&q0(t),Z=t[4]==="SUBTITLES_OFF"&&O0(t),N=t[4]==="SUBTITLES_ON"&&F0(t),z=u&&H0(t),re=p&&z0(t),se=t[4]==="MUTE"&&U0(t),O=t[4]==="VOLUME"&&K0(t),J=t[5]&&j0(t);return{c(){e=I("div"),T&&T.c(),n=D(),v&&v.c(),o=D(),y&&y.c(),l=D(),P&&P.c(),r=D(),Z&&Z.c(),a=D(),N&&N.c(),s=D(),z&&z.c(),f=D(),re&&re.c(),h=D(),se&&se.c(),k=D(),O&&O.c(),g=D(),J&&J.c(),w=at(),c(e,"class","svelte-4ftgwp")},m(E,X){S(E,e,X),T&&T.m(e,null),m(e,n),v&&v.m(e,null),m(e,o),y&&y.m(e,null),m(e,l),P&&P.m(e,null),m(e,r),Z&&Z.m(e,null),m(e,a),N&&N.m(e,null),m(e,s),z&&z.m(e,null),m(e,f),re&&re.m(e,null),m(e,h),se&&se.m(e,null),m(e,k),O&&O.m(e,null),S(E,g,X),J&&J.m(E,X),S(E,w,X),b=!0},p(E,X){X&16&&(i=["BACKWARD_SEEK","FORWARD_SEEK"].includes(E[4])),i?T?(T.p(E,X),X&16&&d(T,1)):(T=B0(E),T.c(),d(T,1),T.m(e,n)):T&&(ue(),_(T,1,1,()=>{T=null}),ce()),E[4]==="PAUSE"?v?X&16&&d(v,1):(v=D0(E),v.c(),d(v,1),v.m(e,o)):v&&(ue(),_(v,1,1,()=>{v=null}),ce()),E[4]==="PLAY"?y?X&16&&d(y,1):(y=N0(E),y.c(),d(y,1),y.m(e,l)):y&&(ue(),_(y,1,1,()=>{y=null}),ce()),E[4]==="REPLAY"?P?X&16&&d(P,1):(P=q0(E),P.c(),d(P,1),P.m(e,r)):P&&(ue(),_(P,1,1,()=>{P=null}),ce()),E[4]==="SUBTITLES_OFF"?Z?X&16&&d(Z,1):(Z=O0(E),Z.c(),d(Z,1),Z.m(e,a)):Z&&(ue(),_(Z,1,1,()=>{Z=null}),ce()),E[4]==="SUBTITLES_ON"?N?X&16&&d(N,1):(N=F0(E),N.c(),d(N,1),N.m(e,s)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),X&16&&(u=["RATE_DOWN","RATE_UP"].includes(E[4])),u?z?(z.p(E,X),X&16&&d(z,1)):(z=H0(E),z.c(),d(z,1),z.m(e,f)):z&&(ue(),_(z,1,1,()=>{z=null}),ce()),X&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(E[4])),p?re?(re.p(E,X),X&16&&d(re,1)):(re=z0(E),re.c(),d(re,1),re.m(e,h)):re&&(ue(),_(re,1,1,()=>{re=null}),ce()),E[4]==="MUTE"?se?X&16&&d(se,1):(se=U0(E),se.c(),d(se,1),se.m(e,k)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),E[4]==="VOLUME"?O?X&16&&d(O,1):(O=K0(E),O.c(),d(O,1),O.m(e,null)):O&&(ue(),_(O,1,1,()=>{O=null}),ce()),E[5]?J?J.p(E,X):(J=j0(E),J.c(),J.m(w.parentNode,w)):J&&(J.d(1),J=null)},i(E){b||(d(T),d(v),d(y),d(P),d(Z),d(N),d(z),d(re),d(se),d(O),b=!0)},o(E){_(T),_(v),_(y),_(P),_(Z),_(N),_(z),_(re),_(se),_(O),b=!1},d(E){E&&(C(e),C(g),C(w)),T&&T.d(),v&&v.d(),y&&y.d(),P&&P.d(),Z&&Z.d(),N&&N.d(),z&&z.d(),re&&re.d(),se&&se.d(),O&&O.d(),J&&J.d(E)}}}function B0(t){let e,i;return e=new I0({props:{reversed:t[4]==="FORWARD_SEEK"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function D0(t){let e,i;return e=new Or({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function N0(t){let e,i;return e=new bl({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function q0(t){let e,i;return e=new Zr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function O0(t){let e,i;return e=new nc({props:{isOff:!0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function F0(t){let e,i;return e=new nc({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function H0(t){let e,i;return e=new M0({props:{reversed:t[4]==="RATE_UP"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function z0(t){let e,i;return e=new L0({props:{reversed:t[4]==="EPISODE_NEXT"}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function U0(t){let e,i;return e=new Ko({props:{volume:0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function K0(t){let e,i;return e=new Ko({props:{volume:1}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function j0(t){let e,i;return{c(){e=I("span"),i=Ae(t[5]),c(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&32&&Ke(i,n[5])},d(n){n&&C(e)}}}function v5(t){let e,i,n=!t[1]&&t[4]&&R0(t);return{c(){e=I("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-4ftgwp"),q(e,"hidden",t[1]),q(e,"hot-key-helpers-container--left",t[2]),q(e,"hot-key-helpers-container--right",t[3])},m(o,l){S(o,e,l),n&&n.m(e,null),i=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&d(n,1)):(n=R0(o),n.c(),d(n,1),n.m(e,null)):n&&(ue(),_(n,1,1,()=>{n=null}),ce()),(!i||l&2)&&q(e,"hidden",o[1]),(!i||l&4)&&q(e,"hot-key-helpers-container--left",o[2]),(!i||l&8)&&q(e,"hot-key-helpers-container--right",o[3])},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&C(e),n&&n.d()}}}function y5(t,e,i){let n,o=_e,l=()=>(o(),o=Ot(r,h=>i(6,n=h)),r);t.$$.on_destroy.push(()=>o());let{data:r}=e;l();let a,s,u,f,p;return t.$$set=h=>{"data"in h&&l(i(0,r=h.data))},t.$$.update=()=>{if(t.$$.dirty&64)e:i(1,a=!n),i(2,s=n?.type==="BACKWARD_SEEK"),i(3,u=n?.type==="FORWARD_SEEK"),i(4,f=n?.type),n?.t?i(5,p=j(n.t.key,{value:n.t.value||""})):i(5,p=n?.text)},[r,a,s,u,f,p,n]}var ac=class extends K{constructor(e){super(),W(this,e,y5,v5,U,{data:0},b5)}},W0=ac;function k5(t){Se(t,"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 w5(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y;return l=new Qn({props:{direction:"up"}}),s=new Qn({props:{direction:"up"}}),h=new Qn({props:{direction:"up"}}),w=new Qn({props:{direction:"up"}}),{c(){e=I("div"),i=I("div"),n=I("div"),o=I("div"),R(l.$$.fragment),r=D(),a=I("div"),R(s.$$.fragment),u=D(),f=I("div"),p=I("div"),R(h.$$.fragment),k=D(),g=I("div"),R(w.$$.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(i,"class","button-block svelte-1yzc86r"),c(i,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",b=j("aria_label_spherical_control")),q(e,"m-shifted",t[0])},m(P,Z){S(P,e,Z),m(e,i),m(i,n),m(n,o),M(l,o,null),m(n,r),m(n,a),M(s,a,null),m(i,u),m(i,f),m(f,p),M(h,p,null),m(f,k),m(f,g),M(w,g,null),T=!0,v||(y=[de(o,"mousedown",t[1]),de(o,"mouseup",t[5]),de(o,"mouseleave",t[5]),de(a,"mousedown",t[3]),de(a,"mouseup",t[5]),de(a,"mouseleave",t[5]),de(p,"mousedown",t[4]),de(p,"mouseup",t[5]),de(p,"mouseleave",t[5]),de(g,"mousedown",t[2]),de(g,"mouseup",t[5]),de(g,"mouseleave",t[5]),de(e,"keydown",t[6]),de(e,"keyup",t[7])],v=!0)},p(P,[Z]){(!T||Z&1)&&q(e,"m-shifted",P[0])},i(P){T||(d(l.$$.fragment,P),d(s.$$.fragment,P),d(h.$$.fragment,P),d(w.$$.fragment,P),T=!0)},o(P){_(l.$$.fragment,P),_(s.$$.fragment,P),_(h.$$.fragment,P),_(w.$$.fragment,P),T=!1},d(P){P&&C(e),V(l),V(s),V(h),V(w),v=!1,et(y)}}}function C5(t,e,i){let{isShifted:n=!1}=e,o=nt(),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=k=>{if(l.has(k.code))switch(k.preventDefault(),k.stopPropagation(),k.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=k=>{l.has(k.code)&&(k.preventDefault(),k.stopPropagation(),f())};return t.$$set=k=>{"isShifted"in k&&i(0,n=k.isShifted)},[n,r,a,s,u,f,p,h]}var uc=class extends K{constructor(e){super(),W(this,e,C5,w5,U,{isShifted:0},k5)}},as=uc;function S5(t){Se(t,"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 G0(t,e,i){let n=t.slice();return n[16]=e[i].value,n}function Q0(t,e,i){let n=t.slice();return n[16]=e[i].value,n[17]=e[i].timeAppeared,n}function Y0(t){let e,i;function n(r,a){return r[7]&&r[8]?T5:r[5]?I5:P5}let o=n(t,-1),l=o(t);return{c(){e=I("div"),i=I("span"),l.c(),c(i,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),q(e,"mobile",t[3])},m(r,a){S(r,e,a),m(e,i),l.m(i,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(i,null))),a&8&&q(e,"mobile",r[3])},d(r){r&&C(e),l.d()}}}function P5(t){let e,i=wt(t[1]),n=[];for(let o=0;o<i.length;o+=1)n[o]=Z0(G0(t,i,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=at()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);S(o,e,l)},p(o,l){if(l&18){i=wt(o[1]);let r;for(r=0;r<i.length;r+=1){let a=G0(o,i,r);n[r]?n[r].p(a,l):(n[r]=Z0(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},d(o){o&&C(e),Ti(n,o)}}}function I5(t){let e,i,n=wt(t[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=J0(Q0(t,n,l));return{c(){e=I("span"),i=I("span");for(let l=0;l<o.length;l+=1)o[l].c();c(i,"class","caption-segment svelte-ovfyp5"),pi(i,"font-size",t[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){S(l,e,r),m(e,i);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(i,null)},p(l,r){if(r&68){n=wt(l[6]);let a;for(a=0;a<n.length;a+=1){let s=Q0(l,n,a);o[a]?o[a].p(s,r):(o[a]=J0(s),o[a].c(),o[a].m(i,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}r&16&&pi(i,"font-size",l[4]+"px")},d(l){l&&C(e),Ti(o,l)}}}function T5(t){let e,i,n=j("subtitles_auto_caption")+"",o;return{c(){e=I("span"),i=I("span"),o=Ae(n),c(i,"class","caption-segment svelte-ovfyp5"),pi(i,"font-size",t[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){S(l,e,r),m(e,i),m(i,o)},p(l,r){r&16&&pi(i,"font-size",l[4]+"px")},d(l){l&&C(e)}}}function Z0(t){let e,i,n=t[16]+"",o,l;return{c(){e=I("span"),i=I("span"),o=Ae(n),l=D(),c(i,"class","caption-segment svelte-ovfyp5"),pi(i,"font-size",t[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){S(r,e,a),m(e,i),m(i,o),m(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&Ke(o,n),a&16&&pi(i,"font-size",r[4]+"px")},d(r){r&&C(e)}}}function X0(t){let e=t[16]+"",i;return{c(){i=Ae(e)},m(n,o){S(n,i,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ke(i,e)},d(n){n&&C(i)}}}function J0(t){let e,i=(!t[17]||t[17]<=t[2])&&X0(t);return{c(){i&&i.c(),e=at()},m(n,o){i&&i.m(n,o),S(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?i?i.p(n,o):(i=X0(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(n){n&&C(e),i&&i.d(n)}}}function E5(t){let e,i=t[1].length>0&&Y0(t);return{c(){e=I("div"),i&&i.c(),c(e,"class","subtitles-container svelte-ovfyp5"),q(e,"shifted",t[0]),q(e,"auto",t[5]&&!t[8])},m(n,o){S(n,e,o),i&&i.m(e,null)},p(n,[o]){n[1].length>0?i?i.p(n,o):(i=Y0(n),i.c(),i.m(e,null)):i&&(i.d(1),i=null),o&1&&q(e,"shifted",n[0]),o&288&&q(e,"auto",n[5]&&!n[8])},i:_e,o:_e,d(n){n&&C(e),i&&i.d()}}}function A5(t,e,i){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=nt(),p=Dt(),h=f.state.currentSubtitle$;H(t,h,y=>i(12,n=y));let k=f.state.isAutoSubtitleCaptionVisible$;H(t,k,y=>i(8,o=y));let g,w,b,T,v;return At(()=>{v=window.setTimeout(()=>{k.set(!1)},p.autoSubtitlesTimeout)}),jn(()=>{window.clearTimeout(v)}),t.$$set=y=>{"shifted"in y&&i(0,l=y.shifted),"captions"in y&&i(1,r=y.captions),"position"in y&&i(2,a=y.position),"playerSize"in y&&i(11,s=y.playerSize),"isMobile"in y&&i(3,u=y.isMobile)},t.$$.update=()=>{if(t.$$.dirty&2048)e:{let y=s.width*.02;i(4,g=y<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:y)}if(t.$$.dirty&2)e:i(5,w=r.some(y=>y.type==="timestamp"));if(t.$$.dirty&2)e:i(6,b=r.reduce((y,{type:P,value:Z})=>(P==="timestamp"?y.push({timeAppeared:Number(Z),value:""}):y.length===0?y.push({value:String(Z)}):y[y.length-1].value=String(Z),y),[]));if(t.$$.dirty&4096)e:i(7,T=!!n.isAuto)},[l,r,a,u,g,w,b,T,o,h,k,s,n]}var cc=class extends K{constructor(e){super(),W(this,e,A5,E5,U,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},S5)}},us=cc;function M5(t){Se(t,"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 x0(t){let e,i,n;return{c(){e=I("div"),i=Ae("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Ae(t[1]),c(e,"class","text svelte-1o62kpz")},m(o,l){S(o,e,l),m(e,i),m(e,n)},p(o,l){l&2&&Ke(n,o[1])},d(o){o&&C(e)}}}function V5(t){let e,i,n,o,l,r,a=t[1]&&x0(t);return{c(){e=I("div"),i=I("div"),i.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=D(),a&&a.c(),c(i,"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('${t[0]||""}')`)},m(s,u){S(s,e,u),m(e,i),m(e,n),a&&a.m(e,null),l||(r=de(e,"click",t[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=x0(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&&C(e),a&&a.d(),l=!1,r()}}}function L5(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){An.call(this,t,r)}return t.$$set=r=>{"thumbUrl"in r&&i(0,n=r.thumbUrl),"chromecastDeviceName"in r&&i(1,o=r.chromecastDeviceName)},[n,o,l]}var fc=class extends K{constructor(e){super(),W(this,e,L5,V5,U,{thumbUrl:0,chromecastDeviceName:1},M5)}},cs=fc;function R5(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 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){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function B5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var dc=class extends K{constructor(e){super(),W(this,e,B5,R5,U,{})}},$0=dc;function D5(t){Se(t,"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 N5(t){let e,i,n;return i=new $0({}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){S(o,e,l),M(i,e,null),n=!0},p:_e,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}var mc=class extends K{constructor(e){super(),W(this,e,null,N5,U,{},D5)}},fs=mc;function q5(t){Se(t,"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 O5(t){let e,i,n,o,l,r,a,s,u,f;return l=new bl({}),{c(){e=I("div"),i=I("div"),n=I("div"),o=D(),R(l.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(i,"class","playButton svelte-17wno3"),c(i,"tabindex","0"),c(i,"role","button"),c(i,"aria-label",r=j("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${t[0]||""}')`),q(e,"hidden",t[1])},m(p,h){S(p,e,h),m(e,i),m(i,n),m(i,o),M(l,i,null),s=!0,u||(f=[de(i,"keydown",t[3]),de(e,"click",st(function(){Ii(t[2])&&t[2].apply(this,arguments)}))],u=!0)},p(p,[h]){t=p,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${t[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&q(e,"hidden",t[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){_(l.$$.fragment,p),s=!1},d(p){p&&C(e),V(l),u=!1,et(f)}}}function F5(t,e,i){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=nt().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),l())};return t.$$set=u=>{"thumbUrl"in u&&i(0,n=u.thumbUrl),"hidden"in u&&i(1,o=u.hidden),"startVideo"in u&&i(2,l=u.startVideo)},[n,o,l,s]}var pc=class extends K{constructor(e){super(),W(this,e,F5,O5,U,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},q5)}get handlePressKey(){return this.$$.ctx[3]}},ds=pc;function H5(t){Se(t,"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(
28
28
  0deg,
29
29
  rgba(0, 0, 0, 0) 0%,
30
30
  rgba(0, 0, 0, 0.02) 19%,
31
31
  rgba(0, 0, 0, 0.10) 34%,
32
32
  rgba(0, 0, 0, 0.40) 60%,
33
33
  rgba(0, 0, 0, 0.60) 100%
34
- )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function G5(i){let e,t;return{c(){e=P("div"),t=Me(i[0]),c(e,"class","title svelte-1bcvcf2"),O(e,"hidden",i[1])},m(n,o){S(n,e,o),m(e,t)},p(n,[o]){o&1&&Ke(t,n[0]),o&2&&O(e,"hidden",n[1])},i:_e,o:_e,d(n){n&&C(e)}}}function Q5(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 _c=class extends U{constructor(e){super(),j(this,e,Q5,G5,z,{title:0,isHidden:1},W5)}},np=_c;function Y5(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 op(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Me(i[0]),o=N(),l=P("span"),l.textContent=`${K("waiting_live_day_value")}`,r=N(),a=P("span"),a.textContent=`${K("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){S(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&1&&Ke(n,s[0])},d(s){s&&(C(e),C(r),C(a))}}}function lp(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Me(i[1]),o=N(),l=P("span"),l.textContent=`${K("waiting_live_hour_value")}`,r=N(),a=P("span"),a.textContent=`${K("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){S(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&2&&Ke(n,s[1])},d(s){s&&(C(e),C(r),C(a))}}}function rp(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Me(i[2]),o=N(),l=P("span"),l.textContent=`${K("waiting_live_minute_value")}`,r=N(),a=P("span"),a.textContent=`${K("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){S(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&4&&Ke(n,s[2])},d(s){s&&(C(e),C(r),C(a))}}}function sp(i){let e,t,n,o,l;return{c(){e=P("div"),t=P("span"),n=Me(i[3]),o=N(),l=P("span"),l.textContent=`${K("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){S(r,e,a),m(e,t),m(t,n),m(e,o),m(e,l)},p(r,a){a&8&&Ke(n,r[3])},d(r){r&&C(e)}}}function Z5(i){let e,t,n,o,l=i[0]&&op(i),r=i[1]&&lp(i),a=i[2]&&rp(i),s=i[3]&&sp(i);return{c(){e=P("div"),l&&l.c(),t=N(),r&&r.c(),n=N(),a&&a.c(),o=N(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){S(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=op(u),l.c(),l.m(e,t)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=lp(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=rp(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=sp(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:_e,o:_e,d(u){u&&C(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function X5(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=w=>String(w).padStart(2,"0"),p=w=>{let g=Math.floor(w/86400);g&&(w-=g*86400,t(0,l=f(g)));let k=Math.floor(w/3600);t(1,r=f(k));let y=Math.floor(w/60)%60;t(2,a=f(y));let T=w%60;t(3,s=f(T))},h=()=>{let w=Math.floor(Date.now()/1e3),g=n-w;p(g),g>=1?u=requestAnimationFrame(h):o()};return Tt(()=>{u=requestAnimationFrame(h)}),jn(()=>{cancelAnimationFrame(u)}),i.$$set=w=>{"startTime"in w&&t(4,n=w.startTime),"onTimerOver"in w&&t(5,o=w.onTimerOver)},[l,r,a,s,n,o]}var hc=class extends U{constructor(e){super(),j(this,e,X5,Z5,z,{startTime:4,onTimerOver:5},Y5)}},ap=hc;function J5(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=oe(f,u[p]);return{c(){e=B("svg"),s&&s.c(),t=B("path"),n=B("path"),o=B("path"),l=B("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"),hi(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"),hi(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"),hi(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"),hi(l,"opacity",".986"),ge(e,f)},m(p,h){S(p,e,h),s&&s.m(e,null),m(e,t),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Te(s,a,p,p[1],r?Ie(a,p[1],h,null):Ee(p[1]),null),ge(e,f=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){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&C(e),s&&s.d(p)}}}function x5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var gc=class extends U{constructor(e){super(),j(this,e,x5,J5,z,{})}},up=gc;function $5(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 e6(i){let e,t,n,o,l;return o=new ap({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=P("div"),t=P("span"),t.textContent=`${K("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(r,a){S(r,e,a),m(e,t),m(e,n),V(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&&C(e),L(o)}}}function t6(i){let e,t,n,o,l,r;return n=new up({}),{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=N(),l=P("span"),l.textContent=`${K("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){S(a,e,s),m(e,t),V(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&&C(e),L(n)}}}function i6(i){let e,t,n,o,l,r=[t6,e6],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){S(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):(ae(),_(a[p],1,1,()=>{a[p]=null}),ue(),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&&C(e),a[t].d()}}}function n6(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 bc=class extends U{constructor(e){super(),j(this,e,n6,i6,z,{thumbUrl:0,startTime:1},$5)}},ps=bc;function o6(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 l6(i){let e,t;return{c(){e=P("div"),t=P("p"),t.textContent=`${K("waiting_record_title")}`,c(t,"class","waiting-title svelte-1bcnzdw"),c(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){S(n,e,o),m(e,t)},p:_e,i:_e,o:_e,d(n){n&&C(e)}}}var vc=class extends U{constructor(e){super(),j(this,e,null,l6,z,{},o6)}},_s=vc;var{window:r6}=Vo;function s6(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 fp(i){let e,t;return e=new ps({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function dp(i){let e,t;return e=new _s({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function mp(i){let e,t,n;return t=new br({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","ads-container svelte-1o4wf3x"),O(e,"hidden",i[38]!=="ads")},m(o,l){S(o,e,l),V(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)&&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&&C(e),L(t)}}}function pp(i){let e,t;return e=new I1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function _p(i){let e,t;return e=new np({props:{title:i[2],isHidden:!i[36]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function hp(i){let e,t;return e=new us({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function gp(i){let e,t,n;return t=new ur({props:{"aria-label":K("video360")}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,l){S(o,e,l),V(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&&C(e),L(t)}}}function bp(i){let e,t;return e=new fs({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&8388608&&(l.chromecastDeviceName=n[54]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function vp(i){let e,t;return e=new cs({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&33554432&&(l.captions=n[56]),o[1]&67108864&&(l.position=n[57]),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){L(e,n)}}}function yp(i){let e,t,n,o,l;return t=new ds({}),{c(){e=P("div"),R(t.$$.fragment)},m(r,a){S(r,e,a),V(t,e,null),n=!0,o||(l=[de(e,"contextmenu",It(i[108])),de(e,"click",st(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&&C(e),L(t),o=!1,et(l)}}}function kp(i){let e,t,n;function o(r){i[157](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="waitingLive"||i[38]==="waitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[58]!==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:Tp,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[156],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new as({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){V(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]&134217728&&(s.canRewindLive=r[6]&&r[58]!==0),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&16384&&(s.logoTargetUrl=r[14]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&8388608&&(s.playNextVideo=r[23]),a[0]&16777216&&(s.playPrevVideo=r[24]),a[0]&33554432&&(s.repeatPlaylist=r[25]),a[1]&131072&&(s.returnFocus=r[156]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=r[41],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function wp(i){let e,t;return e=new Tr({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Cp(i){let e,t;return e=new q1({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Sp(i){let e,t;return e=new Sr({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Pp(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v,I,G,q,F,fe;e=new ms({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let re=i[38]==="waitingLive"&&fp(i),D=i[38]==="waitingRecord"&&dp(i),A=i[7]&&i[22]&&mp(i),$=i[31]&&i[18]&&i[19]&&pp(i),Y=i[44]&&_p(i),X=i[49]&&hp(i),W=i[53]&&gp(i),ne=i[39]&&bp(i),E=i[55].value!=="off"&&vp(i),Q=i[37]&&yp(i),Be=i[22]&&kp(i);g=new yr({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),y=new Y0({props:{data:i[103]}});function je(J){i[159](J)}let Qe={supportLink:i[21],returnFocus:i[158],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Qe.menuElementRef=i[32]),b=new r1({props:Qe}),pe.push(()=>Fe(b,"menuElementRef",je));let Xe=i[42]&&wp(i),qe=i[62]&&Cp(i),ye=i[63]&&Sp(i);return{c(){R(e.$$.fragment),t=N(),re&&re.c(),n=N(),D&&D.c(),o=N(),A&&A.c(),l=N(),$&&$.c(),r=N(),Y&&Y.c(),a=N(),X&&X.c(),s=N(),W&&W.c(),u=N(),ne&&ne.c(),f=N(),E&&E.c(),p=N(),Q&&Q.c(),h=N(),Be&&Be.c(),w=N(),R(g.$$.fragment),k=N(),R(y.$$.fragment),T=N(),R(b.$$.fragment),I=N(),Xe&&Xe.c(),G=N(),qe&&qe.c(),q=N(),ye&&ye.c(),F=ut()},m(J,we){V(e,J,we),S(J,t,we),re&&re.m(J,we),S(J,n,we),D&&D.m(J,we),S(J,o,we),A&&A.m(J,we),S(J,l,we),$&&$.m(J,we),S(J,r,we),Y&&Y.m(J,we),S(J,a,we),X&&X.m(J,we),S(J,s,we),W&&W.m(J,we),S(J,u,we),ne&&ne.m(J,we),S(J,f,we),E&&E.m(J,we),S(J,p,we),Q&&Q.m(J,we),S(J,h,we),Be&&Be.m(J,we),S(J,w,we),V(g,J,we),S(J,k,we),V(y,J,we),S(J,T,we),V(b,J,we),S(J,I,we),Xe&&Xe.m(J,we),S(J,G,we),qe&&qe.m(J,we),S(J,q,we),ye&&ye.m(J,we),S(J,F,we),fe=!0},p(J,we){let We={};we[0]&32|we[1]&192&&(We.hidden=J[38]!=="thumb"||J[37]||J[92]&&J[5]),we[0]&8&&(We.thumbUrl=J[3]),we[0]&536870912&&(We.startVideo=J[29]),e.$set(We),J[38]==="waitingLive"?re?(re.p(J,we),we[1]&128&&d(re,1)):(re=fp(J),re.c(),d(re,1),re.m(n.parentNode,n)):re&&(ae(),_(re,1,1,()=>{re=null}),ue()),J[38]==="waitingRecord"?D?we[1]&128&&d(D,1):(D=dp(J),D.c(),d(D,1),D.m(o.parentNode,o)):D&&(ae(),_(D,1,1,()=>{D=null}),ue()),J[7]&&J[22]?A?(A.p(J,we),we[0]&4194432&&d(A,1)):(A=mp(J),A.c(),d(A,1),A.m(l.parentNode,l)):A&&(ae(),_(A,1,1,()=>{A=null}),ue()),J[31]&&J[18]&&J[19]?$?($.p(J,we),we[0]&786432|we[1]&1&&d($,1)):($=pp(J),$.c(),d($,1),$.m(r.parentNode,r)):$&&(ae(),_($,1,1,()=>{$=null}),ue()),J[44]?Y?(Y.p(J,we),we[1]&8192&&d(Y,1)):(Y=_p(J),Y.c(),d(Y,1),Y.m(a.parentNode,a)):Y&&(ae(),_(Y,1,1,()=>{Y=null}),ue()),J[49]?X?(X.p(J,we),we[1]&262144&&d(X,1)):(X=hp(J),X.c(),d(X,1),X.m(s.parentNode,s)):X&&(ae(),_(X,1,1,()=>{X=null}),ue()),J[53]?W?(W.p(J,we),we[1]&4194304&&d(W,1)):(W=gp(J),W.c(),d(W,1),W.m(u.parentNode,u)):W&&(ae(),_(W,1,1,()=>{W=null}),ue()),J[39]?ne?(ne.p(J,we),we[1]&256&&d(ne,1)):(ne=bp(J),ne.c(),d(ne,1),ne.m(f.parentNode,f)):ne&&(ae(),_(ne,1,1,()=>{ne=null}),ue()),J[55].value!=="off"?E?(E.p(J,we),we[1]&16777216&&d(E,1)):(E=vp(J),E.c(),d(E,1),E.m(p.parentNode,p)):E&&(ae(),_(E,1,1,()=>{E=null}),ue()),J[37]?Q?(Q.p(J,we),we[1]&64&&d(Q,1)):(Q=yp(J),Q.c(),d(Q,1),Q.m(h.parentNode,h)):Q&&(ae(),_(Q,1,1,()=>{Q=null}),ue()),J[22]?Be?(Be.p(J,we),we[0]&4194304&&d(Be,1)):(Be=kp(J),Be.c(),d(Be,1),Be.m(w.parentNode,w)):Be&&(ae(),_(Be,1,1,()=>{Be=null}),ue());let $e={};we[1]&268435456&&($e.isLive=J[59]),we[1]&4096&&($e.isHidden=!J[43]),we[1]&1048576&&($e.isPlaying=J[51]),we[1]&67108864&&($e.position=J[57]),we[1]&536870912&&($e.duration=J[60]),g.$set($e);let it={};we[0]&2097152&&(it.supportLink=J[21]),we[1]&131072&&(it.returnFocus=J[158]),we[1]&4&&(it.visible=J[33]),we[1]&512&&(it.playerContainerRef=J[40]),we[1]&1024&&(it.controlsContainerRef=J[41]),we[1]&1073741824&&(it.position=J[61]),!v&&we[1]&2&&(v=!0,it.menuElementRef=J[32],Oe(()=>v=!1)),b.$set(it),J[42]?Xe?we[1]&2048&&d(Xe,1):(Xe=wp(J),Xe.c(),d(Xe,1),Xe.m(G.parentNode,G)):Xe&&(ae(),_(Xe,1,1,()=>{Xe=null}),ue()),J[62]?qe?we[2]&1&&d(qe,1):(qe=Cp(J),qe.c(),d(qe,1),qe.m(q.parentNode,q)):qe&&(ae(),_(qe,1,1,()=>{qe=null}),ue()),J[63]?ye?we[2]&2&&d(ye,1):(ye=Sp(J),ye.c(),d(ye,1),ye.m(F.parentNode,F)):ye&&(ae(),_(ye,1,1,()=>{ye=null}),ue())},i(J){fe||(d(e.$$.fragment,J),d(re),d(D),d(A),d($),d(Y),d(X),d(W),d(ne),d(E),d(Q),d(Be),d(g.$$.fragment,J),d(y.$$.fragment,J),d(b.$$.fragment,J),d(Xe),d(qe),d(ye),fe=!0)},o(J){_(e.$$.fragment,J),_(re),_(D),_(A),_($),_(Y),_(X),_(W),_(ne),_(E),_(Q),_(Be),_(g.$$.fragment,J),_(y.$$.fragment,J),_(b.$$.fragment,J),_(Xe),_(qe),_(ye),fe=!1},d(J){J&&(C(t),C(n),C(o),C(l),C(r),C(a),C(s),C(u),C(f),C(p),C(h),C(w),C(k),C(T),C(I),C(G),C(q),C(F)),L(e,J),re&&re.d(J),D&&D.d(J),A&&A.d(J),$&&$.d(J),Y&&Y.d(J),X&&X.d(J),W&&W.d(J),ne&&ne.d(J),E&&E.d(J),Q&&Q.d(J),Be&&Be.d(J),L(g,J),L(y,J),L(b,J),Xe&&Xe.d(J),qe&&qe.d(J),ye&&ye.d(J)}}}function a6(i){let e,t,n,o,l=i[52],r,a,s,u,f=Pp(i);return{c(){e=P("div"),t=P("div"),o=N(),f.c(),r=ut(),c(t,"class","video-container svelte-1o4wf3x"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),c(t,"data-testid","video-container"),c(t,"data-is-playing",i[51]),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){S(p,e,h),m(e,t),i[155](t),S(p,o,h),f.m(p,h),S(p,r,h),a=!0,s||(u=[de(e,"contextmenu",It(i[108])),de(e,"mousedown",It(i[113])),de(e,"mouseup",It(i[114])),de(e,"click",It(i[116])),de(e,"dblclick",It(i[115]))],s=!0)},p(p,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&c(t,"style",n),(!a||h[1]&1048576)&&c(t,"data-is-playing",p[51]),(!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]&2097152&&z(l,l=p[52])?(ae(),_(f,1,1,_e),ue(),f=Pp(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&&(C(e),C(o),C(r)),i[155](null),f.d(p),s=!1,et(u)}}}function u6(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:[a6]},$$scope:{ctx:i}};return t=new E1({props:s}),i[160](t),{c(){e=P("div"),R(t.$$.fragment),n=N(),o=P("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-1o4wf3x")},m(u,f){S(u,e,f),V(t,e,null),m(e,n),m(e,o),i[161](o),i[162](e),l=!0,r||(a=[de(r6,"blur",i[107]),de(e,"mouseenter",i[109]),de(e,"mouseleave",i[111]),de(e,"mousemove",i[112]),de(e,"click",i[120],!0),de(e,"focusin",i[110],!0)],r=!0)},p(u,f){let p={};f[1]&128&&(p.isAds=u[38]==="ads"),f[1]&65536&&(p.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&4&&(p.$$scope={dirty:f,ctx:u}),t.$set(p)},i(u){l||(d(t.$$.fragment,u),l=!0)},o(u){_(t.$$.fragment,u),l=!1},d(u){u&&C(e),i[160](null),L(t),i[161](null),i[162](null),r=!1,et(a)}}}var Tp=!0;function yc(i){return i?i.offsetTop+yc(i.offsetParent):0}function Ep(i){return i?i.offsetLeft+Ep(i.offsetParent):0}function c6(i,e,t){let n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v,I,G,q,F,fe,re,D,A,$,Y,X,W,ne,E,Q,Be,je,Qe,Xe,qe,ye,J,we,We,$e,it,{store:ke}=e,{uiConfig:Re}=e,{title:Ge}=e,{thumbUrl:Je}=e,{videoContainer:Se}=e,{interactiveContainer:se}=e,{live:ze}=e,{autoplay:me}=e,{canRewindLive:le}=e,{showAds:Ne}=e,{adsSlotId:Ae=void 0}=e,{adsParams:Ue=void 0}=e,{adsPreviewParam:at=void 0}=e,{duration:ve=void 0}=e,{logoClickable:dt}=e,{logoHidden:nt}=e,{logoTargetUrl:gt=""}=e,{showNextPrevButtons:wt=!1}=e,{nextButtonActive:At=!1}=e,{prevButtonActive:Ye=!1}=e,{endScreenVideoTitle:Ft=void 0}=e,{endScreenVideoThumb:Rt=void 0}=e,{isOneVideoPlaylist:St=!1}=e,{supportLink:ui}=e,{shadowRootContainer:lt=void 0}=e,{outerContainerRef:bt=void 0}=e,{playerStarted:be=!1}=e,{fullScreenTarget:_t=void 0}=e,{showMiniTimer:Pt=!1}=e,{playNextVideo:$t=hs.noop}=e,{playPrevVideo:vt=hs.noop}=e,{repeatPlaylist:Kt=hs.noop}=e,{seekToInteractive:jt}=e,{toggleGraph:Wt}=e,{playPrevChapter:Hi}=e,{firstStart:tn}=e,ei=ke.getLogger().createComponentLog("Root component"),Ai=ke.interfaceLanguage$;H(i,Ai,Z=>t(52,Q=Z));let dn=ke.state.playbackState$;H(i,dn,Z=>t(152,X=Z));let vi=ke.ads.playbackState;H(i,vi,Z=>t(153,W=Z));let nn=ke.state.positionWithScrubbing$;H(i,nn,Z=>t(57,qe=Z));let ci=ke.state.duration$;H(i,ci,Z=>t(60,we=Z));let Mi=ke.playerPhase;H(i,Mi,Z=>t(38,re=Z));let fi=ke.ui.isFullscreen;H(i,fi,Z=>t(142,g=Z));let yi=ke.ui.controlsVisible;H(i,yi,Z=>t(36,I=Z));let di=ke.ui.settingsMenuVisible;H(i,di,Z=>t(140,s=Z));let ki=ke.ui.scrubbingInProgress;H(i,ki,Z=>t(144,b=Z));let Bt=ke.ui.contextMenu.visible$;H(i,Bt,Z=>t(33,n=Z));let Yt=ke.ui.debugPanelVisible;H(i,Yt,Z=>t(63,it=Z));let on=ke.state.isLoaderVisible;H(i,on,Z=>t(154,ne=Z));let zi=ke.state.isEnded$;H(i,zi,Z=>t(141,f=Z));let ti=ke.state.chromecastConnected$;H(i,ti,Z=>t(39,$=Z));let wi=ke.state.chromecastDeviceName$;H(i,wi,Z=>t(54,je=Z));let Ui=ke.ads.postrollPassed;H(i,Ui,Z=>t(147,F=Z));let Vi=ke.state.isLive$;H(i,Vi,Z=>t(59,J=Z));let Mt=ke.state.isPlaying$;H(i,Mt,Z=>t(51,E=Z));let ln=ke.state.crashed$;H(i,ln,Z=>t(37,q=Z));let Zt=ke.webApi.pictureInPictureApi,Li=ke.state.currentSubtitle$;H(i,Li,Z=>t(55,Qe=Z));let Ki=ke.state.currentSubtitleCaptions$;H(i,Ki,Z=>t(56,Xe=Z));let ji=ke.state.duration$;H(i,ji,Z=>t(58,ye=Z));let Gt=ke.state.graphIsOpened$;H(i,Gt,Z=>t(148,fe=Z));let mi=ke.ui.playerSize;H(i,mi,Z=>t(34,h=Z));let pi=ke.ui.is3DVideo;H(i,pi,Z=>t(49,p=Z));let ii=ke.ui.icon3DVideoVisible;H(i,ii,Z=>t(53,Be=Z));let Xt=ke.ui.rotateAlpha;H(i,Xt,Z=>t(35,T=Z));let Vt=ke.state.isInteractive,ni=ke.state.isInteractiveTime$;H(i,ni,Z=>t(145,v=Z));let Ri=ke.state.isInteractiveExpectation$;H(i,Ri,Z=>t(151,Y=Z));let Ci=ke.state.hasInteractiveBranches,Jt=ke.ui.touched;H(i,Jt,Z=>t(149,D=Z));let oi=ke.ui.modals.hotKeyMap.data;H(i,oi,Z=>t(169,u=Z));let Wi=ke.ui.modals.hotKeyMap.show;H(i,Wi,Z=>t(62,$e=Z));let Gi=ke.ui.overlayContainer$,mn=ke.ui.controls.interactiveTimeIndicator;H(i,mn,Z=>t(170,w=Z));let Qi=ke.state.showInteractiveTimeIndicator,Dt=ke.ui.contextMenu.position$;H(i,Dt,Z=>t(61,We=Z));let Nt=ke.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Si}=qn();H(i,Si,Z=>t(143,y=Z));let li,Yi,Bi,rn,Pi;oi.set(qf());let Di,tt,ri=De(!1);H(i,ri,Z=>t(50,k=Z));let xt,He=De(!1);H(i,He,Z=>t(150,A=Z));let Ni=De(),pn=De(!1);H(i,pn,Z=>t(146,G=Z));let Zi=!1,qi=!1,Xi,Ji,_n,yn,Ht,Oi,sn=!1,Pn,an=!1,{toggle:un}=Si,hn=!1,zt=null,xi;Zt?.setContext(Ll());let In=()=>{me&&!Vt&&Qt(Re.controls.hideTimeout)};ke.setUiCallbacks({onStarted:In});let Tn=()=>{window.clearTimeout(Bi),He.set(!1)},En=()=>{window.clearTimeout(rn),Ni.set(null)},Qt=Z=>{Tn(),He.set(!0),Bi=window.setTimeout(()=>He.set(!1),Z);let qt=Z-100;xt=window.setTimeout(()=>{k&&ri.set(!1)},qt>0?qt:Z)},Dn=(Z,qt)=>{En(),Ni.set(qt),rn=window.setTimeout(()=>Ni.set(null),Z)},kn=pi.subscribe(Z=>{ii.set(Z),Z&&(window.clearTimeout(Pi),Pi=window.setTimeout(()=>ii.set(!1),Re.controls.hide360IconTimeout))}),cn=async()=>{let Z=fo();if(Z){let qt=Nl(),bn=wn();Z=qt===bn||qt===lt}if(Z){Qt(Re.controls.hideTimeoutFullscreen);try{await Zt?.remove()}catch(qt){ei({message:String(qt)})}}fi.set(Z),ke.getAdmanWrapper().setFullscreen(Z),g?ke.callbacks?.onFullscreenEnter?.():ke.callbacks?.onFullscreenExit?.()},Nn=Z=>{let qt=Z;mi.set({width:qt.target.width,height:qt.target.height})};Tt(()=>(hr(cn),Ho(Zt)&&(Zt?.assignPlayerContainer(li),Zt?.registryExternalEventHandlers({resize:Nn})),se&&Se.parentElement?.insertBefore(se,Se.nextSibling),()=>{window.clearTimeout(Bi),window.clearTimeout(xt),window.clearTimeout(rn),window.clearTimeout(Pi),kn(),Zt?.dispose(),gr(cn)}));let wn=()=>{let Z=bt??li,qt=Z.getRootNode(),bn=qt instanceof ShadowRoot?qt.host:qt,zn=_t instanceof HTMLElement&&_t.contains(bn);return Re.allowChangingFullscreenTarget&&_t&&zn?_t:Z},gn=async()=>{fo()?(await _r(document),ei({message:"exit fullscreen"})):(ei({message:"request fullscreen"}),await pr(wn()))},Fi=()=>{Nt(),Bt.set(!1)},te=Z=>{Bt.set(!0),Dt.set({left:Z.clientX,top:Z.clientY})};function ht(){pn.set(!0),Vt||Qt(Re.controls.hideTimeoutCursor)}function Cn(){Vt||(ri.set(!0),Qt(Re.controls.hideTimeoutCursor))}function ee(){pn.set(!1),t(132,qi=!1),t(131,Zi=!1),hn=!1,ke.actions.internal.releaseCamera()}function mt(Z){if(w&&Qi){let qt=Z.currentTarget,bn=yc(qt),zn=Ep(qt),Io=Z.pageX-zn,To=Z.pageY-bn,{left:Eo,bottom:yt,right:M}=w,ce=M-Eo;return Io>=Eo-ce&&To<=yt+ce}}function _i(Z){if(li){let qt=yc(Z.currentTarget),bn=h.height,zn=Z.pageY-qt;if(mt(Z)){t(132,qi=!1);return}zn<40?t(132,qi=!0):zn>bn-40?t(131,Zi=!0):(t(132,qi=!1),s||t(131,Zi=!1))}}function An(Z){_i(Z),Ji||Qt(Re.controls.hideTimeoutCursor),p&&hn&&zt&&ke.actions.internal.moveCameraFocusPX(zt.clientX-Z.clientX,zt.clientY-Z.clientY,Z.timeStamp-zt.timeStamp),zt=Z}let Hn=Z=>{Z.button===0&&(hn=!0,ke.actions.internal.holdCamera()),Qt(Re.controls.hideTimeoutCursor)},xn=Z=>{Z.button===0&&(zt=Z,hn=!1,ke.actions.internal.releaseCamera()),Qt(Re.controls.hideTimeoutCursor)},ie=()=>{Tp&&(ei({message:"double click on video"}),gn(),Qt(Re.controls.hideTimeoutCursor))},Mn=()=>{if(n||s){Fi();return}if(!(f&&!Ci)){if(an)return un();if(xi?.focus(),!be){tn(),Qt(Re.controls.hideTimeoutCursor);return}ke.actions.internal.togglePlay(),Qt(Re.controls.hideTimeoutCursor)}},Yo=Z=>{Fi(),Jt.set(!0),Qt(Re.controls.hideTimeout),Z&&Dn(Re.controls.hideHotKeyHelpers,Z)},El=()=>{Fi(),ke.callbacks?.onOpenHotKeyMap?ke.callbacks?.onOpenHotKeyMap(u):Wi.update(Z=>!Z)},Al=()=>{if(n||s){Fi();return}},Ml=()=>{Jt.set(!0)},yo=ke.ui.contextMenu.openedByBtnKeyboard$;H(i,yo,Z=>t(139,a=Z));let ko=ke.ui.contextMenu.btnRef$;H(i,ko,Z=>t(138,r=Z));let $n,ro=ke.ui.contextMenu.openedByHotKey$;H(i,ro,Z=>t(137,l=Z));let wo=ke.ui.contextMenu.lastActiveElem$;H(i,wo,Z=>t(136,o=Z));function Zo(Z){pe[Z?"unshift":"push"](()=>{Se=Z,t(0,Se)})}let so=()=>xi?.focus();function ao(Z){Yi=Z,t(41,Yi)}let Co=()=>xi?.focus();function So(Z){$n=Z,t(32,$n)}function Po(Z){pe[Z?"unshift":"push"](()=>{xi=Z,t(48,xi)})}function Xo(Z){pe[Z?"unshift":"push"](()=>{tt=Z,t(30,tt)})}function Jo(Z){pe[Z?"unshift":"push"](()=>{li=Z,t(40,li)})}return i.$$set=Z=>{"store"in Z&&t(125,ke=Z.store),"uiConfig"in Z&&t(1,Re=Z.uiConfig),"title"in Z&&t(2,Ge=Z.title),"thumbUrl"in Z&&t(3,Je=Z.thumbUrl),"videoContainer"in Z&&t(0,Se=Z.videoContainer),"interactiveContainer"in Z&&t(126,se=Z.interactiveContainer),"live"in Z&&t(4,ze=Z.live),"autoplay"in Z&&t(5,me=Z.autoplay),"canRewindLive"in Z&&t(6,le=Z.canRewindLive),"showAds"in Z&&t(7,Ne=Z.showAds),"adsSlotId"in Z&&t(8,Ae=Z.adsSlotId),"adsParams"in Z&&t(9,Ue=Z.adsParams),"adsPreviewParam"in Z&&t(10,at=Z.adsPreviewParam),"duration"in Z&&t(11,ve=Z.duration),"logoClickable"in Z&&t(12,dt=Z.logoClickable),"logoHidden"in Z&&t(13,nt=Z.logoHidden),"logoTargetUrl"in Z&&t(14,gt=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(15,wt=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(16,At=Z.nextButtonActive),"prevButtonActive"in Z&&t(17,Ye=Z.prevButtonActive),"endScreenVideoTitle"in Z&&t(18,Ft=Z.endScreenVideoTitle),"endScreenVideoThumb"in Z&&t(19,Rt=Z.endScreenVideoThumb),"isOneVideoPlaylist"in Z&&t(20,St=Z.isOneVideoPlaylist),"supportLink"in Z&&t(21,ui=Z.supportLink),"shadowRootContainer"in Z&&t(127,lt=Z.shadowRootContainer),"outerContainerRef"in Z&&t(128,bt=Z.outerContainerRef),"playerStarted"in Z&&t(22,be=Z.playerStarted),"fullScreenTarget"in Z&&t(129,_t=Z.fullScreenTarget),"showMiniTimer"in Z&&t(130,Pt=Z.showMiniTimer),"playNextVideo"in Z&&t(23,$t=Z.playNextVideo),"playPrevVideo"in Z&&t(24,vt=Z.playPrevVideo),"repeatPlaylist"in Z&&t(25,Kt=Z.repeatPlaylist),"seekToInteractive"in Z&&t(26,jt=Z.seekToInteractive),"toggleGraph"in Z&&t(27,Wt=Z.toggleGraph),"playPrevChapter"in Z&&t(28,Hi=Z.playPrevChapter),"firstStart"in Z&&t(29,tn=Z.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1610612736)e:t(42,Di=(re==="video"&&ne||re==="ads"&&W==="inactive")&&!q);if(i.$$.dirty[0]&1073741824)e:Gi.set(tt);if(i.$$.dirty[4]&268435456)e:t(133,Xi=X!==Ip.PlaybackState.PLAYING);if(i.$$.dirty[4]&136381312)e:t(134,Ji=v&&!s&&!(Zi||qi)&&!(Xi&&!Y));if(i.$$.dirty[1]&448|i.$$.dirty[4]&68224512)e:yi.set((Xi||s||b||$||A)&&!Ji&&(re==="video"||re==="ads")&&!q);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&33554496)e:t(43,_n=Re.features.thumbTimer&&Pt&&re==="video"&&!I&&!q&&!Vt&&(Re.hideThumbTimerAfterTouch&&!D||!Re.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&17039360)e:t(44,yn=re==="video"&&!fe&&g);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&8519680)e:t(31,Ht=(Ne&&F||!Ne)&&f&&!q);if(i.$$.dirty[1]&33|i.$$.dirty[4]&6291456)e:t(45,Oi=G&&!(I||Ht)&&!v);if(i.$$.dirty[0]&2|i.$$.dirty[4]&3147776)e:!b&&sn&&!v&&Qt(Re.controls.hideTimeoutCursor),t(135,sn=b);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,Pn=Se&&T%180?h.height/h.width:1);if(i.$$.dirty[4]&524288)e:t(47,an=y!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&32768)e:Ko($n,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&16384)e:{let Z=r;Z&&fl(Z,n,yo)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&8192)e:Ko($n,n,l);if(i.$$.dirty[1]&4|i.$$.dirty[4]&4096)e:{let Z=o;Z&&$f(Z,n,ro)}},[Se,Re,Ge,Je,ze,me,le,Ne,Ae,Ue,at,ve,dt,nt,gt,wt,At,Ye,Ft,Rt,St,ui,be,$t,vt,Kt,jt,Wt,Hi,tn,tt,Ht,$n,n,h,T,I,q,re,$,li,Yi,Di,_n,yn,Oi,Pn,an,xi,p,k,E,Q,Be,je,Qe,Xe,qe,ye,J,we,We,$e,it,Ai,dn,vi,nn,ci,Mi,fi,yi,di,ki,Bt,Yt,on,zi,ti,wi,Ui,Vi,Mt,ln,Li,Ki,ji,Gt,mi,pi,ii,Xt,Vt,ni,Ri,Jt,oi,Wi,mn,Dt,Si,ri,He,Ni,pn,un,gn,Fi,te,ht,Cn,ee,An,Hn,xn,ie,Mn,Yo,El,Al,Ml,yo,ko,ro,wo,ke,se,lt,bt,_t,Pt,Zi,qi,Xi,Ji,sn,o,l,r,a,s,f,g,y,b,v,G,F,fe,D,A,Y,X,W,ne,Zo,so,ao,Co,So,Po,Xo,Jo]}var kc=class extends U{constructor(e){super(),j(this,e,c6,u6,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,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},s6,[-1,-1,-1,-1,-1,-1,-1])}},Ap=kc;var Yp=require("@vkontakte/videoplayer-core"),lo=require("@vkontakte/videoplayer-shared");var wl=require("@vkontakte/videoplayer-shared"),Mp=i=>{if(!(0,wl.isIOS)(!0))return!1;let e=i.device===wl.CurrentClientDevice.iPad||window?.screen.width>700,t=(0,wl.getIOSVersion)();return!e||e&&!!t&&t<16};function f6(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 Vp(i){let e,t,n,o,l,r,a,s,u,f,p,h,w,g,k,y=K("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",T;return{c(){e=P("div"),n=N(),o=P("div"),l=P("div"),r=P("div"),s=N(),u=P("div"),p=N(),h=P("div"),g=N(),k=P("p"),T=Me(y),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(h,"class",w="triangle "+i[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(k,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(b,v){S(b,e,v),S(b,n,v),S(b,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,k),m(k,T)},p(b,v){v&1&&t!==(t="semicircle "+b[0]+" svelte-nhq2ld")&&c(e,"class",t),v&1&&a!==(a="triangle "+b[0]+" svelte-nhq2ld")&&c(r,"class",a),v&1&&f!==(f="triangle "+b[0]+" svelte-nhq2ld")&&c(u,"class",f),v&1&&w!==(w="triangle "+b[0]+" svelte-nhq2ld")&&c(h,"class",w),v&2&&y!==(y=K("doubletap_seek_step",{seconds:b[1].toFixed(0)})+"")&&Ke(T,y)},d(b){b&&(C(e),C(n),C(o))}}}function d6(i){let e,t,n,o,l=i[2]&&Vp(i);return{c(){e=P("div"),l&&l.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(r,a){S(r,e,a),l&&l.m(e,null),n||(o=de(e,"click",st(i[3]())),n=!0)},p(r,[a]){r[2]?l?l.p(r,a):(l=Vp(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&&C(e),l&&l.d(),n=!1,o()}}}function m6(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 jn(()=>{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 wc=class extends U{constructor(e){super(),j(this,e,m6,d6,z,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},f6)}},Cc=wc;function p6(i,e,t){let{playNextVideo:n}=e;return Tt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var Sc=class extends U{constructor(e){super(),j(this,e,p6,null,z,{playNextVideo:0})}},Lp=Sc;var Zp=require("@vkontakte/videoplayer-shared"),{window:_6}=Vo;function h6(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 Rp(i){let e,t,n,o;e=new Cc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}});let l=!i[49]&&Bp(i);return{c(){R(e.$$.fragment),t=N(),l&&l.c(),n=ut()},m(r,a){V(e,r,a),S(r,t,a),l&&l.m(r,a),S(r,n,a),o=!0},p(r,a){let s={};a[0]&2&&(s.seekStep=r[1].controls.seekStepMobile/1e3),e.$set(s),r[49]?l&&(ae(),_(l,1,1,()=>{l=null}),ue()):l?(l.p(r,a),a[1]&262144&&d(l,1)):(l=Bp(r),l.c(),d(l,1),l.m(n.parentNode,n))},i(r){o||(d(e.$$.fragment,r),d(l),o=!0)},o(r){_(e.$$.fragment,r),_(l),o=!1},d(r){r&&(C(t),C(n)),L(e,r),l&&l.d(r)}}}function Bp(i){let e,t;return e=new Cc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[132]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Dp(i){let e,t;return e=new ps({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Np(i){let e,t;return e=new _s({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function qp(i){let e,t,n;return t=new br({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","ads-container svelte-1jy89ut"),O(e,"hidden",i[34]!=="ads")},m(o,l){S(o,e,l),V(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)&&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&&C(e),L(t)}}}function Op(i){let e,t;return e=new Lp({props:{playNextVideo:i[22]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function Fp(i){let e,t;return e=new us({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Hp(i){let e,t,n;return t=new ur({props:{"aria-label":K("video360")}}),{c(){e=P("div"),R(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,l){S(o,e,l),V(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&&C(e),L(t)}}}function zp(i){let e,t;return e=new fs({props:{thumbUrl:i[2],chromecastDeviceName:i[52]}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&2097152&&(l.chromecastDeviceName=n[52]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Up(i){let e,t;return e=new cs({props:{shifted:i[30],captions:i[54],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&8388608&&(l.captions=n[54]),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){L(e,n)}}}function Kp(i){let e,t,n,o,l;return t=new ds({}),{c(){e=P("div"),R(t.$$.fragment)},m(r,a){S(r,e,a),V(t,e,null),n=!0,o||(l=de(e,"click",st(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&&C(e),L(t),o=!1,l()}}}function jp(i){let e,t,n;function o(r){i[133](r)}let l={bottomHidden:i[34]==="thumb"||i[34]==="waitingLive"||i[34]==="waitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[55]!==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 as({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){V(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]&16777216&&(s.canRewindLive=r[5]&&r[55]!==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){L(e,r)}}}function Wp(i){let e,t;return e=new Tr({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Gp(i){let e,t;return e=new Sr({}),{c(){R(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Qp(i){let e,t,n=i[5]&&i[78]&&!i[48].has("TIMELINE"),o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v;e=new ms({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let I=n&&Rp(i),G=i[34]==="waitingLive"&&Dp(i),q=i[34]==="waitingRecord"&&Np(i),F=i[6]&&i[21]&&qp(i),fe=i[41]&&i[17]&&i[18]&&Op(i),re=i[50]&&Fp(i),D=i[51]&&Hp(i),A=i[35]&&zp(i),$=i[53].value!=="off"&&Up(i),Y=i[33]&&Kp(i),X=i[21]&&jp(i);k=new yr({props:{isLive:i[56],isHidden:!i[40],isPlaying:i[46],position:i[44],duration:i[43]}});let W=i[38]&&Wp(i),ne=i[57]&&Gp(i);return{c(){R(e.$$.fragment),t=N(),I&&I.c(),o=N(),G&&G.c(),l=N(),q&&q.c(),r=N(),F&&F.c(),a=N(),fe&&fe.c(),s=N(),re&&re.c(),u=N(),D&&D.c(),f=N(),A&&A.c(),p=N(),$&&$.c(),h=N(),Y&&Y.c(),w=N(),X&&X.c(),g=N(),R(k.$$.fragment),y=N(),W&&W.c(),T=N(),ne&&ne.c(),b=ut()},m(E,Q){V(e,E,Q),S(E,t,Q),I&&I.m(E,Q),S(E,o,Q),G&&G.m(E,Q),S(E,l,Q),q&&q.m(E,Q),S(E,r,Q),F&&F.m(E,Q),S(E,a,Q),fe&&fe.m(E,Q),S(E,s,Q),re&&re.m(E,Q),S(E,u,Q),D&&D.m(E,Q),S(E,f,Q),A&&A.m(E,Q),S(E,p,Q),$&&$.m(E,Q),S(E,h,Q),Y&&Y.m(E,Q),S(E,w,Q),X&&X.m(E,Q),S(E,g,Q),V(k,E,Q),S(E,y,Q),W&&W.m(E,Q),S(E,T,Q),ne&&ne.m(E,Q),S(E,b,Q),v=!0},p(E,Q){let Be={};Q[0]&16|Q[1]&12&&(Be.hidden=E[34]!=="thumb"||E[33]||E[89]&&E[4]),Q[0]&4&&(Be.thumbUrl=E[2]),Q[0]&268435456&&(Be.startVideo=E[28]),e.$set(Be),Q[0]&32|Q[1]&131072&&(n=E[5]&&E[78]&&!E[48].has("TIMELINE")),n?I?(I.p(E,Q),Q[0]&32|Q[1]&131072&&d(I,1)):(I=Rp(E),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(ae(),_(I,1,1,()=>{I=null}),ue()),E[34]==="waitingLive"?G?(G.p(E,Q),Q[1]&8&&d(G,1)):(G=Dp(E),G.c(),d(G,1),G.m(l.parentNode,l)):G&&(ae(),_(G,1,1,()=>{G=null}),ue()),E[34]==="waitingRecord"?q?Q[1]&8&&d(q,1):(q=Np(E),q.c(),d(q,1),q.m(r.parentNode,r)):q&&(ae(),_(q,1,1,()=>{q=null}),ue()),E[6]&&E[21]?F?(F.p(E,Q),Q[0]&2097216&&d(F,1)):(F=qp(E),F.c(),d(F,1),F.m(a.parentNode,a)):F&&(ae(),_(F,1,1,()=>{F=null}),ue()),E[41]&&E[17]&&E[18]?fe?(fe.p(E,Q),Q[0]&393216|Q[1]&1024&&d(fe,1)):(fe=Op(E),fe.c(),d(fe,1),fe.m(s.parentNode,s)):fe&&(ae(),_(fe,1,1,()=>{fe=null}),ue()),E[50]?re?Q[1]&524288&&d(re,1):(re=Fp(E),re.c(),d(re,1),re.m(u.parentNode,u)):re&&(ae(),_(re,1,1,()=>{re=null}),ue()),E[51]?D?(D.p(E,Q),Q[1]&1048576&&d(D,1)):(D=Hp(E),D.c(),d(D,1),D.m(f.parentNode,f)):D&&(ae(),_(D,1,1,()=>{D=null}),ue()),E[35]?A?(A.p(E,Q),Q[1]&16&&d(A,1)):(A=zp(E),A.c(),d(A,1),A.m(p.parentNode,p)):A&&(ae(),_(A,1,1,()=>{A=null}),ue()),E[53].value!=="off"?$?($.p(E,Q),Q[1]&4194304&&d($,1)):($=Up(E),$.c(),d($,1),$.m(h.parentNode,h)):$&&(ae(),_($,1,1,()=>{$=null}),ue()),E[33]?Y?(Y.p(E,Q),Q[1]&4&&d(Y,1)):(Y=Kp(E),Y.c(),d(Y,1),Y.m(w.parentNode,w)):Y&&(ae(),_(Y,1,1,()=>{Y=null}),ue()),E[21]?X?(X.p(E,Q),Q[0]&2097152&&d(X,1)):(X=jp(E),X.c(),d(X,1),X.m(g.parentNode,g)):X&&(ae(),_(X,1,1,()=>{X=null}),ue());let je={};Q[1]&33554432&&(je.isLive=E[56]),Q[1]&512&&(je.isHidden=!E[40]),Q[1]&32768&&(je.isPlaying=E[46]),Q[1]&8192&&(je.position=E[44]),Q[1]&4096&&(je.duration=E[43]),k.$set(je),E[38]?W?Q[1]&128&&d(W,1):(W=Wp(E),W.c(),d(W,1),W.m(T.parentNode,T)):W&&(ae(),_(W,1,1,()=>{W=null}),ue()),E[57]?ne?Q[1]&67108864&&d(ne,1):(ne=Gp(E),ne.c(),d(ne,1),ne.m(b.parentNode,b)):ne&&(ae(),_(ne,1,1,()=>{ne=null}),ue())},i(E){v||(d(e.$$.fragment,E),d(I),d(G),d(q),d(F),d(fe),d(re),d(D),d(A),d($),d(Y),d(X),d(k.$$.fragment,E),d(W),d(ne),v=!0)},o(E){_(e.$$.fragment,E),_(I),_(G),_(q),_(F),_(fe),_(re),_(D),_(A),_($),_(Y),_(X),_(k.$$.fragment,E),_(W),_(ne),v=!1},d(E){E&&(C(t),C(o),C(l),C(r),C(a),C(s),C(u),C(f),C(p),C(h),C(w),C(g),C(y),C(T),C(b)),L(e,E),I&&I.d(E),G&&G.d(E),q&&q.d(E),F&&F.d(E),fe&&fe.d(E),re&&re.d(E),D&&D.d(E),A&&A.d(E),$&&$.d(E),Y&&Y.d(E),X&&X.d(E),L(k,E),W&&W.d(E),ne&&ne.d(E)}}}function g6(i){let e,t,n,o,l,r=i[47],a,s,u,f,p,h,w=Qp(i);return{c(){e=P("div"),t=P("div"),n=P("div"),l=N(),w.c(),a=N(),s=P("div"),c(n,"class","video-container svelte-1jy89ut"),c(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",i[46]),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=K("aria_label_video_player")),c(e,"tabindex","-1")},m(g,k){S(g,e,k),m(e,t),m(t,n),i[130](n),m(e,l),w.m(e,null),m(e,a),m(e,s),i[134](s),i[135](e),f=!0,p||(h=[de(_6,"blur",i[99]),de(t,"click",It(i[100])),de(e,"click",i[102],!0),de(e,"focusin",i[103],!0)],p=!0)},p(g,k){(!f||k[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&c(n,"style",o),(!f||k[1]&32768)&&c(n,"data-is-playing",g[46]),(!f||k[0]&2)&&O(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||k[1]&8)&&O(t,"hidden",g[34]!=="video"),k[1]&65536&&z(r,r=g[47])?(ae(),_(w,1,1,_e),ue(),w=Qp(g),w.c(),d(w,1),w.m(e,a)):w.p(g,k)},i(g){f||(d(w),f=!0)},o(g){_(w),f=!1},d(g){g&&C(e),i[130](null),w.d(g),i[134](null),i[135](null),p=!1,et(h)}}}function b6(i,e,t){let n,o,l,r,a,s,u,f,p,h,w,g,k,y,T,b,v,I,G,q,F,fe,re,D,A,$,Y,X,W,ne,E,Q,Be,je,Qe,Xe,qe,{store:ye}=e,{uiConfig:J}=e,{thumbUrl:we}=e,{videoContainer:We}=e,{interactiveContainer:$e}=e,{live:it}=e,{autoplay:ke}=e,{canRewindLive:Re}=e,{showAds:Ge}=e,{adsSlotId:Je=void 0}=e,{adsParams:Se=void 0}=e,{adsPreviewParam:se=void 0}=e,{duration:ze=void 0}=e,{logoClickable:me}=e,{logoHidden:le}=e,{logoTargetUrl:Ne=""}=e,{showNextPrevButtons:Ae=!1}=e,{nextButtonActive:Ue=!1}=e,{prevButtonActive:at=!1}=e,{endScreenVideoTitle:ve=void 0}=e,{endScreenVideoThumb:dt=void 0}=e,{isOneVideoPlaylist:nt=!1}=e,{supportLink:gt}=e,{shadowRootContainer:wt=void 0}=e,{outerContainerRef:At=void 0}=e,{showMiniTimer:Ye=!1}=e,{fullScreenTarget:Ft=void 0}=e,{playerStarted:Rt=!1}=e,{playNextVideo:St=lo.noop}=e,{playPrevVideo:ui=lo.noop}=e,{repeatPlaylist:lt=lo.noop}=e,{seekToInteractive:bt}=e,{toggleGraph:be}=e,{playPrevChapter:_t}=e,{firstStart:Pt}=e,{seekTime:$t}=e,vt=ye.getLogger().createComponentLog("Root component"),Kt=ye.interfaceLanguage$;H(i,Kt,te=>t(47,Y=te));let jt=ye.state.playbackState$;H(i,jt,te=>t(127,re=te));let Wt=ye.ads.playbackState;H(i,Wt,te=>t(128,D=te));let Hi=ye.state.positionWithScrubbing$;H(i,Hi,te=>t(44,a=te));let tn=ye.state.duration$;H(i,tn,te=>t(43,r=te));let ei=ye.playerPhase;H(i,ei,te=>t(34,G=te));let Ai=ye.ui.isFullscreen;H(i,Ai,te=>t(142,u=te));let dn=ye.ui.controlsVisible;H(i,dn,te=>t(30,o=te));let vi=ye.ui.interactiveHideMobileControls;H(i,vi,te=>t(119,w=te));let nn=ye.ui.settingsMenuVisible;H(i,nn,te=>t(118,n=te));let ci=ye.ui.scrubbingInProgress;H(i,ci,te=>t(120,k=te));let Mi=ye.ui.debugPanelVisible;H(i,Mi,te=>t(57,qe=te));let fi=ye.state.isLoaderVisible;H(i,fi,te=>t(129,A=te));let yi=ye.state.isEnded$;H(i,yi,te=>t(122,b=te));let di=ye.state.chromecastConnected$;H(i,di,te=>t(35,q=te));let ki=ye.state.chromecastDeviceName$;H(i,ki,te=>t(52,Q=te));let Bt=ye.ads.postrollPassed;H(i,Bt,te=>t(123,v=te));let Yt=ye.ui.mobileUnmuteButtonExpanded,on=ye.ui.mobileUnmuteButtonVisible,zi=ye.state.isLive$;H(i,zi,te=>t(56,Xe=te));let ti=ye.state.isPlaying$;H(i,ti,te=>t(46,$=te));let wi=ye.state.isActiveLive$;H(i,wi,te=>t(49,W=te));let Ui=ye.state.isRewindableLive$,Vi=ye.state.crashed$;H(i,Vi,te=>t(33,T=te));let Mt=ye.webApi.pictureInPictureApi,ln=ye.state.videoSize$;H(i,ln,te=>t(143,p=te));let Zt=ye.state.currentSubtitle$;H(i,Zt,te=>t(53,Be=te));let Li=ye.state.currentSubtitleCaptions$;H(i,Li,te=>t(54,je=te));let Ki=ye.state.duration$;H(i,Ki,te=>t(55,Qe=te));let ji=ye.state.graphIsOpened$;H(i,ji,te=>t(126,fe=te));let Gt=ye.ui.playerSize;H(i,Gt,te=>t(31,f=te));let mi=ye.ui.is3DVideo;H(i,mi,te=>t(50,ne=te));let pi=ye.ui.icon3DVideoVisible;H(i,pi,te=>t(51,E=te));let ii=ye.ui.rotateAlpha;H(i,ii,te=>t(32,g=te));let Xt=ye.state.isInteractive,Vt=ye.state.isInteractiveTime$;H(i,Vt,te=>t(121,y=te));let ni=ye.state.isInteractiveExpectation$;H(i,ni,te=>t(125,F=te));let Ri=ye.state.hasInteractiveBranches,Ci=ye.ui.controls.disabledControls$;H(i,Ci,te=>t(48,X=te));let Jt=ye.ui.touched;H(i,Jt,te=>t(124,I=te));let oi=ye.ui.clientInfo$;H(i,oi,te=>t(141,s=te));let Wi=ye.ui.overlayContainer$,Gi=ye.state.isFirstBytes$;H(i,Gi,te=>t(140,l=te));let mn=ye.actions.internal.closeSettingsMenu,Qi=ye.callbacks?.onDisabledPlayPrevChapterClick,Dt=ye.callbacks?.onDisabledSeekToInteractiveClick,Nt,Si,li,Yi,Bi,rn,Pi,Di=De(!1);H(i,Di,te=>t(45,h=te));let tt,ri=!1,xt,He=!1,Ni,pn=!0,Zi,qi,Xi=!1,Ji;Mt?.setContext(Ll());let _n=te=>{clearTimeout(Yi),te&&(on.set(!0),Yt.set(!0),Yi=window.setTimeout(()=>{Yt.set(!1)},J.controls.collapseMobileUnmute),Xt||Ht(J.controls.hideTimeoutMobile))};ye.setUiCallbacks({onStarted:_n});let yn=()=>{window.clearTimeout(li),t(113,ri=!1),w&&vi.set(!1)},Ht=te=>{yn(),t(113,ri=!0),li=window.setTimeout(()=>t(113,ri=!1),te);let ht=te-100;tt=window.setTimeout(()=>{h&&Di.set(!1)},ht>0?ht:te)},Oi=mi.subscribe(te=>{pi.set(te),te&&(window.clearTimeout(Bi),Bi=window.setTimeout(()=>pi.set(!1),J.controls.hide360IconTimeout))}),sn=async()=>{let te=fo();if(te){let ht=Nl(),Cn=un(),ee=(0,Zp.getCurrentBrowser)().browser===lo.CurrentClientBrowser.SamsungBrowser&&ht===wt;te=ht===Cn||ee}if(te){Ht(J.controls.hideTimeoutFullscreen);try{await Mt?.remove()}catch(ht){vt({message:String(ht)})}try{let ht=p?.width&&p?.height?p:f;await Nf(ht)}catch(ht){vt({message:String(ht)})}}Ai.set(te),ye.getAdmanWrapper().setFullscreen(te),u?ye.callbacks?.onFullscreenEnter?.():ye.callbacks?.onFullscreenExit?.()},Pn=te=>{let ht=te;Gt.set({width:ht.target.width,height:ht.target.height})};Tt(()=>(hr(sn),Ho(Mt)&&(Mt?.assignPlayerContainer(Nt),Mt?.registryExternalEventHandlers({resize:Pn})),t(39,pn=!Mp(s)),$e&&We.parentElement?.insertBefore($e,We.nextSibling),()=>{window.clearTimeout(li),window.clearTimeout(tt),window.clearTimeout(Yi),window.clearTimeout(Bi),Oi(),Mt?.dispose(),gr(sn)}));let an=te=>{let ht=a+(te==="forward"?1:-1)*J.controls.seekStepMobile/1e3;ht<0?ht=0:ht>r&&(ht=r-1),t(115,He=!0),$t(ht)},un=()=>{let te=(0,lo.isIOS)()||!At?Nt:At,ht=te.getRootNode(),Cn=ht instanceof ShadowRoot?ht.host:ht,ee=Ft instanceof HTMLElement&&Ft.contains(Cn);return J.allowChangingFullscreenTarget&&Ft&&ee?Ft:te},hn=async()=>{if(fo())await _r(document),vt({message:"exit fullscreen"});else{if(vt({message:"request fullscreen"}),(0,lo.isIOS)()&&!l)return;await pr(un())}},zt=()=>{mn()},xi=()=>{if(n){zt();return}if(!Rt){Pt(),Ht(J.controls.hideTimeoutCursor);return}t(115,He=!1),o?yn():Ht(J.controls.hideTimeoutMobile)},In=()=>{if(n){zt();return}},Tn=()=>{Jt.set(!0)},En=()=>{Xt||(Di.set(!0),Ht(J.controls.hideTimeoutCursor))},Qt=te=>{Qi&&(Qi(te),Ht(J.controls.hideTimeoutMobile))},Dn=te=>{Dt&&(Dt(te),Ht(J.controls.hideTimeoutMobile))};function kn(te){pe[te?"unshift":"push"](()=>{We=te,t(0,We)})}let cn=()=>an("backward"),Nn=()=>an("forward");function wn(te){Si=te,t(37,Si)}function gn(te){pe[te?"unshift":"push"](()=>{Pi=te,t(29,Pi)})}function Fi(te){pe[te?"unshift":"push"](()=>{Nt=te,t(36,Nt)})}return i.$$set=te=>{"store"in te&&t(106,ye=te.store),"uiConfig"in te&&t(1,J=te.uiConfig),"thumbUrl"in te&&t(2,we=te.thumbUrl),"videoContainer"in te&&t(0,We=te.videoContainer),"interactiveContainer"in te&&t(107,$e=te.interactiveContainer),"live"in te&&t(3,it=te.live),"autoplay"in te&&t(4,ke=te.autoplay),"canRewindLive"in te&&t(5,Re=te.canRewindLive),"showAds"in te&&t(6,Ge=te.showAds),"adsSlotId"in te&&t(7,Je=te.adsSlotId),"adsParams"in te&&t(8,Se=te.adsParams),"adsPreviewParam"in te&&t(9,se=te.adsPreviewParam),"duration"in te&&t(10,ze=te.duration),"logoClickable"in te&&t(11,me=te.logoClickable),"logoHidden"in te&&t(12,le=te.logoHidden),"logoTargetUrl"in te&&t(13,Ne=te.logoTargetUrl),"showNextPrevButtons"in te&&t(14,Ae=te.showNextPrevButtons),"nextButtonActive"in te&&t(15,Ue=te.nextButtonActive),"prevButtonActive"in te&&t(16,at=te.prevButtonActive),"endScreenVideoTitle"in te&&t(17,ve=te.endScreenVideoTitle),"endScreenVideoThumb"in te&&t(18,dt=te.endScreenVideoThumb),"isOneVideoPlaylist"in te&&t(19,nt=te.isOneVideoPlaylist),"supportLink"in te&&t(20,gt=te.supportLink),"shadowRootContainer"in te&&t(108,wt=te.shadowRootContainer),"outerContainerRef"in te&&t(109,At=te.outerContainerRef),"showMiniTimer"in te&&t(110,Ye=te.showMiniTimer),"fullScreenTarget"in te&&t(111,Ft=te.fullScreenTarget),"playerStarted"in te&&t(21,Rt=te.playerStarted),"playNextVideo"in te&&t(22,St=te.playNextVideo),"playPrevVideo"in te&&t(23,ui=te.playPrevVideo),"repeatPlaylist"in te&&t(24,lt=te.repeatPlaylist),"seekToInteractive"in te&&t(25,bt=te.seekToInteractive),"toggleGraph"in te&&t(26,be=te.toggleGraph),"playPrevChapter"in te&&t(27,_t=te.playPrevChapter),"firstStart"in te&&t(28,Pt=te.firstStart),"seekTime"in te&&t(112,$t=te.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&48)e:t(38,rn=(G==="video"&&A||G==="ads"&&D==="inactive")&&!T);if(i.$$.dirty[0]&536870912)e:Wi.set(Pi);if(i.$$.dirty[4]&8)e:t(114,xt=re!==Yp.PlaybackState.PLAYING);if(i.$$.dirty[3]&607125504|i.$$.dirty[4]&6)e:t(116,Ni=fe||w||!ri&&(b&&!!Ri||xt&&F));if(i.$$.dirty[1]&28|i.$$.dirty[3]&183500800)e:dn.set((xt||n||k||q||ri&&!He)&&!Ni&&G==="video"&&!T);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&131072|i.$$.dirty[4]&1)e:t(40,Zi=J.features.thumbTimer&&Ye&&G==="video"&&!o&&!T&&!Xt&&(J.hideThumbTimerAfterTouch&&!I||!J.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&1610612736)e:t(41,qi=(Ge&&v||!Ge)&&b&&!T);if(i.$$.dirty[0]&2|i.$$.dirty[3]&419430400)e:!k&&Xi&&!y&&Ht(J.controls.hideTimeoutMobile),t(117,Xi=k);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,Ji=We&&g%180?f.height/f.width:1)},[We,J,we,it,ke,Re,Ge,Je,Se,se,ze,me,le,Ne,Ae,Ue,at,ve,dt,nt,gt,Rt,St,ui,lt,bt,be,_t,Pt,Pi,o,f,g,T,G,q,Nt,Si,rn,pn,Zi,qi,Ji,r,a,h,$,Y,X,W,ne,E,Q,Be,je,Qe,Xe,qe,Kt,jt,Wt,Hi,tn,ei,Ai,dn,vi,nn,ci,Mi,fi,yi,di,ki,Bt,zi,ti,wi,Ui,Vi,ln,Zt,Li,Ki,ji,Gt,mi,pi,ii,Xt,Vt,ni,Ci,Jt,oi,Gi,Di,an,hn,zt,xi,In,Tn,En,Qt,Dn,ye,$e,wt,At,Ye,Ft,$t,ri,xt,He,Ni,Xi,n,w,k,y,b,v,I,F,fe,re,D,A,kn,cn,Nn,wn,gn,Fi]}var Pc=class extends U{constructor(e){super(),j(this,e,b6,g6,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,shadowRootContainer:108,outerContainerRef:109,showMiniTimer:110,fullScreenTarget:111,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:112},h6,[-1,-1,-1,-1,-1,-1])}},Xp=Pc;function v6(i){Ce(i,"svelte-xfba9d",`.root.svelte-xfba9d{--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(
34
+ )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function z5(t){let e,i;return{c(){e=I("div"),i=Ae(t[0]),c(e,"class","title svelte-1bcvcf2"),q(e,"hidden",t[1])},m(n,o){S(n,e,o),m(e,i)},p(n,[o]){o&1&&Ke(i,n[0]),o&2&&q(e,"hidden",n[1])},i:_e,o:_e,d(n){n&&C(e)}}}function U5(t,e,i){let{title:n=""}=e,{isHidden:o=!1}=e;return t.$$set=l=>{"title"in l&&i(0,n=l.title),"isHidden"in l&&i(1,o=l.isHidden)},[n,o]}var _c=class extends K{constructor(e){super(),W(this,e,U5,z5,U,{title:0,isHidden:1},H5)}},ep=_c;function K5(t){Se(t,"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 tp(t){let e,i,n,o,l,r,a;return{c(){e=I("div"),i=I("span"),n=Ae(t[0]),o=D(),l=I("span"),l.textContent=`${j("waiting_live_day_value")}`,r=D(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,c(i,"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){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&1&&Ke(n,s[0])},d(s){s&&(C(e),C(r),C(a))}}}function ip(t){let e,i,n,o,l,r,a;return{c(){e=I("div"),i=I("span"),n=Ae(t[1]),o=D(),l=I("span"),l.textContent=`${j("waiting_live_hour_value")}`,r=D(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,c(i,"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){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&2&&Ke(n,s[1])},d(s){s&&(C(e),C(r),C(a))}}}function np(t){let e,i,n,o,l,r,a;return{c(){e=I("div"),i=I("span"),n=Ae(t[2]),o=D(),l=I("span"),l.textContent=`${j("waiting_live_minute_value")}`,r=D(),a=I("span"),a.textContent=`${j("waiting_live_colon")}`,c(i,"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){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&4&&Ke(n,s[2])},d(s){s&&(C(e),C(r),C(a))}}}function op(t){let e,i,n,o,l;return{c(){e=I("div"),i=I("span"),n=Ae(t[3]),o=D(),l=I("span"),l.textContent=`${j("waiting_live_second_value")}`,c(i,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,a){S(r,e,a),m(e,i),m(i,n),m(e,o),m(e,l)},p(r,a){a&8&&Ke(n,r[3])},d(r){r&&C(e)}}}function j5(t){let e,i,n,o,l=t[0]&&tp(t),r=t[1]&&ip(t),a=t[2]&&np(t),s=t[3]&&op(t);return{c(){e=I("div"),l&&l.c(),i=D(),r&&r.c(),n=D(),a&&a.c(),o=D(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,i),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=tp(u),l.c(),l.m(e,i)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=ip(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=np(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=op(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:_e,o:_e,d(u){u&&C(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function W5(t,e,i){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=k=>String(k).padStart(2,"0"),p=k=>{let g=Math.floor(k/86400);g&&(k-=g*86400,i(0,l=f(g)));let w=Math.floor(k/3600);i(1,r=f(w));let b=Math.floor(k/60)%60;i(2,a=f(b));let T=k%60;i(3,s=f(T))},h=()=>{let k=Math.floor(Date.now()/1e3),g=n-k;p(g),g>=1?u=requestAnimationFrame(h):o()};return At(()=>{u=requestAnimationFrame(h)}),jn(()=>{cancelAnimationFrame(u)}),t.$$set=k=>{"startTime"in k&&i(4,n=k.startTime),"onTimerOver"in k&&i(5,o=k.onTimerOver)},[l,r,a,s,n,o]}var hc=class extends K{constructor(e){super(),W(this,e,W5,j5,U,{startTime:4,onTimerOver:5},K5)}},lp=hc;function G5(t){let e,i,n,o,l,r,a=t[2].default,s=Pe(a,t,t[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"},t[0]],f={};for(let p=0;p<u.length;p+=1)f=oe(f,u[p]);return{c(){e=B("svg"),s&&s.c(),i=B("path"),n=B("path"),o=B("path"),l=B("path"),c(i,"fill","#fefffe"),c(i,"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"),pi(i,"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"),pi(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"),pi(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"),pi(l,"opacity",".986"),be(e,f)},m(p,h){S(p,e,h),s&&s.m(e,null),m(e,i),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=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){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&C(e),s&&s.d(p)}}}function Q5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var gc=class extends K{constructor(e){super(),W(this,e,Q5,G5,U,{})}},rp=gc;function Y5(t){Se(t,"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 Z5(t){let e,i,n,o,l;return o=new lp({props:{startTime:t[1]||0,onTimerOver:t[3]}}),{c(){e=I("div"),i=I("span"),i.textContent=`${j("waiting_live_timer_title")}`,n=D(),R(o.$$.fragment),c(i,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(r,a){S(r,e,a),m(e,i),m(e,n),M(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&&C(e),V(o)}}}function X5(t){let e,i,n,o,l,r;return n=new rp({}),{c(){e=I("div"),i=I("div"),R(n.$$.fragment),o=D(),l=I("span"),l.textContent=`${j("waiting_live_upcoming_title")}`,c(i,"class","upcoming-icon svelte-15pewff"),c(l,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){S(a,e,s),m(e,i),M(n,i,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&&C(e),V(n)}}}function J5(t){let e,i,n,o,l,r=[X5,Z5],a=[];function s(u,f){return u[2]?0:1}return i=s(t,-1),n=a[i]=r[i](t),{c(){e=I("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${t[2]?"":t[0]})`)},m(u,f){S(u,e,f),a[i].m(e,null),l=!0},p(u,[f]){let p=i;i=s(u,f),i===p?a[i].p(u,f):(ue(),_(a[p],1,1,()=>{a[p]=null}),ce(),n=a[i],n?n.p(u,f):(n=a[i]=r[i](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&&C(e),a[i].d()}}}function x5(t,e,i){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>i(2,n=!0);return t.$$set=a=>{"thumbUrl"in a&&i(0,o=a.thumbUrl),"startTime"in a&&i(1,l=a.startTime)},t.$$.update=()=>{if(t.$$.dirty&2)e:i(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var bc=class extends K{constructor(e){super(),W(this,e,x5,J5,U,{thumbUrl:0,startTime:1},Y5)}},ms=bc;function $5(t){Se(t,"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 e6(t){let e,i;return{c(){e=I("div"),i=I("p"),i.textContent=`${j("waiting_record_title")}`,c(i,"class","waiting-title svelte-1bcnzdw"),c(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){S(n,e,o),m(e,i)},p:_e,i:_e,o:_e,d(n){n&&C(e)}}}var vc=class extends K{constructor(e){super(),W(this,e,null,e6,U,{},$5)}},ps=vc;var{window:t6}=Eo;function i6(t){Se(t,"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 ap(t){let e,i;return e=new ms({props:{thumbUrl:t[3],startTime:t[4]?.startTime}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function up(t){let e,i;return e=new ps({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function cp(t){let e,i,n;return i=new gr({props:{adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11]}}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","ads-container svelte-1o4wf3x"),q(e,"hidden",t[38]!=="ads")},m(o,l){S(o,e,l),M(i,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]),i.$set(r),(!n||l[1]&128)&&q(e,"hidden",o[38]!=="ads")},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function fp(t){let e,i;return e=new S1({props:{title:t[18],thumb:t[19],playNextVideo:t[23]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function dp(t){let e,i;return e=new ep({props:{title:t[2],isHidden:!t[36]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function mp(t){let e,i;return e=new as({props:{isShifted:t[38]==="video"&&t[36]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function pp(t){let e,i,n;return i=new ar({props:{"aria-label":j("video360")}}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,l){S(o,e,l),M(i,e,null),n=!0},p:_e,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function _p(t){let e,i;return e=new cs({props:{thumbUrl:t[3],chromecastDeviceName:t[54]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&8388608&&(l.chromecastDeviceName=n[54]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function hp(t){let e,i;return e=new us({props:{shifted:t[36],captions:t[56],position:t[57],playerSize:t[34]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&33554432&&(l.captions=n[56]),o[1]&67108864&&(l.position=n[57]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function gp(t){let e,i,n,o,l;return i=new fs({}),{c(){e=I("div"),R(i.$$.fragment)},m(r,a){S(r,e,a),M(i,e,null),n=!0,o||(l=[de(e,"contextmenu",Et(t[108])),de(e,"click",st(t[119]))],o=!0)},p:_e,i(r){n||(d(i.$$.fragment,r),n=!0)},o(r){_(i.$$.fragment,r),n=!1},d(r){r&&C(e),V(i),o=!1,et(l)}}}function bp(t){let e,i,n;function o(r){t[157](r)}let l={bottomHidden:t[38]==="thumb"||t[38]==="waitingLive"||t[38]==="waitingRecord",bottomNoSmooth:t[50],showControls:t[36],isAds:t[38]==="ads",canRewindLive:t[6]&&t[58]!==0,logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[14],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],isOneVideoPlaylist:t[20],supportLink:t[21],customFullscreenSupported:Sp,playNextVideo:t[23],playPrevVideo:t[24],repeatPlaylist:t[25],toggleFullscreen:t[106],returnFocus:t[156],seekToInteractive:t[26],toggleGraph:t[27],playPrevChapter:t[28]};return t[41]!==void 0&&(l.controlsElementRef=t[41]),e=new ss({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){M(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]&134217728&&(s.canRewindLive=r[6]&&r[58]!==0),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&16384&&(s.logoTargetUrl=r[14]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&8388608&&(s.playNextVideo=r[23]),a[0]&16777216&&(s.playPrevVideo=r[24]),a[0]&33554432&&(s.repeatPlaylist=r[25]),a[1]&131072&&(s.returnFocus=r[156]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!i&&a[1]&1024&&(i=!0,s.controlsElementRef=r[41],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function vp(t){let e,i;return e=new Ir({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function yp(t){let e,i;return e=new D1({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function kp(t){let e,i;return e=new Cr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function wp(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y,P,Z,N,z,re;e=new ds({props:{hidden:t[38]!=="thumb"||t[37]||t[92]&&t[5],thumbUrl:t[3],startVideo:t[29]}});let se=t[38]==="waitingLive"&&ap(t),O=t[38]==="waitingRecord"&&up(t),J=t[7]&&t[22]&&cp(t),E=t[31]&&t[18]&&t[19]&&fp(t),X=t[44]&&dp(t),Q=t[49]&&mp(t),G=t[53]&&pp(t),$=t[39]&&_p(t),L=t[55].value!=="off"&&hp(t),F=t[37]&&gp(t),qe=t[22]&&bp(t);g=new vr({props:{isLive:t[59],isHidden:!t[43],isPlaying:t[51],position:t[57],duration:t[60]}}),b=new W0({props:{data:t[103]}});function ze(ee){t[159](ee)}let We={supportLink:t[21],returnFocus:t[158],visible:t[33],playerContainerRef:t[40],controlsContainerRef:t[41],position:t[61]};t[32]!==void 0&&(We.menuElementRef=t[32]),v=new o1({props:We}),pe.push(()=>Fe(v,"menuElementRef",ze));let Xe=t[42]&&vp(t),ve=t[62]&&yp(t),Be=t[63]&&kp(t);return{c(){R(e.$$.fragment),i=D(),se&&se.c(),n=D(),O&&O.c(),o=D(),J&&J.c(),l=D(),E&&E.c(),r=D(),X&&X.c(),a=D(),Q&&Q.c(),s=D(),G&&G.c(),u=D(),$&&$.c(),f=D(),L&&L.c(),p=D(),F&&F.c(),h=D(),qe&&qe.c(),k=D(),R(g.$$.fragment),w=D(),R(b.$$.fragment),T=D(),R(v.$$.fragment),P=D(),Xe&&Xe.c(),Z=D(),ve&&ve.c(),N=D(),Be&&Be.c(),z=at()},m(ee,ke){M(e,ee,ke),S(ee,i,ke),se&&se.m(ee,ke),S(ee,n,ke),O&&O.m(ee,ke),S(ee,o,ke),J&&J.m(ee,ke),S(ee,l,ke),E&&E.m(ee,ke),S(ee,r,ke),X&&X.m(ee,ke),S(ee,a,ke),Q&&Q.m(ee,ke),S(ee,s,ke),G&&G.m(ee,ke),S(ee,u,ke),$&&$.m(ee,ke),S(ee,f,ke),L&&L.m(ee,ke),S(ee,p,ke),F&&F.m(ee,ke),S(ee,h,ke),qe&&qe.m(ee,ke),S(ee,k,ke),M(g,ee,ke),S(ee,w,ke),M(b,ee,ke),S(ee,T,ke),M(v,ee,ke),S(ee,P,ke),Xe&&Xe.m(ee,ke),S(ee,Z,ke),ve&&ve.m(ee,ke),S(ee,N,ke),Be&&Be.m(ee,ke),S(ee,z,ke),re=!0},p(ee,ke){let Ge={};ke[0]&32|ke[1]&192&&(Ge.hidden=ee[38]!=="thumb"||ee[37]||ee[92]&&ee[5]),ke[0]&8&&(Ge.thumbUrl=ee[3]),ke[0]&536870912&&(Ge.startVideo=ee[29]),e.$set(Ge),ee[38]==="waitingLive"?se?(se.p(ee,ke),ke[1]&128&&d(se,1)):(se=ap(ee),se.c(),d(se,1),se.m(n.parentNode,n)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),ee[38]==="waitingRecord"?O?ke[1]&128&&d(O,1):(O=up(ee),O.c(),d(O,1),O.m(o.parentNode,o)):O&&(ue(),_(O,1,1,()=>{O=null}),ce()),ee[7]&&ee[22]?J?(J.p(ee,ke),ke[0]&4194432&&d(J,1)):(J=cp(ee),J.c(),d(J,1),J.m(l.parentNode,l)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),ee[31]&&ee[18]&&ee[19]?E?(E.p(ee,ke),ke[0]&786432|ke[1]&1&&d(E,1)):(E=fp(ee),E.c(),d(E,1),E.m(r.parentNode,r)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),ee[44]?X?(X.p(ee,ke),ke[1]&8192&&d(X,1)):(X=dp(ee),X.c(),d(X,1),X.m(a.parentNode,a)):X&&(ue(),_(X,1,1,()=>{X=null}),ce()),ee[49]?Q?(Q.p(ee,ke),ke[1]&262144&&d(Q,1)):(Q=mp(ee),Q.c(),d(Q,1),Q.m(s.parentNode,s)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),ee[53]?G?(G.p(ee,ke),ke[1]&4194304&&d(G,1)):(G=pp(ee),G.c(),d(G,1),G.m(u.parentNode,u)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),ee[39]?$?($.p(ee,ke),ke[1]&256&&d($,1)):($=_p(ee),$.c(),d($,1),$.m(f.parentNode,f)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),ee[55].value!=="off"?L?(L.p(ee,ke),ke[1]&16777216&&d(L,1)):(L=hp(ee),L.c(),d(L,1),L.m(p.parentNode,p)):L&&(ue(),_(L,1,1,()=>{L=null}),ce()),ee[37]?F?(F.p(ee,ke),ke[1]&64&&d(F,1)):(F=gp(ee),F.c(),d(F,1),F.m(h.parentNode,h)):F&&(ue(),_(F,1,1,()=>{F=null}),ce()),ee[22]?qe?(qe.p(ee,ke),ke[0]&4194304&&d(qe,1)):(qe=bp(ee),qe.c(),d(qe,1),qe.m(k.parentNode,k)):qe&&(ue(),_(qe,1,1,()=>{qe=null}),ce());let tt={};ke[1]&268435456&&(tt.isLive=ee[59]),ke[1]&4096&&(tt.isHidden=!ee[43]),ke[1]&1048576&&(tt.isPlaying=ee[51]),ke[1]&67108864&&(tt.position=ee[57]),ke[1]&536870912&&(tt.duration=ee[60]),g.$set(tt);let it={};ke[0]&2097152&&(it.supportLink=ee[21]),ke[1]&131072&&(it.returnFocus=ee[158]),ke[1]&4&&(it.visible=ee[33]),ke[1]&512&&(it.playerContainerRef=ee[40]),ke[1]&1024&&(it.controlsContainerRef=ee[41]),ke[1]&1073741824&&(it.position=ee[61]),!y&&ke[1]&2&&(y=!0,it.menuElementRef=ee[32],Oe(()=>y=!1)),v.$set(it),ee[42]?Xe?ke[1]&2048&&d(Xe,1):(Xe=vp(ee),Xe.c(),d(Xe,1),Xe.m(Z.parentNode,Z)):Xe&&(ue(),_(Xe,1,1,()=>{Xe=null}),ce()),ee[62]?ve?ke[2]&1&&d(ve,1):(ve=yp(ee),ve.c(),d(ve,1),ve.m(N.parentNode,N)):ve&&(ue(),_(ve,1,1,()=>{ve=null}),ce()),ee[63]?Be?ke[2]&2&&d(Be,1):(Be=kp(ee),Be.c(),d(Be,1),Be.m(z.parentNode,z)):Be&&(ue(),_(Be,1,1,()=>{Be=null}),ce())},i(ee){re||(d(e.$$.fragment,ee),d(se),d(O),d(J),d(E),d(X),d(Q),d(G),d($),d(L),d(F),d(qe),d(g.$$.fragment,ee),d(b.$$.fragment,ee),d(v.$$.fragment,ee),d(Xe),d(ve),d(Be),re=!0)},o(ee){_(e.$$.fragment,ee),_(se),_(O),_(J),_(E),_(X),_(Q),_(G),_($),_(L),_(F),_(qe),_(g.$$.fragment,ee),_(b.$$.fragment,ee),_(v.$$.fragment,ee),_(Xe),_(ve),_(Be),re=!1},d(ee){ee&&(C(i),C(n),C(o),C(l),C(r),C(a),C(s),C(u),C(f),C(p),C(h),C(k),C(w),C(T),C(P),C(Z),C(N),C(z)),V(e,ee),se&&se.d(ee),O&&O.d(ee),J&&J.d(ee),E&&E.d(ee),X&&X.d(ee),Q&&Q.d(ee),G&&G.d(ee),$&&$.d(ee),L&&L.d(ee),F&&F.d(ee),qe&&qe.d(ee),V(g,ee),V(b,ee),V(v,ee),Xe&&Xe.d(ee),ve&&ve.d(ee),Be&&Be.d(ee)}}}function n6(t){let e,i,n,o,l=t[52],r,a,s,u,f=wp(t);return{c(){e=I("div"),i=I("div"),o=D(),f.c(),r=at(),c(i,"class","video-container svelte-1o4wf3x"),c(i,"style",n=`transform: rotate(${t[35]}deg) scale(${t[46]})`),c(i,"data-testid","video-container"),c(i,"data-is-playing",t[51]),q(i,"fast-rotate",!t[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-1o4wf3x"),q(e,"hidden",t[38]!=="video"),q(e,"nocursor",t[45])},m(p,h){S(p,e,h),m(e,i),t[155](i),S(p,o,h),f.m(p,h),S(p,r,h),a=!0,s||(u=[de(e,"contextmenu",Et(t[108])),de(e,"mousedown",Et(t[113])),de(e,"mouseup",Et(t[114])),de(e,"click",Et(t[116])),de(e,"dblclick",Et(t[115]))],s=!0)},p(p,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&c(i,"style",n),(!a||h[1]&1048576)&&c(i,"data-is-playing",p[51]),(!a||h[0]&2)&&q(i,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&q(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&q(e,"nocursor",p[45]),h[1]&2097152&&U(l,l=p[52])?(ue(),_(f,1,1,_e),ce(),f=wp(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&&(C(e),C(o),C(r)),t[155](null),f.d(p),s=!1,et(u)}}}function o6(t){let e,i,n,o,l,r,a,s={toggleFullscreen:t[106],hideContextMenu:t[107],showHotKeyHelpers:t[117],showKeyMap:t[118],isAds:t[38]==="ads",fakePlayButtonHandler:t[47]?t[105]:void 0,$$slots:{default:[n6]},$$scope:{ctx:t}};return i=new I1({props:s}),t[160](i),{c(){e=I("div"),R(i.$$.fragment),n=D(),o=I("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-1o4wf3x")},m(u,f){S(u,e,f),M(i,e,null),m(e,n),m(e,o),t[161](o),t[162](e),l=!0,r||(a=[de(t6,"blur",t[107]),de(e,"mouseenter",t[109]),de(e,"mouseleave",t[111]),de(e,"mousemove",t[112]),de(e,"click",t[120],!0),de(e,"focusin",t[110],!0)],r=!0)},p(u,f){let p={};f[1]&128&&(p.isAds=u[38]==="ads"),f[1]&65536&&(p.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&4&&(p.$$scope={dirty:f,ctx:u}),i.$set(p)},i(u){l||(d(i.$$.fragment,u),l=!0)},o(u){_(i.$$.fragment,u),l=!1},d(u){u&&C(e),t[160](null),V(i),t[161](null),t[162](null),r=!1,et(a)}}}var Sp=!0;function yc(t){return t?t.offsetTop+yc(t.offsetParent):0}function Pp(t){return t?t.offsetLeft+Pp(t.offsetParent):0}function l6(t,e,i){let n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y,P,Z,N,z,re,se,O,J,E,X,Q,G,$,L,F,qe,ze,We,Xe,ve,Be,ee,ke,Ge,tt,it,{store:we}=e,{uiConfig:Re}=e,{title:Ze}=e,{thumbUrl:Je}=e,{videoContainer:Ce}=e,{interactiveContainer:ae}=e,{live:He}=e,{autoplay:me}=e,{canRewindLive:le}=e,{showAds:Ne}=e,{adsSlotId:Me=void 0}=e,{adsParams:Qe=void 0}=e,{adsPreviewParam:ot=void 0}=e,{duration:ye=void 0}=e,{logoClickable:ft}=e,{logoHidden:yt}=e,{logoTargetUrl:ut=""}=e,{showNextPrevButtons:mt=!1}=e,{nextButtonActive:Tt=!1}=e,{prevButtonActive:je=!1}=e,{endScreenVideoTitle:ti=void 0}=e,{endScreenVideoThumb:Nt=void 0}=e,{isOneVideoPlaylist:Ct=!1}=e,{supportLink:ui}=e,{shadowRootContainer:rt=void 0}=e,{outerContainerRef:kt=void 0}=e,{playerStarted:he=!1}=e,{fullScreenTarget:gt=void 0}=e,{showMiniTimer:St=!1}=e,{playNextVideo:Wt=_s.noop}=e,{playPrevVideo:Pt=_s.noop}=e,{repeatPlaylist:qt=_s.noop}=e,{seekToInteractive:Ft}=e,{toggleGraph:Ht}=e,{playPrevChapter:Ui}=e,{firstStart:on}=e,Gt=we.getLogger().createComponentLog("Root component"),Ai=we.interfaceLanguage$;H(t,Ai,Y=>i(52,F=Y));let mn=we.state.playbackState$;H(t,mn,Y=>i(152,Q=Y));let Ki=we.ads.playbackState;H(t,Ki,Y=>i(153,G=Y));let ji=we.state.positionWithScrubbing$;H(t,ji,Y=>i(57,ve=Y));let hi=we.state.duration$;H(t,hi,Y=>i(60,ke=Y));let gi=we.playerPhase;H(t,gi,Y=>i(38,se=Y));let ci=we.ui.isFullscreen;H(t,ci,Y=>i(142,g=Y));let bi=we.ui.controlsVisible;H(t,bi,Y=>i(36,P=Y));let vi=we.ui.settingsMenuVisible;H(t,vi,Y=>i(140,s=Y));let fi=we.ui.scrubbingInProgress;H(t,fi,Y=>i(144,v=Y));let yi=we.ui.contextMenu.visible$;H(t,yi,Y=>i(33,n=Y));let Rt=we.ui.debugPanelVisible;H(t,Rt,Y=>i(63,it=Y));let ki=we.state.isLoaderVisible;H(t,ki,Y=>i(154,$=Y));let Wi=we.state.isEnded$;H(t,Wi,Y=>i(141,f=Y));let Gi=we.state.chromecastConnected$;H(t,Gi,Y=>i(39,E=Y));let Qt=we.state.chromecastDeviceName$;H(t,Qt,Y=>i(54,ze=Y));let Qi=we.ads.postrollPassed;H(t,Qi,Y=>i(147,z=Y));let Yt=we.state.isLive$;H(t,Yt,Y=>i(59,ee=Y));let zt=we.state.isPlaying$;H(t,zt,Y=>i(51,L=Y));let Mi=we.state.crashed$;H(t,Mi,Y=>i(37,N=Y));let Zt=we.webApi.pictureInPictureApi,Vi=we.state.currentSubtitle$;H(t,Vi,Y=>i(55,We=Y));let Yi=we.state.currentSubtitleCaptions$;H(t,Yi,Y=>i(56,Xe=Y));let Li=we.state.duration$;H(t,Li,Y=>i(58,Be=Y));let Ut=we.state.graphIsOpened$;H(t,Ut,Y=>i(148,re=Y));let ii=we.ui.playerSize;H(t,ii,Y=>i(34,h=Y));let Ri=we.ui.is3DVideo;H(t,Ri,Y=>i(49,p=Y));let Xt=we.ui.icon3DVideoVisible;H(t,Xt,Y=>i(53,qe=Y));let di=we.ui.rotateAlpha;H(t,di,Y=>i(35,T=Y));let Mt=we.state.isInteractive,Bi=we.state.isInteractiveTime$;H(t,Bi,Y=>i(145,y=Y));let ni=we.state.isInteractiveExpectation$;H(t,ni,Y=>i(151,X=Y));let oi=we.state.hasInteractiveBranches,wi=we.ui.touched;H(t,wi,Y=>i(149,O=Y));let Jt=we.ui.modals.hotKeyMap.data;H(t,Jt,Y=>i(169,u=Y));let ln=we.ui.modals.hotKeyMap.show;H(t,ln,Y=>i(62,tt=Y));let rn=we.ui.overlayContainer$,Di=we.ui.controls.interactiveTimeIndicator;H(t,Di,Y=>i(170,k=Y));let Ni=we.state.showInteractiveTimeIndicator,li=we.ui.contextMenu.position$;H(t,li,Y=>i(61,Ge=Y));let Vt=we.actions.internal.closeSettingsMenu,{fakeIsPlaying$:xt}=Fn();H(t,xt,Y=>i(143,b=Y));let $t,sn,Ci,qi,an;Jt.set(qf());let ri,xe,Si=De(!1);H(t,Si,Y=>i(50,w=Y));let si,Ue=De(!1);H(t,Ue,Y=>i(150,J=Y));let Zi=De(),un=De(!1);H(t,un,Y=>i(146,Z=Y));let Xi=!1,Oi=!1,pn,Ji,Kt,Sn,Fi,Hi,_n=!1,cn,yn=!1,{toggle:hn}=xt,xi=!1,$i=null,ei;Zt?.setContext(Ll());let Ln=()=>{me&&!Mt&&jt(Re.controls.hideTimeout)};we.setUiCallbacks({onStarted:Ln});let kn=()=>{window.clearTimeout(Ci),Ue.set(!1)},Pn=()=>{window.clearTimeout(qi),Zi.set(null)},jt=Y=>{kn(),Ue.set(!0),Ci=window.setTimeout(()=>Ue.set(!1),Y);let Bt=Y-100;si=window.setTimeout(()=>{w&&Si.set(!1)},Bt>0?Bt:Y)},Rn=(Y,Bt)=>{Pn(),Zi.set(Bt),qi=window.setTimeout(()=>Zi.set(null),Y)},Bn=Ri.subscribe(Y=>{Xt.set(Y),Y&&(window.clearTimeout(an),an=window.setTimeout(()=>Xt.set(!1),Re.controls.hide360IconTimeout))}),gn=async()=>{let Y=mo();if(Y){let Bt=Nl(),qn=In();Y=Bt===qn||Bt===rt}if(Y){jt(Re.controls.hideTimeoutFullscreen);try{await Zt?.remove()}catch(Bt){Gt({message:String(Bt)})}}ci.set(Y),we.getAdmanWrapper().setFullscreen(Y),g?we.callbacks?.onFullscreenEnter?.():we.callbacks?.onFullscreenExit?.()},bn=Y=>{let Bt=Y;ii.set({width:Bt.target.width,height:Bt.target.height})};At(()=>(_r(gn),qo(Zt)&&(Zt?.assignPlayerContainer($t),Zt?.registryExternalEventHandlers({resize:bn})),ae&&Ce.parentElement?.insertBefore(ae,Ce.nextSibling),()=>{window.clearTimeout(Ci),window.clearTimeout(si),window.clearTimeout(qi),window.clearTimeout(an),Bn(),Zt?.dispose(),hr(gn)}));let In=()=>{let Y=kt??$t,Bt=Y.getRootNode(),qn=Bt instanceof ShadowRoot?Bt.host:Bt,wn=gt instanceof HTMLElement&&gt.contains(qn);return Re.allowChangingFullscreenTarget&&gt&&wn?gt:Y},ie=async()=>{mo()?(await pr(document),Gt({message:"exit fullscreen"})):(Gt({message:"request fullscreen"}),await mr(In()))},_t=()=>{Vt(),yi.set(!1)},en=Y=>{yi.set(!0),li.set({left:Y.clientX,top:Y.clientY})};function fn(){un.set(!0),Mt||jt(Re.controls.hideTimeoutCursor)}function Dn(){Mt||(Si.set(!0),jt(Re.controls.hideTimeoutCursor))}function te(){un.set(!1),i(132,Oi=!1),i(131,Xi=!1),xi=!1,we.actions.internal.releaseCamera()}function pt(Y){if(k&&Ni){let Bt=Y.currentTarget,qn=yc(Bt),wn=Pp(Bt),Zo=Y.pageX-wn,uo=Y.pageY-qn,{left:Po,bottom:Io,right:bt}=k,A=bt-Po;return Zo>=Po-A&&uo<=Io+A}}function mi(Y){if($t){let Bt=yc(Y.currentTarget),qn=h.height,wn=Y.pageY-Bt;if(pt(Y)){i(132,Oi=!1);return}wn<40?i(132,Oi=!0):wn>qn-40?i(131,Xi=!0):(i(132,Oi=!1),s||i(131,Xi=!1))}}function Nn(Y){mi(Y),Ji||jt(Re.controls.hideTimeoutCursor),p&&xi&&$i&&we.actions.internal.moveCameraFocusPX($i.clientX-Y.clientX,$i.clientY-Y.clientY,Y.timeStamp-$i.timeStamp),$i=Y}let Tn=Y=>{Y.button===0&&(xi=!0,we.actions.internal.holdCamera()),jt(Re.controls.hideTimeoutCursor)},xn=Y=>{Y.button===0&&($i=Y,xi=!1,we.actions.internal.releaseCamera()),jt(Re.controls.hideTimeoutCursor)},ne=()=>{Sp&&(Gt({message:"double click on video"}),ie(),jt(Re.controls.hideTimeoutCursor))},En=()=>{if(n||s){_t();return}if(!(f&&!oi)){if(yn)return hn();if(ei?.focus(),!he){on(),jt(Re.controls.hideTimeoutCursor);return}we.actions.internal.togglePlay(),jt(Re.controls.hideTimeoutCursor)}},Wo=Y=>{_t(),wi.set(!0),jt(Re.controls.hideTimeout),Y&&Rn(Re.controls.hideHotKeyHelpers,Y)},El=()=>{_t(),we.callbacks?.onOpenHotKeyMap?we.callbacks?.onOpenHotKeyMap(u):ln.update(Y=>!Y)},Al=()=>{if(n||s){_t();return}},Ml=()=>{wi.set(!0)},vo=we.ui.contextMenu.openedByBtnKeyboard$;H(t,vo,Y=>i(139,a=Y));let yo=we.ui.contextMenu.btnRef$;H(t,yo,Y=>i(138,r=Y));let $n,ro=we.ui.contextMenu.openedByHotKey$;H(t,ro,Y=>i(137,l=Y));let Go=we.ui.contextMenu.lastActiveElem$;H(t,Go,Y=>i(136,o=Y));function ko(Y){pe[Y?"unshift":"push"](()=>{Ce=Y,i(0,Ce)})}let wo=()=>ei?.focus();function Co(Y){sn=Y,i(41,sn)}let so=()=>ei?.focus();function ao(Y){$n=Y,i(32,$n)}function Qo(Y){pe[Y?"unshift":"push"](()=>{ei=Y,i(48,ei)})}function So(Y){pe[Y?"unshift":"push"](()=>{xe=Y,i(30,xe)})}function Yo(Y){pe[Y?"unshift":"push"](()=>{$t=Y,i(40,$t)})}return t.$$set=Y=>{"store"in Y&&i(125,we=Y.store),"uiConfig"in Y&&i(1,Re=Y.uiConfig),"title"in Y&&i(2,Ze=Y.title),"thumbUrl"in Y&&i(3,Je=Y.thumbUrl),"videoContainer"in Y&&i(0,Ce=Y.videoContainer),"interactiveContainer"in Y&&i(126,ae=Y.interactiveContainer),"live"in Y&&i(4,He=Y.live),"autoplay"in Y&&i(5,me=Y.autoplay),"canRewindLive"in Y&&i(6,le=Y.canRewindLive),"showAds"in Y&&i(7,Ne=Y.showAds),"adsSlotId"in Y&&i(8,Me=Y.adsSlotId),"adsParams"in Y&&i(9,Qe=Y.adsParams),"adsPreviewParam"in Y&&i(10,ot=Y.adsPreviewParam),"duration"in Y&&i(11,ye=Y.duration),"logoClickable"in Y&&i(12,ft=Y.logoClickable),"logoHidden"in Y&&i(13,yt=Y.logoHidden),"logoTargetUrl"in Y&&i(14,ut=Y.logoTargetUrl),"showNextPrevButtons"in Y&&i(15,mt=Y.showNextPrevButtons),"nextButtonActive"in Y&&i(16,Tt=Y.nextButtonActive),"prevButtonActive"in Y&&i(17,je=Y.prevButtonActive),"endScreenVideoTitle"in Y&&i(18,ti=Y.endScreenVideoTitle),"endScreenVideoThumb"in Y&&i(19,Nt=Y.endScreenVideoThumb),"isOneVideoPlaylist"in Y&&i(20,Ct=Y.isOneVideoPlaylist),"supportLink"in Y&&i(21,ui=Y.supportLink),"shadowRootContainer"in Y&&i(127,rt=Y.shadowRootContainer),"outerContainerRef"in Y&&i(128,kt=Y.outerContainerRef),"playerStarted"in Y&&i(22,he=Y.playerStarted),"fullScreenTarget"in Y&&i(129,gt=Y.fullScreenTarget),"showMiniTimer"in Y&&i(130,St=Y.showMiniTimer),"playNextVideo"in Y&&i(23,Wt=Y.playNextVideo),"playPrevVideo"in Y&&i(24,Pt=Y.playPrevVideo),"repeatPlaylist"in Y&&i(25,qt=Y.repeatPlaylist),"seekToInteractive"in Y&&i(26,Ft=Y.seekToInteractive),"toggleGraph"in Y&&i(27,Ht=Y.toggleGraph),"playPrevChapter"in Y&&i(28,Ui=Y.playPrevChapter),"firstStart"in Y&&i(29,on=Y.firstStart)},t.$$.update=()=>{if(t.$$.dirty[1]&192|t.$$.dirty[4]&1610612736)e:i(42,ri=(se==="video"&&$||se==="ads"&&G==="inactive")&&!N);if(t.$$.dirty[0]&1073741824)e:rn.set(xe);if(t.$$.dirty[4]&268435456)e:i(133,pn=Q!==Cp.PlaybackState.PLAYING);if(t.$$.dirty[4]&136381312)e:i(134,Ji=y&&!s&&!(Xi||Oi)&&!(pn&&!X));if(t.$$.dirty[1]&448|t.$$.dirty[4]&68224512)e:bi.set((pn||s||v||E||J)&&!Ji&&(se==="video"||se==="ads")&&!N);if(t.$$.dirty[0]&2|t.$$.dirty[1]&224|t.$$.dirty[4]&33554496)e:i(43,Kt=Re.features.thumbTimer&&St&&se==="video"&&!P&&!N&&!Mt&&(Re.hideThumbTimerAfterTouch&&!O||!Re.hideThumbTimerAfterTouch));if(t.$$.dirty[1]&128|t.$$.dirty[4]&17039360)e:i(44,Sn=se==="video"&&!re&&g);if(t.$$.dirty[0]&128|t.$$.dirty[1]&64|t.$$.dirty[4]&8519680)e:i(31,Fi=(Ne&&z||!Ne)&&f&&!N);if(t.$$.dirty[1]&33|t.$$.dirty[4]&6291456)e:i(45,Hi=Z&&!(P||Fi)&&!y);if(t.$$.dirty[0]&2|t.$$.dirty[4]&3147776)e:!v&&_n&&!y&&jt(Re.controls.hideTimeoutCursor),i(135,_n=v);if(t.$$.dirty[0]&1|t.$$.dirty[1]&24)e:i(46,cn=Ce&&T%180?h.height/h.width:1);if(t.$$.dirty[4]&524288)e:i(47,yn=b!==null);if(t.$$.dirty[1]&6|t.$$.dirty[4]&32768)e:Ho($n,n,a);if(t.$$.dirty[1]&4|t.$$.dirty[4]&16384)e:{let Y=r;Y&&fl(Y,n,vo)}if(t.$$.dirty[1]&6|t.$$.dirty[4]&8192)e:Ho($n,n,l);if(t.$$.dirty[1]&4|t.$$.dirty[4]&4096)e:{let Y=o;Y&&Jf(Y,n,ro)}},[Ce,Re,Ze,Je,He,me,le,Ne,Me,Qe,ot,ye,ft,yt,ut,mt,Tt,je,ti,Nt,Ct,ui,he,Wt,Pt,qt,Ft,Ht,Ui,on,xe,Fi,$n,n,h,T,P,N,se,E,$t,sn,ri,Kt,Sn,Hi,cn,yn,ei,p,w,L,F,qe,ze,We,Xe,ve,Be,ee,ke,Ge,tt,it,Ai,mn,Ki,ji,hi,gi,ci,bi,vi,fi,yi,Rt,ki,Wi,Gi,Qt,Qi,Yt,zt,Mi,Vi,Yi,Li,Ut,ii,Ri,Xt,di,Mt,Bi,ni,wi,Jt,ln,Di,li,xt,Si,Ue,Zi,un,hn,ie,_t,en,fn,Dn,te,Nn,Tn,xn,ne,En,Wo,El,Al,Ml,vo,yo,ro,Go,we,ae,rt,kt,gt,St,Xi,Oi,pn,Ji,_n,o,l,r,a,s,f,g,b,v,y,Z,z,re,O,J,X,Q,G,$,ko,wo,Co,so,ao,Qo,So,Yo]}var kc=class extends K{constructor(e){super(),W(this,e,l6,o6,U,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},i6,[-1,-1,-1,-1,-1,-1,-1])}},Ip=kc;var jp=require("@vkontakte/videoplayer-core"),lo=require("@vkontakte/videoplayer-shared");function r6(t){Se(t,"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 Tp(t){let e,i,n,o,l,r,a,s,u,f,p,h,k,g,w,b=j("doubletap_seek_step",{seconds:t[1].toFixed(0)})+"",T;return{c(){e=I("div"),n=D(),o=I("div"),l=I("div"),r=I("div"),s=D(),u=I("div"),p=D(),h=I("div"),g=D(),w=I("p"),T=Ae(b),c(e,"class",i="semicircle "+t[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+t[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+t[0]+" svelte-nhq2ld"),c(h,"class",k="triangle "+t[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(w,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(v,y){S(v,e,y),S(v,n,y),S(v,o,y),m(o,l),m(l,r),m(l,s),m(l,u),m(l,p),m(l,h),m(o,g),m(o,w),m(w,T)},p(v,y){y&1&&i!==(i="semicircle "+v[0]+" svelte-nhq2ld")&&c(e,"class",i),y&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&c(r,"class",a),y&1&&f!==(f="triangle "+v[0]+" svelte-nhq2ld")&&c(u,"class",f),y&1&&k!==(k="triangle "+v[0]+" svelte-nhq2ld")&&c(h,"class",k),y&2&&b!==(b=j("doubletap_seek_step",{seconds:v[1].toFixed(0)})+"")&&Ke(T,b)},d(v){v&&(C(e),C(n),C(o))}}}function s6(t){let e,i,n,o,l=t[2]&&Tp(t);return{c(){e=I("div"),l&&l.c(),c(e,"class",i="double-click-area "+t[0]+" svelte-nhq2ld")},m(r,a){S(r,e,a),l&&l.m(e,null),n||(o=de(e,"click",st(t[3]())),n=!0)},p(r,[a]){r[2]?l?l.p(r,a):(l=Tp(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&1&&i!==(i="double-click-area "+r[0]+" svelte-nhq2ld")&&c(e,"class",i)},i:_e,o:_e,d(r){r&&C(e),l&&l.d(),n=!1,o()}}}function a6(t,e,i){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(),i(2,a=!0),u=window.setTimeout(()=>{i(2,a=!1)},500))}};return jn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),t.$$set=p=>{"side"in p&&i(0,n=p.side),"seekStep"in p&&i(1,o=p.seekStep),"handleSingleFirstClick"in p&&i(4,l=p.handleSingleFirstClick),"handleSecondClick"in p&&i(5,r=p.handleSecondClick)},[n,o,a,f,l,r]}var wc=class extends K{constructor(e){super(),W(this,e,a6,s6,U,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},r6)}},Cc=wc;function u6(t,e,i){let{playNextVideo:n}=e;return At(()=>{n()}),t.$$set=o=>{"playNextVideo"in o&&i(0,n=o.playNextVideo)},[n]}var Sc=class extends K{constructor(e){super(),W(this,e,u6,null,U,{playNextVideo:0})}},Ep=Sc;var{window:c6}=Eo;function f6(t){Se(t,"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 Ap(t){let e,i,n,o;e=new Cc({props:{side:"left",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[99],handleSecondClick:t[130]}});let l=!t[49]&&Mp(t);return{c(){R(e.$$.fragment),i=D(),l&&l.c(),n=at()},m(r,a){M(e,r,a),S(r,i,a),l&&l.m(r,a),S(r,n,a),o=!0},p(r,a){let s={};a[0]&2&&(s.seekStep=r[1].controls.seekStepMobile/1e3),e.$set(s),r[49]?l&&(ue(),_(l,1,1,()=>{l=null}),ce()):l?(l.p(r,a),a[1]&262144&&d(l,1)):(l=Mp(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&&(C(i),C(n)),V(e,r),l&&l.d(r)}}}function Mp(t){let e,i;return e=new Cc({props:{side:"right",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[99],handleSecondClick:t[131]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Vp(t){let e,i;return e=new ms({props:{thumbUrl:t[2],startTime:t[3]?.startTime}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!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){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Lp(t){let e,i;return e=new ps({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Rp(t){let e,i,n;return i=new gr({props:{adsSlotId:t[7],adsParams:t[8],adsPreviewParam:t[9],duration:t[10]}}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","ads-container svelte-1jy89ut"),q(e,"hidden",t[34]!=="ads")},m(o,l){S(o,e,l),M(i,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]),i.$set(r),(!n||l[1]&8)&&q(e,"hidden",o[34]!=="ads")},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function Bp(t){let e,i;return e=new Ep({props:{playNextVideo:t[22]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Dp(t){let e,i;return e=new as({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Np(t){let e,i,n;return i=new ar({props:{"aria-label":j("video360")}}),{c(){e=I("div"),R(i.$$.fragment),c(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,l){S(o,e,l),M(i,e,null),n=!0},p:_e,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&C(e),V(i)}}}function qp(t){let e,i;return e=new cs({props:{thumbUrl:t[2],chromecastDeviceName:t[52]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&2097152&&(l.chromecastDeviceName=n[52]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Op(t){let e,i;return e=new us({props:{shifted:t[30],captions:t[54],position:t[44],playerSize:t[31],isMobile:!0}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&8388608&&(l.captions=n[54]),o[1]&8192&&(l.position=n[44]),o[1]&1&&(l.playerSize=n[31]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Fp(t){let e,i,n,o,l;return i=new fs({}),{c(){e=I("div"),R(i.$$.fragment)},m(r,a){S(r,e,a),M(i,e,null),n=!0,o||(l=de(e,"click",st(t[100])),o=!0)},p:_e,i(r){n||(d(i.$$.fragment,r),n=!0)},o(r){_(i.$$.fragment,r),n=!1},d(r){r&&C(e),V(i),o=!1,l()}}}function Hp(t){let e,i,n;function o(r){t[132](r)}let l={bottomHidden:t[34]==="thumb"||t[34]==="waitingLive"||t[34]==="waitingRecord"||t[34]==="ads",showControls:t[30],bottomNoSmooth:t[45],isAds:t[34]==="ads",canRewindLive:t[5]&&t[55]!==0,logoClickable:t[11],logoHidden:t[12],logoTargetUrl:t[13],showNextPrevButtons:t[14],nextButtonActive:t[15],prevButtonActive:t[16],isOneVideoPlaylist:t[19],supportLink:t[20],customFullscreenSupported:t[39],playNextVideo:t[22],playPrevVideo:t[23],repeatPlaylist:t[24],toggleFullscreen:t[97],seekToInteractive:t[25],toggleGraph:t[26],playPrevChapter:t[27],onDisabledPlayPrevChapterClick:t[103],onDisabledSeekToInteractiveClick:t[104]};return t[37]!==void 0&&(l.controlsElementRef=t[37]),e=new ss({props:l}),pe.push(()=>Fe(e,"controlsElementRef",o)),{c(){R(e.$$.fragment)},m(r,a){M(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]&16777216&&(s.canRewindLive=r[5]&&r[55]!==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]),!i&&a[1]&64&&(i=!0,s.controlsElementRef=r[37],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function zp(t){let e,i;return e=new Ir({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Up(t){let e,i;return e=new Cr({}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function Kp(t){let e,i,n=t[5]&&t[78]&&!t[48].has("TIMELINE"),o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y;e=new ds({props:{hidden:t[34]!=="thumb"||t[33]||t[89]&&t[4],thumbUrl:t[2],startVideo:t[28]}});let P=n&&Ap(t),Z=t[34]==="waitingLive"&&Vp(t),N=t[34]==="waitingRecord"&&Lp(t),z=t[6]&&t[21]&&Rp(t),re=t[41]&&t[17]&&t[18]&&Bp(t),se=t[50]&&Dp(t),O=t[51]&&Np(t),J=t[35]&&qp(t),E=t[53].value!=="off"&&Op(t),X=t[33]&&Fp(t),Q=t[21]&&Hp(t);w=new vr({props:{isLive:t[56],isHidden:!t[40],isPlaying:t[46],position:t[44],duration:t[43]}});let G=t[38]&&zp(t),$=t[57]&&Up(t);return{c(){R(e.$$.fragment),i=D(),P&&P.c(),o=D(),Z&&Z.c(),l=D(),N&&N.c(),r=D(),z&&z.c(),a=D(),re&&re.c(),s=D(),se&&se.c(),u=D(),O&&O.c(),f=D(),J&&J.c(),p=D(),E&&E.c(),h=D(),X&&X.c(),k=D(),Q&&Q.c(),g=D(),R(w.$$.fragment),b=D(),G&&G.c(),T=D(),$&&$.c(),v=at()},m(L,F){M(e,L,F),S(L,i,F),P&&P.m(L,F),S(L,o,F),Z&&Z.m(L,F),S(L,l,F),N&&N.m(L,F),S(L,r,F),z&&z.m(L,F),S(L,a,F),re&&re.m(L,F),S(L,s,F),se&&se.m(L,F),S(L,u,F),O&&O.m(L,F),S(L,f,F),J&&J.m(L,F),S(L,p,F),E&&E.m(L,F),S(L,h,F),X&&X.m(L,F),S(L,k,F),Q&&Q.m(L,F),S(L,g,F),M(w,L,F),S(L,b,F),G&&G.m(L,F),S(L,T,F),$&&$.m(L,F),S(L,v,F),y=!0},p(L,F){let qe={};F[0]&16|F[1]&12&&(qe.hidden=L[34]!=="thumb"||L[33]||L[89]&&L[4]),F[0]&4&&(qe.thumbUrl=L[2]),F[0]&268435456&&(qe.startVideo=L[28]),e.$set(qe),F[0]&32|F[1]&131072&&(n=L[5]&&L[78]&&!L[48].has("TIMELINE")),n?P?(P.p(L,F),F[0]&32|F[1]&131072&&d(P,1)):(P=Ap(L),P.c(),d(P,1),P.m(o.parentNode,o)):P&&(ue(),_(P,1,1,()=>{P=null}),ce()),L[34]==="waitingLive"?Z?(Z.p(L,F),F[1]&8&&d(Z,1)):(Z=Vp(L),Z.c(),d(Z,1),Z.m(l.parentNode,l)):Z&&(ue(),_(Z,1,1,()=>{Z=null}),ce()),L[34]==="waitingRecord"?N?F[1]&8&&d(N,1):(N=Lp(L),N.c(),d(N,1),N.m(r.parentNode,r)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),L[6]&&L[21]?z?(z.p(L,F),F[0]&2097216&&d(z,1)):(z=Rp(L),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(ue(),_(z,1,1,()=>{z=null}),ce()),L[41]&&L[17]&&L[18]?re?(re.p(L,F),F[0]&393216|F[1]&1024&&d(re,1)):(re=Bp(L),re.c(),d(re,1),re.m(s.parentNode,s)):re&&(ue(),_(re,1,1,()=>{re=null}),ce()),L[50]?se?F[1]&524288&&d(se,1):(se=Dp(L),se.c(),d(se,1),se.m(u.parentNode,u)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),L[51]?O?(O.p(L,F),F[1]&1048576&&d(O,1)):(O=Np(L),O.c(),d(O,1),O.m(f.parentNode,f)):O&&(ue(),_(O,1,1,()=>{O=null}),ce()),L[35]?J?(J.p(L,F),F[1]&16&&d(J,1)):(J=qp(L),J.c(),d(J,1),J.m(p.parentNode,p)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),L[53].value!=="off"?E?(E.p(L,F),F[1]&4194304&&d(E,1)):(E=Op(L),E.c(),d(E,1),E.m(h.parentNode,h)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),L[33]?X?(X.p(L,F),F[1]&4&&d(X,1)):(X=Fp(L),X.c(),d(X,1),X.m(k.parentNode,k)):X&&(ue(),_(X,1,1,()=>{X=null}),ce()),L[21]?Q?(Q.p(L,F),F[0]&2097152&&d(Q,1)):(Q=Hp(L),Q.c(),d(Q,1),Q.m(g.parentNode,g)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce());let ze={};F[1]&33554432&&(ze.isLive=L[56]),F[1]&512&&(ze.isHidden=!L[40]),F[1]&32768&&(ze.isPlaying=L[46]),F[1]&8192&&(ze.position=L[44]),F[1]&4096&&(ze.duration=L[43]),w.$set(ze),L[38]?G?F[1]&128&&d(G,1):(G=zp(L),G.c(),d(G,1),G.m(T.parentNode,T)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),L[57]?$?F[1]&67108864&&d($,1):($=Up(L),$.c(),d($,1),$.m(v.parentNode,v)):$&&(ue(),_($,1,1,()=>{$=null}),ce())},i(L){y||(d(e.$$.fragment,L),d(P),d(Z),d(N),d(z),d(re),d(se),d(O),d(J),d(E),d(X),d(Q),d(w.$$.fragment,L),d(G),d($),y=!0)},o(L){_(e.$$.fragment,L),_(P),_(Z),_(N),_(z),_(re),_(se),_(O),_(J),_(E),_(X),_(Q),_(w.$$.fragment,L),_(G),_($),y=!1},d(L){L&&(C(i),C(o),C(l),C(r),C(a),C(s),C(u),C(f),C(p),C(h),C(k),C(g),C(b),C(T),C(v)),V(e,L),P&&P.d(L),Z&&Z.d(L),N&&N.d(L),z&&z.d(L),re&&re.d(L),se&&se.d(L),O&&O.d(L),J&&J.d(L),E&&E.d(L),X&&X.d(L),Q&&Q.d(L),V(w,L),G&&G.d(L),$&&$.d(L)}}}function d6(t){let e,i,n,o,l,r=t[47],a,s,u,f,p,h,k=Kp(t);return{c(){e=I("div"),i=I("div"),n=I("div"),l=D(),k.c(),a=D(),s=I("div"),c(n,"class","video-container svelte-1jy89ut"),c(n,"style",o=`transform: rotate(${t[32]}deg) scale(${t[42]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",t[46]),q(n,"fast-rotate",!t[1].isSmoothVideoRotate),c(i,"class","video-wrapper svelte-1jy89ut"),q(i,"hidden",t[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,w){S(g,e,w),m(e,i),m(i,n),t[129](n),m(e,l),k.m(e,null),m(e,a),m(e,s),t[133](s),t[134](e),f=!0,p||(h=[de(c6,"blur",t[98]),de(i,"click",Et(t[99])),de(e,"click",t[101],!0),de(e,"focusin",t[102],!0)],p=!0)},p(g,w){(!f||w[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&c(n,"style",o),(!f||w[1]&32768)&&c(n,"data-is-playing",g[46]),(!f||w[0]&2)&&q(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||w[1]&8)&&q(i,"hidden",g[34]!=="video"),w[1]&65536&&U(r,r=g[47])?(ue(),_(k,1,1,_e),ce(),k=Kp(g),k.c(),d(k,1),k.m(e,a)):k.p(g,w)},i(g){f||(d(k),f=!0)},o(g){_(k),f=!1},d(g){g&&C(e),t[129](null),k.d(g),t[133](null),t[134](null),p=!1,et(h)}}}function m6(t,e,i){let n,o,l,r,a,s,u,f,p,h,k,g,w,b,T,v,y,P,Z,N,z,re,se,O,J,E,X,Q,G,$,L,F,qe,ze,We,Xe,{store:ve}=e,{uiConfig:Be}=e,{thumbUrl:ee}=e,{videoContainer:ke}=e,{interactiveContainer:Ge}=e,{live:tt}=e,{autoplay:it}=e,{canRewindLive:we}=e,{showAds:Re}=e,{adsSlotId:Ze=void 0}=e,{adsParams:Je=void 0}=e,{adsPreviewParam:Ce=void 0}=e,{duration:ae=void 0}=e,{logoClickable:He}=e,{logoHidden:me}=e,{logoTargetUrl:le=""}=e,{showNextPrevButtons:Ne=!1}=e,{nextButtonActive:Me=!1}=e,{prevButtonActive:Qe=!1}=e,{endScreenVideoTitle:ot=void 0}=e,{endScreenVideoThumb:ye=void 0}=e,{isOneVideoPlaylist:ft=!1}=e,{supportLink:yt}=e,{shadowRootContainer:ut=void 0}=e,{outerContainerRef:mt=void 0}=e,{showMiniTimer:Tt=!1}=e,{fullScreenTarget:je=void 0}=e,{playerStarted:ti=!1}=e,{playNextVideo:Nt=lo.noop}=e,{playPrevVideo:Ct=lo.noop}=e,{repeatPlaylist:ui=lo.noop}=e,{seekToInteractive:rt}=e,{toggleGraph:kt}=e,{playPrevChapter:he}=e,{firstStart:gt}=e,{seekTime:St}=e,Wt=ve.getLogger().createComponentLog("Root component"),Pt=ve.interfaceLanguage$;H(t,Pt,ie=>i(47,E=ie));let qt=ve.state.playbackState$;H(t,qt,ie=>i(126,re=ie));let Ft=ve.ads.playbackState;H(t,Ft,ie=>i(127,se=ie));let Ht=ve.state.positionWithScrubbing$;H(t,Ht,ie=>i(44,a=ie));let Ui=ve.state.duration$;H(t,Ui,ie=>i(43,r=ie));let on=ve.playerPhase;H(t,on,ie=>i(34,P=ie));let Gt=ve.ui.isFullscreen;H(t,Gt,ie=>i(140,s=ie));let Ai=ve.ui.controlsVisible;H(t,Ai,ie=>i(30,o=ie));let mn=ve.ui.interactiveHideMobileControls;H(t,mn,ie=>i(118,h=ie));let Ki=ve.ui.settingsMenuVisible;H(t,Ki,ie=>i(117,n=ie));let ji=ve.ui.scrubbingInProgress;H(t,ji,ie=>i(119,g=ie));let hi=ve.ui.debugPanelVisible;H(t,hi,ie=>i(57,Xe=ie));let gi=ve.state.isLoaderVisible;H(t,gi,ie=>i(128,O=ie));let ci=ve.state.isEnded$;H(t,ci,ie=>i(121,T=ie));let bi=ve.state.chromecastConnected$;H(t,bi,ie=>i(35,Z=ie));let vi=ve.state.chromecastDeviceName$;H(t,vi,ie=>i(52,L=ie));let fi=ve.ads.postrollPassed;H(t,fi,ie=>i(122,v=ie));let yi=ve.ui.mobileUnmuteButtonExpanded,Rt=ve.ui.mobileUnmuteButtonVisible,ki=ve.state.isLive$;H(t,ki,ie=>i(56,We=ie));let Wi=ve.state.isPlaying$;H(t,Wi,ie=>i(46,J=ie));let Gi=ve.state.isActiveLive$;H(t,Gi,ie=>i(49,Q=ie));let Qt=ve.state.isRewindableLive$,Qi=ve.state.crashed$;H(t,Qi,ie=>i(33,b=ie));let Yt=ve.webApi.pictureInPictureApi,zt=ve.state.videoSize$;H(t,zt,ie=>i(141,f=ie));let Mi=ve.state.currentSubtitle$;H(t,Mi,ie=>i(53,F=ie));let Zt=ve.state.currentSubtitleCaptions$;H(t,Zt,ie=>i(54,qe=ie));let Vi=ve.state.duration$;H(t,Vi,ie=>i(55,ze=ie));let Yi=ve.state.graphIsOpened$;H(t,Yi,ie=>i(125,z=ie));let Li=ve.ui.playerSize;H(t,Li,ie=>i(31,u=ie));let Ut=ve.ui.is3DVideo;H(t,Ut,ie=>i(50,G=ie));let ii=ve.ui.icon3DVideoVisible;H(t,ii,ie=>i(51,$=ie));let Ri=ve.ui.rotateAlpha;H(t,Ri,ie=>i(32,k=ie));let Xt=ve.state.isInteractive,di=ve.state.isInteractiveTime$;H(t,di,ie=>i(120,w=ie));let Mt=ve.state.isInteractiveExpectation$;H(t,Mt,ie=>i(124,N=ie));let Bi=ve.state.hasInteractiveBranches,ni=ve.ui.controls.disabledControls$;H(t,ni,ie=>i(48,X=ie));let oi=ve.ui.touched;H(t,oi,ie=>i(123,y=ie));let wi=ve.ui.overlayContainer$,Jt=ve.state.isFirstBytes$;H(t,Jt,ie=>i(139,l=ie));let ln=ve.actions.internal.closeSettingsMenu,rn=ve.callbacks?.onDisabledPlayPrevChapterClick,Di=ve.callbacks?.onDisabledSeekToInteractiveClick,Ni,li,Vt,xt,$t,sn,Ci,qi=De(!1);H(t,qi,ie=>i(45,p=ie));let an,ri=!1,xe,Si=!1,si,Ue=!0,Zi,un,Xi=!1,Oi;Yt?.setContext(Ll());let pn=ie=>{clearTimeout(xt),ie&&(Rt.set(!0),yi.set(!0),xt=window.setTimeout(()=>{yi.set(!1)},Be.controls.collapseMobileUnmute),Xt||Kt(Be.controls.hideTimeoutMobile))};ve.setUiCallbacks({onStarted:pn});let Ji=()=>{window.clearTimeout(Vt),i(112,ri=!1),h&&mn.set(!1)},Kt=ie=>{Ji(),i(112,ri=!0),Vt=window.setTimeout(()=>i(112,ri=!1),ie);let _t=ie-100;an=window.setTimeout(()=>{p&&qi.set(!1)},_t>0?_t:ie)},Sn=Ut.subscribe(ie=>{ii.set(ie),ie&&(window.clearTimeout($t),$t=window.setTimeout(()=>ii.set(!1),Be.controls.hide360IconTimeout))}),Fi=async()=>{let ie=mo();if(ie){let _t=Nl(),en=cn(),fn=lo.CC.isSamsungBrowser&&_t===ut;ie=_t===en||fn}if(ie){Kt(Be.controls.hideTimeoutFullscreen);try{await Yt?.remove()}catch(_t){Wt({message:String(_t)})}try{let _t=f?.width&&f?.height?f:u;await Nf(_t)}catch(_t){Wt({message:String(_t)})}}Gt.set(ie),ve.getAdmanWrapper().setFullscreen(ie),s?ve.callbacks?.onFullscreenEnter?.():ve.callbacks?.onFullscreenExit?.()},Hi=ie=>{let _t=ie;Li.set({width:_t.target.width,height:_t.target.height})};At(()=>(_r(Fi),qo(Yt)&&(Yt?.assignPlayerContainer(Ni),Yt?.registryExternalEventHandlers({resize:Hi})),i(39,Ue=!lo.CC.isIphoneOrOldIpad),Ge&&ke.parentElement?.insertBefore(Ge,ke.nextSibling),()=>{window.clearTimeout(Vt),window.clearTimeout(an),window.clearTimeout(xt),window.clearTimeout($t),Sn(),Yt?.dispose(),hr(Fi)}));let _n=ie=>{let _t=a+(ie==="forward"?1:-1)*Be.controls.seekStepMobile/1e3;_t<0?_t=0:_t>r&&(_t=r-1),i(114,Si=!0),St(_t)},cn=()=>{let ie=lo.CC.isIOS||!mt?Ni:mt,_t=ie.getRootNode(),en=_t instanceof ShadowRoot?_t.host:_t,fn=je instanceof HTMLElement&&je.contains(en);return Be.allowChangingFullscreenTarget&&je&&fn?je:ie},yn=async()=>{if(mo())await pr(document),Wt({message:"exit fullscreen"});else{if(Wt({message:"request fullscreen"}),lo.CC.isIOS&&!l)return;await mr(cn())}},hn=()=>{ln()},xi=()=>{if(n){hn();return}if(!ti){gt(),Kt(Be.controls.hideTimeoutCursor);return}i(114,Si=!1),o?Ji():Kt(Be.controls.hideTimeoutMobile)},$i=()=>{if(n){hn();return}},ei=()=>{oi.set(!0)},Ln=()=>{Xt||(qi.set(!0),Kt(Be.controls.hideTimeoutCursor))},kn=ie=>{rn&&(rn(ie),Kt(Be.controls.hideTimeoutMobile))},Pn=ie=>{Di&&(Di(ie),Kt(Be.controls.hideTimeoutMobile))};function jt(ie){pe[ie?"unshift":"push"](()=>{ke=ie,i(0,ke)})}let Rn=()=>_n("backward"),Bn=()=>_n("forward");function gn(ie){li=ie,i(37,li)}function bn(ie){pe[ie?"unshift":"push"](()=>{Ci=ie,i(29,Ci)})}function In(ie){pe[ie?"unshift":"push"](()=>{Ni=ie,i(36,Ni)})}return t.$$set=ie=>{"store"in ie&&i(105,ve=ie.store),"uiConfig"in ie&&i(1,Be=ie.uiConfig),"thumbUrl"in ie&&i(2,ee=ie.thumbUrl),"videoContainer"in ie&&i(0,ke=ie.videoContainer),"interactiveContainer"in ie&&i(106,Ge=ie.interactiveContainer),"live"in ie&&i(3,tt=ie.live),"autoplay"in ie&&i(4,it=ie.autoplay),"canRewindLive"in ie&&i(5,we=ie.canRewindLive),"showAds"in ie&&i(6,Re=ie.showAds),"adsSlotId"in ie&&i(7,Ze=ie.adsSlotId),"adsParams"in ie&&i(8,Je=ie.adsParams),"adsPreviewParam"in ie&&i(9,Ce=ie.adsPreviewParam),"duration"in ie&&i(10,ae=ie.duration),"logoClickable"in ie&&i(11,He=ie.logoClickable),"logoHidden"in ie&&i(12,me=ie.logoHidden),"logoTargetUrl"in ie&&i(13,le=ie.logoTargetUrl),"showNextPrevButtons"in ie&&i(14,Ne=ie.showNextPrevButtons),"nextButtonActive"in ie&&i(15,Me=ie.nextButtonActive),"prevButtonActive"in ie&&i(16,Qe=ie.prevButtonActive),"endScreenVideoTitle"in ie&&i(17,ot=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&i(18,ye=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&i(19,ft=ie.isOneVideoPlaylist),"supportLink"in ie&&i(20,yt=ie.supportLink),"shadowRootContainer"in ie&&i(107,ut=ie.shadowRootContainer),"outerContainerRef"in ie&&i(108,mt=ie.outerContainerRef),"showMiniTimer"in ie&&i(109,Tt=ie.showMiniTimer),"fullScreenTarget"in ie&&i(110,je=ie.fullScreenTarget),"playerStarted"in ie&&i(21,ti=ie.playerStarted),"playNextVideo"in ie&&i(22,Nt=ie.playNextVideo),"playPrevVideo"in ie&&i(23,Ct=ie.playPrevVideo),"repeatPlaylist"in ie&&i(24,ui=ie.repeatPlaylist),"seekToInteractive"in ie&&i(25,rt=ie.seekToInteractive),"toggleGraph"in ie&&i(26,kt=ie.toggleGraph),"playPrevChapter"in ie&&i(27,he=ie.playPrevChapter),"firstStart"in ie&&i(28,gt=ie.firstStart),"seekTime"in ie&&i(111,St=ie.seekTime)},t.$$.update=()=>{if(t.$$.dirty[1]&12|t.$$.dirty[4]&24)e:i(38,sn=(P==="video"&&O||P==="ads"&&se==="inactive")&&!b);if(t.$$.dirty[0]&536870912)e:wi.set(Ci);if(t.$$.dirty[4]&4)e:i(113,xe=re!==jp.PlaybackState.PLAYING);if(t.$$.dirty[3]&303562752|t.$$.dirty[4]&3)e:i(115,si=z||h||!ri&&(T&&!!Bi||xe&&N));if(t.$$.dirty[1]&28|t.$$.dirty[3]&91750400)e:Ai.set((xe||n||g||Z||ri&&!Si)&&!si&&P==="video"&&!b);if(t.$$.dirty[0]&1073741826|t.$$.dirty[1]&12|t.$$.dirty[3]&1073807360)e:i(40,Zi=Be.features.thumbTimer&&Tt&&P==="video"&&!o&&!b&&!Xt&&(Be.hideThumbTimerAfterTouch&&!y||!Be.hideThumbTimerAfterTouch));if(t.$$.dirty[0]&64|t.$$.dirty[1]&4|t.$$.dirty[3]&805306368)e:i(41,un=(Re&&v||!Re)&&T&&!b);if(t.$$.dirty[0]&2|t.$$.dirty[3]&209715200)e:!g&&Xi&&!w&&Kt(Be.controls.hideTimeoutMobile),i(116,Xi=g);if(t.$$.dirty[0]&1|t.$$.dirty[1]&3)e:i(42,Oi=ke&&k%180?u.height/u.width:1)},[ke,Be,ee,tt,it,we,Re,Ze,Je,Ce,ae,He,me,le,Ne,Me,Qe,ot,ye,ft,yt,ti,Nt,Ct,ui,rt,kt,he,gt,Ci,o,u,k,b,P,Z,Ni,li,sn,Ue,Zi,un,Oi,r,a,p,J,E,X,Q,G,$,L,F,qe,ze,We,Xe,Pt,qt,Ft,Ht,Ui,on,Gt,Ai,mn,Ki,ji,hi,gi,ci,bi,vi,fi,ki,Wi,Gi,Qt,Qi,zt,Mi,Zt,Vi,Yi,Li,Ut,ii,Ri,Xt,di,Mt,ni,oi,Jt,qi,_n,yn,hn,xi,$i,ei,Ln,kn,Pn,ve,Ge,ut,mt,Tt,je,St,ri,xe,Si,si,Xi,n,h,g,w,T,v,y,N,z,re,se,O,jt,Rn,Bn,gn,bn,In]}var Pc=class extends K{constructor(e){super(),W(this,e,m6,d6,U,{store:105,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:106,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:107,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},f6,[-1,-1,-1,-1,-1,-1])}},Wp=Pc;function p6(t){Se(t,"svelte-xfba9d",`.root.svelte-xfba9d{--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(
35
35
  180deg,
36
36
  rgba(0, 0, 0, 0.00) 0%,
37
37
  rgba(0, 0, 0, 0.01) 6.67%,
@@ -49,5 +49,5 @@
49
49
  rgba(0, 0, 0, 0.96) 86.67%,
50
50
  rgba(0, 0, 0, 0.99) 93.33%,
51
51
  #000 100%
52
- );--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)}*{-webkit-tap-highlight-color:transparent}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 y6(i){let e,t,n;function o(r){i[61](r)}let l={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38]};return i[33]!==void 0&&(l.videoContainer=i[33]),e=new Ap({props:l}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(r,a){V(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=r[33],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function k6(i){let e,t,n;function o(r){i[60](r)}let l={store:i[0],uiConfig:i[35],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38],seekTime:i[32]};return i[33]!==void 0&&(l.videoContainer=i[33]),e=new Xp({props:l}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(r,a){V(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=r[33],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function w6(i){let e,t,n,o,l=[k6,y6],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-xfba9d")},m(s,u){S(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):(ae(),_(r[f],1,1,()=>{r[f]=null}),ue(),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&&C(e),r[t].d()}}}function C6(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:w}=e,{preload:g}=e,{autoplay:k}=e,{volume:y=void 0}=e,{muted:T=void 0}=e,{fromTime:b}=e,{canRewindLive:v}=e,{showAds:I}=e,{adsSlotId:G=void 0}=e,{adsParams:q=void 0}=e,{adsPreviewParam:F=void 0}=e,{duration:fe=void 0}=e,{logoClickable:re}=e,{logoHidden:D}=e,{isMobile:A}=e,{showNextPrevButtons:$=!1}=e,{nextButtonActive:Y=!1}=e,{prevButtonActive:X=!1}=e,{endScreenVideoTitle:W=void 0}=e,{endScreenVideoThumb:ne=void 0}=e,{isOneVideoPlaylist:E=!1}=e,{supportLink:Q}=e,{shadowRootContainer:Be=void 0}=e,{outerContainerRef:je=void 0}=e,{fullScreenTarget:Qe=void 0}=e,{failoverHosts:Xe=void 0}=e,{showMiniTimer:qe=!1}=e,{saveRate:ye}=e,{playNextVideo:J=Yn.noop}=e,{playPrevVideo:we=Yn.noop}=e,{repeatPlaylist:We=Yn.noop}=e,{seekToInteractive:$e=Yn.noop}=e,{toggleGraph:it=Yn.noop}=e,{playPrevChapter:ke=Yn.noop}=e,{volumeMultiplier:Re}=e,{subscribers:Ge,stores:Je}=r;xc(s);let Se=Ot(),se=s.logoLink,ze=l.ui.debugPanelVisible,me=l.ui.playerSize,le=l.state.isLive$;H(i,le,be=>t(63,n=be));let Ne,Ae=null,Ue=!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}),cf(l,Je);let at=(be=!1)=>{t(34,Ue=!0),be?l.actions.external.firstStart(I):l.actions.internal.firstStart(I)};function ve(be){let _t=o||be;_t&&l.initVideo({container:Ne,sources:_t,failoverHosts:Xe,subtitles:h,volumeMultiplier:Re});let Pt=Yn.safeStorage.get(Rl)==="true";ze.set(Pt),b>0&&l.actions.external.seekTime(b);let $t=A?Se.volumeDefault:y??sr()??Se.volumeDefault,vt=T??Sf();if(l.actions.external.setVolume($t),l.actions.external.setMuted(vt),l.getAdmanWrapper().setInitialVolume(vt?0:$t),Se.features.trafficSaving){let jt=If();jt&&l.actions.internal.setTrafficSavingEnabled(jt)}if(Se.features.saveRate&&ye){let jt=Af();jt&&!n&&l.actions.internal.setPlaybackRate(jt)}let Kt=kf(l.videoId);Kt&&l.actions.internal.setQuality(Kt),l.ui.isAutoplay.set(k),k?at():g&&Se.features.preload&&l.actions.internal.preload()}let dt=be=>{if(window.ResizeObserver){let _t,Pt;Ae=new ResizeObserver((0,Yn.throttleFn)($t=>{let vt=$t[0];if(vt){if(vt.contentBoxSize){let Kt=Array.isArray(vt.contentBoxSize)?vt.contentBoxSize[0]:vt.contentBoxSize;_t=Kt.inlineSize,Pt=Kt.blockSize}else vt.contentRect&&(_t=vt.contentRect.width,Pt=vt.contentRect.height);me.set({width:_t,height:Pt})}},300)),Ae.observe(be)}me.set({width:be.clientWidth,height:be.clientHeight})};Tt(()=>{dt(Ne);let be=Ge.map(Pt=>Pt.init({store:l,microStores:Je,config:a}));if(w?.status==="upcoming"||w?.status==="waiting"){l.actions.internal.setWaitingLive(!0);return}if((w?.status==="finished"||w?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setWaitingRecord(!0);return}return ve(),()=>{Ae?.disconnect(),be.forEach(Pt=>Pt.unsubscribe()),l.destroy()}});function nt(){Ue?l.actions.external.play():at(!0)}function gt(){l.actions.external.pause()}function wt(be){A||l.actions.external.setMuted(be)}function At(be){A||be>=0&&be<=1&&l.actions.external.setVolume(be)}function Ye(be){l.actions.internal.seekTime(be,Jp.SeekAction.UNKNOWN)}function Ft(be){l.actions.external.seekEpisodeStartTime(be)}function Rt(){l.actions.external.returnFocusToEpisodes()}function St(be){l.actions.external.setPlaybackRate(be)}function ui(be){l.actions.external.setAutoQualityLimits(be)}function lt(be){Ne=be,t(33,Ne)}function bt(be){Ne=be,t(33,Ne)}return i.$$set=be=>{"sources"in be&&t(39,o=be.sources),"store"in be&&t(0,l=be.store),"microStoresRoot"in be&&t(40,r=be.microStoresRoot),"videoConfig"in be&&t(41,a=be.videoConfig),"uiConfig"in be&&t(42,s=be.uiConfig),"title"in be&&t(1,u=be.title),"thumbUrl"in be&&t(2,f=be.thumbUrl),"interactiveContainer"in be&&t(3,p=be.interactiveContainer),"subtitles"in be&&t(43,h=be.subtitles),"live"in be&&t(4,w=be.live),"preload"in be&&t(44,g=be.preload),"autoplay"in be&&t(5,k=be.autoplay),"volume"in be&&t(45,y=be.volume),"muted"in be&&t(46,T=be.muted),"fromTime"in be&&t(47,b=be.fromTime),"canRewindLive"in be&&t(6,v=be.canRewindLive),"showAds"in be&&t(7,I=be.showAds),"adsSlotId"in be&&t(8,G=be.adsSlotId),"adsParams"in be&&t(9,q=be.adsParams),"adsPreviewParam"in be&&t(10,F=be.adsPreviewParam),"duration"in be&&t(11,fe=be.duration),"logoClickable"in be&&t(12,re=be.logoClickable),"logoHidden"in be&&t(13,D=be.logoHidden),"isMobile"in be&&t(14,A=be.isMobile),"showNextPrevButtons"in be&&t(15,$=be.showNextPrevButtons),"nextButtonActive"in be&&t(16,Y=be.nextButtonActive),"prevButtonActive"in be&&t(17,X=be.prevButtonActive),"endScreenVideoTitle"in be&&t(18,W=be.endScreenVideoTitle),"endScreenVideoThumb"in be&&t(19,ne=be.endScreenVideoThumb),"isOneVideoPlaylist"in be&&t(20,E=be.isOneVideoPlaylist),"supportLink"in be&&t(21,Q=be.supportLink),"shadowRootContainer"in be&&t(22,Be=be.shadowRootContainer),"outerContainerRef"in be&&t(23,je=be.outerContainerRef),"fullScreenTarget"in be&&t(24,Qe=be.fullScreenTarget),"failoverHosts"in be&&t(48,Xe=be.failoverHosts),"showMiniTimer"in be&&t(25,qe=be.showMiniTimer),"saveRate"in be&&t(49,ye=be.saveRate),"playNextVideo"in be&&t(26,J=be.playNextVideo),"playPrevVideo"in be&&t(27,we=be.playPrevVideo),"repeatPlaylist"in be&&t(28,We=be.repeatPlaylist),"seekToInteractive"in be&&t(29,$e=be.seekToInteractive),"toggleGraph"in be&&t(30,it=be.toggleGraph),"playPrevChapter"in be&&t(31,ke=be.playPrevChapter),"volumeMultiplier"in be&&t(50,Re=be.volumeMultiplier)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:l.ui.isMobile.set(A)},[l,u,f,p,w,k,v,I,G,q,F,fe,re,D,A,$,Y,X,W,ne,E,Q,Be,je,Qe,qe,J,we,We,$e,it,ke,Ye,Ne,Ue,Se,se,le,at,o,r,a,s,h,g,y,T,b,Xe,ye,Re,ve,nt,gt,wt,At,Ft,Rt,St,ui,lt,bt]}var Ic=class extends U{constructor(e){super(),j(this,e,C6,w6,z,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,subtitles:43,live:4,preload:44,autoplay:5,volume:45,muted:46,fromTime:47,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:48,showMiniTimer:25,saveRate:49,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:50,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:32,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},v6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},xp=Ic;function S6(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=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),t=B("path"),c(t,"fill","currentColor"),c(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),ge(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),ge(e,a=Le(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&&C(e),l&&l.d(s)}}}function P6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Tc=class extends U{constructor(e){super(),j(this,e,P6,S6,z,{})}},$p=Tc;function I6(i){let e,t;return e=new $p({props:{style:i[0]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function T6(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 Ec=class extends U{constructor(e){super(),j(this,e,T6,I6,z,{isWhite:1})}},e_=Ec;function E6(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 t_(i){let e,t;return{c(){e=P("div"),t=Me(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),m(e,t)},p(n,o){o&1&&Ke(t,n[0])},d(n){n&&C(e)}}}function i_(i){let e,t;return e=new e_({props:{isWhite:!!i[1]}}),{c(){R(e.$$.fragment)},m(n,o){V(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){L(e,n)}}}function A6(i){let e,t,n,o,l=i[0]&&t_(i),r=(!i[0]||!i[1])&&i_(i);return{c(){e=P("div"),l&&l.c(),t=N(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){S(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=t_(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=i_(a),r.c(),d(r,1),r.m(e,null)):r&&(ae(),_(r,1,1,()=>{r=null}),ue()),(!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&&C(e),l&&l.d(),r&&r.d()}}}function M6(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 Ac=class extends U{constructor(e){super(),j(this,e,M6,A6,z,{title:0,thumbUrl:1},E6)}},n_=Ac;var bi=require("@vkontakte/videoplayer-shared"),YD=require("@vkontakte/videoplayer-core"),Il=require("@vkontakte/videoplayer-statistics");var gs=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 vo=require("@vkontakte/videoplayer-shared");function V6(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=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),t=B("g"),n=B("path"),o=B("path"),c(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),c(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),c(t,"fill","#fff"),ge(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),ge(e,u=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){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&C(e),a&&a.d(f)}}}function L6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=oe(oe({},e),he(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=he(e),[e,o,n]}var Mc=class extends U{constructor(e){super(),j(this,e,L6,V6,z,{})}},o_=Mc;function R6(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 B6(i){let e,t,n,o,l,r,a;return n=new o_({}),{c(){e=P("div"),t=P("div"),R(n.$$.fragment),o=N(),l=P("span"),r=Me(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),O(t,"desktop",!i[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),O(e,"is-pip-api",i[2])},m(s,u){S(s,e,u),m(e,t),V(n,t,null),m(e,o),m(e,l),m(l,r),a=!0},p(s,[u]){(!a||u&2)&&O(t,"desktop",!s[1]),(!a||u&1)&&Ke(r,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&C(e),L(n)}}}function D6(i,e,t){let n,o,l=ot(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;H(i,a,f=>t(5,n=f));let s=l.ui.isMobile;H(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&K("pip_dummy_title"))},[u,o,r,a,s,n]}var Vc=class extends U{constructor(e){super(),j(this,e,D6,B6,z,{},R6)}},l_=Vc;var N6=460,q6=280,Ul=class{constructor(){this.info={isActive$:new vo.ValueSubject(!1),type:1}}isSupported(){let e=(0,vo.getCurrentBrowser)().browser===vo.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,vo.detectEmbed)();return"documentPictureInPicture"in window&&!e&&!t}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:N6,height:q6,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(`
53
- `),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 l_({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 r_(i){return i instanceof Ul}var bs=class{static getLatestSupportedVersion(){let e=new Fo,t=new Ul;if(t.isSupported())return t;if(e.isSupported())return e}};function Lc(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 s_="Inner error. Unexpectedly root annotation container null reference exception",a_="Annotation with such name already exists",u_="Annotation with such name does not exist";var Cl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Sl=require("@vkontakte/videoplayer-shared"),O6="1",F6=100,vs=class{constructor(e){this.annotations=new Map;this.subscriptions=new Sl.Subscription;this.rootAnnotationsContainer=e;let t=(0,Sl.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"},F6);this.subscriptions.add((0,Sl.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 Cl(s_);if(this.annotations.has(e))throw new Cl(a_);t.style.zIndex=t.style.zIndex??O6,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 Cl(u_);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 Pl=require("@vkontakte/videoplayer-shared"),Jn=class{init({store:e,microStores:t,config:n}){return(0,Pl.assertNonNullable)(e),(0,Pl.assertNonNullable)(t),(0,Pl.assertNonNullable)(n),this.subscription=new Pl.Subscription,this.subscription}};var Kl=class extends Jn{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 jl=class extends Jn{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=xe(f),h=()=>p&&xe(u);return n.add(u.subscribe(w=>{if(!p)return;let g=xe(r);xe(s)?this.state$.set(w):g!==null&&this.state$.set(!g||w)})),n.add(s.subscribe(w=>{this.state$.set(!w||h())})),n.add(r.subscribe(w=>{if(w===null)return;let g=xe(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!w)})),n}};var Wl=class extends Jn{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 c_=require("@vkontakte/videoplayer-shared"),Rc=De(!1),ys=null,Gl=class extends Jn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Rc,set:(t,n=!1)=>{t!==xe(Rc)&&(this.clearTimeout(),Rc.set(t),!t&&ys&&(ys=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:l}=t,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{xe(r)&&p&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,c_.combine)({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:w})=>{if(!(!p||!w?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&ys===null&&(ys=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var f_=()=>[Kl,jl,Wl,Gl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var H6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:bi.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,bi.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},ks=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 bi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new bi.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 n_({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%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.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(this.shadowRootContainer),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:w,muted:g,fromTime:k,canRewindLive:y,supportLink:T,showAds:b,adsSlotId:v,adsParams:I={},adsPreviewParam:G,interfaceLanguage:q,logoClickable:F,logoHidden:fe,isMobile:re,isAudioDisabled:D,isLiveCatchUpMode:A,fullScreenTarget:$,failoverHosts:Y,canDownload:X,callbacks:W,interactiveData:ne,showThumbTimer:E,additionalButtons:Q=[],repeat:Be,saveRate:je,volumeMultiplier:Qe}=Lc(this.videoConfig,n),{sources:Xe,title:qe,thumbUrl:ye,unitedVideoId:J,isClip:we=!1,duration:We,adsParams:$e={},videoEpisodes:it,previewThumbsData:ke,subtitles:Re,live:Ge}=t,Je={...I,...$e},Se=this.getNextVideoInfo(),se={sources:Xe,title:qe,thumbUrl:ye,subtitles:Re,unitedVideoId:J,isClip:we,live:Ge,albumId:l,statPlace:r,autoplay:h,muted:g,volume:w,fromTime:k,canRewindLive:y,showAds:b,adsSlotId:v,adsParams:Je,adsPreviewParam:G,duration:We,logoClickable:F,logoHidden:fe,isMobile:re,repeat:Be,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Se.nextVideoTitle,endScreenVideoThumb:Se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ze={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(se)}`});let me=this.uiConfig.features.statistics&&!!J,{pid:le}=this.videoConfig?.interactiveData?.projectInfo||{};me&&(this.statistics=new is({movieId:J,albumId:l,place:r,trackCode:u,autoplay:(h&&!this.interactiveController)??!1,mobile:re,clip:we,refDomain:this.videoConfig.refDomain,...le&&!this.isInited&&{projectId:Number(le)}},{refreshAuthToken:f,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Oo(this.uiConfig.sentry,{version:No,env:lr},{movieId:J,albumId:l,place:r,autoplay:(h&&!this.interactiveController)??!1,mobile:re,clip:we}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Oo.getInstance()};let Ae=!!ne,Ue=[],at="tooltip_interactive_go_back_disabled_first";if(Ae&&this.interactiveController){let nt=this.interactiveController.state.isInitialChapter$.getValue(),gt=this.interactiveController.getHistoryState();nt&&Ue.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Ue.push("SEEK_TO_INTERACTIVE_BUTTON"),gt.hasPrevChapter$.getValue()||(Ue.push("PLAY_PREV_CHAPTER_BUTTON"),nt||(gt.isGoBackLimited$.getValue()?at="tooltip_interactive_go_back_disabled_limit":at="tooltip_interactive_go_back_disabled"))}let ve=()=>{this.isInited=!1,this.prevIsid=void 0;let nt=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();W.onReplayInteractiveVideo&&!nt?W.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Vm({player:o,interfaceLanguage:q,videoId:J,isClip:we,isLiveCatchUpMode:A,isAudioDisabled:D,statAuthToken:s,callbacks:W,webApi:ze,videoEpisodes:it,previewThumbsData:ke,canDownload:X,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Ue,isInteractive:Ae,saveRate:je,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:ve,playPrevChapterDisabledTooltip:at,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Q:[],looped:Be&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:dt}=this.microStoresRoot=f_();this.subscription.add(this.store.state.currentFormat$.subscribe(nt=>W?.onCurrentFormatChanged?.(nt))),this.subscription.add(dt.interactiveControlsOpacity$.subscribe(nt=>{nt!==null&&this?.interactiveController?.setDisabledControls(nt)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(nt=>W?.onThroughputEstimationChanged?.(nt))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(nt=>W?.onTrafficSavingEnabledChanged?.(nt))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(nt=>W?.onCurrentPlaybackRateChanged?.(nt))),this.subscription.add(this.store.state.volume$.subscribe(nt=>W?.onVolumeChange?.(nt))),this.subscription.add(this.store.state.muted$.subscribe(nt=>nt?W?.onMute?.():W?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(nt=>W?.onVideoBitrateChanged?.(nt))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(nt=>{let gt=this.store?.ui.controls.disabledControls$;gt&&(nt&&!gt.includes(Bl)&&gt.add(Bl),nt||gt.remove(Bl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async nt=>{if(!((0,bi.getCurrentBrowser)().browser===bi.CurrentClientBrowser.SamsungBrowser)||!nt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.initMediaSession(),this.interactiveController&&me&&this.initInteractivesStatistics(),this.svelteRootComponent=new xp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Xe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:qe,thumbUrl:ye,subtitles:Re,live:Ge,preload:p,autoplay:h,muted:g,volume:w,fromTime:k,canRewindLive:y,supportLink:T,showAds:b,adsSlotId:v,adsParams:Je,adsPreviewParam:G,duration:We,logoClickable:F,logoHidden:fe,isMobile:re,failoverHosts:Y,fullScreenTarget:$,saveRate:je,shadowRootContainer:this.shadowRootContainer,showMiniTimer:E,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Se.nextVideoTitle,endScreenVideoThumb:Se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:Qe}}),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.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).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,bi.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=t.state,{disabledControls$:r}=t.ui.controls,a=xe(n),s=xe(o);xe(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(Ls),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(Ls),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let l=this.store?.interfaceLanguage$,r=l?xe(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:r,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:s,historyApi:u,vkVideoLoader:f,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});let{isInteractiveExpectation$:p}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(w=>{if(!this.isInited)return;let g=this.store;w?g.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):g.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(w=>{this.store&&this.store.state.isInteractiveExpectation$.set(w)}));let h=!0;if(this.interactiveController.on(n.playerChanged,w=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...w.config,title:a?.title||w.config.title};let g=h?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(w.player,g),h&&(h=!1)}),this.interactiveController.on(n.interactives,({type:w,actionType:g})=>{if(!this.store)return;let k=p.getValue();if(w==="action-choice"&&g==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(or)),w==="action-choice-canceled"){let y=xe(this.store.state.isPlaying$)||k;if(this.videoConfig?.isMobile&&y){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let w=this.interactiveController.getHistoryState();this.subscription.add(w.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,w=>{this.log({message:w.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]:Il.InteractiveInterfaceClick.NEXT_BUTTON,[o.GO_NEXT_AREA]:Il.InteractiveInterfaceClick.NEXT_AREA,[o.WATCH_AGAIN]:Il.InteractiveInterfaceClick.WATCH_AGAIN,[o.OPEN_GRAPH]:Il.InteractiveInterfaceClick.GRAPH_SHOW,[o.CLOSE_GRAPH]:Il.InteractiveInterfaceClick.GRAPH_HIDE},{click$:r,nextMovie$:a}=this.interactiveController.getStatEvents(),s=new bi.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=Lc(H6,(0,bi.cloneDeepWith)(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Jc(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},(0,bi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),(0,bi.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=bs.getLatestSupportedVersion():this.pictureInPictureApi=new Fo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new gs:void 0,this.annotationsApi=this.uiConfig.features.annotations?new vs(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]),r_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("waitingLive")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy();let t=this.videoConfig.videos[0];t&&(this.svelteRootComponent?.$destroy(),this.createPlayer(t))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setWaitingLive(!1),this.svelteRootComponent?.initVideo(t),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){if(this.interactiveController&&this.store?.state.positionExact$){let{EVENT_NAMES:n}=await import("@vkontakte/videoplayer-interactive"),o=xe(this.store.state.positionExact$),r=xe(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.once(n.playerChanged,()=>{r&&o>=r.time?this.seekTime(r.time):this.seekTime(o),t?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}};var Tl=require("@vkontakte/videoplayer-shared"),ws=require("@vkontakte/videoplayer-core"),z6=()=>{window.customElements.define("vk-video-player",ks)};
52
+ );--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)}*{-webkit-tap-highlight-color:transparent}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 _6(t){let e,i,n;function o(r){t[61](r)}let l={store:t[0],uiConfig:t[35],title:t[1],thumbUrl:t[2],interactiveContainer:t[3],live:t[4],autoplay:t[5],canRewindLive:t[6],showAds:t[7],adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11],logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[36],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],endScreenVideoTitle:t[18],endScreenVideoThumb:t[19],isOneVideoPlaylist:t[20],supportLink:t[21],shadowRootContainer:t[22],outerContainerRef:t[23],fullScreenTarget:t[24],showMiniTimer:t[25],playerStarted:t[34],playNextVideo:t[26],playPrevVideo:t[27],repeatPlaylist:t[28],seekToInteractive:t[29],toggleGraph:t[30],playPrevChapter:t[31],firstStart:t[38]};return t[33]!==void 0&&(l.videoContainer=t[33]),e=new Ip({props:l}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!i&&a[1]&4&&(i=!0,s.videoContainer=r[33],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function h6(t){let e,i,n;function o(r){t[60](r)}let l={store:t[0],uiConfig:t[35],thumbUrl:t[2],interactiveContainer:t[3],live:t[4],autoplay:t[5],canRewindLive:t[6],showAds:t[7],adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11],logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[36],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],endScreenVideoTitle:t[18],endScreenVideoThumb:t[19],isOneVideoPlaylist:t[20],supportLink:t[21],shadowRootContainer:t[22],outerContainerRef:t[23],fullScreenTarget:t[24],showMiniTimer:t[25],playerStarted:t[34],playNextVideo:t[26],playPrevVideo:t[27],repeatPlaylist:t[28],seekToInteractive:t[29],toggleGraph:t[30],playPrevChapter:t[31],firstStart:t[38],seekTime:t[32]};return t[33]!==void 0&&(l.videoContainer=t[33]),e=new Wp({props:l}),pe.push(()=>Fe(e,"videoContainer",o)),{c(){R(e.$$.fragment)},m(r,a){M(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!i&&a[1]&4&&(i=!0,s.videoContainer=r[33],Oe(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){V(e,r)}}}function g6(t){let e,i,n,o,l=[h6,_6],r=[];function a(s,u){return s[14]?0:1}return i=a(t,[-1,-1,-1]),n=r[i]=l[i](t),{c(){e=I("div"),n.c(),c(e,"class","root svelte-xfba9d")},m(s,u){S(s,e,u),r[i].m(e,null),o=!0},p(s,u){let f=i;i=a(s,u),i===f?r[i].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),n=r[i],n?n.p(s,u):(n=r[i]=l[i](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&&C(e),r[i].d()}}}function b6(t,e,i){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:k}=e,{preload:g}=e,{autoplay:w}=e,{volume:b=void 0}=e,{muted:T=void 0}=e,{fromTime:v}=e,{canRewindLive:y}=e,{showAds:P}=e,{adsSlotId:Z=void 0}=e,{adsParams:N=void 0}=e,{adsPreviewParam:z=void 0}=e,{duration:re=void 0}=e,{logoClickable:se}=e,{logoHidden:O}=e,{isMobile:J}=e,{showNextPrevButtons:E=!1}=e,{nextButtonActive:X=!1}=e,{prevButtonActive:Q=!1}=e,{endScreenVideoTitle:G=void 0}=e,{endScreenVideoThumb:$=void 0}=e,{isOneVideoPlaylist:L=!1}=e,{supportLink:F}=e,{shadowRootContainer:qe=void 0}=e,{outerContainerRef:ze=void 0}=e,{fullScreenTarget:We=void 0}=e,{failoverHosts:Xe=void 0}=e,{showMiniTimer:ve=!1}=e,{saveRate:Be}=e,{playNextVideo:ee=Yn.noop}=e,{playPrevVideo:ke=Yn.noop}=e,{repeatPlaylist:Ge=Yn.noop}=e,{seekToInteractive:tt=Yn.noop}=e,{toggleGraph:it=Yn.noop}=e,{playPrevChapter:we=Yn.noop}=e,{volumeMultiplier:Re}=e,{subscribers:Ze,stores:Je}=r;xc(s);let Ce=Dt(),ae=s.logoLink,He=l.ui.debugPanelVisible,me=l.ui.playerSize,le=l.state.isLive$;H(t,le,he=>i(63,n=he));let Ne,Me=null,Qe=!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}),cf(l,Je);let ot=(he=!1)=>{i(34,Qe=!0),he?l.actions.external.firstStart(P):l.actions.internal.firstStart(P)};function ye(he){let gt=o||he;gt&&l.initVideo({container:Ne,sources:gt,failoverHosts:Xe,subtitles:h,volumeMultiplier:Re});let St=Yn.safeStorage.get(Rl)==="true";He.set(St),v>0&&l.actions.external.seekTime(v);let Wt=J?Ce.volumeDefault:b??rr()??Ce.volumeDefault,Pt=T??Sf();if(l.actions.external.setVolume(Wt),l.actions.external.setMuted(Pt),l.getAdmanWrapper().setInitialVolume(Pt?0:Wt),Ce.features.trafficSaving){let Ft=If();Ft&&l.actions.internal.setTrafficSavingEnabled(Ft)}if(Ce.features.saveRate&&Be){let Ft=Af();Ft&&!n&&l.actions.internal.setPlaybackRate(Ft)}let qt=kf(l.videoId);qt&&l.actions.internal.setQuality(qt),l.ui.isAutoplay.set(w),w?ot():g&&Ce.features.preload&&l.actions.internal.preload()}let ft=he=>{if(window.ResizeObserver){let gt,St;Me=new ResizeObserver((0,Yn.throttleFn)(Wt=>{let Pt=Wt[0];if(Pt){if(Pt.contentBoxSize){let qt=Array.isArray(Pt.contentBoxSize)?Pt.contentBoxSize[0]:Pt.contentBoxSize;gt=qt.inlineSize,St=qt.blockSize}else Pt.contentRect&&(gt=Pt.contentRect.width,St=Pt.contentRect.height);me.set({width:gt,height:St})}},300)),Me.observe(he)}me.set({width:he.clientWidth,height:he.clientHeight})};At(()=>{ft(Ne);let he=Ze.map(St=>St.init({store:l,microStores:Je,config:a}));if(k?.status==="upcoming"||k?.status==="waiting"){l.actions.internal.setWaitingLive(!0);return}if((k?.status==="finished"||k?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setWaitingRecord(!0);return}return ye(),()=>{Me?.disconnect(),he.forEach(St=>St.unsubscribe()),l.destroy()}});function yt(){Qe?l.actions.external.play():ot(!0)}function ut(){l.actions.external.pause()}function mt(he){J||l.actions.external.setMuted(he)}function Tt(he){J||he>=0&&he<=1&&l.actions.external.setVolume(he)}function je(he){l.actions.internal.seekTime(he,Gp.SeekAction.UNKNOWN)}function ti(he){l.actions.external.seekEpisodeStartTime(he)}function Nt(){l.actions.external.returnFocusToEpisodes()}function Ct(he){l.actions.external.setPlaybackRate(he)}function ui(he){l.actions.external.setAutoQualityLimits(he)}function rt(he){Ne=he,i(33,Ne)}function kt(he){Ne=he,i(33,Ne)}return t.$$set=he=>{"sources"in he&&i(39,o=he.sources),"store"in he&&i(0,l=he.store),"microStoresRoot"in he&&i(40,r=he.microStoresRoot),"videoConfig"in he&&i(41,a=he.videoConfig),"uiConfig"in he&&i(42,s=he.uiConfig),"title"in he&&i(1,u=he.title),"thumbUrl"in he&&i(2,f=he.thumbUrl),"interactiveContainer"in he&&i(3,p=he.interactiveContainer),"subtitles"in he&&i(43,h=he.subtitles),"live"in he&&i(4,k=he.live),"preload"in he&&i(44,g=he.preload),"autoplay"in he&&i(5,w=he.autoplay),"volume"in he&&i(45,b=he.volume),"muted"in he&&i(46,T=he.muted),"fromTime"in he&&i(47,v=he.fromTime),"canRewindLive"in he&&i(6,y=he.canRewindLive),"showAds"in he&&i(7,P=he.showAds),"adsSlotId"in he&&i(8,Z=he.adsSlotId),"adsParams"in he&&i(9,N=he.adsParams),"adsPreviewParam"in he&&i(10,z=he.adsPreviewParam),"duration"in he&&i(11,re=he.duration),"logoClickable"in he&&i(12,se=he.logoClickable),"logoHidden"in he&&i(13,O=he.logoHidden),"isMobile"in he&&i(14,J=he.isMobile),"showNextPrevButtons"in he&&i(15,E=he.showNextPrevButtons),"nextButtonActive"in he&&i(16,X=he.nextButtonActive),"prevButtonActive"in he&&i(17,Q=he.prevButtonActive),"endScreenVideoTitle"in he&&i(18,G=he.endScreenVideoTitle),"endScreenVideoThumb"in he&&i(19,$=he.endScreenVideoThumb),"isOneVideoPlaylist"in he&&i(20,L=he.isOneVideoPlaylist),"supportLink"in he&&i(21,F=he.supportLink),"shadowRootContainer"in he&&i(22,qe=he.shadowRootContainer),"outerContainerRef"in he&&i(23,ze=he.outerContainerRef),"fullScreenTarget"in he&&i(24,We=he.fullScreenTarget),"failoverHosts"in he&&i(48,Xe=he.failoverHosts),"showMiniTimer"in he&&i(25,ve=he.showMiniTimer),"saveRate"in he&&i(49,Be=he.saveRate),"playNextVideo"in he&&i(26,ee=he.playNextVideo),"playPrevVideo"in he&&i(27,ke=he.playPrevVideo),"repeatPlaylist"in he&&i(28,Ge=he.repeatPlaylist),"seekToInteractive"in he&&i(29,tt=he.seekToInteractive),"toggleGraph"in he&&i(30,it=he.toggleGraph),"playPrevChapter"in he&&i(31,we=he.playPrevChapter),"volumeMultiplier"in he&&i(50,Re=he.volumeMultiplier)},t.$$.update=()=>{if(t.$$.dirty[0]&16385)e:l.ui.isMobile.set(J)},[l,u,f,p,k,w,y,P,Z,N,z,re,se,O,J,E,X,Q,G,$,L,F,qe,ze,We,ve,ee,ke,Ge,tt,it,we,je,Ne,Qe,Ce,ae,le,ot,o,r,a,s,h,g,b,T,v,Xe,Be,Re,ye,yt,ut,mt,Tt,ti,Nt,Ct,ui,rt,kt]}var Ic=class extends K{constructor(e){super(),W(this,e,b6,g6,U,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,subtitles:43,live:4,preload:44,autoplay:5,volume:45,muted:46,fromTime:47,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:48,showMiniTimer:25,saveRate:49,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:50,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:32,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},p6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},Qp=Ic;function v6(t){let e,i,n,o=t[2].default,l=Pe(o,t,t[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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=oe(a,r[s]);return{c(){e=B("svg"),l&&l.c(),i=B("path"),c(i,"fill","currentColor"),c(i,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 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){S(s,e,u),l&&l.m(e,null),m(e,i),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=Le(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&&C(e),l&&l.d(s)}}}function y6(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Tc=class extends K{constructor(e){super(),W(this,e,y6,v6,U,{})}},Yp=Tc;function k6(t){let e,i;return e=new Yp({props:{style:t[0]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function w6(t,e,i){let n,{isWhite:o=!1}=e;return t.$$set=l=>{"isWhite"in l&&i(1,o=l.isWhite)},t.$$.update=()=>{if(t.$$.dirty&2)e:i(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var Ec=class extends K{constructor(e){super(),W(this,e,w6,k6,U,{isWhite:1})}},Zp=Ec;function C6(t){Se(t,"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 Xp(t){let e,i;return{c(){e=I("div"),i=Ae(t[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&1&&Ke(i,n[0])},d(n){n&&C(e)}}}function Jp(t){let e,i;return e=new Zp({props:{isWhite:!!t[1]}}),{c(){R(e.$$.fragment)},m(n,o){M(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){V(e,n)}}}function S6(t){let e,i,n,o,l=t[0]&&Xp(t),r=(!t[0]||!t[1])&&Jp(t);return{c(){e=I("div"),l&&l.c(),i=D(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(a,s){S(a,e,s),l&&l.m(e,null),m(e,i),r&&r.m(e,null),o=!0},p(a,[s]){a[0]?l?l.p(a,s):(l=Xp(a),l.c(),l.m(e,i)):l&&(l.d(1),l=null),!a[0]||!a[1]?r?(r.p(a,s),s&3&&d(r,1)):(r=Jp(a),r.c(),d(r,1),r.m(e,null)):r&&(ue(),_(r,1,1,()=>{r=null}),ce()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(r),o=!0)},o(a){_(r),o=!1},d(a){a&&C(e),l&&l.d(),r&&r.d()}}}function P6(t,e,i){let{title:n}=e,{thumbUrl:o}=e;return t.$$set=l=>{"title"in l&&i(0,n=l.title),"thumbUrl"in l&&i(1,o=l.thumbUrl)},[n,o]}var Ac=class extends K{constructor(e){super(),W(this,e,P6,S6,U,{title:0,thumbUrl:1},C6)}},xp=Ac;var nn=require("@vkontakte/videoplayer-shared"),zD=require("@vkontakte/videoplayer-core"),Il=require("@vkontakte/videoplayer-statistics");var hs=class{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[i,n]of e)try{navigator.mediaSession.setActionHandler(i,n)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}};var wl=require("@vkontakte/videoplayer-shared");function I6(t){let e,i,n,o,l,r=t[2].default,a=Pe(r,t,t[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"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=B("svg"),a&&a.c(),i=B("g"),n=B("path"),o=B("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(i,"fill","#fff"),be(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,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=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){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&C(e),a&&a.d(f)}}}function T6(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=oe(oe({},e),ge(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Mc=class extends K{constructor(e){super(),W(this,e,T6,I6,U,{})}},$p=Mc;function E6(t){Se(t,"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(t){let e,i,n,o,l,r,a;return n=new $p({}),{c(){e=I("div"),i=I("div"),R(n.$$.fragment),o=D(),l=I("span"),r=Ae(t[0]),c(i,"class","dummy-image svelte-1pbsod4"),q(i,"desktop",!t[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),q(e,"is-pip-api",t[2])},m(s,u){S(s,e,u),m(e,i),M(n,i,null),m(e,o),m(e,l),m(l,r),a=!0},p(s,[u]){(!a||u&2)&&q(i,"desktop",!s[1]),(!a||u&1)&&Ke(r,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&C(e),V(n)}}}function M6(t,e,i){let n,o,l=nt(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;H(t,a,f=>i(5,n=f));let s=l.ui.isMobile;H(t,s,f=>i(1,o=f));let u;return t.$$.update=()=>{if(t.$$.dirty&32)e:i(0,u=n&&j("pip_dummy_title"))},[u,o,r,a,s,n]}var Vc=class extends K{constructor(e){super(),W(this,e,M6,A6,U,{},E6)}},e_=Vc;var V6=460,L6=280,Ul=class{constructor(){this.info={isActive$:new wl.ValueSubject(!1),type:1}}isSupported(){let{isEmbed:e}=(0,wl.detectEmbed)();return"documentPictureInPicture"in window&&!wl.CC.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:V6,height:L6,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(`
53
+ `),i=document.createElement("style");i.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(i),o.append(this.playerDomElement),this.playerDummyElement=new e_({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 t_(t){return t instanceof Ul}var gs=class{static getLatestSupportedVersion(){let e=new No,i=new Ul;if(i.isSupported())return i;if(e.isSupported())return e}};function Lc(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),n={};for(let o of i)n[o]=e[o]??t[o]??void 0;return n}var i_="Inner error. Unexpectedly root annotation container null reference exception",n_="Annotation with such name already exists",o_="Annotation with such name does not exist";var Cl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Sl=require("@vkontakte/videoplayer-shared"),R6="1",B6=100,bs=class{constructor(e){this.annotations=new Map;this.subscriptions=new Sl.Subscription;this.rootAnnotationsContainer=e;let i=(0,Sl.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,Sl.observeElementSize)(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){if(!this.rootAnnotationsContainer)throw new Cl(i_);if(this.annotations.has(e))throw new Cl(n_);i.style.zIndex=i.style.zIndex??R6,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new Cl(o_);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.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,i,n){let o=e.offsetTop,l=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return o<0||l<0||l+r>i||o+a>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Pl=require("@vkontakte/videoplayer-shared"),Jn=class{init({store:e,microStores:i,config:n}){return(0,Pl.assertNonNullable)(e),(0,Pl.assertNonNullable)(i),(0,Pl.assertNonNullable)(n),this.subscription=new Pl.Subscription,this.subscription}};var Kl=class extends Jn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...De(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let n=super.init(i),{isInteractiveExpectation$:o}=i.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var jl=class extends Jn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...De(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let n=super.init(i),{microStores:o,store:l}=i,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,p=$e(f),h=()=>p&&$e(u);return n.add(u.subscribe(k=>{if(!p)return;let g=$e(r);$e(s)?this.state$.set(k):g!==null&&this.state$.set(!g||k)})),n.add(s.subscribe(k=>{this.state$.set(!k||h())})),n.add(r.subscribe(k=>{if(k===null)return;let g=$e(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!k)})),n}};var Wl=class extends Jn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=De("tooltip_chapter_without_interactive")}init(i){let n=super.init(i),{store:o}=i;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 l_=require("@vkontakte/videoplayer-shared"),Rc=De(!1),vs=null,Gl=class extends Jn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Rc,set:(i,n=!1)=>{i!==$e(Rc)&&(this.clearTimeout(),Rc.set(i),!i&&vs&&(vs=!1),i&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let n=super.init(i),{store:o,config:l}=i,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{$e(r)&&p&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,l_.combine)({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:k})=>{if(!(!p||!k?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&vs===null&&(vs=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var r_=()=>[Kl,jl,Wl,Gl].reduce(({subscribers:t,stores:e},i)=>{let n=new i;return{subscribers:[...t,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var D6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:nn.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:nn.CC.isMobile,isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},ys=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(i=>{console.log("%c player web component ","background:#77dd77;",`${i.component}`,i.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let i=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new xp({target:this.playerContainer,props:{title:i,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%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.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(this.shadowRootContainer),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(i){return this.store?.ui.controls.disabledControls$?.includes(i)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let i=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:i.title,nextVideoThumb:i.thumbUrl}}createPlayer(i,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:f,preload:p,autoplay:h,volume:k,muted:g,fromTime:w,canRewindLive:b,supportLink:T,showAds:v,adsSlotId:y,adsParams:P={},adsPreviewParam:Z,interfaceLanguage:N,isCyrillicRelatedInterface:z,logoClickable:re,logoHidden:se,isMobile:O,isAudioDisabled:J,isLiveCatchUpMode:E,fullScreenTarget:X,failoverHosts:Q,canDownload:G,callbacks:$,interactiveData:L,showThumbTimer:F,additionalButtons:qe=[],repeat:ze,saveRate:We,volumeMultiplier:Xe}=Lc(this.videoConfig,n),{sources:ve,title:Be,thumbUrl:ee,unitedVideoId:ke,isClip:Ge=!1,duration:tt,adsParams:it={},videoEpisodes:we,previewThumbsData:Re,subtitles:Ze,live:Je}=i,Ce={...P,...it},ae=this.getNextVideoInfo(),He={sources:ve,title:Be,thumbUrl:ee,subtitles:Ze,unitedVideoId:ke,isClip:Ge,live:Je,albumId:l,statPlace:r,autoplay:h,muted:g,volume:k,fromTime:w,canRewindLive:b,showAds:v,adsSlotId:y,adsParams:Ce,adsPreviewParam:Z,duration:tt,logoClickable:re,logoHidden:se,isMobile:O,repeat:ze,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},me={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(He)}`});let le=this.uiConfig.features.statistics&&!!ke,{pid:Ne}=this.videoConfig?.interactiveData?.projectInfo||{};le&&(this.statistics=new ts({movieId:ke,albumId:l,place:r,trackCode:u,autoplay:(h&&!this.interactiveController)??!1,mobile:O,clip:Ge,refDomain:this.videoConfig.refDomain,...Ne&&!this.isInited&&{projectId:Number(Ne)}},{refreshAuthToken:f,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Do(this.uiConfig.sentry,{version:Ro,env:or},{movieId:ke,albumId:l,place:r,autoplay:(h&&!this.interactiveController)??!1,mobile:O,clip:Ge}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Do.getInstance()};let Qe=!!L,ot=[],ye="tooltip_interactive_go_back_disabled_first";if(Qe&&this.interactiveController){let ut=this.interactiveController.state.isInitialChapter$.getValue(),mt=this.interactiveController.getHistoryState();ut&&ot.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ot.push("SEEK_TO_INTERACTIVE_BUTTON"),mt.hasPrevChapter$.getValue()||(ot.push("PLAY_PREV_CHAPTER_BUTTON"),ut||(mt.isGoBackLimited$.getValue()?ye="tooltip_interactive_go_back_disabled_limit":ye="tooltip_interactive_go_back_disabled"))}let ft=()=>{this.isInited=!1,this.prevIsid=void 0;let ut=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();$.onReplayInteractiveVideo&&!ut?$.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Em({player:o,interfaceLanguage:N,isCyrillicRelatedInterface:z,videoId:ke,isClip:Ge,isLiveCatchUpMode:E,isAudioDisabled:J,statAuthToken:s,callbacks:$,webApi:me,videoEpisodes:we,previewThumbsData:Re,canDownload:G,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ot,isInteractive:Qe,saveRate:We,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:ft,playPrevChapterDisabledTooltip:ye,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?qe:[],looped:ze&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:yt}=this.microStoresRoot=r_();this.subscription.add(this.store.state.currentFormat$.subscribe(ut=>$?.onCurrentFormatChanged?.(ut))),this.subscription.add(yt.interactiveControlsOpacity$.subscribe(ut=>{ut!==null&&this?.interactiveController?.setDisabledControls(ut)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(ut=>$?.onThroughputEstimationChanged?.(ut))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(ut=>$?.onTrafficSavingEnabledChanged?.(ut))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ut=>$?.onCurrentPlaybackRateChanged?.(ut))),this.subscription.add(this.store.state.volume$.subscribe(ut=>$?.onVolumeChange?.(ut))),this.subscription.add(this.store.state.muted$.subscribe(ut=>ut?$?.onMute?.():$?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(ut=>$?.onVideoBitrateChanged?.(ut))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(ut=>{let mt=this.store?.ui.controls.disabledControls$;mt&&(ut&&!mt.includes(Bl)&&mt.add(Bl),ut||mt.remove(Bl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async ut=>{if(!nn.CC.isSamsungBrowser||!ut||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.initMediaSession(),this.interactiveController&&le&&this.initInteractivesStatistics(),this.svelteRootComponent=new Qp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:ve,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Be,thumbUrl:ee,subtitles:Ze,live:Je,preload:p,autoplay:h,muted:g,volume:k,fromTime:w,canRewindLive:b,supportLink:T,showAds:v,adsSlotId:y,adsParams:Ce,adsPreviewParam:Z,duration:tt,logoClickable:re,logoHidden:se,isMobile:O,failoverHosts:Q,fullScreenTarget:X,saveRate:We,shadowRootContainer:this.shadowRootContainer,showMiniTimer:F,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ae.nextVideoTitle,endScreenVideoThumb:ae.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:Xe}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let i=this.store;if(!i)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(i.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(i.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(i.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(i.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(i.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(i.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(i.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(i.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(i.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(i.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(i.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(i.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(i.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(i.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(i.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(i.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(i.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(i.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(i.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(i.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(i.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(i.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(i.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(i.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(i.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(i.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(i.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(i.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(i.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let i=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{i=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}i&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let i=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{i=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}i&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(i,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},i)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let i=this.interactiveController?.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}toggleGraph(){if(!this.isInited)return;let i=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=i.state,{disabledControls$:r}=i.ui.controls,a=$e(n),s=$e(o);$e(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(Vs),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(Vs),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:i,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?$e(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new i({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(k=>{if(!this.isInited)return;let g=this.store;k?g.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):g.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(k=>{this.store&&this.store.state.isInteractiveExpectation$.set(k)}));let h=!0;if(this.interactiveController.on(n.playerChanged,k=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...k.config,title:a?.title||k.config.title};let g=h?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(k.player,g),h&&(h=!1)}),this.interactiveController.on(n.interactives,({type:k,actionType:g})=>{if(!this.store)return;let w=p.getValue();if(k==="action-choice"&&g==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(nr)),k==="action-choice-canceled"){let b=$e(this.store.state.isPlaying$)||w;if(this.videoConfig?.isMobile&&b){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let k=this.interactiveController.getHistoryState();this.subscription.add(k.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,k=>{this.log({message:k.toString()})})}catch(i){this.log({message:i.message})}}async initInteractivesStatistics(){let{statSubscription:i,oneStat:n}=this.statistics;if(!(!i||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:o}=await import("@vkontakte/videoplayer-interactive"),l={[o.GO_NEXT_BUTTON]:Il.InteractiveInterfaceClick.NEXT_BUTTON,[o.GO_NEXT_AREA]:Il.InteractiveInterfaceClick.NEXT_AREA,[o.WATCH_AGAIN]:Il.InteractiveInterfaceClick.WATCH_AGAIN,[o.OPEN_GRAPH]:Il.InteractiveInterfaceClick.GRAPH_SHOW,[o.CLOSE_GRAPH]:Il.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}))}),i.add(n.attachToInteractive({click$:s,nextMovie$:a}))}catch(o){n?.logError({errorType:"InteractiveVideos",fatal:!1}),this.sentry.report?.(o,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(i,n={}){if(!Array.isArray(i.videos)||i.videos.length===0&&!i.interactiveData)throw new Error("empty videos");this.videoConfig=Lc(D6,(0,nn.cloneDeepWith)(i,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Jc(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=gs.getLatestSupportedVersion():this.pictureInPictureApi=new No),this.mediaSessionApi=this.uiConfig.features.mediaSession?new hs:void 0,this.annotationsApi=this.uiConfig.features.annotations?new bs(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),i.interactiveData?this.initInteractives():this.createPlayer(i.videos[0]),t_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(i){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(i)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...i);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(i=>{i==="video"?this.setupMediaSessionForVideo():i==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:i,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:i,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o)}catch(i){this.log({message:i.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let i="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:i}),this.mediaSessionApi.updateActionHandlers(n)}catch(i){this.log({message:i.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 i=this.videoConfig.videos[0];i&&(this.svelteRootComponent?.$destroy(),this.createPlayer(i))}setMuted(i){this.log({message:`set muted, muted: ${i}`}),this.svelteRootComponent?.setMuted(i)}setVolume(i){this.log({message:`set volume, volume: ${i}`}),this.svelteRootComponent?.setVolume(i)}setRepeat(i){this.log({message:`set repeat, repeat: ${i}`}),this.needToRepeatPlaylist=i,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(i){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${i}`}),this.svelteRootComponent?.seekTime(i))}seekEpisodeStartTime(i){this.log({message:`seek episode start time, time: ${i}`}),this.svelteRootComponent?.seekEpisodeStartTime(i)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(i){this.log({message:`set playback rate to: ${i}`}),this.svelteRootComponent?.setPlaybackRate(i)}setAutoQualityLimits(i){this.log({message:`set auto quality limitation. Max: ${i.max??"none"}. Min: ${i.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(i)}addLanguage(i){this.store?.actions.internal.addLanguage(i)}async setLanguage(i){await this.store?.actions.internal.setLanguage(i)}setLiveStart(i){this.log({message:"live started"}),this.store?.actions.internal.setWaitingLive(!1),this.svelteRootComponent?.initVideo(i),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(i){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(i,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(i){if(this.interactiveController&&this.store?.state.positionExact$){let{EVENT_NAMES:n}=await import("@vkontakte/videoplayer-interactive"),o=$e(this.store.state.positionExact$),r=$e(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.once(n.playerChanged,()=>{r&&o>=r.time?this.seekTime(r.time):this.seekTime(o),i?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(i,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(i,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}};var Tl=require("@vkontakte/videoplayer-shared"),ks=require("@vkontakte/videoplayer-core"),N6=()=>{window.customElements.define("vk-video-player",ys)};