@vkontakte/videoplayer 1.1.14 → 1.1.15-dev.68b954d.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.cjs.js CHANGED
@@ -1,6 +1,37 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.14
3
- * Thu, 19 Jan 2023 10:11:16 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-14/doc/
2
+ * @vkontakte/videoplayer v1.1.15-dev.68b954d.0
3
+ * Thu, 02 Feb 2023 11:00:32 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-15/doc/
5
5
  */
6
- 'use strict';Object.defineProperty(exports,'__esModule',{value:!0});var e=require('@vkontakte/videoplayer-core/es2015.cjs.js'),t=require('lodash/debounce.js'),i=require('@vkontakte/videoplayer-shared/es2015.cjs.js'),n=require('@vkontakte/videoplayer-statistics/es2015.cjs.js'),o=require('lodash/cloneDeepWith.js');function l(e){return e&&'object'==typeof e&&'default'in e?e:{default:e}}var a=l(t),s=l(o);function r(){}function c(e){return e()}function d(){return Object.create(null)}function u(e){e.forEach(c)}function v(e){return'function'==typeof e}function p(e,t){return e!=e?t==t:e!==t||e&&'object'==typeof e||'function'==typeof e}let m,h;function g(e,t){return m||(m=document.createElement('a')),m.href=t,e===m.href}function f(e,...t){if(null==e)return r;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function b(e){let t;return f(e,(e=>t=e))(),t}function w(e,t,i){e.$$.on_destroy.push(f(t,i))}function $(e,t,i,n){return e[1]&&n?function(e,t){for(const i in t)e[i]=t[i];return e}(i.ctx.slice(),e[1](n(t))):i.ctx}function y(e){return null==e?'':e}function x(e,t){e.appendChild(t)}function k(e,t,i){const n=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;if(t&&t.host)return t;return e.ownerDocument}(e);if(!n.getElementById(t)){const e=A('style');e.id=t,e.textContent=i,function(e,t){x(e.head||e,t)}(n,e)}}function V(e,t,i){e.insertBefore(t,i||null)}function P(e){e.parentNode.removeChild(e)}function z(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function A(e){return document.createElement(e)}function C(e){return document.createElementNS('http://www.w3.org/2000/svg',e)}function S(e){return document.createTextNode(e)}function M(){return S(' ')}function N(){return S('')}function L(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function q(e){return function(t){return t.preventDefault(),e.call(this,t)}}function T(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function E(e,t){t=''+t,e.wholeText!==t&&(e.data=t)}function B(e,t,i,n){null===i?e.style.removeProperty(t):e.style.setProperty(t,i,n?'important':'')}function j(e,t,i){e.classList[i?'add':'remove'](t)}function I(e){h=e}function F(){if(!h)throw new Error('Function called outside component initialization');return h}function R(e){F().$$.on_mount.push(e)}function H(e,t){const i=e.$$.callbacks[t.type];i&&i.slice().forEach((e=>e.call(this,t)))}const _=[],D=[],U=[],O=[],Q=Promise.resolve();let W=!1;function K(e){U.push(e)}const Y=new Set;let X=0;function G(){const e=h;do{for(;X<_.length;){const e=_[X];X++,I(e),J(e.$$)}for(I(null),_.length=0,X=0;D.length;)D.pop()();for(let e=0;e<U.length;e+=1){const t=U[e];Y.has(t)||(Y.add(t),t())}U.length=0}while(_.length);for(;O.length;)O.pop()();W=!1,Y.clear(),I(e)}function J(e){if(null!==e.fragment){e.update(),u(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(K)}}const Z=new Set;let ee;function te(){ee={r:0,c:[],p:ee}}function ie(){ee.r||u(ee.c),ee=ee.p}function ne(e,t){e&&e.i&&(Z.delete(e),e.i(t))}function oe(e,t,i,n){if(e&&e.o){if(Z.has(e))return;Z.add(e),ee.c.push((()=>{Z.delete(e),n&&(i&&e.d(1),n())})),e.o(t)}else n&&n()}const le='undefined'!=typeof window?window:'undefined'!=typeof globalThis?globalThis:global;function ae(e){e&&e.c()}function se(e,t,i,n){const{fragment:o,on_mount:l,on_destroy:a,after_update:s}=e.$$;o&&o.m(t,i),n||K((()=>{const t=l.map(c).filter(v);a?a.push(...t):u(t),e.$$.on_mount=[]})),s.forEach(K)}function re(e,t){const i=e.$$;null!==i.fragment&&(u(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function ce(e,t){-1===e.$$.dirty[0]&&(_.push(e),W||(W=!0,Q.then(G)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function de(e,t,i,n,o,l,a,s=[-1]){const c=h;I(e);const v=e.$$={fragment:null,ctx:null,props:l,update:r,not_equal:o,bound:d(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:d(),dirty:s,skip_bound:!1,root:t.target||c.$$.root};a&&a(v.root);let p=!1;if(v.ctx=i?i(e,t.props||{},((t,i,...n)=>{const l=n.length?n[0]:i;return v.ctx&&o(v.ctx[t],v.ctx[t]=l)&&(!v.skip_bound&&v.bound[t]&&v.bound[t](l),p&&ce(e,t)),i})):[],v.update(),p=!0,u(v.before_update),v.fragment=!!n&&n(v.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);v.fragment&&v.fragment.l(e),e.forEach(P)}else v.fragment&&v.fragment.c();t.intro&&ne(e.$$.fragment),se(e,t.target,t.anchor,t.customElement),G()}I(c)}class ue{$destroy(){re(this,1),this.$destroy=r}$on(e,t){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ve=[];function pe(e,t){return{subscribe:me(e,t).subscribe}}function me(e,t=r){let i;const n=new Set;function o(t){if(p(e,t)&&(e=t,i)){const t=!ve.length;for(const t of n)t[1](),ve.push(t,e);if(t){for(let e=0;e<ve.length;e+=2)ve[e][0](ve[e+1]);ve.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(l,a=r){const s=[l,a];return n.add(s),1===n.size&&(i=t(o)||r),l(e),()=>{n.delete(s),0===n.size&&(i(),i=null)}}}}function he(e,t,i){const n=!Array.isArray(e),o=n?[e]:e,l=t.length<2;return pe(i,(e=>{let i=!1;const a=[];let s=0,c=r;const d=()=>{if(s)return;c();const i=t(n?a[0]:a,e);l?e(i):c=v(i)?i:r},p=o.map(((e,t)=>f(e,(e=>{a[t]=e,s&=~(1<<t),i&&d()}),(()=>{s|=1<<t}))));return i=!0,d(),function(){u(p),c()}}))}const ge=Symbol('storeContext'),fe=e=>{var t,i;t=ge,i=e,F().$$.context.set(t,i)},be=()=>{const e=(t=ge,F().$$.context.get(t));var t;return i.assertNonNullable(e,'Store context is empty!'),e},we=(e,t)=>pe(e.getValue(),(i=>{const n=e.subscribe((e=>{i(e),null==t||t(e)}));return()=>n.unsubscribe()})),$e='https://vk.com/support?act=new&from=v';var ye;!function(e){e.ArrowLeft='ArrowLeft',e.ArrowUp='ArrowUp',e.ArrowRight='ArrowRight',e.ArrowDown='ArrowDown',e.Comma='Comma',e.Period='Period',e.Space='Space',e.KeyM='KeyM',e.KeyF='KeyF',e.KeyK='KeyK',e.KeyL='KeyL',e.KeyJ='KeyJ'}(ye||(ye={}));var xe='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M13.25 2.833c.222.74.378 1.479 1.574 2.19a.574.574 0 0 0 .12.05c1.355.35 2.028-.021 2.654-.439.663-.442.86-.314 1.124-.053l.644.643c.294.294.412.412 0 1.178-.366.68-.779 1.313-.435 2.662a.469.469 0 0 0 .05.12c.71 1.206 1.448 1.418 2.186 1.566.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.74.222-1.479.378-2.19 1.574a.469.469 0 0 0-.05.12c-.35 1.355.021 2.028.439 2.654.442.663.314.86.053 1.124l-.643.644c-.294.294-.412.412-1.178 0-.68-.366-1.313-.779-2.662-.435a.464.464 0 0 0-.12.05c-1.206.71-1.418 1.448-1.566 2.186-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.222-.74-.378-1.479-1.574-2.19a.468.468 0 0 0-.12-.05c-1.355-.35-2.028.021-2.654.439-.663.442-.86.314-1.124.053l-.644-.643c-.294-.294-.412-.412 0-1.178.366-.68.779-1.313.435-2.662a.466.466 0 0 0-.05-.12c-.71-1.206-1.448-1.418-2.186-1.566-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.74-.222 1.479-.378 2.19-1.574a.467.467 0 0 0 .05-.12c.35-1.355-.021-2.028-.439-2.654-.442-.663-.314-.86-.053-1.124l.643-.644c.294-.294.412-.412 1.178 0 .68.366 1.313.779 2.662.435a.467.467 0 0 0 .12-.05c1.206-.71 1.418-1.448 1.566-2.186.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833zM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5z\' fill=\'white\'/%3e%3c/svg%3e',ke='data:image/svg+xml,%3csvg height=\'16\' width=\'16\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e',Ve='data:image/svg+xml,%3csvg width=\'12\' height=\'16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z\' fill=\'white\'/%3e%3c/svg%3e';const Pe=e=>{if(document.queryCommandSupported&&document.queryCommandSupported('copy')){const t=document.createElement('textarea');t.textContent=e,t.style.position='absolute',t.style.top='-9999px',document.body.appendChild(t),t.select();try{document.execCommand('copy')}finally{document.body.removeChild(t)}}};function ze(e){k(e,'v-1f29v8g','ul.v-1f29v8g.v-1f29v8g{margin:0;padding:0}.menu.v-1f29v8g.v-1f29v8g{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.container-mobile.v-1f29v8g.v-1f29v8g{width:100%}.menu-desktop.v-1f29v8g.v-1f29v8g{position:absolute;right:0;bottom:0}.menu-mobile.v-1f29v8g.v-1f29v8g{width:100%;background:var(--videplayer-mobile-settings-bg);font-size:15px;line-height:50px}.hidden.v-1f29v8g.v-1f29v8g{visibility:hidden;opacity:0}.menu-mobile.hidden.v-1f29v8g.v-1f29v8g{display:none}.menu-subList.v-1f29v8g.v-1f29v8g{min-width:134px;padding-bottom:0}.item.v-1f29v8g.v-1f29v8g{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.v-1f29v8g.v-1f29v8g{padding:0 14px}.item-quality.item-mobile.v-1f29v8g.v-1f29v8g{flex-direction:row-reverse}.quality-title-mobile.v-1f29v8g.v-1f29v8g{flex-grow:1}.item.v-1f29v8g.v-1f29v8g:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.v-1f29v8g.v-1f29v8g:hover{background:var(--videplayer-mobile-settings-bg)}.menu-subList.v-1f29v8g .item.v-1f29v8g{color:rgba(255, 255, 255, 0.9)}.menu-subList.v-1f29v8g .item.v-1f29v8g:last-child{margin-bottom:4px}.menu-icon.v-1f29v8g.v-1f29v8g{margin-right:16px}.menu-title.v-1f29v8g.v-1f29v8g{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.v-1f29v8g.v-1f29v8g{position:relative;opacity:0.7}.menu-valueIcon.v-1f29v8g.v-1f29v8g{position:absolute;top:10px;margin-left:4px;width:15px}.menu-valueIcon-list.v-1f29v8g.v-1f29v8g{position:absolute;top:12px;width:15px;right:6px}.menu-divider.v-1f29v8g.v-1f29v8g{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.v-1f29v8g.v-1f29v8g{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.menu-header-back-icon.v-1f29v8g.v-1f29v8g{width:16px;height:24px}.menu-header.v-1f29v8g:hover .menu-header-back-icon.v-1f29v8g{opacity:0.8;transition:opacity 0.2s}.itemIcon.v-1f29v8g.v-1f29v8g{margin-right:auto;opacity:0.9}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar{width:8px}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.v-1f29v8g.v-1f29v8g{overflow-y:auto;max-height:160px;text-align:left}.close.v-1f29v8g.v-1f29v8g{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.v-1f29v8g.v-1f29v8g:before,.close.v-1f29v8g.v-1f29v8g:after{position:absolute;left:18px;content:\' \';height:12px;width:2px;background-color:var(--white)}.close.v-1f29v8g.v-1f29v8g:before{transform:rotate(45deg)}.close.v-1f29v8g.v-1f29v8g:after{transform:rotate(-45deg)}')}function Ae(e,t,i){const n=e.slice();return n[42]=t[i],n}function Ce(e,t,i){const n=e.slice();return n[45]=t[i],n}function Se(e){let t,i,n,o,l,a,s,r;return{c(){t=A('div'),i=A('div'),i.textContent='Настройки',n=M(),o=A('div'),l=M(),a=A('div'),T(o,'class','close v-1f29v8g'),T(t,'class','item menu-header v-1f29v8g'),j(t,'item-mobile',e[0]),T(a,'class','menu-divider v-1f29v8g')},m(c,d){V(c,t,d),x(t,i),x(t,n),x(t,o),V(c,l,d),V(c,a,d),s||(r=L(o,'click',e[22]),s=!0)},p(e,i){1&i[0]&&j(t,'item-mobile',e[0])},d(e){e&&P(t),e&&P(l),e&&P(a),s=!1,r()}}}function Me(e){let t,i;return{c(){t=A('img'),T(t,'class','menu-valueIcon v-1f29v8g'),g(t.src,i=e[6])||T(t,'src',i),T(t,'alt','')},m(e,i){V(e,t,i)},p(e,n){64&n[0]&&!g(t.src,i=e[6])&&T(t,'src',i)},d(e){e&&P(t)}}}function Ne(e){let t,i,n,o,l,a,s,r,c,d,u;return{c(){t=A('li'),i=A('img'),o=M(),l=A('div'),l.textContent='Скорость',a=M(),s=A('div'),r=S(e[10]),c=S('x'),T(i,'class','menu-icon v-1f29v8g'),g(i.src,n='data:image/svg+xml,%3csvg height=\'24\' width=\'24\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath d=\'M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12zM10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686z\' fill=\'white\' fill-rule=\'nonzero\'/%3e%3c/g%3e%3c/svg%3e')||T(i,'src','data:image/svg+xml,%3csvg height=\'24\' width=\'24\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath d=\'M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12zM10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686z\' fill=\'white\' fill-rule=\'nonzero\'/%3e%3c/g%3e%3c/svg%3e'),T(i,'alt',''),T(l,'class','menu-title v-1f29v8g'),T(s,'class','menu-value v-1f29v8g'),T(t,'class','item v-1f29v8g'),T(t,'role','menuitemradio'),T(t,'tabindex','0'),j(t,'item-mobile',e[0])},m(n,v){V(n,t,v),x(t,i),x(t,o),x(t,l),x(t,a),x(t,s),x(s,r),x(s,c),d||(u=L(t,'click',e[26]),d=!0)},p(e,i){1024&i[0]&&E(r,e[10]),1&i[0]&&j(t,'item-mobile',e[0])},d(e){e&&P(t),d=!1,u()}}}function Le(e){let t,i,n,o,l,a,s,c,d,v,p,m,h,f,b,w,$,y,k;return{c(){t=A('li'),i=A('img'),o=M(),l=A('div'),l.textContent='Сообщить о проблеме',a=M(),s=A('li'),c=A('img'),v=M(),p=A('div'),p.textContent='Копировать данные для диагностики',m=M(),h=A('li'),f=A('img'),w=M(),$=A('div'),$.textContent='Техническая информация',T(i,'class','menu-icon v-1f29v8g'),g(i.src,n='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697zm-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z\' fill=\'white\'/%3e%3c/svg%3e')||T(i,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697zm-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z\' fill=\'white\'/%3e%3c/svg%3e'),T(i,'alt',''),T(l,'class','menu-title v-1f29v8g'),T(t,'class','item item-mobile v-1f29v8g'),T(t,'role','menuitemradio'),T(t,'tabindex','0'),T(c,'class','menu-icon v-1f29v8g'),g(c.src,d='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' 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 4H16.812a2.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093.284-.022.655-.023 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.093-.284.022-.655.023-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17.057 17.057 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492z\' fill=\'white\'/%3e%3c/svg%3e')||T(c,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' 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 4H16.812a2.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093.284-.022.655-.023 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.093-.284.022-.655.023-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17.057 17.057 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492z\' fill=\'white\'/%3e%3c/svg%3e'),T(c,'alt',''),T(p,'class','menu-title v-1f29v8g'),T(s,'class','item item-mobile v-1f29v8g'),T(s,'role','menuitemradio'),T(s,'tabindex','0'),T(f,'class','menu-icon v-1f29v8g'),g(f.src,b='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z\' fill=\'white\'/%3e%3c/svg%3e')||T(f,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z\' fill=\'white\'/%3e%3c/svg%3e'),T(f,'alt',''),T($,'class','menu-title v-1f29v8g'),T(h,'class','item item-mobile v-1f29v8g'),T(h,'role','menuitemradio'),T(h,'tabindex','0')},m(n,r){V(n,t,r),x(t,i),x(t,o),x(t,l),V(n,a,r),V(n,s,r),x(s,c),x(s,v),x(s,p),V(n,m,r),V(n,h,r),x(h,f),x(h,w),x(h,$),y||(k=[L(t,'click',e[28]),L(s,'click',e[29]),L(h,'click',e[30])],y=!0)},p:r,d(e){e&&P(t),e&&P(a),e&&P(s),e&&P(m),e&&P(h),y=!1,u(k)}}}function qe(e){let t,i;return{c(){t=A('img'),T(t,'class','itemIcon v-1f29v8g'),g(t.src,i=ke)||T(t,'src','data:image/svg+xml,%3csvg height=\'16\' width=\'16\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),T(t,'alt','')},m(e,i){V(e,t,i)},p:r,d(e){e&&P(t)}}}function Te(e){let t,i;return{c(){t=A('img'),T(t,'class','menu-valueIcon-list v-1f29v8g'),g(t.src,i=e[31](e[45].value))||T(t,'src',i),T(t,'alt','')},m(e,i){V(e,t,i)},p(e,n){2&n[0]&&!g(t.src,i=e[31](e[45].value))&&T(t,'src',i)},d(e){e&&P(t)}}}function Ee(e){let t,i,n,o,l,a,s,r,c,d=e[45].displayValue+'',u=e[45].selected&&qe(),v=!e[0]&&Te(e);function p(){return e[37](e[45])}return{c(){t=A('li'),u&&u.c(),i=M(),n=A('div'),o=S(d),l=M(),v&&v.c(),a=M(),T(n,'class','v-1f29v8g'),j(n,'quality-title-mobile',e[0]),T(t,'class','item item-quality v-1f29v8g'),T(t,'data-value',s=e[45].value),T(t,'role','menuitemradio'),T(t,'tabindex','0'),j(t,'item-mobile',e[0])},m(e,s){V(e,t,s),u&&u.m(t,null),x(t,i),x(t,n),x(n,o),x(t,l),v&&v.m(t,null),x(t,a),r||(c=L(t,'click',p),r=!0)},p(l,r){(e=l)[45].selected?u?u.p(e,r):(u=qe(),u.c(),u.m(t,i)):u&&(u.d(1),u=null),2&r[0]&&d!==(d=e[45].displayValue+'')&&E(o,d),1&r[0]&&j(n,'quality-title-mobile',e[0]),e[0]?v&&(v.d(1),v=null):v?v.p(e,r):(v=Te(e),v.c(),v.m(t,a)),2&r[0]&&s!==(s=e[45].value)&&T(t,'data-value',s),1&r[0]&&j(t,'item-mobile',e[0])},d(e){e&&P(t),u&&u.d(),v&&v.d(),r=!1,c()}}}function Be(e){let t,i;return{c(){t=A('img'),T(t,'class','itemIcon v-1f29v8g'),g(t.src,i=ke)||T(t,'src','data:image/svg+xml,%3csvg height=\'16\' width=\'16\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),T(t,'alt','')},m(e,i){V(e,t,i)},p:r,d(e){e&&P(t)}}}function je(e){let t,i,n,o,l,a,s,r,c=e[42].displayValue+'',d=e[42].selected&&Be();function u(){return e[38](e[42])}return{c(){t=A('li'),d&&d.c(),i=M(),n=A('div'),o=S(c),l=M(),T(n,'class','v-1f29v8g'),j(n,'quality-title-mobile',e[0]),T(t,'class','item item-quality v-1f29v8g'),T(t,'data-value',a=e[42].value),T(t,'role','menuitemradio'),T(t,'tabindex','0'),j(t,'item-mobile',e[0])},m(e,a){V(e,t,a),d&&d.m(t,null),x(t,i),x(t,n),x(n,o),x(t,l),s||(r=L(t,'click',u),s=!0)},p(l,s){(e=l)[42].selected?d?d.p(e,s):(d=Be(),d.c(),d.m(t,i)):d&&(d.d(1),d=null),2048&s[0]&&c!==(c=e[42].displayValue+'')&&E(o,c),1&s[0]&&j(n,'quality-title-mobile',e[0]),2048&s[0]&&a!==(a=e[42].value)&&T(t,'data-value',a),1&s[0]&&j(t,'item-mobile',e[0])},d(e){e&&P(t),d&&d.d(),s=!1,r()}}}function Ie(e){let t,i,n,o,l,a,s,c,d,v,p,m,h,f,b,w,$,y,k,C,N,q,B,I,F,R,H,_,D,U,O,Q,W,K,Y,X,G,J,Z,ee=e[0]&&Se(e),te=e[6]&&!e[0]&&Me(e),ie=!e[9]&&Ne(e),ne=e[0]&&Le(e),oe=e[1],le=[];for(let t=0;t<oe.length;t+=1)le[t]=Ee(Ce(e,oe,t));let ae=e[11],se=[];for(let t=0;t<ae.length;t+=1)se[t]=je(Ae(e,ae,t));return{c(){t=A('div'),i=A('div'),ee&&ee.c(),n=M(),o=A('ul'),l=A('li'),a=A('img'),c=M(),d=A('div'),d.textContent='Качество',v=M(),p=A('div'),m=S(e[7]),h=M(),te&&te.c(),f=M(),ie&&ie.c(),b=M(),ne&&ne.c(),w=M(),$=A('div'),y=A('div'),k=A('img'),N=M(),q=A('div'),q.textContent='Качество',B=M(),I=A('div'),F=M(),R=A('ul');for(let e=0;e<le.length;e+=1)le[e].c();H=M(),_=A('div'),D=A('div'),U=A('img'),Q=M(),W=A('div'),W.textContent='Скорость',K=M(),Y=A('div'),X=M(),G=A('ul');for(let e=0;e<se.length;e+=1)se[e].c();T(a,'class','menu-icon v-1f29v8g'),g(a.src,s=xe)||T(a,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M13.25 2.833c.222.74.378 1.479 1.574 2.19a.574.574 0 0 0 .12.05c1.355.35 2.028-.021 2.654-.439.663-.442.86-.314 1.124-.053l.644.643c.294.294.412.412 0 1.178-.366.68-.779 1.313-.435 2.662a.469.469 0 0 0 .05.12c.71 1.206 1.448 1.418 2.186 1.566.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.74.222-1.479.378-2.19 1.574a.469.469 0 0 0-.05.12c-.35 1.355.021 2.028.439 2.654.442.663.314.86.053 1.124l-.643.644c-.294.294-.412.412-1.178 0-.68-.366-1.313-.779-2.662-.435a.464.464 0 0 0-.12.05c-1.206.71-1.418 1.448-1.566 2.186-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.222-.74-.378-1.479-1.574-2.19a.468.468 0 0 0-.12-.05c-1.355-.35-2.028.021-2.654.439-.663.442-.86.314-1.124.053l-.644-.643c-.294-.294-.412-.412 0-1.178.366-.68.779-1.313.435-2.662a.466.466 0 0 0-.05-.12c-.71-1.206-1.448-1.418-2.186-1.566-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.74-.222 1.479-.378 2.19-1.574a.467.467 0 0 0 .05-.12c.35-1.355-.021-2.028-.439-2.654-.442-.663-.314-.86-.053-1.124l.643-.644c.294-.294.412-.412 1.178 0 .68.366 1.313.779 2.662.435a.467.467 0 0 0 .12-.05c1.206-.71 1.418-1.448 1.566-2.186.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833zM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5z\' fill=\'white\'/%3e%3c/svg%3e'),T(a,'alt',''),T(d,'class','menu-title v-1f29v8g'),T(p,'class','menu-value v-1f29v8g'),T(l,'class','item v-1f29v8g'),T(l,'role','menuitemradio'),T(l,'tabindex','0'),j(l,'item-mobile',e[0]),T(o,'class','items v-1f29v8g'),j(o,'items-mobile',e[0]),T(i,'class','menu v-1f29v8g'),T(i,'role','menu'),j(i,'menu-desktop',!e[0]),j(i,'menu-mobile',e[0]),j(i,'hidden',!e[3]),g(k.src,C=Ve)||T(k,'src','data:image/svg+xml,%3csvg width=\'12\' height=\'16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z\' fill=\'white\'/%3e%3c/svg%3e'),T(k,'class','menu-header-back-icon v-1f29v8g'),T(k,'alt',''),T(y,'class','item menu-header v-1f29v8g'),j(y,'item-mobile',e[0]),T(I,'class','menu-divider v-1f29v8g'),T(R,'class','items v-1f29v8g'),T(R,'style',e[8]),j(R,'items-mobile',e[0]),T($,'class','menu menu-subList v-1f29v8g'),j($,'menu-desktop',!e[0]),j($,'menu-mobile',e[0]),j($,'hidden',!e[4]),g(U.src,O=Ve)||T(U,'src','data:image/svg+xml,%3csvg width=\'12\' height=\'16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z\' fill=\'white\'/%3e%3c/svg%3e'),T(U,'class','menu-header-back-icon v-1f29v8g'),T(U,'alt',''),T(D,'class','item menu-header v-1f29v8g'),j(D,'item-mobile',e[0]),T(Y,'class','menu-divider v-1f29v8g'),T(G,'class','items v-1f29v8g'),j(G,'items-mobile',e[0]),T(_,'class','menu menu-subList v-1f29v8g'),j(_,'menu-desktop',!e[0]),j(_,'menu-mobile',e[0]),j(_,'hidden',!e[5]),T(t,'class','v-1f29v8g'),j(t,'hidden',!e[2]),j(t,'container-mobile',e[0])},m(s,r){V(s,t,r),x(t,i),ee&&ee.m(i,null),x(i,n),x(i,o),x(o,l),x(l,a),x(l,c),x(l,d),x(l,v),x(l,p),x(p,m),x(p,h),te&&te.m(p,null),x(o,f),ie&&ie.m(o,null),x(o,b),ne&&ne.m(o,null),x(t,w),x(t,$),x($,y),x(y,k),x(y,N),x(y,q),x($,B),x($,I),x($,F),x($,R);for(let e=0;e<le.length;e+=1)le[e].m(R,null);x(t,H),x(t,_),x(_,D),x(D,U),x(D,Q),x(D,W),x(_,K),x(_,Y),x(_,X),x(_,G);for(let e=0;e<se.length;e+=1)se[e].m(G,null);J||(Z=[L(l,'click',e[23]),L(y,'click',e[27]),L(D,'click',e[27])],J=!0)},p(e,a){if(e[0]?ee?ee.p(e,a):(ee=Se(e),ee.c(),ee.m(i,n)):ee&&(ee.d(1),ee=null),128&a[0]&&E(m,e[7]),e[6]&&!e[0]?te?te.p(e,a):(te=Me(e),te.c(),te.m(p,null)):te&&(te.d(1),te=null),1&a[0]&&j(l,'item-mobile',e[0]),e[9]?ie&&(ie.d(1),ie=null):ie?ie.p(e,a):(ie=Ne(e),ie.c(),ie.m(o,b)),e[0]?ne?ne.p(e,a):(ne=Le(e),ne.c(),ne.m(o,null)):ne&&(ne.d(1),ne=null),1&a[0]&&j(o,'items-mobile',e[0]),1&a[0]&&j(i,'menu-desktop',!e[0]),1&a[0]&&j(i,'menu-mobile',e[0]),8&a[0]&&j(i,'hidden',!e[3]),1&a[0]&&j(y,'item-mobile',e[0]),16777219&a[0]|1&a[1]){let t;for(oe=e[1],t=0;t<oe.length;t+=1){const i=Ce(e,oe,t);le[t]?le[t].p(i,a):(le[t]=Ee(i),le[t].c(),le[t].m(R,null))}for(;t<le.length;t+=1)le[t].d(1);le.length=oe.length}if(256&a[0]&&T(R,'style',e[8]),1&a[0]&&j(R,'items-mobile',e[0]),1&a[0]&&j($,'menu-desktop',!e[0]),1&a[0]&&j($,'menu-mobile',e[0]),16&a[0]&&j($,'hidden',!e[4]),1&a[0]&&j(D,'item-mobile',e[0]),33556481&a[0]){let t;for(ae=e[11],t=0;t<ae.length;t+=1){const i=Ae(e,ae,t);se[t]?se[t].p(i,a):(se[t]=je(i),se[t].c(),se[t].m(G,null))}for(;t<se.length;t+=1)se[t].d(1);se.length=ae.length}1&a[0]&&j(G,'items-mobile',e[0]),1&a[0]&&j(_,'menu-desktop',!e[0]),1&a[0]&&j(_,'menu-mobile',e[0]),32&a[0]&&j(_,'hidden',!e[5]),4&a[0]&&j(t,'hidden',!e[2]),1&a[0]&&j(t,'container-mobile',e[0])},i:r,o:r,d(e){e&&P(t),ee&&ee.d(),te&&te.d(),ie&&ie.d(),ne&&ne.d(),z(le,e),z(se,e),J=!1,u(Z)}}}function Fe(t,i,n){let o,l,a,s,r,c,d,u,v,p,{supportLink:m}=i;const h=be(),g=h.state.currentQuality$;w(t,g,(e=>n(36,c=e)));const f=h.state.availableQualities$;w(t,f,(e=>n(1,r=e)));const b=h.state.isAutoQualityEnabled$;w(t,b,(e=>n(35,s=e)));const $=h.state.currentPlaybackRate$;w(t,$,(e=>n(10,v=e)));const y=h.state.availablePlaybackRates$;w(t,y,(e=>n(11,p=e)));const x=h.ui.settingsMenuVisible;w(t,x,(e=>n(2,d=e)));const k=h.ui.isMobile;w(t,k,(e=>n(0,a=e)));const V=h.ui.isFullscreen;w(t,V,(e=>n(34,l=e)));const P=h.state.isLive$;w(t,P,(e=>n(9,u=e)));const z=h.ui.playerSize;w(t,z,(e=>n(33,o=e)));const A=h.ui.debugPanelVisible;let C,S,M,N=!0,L=!1,q=!1;function T(){x.set(!1)}function E(e){h.actions.internal.setQuality(e),T()}function B(e){h.actions.internal.setPlaybackRate(e),T()}function j(t){switch(t){case e.VideoQuality.Q_720P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'5\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646h-.468zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.VideoQuality.Q_1080P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'5\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471zm-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 5z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.VideoQuality.Q_1440P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'6\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M11.516 5h1.107C14.103 5 15 4.065 15 2.5S14.103 0 12.623 0h-1.107C11.191 0 11 .2 11 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM6.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S10 4.802 10 4.464V.54C10 .198 9.809 0 9.484 0s-.516.198-.516.54v1.531H7.032V.54c0-.342-.191-.54-.516-.54S6 .198 6 .54v3.989c0 .338.191.471.516.471z\' fill=\'%2370C1FF\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M3.338 4.909A3.9 3.9 0 0 1 2.5 5C1.037 5 0 4.135 0 2.553 0 .983 1.037 0 2.5 0 3.96 0 5 .984 5 2.553c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037C3.947 1.517 3.307.9 2.5.9c-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.VideoQuality.Q_2160P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'6\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.491.491 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536z\' fill=\'%2370C1FF\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'m2.551 1.052-1.51 2.052h1.51V1.052zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9H3.5z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.VideoQuality.Q_4320P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'5\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537z\' fill=\'%2370C1FF\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M2 0c-.353 0-.671.057-.952.173a1.492 1.492 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.778l.001.001c.173.224.412.398.712.523C1.267 4.939 1.612 5 2 5c.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.427 2.427 0 0 0 2 0zm-.573.964C1.563.86 1.75.804 2 .804c.25 0 .434.055.564.16h.001a.512.512 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.187a.637.637 0 0 1-.234-.524z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e'}}return t.$$set=e=>{'supportLink'in e&&n(32,m=e.supportLink)},t.$$.update=()=>{4&t.$$.dirty[0]&&d&&(n(3,N=!0),n(4,L=!1),n(5,q=!1)),32&t.$$.dirty[1]&&n(6,C=j(c)),2&t.$$.dirty[0]|48&t.$$.dirty[1]&&n(7,S=function(t,i,n){if(!t)return'...';const o=i.find((e=>e.value===t)),l=o?o.displayValue:t;return n?t===e.VideoQuality.INVARIANT?'Авто':`Авто ${l}`:l}(c,r,s)),1&t.$$.dirty[0]|12&t.$$.dirty[1]&&n(8,M=a&&l?`max-height: ${Math.round(.6*o.height)}px`:'')},[a,r,d,N,L,q,C,S,M,u,v,p,g,f,b,$,y,x,k,V,P,z,T,function(){n(3,N=!1),n(4,L=!0)},E,B,function(){n(3,N=!1),n(5,q=!0)},function(){n(3,N=!0),n(4,L=!1),n(5,q=!1)},function(){window.open(m,'_blank'),T(),h.actions.internal.pause()},function(){Pe(h.actions.internal.getDebugTextData()),T()},function(){A.set(!0),T()},j,m,o,l,s,c,e=>E(e.value),e=>B(e.value)]}class Re extends ue{constructor(e){super(),de(this,e,Fe,Ie,p,{supportLink:32},ze,[-1,-1])}}function He(e){k(e,'v-1qf7s4g','.settingsButton-icon.v-1qf7s4g{display:block;width:40px;height:24px}.settingsButton-icon.mobile.v-1qf7s4g{width:auto}')}function _e(e){let t,i,n,o,l,a,s;return{c(){t=A('div'),i=A('div'),n=A('img'),g(n.src,o=e[7](e[2],e[1]))||T(n,'src',o),T(n,'alt',''),T(i,'class','settingsButton-icon v-1qf7s4g'),j(i,'mobile',e[1]),T(t,'class',l=y(e[0])+' v-1qf7s4g'),T(t,'aria-label','Открыть настройки видеоплеера'),T(t,'tabindex','-1'),T(t,'role','button')},m(o,l){V(o,t,l),x(t,i),x(i,n),a||(s=L(t,'click',e[6]),a=!0)},p(e,[a]){6&a&&!g(n.src,o=e[7](e[2],e[1]))&&T(n,'src',o),2&a&&j(i,'mobile',e[1]),1&a&&l!==(l=y(e[0])+' v-1qf7s4g')&&T(t,'class',l)},i:r,o:r,d(e){e&&P(t),a=!1,s()}}}function De(t,i,n){let o,l,a,{className:s=''}=i;const r=be(),c=r.state.currentQuality$;w(t,c,(e=>n(2,a=e)));const d=r.ui.settingsMenuVisible;w(t,d,(e=>n(8,o=e)));const u=r.ui.isMobile;return w(t,u,(e=>n(1,l=e))),t.$$set=e=>{'className'in e&&n(0,s=e.className)},[s,l,a,c,d,u,function(){d.set(!o)},function(t,i){if(i)return xe;switch(t){case e.VideoQuality.Q_720P:return'data:image/svg+xml,%3csvg width=\'34\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'17\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M24.516 11h1.107C27.103 11 28 10.066 28 8.5S27.103 6 25.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM19.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S19 6.198 19 6.54v3.989c0 .338.191.472.516.472z\' fill=\'white\'/%3e%3c/svg%3e';case e.VideoQuality.Q_1080P:return'data:image/svg+xml,%3csvg width=\'38\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'21\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M28.516 11h1.107C31.103 11 32 10.066 32 8.5S31.103 6 29.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM23.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S23 6.198 23 6.54v3.989c0 .338.191.472.516.472zm-4 0c.325 0 .516-.198.516-.537V9h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407h-1.333V6.854h1.5c.28 0 .468-.16.468-.427 0-.266-.185-.427-.468-.427h-2.016c-.325 0-.516.198-.516.537v3.926c0 .339.191.537.516.537z\' fill=\'white\'/%3e%3c/svg%3e';case e.VideoQuality.Q_1440P:return'data:image/svg+xml,%3csvg width=\'40\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3cpath d=\'M15 8.5A5.5 5.5 0 0 1 20.5 3h12a5.5 5.5 0 1 1 0 11h-12A5.5 5.5 0 0 1 15 8.5z\' fill=\'%23689FF8\'/%3e%3cpath d=\'M30.516 11h1.107C33.103 11 34 10.066 34 8.5S33.103 6 31.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM25.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S25 6.198 25 6.54v3.989c0 .338.191.472.516.472z\' fill=\'white\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M22.338 10.909c-.254.06-.58.091-.838.091-1.463 0-2.5-.865-2.5-2.447C19 6.983 20.037 6 21.5 6c1.46 0 2.5.984 2.5 2.553 0 .863-.274 1.46-.777 1.88l.193.29a.5.5 0 1 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 0 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02z\' fill=\'white\'/%3e%3c/svg%3e';case e.VideoQuality.Q_2160P:return'data:image/svg+xml,%3csvg width=\'34\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'17\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M24.517 11c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.284.516.284a.491.491 0 0 0 .499-.5c0-.14-.068-.287-.222-.478l-1.47-1.73 1.51-1.425c.13-.137.182-.25.182-.393A.474.474 0 0 0 27.515 6c-.171 0-.301.065-.445.222L25.064 8.25h-.03V6.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.537.516.537z\' fill=\'white\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'m21.551 7.052-1.51 2.052h1.51V7.052zm.949 2.052V6.832c0-.81-1.089-1.14-1.556-.48l-1.805 2.469a.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 1 0 0-.9H22.5z\' fill=\'white\'/%3e%3c/svg%3e';case e.VideoQuality.Q_4320P:return'data:image/svg+xml,%3csvg width=\'34\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'17\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M24.513 11c.323 0 .513-.198.513-.537v-.97l.49-.516 1.475 1.738c.16.205.302.284.513.284A.49.49 0 0 0 28 10.5c0-.14-.068-.287-.22-.478l-1.486-1.729 1.526-1.425c.129-.137.18-.25.18-.393A.473.473 0 0 0 27.517 6c-.17 0-.299.065-.441.222l-2.02 2.027h-.03V6.54c0-.342-.19-.54-.513-.54S24 6.198 24 6.54v3.923c0 .339.19.537.513.537z\' fill=\'white\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M21 6c-.353 0-.671.057-.952.173a1.493 1.493 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.777l.001.002c.173.224.412.398.712.523.302.125.647.186 1.035.186.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.428 2.428 0 0 0 21 6zm-.573.964c.136-.105.323-.16.573-.16.25 0 .434.055.564.16h.001a.512.512 0 0 1 .203.43c0 .19-.07.333-.203.437-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.188a.636.636 0 0 1-.234-.523z\' fill=\'white\'/%3e%3c/svg%3e';default:return xe}}]}class Ue extends ue{constructor(e){super(),de(this,e,De,_e,p,{className:0},He)}}const Oe=e=>{if(!isFinite(e))return'00:00';let t=Math.round(e);const i=Math.floor(t/3600);t-=3600*i;const n=Math.floor(t/60);t-=60*n;return(i>0?[i,n,t]:[n,t]).map((e=>e>9?String(e):`0${e}`)).join(':')};function Qe(e){k(e,'v-1bjfp5n','.time.v-1bjfp5n{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums}.current.v-1bjfp5n{position:relative}.duration.v-1bjfp5n{opacity:0.7}.duration.v-1bjfp5n:before{content:\' / \';white-space:pre}')}function We(e){let t,i;return{c(){t=A('span'),i=S(e[2]),T(t,'class','duration v-1bjfp5n')},m(e,n){V(e,t,n),x(t,i)},p(e,t){4&t&&E(i,e[2])},d(e){e&&P(t)}}}function Ke(e){let t,i,n,o,l,a=e[0]&&We(e);return{c(){t=A('div'),i=A('span'),n=S(e[3]),o=M(),a&&a.c(),T(i,'class','current v-1bjfp5n'),T(t,'class',l='time '+e[1]+' v-1bjfp5n')},m(e,l){V(e,t,l),x(t,i),x(i,n),x(t,o),a&&a.m(t,null)},p(e,[i]){8&i&&E(n,e[3]),e[0]?a?a.p(e,i):(a=We(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null),2&i&&l!==(l='time '+e[1]+' v-1bjfp5n')&&T(t,'class',l)},i:r,o:r,d(e){e&&P(t),a&&a.d()}}}function Ye(e,t,i){let n,o,{duration:l}=t,{position:a}=t,{showDuration:s=!0}=t,{className:r=''}=t;return e.$$set=e=>{'duration'in e&&i(4,l=e.duration),'position'in e&&i(5,a=e.position),'showDuration'in e&&i(0,s=e.showDuration),'className'in e&&i(1,r=e.className)},e.$$.update=()=>{16&e.$$.dirty&&i(2,n=Oe(l)),32&e.$$.dirty&&i(3,o=Oe(a))},[s,r,n,o,l,a]}class Xe extends ue{constructor(e){super(),de(this,e,Ye,Ke,p,{duration:4,position:5,showDuration:0,className:1},Qe)}}function Ge(e){k(e,'v-1w56qn2','.slider.v-1w56qn2.v-1w56qn2{position:relative;height:var(--videoplayer-slider-height);border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-bg);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.v-1w56qn2.v-1w56qn2{cursor:default}.slider.v-1w56qn2.v-1w56qn2:before{content:\'\';position:absolute;left:0;right:0;top:calc(-1 * (var(--videoplayer-controls-height) - var(--videoplayer-slider-height)) / 2);height:var(--videoplayer-controls-height)}.bars.v-1w56qn2.v-1w56qn2{position:absolute;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);overflow:hidden}.loaded.v-1w56qn2.v-1w56qn2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-loaded-bg);transition:transform 0.2s}.filled.v-1w56qn2.v-1w56qn2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background-color:var(--videoplayer-slider-filled-bg)}.slider.square.v-1w56qn2.v-1w56qn2,.slider.square.v-1w56qn2>.bars.v-1w56qn2,.loaded.v-1w56qn2.v-1w56qn2,.filled.v-1w56qn2.v-1w56qn2{border-radius:unset}.filled.active-live.v-1w56qn2.v-1w56qn2{background-color:var(--videoplayer-slider-filled-active-live-bg)}.filled.ads.v-1w56qn2.v-1w56qn2{background-color:var(--videoplayer-slider-filled-ads)}.handleWrap.v-1w56qn2.v-1w56qn2{position:absolute;left:-100%;width:100%}.handle.v-1w56qn2.v-1w56qn2{position:absolute;width:var(--videoplayer-slider-handle-size);height:var(--videoplayer-slider-handle-size);right:calc(-1 * var(--videoplayer-slider-handle-size) / 2);top:calc((var(--videoplayer-slider-height) - var(--videoplayer-slider-handle-size)) / 2);border-radius:50%;background-color:var(--videoplayer-slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.v-1w56qn2.v-1w56qn2{background-color:var(--videoplayer-slider-filled-active-live-bg)}.slider.v-1w56qn2:hover .handle.v-1w56qn2,.slider-dragging.v-1w56qn2 .handle.v-1w56qn2{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.v-1w56qn2 .handle.v-1w56qn2{transform:scale(1.3)}.slider-vertical.v-1w56qn2.v-1w56qn2{position:absolute;left:-26px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.hidden.v-1w56qn2.v-1w56qn2{visibility:hidden;opacity:0}')}function Je(e){let t,i,n,o,l,a,s,c,d,v,p,m,h,g;return{c(){t=A('div'),i=A('div'),n=A('div'),l=M(),a=A('div'),c=M(),d=A('div'),v=A('div'),T(n,'class','loaded v-1w56qn2'),T(n,'style',o=`transform: translateX(${100*e[6]}%);`),T(a,'class','filled v-1w56qn2'),T(a,'style',s=`transform: translateX(${100*e[7]}%);`),j(a,'active-live',e[3]),j(a,'ads',e[4]),T(i,'class','bars v-1w56qn2'),T(v,'class','handle v-1w56qn2'),j(v,'active-live',e[3]),T(d,'class','handleWrap v-1w56qn2'),T(d,'style',p=`transform: translateX(${100*e[8]}%);`),j(d,'hidden',e[4]),T(t,'class',m='slider '+e[0]+' v-1w56qn2'),T(t,'aria-label',e[9]),T(t,'aria-valuemin',e[10]),T(t,'aria-valuemax',e[11]),T(t,'aria-valuenow',e[12]),T(t,'aria-valuetext',e[13]),T(t,'role','slider'),T(t,'tabindex','0'),j(t,'slider-dragging',e[15]),j(t,'hidden',e[1]),j(t,'slider-vertical',e[2]),j(t,'no-handle',e[4]),j(t,'square',e[5])},m(o,s){V(o,t,s),x(t,i),x(i,n),x(i,l),x(i,a),x(t,c),x(t,d),x(d,v),e[27](t),h||(g=[L(t,'pointerdown',q(e[16])),L(t,'pointermove',q(e[17])),L(t,'pointerup',q(e[18])),L(t,'pointerenter',q(e[19])),L(t,'pointerleave',q(e[20]))],h=!0)},p(e,[i]){64&i&&o!==(o=`transform: translateX(${100*e[6]}%);`)&&T(n,'style',o),128&i&&s!==(s=`transform: translateX(${100*e[7]}%);`)&&T(a,'style',s),8&i&&j(a,'active-live',e[3]),16&i&&j(a,'ads',e[4]),8&i&&j(v,'active-live',e[3]),256&i&&p!==(p=`transform: translateX(${100*e[8]}%);`)&&T(d,'style',p),16&i&&j(d,'hidden',e[4]),1&i&&m!==(m='slider '+e[0]+' v-1w56qn2')&&T(t,'class',m),512&i&&T(t,'aria-label',e[9]),1024&i&&T(t,'aria-valuemin',e[10]),2048&i&&T(t,'aria-valuemax',e[11]),4096&i&&T(t,'aria-valuenow',e[12]),8192&i&&T(t,'aria-valuetext',e[13]),32769&i&&j(t,'slider-dragging',e[15]),3&i&&j(t,'hidden',e[1]),5&i&&j(t,'slider-vertical',e[2]),17&i&&j(t,'no-handle',e[4]),33&i&&j(t,'square',e[5])},i:r,o:r,d(i){i&&P(t),e[27](null),h=!1,u(g)}}}function Ze(e,t,i){let n,o,{className:l=''}=t,{isHidden:a=!1}=t,{isVertical:s=!1}=t,{isActiveLive:c=!1}=t,{isAds:d=!1}=t,{squareBorders:u=!1}=t,{onPointerDown:v=r}=t,{onHandleMove:p=r}=t,{onPointerUp:m=r}=t,{onPointerEnter:h=r}=t,{onPointerMove:g=r}=t,{onPointerLeave:f=r}=t,{loadedProgress:b=0}=t,{filledProgress:w=0}=t,{handleProgress:$=0}=t,{ariaLabel:y=''}=t,{ariaValueMin:x}=t,{ariaValueMax:k}=t,{ariaValueNow:V}=t,{ariaValueText:P=''}=t,z=!1;function A(e,t){return s?Math.max(0,Math.min(1,(o.height-(t-o.top))/o.height)):Math.min(Math.max(e-o.x,0),o.width)/o.width}function C(e){return Math.min(Math.max(e-o.x,0),o.width)}return e.$$set=e=>{'className'in e&&i(0,l=e.className),'isHidden'in e&&i(1,a=e.isHidden),'isVertical'in e&&i(2,s=e.isVertical),'isActiveLive'in e&&i(3,c=e.isActiveLive),'isAds'in e&&i(4,d=e.isAds),'squareBorders'in e&&i(5,u=e.squareBorders),'onPointerDown'in e&&i(21,v=e.onPointerDown),'onHandleMove'in e&&i(22,p=e.onHandleMove),'onPointerUp'in e&&i(23,m=e.onPointerUp),'onPointerEnter'in e&&i(24,h=e.onPointerEnter),'onPointerMove'in e&&i(25,g=e.onPointerMove),'onPointerLeave'in e&&i(26,f=e.onPointerLeave),'loadedProgress'in e&&i(6,b=e.loadedProgress),'filledProgress'in e&&i(7,w=e.filledProgress),'handleProgress'in e&&i(8,$=e.handleProgress),'ariaLabel'in e&&i(9,y=e.ariaLabel),'ariaValueMin'in e&&i(10,x=e.ariaValueMin),'ariaValueMax'in e&&i(11,k=e.ariaValueMax),'ariaValueNow'in e&&i(12,V=e.ariaValueNow),'ariaValueText'in e&&i(13,P=e.ariaValueText)},[l,a,s,c,d,u,b,w,$,y,x,k,V,P,n,z,function(e){if(z)return;i(15,z=!0),o=n.getBoundingClientRect();const t=A(e.clientX,e.clientY);v(t),n.setPointerCapture(e.pointerId)},function(e){const t=A(e.clientX,e.clientY),i=C(e.clientX);g(t,i),z&&p(t)},function(e){if(!z)return;i(15,z=!1);const t=A(e.clientX,e.clientY);m(t)},function(e){o=n.getBoundingClientRect();const t=A(e.clientX,e.clientY),i=C(e.clientX);h(t,i)},function(){f()},v,p,m,h,g,f,function(e){D[e?'unshift':'push']((()=>{n=e,i(14,n)}))}]}class et extends ue{constructor(e){super(),de(this,e,Ze,Je,p,{className:0,isHidden:1,isVertical:2,isActiveLive:3,isAds:4,squareBorders:5,onPointerDown:21,onHandleMove:22,onPointerUp:23,onPointerEnter:24,onPointerMove:25,onPointerLeave:26,loadedProgress:6,filledProgress:7,handleProgress:8,ariaLabel:9,ariaValueMin:10,ariaValueMax:11,ariaValueNow:12,ariaValueText:13},Ge)}}function tt(e){k(e,'v-t7t1oe','.icon.v-t7t1oe.v-t7t1oe{display:block;width:24px;height:24px}.icon.v-t7t1oe .cross.v-t7t1oe{visibility:hidden}.icon[data-value=\'off\'].v-t7t1oe .wave1.v-t7t1oe,.icon[data-value=\'off\'].v-t7t1oe .wave2.v-t7t1oe{visibility:hidden}.icon[data-value=\'off\'].v-t7t1oe .cross.v-t7t1oe{visibility:visible}.icon[data-value=\'mid\'].v-t7t1oe .wave2.v-t7t1oe,.icon[data-value=\'min\'].v-t7t1oe .wave2.v-t7t1oe{visibility:hidden}.volumeBar.v-t7t1oe.v-t7t1oe{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.v-t7t1oe.v-t7t1oe{padding:0;width:0}')}function it(e){let t,i,n,o,l,a,s,c,d,p,m,h;return d=new et({props:{className:e[0]?'volumeBar-slider-vertical':'',isHidden:e[0]&&!e[1],isVertical:e[0],onPointerDown:e[6],onHandleMove:e[7],onPointerUp:e[8],onPointerEnter:e[0]?e[9]:r,onPointerLeave:e[0]?e[10]:r,ariaLabel:'Ползунок громкости',ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(100*e[3]),ariaValueText:`${Math.round(100*e[3])}%`,filledProgress:e[3],handleProgress:e[3]}}),{c(){t=A('div'),i=C('svg'),n=C('g'),o=C('path'),l=C('path'),a=C('path'),s=M(),c=A('div'),ae(d.$$.fragment),T(o,'class','wave2 v-t7t1oe'),T(o,'d','M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032zm3-1.99999997c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0 .2637116.26371158.6207023.73969919.9665078 1.43131016.5167785 1.03355701.842501 2.25503497.8892639 3.71655167-.0467629 1.4032299-.3724854 2.6247079-.8892639 3.6582649-.3458055.6916109-.7027962 1.1675985-.9665078 1.4313101-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.1375896-.1375897.3825507-.4642045.638697-.9764971.4071252-.8142505.6673665-1.7901701.7054825-2.8756411-.038116-1.1437578-.2983573-2.11967743-.7054825-2.93392787-.2561463-.51229266-.5011074-.83890747-.638697-.9764971z'),T(l,'class','wave1 v-t7t1oe'),T(l,'d','M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032z'),T(a,'class','cross v-t7t1oe'),T(a,'d','M20 10.7625631l2.3812816-2.38128153c.3417087-.34170876.8957281-.34170876 1.2374368 0 .3417088.34170875.3417088.89572811 0 1.23743686L21.2374369 12l2.3812815 2.3812816c.3417088.3417087.3417088.8957281 0 1.2374368-.3417087.3417088-.8957281.3417088-1.2374368 0L20 13.2374369l-2.3812816 2.3812815c-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368L18.7625631 12l-2.3812815-2.38128157c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0zm-7.019157 8.060199c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545z'),T(n,'fill','#fff'),T(n,'fill-rule','evenodd'),T(i,'xmlns','http://www.w3.org/2000/svg'),T(i,'class','icon v-t7t1oe'),T(i,'data-value',e[2]),T(t,'tabindex','0'),T(t,'role','button'),T(c,'class','volumeBar v-t7t1oe'),j(c,'volumeBar-vertical',e[0])},m(u,g){V(u,t,g),x(t,i),x(i,n),x(n,o),x(n,l),x(n,a),V(u,s,g),V(u,c,g),se(d,c,null),p=!0,m||(h=[L(t,'mouseenter',(function(){v(e[0]?e[11]:r)&&(e[0]?e[11]:r).apply(this,arguments)})),L(t,'mouseleave',(function(){v(e[0]?e[12]:r)&&(e[0]?e[12]:r).apply(this,arguments)})),L(t,'click',e[15])],m=!0)},p(t,[n]){e=t,(!p||4&n)&&T(i,'data-value',e[2]);const o={};1&n&&(o.className=e[0]?'volumeBar-slider-vertical':''),3&n&&(o.isHidden=e[0]&&!e[1]),1&n&&(o.isVertical=e[0]),1&n&&(o.onPointerEnter=e[0]?e[9]:r),1&n&&(o.onPointerLeave=e[0]?e[10]:r),8&n&&(o.ariaValueNow=Math.round(100*e[3])),8&n&&(o.ariaValueText=`${Math.round(100*e[3])}%`),8&n&&(o.filledProgress=e[3]),8&n&&(o.handleProgress=e[3]),d.$set(o),1&n&&j(c,'volumeBar-vertical',e[0])},i(e){p||(ne(d.$$.fragment,e),p=!0)},o(e){oe(d.$$.fragment,e),p=!1},d(e){e&&P(t),e&&P(s),e&&P(c),re(d),m=!1,u(h)}}}function nt(e,t,i){let n,o,{isVerticalVolume:l=!1}=t;const a=be(),s=a.state.volume$;w(e,s,(e=>i(13,n=e)));const r=a.state.muted$;w(e,r,(e=>i(14,o=e)));const c=a.actions.internal.setVolume;let d,u,v,p=!1,m=1,h=!1;function g(){d=window.setTimeout((()=>{h||i(1,p=!1)}),300)}return e.$$set=e=>{'isVerticalVolume'in e&&i(0,l=e.isVerticalVolume)},e.$$.update=()=>{var t;24576&e.$$.dirty&&i(2,(t=n,u=o?'off':t>.5?'max':t>.2?'mid':t>0?'min':'off')),24576&e.$$.dirty&&i(3,v=o?0:n)},[l,p,u,v,s,r,function(e){m=n,c(e)},function(e){c(e)},function(e){c(e,0===e?m:e)},function(){h=!0},function(){h=!1,g()},function(){clearTimeout(d),i(1,p=!0)},function(){g()},n,o,function(t){H.call(this,e,t)}]}class ot extends ue{constructor(e){super(),de(this,e,nt,it,p,{isVerticalVolume:0},tt)}}function lt(e){k(e,'v-1fkqq1h','.container.v-1fkqq1h{display:flex;align-items:center;height:100%;transition:var(--videoplayer-button-hover-transition);will-change:opacity;cursor:pointer;-webkit-tap-highlight-color:transparent}.container.v-1fkqq1h:hover{opacity:0.8}.disabled.v-1fkqq1h{pointer-events:none}')}function at(e){let t,i,n;const o=e[3].default,l=function(e,t,i,n){if(e){const o=$(e,t,i,n);return e[0](o)}}(o,e,e[2],null);return{c(){t=A('div'),l&&l.c(),T(t,'class',i='container '+e[0]+' v-1fkqq1h'),j(t,'disabled',e[1])},m(e,i){V(e,t,i),l&&l.m(t,null),n=!0},p(e,[a]){l&&l.p&&(!n||4&a)&&function(e,t,i,n,o,l){if(o){const a=$(t,i,n,l);e.p(a,o)}}(l,o,e,e[2],n?function(e,t,i,n){if(e[2]&&n){const o=e[2](n(i));if(void 0===t.dirty)return o;if('object'==typeof o){const e=[],i=Math.max(t.dirty.length,o.length);for(let n=0;n<i;n+=1)e[n]=t.dirty[n]|o[n];return e}return t.dirty|o}return t.dirty}(o,e[2],a,null):function(e){if(e.ctx.length>32){const t=[],i=e.ctx.length/32;for(let e=0;e<i;e++)t[e]=-1;return t}return-1}(e[2]),null),(!n||1&a&&i!==(i='container '+e[0]+' v-1fkqq1h'))&&T(t,'class',i),3&a&&j(t,'disabled',e[1])},i(e){n||(ne(l,e),n=!0)},o(e){oe(l,e),n=!1},d(e){e&&P(t),l&&l.d(e)}}}function st(e,t,i){let{$$slots:n={},$$scope:o}=t,{className:l=''}=t,{disabled:a=!1}=t;return e.$$set=e=>{'className'in e&&i(0,l=e.className),'disabled'in e&&i(1,a=e.disabled),'$$scope'in e&&i(2,o=e.$$scope)},[l,a,o,n]}class rt extends ue{constructor(e){super(),de(this,e,st,at,p,{className:0,disabled:1},lt)}}function ct(e){k(e,'v-daygaf','.icon.v-daygaf{display:block;width:24px;height:24px}')}function dt(e){let t;return{c(){t=C('path'),T(t,'class','_enter'),T(t,'d','M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z')},m(e,i){V(e,t,i)},d(e){e&&P(t)}}}function ut(e){let t;return{c(){t=C('path'),T(t,'class','_exit'),T(t,'d','M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z')},m(e,i){V(e,t,i)},d(e){e&&P(t)}}}function vt(e){let t,i,n,o,l;function a(e,t){return e[0]?ut:dt}let s=a(e),c=s(e);return{c(){t=A('div'),i=C('svg'),n=C('g'),c.c(),T(n,'fill','#fff'),T(n,'fill-rule','evenodd'),T(i,'class','icon v-daygaf'),T(i,'xmlns','http://www.w3.org/2000/svg'),T(t,'role','button'),T(t,'tabindex','0')},m(a,s){V(a,t,s),x(t,i),x(i,n),c.m(n,null),o||(l=L(t,'click',e[2]),o=!0)},p(e,[t]){s!==(s=a(e))&&(c.d(1),c=s(e),c&&(c.c(),c.m(n,null)))},i:r,o:r,d(e){e&&P(t),c.d(),o=!1,l()}}}function pt(e,t,i){let n;const o=be().ui.isFullscreen;return w(e,o,(e=>i(0,n=e))),[n,o,function(t){H.call(this,e,t)}]}class mt extends ue{constructor(e){super(),de(this,e,pt,vt,p,{},ct)}}var ht,gt,ft,bt,wt='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z\' fill=\'white\'/%3e%3c/svg%3e',$t='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z\' fill=\'white\'/%3e%3c/svg%3e';function yt(e){k(e,'v-1kcq5gq','.container-mobile.v-1kcq5gq{width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center;position:relative}.icon.v-1kcq5gq{display:block;width:24px;height:24px}.icon-mobile.v-1kcq5gq{position:relative;width:48px;height:48px}.icon-background-mobile.v-1kcq5gq{position:absolute;top:0;left:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);width:100%;height:100%}')}function xt(e){let t,i,n,o,l,a;return{c(){t=A('div'),i=A('img'),g(i.src,n=e[2])||T(i,'src',n),T(i,'class','icon v-1kcq5gq'),T(i,'alt',''),T(t,'class',o=y(e[0])+' v-1kcq5gq'),T(t,'role','button'),T(t,'tabindex','0')},m(n,o){V(n,t,o),x(t,i),l||(a=L(t,'click',(function(){v(e[1])&&e[1].apply(this,arguments)})),l=!0)},p(l,a){e=l,4&a&&!g(i.src,n=e[2])&&T(i,'src',n),1&a&&o!==(o=y(e[0])+' v-1kcq5gq')&&T(t,'class',o)},d(e){e&&P(t),l=!1,a()}}}function kt(e){let t,i,n,o,l,a,s;return{c(){t=A('div'),i=A('div'),n=M(),o=A('img'),T(i,'class','icon-background-mobile v-1kcq5gq'),g(o.src,l=e[2])||T(o,'src',l),T(o,'class','icon-mobile v-1kcq5gq'),T(o,'alt',''),T(t,'class','container-mobile v-1kcq5gq'),T(t,'role','button'),T(t,'tabindex','0')},m(l,r){V(l,t,r),x(t,i),x(t,n),x(t,o),a||(s=L(t,'click',(function(){v(e[1])&&e[1].apply(this,arguments)})),a=!0)},p(t,i){e=t,4&i&&!g(o.src,l=e[2])&&T(o,'src',l)},d(e){e&&P(t),a=!1,s()}}}function Vt(e){let t;function i(e,t){return e[3]?kt:xt}let n=i(e),o=n(e);return{c(){o.c(),t=N()},m(e,i){o.m(e,i),V(e,t,i)},p(e,[l]){n===(n=i(e))&&o?o.p(e,l):(o.d(1),o=n(e),o&&(o.c(),o.m(t.parentNode,t)))},i:r,o:r,d(e){o.d(e),e&&P(t)}}}function Pt(t,i,n){let o,l,a,{isEnded:s}=i,{isAds:r}=i,{playbackState:c}=i,{adPlaybackState:d}=i,{className:u=''}=i,{handlePlayClick:v}=i,{repeatPlaylist:p}=i,{isOneVideoPlaylist:m}=i;const h=be().ui.isMobile;return w(t,h,(e=>n(3,a=e))),t.$$set=e=>{'isEnded'in e&&n(5,s=e.isEnded),'isAds'in e&&n(6,r=e.isAds),'playbackState'in e&&n(7,c=e.playbackState),'adPlaybackState'in e&&n(8,d=e.adPlaybackState),'className'in e&&n(0,u=e.className),'handlePlayClick'in e&&n(9,v=e.handlePlayClick),'repeatPlaylist'in e&&n(10,p=e.repeatPlaylist),'isOneVideoPlaylist'in e&&n(11,m=e.isOneVideoPlaylist)},t.$$.update=()=>{480&t.$$.dirty&&n(2,o=r?function(e){return e===bt.PLAYING?$t:wt}(d):function(t,i){return i?'data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.668.668 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6v3.096z\' fill=\'white\'/%3e%3c/svg%3e':t===e.PlaybackState.PLAYING?$t:wt}(c,s)),3680&t.$$.dirty&&n(1,l=r||!s||m?v:p)},[u,l,o,a,h,s,r,c,d,v,p,m]}!function(e){e.AUTO='auto'}(ht||(ht={})),function(e){e.Thumb='thumb',e.Video='video',e.Ads='ads',e.Crashed='crashed'}(gt||(gt={})),function(e){e.Preroll='preroll',e.Midroll='midroll',e.Postroll='postroll'}(ft||(ft={})),function(e){e.INACTIVE='inactive',e.PLAYING='playing',e.PAUSED='paused'}(bt||(bt={}));class zt extends ue{constructor(e){super(),de(this,e,Pt,Vt,p,{isEnded:5,isAds:6,playbackState:7,adPlaybackState:8,className:0,handlePlayClick:9,repeatPlaylist:10,isOneVideoPlaylist:11},yt)}}var At='data:image/svg+xml,%3csvg width=\'26\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e';function Ct(e){k(e,'v-1tmb7ku','.container-mobile-prev.v-1tmb7ku{margin-right:12px}.container-mobile-next.v-1tmb7ku{margin-right:12px}.disabled.v-1tmb7ku{opacity:0.4;pointer-events:none}.icon.v-1tmb7ku{display:block;height:24px}.icon-mobile.v-1tmb7ku{height:32px}.icon-prev.v-1tmb7ku{transform:scaleX(-1)}')}function St(e){let t,i,n,o,l;return{c(){t=A('div'),i=A('img'),T(i,'class','icon v-1tmb7ku'),g(i.src,n=At)||T(i,'src','data:image/svg+xml,%3csvg width=\'26\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),T(i,'alt',''),j(i,'icon-prev','prev'===e[1]),T(t,'role','button'),T(t,'tabindex','0'),T(t,'class','v-1tmb7ku'),j(t,'disabled',e[0])},m(n,a){V(n,t,a),x(t,i),o||(l=L(t,'click',e[5]),o=!0)},p(e,n){2&n&&j(i,'icon-prev','prev'===e[1]),1&n&&j(t,'disabled',e[0])},d(e){e&&P(t),o=!1,l()}}}function Mt(e){let t,i,n,o,l;return{c(){t=A('div'),i=A('img'),T(i,'class','icon-mobile v-1tmb7ku'),g(i.src,n=At)||T(i,'src','data:image/svg+xml,%3csvg width=\'26\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),T(i,'alt',''),j(i,'icon-prev','prev'===e[1]),T(t,'role','button'),T(t,'tabindex','0'),T(t,'class','v-1tmb7ku'),j(t,'container-mobile-prev','prev'===e[1]),j(t,'container-mobile-next','next'===e[1]),j(t,'disabled',e[0])},m(n,a){V(n,t,a),x(t,i),o||(l=L(t,'click',e[4]),o=!0)},p(e,n){2&n&&j(i,'icon-prev','prev'===e[1]),2&n&&j(t,'container-mobile-prev','prev'===e[1]),2&n&&j(t,'container-mobile-next','next'===e[1]),1&n&&j(t,'disabled',e[0])},d(e){e&&P(t),o=!1,l()}}}function Nt(e){let t;function i(e,t){return e[2]?Mt:St}let n=i(e),o=n(e);return{c(){o.c(),t=N()},m(e,i){o.m(e,i),V(e,t,i)},p(e,[l]){n===(n=i(e))&&o?o.p(e,l):(o.d(1),o=n(e),o&&(o.c(),o.m(t.parentNode,t)))},i:r,o:r,d(e){o.d(e),e&&P(t)}}}function Lt(e,t,i){let n,{disabled:o=!1}=t,{type:l}=t;const a=be().ui.isMobile;return w(e,a,(e=>i(2,n=e))),e.$$set=e=>{'disabled'in e&&i(0,o=e.disabled),'type'in e&&i(1,l=e.type)},[o,l,n,a,function(t){H.call(this,e,t)},function(t){H.call(this,e,t)}]}class qt extends ue{constructor(e){super(),de(this,e,Lt,Nt,p,{disabled:0,type:1},Ct)}}var Tt='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265zM6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197H6z\' fill=\'white\'/%3e%3c/svg%3e';function Et(e){k(e,'v-j4644b','.no-hover.v-j4644b{pointer-events:none}.icon.v-j4644b{display:block;width:24px;height:24px}')}function Bt(e){let t,i;return{c(){t=A('img'),g(t.src,i=Tt)||T(t,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265zM6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197H6z\' fill=\'white\'/%3e%3c/svg%3e'),T(t,'class','icon v-j4644b'),T(t,'alt','')},m(e,i){V(e,t,i)},p:r,d(e){e&&P(t)}}}function jt(e){let t,i,n,o,l;return{c(){t=A('a'),i=A('img'),g(i.src,n=Tt)||T(i,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265zM6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197H6z\' fill=\'white\'/%3e%3c/svg%3e'),T(i,'class','icon v-j4644b'),T(i,'alt',''),T(t,'href','https://vk.com/video'),T(t,'target','_blank')},m(n,a){V(n,t,a),x(t,i),o||(l=L(t,'click',e[2]),o=!0)},p:r,d(e){e&&P(t),o=!1,l()}}}function It(e){let t,i;function n(e,t){return e[1]?jt:Bt}let o=n(e),l=o(e);return{c(){t=A('div'),l.c(),T(t,'class',i=y(e[0])+' v-j4644b'),T(t,'role','button'),T(t,'tabindex','0'),j(t,'no-hover',!e[1])},m(e,i){V(e,t,i),l.m(t,null)},p(e,[a]){o===(o=n(e))&&l?l.p(e,a):(l.d(1),l=o(e),l&&(l.c(),l.m(t,null))),1&a&&i!==(i=y(e[0])+' v-j4644b')&&T(t,'class',i),3&a&&j(t,'no-hover',!e[1])},i:r,o:r,d(e){e&&P(t),l.d()}}}function Ft(e,t,i){let{className:n=''}=t,{logoClickable:o=!1}=t;return e.$$set=e=>{'className'in e&&i(0,n=e.className),'logoClickable'in e&&i(1,o=e.logoClickable)},[n,o,function(t){H.call(this,e,t)}]}class Rt extends ue{constructor(e){super(),de(this,e,Ft,It,p,{className:0,logoClickable:1},Et)}}function Ht(e){k(e,'v-1gdbwrb','.icon.v-1gdbwrb{display:block;width:24px;height:24px}.wave.v-1gdbwrb{animation-duration:1s;animation-iteration-count:infinite}.wave1.v-1gdbwrb{animation-name:v-1gdbwrb-wave1}.wave2.v-1gdbwrb{animation-name:v-1gdbwrb-wave2}.wave3.v-1gdbwrb{animation-name:v-1gdbwrb-wave3}@keyframes v-1gdbwrb-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}')}function _t(t){let i,n,o,l;function a(t,i){return t[1]===e.ChromecastState.AVAILABLE?Ot:t[1]===e.ChromecastState.CONNECTED?Ut:t[1]===e.ChromecastState.CONNECTING?Dt:void 0}let s=a(t),r=s&&s(t);return{c(){i=A('div'),r&&r.c(),T(i,'class',n=y(t[0])+' v-1gdbwrb'),T(i,'role','button'),T(i,'tabindex','0')},m(e,n){V(e,i,n),r&&r.m(i,null),o||(l=L(i,'click',t[4]),o=!0)},p(e,t){s!==(s=a(e))&&(r&&r.d(1),r=s&&s(e),r&&(r.c(),r.m(i,null))),1&t&&n!==(n=y(e[0])+' v-1gdbwrb')&&T(i,'class',n)},d(e){e&&P(i),r&&r.d(),o=!1,l()}}}function Dt(e){let t,i,n,o,l,a,s;return{c(){t=C('svg'),i=C('g'),n=C('path'),o=C('path'),l=C('path'),a=C('path'),s=C('path'),T(n,'class','wave wave1 v-1gdbwrb'),T(n,'d','M1 18v3h3c0-1.66-1.34-3-3-3z'),T(n,'opacity','.3'),T(n,'fill','#fff'),T(o,'class','wave wave2 v-1gdbwrb'),T(o,'d','M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z'),T(o,'opacity','.3'),T(o,'fill','#fff'),T(l,'class','wave wave3 v-1gdbwrb'),T(l,'d','M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z'),T(l,'opacity','.3'),T(l,'fill','#fff'),T(a,'d','M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z'),T(a,'fill','#fff'),T(s,'d','M0 0h24v24H0z'),T(i,'fill','none'),T(i,'fill-rule','evenodd'),T(t,'class','icon v-1gdbwrb'),T(t,'width','22'),T(t,'height','22'),T(t,'viewBox','0 0 24 24'),T(t,'xmlns','http://www.w3.org/2000/svg')},m(e,r){V(e,t,r),x(t,i),x(i,n),x(i,o),x(i,l),x(i,a),x(i,s)},d(e){e&&P(t)}}}function Ut(e){let t,i,n,o;return{c(){t=C('svg'),i=C('g'),n=C('path'),o=C('path'),T(n,'d','M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2a9 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'),T(n,'fill','#fff'),T(o,'d','M0 0h24v24H0z'),T(i,'fill','none'),T(i,'fill-rule','evenodd'),T(t,'class','icon v-1gdbwrb'),T(t,'width','22'),T(t,'height','22'),T(t,'viewBox','0 0 24 24'),T(t,'xmlns','http://www.w3.org/2000/svg')},m(e,l){V(e,t,l),x(t,i),x(i,n),x(i,o)},d(e){e&&P(t)}}}function Ot(e){let t,i,n,o;return{c(){t=C('svg'),i=C('g'),n=C('path'),o=C('path'),T(n,'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'),T(n,'fill','#fff'),T(o,'d','M0 0h24v24H0z'),T(i,'fill','none'),T(i,'fill-rule','evenodd'),T(t,'class','icon v-1gdbwrb'),T(t,'width','22'),T(t,'height','22'),T(t,'viewBox','0 0 24 24'),T(t,'xmlns','http://www.w3.org/2000/svg')},m(e,l){V(e,t,l),x(t,i),x(i,n),x(i,o)},d(e){e&&P(t)}}}function Qt(t){let i,n=t[1]!==e.ChromecastState.NOT_AVAILABLE&&_t(t);return{c(){n&&n.c(),i=N()},m(e,t){n&&n.m(e,t),V(e,i,t)},p(t,[o]){t[1]!==e.ChromecastState.NOT_AVAILABLE?n?n.p(t,o):(n=_t(t),n.c(),n.m(i.parentNode,i)):n&&(n.d(1),n=null)},i:r,o:r,d(e){n&&n.d(e),e&&P(i)}}}function Wt(e,t,i){let n,{className:o=''}=t;const l=be().state.chromecastState$;let a;return w(e,l,(e=>i(3,n=e))),e.$$set=e=>{'className'in e&&i(0,o=e.className)},e.$$.update=()=>{8&e.$$.dirty&&i(1,a=n)},[o,a,l,n,function(t){H.call(this,e,t)}]}class Kt extends ue{constructor(e){super(),de(this,e,Wt,Qt,p,{className:0},Ht)}}function Yt(e){k(e,'v-rwtbzf','.icon.v-rwtbzf{display:block;width:42px;height:20px}')}function Xt(e){let t,i,n,o,l;return{c(){t=A('div'),i=A('img'),g(i.src,n=e[0])||T(i,'src',n),T(i,'class','icon v-rwtbzf'),T(i,'alt',''),T(t,'role','button'),T(t,'tabindex','0')},m(n,a){V(n,t,a),x(t,i),o||(l=L(t,'click',e[2]),o=!0)},p(e,[t]){1&t&&!g(i.src,n=e[0])&&T(i,'src',n)},i:r,o:r,d(e){e&&P(t),o=!1,l()}}}function Gt(e,t,i){let{isActiveLive:n=!1}=t,o='';return e.$$set=e=>{'isActiveLive'in e&&i(1,n=e.isActiveLive)},e.$$.update=()=>{2&e.$$.dirty&&i(0,o=n?'data:image/svg+xml,%3csvg width=\'42\' height=\'20\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3crect width=\'42\' height=\'20\' rx=\'5\' fill=\'%23FF3347\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1zm7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0V6zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2h-4zm-8.325 9.31-2.55-7.824a.993.993 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a.993.993 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z\' fill=\'%23F2F3F5\'/%3e%3c/svg%3e':'data:image/svg+xml,%3csvg viewBox=\'0 0 42 20\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M6.41 1A6.46 6.46 0 0 0 3 1.55 3.52 3.52 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.52 3.52 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.52 3.52 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.52 3.52 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z\' fill=\'none\' stroke=\'white\' stroke-width=\'2\'/%3e%3cpath d=\'M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.49.49 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.49.49 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.89.89 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.89.89 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9z\' fill=\'%23f0f2f5\' fill-rule=\'evenodd\'/%3e%3c/svg%3e')},[o,n,function(t){H.call(this,e,t)}]}class Jt extends ue{constructor(e){super(),de(this,e,Gt,Xt,p,{isActiveLive:1},Yt)}}var Zt='data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'24\' height=\'24\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath fill=\'white\' d=\'M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765l.93-.895Zm2.88-2.77 1.704-1.642A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z\'/%3e%3c/g%3e%3c/svg%3e',ei='data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'24\' height=\'24\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath fill=\'white\' fill-rule=\'nonzero\' d=\'M21.657 17.657a.9.9 0 1 1-1.273-1.273 6.2 6.2 0 0 0 0-8.768.9.9 0 1 1 1.273-1.273 8 8 0 0 1 0 11.314ZM19.11 15.11a.9.9 0 0 1-1.273-1.273 2.6 2.6 0 0 0 0-3.676.9.9 0 1 1 1.273-1.273 4.4 4.4 0 0 1 0 6.222ZM5 15a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765l5.514-5.307A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5Z\'/%3e%3c/g%3e%3c/svg%3e';function ti(e){k(e,'v-dsbe5p','.container.v-dsbe5p{display:flex;height:32px;align-items:center;padding:0 8px}.expanded.v-dsbe5p{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.icon.v-dsbe5p{width:24px;height:24px}.text.v-dsbe5p{font-size:15px;margin-left:8px}')}function ii(e){let t;return{c(){t=A('span'),t.textContent='Включить звук',T(t,'class','text v-dsbe5p')},m(e,i){V(e,t,i)},d(e){e&&P(t)}}}function ni(e){let t,i,n,o,l,a,s=e[0]&&ii();return{c(){t=A('div'),i=A('img'),o=M(),s&&s.c(),g(i.src,n=e[0]?ei:Zt)||T(i,'src',n),T(i,'class','icon v-dsbe5p'),T(i,'alt',''),T(t,'class','container v-dsbe5p'),j(t,'expanded',e[0])},m(n,r){V(n,t,r),x(t,i),x(t,o),s&&s.m(t,null),l||(a=L(t,'click',e[1]),l=!0)},p(e,[o]){1&o&&!g(i.src,n=e[0]?ei:Zt)&&T(i,'src',n),e[0]?s||(s=ii(),s.c(),s.m(t,null)):s&&(s.d(1),s=null),1&o&&j(t,'expanded',e[0])},i:r,o:r,d(e){e&&P(t),s&&s.d(),l=!1,a()}}}function oi(e,t,i){let{expanded:n=!1}=t;return e.$$set=e=>{'expanded'in e&&i(0,n=e.expanded)},[n,function(t){H.call(this,e,t)}]}class li extends ue{constructor(e){super(),de(this,e,oi,ni,p,{expanded:0},ti)}}function ai(e){k(e,'v-1bwjmdb','.tooltip-wrapper.v-1bwjmdb{position:relative;display:block}.tooltip.v-1bwjmdb{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.tooltip.v-1bwjmdb: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)}.content.v-1bwjmdb{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-1bwjmdb{opacity:1;visibility:visible}')}function si(e){let t,i,n,o,l;return{c(){t=A('div'),i=A('div'),n=A('div'),o=S(e[0]),T(n,'class','content v-1bwjmdb'),T(i,'class','tooltip v-1bwjmdb'),j(i,'active',e[1]),T(t,'class','tooltip-wrapper v-1bwjmdb'),T(t,'style',l=`transform: translate(${e[2]}px, ${e[3]}px);`)},m(e,l){V(e,t,l),x(t,i),x(i,n),x(n,o)},p(e,[n]){1&n&&E(o,e[0]),2&n&&j(i,'active',e[1]),12&n&&l!==(l=`transform: translate(${e[2]}px, ${e[3]}px);`)&&T(t,'style',l)},i:r,o:r,d(e){e&&P(t)}}}function ri(e,t,i){let{content:n=''}=t,{active:o=!1}=t,{translateXPx:l=0}=t,{translateYPx:a=0}=t;return e.$$set=e=>{'content'in e&&i(0,n=e.content),'active'in e&&i(1,o=e.active),'translateXPx'in e&&i(2,l=e.translateXPx),'translateYPx'in e&&i(3,a=e.translateYPx)},[n,o,l,a]}class ci extends ue{constructor(e){super(),de(this,e,ri,si,p,{content:0,active:1,translateXPx:2,translateYPx:3},ai)}}function di(e){let t,i;return t=new ci({props:{content:e[5],active:e[4],translateXPx:e[6],translateYPx:-16}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};32&i&&(n.content=e[5]),16&i&&(n.active=e[4]),64&i&&(n.translateXPx=e[6]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function ui(e){let t,i,n,o=(!e[8]||e[8]&&e[7])&&di(e);return i=new et({props:{isActiveLive:e[9],ariaLabel:'Ползунок временной шкалы',ariaValueMin:0,ariaValueMax:e[0],ariaValueNow:Math.round(100*e[3]),ariaValueText:`${e[2]} (общая длительность ${e[1]})`,loadedProgress:e[10],filledProgress:e[3],handleProgress:e[3],onPointerDown:e[17],onHandleMove:e[18],onPointerMove:e[21],onPointerUp:e[19],onPointerEnter:e[20],onPointerLeave:e[22]}}),{c(){o&&o.c(),t=M(),ae(i.$$.fragment)},m(e,l){o&&o.m(e,l),V(e,t,l),se(i,e,l),n=!0},p(e,[n]){!e[8]||e[8]&&e[7]?o?(o.p(e,n),384&n&&ne(o,1)):(o=di(e),o.c(),ne(o,1),o.m(t.parentNode,t)):o&&(te(),oe(o,1,1,(()=>{o=null})),ie());const l={};512&n&&(l.isActiveLive=e[9]),1&n&&(l.ariaValueMax=e[0]),8&n&&(l.ariaValueNow=Math.round(100*e[3])),6&n&&(l.ariaValueText=`${e[2]} (общая длительность ${e[1]})`),1024&n&&(l.loadedProgress=e[10]),8&n&&(l.filledProgress=e[3]),8&n&&(l.handleProgress=e[3]),i.$set(l)},i(e){n||(ne(o),ne(i.$$.fragment,e),n=!0)},o(e){oe(o),oe(i.$$.fragment,e),n=!1},d(e){o&&o.d(e),e&&P(t),re(i,e)}}}function vi(e,t,i){let n,o,l,a,s,r;const c=be(),d=c.state.bufferedProgress$;w(e,d,(e=>i(10,r=e)));const u=c.state.positionWithScrubbing$;w(e,u,(e=>i(23,l=e)));const v=c.state.duration$;w(e,v,(e=>i(0,o=e)));const p=c.state.isLive$;w(e,p,(e=>i(7,n=e)));const m=c.state.isActiveLive$;w(e,m,(e=>i(9,s=e)));const h=c.ui.isMobile;let g,f,b;w(e,h,(e=>i(8,a=e)));let $=!1,y='',x=0;function k(e,t){i(6,x=t),i(5,y=function(e){const t=Oe((n?1-e:e)*o);return n?`-${t}`:t}(e))}return e.$$.update=()=>{1&e.$$.dirty&&i(1,g=Oe(o)),8388608&e.$$.dirty&&i(2,f=Oe(l)),8388609&e.$$.dirty&&i(3,b=l/o)},[o,g,f,b,$,y,x,n,a,s,r,d,u,v,p,m,h,function(e){c.actions.internal.startScrubbing(e)},function(e){c.actions.internal.progressScrubbing(e)},function(e){c.actions.internal.completeScrubbing(e)},function(e,t){k(e,t),i(4,$=!0)},function(e,t){k(e,t)},function(){i(4,$=!1)},l]}class pi extends ue{constructor(e){super(),de(this,e,vi,ui,p,{})}}function mi(e){let t,i;return t=new et({props:{ariaValueMin:0,ariaValueMax:e[0],ariaValueNow:Math.round(100*e[3]),ariaValueText:`${e[2]} (общая длительность ${e[1]})`,filledProgress:e[3],isAds:!0,squareBorders:e[4]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,[i]){const n={};1&i&&(n.ariaValueMax=e[0]),8&i&&(n.ariaValueNow=Math.round(100*e[3])),6&i&&(n.ariaValueText=`${e[2]} (общая длительность ${e[1]})`),8&i&&(n.filledProgress=e[3]),16&i&&(n.squareBorders=e[4]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function hi(e,t,i){let n,{position:o=0}=t,{duration:l=0}=t;const a=be().ui.isMobile;let s,r,c;return w(e,a,(e=>i(4,n=e))),e.$$set=e=>{'position'in e&&i(6,o=e.position),'duration'in e&&i(0,l=e.duration)},e.$$.update=()=>{1&e.$$.dirty&&i(1,s=Oe(l)),64&e.$$.dirty&&i(2,r=Oe(o)),65&e.$$.dirty&&i(3,c=o/l)},[l,s,r,c,n,a,o]}class gi extends ue{constructor(e){super(),de(this,e,hi,mi,p,{position:6,duration:0})}}function fi(e){k(e,'v-17msmwz','.timeline.v-17msmwz{display:flex;align-items:center;width:100%;min-width:86px;margin:0 6px}.timeline-stub.v-17msmwz{width:100%;min-width:20px}')}function bi(e){let t;return{c(){t=A('div'),T(t,'class','timeline-stub v-17msmwz')},m(e,i){V(e,t,i)},p:r,i:r,o:r,d(e){e&&P(t)}}}function wi(e){let t,i,n,o,l;const a=[yi,$i],s=[];function r(e,t){return e[0]?0:1}return i=r(e),n=s[i]=a[i](e),{c(){t=A('div'),n.c(),T(t,'class',o='timeline '+e[1]+' v-17msmwz')},m(e,n){V(e,t,n),s[i].m(t,null),l=!0},p(e,c){let d=i;i=r(e),i===d?s[i].p(e,c):(te(),oe(s[d],1,1,(()=>{s[d]=null})),ie(),n=s[i],n?n.p(e,c):(n=s[i]=a[i](e),n.c()),ne(n,1),n.m(t,null)),(!l||2&c&&o!==(o='timeline '+e[1]+' v-17msmwz'))&&T(t,'class',o)},i(e){l||(ne(n),l=!0)},o(e){oe(n),l=!1},d(e){e&&P(t),s[i].d()}}}function $i(e){let t,i;return t=new pi({}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p:r,i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function yi(e){let t,i;return t=new gi({props:{position:e[3],duration:e[4]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};8&i&&(n.position=e[3]),16&i&&(n.duration=e[4]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function xi(e){let t,i,n,o;const l=[wi,bi],a=[];function s(e,t){return e[2]?0:1}return t=s(e),i=a[t]=l[t](e),{c(){i.c(),n=N()},m(e,i){a[t].m(e,i),V(e,n,i),o=!0},p(e,[o]){let r=t;t=s(e),t===r?a[t].p(e,o):(te(),oe(a[r],1,1,(()=>{a[r]=null})),ie(),i=a[t],i?i.p(e,o):(i=a[t]=l[t](e),i.c()),ne(i,1),i.m(n.parentNode,n))},i(e){o||(ne(i),o=!0)},o(e){oe(i),o=!1},d(e){a[t].d(e),e&&P(n)}}}function ki(e,t,i){let n,o,l,{isAds:a=!1}=t,{canRewindLive:s}=t,{isHidden:r=!1}=t,{className:c=''}=t;const d=be(),u=d.state.isLive$;w(e,u,(e=>i(10,n=e)));const v=d.ads.duration;w(e,v,(e=>i(4,l=e)));const p=d.ads.position;let m;return w(e,p,(e=>i(3,o=e))),e.$$set=e=>{'isAds'in e&&i(0,a=e.isAds),'canRewindLive'in e&&i(8,s=e.canRewindLive),'isHidden'in e&&i(9,r=e.isHidden),'className'in e&&i(1,c=e.className)},e.$$.update=()=>{1793&e.$$.dirty&&i(2,m=!r&&(!n||n&&s||a))},[a,c,m,o,l,u,v,p,s,r,n]}class Vi extends ue{constructor(e){super(),de(this,e,ki,xi,p,{isAds:0,canRewindLive:8,isHidden:9,className:1},fi)}}function Pi(e){k(e,'v-1qfxnal','.wrapper-bottom.v-1qfxnal.v-1qfxnal{position:absolute;width:100%;bottom:0;left:0;height:var(--videoplayer-controls-gradient-height);background:linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(0, 0, 0, 0.02) 19%,\n rgba(0, 0, 0, 0.10) 34%,\n rgba(0, 0, 0, 0.40) 60%,\n rgba(0, 0, 0, 0.60) 100%\n );transition:transform var(--videoplayer-controls-transition-duration)\n var(--videoplayer-controls-transition-fn)}.wrapper-bottom.ads-timeline-mobile.v-1qfxnal.v-1qfxnal{height:5px}.wrapper-middle.v-1qfxnal.v-1qfxnal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.v-1qfxnal.v-1qfxnal{position:absolute;top:16px;right:16px;transition:opacity var(--videoplayer-controls-transition-duration);display:flex}.wrapper-top-left.v-1qfxnal.v-1qfxnal{position:absolute;top:12px;left:12px}.controls.v-1qfxnal.v-1qfxnal{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;height:var(--videoplayer-controls-height);white-space:nowrap;font-size:13px;transition:transform var(--videoplayer-controls-transition-duration)\n var(--videoplayer-controls-transition-fn);will-change:transform;padding:0 16px;box-sizing:border-box}.controls-element+.controls-element{padding-left:8px}.hidden.v-1qfxnal.v-1qfxnal{visibility:hidden;opacity:0}.controls-hidden.v-1qfxnal.v-1qfxnal{visibility:visible;transform:translateY(100%)}.settings-desktop.v-1qfxnal.v-1qfxnal{bottom:42px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}.settings-mobile.v-1qfxnal.v-1qfxnal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.v-1qfxnal.v-1qfxnal{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--videoplayer-controls-transition-duration)}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .controls.v-1qfxnal{--videoplayer-controls-height:50px;font-size:16px}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .ui-time{padding-left:20px;padding-right:15px}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .controls-play-button{padding-left:20px;padding-right:11px}.mobile-top-right-button+.mobile-top-right-button{margin-left:24px}@media screen and (orientation: portrait){.wrapper-top-right.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{top:36px}.wrapper-top-left.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{top:32px}.controls.controls-fullscreen-mobile.v-1qfxnal.v-1qfxnal{bottom:36px}}@media screen and (orientation: landscape){.wrapper-top-left.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{left:32px}.wrapper-top-right.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{right:36px}.controls.controls-fullscreen-mobile.v-1qfxnal.v-1qfxnal{left:20px;right:20px;bottom:24px}}')}function zi(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m=e[28]&&Ai(e);a=new Ue({props:{className:'mobile-top-right-button'}});let h=!e[6]&&Ci(e),g=e[7]&&Si(e);u=new zt({props:{playbackState:e[31],adPlaybackState:e[32],isAds:e[3],handlePlayClick:e[41],repeatPlaylist:e[14],isEnded:e[33],isOneVideoPlaylist:e[10]}});let f=e[7]&&Mi(e);return{c(){t=A('div'),i=M(),n=A('div'),m&&m.c(),o=M(),l=A('div'),ae(a.$$.fragment),s=M(),h&&h.c(),r=M(),c=A('div'),g&&g.c(),d=M(),ae(u.$$.fragment),v=M(),f&&f.c(),T(t,'class','overlay-mobile v-1qfxnal'),j(t,'hidden',!e[26]),T(n,'class','wrapper-top-left v-1qfxnal'),j(n,'hidden',!e[2]),j(n,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),T(l,'class','wrapper-top-right v-1qfxnal'),j(l,'hidden',!e[2]),j(l,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),T(c,'class','wrapper-middle v-1qfxnal'),j(c,'hidden',!e[2]||e[30])},m(e,b){V(e,t,b),V(e,i,b),V(e,n,b),m&&m.m(n,null),V(e,o,b),V(e,l,b),se(a,l,null),x(l,s),h&&h.m(l,null),V(e,r,b),V(e,c,b),g&&g.m(c,null),x(c,d),se(u,c,null),x(c,v),f&&f.m(c,null),p=!0},p(e,i){67108864&i[0]&&j(t,'hidden',!e[26]),e[28]?m?(m.p(e,i),268435456&i[0]&&ne(m,1)):(m=Ai(e),m.c(),ne(m,1),m.m(n,null)):m&&(te(),oe(m,1,1,(()=>{m=null})),ie()),4&i[0]&&j(n,'hidden',!e[2]),134479872&i[0]&&j(n,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),e[6]?h&&(te(),oe(h,1,1,(()=>{h=null})),ie()):h?(h.p(e,i),64&i[0]&&ne(h,1)):(h=Ci(e),h.c(),ne(h,1),h.m(l,null)),4&i[0]&&j(l,'hidden',!e[2]),134479872&i[0]&&j(l,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),e[7]?g?(g.p(e,i),128&i[0]&&ne(g,1)):(g=Si(e),g.c(),ne(g,1),g.m(c,d)):g&&(te(),oe(g,1,1,(()=>{g=null})),ie());const o={};1&i[1]&&(o.playbackState=e[31]),2&i[1]&&(o.adPlaybackState=e[32]),8&i[0]&&(o.isAds=e[3]),16384&i[0]&&(o.repeatPlaylist=e[14]),4&i[1]&&(o.isEnded=e[33]),1024&i[0]&&(o.isOneVideoPlaylist=e[10]),u.$set(o),e[7]?f?(f.p(e,i),128&i[0]&&ne(f,1)):(f=Mi(e),f.c(),ne(f,1),f.m(c,null)):f&&(te(),oe(f,1,1,(()=>{f=null})),ie()),1073741828&i[0]&&j(c,'hidden',!e[2]||e[30])},i(e){p||(ne(m),ne(a.$$.fragment,e),ne(h),ne(g),ne(u.$$.fragment,e),ne(f),p=!0)},o(e){oe(m),oe(a.$$.fragment,e),oe(h),oe(g),oe(u.$$.fragment,e),oe(f),p=!1},d(e){e&&P(t),e&&P(i),e&&P(n),m&&m.d(),e&&P(o),e&&P(l),re(a),h&&h.d(),e&&P(r),e&&P(c),g&&g.d(),re(u),f&&f.d()}}}function Ai(e){let t,i;return t=new li({props:{expanded:e[29]}}),t.$on('click',e[62]),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};536870912&i[0]&&(n.expanded=e[29]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Ci(e){let t,i;return t=new Rt({props:{className:'mobile-top-right-button',logoClickable:e[5]}}),t.$on('click',e[42]),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};32&i[0]&&(n.logoClickable=e[5]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Si(e){let t,i;return t=new qt({props:{type:'prev',disabled:!e[9]}}),t.$on('click',(function(){v(e[13])&&e[13].apply(this,arguments)})),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(i,n){e=i;const o={};512&n[0]&&(o.disabled=!e[9]),t.$set(o)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Mi(e){let t,i;return t=new qt({props:{type:'next',disabled:!e[8]}}),t.$on('click',(function(){v(e[12])&&e[12].apply(this,arguments)})),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(i,n){e=i;const o={};256&n[0]&&(o.disabled=!e[8]),t.$set(o)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Ni(e){let t,i,n,o,l,a=e[28]&&Li(e),s=e[32]===bt.PAUSED&&qi(e);return o=new gi({props:{position:e[34],duration:e[35]}}),{c(){a&&a.c(),t=M(),s&&s.c(),i=M(),n=A('div'),ae(o.$$.fragment),T(n,'class','wrapper-bottom ads-timeline-mobile v-1qfxnal')},m(e,r){a&&a.m(e,r),V(e,t,r),s&&s.m(e,r),V(e,i,r),V(e,n,r),se(o,n,null),l=!0},p(e,n){e[28]?a?(a.p(e,n),268435456&n[0]&&ne(a,1)):(a=Li(e),a.c(),ne(a,1),a.m(t.parentNode,t)):a&&(te(),oe(a,1,1,(()=>{a=null})),ie()),e[32]===bt.PAUSED?s?(s.p(e,n),2&n[1]&&ne(s,1)):(s=qi(e),s.c(),ne(s,1),s.m(i.parentNode,i)):s&&(te(),oe(s,1,1,(()=>{s=null})),ie());const l={};8&n[1]&&(l.position=e[34]),16&n[1]&&(l.duration=e[35]),o.$set(l)},i(e){l||(ne(a),ne(s),ne(o.$$.fragment,e),l=!0)},o(e){oe(a),oe(s),oe(o.$$.fragment,e),l=!1},d(e){a&&a.d(e),e&&P(t),s&&s.d(e),e&&P(i),e&&P(n),re(o)}}}function Li(e){let t,i,n;return i=new li({props:{expanded:!1}}),i.$on('click',e[62]),{c(){t=A('div'),ae(i.$$.fragment),T(t,'class','wrapper-top-right v-1qfxnal')},m(e,o){V(e,t,o),se(i,t,null),n=!0},p:r,i(e){n||(ne(i.$$.fragment,e),n=!0)},o(e){oe(i.$$.fragment,e),n=!1},d(e){e&&P(t),re(i)}}}function qi(e){let t,i,n;return i=new zt({props:{playbackState:e[31],adPlaybackState:e[32],isAds:!0,handlePlayClick:e[41],repeatPlaylist:r,isEnded:!1,isOneVideoPlaylist:!1}}),{c(){t=A('div'),ae(i.$$.fragment),T(t,'class','wrapper-middle v-1qfxnal')},m(e,o){V(e,t,o),se(i,t,null),n=!0},p(e,t){const n={};1&t[1]&&(n.playbackState=e[31]),2&t[1]&&(n.adPlaybackState=e[32]),i.$set(n)},i(e){n||(ne(i.$$.fragment,e),n=!0)},o(e){oe(i.$$.fragment,e),n=!1},d(e){e&&P(t),re(i)}}}function Ti(e){let t,i,n,o,l,a=e[7]&&!e[3]&&Ei(e);i=new rt({props:{className:'controls-element',$$slots:{default:[ji]},$$scope:{ctx:e}}});let s=e[7]&&!e[3]&&Ii(e);return{c(){a&&a.c(),t=M(),ae(i.$$.fragment),n=M(),s&&s.c(),o=N()},m(e,r){a&&a.m(e,r),V(e,t,r),se(i,e,r),V(e,n,r),s&&s.m(e,r),V(e,o,r),l=!0},p(e,n){e[7]&&!e[3]?a?(a.p(e,n),136&n[0]&&ne(a,1)):(a=Ei(e),a.c(),ne(a,1),a.m(t.parentNode,t)):a&&(te(),oe(a,1,1,(()=>{a=null})),ie());const l={};17416&n[0]|7&n[1]|16&n[2]&&(l.$$scope={dirty:n,ctx:e}),i.$set(l),e[7]&&!e[3]?s?(s.p(e,n),136&n[0]&&ne(s,1)):(s=Ii(e),s.c(),ne(s,1),s.m(o.parentNode,o)):s&&(te(),oe(s,1,1,(()=>{s=null})),ie())},i(e){l||(ne(a),ne(i.$$.fragment,e),ne(s),l=!0)},o(e){oe(a),oe(i.$$.fragment,e),oe(s),l=!1},d(e){a&&a.d(e),e&&P(t),re(i,e),e&&P(n),s&&s.d(e),e&&P(o)}}}function Ei(e){let t,i;return t=new rt({props:{className:'controls-element',disabled:!e[9],$$slots:{default:[Bi]},$$scope:{ctx:e}}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};512&i[0]&&(n.disabled=!e[9]),8704&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Bi(e){let t,i;return t=new qt({props:{type:'prev',disabled:!e[9]}}),t.$on('click',(function(){v(e[13])&&e[13].apply(this,arguments)})),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(i,n){e=i;const o={};512&n[0]&&(o.disabled=!e[9]),t.$set(o)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function ji(e){let t,i;return t=new zt({props:{className:'controls-play-button',playbackState:e[31],adPlaybackState:e[32],isAds:e[3],handlePlayClick:e[41],repeatPlaylist:e[14],isEnded:e[33],isOneVideoPlaylist:e[10]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};1&i[1]&&(n.playbackState=e[31]),2&i[1]&&(n.adPlaybackState=e[32]),8&i[0]&&(n.isAds=e[3]),16384&i[0]&&(n.repeatPlaylist=e[14]),4&i[1]&&(n.isEnded=e[33]),1024&i[0]&&(n.isOneVideoPlaylist=e[10]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Ii(e){let t,i;return t=new rt({props:{className:'controls-element',disabled:!e[8],$$slots:{default:[Fi]},$$scope:{ctx:e}}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};256&i[0]&&(n.disabled=!e[8]),4352&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Fi(e){let t,i;return t=new qt({props:{type:'next',disabled:!e[8]}}),t.$on('click',(function(){v(e[12])&&e[12].apply(this,arguments)})),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(i,n){e=i;const o={};256&n[0]&&(o.disabled=!e[8]),t.$set(o)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Ri(e){let t,i;return t=new rt({props:{className:'controls-element',$$slots:{default:[Hi]},$$scope:{ctx:e}}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};32&i[1]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Hi(e){let t,i;return t=new Jt({props:{isActiveLive:e[36]}}),t.$on('click',e[61]),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};32&i[1]&&(n.isActiveLive=e[36]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function _i(e){let t,i;return t=new Vi({props:{isHidden:!e[23],isAds:e[3],canRewindLive:e[4],className:'controls-element'}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};8388608&i[0]&&(n.isHidden=!e[23]),8&i[0]&&(n.isAds=e[3]),16&i[0]&&(n.canRewindLive=e[4]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Di(e){let t,i;return t=new Xe({props:{className:'ui-time controls-element',showDuration:e[20],position:e[3]?e[34]:e[37],duration:e[3]?e[35]:e[38]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};1048576&i[0]&&(n.showDuration=e[20]),8&i[0]|72&i[1]&&(n.position=e[3]?e[34]:e[37]),8&i[0]|144&i[1]&&(n.duration=e[3]?e[35]:e[38]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Ui(e){let t,i;return t=new Vi({props:{isAds:e[3],canRewindLive:e[4],className:'controls-element'}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};8&i[0]&&(n.isAds=e[3]),16&i[0]&&(n.canRewindLive=e[4]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Oi(e){let t,i,n,o;t=new rt({props:{className:'controls-element',$$slots:{default:[Qi]},$$scope:{ctx:e}}});let l=!e[39]&&!e[3]&&Wi(e);return{c(){ae(t.$$.fragment),i=M(),l&&l.c(),n=N()},m(e,a){se(t,e,a),V(e,i,a),l&&l.m(e,a),V(e,n,a),o=!0},p(e,i){const o={};524288&i[0]|16&i[2]&&(o.$$scope={dirty:i,ctx:e}),t.$set(o),e[39]||e[3]?l&&(te(),oe(l,1,1,(()=>{l=null})),ie()):l?(l.p(e,i),8&i[0]|256&i[1]&&ne(l,1)):(l=Wi(e),l.c(),ne(l,1),l.m(n.parentNode,n))},i(e){o||(ne(t.$$.fragment,e),ne(l),o=!0)},o(e){oe(t.$$.fragment,e),oe(l),o=!1},d(e){re(t,e),e&&P(i),l&&l.d(e),e&&P(n)}}}function Qi(e){let t,i;return t=new ot({props:{isVerticalVolume:e[19]}}),t.$on('click',e[40]),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};524288&i[0]&&(n.isVerticalVolume=e[19]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Wi(e){let t,i,n,o,l;i=new Re({props:{supportLink:e[11]}});let a=e[22]&&Ki(e);return{c(){t=A('div'),ae(i.$$.fragment),n=M(),a&&a.c(),o=N(),T(t,'class','settings-desktop v-1qfxnal')},m(e,s){V(e,t,s),se(i,t,null),V(e,n,s),a&&a.m(e,s),V(e,o,s),l=!0},p(e,t){const n={};2048&t[0]&&(n.supportLink=e[11]),i.$set(n),e[22]?a?4194304&t[0]&&ne(a,1):(a=Ki(e),a.c(),ne(a,1),a.m(o.parentNode,o)):a&&(te(),oe(a,1,1,(()=>{a=null})),ie())},i(e){l||(ne(i.$$.fragment,e),ne(a),l=!0)},o(e){oe(i.$$.fragment,e),oe(a),l=!1},d(e){e&&P(t),re(i),e&&P(n),a&&a.d(e),e&&P(o)}}}function Ki(e){let t,i;return t=new rt({props:{className:'controls-element',$$slots:{default:[Yi]},$$scope:{ctx:e}}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Yi(e){let t,i;return t=new Ue({props:{className:'ui-settings'}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p:r,i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Xi(e){let t,i;return t=new rt({props:{className:'controls-element',$$slots:{default:[Gi]},$$scope:{ctx:e}}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};32768&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Gi(e){let t,i;return t=new mt({}),t.$on('click',(function(){v(e[15])&&e[15].apply(this,arguments)})),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(t,i){e=t},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Ji(e){let t,i,n,o=e[21]&&Zi(e),l=!e[6]&&tn(e);return{c(){o&&o.c(),t=M(),l&&l.c(),i=N()},m(e,a){o&&o.m(e,a),V(e,t,a),l&&l.m(e,a),V(e,i,a),n=!0},p(e,n){e[21]?o?(o.p(e,n),2097152&n[0]&&ne(o,1)):(o=Zi(e),o.c(),ne(o,1),o.m(t.parentNode,t)):o&&(te(),oe(o,1,1,(()=>{o=null})),ie()),e[6]?l&&(te(),oe(l,1,1,(()=>{l=null})),ie()):l?(l.p(e,n),64&n[0]&&ne(l,1)):(l=tn(e),l.c(),ne(l,1),l.m(i.parentNode,i))},i(e){n||(ne(o),ne(l),n=!0)},o(e){oe(o),oe(l),n=!1},d(e){o&&o.d(e),e&&P(t),l&&l.d(e),e&&P(i)}}}function Zi(e){let t,i;return t=new rt({props:{className:'controls-element',$$slots:{default:[en]},$$scope:{ctx:e}}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function en(e){let t,i;return t=new Kt({props:{className:'ui-chromecast'}}),t.$on('click',e[60]),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p:r,i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function tn(e){let t,i;return t=new rt({props:{className:'controls-element',disabled:!e[5],$$slots:{default:[nn]},$$scope:{ctx:e}}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};32&i[0]&&(n.disabled=!e[5]),32&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function nn(e){let t,i;return t=new Rt({props:{logoClickable:e[5]}}),t.$on('click',e[42]),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};32&i[0]&&(n.logoClickable=e[5]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function on(e){let t,i,n;return i=new Re({props:{supportLink:e[11]}}),{c(){t=A('div'),ae(i.$$.fragment),T(t,'class','settings-mobile v-1qfxnal')},m(e,o){V(e,t,o),se(i,t,null),n=!0},p(e,t){const n={};2048&t[0]&&(n.supportLink=e[11]),i.$set(n)},i(e){n||(ne(i.$$.fragment,e),n=!0)},o(e){oe(i.$$.fragment,e),n=!1},d(e){e&&P(t),re(i)}}}function ln(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h=e[18]&&!e[3]&&zi(e),g=e[18]&&e[3]&&e[32]!==bt.INACTIVE&&Ni(e),f=!e[18]&&Ti(e),b=!e[3]&&e[17]&&Ri(e),w=!e[18]&&_i(e),$=e[25]&&Di(e),y=e[18]&&Ui(e),k=!e[18]&&Oi(e),z=e[24]&&Xi(e),C=!e[18]&&Ji(e),S=e[18]&&e[16]&&on(e);return{c(){h&&h.c(),t=M(),g&&g.c(),i=M(),n=A('div'),o=A('div'),f&&f.c(),l=M(),b&&b.c(),a=M(),w&&w.c(),s=M(),$&&$.c(),r=M(),y&&y.c(),c=M(),k&&k.c(),d=M(),z&&z.c(),u=M(),C&&C.c(),v=M(),S&&S.c(),p=N(),T(o,'class','controls v-1qfxnal'),j(o,'controls-hidden',!e[2]),j(o,'controls-fullscreen-mobile',e[27]&&e[18]),T(n,'class','wrapper-bottom v-1qfxnal'),j(n,'hidden',e[1]),j(n,'controls-hidden',!e[2]),j(n,'wrapper-bottom-fullscreen-desktop',e[27]&&!e[18])},m(P,A){h&&h.m(P,A),V(P,t,A),g&&g.m(P,A),V(P,i,A),V(P,n,A),x(n,o),f&&f.m(o,null),x(o,l),b&&b.m(o,null),x(o,a),w&&w.m(o,null),x(o,s),$&&$.m(o,null),x(o,r),y&&y.m(o,null),x(o,c),k&&k.m(o,null),x(o,d),z&&z.m(o,null),x(o,u),C&&C.m(o,null),e[64](n),V(P,v,A),S&&S.m(P,A),V(P,p,A),m=!0},p(e,v){e[18]&&!e[3]?h?(h.p(e,v),262152&v[0]&&ne(h,1)):(h=zi(e),h.c(),ne(h,1),h.m(t.parentNode,t)):h&&(te(),oe(h,1,1,(()=>{h=null})),ie()),e[18]&&e[3]&&e[32]!==bt.INACTIVE?g?(g.p(e,v),262152&v[0]|2&v[1]&&ne(g,1)):(g=Ni(e),g.c(),ne(g,1),g.m(i.parentNode,i)):g&&(te(),oe(g,1,1,(()=>{g=null})),ie()),e[18]?f&&(te(),oe(f,1,1,(()=>{f=null})),ie()):f?(f.p(e,v),262144&v[0]&&ne(f,1)):(f=Ti(e),f.c(),ne(f,1),f.m(o,l)),!e[3]&&e[17]?b?(b.p(e,v),131080&v[0]&&ne(b,1)):(b=Ri(e),b.c(),ne(b,1),b.m(o,a)):b&&(te(),oe(b,1,1,(()=>{b=null})),ie()),e[18]?w&&(te(),oe(w,1,1,(()=>{w=null})),ie()):w?(w.p(e,v),262144&v[0]&&ne(w,1)):(w=_i(e),w.c(),ne(w,1),w.m(o,s)),e[25]?$?($.p(e,v),33554432&v[0]&&ne($,1)):($=Di(e),$.c(),ne($,1),$.m(o,r)):$&&(te(),oe($,1,1,(()=>{$=null})),ie()),e[18]?y?(y.p(e,v),262144&v[0]&&ne(y,1)):(y=Ui(e),y.c(),ne(y,1),y.m(o,c)):y&&(te(),oe(y,1,1,(()=>{y=null})),ie()),e[18]?k&&(te(),oe(k,1,1,(()=>{k=null})),ie()):k?(k.p(e,v),262144&v[0]&&ne(k,1)):(k=Oi(e),k.c(),ne(k,1),k.m(o,d)),e[24]?z?(z.p(e,v),16777216&v[0]&&ne(z,1)):(z=Xi(e),z.c(),ne(z,1),z.m(o,u)):z&&(te(),oe(z,1,1,(()=>{z=null})),ie()),e[18]?C&&(te(),oe(C,1,1,(()=>{C=null})),ie()):C?(C.p(e,v),262144&v[0]&&ne(C,1)):(C=Ji(e),C.c(),ne(C,1),C.m(o,null)),4&v[0]&&j(o,'controls-hidden',!e[2]),134479872&v[0]&&j(o,'controls-fullscreen-mobile',e[27]&&e[18]),2&v[0]&&j(n,'hidden',e[1]),4&v[0]&&j(n,'controls-hidden',!e[2]),134479872&v[0]&&j(n,'wrapper-bottom-fullscreen-desktop',e[27]&&!e[18]),e[18]&&e[16]?S?(S.p(e,v),327680&v[0]&&ne(S,1)):(S=on(e),S.c(),ne(S,1),S.m(p.parentNode,p)):S&&(te(),oe(S,1,1,(()=>{S=null})),ie())},i(e){m||(ne(h),ne(g),ne(f),ne(b),ne(w),ne($),ne(y),ne(k),ne(z),ne(C),ne(S),m=!0)},o(e){oe(h),oe(g),oe(f),oe(b),oe(w),oe($),oe(y),oe(k),oe(z),oe(C),oe(S),m=!1},d(o){h&&h.d(o),o&&P(t),g&&g.d(o),o&&P(i),o&&P(n),f&&f.d(),b&&b.d(),w&&w.d(),$&&$.d(),y&&y.d(),k&&k.d(),z&&z.d(),C&&C.d(),e[64](null),o&&P(v),S&&S.d(o),o&&P(p)}}}function an(e,t,i){let n,o,l,a,s,r,c,d,u,v,p,m,h,g,f,b,$,{hidden:y}=t,{showControls:x}=t,{controlsElementRef:k}=t,{isAds:V=!1}=t,{canRewindLive:P}=t,{logoClickable:z}=t,{logoHidden:A}=t,{showNextPrevButtons:C}=t,{nextButtonActive:S}=t,{prevButtonActive:M}=t,{isOneVideoPlaylist:N=!1}=t,{supportLink:L}=t,{playNextVideo:q}=t,{playPrevVideo:T}=t,{repeatPlaylist:E}=t,{toggleFullscreen:B}=t;const j=be(),I=j.actions.internal.toggleMuted,F=j.actions.internal.togglePlay,R=j.actions.internal.pause,H=j.state.duration$;w(e,H,(e=>i(38,b=e)));const _=j.state.positionWithScrubbing$;w(e,_,(e=>i(37,f=e)));const U=j.state.playbackState$;w(e,U,(e=>i(31,u=e)));const O=j.state.chromecastConnected$;w(e,O,(e=>i(39,$=e)));const Q=j.state.isEnded$;w(e,Q,(e=>i(33,p=e)));const W=j.state.isLive$;w(e,W,(e=>i(17,l=e)));const K=j.state.isActiveLive$;w(e,K,(e=>i(36,g=e)));const Y=j.ui.scrubbingInProgress;w(e,Y,(e=>i(30,d=e)));const X=j.ui.isMobile;w(e,X,(e=>i(18,a=e)));const G=j.ui.mobileUnmuteButtonExpanded;w(e,G,(e=>i(29,c=e)));const J=j.ui.mobileUnmuteButtonVisible;w(e,J,(e=>i(28,r=e)));const Z=j.ui.settingsMenuVisible;w(e,Z,(e=>i(16,n=e)));const ee=j.ads.duration;w(e,ee,(e=>i(35,h=e)));const te=j.ads.position;w(e,te,(e=>i(34,m=e)));const ie=j.ads.playbackState;w(e,ie,(e=>i(32,v=e)));const ne=j.ui.isFullscreen;w(e,ne,(e=>i(27,s=e)));const oe=j.ui.playerSize;w(e,oe,(e=>i(63,o=e)));let le,ae,se,re,ce,de,ue,ve;return e.$$set=e=>{'hidden'in e&&i(1,y=e.hidden),'showControls'in e&&i(2,x=e.showControls),'controlsElementRef'in e&&i(0,k=e.controlsElementRef),'isAds'in e&&i(3,V=e.isAds),'canRewindLive'in e&&i(4,P=e.canRewindLive),'logoClickable'in e&&i(5,z=e.logoClickable),'logoHidden'in e&&i(6,A=e.logoHidden),'showNextPrevButtons'in e&&i(7,C=e.showNextPrevButtons),'nextButtonActive'in e&&i(8,S=e.nextButtonActive),'prevButtonActive'in e&&i(9,M=e.prevButtonActive),'isOneVideoPlaylist'in e&&i(10,N=e.isOneVideoPlaylist),'supportLink'in e&&i(11,L=e.supportLink),'playNextVideo'in e&&i(12,q=e.playNextVideo),'playPrevVideo'in e&&i(13,T=e.playPrevVideo),'repeatPlaylist'in e&&i(14,E=e.repeatPlaylist),'toggleFullscreen'in e&&i(15,B=e.toggleFullscreen)},e.$$.update=()=>{2&e.$$.dirty[2]&&i(19,le=o.width<600),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(20,ae=a||o.width>550),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(21,se=a||o.width>450),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(22,re=a||o.width>380),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(23,ce=a||o.width>300),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(24,de=a||o.width>220),131080&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(25,ue=(!l||V)&&o.width>200),65540&e.$$.dirty[0]&&i(26,ve=n||x)},[k,y,x,V,P,z,A,C,S,M,N,L,q,T,E,B,n,l,a,le,ae,se,re,ce,de,ue,ve,s,r,c,d,u,v,p,m,h,g,f,b,$,I,F,R,H,_,U,O,Q,W,K,Y,X,G,J,Z,ee,te,ie,ne,oe,()=>j.actions.internal.toggleChromecast(),()=>j.actions.internal.switchToActiveLive(),function(){J.set(!1),I()},o,function(e){D[e?'unshift':'push']((()=>{k=e,i(0,k)}))}]}class sn extends ue{constructor(e){super(),de(this,e,an,ln,p,{hidden:1,showControls:2,controlsElementRef:0,isAds:3,canRewindLive:4,logoClickable:5,logoHidden:6,showNextPrevButtons:7,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:10,supportLink:11,playNextVideo:12,playPrevVideo:13,repeatPlaylist:14,toggleFullscreen:15},Pi,[-1,-1,-1])}}function rn(e){k(e,'v-y9pij4','.container.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.v-y9pij4.v-y9pij4{opacity:0;visibility:hidden}.playButton.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.v-y9pij4:hover .playButtonBackground.v-y9pij4{background-color:var(--videoplayer-big-play-hover-bg-color);transform:scale(1.15)}.playButtonIcon.v-y9pij4.v-y9pij4{position:relative;width:48px;height:48px}')}function cn(e){let t,i,n,o,l,a,s,c,d;return{c(){t=A('div'),i=A('div'),n=A('div'),o=M(),l=A('img'),T(n,'class','playButtonBackground v-y9pij4'),g(l.src,a=wt)||T(l,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z\' fill=\'white\'/%3e%3c/svg%3e'),T(l,'class','playButtonIcon v-y9pij4'),T(l,'alt',''),T(i,'class','playButton v-y9pij4'),T(t,'class','container v-y9pij4'),T(t,'style',s=`background-color: #222; background-image: url('${e[0]||''}')`),j(t,'hidden',e[1])},m(a,s){V(a,t,s),x(t,i),x(i,n),x(i,o),x(i,l),c||(d=L(t,'click',(function(){v(e[2])&&e[2].apply(this,arguments)})),c=!0)},p(i,[n]){e=i,1&n&&s!==(s=`background-color: #222; background-image: url('${e[0]||''}')`)&&T(t,'style',s),2&n&&j(t,'hidden',e[1])},i:r,o:r,d(e){e&&P(t),c=!1,d()}}}function dn(e,t,i){let{thumbUrl:n}=t,{hidden:o}=t,{startVideo:l}=t;return e.$$set=e=>{'thumbUrl'in e&&i(0,n=e.thumbUrl),'hidden'in e&&i(1,o=e.hidden),'startVideo'in e&&i(2,l=e.startVideo)},[n,o,l]}class un extends ue{constructor(e){super(),de(this,e,dn,cn,p,{thumbUrl:0,hidden:1,startVideo:2},rn)}}function vn(e){k(e,'v-8nkw5s','.container.v-8nkw5s.v-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.v-8nkw5s.v-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes v-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.v-8nkw5s.v-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:v-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.v-8nkw5s+.dot.v-8nkw5s{margin-left:4px}')}function pn(e){let t;return{c(){t=A('div'),t.innerHTML='<div class="dot v-8nkw5s"></div> \n <div class="dot v-8nkw5s"></div> \n <div class="dot v-8nkw5s"></div>',T(t,'class','container v-8nkw5s')},m(e,i){V(e,t,i)},p:r,i:r,o:r,d(e){e&&P(t)}}}class mn extends ue{constructor(e){super(),de(this,e,null,pn,p,{},vn)}}function hn(e){const t=be();return R((()=>{t.getAdmanWrapper().startPostroll()})),[]}class gn extends ue{constructor(e){super(),de(this,e,hn,null,p,{})}}function fn(e){k(e,'v-17pubzn','.container.v-17pubzn{position:absolute;top:14px;left:16px;padding:4px 8px;font-size:13px;color:var(--white);background:rgba(0, 0, 0, 0.35);border-radius:4px}.container-mobile.v-17pubzn{font-size:15px;background:unset;border-radius:unset}')}function bn(e){let t,i,n;return{c(){t=A('div'),i=S('Реклама '),n=S(e[0]),T(t,'class','container v-17pubzn'),j(t,'container-mobile',e[1])},m(e,o){V(e,t,o),x(t,i),x(t,n)},p(e,[i]){1&i&&E(n,e[0]),2&i&&j(t,'container-mobile',e[1])},i:r,o:r,d(e){e&&P(t)}}}function wn(e,t,i){let n,{position:o=0}=t,{duration:l=0}=t;const a=be().ui.isMobile;let s;return w(e,a,(e=>i(1,n=e))),e.$$set=e=>{'position'in e&&i(3,o=e.position),'duration'in e&&i(4,l=e.duration)},e.$$.update=()=>{24&e.$$.dirty&&i(0,s=Oe(l-o))},[s,n,a,o,l]}class $n extends ue{constructor(e){super(),de(this,e,wn,bn,p,{position:3,duration:4},fn)}}function yn(e){k(e,'v-22jj8o','.container.v-22jj8o.v-22jj8o{position:absolute;top:14px;right:16px;padding:4px 8px;font-size:13px;color:#bbb;background:rgba(0, 0, 0, 0.35);border-radius:4px;transition:color .2s}.container-mobile.v-22jj8o.v-22jj8o{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-22jj8o.v-22jj8o{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-22jj8o.v-22jj8o{width:86px}.skippable.v-22jj8o.v-22jj8o{cursor:pointer;color:var(--white)}.skippable.v-22jj8o.v-22jj8o:hover{color:rgba(255, 255, 255, .75)}.skippable.v-22jj8o:hover .icon.v-22jj8o{fill:rgba(255, 255, 255, .75)}')}function xn(e){let t,i,n,o=Math.ceil(e[1]-e[0])+'';return{c(){t=S('Пропустить рекламу через '),i=S(o),n=S(' с')},m(e,o){V(e,t,o),V(e,i,o),V(e,n,o)},p(e,t){3&t&&o!==(o=Math.ceil(e[1]-e[0])+'')&&E(i,o)},d(e){e&&P(t),e&&P(i),e&&P(n)}}}function kn(e){let t,i,n;return{c(){t=A('div'),t.innerHTML='Пропустить рекламу\n <svg class="icon v-22jj8o" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" 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"></path></svg>',T(t,'class','skip v-22jj8o')},m(o,l){V(o,t,l),i||(n=L(t,'click',(function(){v(e[2])&&e[2].apply(this,arguments)})),i=!0)},p(t,i){e=t},d(e){e&&P(t),i=!1,n()}}}function Vn(e){let t;function i(e,t){return e[3]?kn:xn}let n=i(e),o=n(e);return{c(){t=A('div'),o.c(),T(t,'class','container v-22jj8o'),j(t,'container-mobile',e[4]),j(t,'skippable',e[3])},m(e,i){V(e,t,i),o.m(t,null)},p(e,[l]){n===(n=i(e))&&o?o.p(e,l):(o.d(1),o=n(e),o&&(o.c(),o.m(t,null))),16&l&&j(t,'container-mobile',e[4]),8&l&&j(t,'skippable',e[3])},i:r,o:r,d(e){e&&P(t),o.d()}}}function Pn(e,t,i){let n,{position:o=0}=t,{secondsToWatchBeforeSkip:l=0}=t,{skipAd:a=r}=t;const s=be().ui.isMobile;let c;return w(e,s,(e=>i(4,n=e))),e.$$set=e=>{'position'in e&&i(0,o=e.position),'secondsToWatchBeforeSkip'in e&&i(1,l=e.secondsToWatchBeforeSkip),'skipAd'in e&&i(2,a=e.skipAd)},e.$$.update=()=>{3&e.$$.dirty&&i(3,c=o>0&&o>=l)},[o,l,a,c,n,s]}class zn extends ue{constructor(e){super(),de(this,e,Pn,Vn,p,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},yn)}}function An(e){k(e,'v-1wy3dql','button.v-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}')}function Cn(e){let t;return{c(){t=A('button'),t.textContent='Перейти на сайт',T(t,'class','v-1wy3dql')},m(e,i){V(e,t,i)},p:r,i:r,o:r,d(e){e&&P(t)}}}class Sn extends ue{constructor(e){super(),de(this,e,null,Cn,p,{},An)}}function Mn(e){k(e,'v-354ajf','.container.v-354ajf{width:100%;height:100%}.top-gradient-mobile.v-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(\n 360deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(0, 0, 0, 0.05) 12%,\n rgba(0, 0, 0, 0.15) 25%,\n rgba(0, 0, 0, 0.3) 45%,\n rgba(0, 0, 0, 0.4) 57%,\n rgba(0, 0, 0, 0.5) 77%,\n rgba(0, 0, 0, 0.55) 88%,\n rgba(0, 0, 0, 0.65) 100%\n )}')}function Nn(e){let t;return{c(){t=A('div'),T(t,'class','top-gradient-mobile v-354ajf')},m(e,i){V(e,t,i)},d(e){e&&P(t)}}}function Ln(e){let t,i;return t=new $n({props:{position:e[6],duration:e[7]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};64&i&&(n.position=e[6]),128&i&&(n.duration=e[7]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function qn(e){let t,i;return t=new zn({props:{position:e[6],secondsToWatchBeforeSkip:e[8],skipAd:e[10].actions.internal.skipAd}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};64&i&&(n.position=e[6]),256&i&&(n.secondsToWatchBeforeSkip=e[8]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Tn(e){let t,i;return t=new gn({}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function En(e){let t,i;return t=new Sn({}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function Bn(e){let t,i,n,o,l,a,s,r,c=e[0]&&Nn(),d=e[3]&&Ln(e),u=e[4]&&qn(e),v=e[9]&&Tn(),p=e[5]&&En();return{c(){t=A('div'),c&&c.c(),i=M(),n=A('video'),o=M(),d&&d.c(),l=M(),u&&u.c(),a=M(),v&&v.c(),s=M(),p&&p.c(),B(n,'width','100%'),B(n,'height','100%'),n.playsInline=!0,T(t,'class','container v-354ajf')},m(m,h){V(m,t,h),c&&c.m(t,null),x(t,i),x(t,n),e[22](n),x(t,o),d&&d.m(t,null),x(t,l),u&&u.m(t,null),x(t,a),v&&v.m(t,null),x(t,s),p&&p.m(t,null),e[23](t),r=!0},p(e,[n]){e[0]?c||(c=Nn(),c.c(),c.m(t,i)):c&&(c.d(1),c=null),e[3]?d?(d.p(e,n),8&n&&ne(d,1)):(d=Ln(e),d.c(),ne(d,1),d.m(t,l)):d&&(te(),oe(d,1,1,(()=>{d=null})),ie()),e[4]?u?(u.p(e,n),16&n&&ne(u,1)):(u=qn(e),u.c(),ne(u,1),u.m(t,a)):u&&(te(),oe(u,1,1,(()=>{u=null})),ie()),e[9]?v?512&n&&ne(v,1):(v=Tn(),v.c(),ne(v,1),v.m(t,s)):v&&(te(),oe(v,1,1,(()=>{v=null})),ie()),e[5]?p?32&n&&ne(p,1):(p=En(),p.c(),ne(p,1),p.m(t,null)):p&&(te(),oe(p,1,1,(()=>{p=null})),ie())},i(e){r||(ne(d),ne(u),ne(v),ne(p),r=!0)},o(e){oe(d),oe(u),oe(v),oe(p),r=!1},d(i){i&&P(t),c&&c.d(),e[22](null),d&&d.d(),u&&u.d(),v&&v.d(),p&&p.d(),e[23](null)}}}function jn(e,t,i){let n,o,l,a,s,r,{adsSlotId:c}=t,{adsParams:d}=t,{adsPreviewParam:u}=t,{duration:v=0}=t;const p=be(),m=p.state.isEnded$;w(e,m,(e=>i(9,r=e)));const h=p.ui.isMobile;let g,f;w(e,h,(e=>i(0,o=e)));let $=!1;const y=p.ads.playbackState;w(e,y,(e=>i(21,n=e)));const x=p.ads.canSkip,k=p.ads.duration;w(e,k,(e=>i(7,a=e)));const V=p.ads.position;w(e,V,(e=>i(6,l=e)));const P=p.ads.secondsToWatchBeforeSkip;let z,A,C;return w(e,P,(e=>i(8,s=e))),R((()=>{const e=new AbortController;const t=p.getAdmanWrapper();if(!c)return void t.onAdmanLoadingError();const{width:i,height:n}=b(p.ui.playerSize),o={width:i,height:n,isFullscreen:b(p.ui.isFullscreen),isAutoplay:b(p.ui.isAutoplay),adsContainer:g,adsVideoElement:f,slotId:c,params:d,previewParam:u,duration:v};return window.AdmanHTML?(t.initAdman(o),$=!0):t.loadAdman(e.signal).then((()=>{t.initAdman(o),$=!0})).catch((()=>{t.onAdmanLoadingError()})),()=>{!$&&e.abort()}})),e.$$set=e=>{'adsSlotId'in e&&i(17,c=e.adsSlotId),'adsParams'in e&&i(18,d=e.adsParams),'adsPreviewParam'in e&&i(19,u=e.adsPreviewParam),'duration'in e&&i(20,v=e.duration)},e.$$.update=()=>{2097152&e.$$.dirty&&i(3,z=n!==bt.INACTIVE),2097152&e.$$.dirty&&i(4,A=x&&n!==bt.INACTIVE),2097153&e.$$.dirty&&i(5,C=o&&n!==bt.INACTIVE)},[o,g,f,z,A,C,l,a,s,r,p,m,h,y,k,V,P,c,d,u,v,n,function(e){D[e?'unshift':'push']((()=>{f=e,i(2,f)}))},function(e){D[e?'unshift':'push']((()=>{g=e,i(1,g)}))}]}class In extends ue{constructor(e){super(),de(this,e,jn,Bn,p,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},Mn)}}function Fn(e){k(e,'v-p5rs9b','ul.v-p5rs9b{position:absolute;border-radius:3px;background:rgba(0, 0, 0, 0.88);overflow:hidden;transition:visibility .1s,opacity .1s;font-size:13px;list-style:none;margin:0;padding:0}.hidden.v-p5rs9b{visibility:hidden;opacity:0}li.v-p5rs9b{padding:8px 20px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;white-space:nowrap}li.v-p5rs9b:hover{background:rgba(66, 66, 66, .5);color:var(--white)}')}function Rn(e){let t,i,n,o,l,a,s,c;return{c(){t=A('ul'),i=A('li'),i.textContent='Сообщить о проблеме',n=M(),o=A('li'),o.textContent='Копировать данные для диагностики',l=M(),a=A('li'),a.textContent='Техническая информация',T(i,'class','v-p5rs9b'),T(o,'class','v-p5rs9b'),T(a,'class','v-p5rs9b'),B(t,'top',e[1]+'px'),B(t,'left',e[0]+'px'),T(t,'class','v-p5rs9b'),j(t,'hidden',!e[2])},m(r,d){V(r,t,d),x(t,i),x(t,n),x(t,o),x(t,l),x(t,a),e[10](t),s||(c=[L(i,'click',e[4]),L(o,'click',e[5]),L(a,'click',e[6])],s=!0)},p(e,[i]){2&i&&B(t,'top',e[1]+'px'),1&i&&B(t,'left',e[0]+'px'),4&i&&j(t,'hidden',!e[2])},i:r,o:r,d(i){i&&P(t),e[10](null),s=!1,u(c)}}}function Hn(e,t,i){let{visible:n=!1}=t,{supportLink:o}=t,{x:l=0}=t,{y:a=0}=t,{playerContainerRef:s}=t,{controlsContainerRef:r}=t;const c=be(),d=c.ui.contextMenuVisible,u=c.ui.debugPanelVisible;let v;return e.$$set=e=>{'visible'in e&&i(2,n=e.visible),'supportLink'in e&&i(7,o=e.supportLink),'x'in e&&i(0,l=e.x),'y'in e&&i(1,a=e.y),'playerContainerRef'in e&&i(8,s=e.playerContainerRef),'controlsContainerRef'in e&&i(9,r=e.controlsContainerRef)},e.$$.update=()=>{3&e.$$.dirty&&((e,t)=>{if(!v||!s||!r)return;const n=v.getBoundingClientRect(),o=s.getBoundingClientRect(),c=r.getBoundingClientRect();i(0,l=e-o.left),i(1,a=t-o.top),l+n.width>o.width&&i(0,l-=n.width),a+n.height>o.height-c.height&&i(1,a-=n.height)})(l,a)},[l,a,n,v,e=>{window.open(o,'_blank'),d.set(!1),c.actions.internal.pause(),e.stopPropagation()},e=>{Pe(c.actions.internal.getDebugTextData()),d.set(!1),e.stopPropagation()},e=>{u.set(!0),d.set(!1),e.stopPropagation()},o,s,r,function(e){D[e?'unshift':'push']((()=>{v=e,i(3,v)}))}]}class _n extends ue{constructor(e){super(),de(this,e,Hn,Rn,p,{visible:2,supportLink:7,x:0,y:1,playerContainerRef:8,controlsContainerRef:9},Fn)}}class Dn{constructor(e){this.value=e,this.next=null}}class Un{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const t=new Dn(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){const e=[];let t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}}function On(e){k(e,'v-1ssl9eb','.container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}')}function Qn(e){let t,i;return{c(){t=A('div'),i=A('canvas'),T(i,'class','v-1ssl9eb'),T(t,'class','container v-1ssl9eb')},m(n,o){V(n,t,o),x(t,i),e[3](i)},p:r,i:r,o:r,d(i){i&&P(t),e[3](null)}}}function Wn(e,t,i,n,o){0===o&&(o=1),e.fillStyle='#fff',e.fillRect(t,i,n,o)}function Kn(e,t,i){let n,o,{values:l=[]}=t;return R((()=>{i(0,n.width=120,n),i(0,n.height=16,n),i(2,o=n.getContext('2d'))})),e.$$set=e=>{'values'in e&&i(1,l=e.values)},e.$$.update=()=>{if(6&e.$$.dirty&&o){let e=l[0];for(let t=1;t<l.length;t++)l[t]>e&&(e=l[t]);o.clearRect(0,0,120,16);let t=59;for(let i=l.length-1;i>=0;i--){const n=2*t,a=e>0?l[i]/e*16:0;Wn(o,n,0,2,a),t--}}},[n,l,o,function(e){D[e?'unshift':'push']((()=>{n=e,i(0,n)}))}]}class Yn extends ue{constructor(e){super(),de(this,e,Kn,Qn,p,{values:1},On)}}const Xn={set:(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(e){}},get:e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}},remove(e){try{localStorage.removeItem(e)}catch(e){}}};function Gn(e){k(e,'v-1gy2e68','.container.v-1gy2e68.v-1gy2e68.v-1gy2e68{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.v-1gy2e68.v-1gy2e68.v-1gy2e68{top:16px;left:16px}button.v-1gy2e68.v-1gy2e68.v-1gy2e68{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1gy2e68.v-1gy2e68.v-1gy2e68{padding:5px}.content.v-1gy2e68>div.v-1gy2e68>div.v-1gy2e68{display:inline-block;text-align:right;width:52px;padding:0 5px}')}function Jn(e){let t,i,n,o,l,a=e[0].id+'';return{c(){t=A('div'),i=A('div'),i.textContent='Video id',n=M(),o=A('span'),l=S(a),T(i,'class','v-1gy2e68'),T(t,'class','v-1gy2e68')},m(e,a){V(e,t,a),x(t,i),x(t,n),x(t,o),x(o,l)},p(e,t){1&t&&a!==(a=e[0].id+'')&&E(l,a)},d(e){e&&P(t)}}}function Zn(e){let t,i,n,o,l,a=e[0].provider+'';return{c(){t=A('div'),i=A('div'),i.textContent='Provider',n=M(),o=A('span'),l=S(a),T(i,'class','v-1gy2e68'),T(t,'class','v-1gy2e68')},m(e,a){V(e,t,a),x(t,i),x(t,n),x(t,o),x(o,l)},p(e,t){1&t&&a!==(a=e[0].provider+'')&&E(l,a)},d(e){e&&P(t)}}}function eo(e){let t,i,n,o,l,a=e[0].viewport+'';return{c(){t=A('div'),i=A('div'),i.textContent='Viewport',n=M(),o=A('span'),l=S(a),T(i,'class','v-1gy2e68'),T(t,'class','v-1gy2e68')},m(e,a){V(e,t,a),x(t,i),x(t,n),x(t,o),x(o,l)},p(e,t){1&t&&a!==(a=e[0].viewport+'')&&E(l,a)},d(e){e&&P(t)}}}function to(e){let t,i,n,o,l,a=e[0].videoSize+'';return{c(){t=A('div'),i=A('div'),i.textContent='Video size',n=M(),o=A('span'),l=S(a),T(i,'class','v-1gy2e68'),T(t,'class','v-1gy2e68')},m(e,a){V(e,t,a),x(t,i),x(t,n),x(t,o),x(o,l)},p(e,t){1&t&&a!==(a=e[0].videoSize+'')&&E(l,a)},d(e){e&&P(t)}}}function io(e){let t,i,n,o,l,a=e[0].cdn+'';return{c(){t=A('div'),i=A('div'),i.textContent='CDN host',n=M(),o=A('span'),l=S(a),T(i,'class','v-1gy2e68'),T(t,'class','v-1gy2e68')},m(e,a){V(e,t,a),x(t,i),x(t,n),x(t,o),x(o,l)},p(e,t){1&t&&a!==(a=e[0].cdn+'')&&E(l,a)},d(e){e&&P(t)}}}function no(e){let t,i,n,o,l,a,s=e[0].volume+'';return{c(){t=A('div'),i=A('div'),i.textContent='Volume',n=M(),o=A('span'),l=S(s),a=S(' %'),T(i,'class','v-1gy2e68'),T(t,'class','v-1gy2e68')},m(e,s){V(e,t,s),x(t,i),x(t,n),x(t,o),x(o,l),x(o,a)},p(e,t){1&t&&s!==(s=e[0].volume+'')&&E(l,s)},d(e){e&&P(t)}}}function oo(e){let t,i,n,o,l,a,s=e[0].buffer.toFixed(2)+'';return{c(){t=A('div'),i=A('div'),i.textContent='Buffer',n=M(),o=A('span'),l=S(s),a=S(' s'),T(i,'class','v-1gy2e68'),T(t,'class','v-1gy2e68')},m(e,s){V(e,t,s),x(t,i),x(t,n),x(t,o),x(o,l),x(o,a)},p(e,t){1&t&&s!==(s=e[0].buffer.toFixed(2)+'')&&E(l,s)},d(e){e&&P(t)}}}function lo(e){let t,i,n,o,l,a,s,r,c,d=e[0].speed.toFixed(2)+'';return o=new Yn({props:{values:e[5]}}),{c(){t=A('div'),i=A('div'),i.textContent='Network',n=M(),ae(o.$$.fragment),l=M(),a=A('span'),s=S(d),r=S(' Kbps'),T(i,'class','v-1gy2e68'),T(t,'class','v-1gy2e68')},m(e,d){V(e,t,d),x(t,i),x(t,n),se(o,t,null),x(t,l),x(t,a),x(a,s),x(a,r),c=!0},p(e,t){const i={};32&t&&(i.values=e[5]),o.$set(i),(!c||1&t)&&d!==(d=e[0].speed.toFixed(2)+'')&&E(s,d)},i(e){c||(ne(o.$$.fragment,e),c=!0)},o(e){oe(o.$$.fragment,e),c=!1},d(e){e&&P(t),re(o)}}}function ao(e){let t,i,n,o,l,a,s,r,c,d=e[0].bitrate.toFixed(2)+'';return o=new Yn({props:{values:e[6]}}),{c(){t=A('div'),i=A('div'),i.textContent='V bitrate',n=M(),ae(o.$$.fragment),l=M(),a=A('span'),s=S(d),r=S(' Kbps'),T(i,'class','v-1gy2e68'),T(t,'class','v-1gy2e68')},m(e,d){V(e,t,d),x(t,i),x(t,n),se(o,t,null),x(t,l),x(t,a),x(a,s),x(a,r),c=!0},p(e,t){const i={};64&t&&(i.values=e[6]),o.$set(i),(!c||1&t)&&d!==(d=e[0].bitrate.toFixed(2)+'')&&E(s,d)},i(e){c||(ne(o.$$.fragment,e),c=!0)},o(e){oe(o.$$.fragment,e),c=!1},d(e){e&&P(t),re(o)}}}function so(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,f,b,w,$,y,k,z,C,N,q,B,I,F,R,H,_,D,U,O,Q,W,K,Y=e[0].version+'',X=e[0].id&&Jn(e),G=e[0].provider&&Zn(e),J=e[0].viewport&&eo(e),Z=e[0].videoSize&&to(e),ee=e[0].cdn&&io(e),le=e[0].volume&&no(e),ce=e[0].buffer&&oo(e),de=e[0].speed&&lo(e),ue=e[0].bitrate&&ao(e);return _=new Yn({props:{values:e[4]}}),{c(){t=A('div'),i=A('button'),i.textContent='[x]',n=M(),o=A('div'),l=A('div'),a=A('div'),a.textContent='Version',s=M(),r=A('span'),c=S(Y),d=M(),X&&X.c(),u=M(),G&&G.c(),v=M(),J&&J.c(),p=M(),Z&&Z.c(),m=M(),ee&&ee.c(),h=M(),le&&le.c(),g=M(),ce&&ce.c(),f=M(),b=A('div'),w=A('div'),w.textContent='Dropped',$=M(),y=A('span'),k=S(e[2]),z=S(' / '),C=S(e[1]),N=S(' frames'),q=M(),de&&de.c(),B=M(),ue&&ue.c(),I=M(),F=A('div'),R=A('div'),R.textContent='FPS',H=M(),ae(_.$$.fragment),D=M(),U=A('span'),O=S(e[3]),T(i,'class','close v-1gy2e68'),T(i,'title','закрыть'),T(a,'class','v-1gy2e68'),T(l,'class','v-1gy2e68'),T(w,'class','v-1gy2e68'),T(b,'class','v-1gy2e68'),T(R,'class','v-1gy2e68'),T(F,'class','v-1gy2e68'),T(o,'class','content v-1gy2e68'),T(t,'class','container v-1gy2e68'),j(t,'container-mobile',e[7])},m(P,A){V(P,t,A),x(t,i),x(t,n),x(t,o),x(o,l),x(l,a),x(l,s),x(l,r),x(r,c),x(o,d),X&&X.m(o,null),x(o,u),G&&G.m(o,null),x(o,v),J&&J.m(o,null),x(o,p),Z&&Z.m(o,null),x(o,m),ee&&ee.m(o,null),x(o,h),le&&le.m(o,null),x(o,g),ce&&ce.m(o,null),x(o,f),x(o,b),x(b,w),x(b,$),x(b,y),x(y,k),x(y,z),x(y,C),x(y,N),x(o,q),de&&de.m(o,null),x(o,B),ue&&ue.m(o,null),x(o,I),x(o,F),x(F,R),x(F,H),se(_,F,null),x(F,D),x(F,U),x(U,O),Q=!0,W||(K=L(i,'click',e[9]),W=!0)},p(e,[i]){(!Q||1&i)&&Y!==(Y=e[0].version+'')&&E(c,Y),e[0].id?X?X.p(e,i):(X=Jn(e),X.c(),X.m(o,u)):X&&(X.d(1),X=null),e[0].provider?G?G.p(e,i):(G=Zn(e),G.c(),G.m(o,v)):G&&(G.d(1),G=null),e[0].viewport?J?J.p(e,i):(J=eo(e),J.c(),J.m(o,p)):J&&(J.d(1),J=null),e[0].videoSize?Z?Z.p(e,i):(Z=to(e),Z.c(),Z.m(o,m)):Z&&(Z.d(1),Z=null),e[0].cdn?ee?ee.p(e,i):(ee=io(e),ee.c(),ee.m(o,h)):ee&&(ee.d(1),ee=null),e[0].volume?le?le.p(e,i):(le=no(e),le.c(),le.m(o,g)):le&&(le.d(1),le=null),e[0].buffer?ce?ce.p(e,i):(ce=oo(e),ce.c(),ce.m(o,f)):ce&&(ce.d(1),ce=null),(!Q||4&i)&&E(k,e[2]),(!Q||2&i)&&E(C,e[1]),e[0].speed?de?(de.p(e,i),1&i&&ne(de,1)):(de=lo(e),de.c(),ne(de,1),de.m(o,B)):de&&(te(),oe(de,1,1,(()=>{de=null})),ie()),e[0].bitrate?ue?(ue.p(e,i),1&i&&ne(ue,1)):(ue=ao(e),ue.c(),ne(ue,1),ue.m(o,I)):ue&&(te(),oe(ue,1,1,(()=>{ue=null})),ie());const n={};16&i&&(n.values=e[4]),_.$set(n),(!Q||8&i)&&E(O,e[3]),128&i&&j(t,'container-mobile',e[7])},i(e){Q||(ne(de),ne(ue),ne(_.$$.fragment,e),Q=!0)},o(e){oe(de),oe(ue),oe(_.$$.fragment,e),Q=!1},d(e){e&&P(t),X&&X.d(),G&&G.d(),J&&J.d(),Z&&Z.d(),ee&&ee.d(),le&&le.d(),ce&&ce.d(),de&&de.d(),ue&&ue.d(),re(_),W=!1,K()}}}function ro(e,t,i){let n;const o=be(),l=o.ui.debugPanelVisible,a=o.ui.isMobile;w(e,a,(e=>i(7,n=e)));let s=o.actions.internal.getDebugPanelData(),r=o.actions.internal.getVideoElement(),c=0,d=0,u=0;const v=new Un(60),p=new Un(60),m=new Un(60);let h=[],g=[],f=[];return R((()=>{Xn.set('vk_player_debug_panel_opened',!0),o.actions.internal.startLogging(),r&&(i(2,d=r.getVideoPlaybackQuality().droppedVideoFrames),i(1,c=r.getVideoPlaybackQuality().totalVideoFrames));const e=window.setInterval((()=>{i(0,s=o.actions.internal.getDebugPanelData())}),500);let t;return r&&(t=window.setInterval((()=>{if(r){i(2,d=r.getVideoPlaybackQuality().droppedVideoFrames);const e=r.getVideoPlaybackQuality().totalVideoFrames;i(3,u=e-c),i(1,c=e),v.push(u),s.speed&&p.push(s.speed),s.bitrate&&m.push(s.bitrate),i(4,h=v.getValuesFromBottom()),i(5,g=p.getValuesFromBottom()),i(6,f=m.getValuesFromBottom())}}),1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(e),t&&clearInterval(t)}})),[s,c,d,u,h,g,f,n,a,e=>{Xn.set('vk_player_debug_panel_opened',!1),l.set(!1),e.stopPropagation()}]}class co extends ue{constructor(e){super(),de(this,e,ro,so,p,{},Gn)}}function uo(e){k(e,'v-1ome55p','.close.v-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.v-1ome55p:hover{opacity:1}.close.v-1ome55p:before,.close.v-1ome55p:after{position:absolute;left:8px;content:\' \';height:16px;width:2px;background-color:var(--white)}.close.v-1ome55p:before{transform:rotate(45deg)}.close.v-1ome55p:after{transform:rotate(-45deg)}')}function vo(e){let t,i,n;return{c(){t=A('div'),T(t,'class','close v-1ome55p')},m(o,l){V(o,t,l),i||(n=L(t,'click',e[0]),i=!0)},p:r,i:r,o:r,d(e){e&&P(t),i=!1,n()}}}function po(e){return[function(t){H.call(this,e,t)}]}class mo extends ue{constructor(e){super(),de(this,e,po,vo,p,{},uo)}}function ho(e){k(e,'v-8jhsry','.timer.v-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.v-8jhsry:hover{background:rgba(31, 31, 31, .85)\n }.timer-canvas.v-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.v-8jhsry{width:22px;height:26px}')}function go(e){let t,i,n,o,l,a,s;return{c(){t=A('div'),i=A('canvas'),n=M(),o=C('svg'),l=C('g'),a=C('g'),s=C('path'),T(i,'class','timer-canvas v-8jhsry'),T(i,'width','100'),T(i,'height','100'),T(s,'class','_play'),T(s,'d','m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z'),T(s,'fill','#fff'),T(a,'fill-rule','nonzero'),T(l,'fill','none'),T(l,'fill-rule','evenodd'),T(o,'class','timer-play-icon v-8jhsry'),T(o,'viewBox','0 0 24 24'),T(o,'xmlns','http://www.w3.org/2000/svg'),T(t,'class','timer v-8jhsry')},m(r,c){V(r,t,c),x(t,i),e[2](i),x(t,n),x(t,o),x(o,l),x(l,a),x(a,s)},p:r,i:r,o:r,d(i){i&&P(t),e[2](null)}}}function fo(e,t,i){let n,{onTimerEnded:o=r}=t;return R((()=>{let e;const t=n.getContext('2d');if(!t)return;t.lineWidth=6,t.lineCap='round',t.strokeStyle='#fff';const i=Date.now(),l=()=>{const n=(Date.now()-i)/5e3;n<1?(t.clearRect(0,0,100,100),t.beginPath(),t.arc(50,50,47,-Math.PI/2,-Math.PI/2+2*Math.PI*n),t.stroke(),e=requestAnimationFrame(l)):o()};return e=requestAnimationFrame(l),()=>{cancelAnimationFrame(e)}})),e.$$set=e=>{'onTimerEnded'in e&&i(1,o=e.onTimerEnded)},[n,o,function(e){D[e?'unshift':'push']((()=>{n=e,i(0,n)}))}]}class bo extends ue{constructor(e){super(),de(this,e,fo,go,p,{onTimerEnded:1},ho)}}function wo(e){k(e,'v-kisfwc','.overlay.v-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.v-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.v-kisfwc{display:flex;justify-content:space-between}.caption.v-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.v-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.v-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.v-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.v-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.v-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}')}function $o(e){let t,i;return t=new bo({props:{onTimerEnded:e[2]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};4&i&&(n.onTimerEnded=e[2]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function yo(e){let t,i,n,o,l,a,s,r,c,d,u,p,m,h,g,f,b,w,$,y,k;s=new mo({}),s.$on('click',e[4]);let z=e[3]&&$o(e);return{c(){t=A('div'),i=M(),n=A('div'),o=A('div'),l=A('div'),l.textContent='следующее видео',a=M(),ae(s.$$.fragment),r=M(),c=A('div'),d=A('div'),u=A('div'),p=A('div'),m=M(),z&&z.c(),g=M(),f=A('div'),b=A('div'),w=S(e[0]),T(t,'class','overlay v-kisfwc'),T(l,'class','caption v-kisfwc'),T(o,'class','top v-kisfwc'),T(p,'class','thumb-overlay v-kisfwc'),T(u,'class','thumb v-kisfwc'),T(u,'style',h=`background-image: url('${e[1]}')`),T(d,'class','column v-kisfwc'),T(b,'class','title v-kisfwc'),T(f,'class','column v-kisfwc'),T(c,'class','row v-kisfwc'),T(n,'class','next-video v-kisfwc')},m(h,P){V(h,t,P),V(h,i,P),V(h,n,P),x(n,o),x(o,l),x(o,a),se(s,o,null),x(n,r),x(n,c),x(c,d),x(d,u),x(u,p),x(u,m),z&&z.m(u,null),x(c,g),x(c,f),x(f,b),x(b,w),$=!0,y||(k=L(c,'click',(function(){v(e[2])&&e[2].apply(this,arguments)})),y=!0)},p(t,[i]){(e=t)[3]?z?(z.p(e,i),8&i&&ne(z,1)):(z=$o(e),z.c(),ne(z,1),z.m(u,null)):z&&(te(),oe(z,1,1,(()=>{z=null})),ie()),(!$||2&i&&h!==(h=`background-image: url('${e[1]}')`))&&T(u,'style',h),(!$||1&i)&&E(w,e[0])},i(e){$||(ne(s.$$.fragment,e),ne(z),$=!0)},o(e){oe(s.$$.fragment,e),oe(z),$=!1},d(e){e&&P(t),e&&P(i),e&&P(n),re(s),z&&z.d(),y=!1,k()}}}function xo(e,t,i){let{title:n}=t,{thumb:o}=t,{playNextVideo:l}=t,a=!0;return e.$$set=e=>{'title'in e&&i(0,n=e.title),'thumb'in e&&i(1,o=e.thumb),'playNextVideo'in e&&i(2,l=e.playNextVideo)},[n,o,l,a,()=>i(3,a=!1)]}class ko extends ue{constructor(e){super(),de(this,e,xo,yo,p,{title:0,thumb:1,playNextVideo:2},wo)}}function Vo(e,t,i){let{playNextVideo:n}=t;return R((()=>{n()})),e.$$set=e=>{'playNextVideo'in e&&i(0,n=e.playNextVideo)},[n]}class Po extends ue{constructor(e){super(),de(this,e,Vo,null,p,{playNextVideo:0})}}function zo(e){k(e,'v-cus9x4','.title.v-cus9x4{position:absolute;left:0;top:0;width:100%;height:var(--videoplayer-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(--videoplayer-controls-transition-duration);transition-timing-function:var(--videoplayer-controls-transition-fn);will-change:transform, opacity;background:linear-gradient(\n 0deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(0, 0, 0, 0.02) 19%,\n rgba(0, 0, 0, 0.10) 34%,\n rgba(0, 0, 0, 0.40) 60%,\n rgba(0, 0, 0, 0.60) 100%\n )}.hidden.v-cus9x4{visibility:hidden;transform:translateY(calc(var(--videoplayer-controls-gradient-height) * -1));opacity:0}')}function Ao(e){let t,i;return{c(){t=A('div'),i=S(e[0]),T(t,'class','title v-cus9x4'),j(t,'hidden',e[1])},m(e,n){V(e,t,n),x(t,i)},p(e,[n]){1&n&&E(i,e[0]),2&n&&j(t,'hidden',e[1])},i:r,o:r,d(e){e&&P(t)}}}function Co(e,t,i){let{title:n=''}=t,{isHidden:o=!1}=t;return e.$$set=e=>{'title'in e&&i(0,n=e.title),'isHidden'in e&&i(1,o=e.isHidden)},[n,o]}class So extends ue{constructor(e){super(),de(this,e,Co,Ao,p,{title:0,isHidden:1},zo)}}function Mo(e){k(e,'v-1o62kpz','.wrapper.v-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.v-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.v-1o62kpz{width:50px;height:50px}.text.v-1o62kpz{margin-top:20px}')}function No(e){let t,i,n;return{c(){t=A('div'),i=S('Видео воспроизводится на '),n=S(e[1]),T(t,'class','text v-1o62kpz')},m(e,o){V(e,t,o),x(t,i),x(t,n)},p(e,t){2&t&&E(n,e[1])},d(e){e&&P(t)}}}function Lo(e){let t,i,n,o,l,a,s=e[1]&&No(e);return{c(){t=A('div'),i=A('div'),i.innerHTML='<svg class="icon v-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=M(),s&&s.c(),T(i,'class','icon_wrapper v-1o62kpz'),T(t,'class','wrapper v-1o62kpz'),T(t,'style',o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e[0]||''}')`)},m(o,r){V(o,t,r),x(t,i),x(t,n),s&&s.m(t,null),l||(a=L(t,'click',e[2]),l=!0)},p(e,[i]){e[1]?s?s.p(e,i):(s=No(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null),1&i&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e[0]||''}')`)&&T(t,'style',o)},i:r,o:r,d(e){e&&P(t),s&&s.d(),l=!1,a()}}}function qo(e,t,i){let{thumbUrl:n}=t,{chromecastDeviceName:o}=t;return e.$$set=e=>{'thumbUrl'in e&&i(0,n=e.thumbUrl),'chromecastDeviceName'in e&&i(1,o=e.chromecastDeviceName)},[n,o,function(t){H.call(this,e,t)}]}class To extends ue{constructor(e){super(),de(this,e,qo,Lo,p,{thumbUrl:0,chromecastDeviceName:1},Mo)}}function Eo(e){k(e,'v-zd9h6u','.container.v-zd9h6u{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}.icon.v-zd9h6u{width:200px;height:200px}')}function Bo(e){let t,i,n;return{c(){t=A('div'),i=A('img'),g(i.src,n='data:image/svg+xml,%3csvg viewBox=\'460 190 130 90\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z\' fill=\'white\' fill-rule=\'evenodd\'/%3e%3c/svg%3e')||T(i,'src','data:image/svg+xml,%3csvg viewBox=\'460 190 130 90\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z\' fill=\'white\' fill-rule=\'evenodd\'/%3e%3c/svg%3e'),T(i,'class','icon v-zd9h6u'),T(i,'alt',''),T(t,'class','container v-zd9h6u')},m(e,n){V(e,t,n),x(t,i)},p:r,i:r,o:r,d(e){e&&P(t)}}}class jo extends ue{constructor(e){super(),de(this,e,null,Bo,p,{},Eo)}}function Io(t,n,o){let l,a,s,r,c,{isAds:d}=n,{hideContextMenu:u}=n,{toggleFullscreen:v}=n;const p=be(),m=p.getLogger().createComponentLog('KeyboardControls component'),h=p.state.playbackState$;w(t,h,(e=>o(13,c=e)));const g=p.ads.playbackState;w(t,g,(e=>o(12,r=e)));const f=p.state.positionExact$;w(t,f,(e=>o(11,s=e)));const b=p.state.duration$;w(t,b,(e=>o(10,a=e)));const $=p.state.volume$;w(t,$,(e=>o(9,l=e)));return t.$$set=e=>{'isAds'in e&&o(5,d=e.isAds),'hideContextMenu'in e&&o(6,u=e.hideContextMenu),'toggleFullscreen'in e&&o(7,v=e.toggleFullscreen)},[h,g,f,b,$,d,u,v,t=>{u();const n=t.code;if(t.ctrlKey||t.altKey||t.metaKey)return;const o=c===e.PlaybackState.PLAYING||c===e.PlaybackState.PAUSED,h=d&&(r===bt.PAUSED||r===bt.PLAYING);if(o||h)switch(m({message:`key down, code: ${n}`}),n){case ye.KeyJ:case ye.ArrowLeft:{if(h)break;const e=Math.max(s-10,0);s>0&&p.actions.internal.seekTime(e),t.preventDefault();break}case ye.KeyL:case ye.ArrowRight:{if(h)break;const e=Math.min(s+10,a);s<a&&p.actions.internal.seekTime(e),t.preventDefault();break}case ye.ArrowUp:{const e=Math.min(l+.05,1);l<1&&p.actions.internal.setVolume(e),t.preventDefault();break}case ye.ArrowDown:{const e=Math.max(l-.05,0);l>0&&p.actions.internal.setVolume(e),t.preventDefault();break}case ye.Comma:t.shiftKey&&(p.actions.internal.decrementPlaybackRate(),t.preventDefault());break;case ye.Period:t.shiftKey&&(p.actions.internal.incrementPlaybackRate(),t.preventDefault());break;case ye.KeyK:case ye.Space:p.actions.internal.togglePlay(),t.preventDefault();break;case ye.KeyM:p.actions.internal.toggleMuted(),t.preventDefault();break;case ye.KeyF:v(),t.preventDefault();break;default:i.checkNever(n)}}]}class Fo extends ue{constructor(e){super(),de(this,e,Io,null,p,{isAds:5,hideContextMenu:6,toggleFullscreen:7,keyDownHandler:8})}get keyDownHandler(){return this.$$.ctx[8]}}function Ro(e){k(e,'v-1c30l04','.double-click-area.v-1c30l04{position:absolute;z-index:1;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.v-1c30l04{left:0}.double-click-area.right.v-1c30l04{right:0}.semicircle.v-1c30l04{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.v-1c30l04{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.v-1c30l04{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.v-1c30l04{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.v-1c30l04{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.v-1c30l04{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:v-1c30l04-blink 500ms infinite;opacity:0}.triangle.right.v-1c30l04:nth-child(1),.triangle.left.v-1c30l04:nth-child(3){animation-delay:0ms}.triangle.right.v-1c30l04:nth-child(2),.triangle.left.v-1c30l04:nth-child(2){animation-delay:100ms}.triangle.right.v-1c30l04:nth-child(3),.triangle.left.v-1c30l04:nth-child(1){animation-delay:200ms}@keyframes v-1c30l04-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.v-1c30l04{border-right:8px solid var(--white)}.triangle.right.v-1c30l04{border-left:8px solid var(--white)}.triangle.v-1c30l04:not(:last-child){margin-right:5px}.step-caption.v-1c30l04{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}')}function Ho(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,f;return{c(){t=A('div'),n=M(),o=A('div'),l=A('div'),a=A('div'),r=M(),c=A('div'),u=M(),v=A('div'),m=M(),h=A('p'),g=S(e[1]),f=S(' секунд'),T(t,'class',i='semicircle '+e[0]+' v-1c30l04'),T(a,'class',s='triangle '+e[0]+' v-1c30l04'),T(c,'class',d='triangle '+e[0]+' v-1c30l04'),T(v,'class',p='triangle '+e[0]+' v-1c30l04'),T(l,'class','triangles-wrapper v-1c30l04'),T(h,'class','step-caption v-1c30l04'),T(o,'class','info v-1c30l04')},m(e,i){V(e,t,i),V(e,n,i),V(e,o,i),x(o,l),x(l,a),x(l,r),x(l,c),x(l,u),x(l,v),x(o,m),x(o,h),x(h,g),x(h,f)},p(e,n){1&n&&i!==(i='semicircle '+e[0]+' v-1c30l04')&&T(t,'class',i),1&n&&s!==(s='triangle '+e[0]+' v-1c30l04')&&T(a,'class',s),1&n&&d!==(d='triangle '+e[0]+' v-1c30l04')&&T(c,'class',d),1&n&&p!==(p='triangle '+e[0]+' v-1c30l04')&&T(v,'class',p),2&n&&E(g,e[1])},d(e){e&&P(t),e&&P(n),e&&P(o)}}}function _o(e){let t,i,n,o,l=e[2]&&Ho(e);return{c(){t=A('div'),l&&l.c(),T(t,'class',i='double-click-area '+e[0]+' v-1c30l04')},m(i,a){var s;V(i,t,a),l&&l.m(t,null),n||(o=L(t,'click',(s=e[3](),function(e){return e.stopPropagation(),s.call(this,e)})),n=!0)},p(e,[n]){e[2]?l?l.p(e,n):(l=Ho(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null),1&n&&i!==(i='double-click-area '+e[0]+' v-1c30l04')&&T(t,'class',i)},i:r,o:r,d(e){e&&P(t),l&&l.d(),n=!1,o()}}}function Do(e,t,i){let{side:n}=t,{seekStep:o}=t,{handleSingleFirstClick:l}=t,{handleSecondClick:a}=t,s=!1,r=0,c=0;var d;return d=()=>{window.clearTimeout(r),window.clearTimeout(c)},F().$$.on_destroy.push(d),e.$$set=e=>{'side'in e&&i(0,n=e.side),'seekStep'in e&&i(1,o=e.seekStep),'handleSingleFirstClick'in e&&i(4,l=e.handleSingleFirstClick),'handleSecondClick'in e&&i(5,a=e.handleSecondClick)},[n,o,s,()=>{let e=0;return()=>{e+=1,1===e?r=window.setTimeout((()=>{l(),e=0}),300):(window.clearTimeout(r),e=0,a(),i(2,s=!0),c=window.setTimeout((()=>{i(2,s=!1)}),500))}},l,a]}class Uo extends ue{constructor(e){super(),de(this,e,Do,_o,p,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},Ro)}}const Oo=(e,t)=>e<400||t<225?5:e<640||t<360?0:e<960||t<540?1:e<1280||t<720?2:3;class Qo{constructor(e){this.adman=null,this.initialVolume=1,this.videoElement=null,this.currentAdSection=null,this.actions=null,this.adsState=null,this.uiState=null,this.events={slotRequested$:new i.Subject,started$:new i.Subject,paused$:new i.Subject,resumed$:new i.Subject,ended$:new i.Subject,skipped$:new i.Subject,clicked$:new i.Subject},this.loadAdman=e=>new Promise(((t,n)=>{let o;const l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};i.addScript('//ad.mail.ru/static/admanhtml/rbadman-html5.min.js',e,2e3).then((()=>{window.AdmanHTML?t():(window.admanAsyncInit=l,o=window.setTimeout(l,2e3))})).catch((()=>{n()}))})),this.onAdsReady=()=>{this.log({message:'ads ready'}),this.startPreroll()},this.onAdStarted=(e,t)=>{i.assertNonNullable(this.adsState),i.assertNonNullable(this.uiState),i.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'}),b(this.uiState.isMobile)&&this.uiState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set(bt.PLAYING),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay)},this.onAdTimeRemained=({currentTime:e})=>{i.assertNonNullable(this.adsState),this.adsState.position.set(e)},this.onAdPaused=()=>{i.assertNonNullable(this.adsState),this.log({message:'ad paused'}),this.adsState.playbackState.set(bt.PAUSED)},this.onAdPlayed=()=>{i.assertNonNullable(this.adsState),this.log({message:'ad played'}),this.adsState.playbackState.set(bt.PLAYING)},this.onAdMidrollPoint=()=>{i.assertNonNullable(this.adman),i.assertNonNullable(this.actions),this.log({message:'midroll point'}),this.actions.switchFromVideoToAds(),this.currentAdSection=ft.Midroll,this.adman.start(ft.Midroll)},this.onAdSkipped=()=>{this.log({message:'ad skipped'}),this.switchToVideo()},this.onAdClosed=()=>{this.log({message:'ad closed'}),this.switchToVideo()},this.onAdCompleted=()=>{this.log({message:'ad completed'}),this.events.ended$.next(),this.switchToVideo()},this.onAdClicked=()=>{var e;this.log({message:'ad clicked'}),null===(e=this.videoElement)||void 0===e||e.pause(),this.events.clicked$.next()},this.onAdError=()=>{this.log({message:'ad error'}),this.switchToVideo()},this.log=e.createComponentLog('AdmanWrapper')}init(e,t,i){this.actions=e,this.adsState=t,this.uiState=i}onAdmanLoadingError(){this.log({message:'adman loading error'}),this.switchToVideo(!0)}initAdman(e){const{width:t,height:i,isFullscreen:n,isAutoplay:o,adsContainer:l,adsVideoElement:a,slotId:s,params:r={},duration:c,previewParam:d}=e,u={slot:s,wrapper:l,videoEl:a,videoQuality:i,params:Object.assign({dl:encodeURIComponent(window.location.href),autoplay:o,player_width:t,player_height:i,puid10:Oo(t,i),puid11:n?0:1,preview:d,duration:c},r),browser:{mobile:!1}},v=new window.AdmanHTML;v.setDebug(!1),v.onReady(this.onAdsReady),v.onStarted(this.onAdStarted),v.onPlayed(this.onAdPlayed),v.onPaused(this.onAdPaused),v.adMidrollPoint(this.onAdMidrollPoint),v.onClosed(this.onAdClosed),v.onSkipped(this.onAdSkipped),v.onClicked(this.onAdClicked),v.onTimeRemained(this.onAdTimeRemained),v.onCompleted(this.onAdCompleted),v.onError(this.onAdError),v.init(u),this.adman=v,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(u)}`})}switchToVideo(e=!1){if(null===this.currentAdSection&&!e)return void this.log({message:'switch to video, no currentAdSection. can\'t switch'});i.assertNonNullable(this.actions),i.assertNonNullable(this.adsState),i.assertNonNullable(this.uiState);const t=this.currentAdSection===ft.Postroll;this.adsState.playbackState.set(bt.INACTIVE),this.currentAdSection=null,this.uiState.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(){i.assertNonNullable(this.adsState),this.log({message:'toggle play'});const e=b(this.adsState.playbackState);e===bt.PLAYING?this.pause():e===bt.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var t;this.log({message:`set volume ${e}`}),null===(t=this.adman)||void 0===t||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),null===(t=this.adman)||void 0===t||t.setFullscreen(e)}startPreroll(){i.assertNonNullable(this.adman),this.log({message:'start preroll'}),this.setVolume(this.initialVolume),this.currentAdSection=ft.Preroll,this.adman.start(ft.Preroll)}startPostroll(){i.assertNonNullable(this.adman),i.assertNonNullable(this.actions),this.log({message:'start postroll'}),this.actions.switchFromVideoToAds(),this.currentAdSection=ft.Postroll,this.adman.start(ft.Postroll)}play(){i.assertNonNullable(this.adman),this.log({message:'ad play'}),this.adman.resume(),this.events.resumed$.next()}pause(){i.assertNonNullable(this.adman),this.log({message:'ad pause'}),this.adman.pause(),this.events.paused$.next()}skip(){i.assertNonNullable(this.adman),this.log({message:'ad skip'}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){var i;null===(i=this.adman)||void 0===i||i.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:'destroy'}),null===(e=this.adman)||void 0===e||e.destroy()}}const Wo=()=>{const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)},Ko=e=>{const t=Math.round(e);return isNaN(t)||t<40?'':t>=40&&t<55?50:t>=55&&t<90?60:t>=90&&t<180?120:t>=180?240:''},Yo=e=>e>1?1:e<0?0:e,Xo=e=>Xn.set('vk_player_preferred_volume',Yo(e)),Go=()=>{const e=parseFloat(Xn.get('vk_player_preferred_volume'));return isNaN(e)?1:Yo(e)},Jo=e=>Xn.set('vk_player_prefer_volume_mute',e),Zo=({videoId:t,albumId:o,autoplay:l,statPlace:a,callbacks:s,uiCallbacks:r})=>{const c=new e.Player,d=new i.Logger,u=new Qo(d),v=d.createComponentLog('Store');let p,m;const h=pe([],(e=>{let t=[];const n=i.merge(c.events.managedError$,c.events.fatalError$).subscribe((i=>{t=[...t,i],e(t)}));return()=>n.unsubscribe()})),g=pe(!1,(e=>{const t=c.events.fatalError$.subscribe((()=>e(!0)));return()=>t.unsubscribe()})),f=me(gt.Thumb),w=he([g,f],(([e,t])=>e?gt.Crashed:t));v({message:'create store'});const $=new n.OneStat({movieId:t,albumId:o,place:a,autoplay:l},{apiEnv:n.ApiEnv.VK_ALIAS}),y=((e,t,n)=>{const o=new i.Subscription;return o.add(n.attachTo(e)),o.add(t.slotRequested$.subscribe((()=>{n.logAdSlotRequest()}))).add(t.started$.subscribe((e=>{n.logAdStarted(e)}))).add(t.paused$.subscribe((()=>{n.logAdPaused()}))).add(t.resumed$.subscribe((()=>{n.logAdResumed()}))).add(t.ended$.subscribe((()=>{n.logAdEnded()}))).add(t.skipped$.subscribe((()=>{n.logAdSkipped()}))).add(t.clicked$.subscribe((()=>{n.logAdClicked()}))),o})(c,u.events,$),x=()=>{/ipad|iphone|ipod/.test(window.navigator.userAgent.toLowerCase())&&m&&(e=>{const t=e;(null==t?void 0:t.webkitExitFullscreen)?null==t||t.webkitExitFullscreen():Promise.reject()})(m)},k=(new i.Subscription).add(c.experimental.element$.subscribe((e=>{e&&(m=e,e.classList.add('player-media'))}))).add(c.events.ended$.subscribe((()=>{var e;x(),null===(e=s.onEnded)||void 0===e||e.call(s)}))).add(c.events.started$.subscribe((()=>{var e;const t=c.info.muted$.getValue();null===(e=s.onStarted)||void 0===e||e.call(s),r.onStarted(t)}))).add(c.events.willSeek$.subscribe((({from:e,to:t})=>{var i;null===(i=s.onSeek)||void 0===i||i.call(s,e,t)}))).add(c.info.position$.subscribe((e=>{var t;const i=c.info.duration$.getValue();null===(t=s.onTimeupdate)||void 0===t||t.call(s,i,e),u.setPosition(e,i)}))).add(c.events.fatalError$.subscribe((()=>{var e;null===(e=s.onCrashed)||void 0===e||e.call(s)}))),V=new i.Subscription,P=pe(c.info.position$.getValue(),(t=>{let i,n;const o=()=>{const l=c.info.playbackState$.getValue(),a=c.info.isLive$.getValue(),s=c.info.duration$.getValue(),r=c.info.position$.getValue();if([e.PlaybackState.PLAYING,e.PlaybackState.PAUSED].includes(l)){const e=a?r-s:c.getExactTime();e!==n&&t(e),n=e}i=requestAnimationFrame(o)};return o(),()=>cancelAnimationFrame(i)})),z=we(c.info.playbackState$),A=we(c.info.currentBuffer$),C=we(c.info.isEnded$),S=we(c.info.isLive$),M=we(c.info.volume$),N=we(c.info.muted$),L=we(c.info.availableQualities$),q=we(c.info.availableQualitiesFps$),T=we(c.info.chromecastState$),E=we(c.info.chromecastDeviceName$),B=we(c.info.currentFormat$),j=we(c.info.duration$);let I=null;const F=c.info.isBuffering$,R=pe(F.getValue(),(e=>{const t=F.subscribe((t=>{t&&null===I?I=window.setTimeout((()=>{e(F.getValue()),I=null}),500):e(t)}));return()=>{t.unsubscribe(),I&&clearTimeout(I)}})),H=he([j,S],(([e,t])=>t?-e:e)),_=he([S,we(c.info.position$)],(([e,t])=>Boolean(e&&t>-5))),D=he([T],(([t])=>t===e.ChromecastState.CONNECTED)),U=me(void 0),O=we(c.info.isAutoQualityEnabled$,(e=>e&&U.set(void 0))),Q=we(c.info.currentQuality$,(()=>U.set(void 0))),W=he([U,Q],(([e,t])=>null!=e?e:t)),K=he([L,q,O,W,B],(([t,i,n,o,l])=>{const a=[];l!==e.VideoFormat.MPEG&&a.push({value:ht.AUTO,displayValue:'Авто',selected:n});const s=t.filter((t=>t!==e.VideoQuality.INVARIANT));for(const t of s){const l=i[t],s=t===e.VideoQuality.INVARIANT?'Авто':t;a.push({value:t,displayValue:`${s}${l?Ko(l):''}`,selected:!n&&t===o})}return a})),Y=we(c.info.currentPlaybackRate$),X=he([Y],(([e])=>{const t=[];for(let i=.25;i<=2;i+=.25)t.push({value:i,displayValue:1===i?'Обычная':i+'x',selected:e===i});return t})),G=he([A,H],(([e,t],i)=>{var n;return i((null!==(n=null==e?void 0:e.end)&&void 0!==n?n:0)/t)})),J=(e,t=e,i=!1)=>{var n,o;const l=!i,a=c.info.muted$.getValue();v({message:`set volume, volume: ${e}, preferredVolume: ${t}, internalCall: ${l}`}),c.setVolume(e),u.setVolume(e),l&&(null===(n=s.onVolumeChange)||void 0===n||n.call(s,e)),Xo(t),a&&(c.setMuted(!1),l&&(null===(o=s.onUnmute)||void 0===o||o.call(s)),Jo(!1))},Z=(e,t=!1)=>{var i,n,o;const l=!t,a=c.info.volume$.getValue();if(v({message:`set muted, currentVolume: ${a}, mute: ${e}, internalCall: ${l}`}),c.setMuted(e),u.setVolume(e?0:a),Jo(e),l&&(e?null===(i=s.onMute)||void 0===i||i.call(s):null===(n=s.onUnmute)||void 0===n||n.call(s)),0===a){let e=Go();0===e&&(e=.05,Xo(e)),c.setVolume(e),u.setVolume(e),l&&(null===(o=s.onVolumeChange)||void 0===o||o.call(s,e))}},ee=e=>{c.setPlaybackRate(e)},te=(e,t=!0)=>{if(v({message:`seek to time, time: ${e}`}),c.info.isLive$.getValue()){const i=c.info.duration$.getValue(),n=Math.min(0,i+e);c.seekTime(n,t)}else c.seekTime(e,t)},ie=me(void 0),ne=me(!1),oe=e=>{ie.set(e)};let le;const ae=()=>{ie.set(void 0),ne.set(!1)},se=()=>{clearTimeout(le),le=window.setTimeout((()=>{ae()}),500),null==m||m.removeEventListener('canplay',se)},re=he([P,H,ie],(([e,t,n],o)=>{o(i.isNonNullable(n)?n*t:e)})),ce=e=>{var t;i.assertNonNullable(ue);const n=!e;if(b(ue.playerPhase)===gt.Ads)return v({message:`pause ads, internalCall: ${n}`}),void u.pause();v({message:`pause video, internalCall: ${n}`}),n&&(null===(t=s.onPause)||void 0===t||t.call(s)),c.pause()},de=(e,t)=>{i.assertNonNullable(ue),v({message:`first start, show ads: ${e}, internalCall: ${!t}`}),e?f.set(gt.Ads):(f.set(gt.Video),t?c.play():ue.actions.internal.togglePlay())},ue={initVideo:e=>{v({message:`init video, config: ${JSON.stringify(e)}`}),c.initVideo(e),p=e},videoId:t,playerPhase:w,state:{positionExact$:P,positionWithScrubbing$:re,duration$:H,playbackState$:z,isLoaderVisible:R,bufferedProgress$:G,isLive$:S,isActiveLive$:_,isEnded$:C,muted$:N,volume$:M,currentQuality$:W,isAutoQualityEnabled$:O,availableQualities$:K,currentPlaybackRate$:Y,availablePlaybackRates$:X,chromecastState$:T,chromecastDeviceName$:E,chromecastConnected$:D,currentFormat$:B,errorLog$:h,crashed$:g},ui:{controlsVisible:me(!1),isFullscreen:me(!1),isAutoplay:me(!1),contextMenuVisible:me(!1),debugPanelVisible:me(!1),playerSize:me({width:0,height:0}),isMobile:me(!1),mobileUnmuteButtonExpanded:me(!1),mobileUnmuteButtonVisible:me(!1),settingsMenuVisible:me(!1),scrubbingInProgress:ne},ads:{position:me(0),duration:me(0),playbackState:me(bt.INACTIVE),canSkip:me(!1),secondsToWatchBeforeSkip:me(0),postrollPassed:me(!1)},actions:{internal:{firstStart:e=>de(e,!1),pause:()=>ce(!1),togglePlay:()=>{var t,n;i.assertNonNullable(ue),v({message:'toggle play'}),b(ue.playerPhase)!==gt.Ads?c.info.playbackState$.getValue()!==e.PlaybackState.PLAYING?(c.info.isEnded$.getValue()&&(v({message:'toggle play, video ended, seek to 0'}),c.seekTime(0)),v({message:'toggle play, call player.play'}),c.play(),null===(t=s.onPlay)||void 0===t||t.call(s)):(v({message:'toggle play, call player.pause'}),c.pause(),null===(n=s.onPause)||void 0===n||n.call(s)):u.togglePlay()},toggleMuted:()=>{v({message:'toggle muted'});const e=c.info.muted$.getValue(),t=c.info.volume$.getValue();Z(!(0===t||e))},setVolume:J,setQuality:e=>{v({message:`set quality, quality: ${e}`}),c.setAutoQuality(e===ht.AUTO),e!==ht.AUTO&&(U.set(e),c.setQuality(e))},setPlaybackRate:ee,incrementPlaybackRate:()=>{const e=b(X),t=e.findIndex((({selected:e})=>e));if(t===e.length-1)return;const i=e[t+1];ee(i.value)},decrementPlaybackRate:()=>{const e=b(X),t=e.findIndex((({selected:e})=>e));if(0===t)return;const i=e[t-1];ee(i.value)},startScrubbing:e=>{v({message:`start scrubbing, progress: ${e}`}),ne.set(!0),oe(e)},progressScrubbing:oe,completeScrubbing:t=>{v({message:`complete scrubbing, progress: ${t}`}),(e=>{v({message:`seek to percent, percent: ${e}`});const t=Math.round(b(H)*e);te(t,!1)})(t),b(ue.ui.isMobile)&&b(ue.state.currentFormat$)===e.VideoFormat.HLS?null==m||m.addEventListener('canplay',se):ae()},toggleChromecast:()=>{v({message:'toggle chromecast'}),c.toggleChromecast()},switchToActiveLive:()=>{v({message:'switch to active live'}),c.seekTime(0)},switchFromAdsToVideo:(e=!0)=>{i.assertNonNullable(ue),v({message:`switch from ads to video, callPlay: ${e}`}),f.set(gt.Video),e&&c.play()},switchFromVideoToAds:()=>{i.assertNonNullable(ue),v({message:'switch from video to ads'}),ue.actions.internal.pause(),x(),f.set(gt.Ads)},skipAd:()=>u.skip(),getDebugTextData:()=>(i.assertNonNullable(ue),((e,t,i)=>{var n,o,l,a;const s=e.info,{width:r,height:c}=b(i.ui.playerSize),d=null!==(o=null===(n=s.throughputEstimation$.getValue())||void 0===n?void 0:n.toFixed(0))&&void 0!==o?o:0,u=null!==(a=null===(l=s.rttEstimation$.getValue())||void 0===l?void 0:l.toFixed(0))&&void 0!==a?a:0,v=s.isAutoQualityEnabled$.getValue()?'auto':'manual',p={Version:'@vkontakte/videoplayer@1.1.14',Browser:navigator.userAgent,'United video id':i.videoId,'Content host':s.hostname$.getValue(),'Connection type':s.httpConnectionType$.getValue()+(s.httpConnectionReused$.getValue()?' (reused)':''),Throughput:`${d}Kbps @ ${u}ms RTT`,Format:s.currentFormat$.getValue(),'Available Formats':Object.keys(t.sources).join(', '),Quality:`${v} ${s.currentQuality$.getValue()}`,'Available qualities':s.availableQualities$.getValue().join(', '),Position:`${b(i.state.positionExact$)}s`,State:`${b(i.playerPhase)} ${s.playbackState$.getValue()}`,'Player size':`${r}x${c}`,URL:window.location.href,Errors:b(i.state.errorLog$).map((({id:e})=>e)).join(', ')};return Object.entries(p).map((([e,t])=>`${e}: ${t}`)).join('\n')})(c,p,ue)),getDebugPanelData:()=>(i.assertNonNullable(ue),((e,t,i)=>{const n=e.info,{width:o,height:l}=b(i.ui.playerSize),a={version:'1.1.14',viewport:`${o}x${l}`,volume:Math.round(100*b(i.state.volume$))},s=i.videoId;s&&(a.id=s),n.currentFormat$.getValue()&&(a.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(a.cdn=n.hostname$.getValue());const r=n.intrinsicVideoSize$.getValue();r&&(a.videoSize=`${r.width}x${r.height}`);const c=n.currentBuffer$.getValue();c&&(a.buffer=Math.max(c.end-b(i.state.positionExact$),0));const d=n.throughputEstimation$.getValue();d&&(a.speed=d);const u=n.videoBitrate$.getValue();return u&&(a.bitrate=u),a})(c,0,ue)),getVideoElement:()=>m,seekTime:e=>te(e),startLogging:()=>{V.add(c.events.log$.subscribe((e=>{console.debug('%c sdk ','background:#9ddcf7;',`sdk component: ${e.component}`,e.message)}))).add(d.log$.subscribe((e=>{console.debug('%c ui ','background:#f3da0b;',`ui component: ${e.component}.`,e.message)})))},stopLogging:()=>{V.unsubscribe()}},external:{firstStart:e=>de(e,!0),play:()=>(e=>{var t;i.assertNonNullable(ue);const n=!e;if(b(ue.playerPhase)===gt.Ads)return v({message:`play ads, internalCall: ${n}`}),void u.play();v({message:`play video, internalCall: ${n}`}),n&&(null===(t=s.onPlay)||void 0===t||t.call(s)),c.play()})(!0),pause:()=>ce(!0),seekTime:e=>(e=>{v({message:`seek external, time: ${e}`}),c.seekTime(c.info.isLive$.getValue()?-e:e)})(e),setMuted:e=>Z(e,!0),setVolume:e=>J(e,e,!0)}},callbacks:s,getAdmanWrapper:()=>u,getLogger:()=>d,destroy:()=>{$.destroy(),y.unsubscribe(),k.unsubscribe(),V.unsubscribe(),c.destroy(),u.destroy()}};return ue},{window:el}=le;function tl(e){k(e,'v-phigzb','.player-wrapper.v-phigzb{--white:#fff;--black:#000;--red:#ff3347;--videoplayer-controls-height:45px;--videoplayer-controls-fullscreen-height:50px;--videoplayer-controls-gradient-height:100px;--videoplayer-controls-transition-duration:0.25s;--videoplayer-controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--videoplayer-focused-element-shadow:inset 0 0 0 2px #2a5885;--videoplayer-focused-slider-shadow:0 0 0 2px #2a5885;--videoplayer-big-play-size:75px;--videoplayer-big-play-radius:50%;--videoplayer-big-play-bg-color:rgba(0, 0, 0, 0.5);--videoplayer-big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--videoplayer-big-play-icon-width:38px;--videoplayer-big-play-icon-height:33px;--videoplayer-slider-height:5px;--videoplayer-slider-radius:calc(var(--videoplayer-slider-height) / 2);--videoplayer-slider-handle-size:13px;--videoplayer-slider-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-loaded-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-filled-bg:var(--white);--videoplayer-slider-filled-active-live-bg:var(--red);--videoplayer-slider-filled-ads:rgba(103, 165, 235, 1);--videoplayer-slider-disabled-color:rgba(248, 248, 248, 0.31);--videplayer-mobile-settings-bg:#2C2D2E;--videoplayer-button-hover-transition:opacity 0.2s;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}.player-wrapper.v-phigzb .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.video-container.v-phigzb,.ads-container.v-phigzb{position:absolute;width:100%;height:100%;left:0;top:0}.video-container.v-phigzb{z-index:0}.nocursor.v-phigzb{cursor:none}.ads-container.v-phigzb{background:var(--black)}.hidden.v-phigzb{visibility:hidden}div{outline:none}')}function il(e){let t,i,n,o;t=new Uo({props:{side:'left',seekStep:gl,handleSingleFirstClick:e[66],handleSecondClick:e[95]}});let l=!e[37]&&nl(e);return{c(){ae(t.$$.fragment),i=M(),l&&l.c(),n=N()},m(e,a){se(t,e,a),V(e,i,a),l&&l.m(e,a),V(e,n,a),o=!0},p(e,t){e[37]?l&&(te(),oe(l,1,1,(()=>{l=null})),ie()):l?(l.p(e,t),64&t[1]&&ne(l,1)):(l=nl(e),l.c(),ne(l,1),l.m(n.parentNode,n))},i(e){o||(ne(t.$$.fragment,e),ne(l),o=!0)},o(e){oe(t.$$.fragment,e),oe(l),o=!1},d(e){re(t,e),e&&P(i),l&&l.d(e),e&&P(n)}}}function nl(e){let t,i;return t=new Uo({props:{side:'right',seekStep:gl,handleSingleFirstClick:e[66],handleSecondClick:e[96]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p:r,i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function ol(e){let t,i,n;return i=new In({props:{adsSlotId:e[5],adsParams:e[6],adsPreviewParam:e[7],duration:e[8]}}),{c(){t=A('div'),ae(i.$$.fragment),T(t,'class','ads-container v-phigzb'),j(t,'hidden',e[25]!==gt.Ads)},m(e,o){V(e,t,o),se(i,t,null),n=!0},p(e,n){const o={};32&n[0]&&(o.adsSlotId=e[5]),64&n[0]&&(o.adsParams=e[6]),128&n[0]&&(o.adsPreviewParam=e[7]),256&n[0]&&(o.duration=e[8]),i.$set(o),33554432&n[0]&&j(t,'hidden',e[25]!==gt.Ads)},i(e){n||(ne(i.$$.fragment,e),n=!0)},o(e){oe(i.$$.fragment,e),n=!1},d(e){e&&P(t),re(i)}}}function ll(e){let t,i,n,o;const l=[sl,al],a=[];function s(e,t){return e[11]?0:1}return t=s(e),i=a[t]=l[t](e),{c(){i.c(),n=N()},m(e,i){a[t].m(e,i),V(e,n,i),o=!0},p(e,o){let r=t;t=s(e),t===r?a[t].p(e,o):(te(),oe(a[r],1,1,(()=>{a[r]=null})),ie(),i=a[t],i?i.p(e,o):(i=a[t]=l[t](e),i.c()),ne(i,1),i.m(n.parentNode,n))},i(e){o||(ne(i),o=!0)},o(e){oe(i),o=!1},d(e){a[t].d(e),e&&P(n)}}}function al(e){let t,i;return t=new ko({props:{title:e[15],thumb:e[16],playNextVideo:e[18]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};32768&i[0]&&(n.title=e[15]),65536&i[0]&&(n.thumb=e[16]),262144&i[0]&&(n.playNextVideo=e[18]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function sl(e){let t,i;return t=new Po({props:{playNextVideo:e[18]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};262144&i[0]&&(n.playNextVideo=e[18]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function rl(e){let t,i;return t=new So({props:{title:e[0],isHidden:!e[21]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};1&i[0]&&(n.title=e[0]),2097152&i[0]&&(n.isHidden=!e[21]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function cl(e){let t,i;return t=new To({props:{thumbUrl:e[1],chromecastDeviceName:e[38]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};2&i[0]&&(n.thumbUrl=e[1]),128&i[1]&&(n.chromecastDeviceName=e[38]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function dl(e){let t,i,n={toggleFullscreen:e[63],hideContextMenu:e[64],isAds:e[25]===gt.Ads};return t=new Fo({props:n}),e[98](t),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};33554432&i[0]&&(n.isAds=e[25]===gt.Ads),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(i){e[98](null),re(t,i)}}}function ul(e){let t,i,n,o,l;return i=new jo({}),{c(){t=A('div'),ae(i.$$.fragment)},m(a,s){V(a,t,s),se(i,t,null),n=!0,o||(l=[L(t,'contextmenu',q(e[65])),L(t,'click',e[68])],o=!0)},p:r,i(e){n||(ne(i.$$.fragment,e),n=!0)},o(e){oe(i.$$.fragment,e),n=!1},d(e){e&&P(t),re(i),o=!1,u(l)}}}function vl(e){let t,i;return t=new _n({props:{supportLink:e[3],visible:e[36],playerContainerRef:e[27],controlsContainerRef:e[29],x:e[31],y:e[32]}}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},p(e,i){const n={};8&i[0]&&(n.supportLink=e[3]),32&i[1]&&(n.visible=e[36]),134217728&i[0]&&(n.playerContainerRef=e[27]),536870912&i[0]&&(n.controlsContainerRef=e[29]),1&i[1]&&(n.x=e[31]),2&i[1]&&(n.y=e[32]),t.$set(n)},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function pl(e){let t,i;return t=new mn({}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function ml(e){let t,i;return t=new co({}),{c(){ae(t.$$.fragment)},m(e,n){se(t,e,n),i=!0},i(e){i||(ne(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){re(t,e)}}}function hl(e){let t,i,n,o,l,a,s,c,d,p,m,h,g,f,b,w,$,y,k;i=new un({props:{hidden:e[25]!==gt.Thumb||e[23],thumbUrl:e[1],startVideo:e[61]}});let z=e[11]&&il(e),C=e[4]&&e[30]&&ol(e),S=e[22]&&e[15]&&e[16]&&ll(e),N=!e[11]&&e[25]===gt.Video&&rl(e),E=e[24]&&cl(e),B=!e[11]&&dl(e);function I(t){e[99](t)}let F={hidden:e[25]===gt.Thumb||e[11]&&e[25]===gt.Ads,showControls:e[21],isAds:e[25]===gt.Ads,canRewindLive:e[2]&&0!==e[26],logoClickable:e[9],logoHidden:e[10],showNextPrevButtons:e[12],nextButtonActive:e[13],prevButtonActive:e[14],isOneVideoPlaylist:e[17],supportLink:e[3],playNextVideo:e[18],playPrevVideo:e[19],repeatPlaylist:e[20],toggleFullscreen:e[63]};void 0!==e[29]&&(F.controlsElementRef=e[29]),m=new sn({props:F}),D.push((()=>function(e,t,i){const n=e.$$.props[t];void 0!==n&&(e.$$.bound[n]=i,i(e.$$.ctx[n]))}(m,'controlsElementRef',I)));let R=e[23]&&ul(e),H=!e[11]&&vl(e),_=e[34]&&pl(),U=e[39]&&ml();return{c(){t=A('div'),ae(i.$$.fragment),n=M(),o=A('div'),z&&z.c(),l=M(),C&&C.c(),a=M(),S&&S.c(),s=M(),N&&N.c(),c=M(),E&&E.c(),d=M(),B&&B.c(),p=M(),ae(m.$$.fragment),g=M(),R&&R.c(),f=M(),H&&H.c(),b=M(),_&&_.c(),w=M(),U&&U.c(),T(o,'class','video-container v-phigzb'),j(o,'hidden',e[25]!==gt.Video),j(o,'nocursor',e[35]),T(t,'class','player-wrapper v-phigzb'),T(t,'tabindex','0')},m(u,h){V(u,t,h),se(i,t,null),x(t,n),x(t,o),z&&z.m(o,null),e[97](o),x(t,l),C&&C.m(t,null),x(t,a),S&&S.m(t,null),x(t,s),N&&N.m(t,null),x(t,c),E&&E.m(t,null),x(t,d),B&&B.m(t,null),x(t,p),se(m,t,null),x(t,g),R&&R.m(t,null),x(t,f),H&&H.m(t,null),x(t,b),_&&_.m(t,null),x(t,w),U&&U.m(t,null),e[100](t),$=!0,y||(k=[L(el,'blur',e[64]),L(o,'contextmenu',q(e[65])),L(o,'click',e[67]),L(t,'mouseenter',(function(){v(e[11]?r:e[58])&&(e[11]?r:e[58]).apply(this,arguments)})),L(t,'mouseleave',(function(){v(e[11]?r:e[59])&&(e[11]?r:e[59]).apply(this,arguments)})),L(t,'mousemove',(function(){v(e[11]?r:e[60])&&(e[11]?r:e[60]).apply(this,arguments)})),L(t,'keydown',(function(){v(e[11]?r:e[69])&&(e[11]?r:e[69]).apply(this,arguments)}))],y=!0)},p(n,l){e=n;const r={};41943040&l[0]&&(r.hidden=e[25]!==gt.Thumb||e[23]),2&l[0]&&(r.thumbUrl=e[1]),i.$set(r),e[11]?z?(z.p(e,l),2048&l[0]&&ne(z,1)):(z=il(e),z.c(),ne(z,1),z.m(o,null)):z&&(te(),oe(z,1,1,(()=>{z=null})),ie()),33554432&l[0]&&j(o,'hidden',e[25]!==gt.Video),16&l[1]&&j(o,'nocursor',e[35]),e[4]&&e[30]?C?(C.p(e,l),1073741840&l[0]&&ne(C,1)):(C=ol(e),C.c(),ne(C,1),C.m(t,a)):C&&(te(),oe(C,1,1,(()=>{C=null})),ie()),e[22]&&e[15]&&e[16]?S?(S.p(e,l),4292608&l[0]&&ne(S,1)):(S=ll(e),S.c(),ne(S,1),S.m(t,s)):S&&(te(),oe(S,1,1,(()=>{S=null})),ie()),e[11]||e[25]!==gt.Video?N&&(te(),oe(N,1,1,(()=>{N=null})),ie()):N?(N.p(e,l),33556480&l[0]&&ne(N,1)):(N=rl(e),N.c(),ne(N,1),N.m(t,c)),e[24]?E?(E.p(e,l),16777216&l[0]&&ne(E,1)):(E=cl(e),E.c(),ne(E,1),E.m(t,d)):E&&(te(),oe(E,1,1,(()=>{E=null})),ie()),e[11]?B&&(te(),oe(B,1,1,(()=>{B=null})),ie()):B?(B.p(e,l),2048&l[0]&&ne(B,1)):(B=dl(e),B.c(),ne(B,1),B.m(t,p));const u={};var v;33556480&l[0]&&(u.hidden=e[25]===gt.Thumb||e[11]&&e[25]===gt.Ads),2097152&l[0]&&(u.showControls=e[21]),33554432&l[0]&&(u.isAds=e[25]===gt.Ads),67108868&l[0]&&(u.canRewindLive=e[2]&&0!==e[26]),512&l[0]&&(u.logoClickable=e[9]),1024&l[0]&&(u.logoHidden=e[10]),4096&l[0]&&(u.showNextPrevButtons=e[12]),8192&l[0]&&(u.nextButtonActive=e[13]),16384&l[0]&&(u.prevButtonActive=e[14]),131072&l[0]&&(u.isOneVideoPlaylist=e[17]),8&l[0]&&(u.supportLink=e[3]),262144&l[0]&&(u.playNextVideo=e[18]),524288&l[0]&&(u.playPrevVideo=e[19]),1048576&l[0]&&(u.repeatPlaylist=e[20]),!h&&536870912&l[0]&&(h=!0,u.controlsElementRef=e[29],v=()=>h=!1,O.push(v)),m.$set(u),e[23]?R?(R.p(e,l),8388608&l[0]&&ne(R,1)):(R=ul(e),R.c(),ne(R,1),R.m(t,f)):R&&(te(),oe(R,1,1,(()=>{R=null})),ie()),e[11]?H&&(te(),oe(H,1,1,(()=>{H=null})),ie()):H?(H.p(e,l),2048&l[0]&&ne(H,1)):(H=vl(e),H.c(),ne(H,1),H.m(t,b)),e[34]?_?8&l[1]&&ne(_,1):(_=pl(),_.c(),ne(_,1),_.m(t,w)):_&&(te(),oe(_,1,1,(()=>{_=null})),ie()),e[39]?U?256&l[1]&&ne(U,1):(U=ml(),U.c(),ne(U,1),U.m(t,null)):U&&(te(),oe(U,1,1,(()=>{U=null})),ie())},i(e){$||(ne(i.$$.fragment,e),ne(z),ne(C),ne(S),ne(N),ne(E),ne(B),ne(m.$$.fragment,e),ne(R),ne(H),ne(_),ne(U),$=!0)},o(e){oe(i.$$.fragment,e),oe(z),oe(C),oe(S),oe(N),oe(E),oe(B),oe(m.$$.fragment,e),oe(R),oe(H),oe(_),oe(U),$=!1},d(n){n&&P(t),re(i),z&&z.d(),e[97](null),C&&C.d(),S&&S.d(),N&&N.d(),E&&E.d(),B&&B.d(),re(m),R&&R.d(),H&&H.d(),_&&_.d(),U&&U.d(),e[100](null),y=!1,u(k)}}}let gl=15;function fl(t,i,n){let o,l,s,c,d,u,v,p,m,h,g,f,b,$,y,x,k,V,{sources:P}=i,{title:z}=i,{thumbUrl:A}=i,{unitedVideoId:C}=i,{albumId:S}=i,{statPlace:M}=i,{autoplay:N=!1}=i,{volume:L}=i,{muted:q}=i,{fromTime:T=0}=i,{canRewindLive:E=!0}=i,{supportLink:B=$e}=i,{showAds:j=!1}=i,{adsSlotId:I}=i,{adsParams:F}=i,{adsPreviewParam:H}=i,{duration:_}=i,{logoClickable:U=!1}=i,{logoHidden:O=!1}=i,{isMobile:Q=!1}=i,{showNextPrevButtons:W=!1}=i,{nextButtonActive:K=!1}=i,{prevButtonActive:Y=!1}=i,{endScreenVideoTitle:X}=i,{endScreenVideoThumb:G}=i,{isOneVideoPlaylist:J=!1}=i,{outerContainerRef:Z}=i,{playNextVideo:ee=r}=i,{playPrevVideo:te=r}=i,{repeatPlaylist:ie=r}=i,{callbacks:ne={}}=i,{fullScreenTarget:oe}=i,{failoverHosts:le}=i;const ae=Zo({videoId:C,autoplay:N,albumId:S,statPlace:M,callbacks:ne,uiCallbacks:{onStarted:e=>{me.set(!0),e?Q&&(Ce.set(!0),Ae.set(!0),window.setTimeout((()=>{Ae.set(!1),Qe(2e3)}),6e3)):Qe(2e3)}}});ae.getAdmanWrapper().init({switchFromAdsToVideo:ae.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:ae.actions.internal.switchFromVideoToAds,setMuted:ae.actions.external.setMuted},ae.ads,{isMobile:ae.ui.isMobile,mobileUnmuteButtonVisible:ae.ui.mobileUnmuteButtonVisible});const se=ae.getLogger().createComponentLog('Root component'),re=ae.state.playbackState$;w(t,re,(e=>n(106,p=e)));const ce=ae.ads.playbackState;w(t,ce,(e=>n(93,b=e)));const de=ae.state.positionWithScrubbing$;w(t,de,(e=>n(104,u=e)));const ue=ae.state.duration$;w(t,ue,(e=>n(103,d=e)));const ve=ae.playerPhase;w(t,ve,(e=>n(25,$=e)));const pe=ae.ui.isFullscreen;w(t,pe,(e=>n(102,c=e)));const me=ae.ui.controlsVisible;w(t,me,(e=>n(90,s=e)));const he=ae.ui.settingsMenuVisible;w(t,he,(e=>n(105,v=e)));const ge=ae.ui.scrubbingInProgress;w(t,ge,(e=>n(91,m=e)));const be=ae.ui.playerSize,we=ae.ui.contextMenuVisible;w(t,we,(e=>n(36,o=e)));const ye=ae.ui.debugPanelVisible;w(t,ye,(e=>n(39,V=e)));const xe=ae.state.isLoaderVisible;w(t,xe,(e=>n(94,y=e)));const ke=ae.state.isEnded$;w(t,ke,(e=>n(89,l=e)));const Ve=ae.state.chromecastConnected$;w(t,Ve,(e=>n(24,f=e)));const Pe=ae.state.chromecastDeviceName$;w(t,Pe,(e=>n(38,k=e)));const ze=ae.ads.postrollPassed;w(t,ze,(e=>n(92,g=e)));const Ae=ae.ui.mobileUnmuteButtonExpanded,Ce=ae.ui.mobileUnmuteButtonVisible,Se=ae.state.isActiveLive$;w(t,Se,(e=>n(37,x=e)));const Me=ae.state.crashed$;w(t,Me,(e=>n(23,h=e)));let Ne,Le,qe,Te,Ee=0;ae.state.duration$.subscribe((e=>{n(26,Ee=e)})),fe(ae);let Be,je,Ie,Fe,Re,He=null,_e=!1,De=0,Ue=0,Oe=!1;function Qe(t){n(87,Te=window.setTimeout((()=>{if(p===e.PlaybackState.PLAYING){if(Q&&v)return;me.set(!1),he.set(!1)}}),t))}const We=(e=!1)=>{n(30,_e=!0),e?ae.actions.external.firstStart(j):ae.actions.internal.firstStart(j)};function Ke(e){ae.actions.internal.seekTime(e)}R((()=>{var e;e=Ge,document.addEventListener('fullscreenchange',e),document.addEventListener('webkitfullscreenchange',e),document.addEventListener('mozfullscreenchange',e),document.addEventListener('MSFullscreenChange',e),(e=>{if(window.ResizeObserver){let t,i;He=new ResizeObserver(a.default((e=>{const n=e[0];if(n){if(n.contentBoxSize){const e=Array.isArray(n.contentBoxSize)?n.contentBoxSize[0]:n.contentBoxSize;t=e.inlineSize,i=e.blockSize}else n.contentRect&&(t=n.contentRect.width,i=n.contentRect.height);be.set({width:t,height:i})}}),300)),He.observe(e)}be.set({width:e.clientWidth,height:e.clientHeight})})(Ne),ae.initVideo({container:Le,sources:P,failoverHosts:le}),T>0&&ae.actions.external.seekTime(T);const t=Q?1:null!=L?L:Go(),i=null!=q?q:(()=>{const e=Xn.get('vk_player_prefer_volume_mute');return'boolean'==typeof e&&e})();ae.actions.external.setVolume(t),ae.actions.external.setMuted(i),ae.getAdmanWrapper().setInitialVolume(i?0:t),ae.ui.isAutoplay.set(N),N&&We();const n=Boolean(Xn.get('vk_player_debug_panel_opened'));return ye.set(n),()=>{(e=>{document.removeEventListener('fullscreenchange',e),document.removeEventListener('webkitfullscreenchange',e),document.removeEventListener('mozfullscreenchange',e),document.removeEventListener('MSFullscreenChange',e)})(Ge),null==He||He.disconnect(),ae.destroy()}}));const Ye=e=>{let t=u+('forward'===e?gl:-gl);t<0?t=0:t>d&&(t=d-1),Ke(t)},Xe=()=>{if(Wo())(e=document).exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():Promise.reject(),se({message:'exit fullscreen'});else{se({message:'request fullscreen'});const e=null!=Z?Z:Ne,t=e.getRootNode(),i=t instanceof ShadowRoot?t.host:t,n=oe instanceof HTMLElement&&oe.contains(i);(e=>{if(e.requestFullscreen)return e.requestFullscreen();if(e.msRequestFullscreen)return e.msRequestFullscreen();if(e.webkitRequestFullscreen)return e.webkitRequestFullscreen();if(e.mozRequestFullScreen)return e.mozRequestFullScreen();const t=e.querySelector('video');(null==t?void 0:t.webkitEnterFullscreen)?t.webkitEnterFullscreen():Promise.reject()})(oe&&n?oe:e)}var e},Ge=()=>{var e,t,i,n;const o=Wo();pe.set(o),ae.getAdmanWrapper().setFullscreen(o),c?null===(t=(e=ae.callbacks).onFullscreenEnter)||void 0===t||t.call(e):null===(n=(i=ae.callbacks).onFullscreenExit)||void 0===n||n.call(i)},Je=()=>we.set(!1),Ze=()=>{s?me.set(!1):(me.set(!0),clearTimeout(Te),Qe(3e3))};return t.$$set=e=>{'sources'in e&&n(70,P=e.sources),'title'in e&&n(0,z=e.title),'thumbUrl'in e&&n(1,A=e.thumbUrl),'unitedVideoId'in e&&n(71,C=e.unitedVideoId),'albumId'in e&&n(72,S=e.albumId),'statPlace'in e&&n(73,M=e.statPlace),'autoplay'in e&&n(74,N=e.autoplay),'volume'in e&&n(75,L=e.volume),'muted'in e&&n(76,q=e.muted),'fromTime'in e&&n(77,T=e.fromTime),'canRewindLive'in e&&n(2,E=e.canRewindLive),'supportLink'in e&&n(3,B=e.supportLink),'showAds'in e&&n(4,j=e.showAds),'adsSlotId'in e&&n(5,I=e.adsSlotId),'adsParams'in e&&n(6,F=e.adsParams),'adsPreviewParam'in e&&n(7,H=e.adsPreviewParam),'duration'in e&&n(8,_=e.duration),'logoClickable'in e&&n(9,U=e.logoClickable),'logoHidden'in e&&n(10,O=e.logoHidden),'isMobile'in e&&n(11,Q=e.isMobile),'showNextPrevButtons'in e&&n(12,W=e.showNextPrevButtons),'nextButtonActive'in e&&n(13,K=e.nextButtonActive),'prevButtonActive'in e&&n(14,Y=e.prevButtonActive),'endScreenVideoTitle'in e&&n(15,X=e.endScreenVideoTitle),'endScreenVideoThumb'in e&&n(16,G=e.endScreenVideoThumb),'isOneVideoPlaylist'in e&&n(17,J=e.isOneVideoPlaylist),'outerContainerRef'in e&&n(78,Z=e.outerContainerRef),'playNextVideo'in e&&n(18,ee=e.playNextVideo),'playPrevVideo'in e&&n(19,te=e.playPrevVideo),'repeatPlaylist'in e&&n(20,ie=e.repeatPlaylist),'callbacks'in e&&n(79,ne=e.callbacks),'fullScreenTarget'in e&&n(80,oe=e.fullScreenTarget),'failoverHosts'in e&&n(81,le=e.failoverHosts)},t.$$.update=()=>{41943040&t.$$.dirty[0]|3&t.$$.dirty[3]&&n(34,je=($===gt.Video&&y||$===gt.Ads&&b===bt.INACTIVE)&&!h),25165824&t.$$.dirty[0]|402653184&t.$$.dirty[2]&&n(21,Ie=(s||f||l)&&!h),8388624&t.$$.dirty[0]|1207959552&t.$$.dirty[2]&&n(22,Fe=(j&&g||!j)&&l&&!h),6291456&t.$$.dirty[0]&&n(35,Re=pe&&!(Ie||Fe)),2048&t.$$.dirty[0]&&ae.ui.isMobile.set(Q),2048&t.$$.dirty[0]|637534208&t.$$.dirty[2]&&(Oe!==m&&Q&&(clearTimeout(Te),m?me.set(!0):Qe(3e3)),n(88,Oe=m))},[z,A,E,B,j,I,F,H,_,U,O,Q,W,K,Y,X,G,J,ee,te,ie,Ie,Fe,h,f,$,Ee,Ne,Le,qe,_e,De,Ue,Be,je,Re,o,x,k,V,re,ce,de,ue,ve,pe,me,he,ge,we,ye,xe,ke,Ve,Pe,ze,Se,Me,function(){clearTimeout(Te),me.set(!0)},function(){Qe(500)},function(){clearTimeout(Te),me.set(!0),c&&qe&&!function(e,t){var i,n,o,l,a;return!!e&&(null!==(a=null!==(l=null!==(o=null!==(n=null!==(i=e.matches)&&void 0!==i?i:e.matchesSelector)&&void 0!==n?n:e.mozMatchesSelector)&&void 0!==o?o:e.msMatchesSelector)&&void 0!==l?l:e.oMatchesSelector)&&void 0!==a?a:e.webkitMatchesSelector).call(e,t)}(qe,':hover')&&Qe(3e3)},We,Ye,Xe,Je,e=>{we.set(!0),n(31,De=e.clientX),n(32,Ue=e.clientY)},Ze,e=>{Q?Ze():o?Je():(Je(),l||(ae.actions.internal.togglePlay(),he.set(!1),2===e.detail&&(se({message:'double click on video'}),Xe())))},()=>{o&&Je()},e=>{Be.keyDownHandler(e)},P,C,S,M,N,L,q,T,Z,ne,oe,le,function(){_e?ae.actions.external.play():We(!0)},function(){ae.actions.external.pause()},function(e){Q||ae.actions.external.setMuted(e)},function(e){Q||e>=0&&e<=1&&ae.actions.external.setVolume(e)},Ke,Te,Oe,l,s,m,g,b,y,()=>Ye('backward'),()=>Ye('forward'),function(e){D[e?'unshift':'push']((()=>{Le=e,n(28,Le)}))},function(e){D[e?'unshift':'push']((()=>{Be=e,n(33,Be)}))},function(e){qe=e,n(29,qe)},function(e){D[e?'unshift':'push']((()=>{Ne=e,n(27,Ne)}))}]}class bl extends ue{constructor(e){super(),de(this,e,fl,hl,p,{sources:70,title:0,thumbUrl:1,unitedVideoId:71,albumId:72,statPlace:73,autoplay:74,volume:75,muted:76,fromTime:77,canRewindLive:2,supportLink:3,showAds:4,adsSlotId:5,adsParams:6,adsPreviewParam:7,duration:8,logoClickable:9,logoHidden:10,isMobile:11,showNextPrevButtons:12,nextButtonActive:13,prevButtonActive:14,endScreenVideoTitle:15,endScreenVideoThumb:16,isOneVideoPlaylist:17,outerContainerRef:78,playNextVideo:18,playPrevVideo:19,repeatPlaylist:20,callbacks:79,fullScreenTarget:80,failoverHosts:81,play:82,pause:83,setMuted:84,setVolume:85,seekTime:86},tl,[-1,-1,-1,-1])}get play(){return this.$$.ctx[82]}get pause(){return this.$$.ctx[83]}get setMuted(){return this.$$.ctx[84]}get setVolume(){return this.$$.ctx[85]}get seekTime(){return this.$$.ctx[86]}}function wl(e){k(e,'v-1oqts7t','.playerStub.v-1oqts7t{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}.stubImage.v-1oqts7t{height:60px}.stubImage-white.v-1oqts7t{filter:brightness(0) invert(1)}.title.v-1oqts7t{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 $l(e){let t,i;return{c(){t=A('div'),i=S(e[0]),T(t,'class','title v-1oqts7t')},m(e,n){V(e,t,n),x(t,i)},p(e,t){1&t&&E(i,e[0])},d(e){e&&P(t)}}}function yl(e){let t,i;return{c(){t=A('img'),g(t.src,i='data:image/svg+xml,%3csvg width=\'57\' height=\'60\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6h19.489zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z\' fill=\'%23909499\'/%3e%3c/svg%3e')||T(t,'src','data:image/svg+xml,%3csvg width=\'57\' height=\'60\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6h19.489zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z\' fill=\'%23909499\'/%3e%3c/svg%3e'),T(t,'class','stubImage v-1oqts7t'),T(t,'alt',''),j(t,'stubImage-white',e[1]||'')},m(e,i){V(e,t,i)},p(e,i){2&i&&j(t,'stubImage-white',e[1]||'')},d(e){e&&P(t)}}}function xl(e){let t,i,n,o=e[0]&&$l(e),l=(!e[0]||!e[1])&&yl(e);return{c(){t=A('div'),o&&o.c(),i=M(),l&&l.c(),T(t,'class','playerStub v-1oqts7t'),T(t,'style',n=e[1]?`background-image: url('${e[1]}')`:'')},m(e,n){V(e,t,n),o&&o.m(t,null),x(t,i),l&&l.m(t,null)},p(e,[a]){e[0]?o?o.p(e,a):(o=$l(e),o.c(),o.m(t,i)):o&&(o.d(1),o=null),e[0]&&e[1]?l&&(l.d(1),l=null):l?l.p(e,a):(l=yl(e),l.c(),l.m(t,null)),2&a&&n!==(n=e[1]?`background-image: url('${e[1]}')`:'')&&T(t,'style',n)},i:r,o:r,d(e){e&&P(t),o&&o.d(),l&&l.d()}}}function kl(e,t,i){let{title:n}=t,{thumbUrl:o}=t;return e.$$set=e=>{'title'in e&&i(0,n=e.title),'thumbUrl'in e&&i(1,o=e.thumbUrl)},[n,o]}class Vl extends ue{constructor(e){super(),de(this,e,kl,xl,p,{title:0,thumbUrl:1},wl)}}class Pl extends HTMLElement{constructor(){var e;super(),this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=!1,this.config=void 0,this._shadowRoot=this.attachShadow({mode:'open'}),this.playerContainer=document.createElement('div'),this.playerContainer.style.width='100%',this.playerContainer.style.height='100%',this._shadowRoot.append(this.playerContainer),this.logger=new i.Logger,this.log=this.logger.createComponentLog('VKVideoPlayer'),this.subscription=new i.Subscription,(null===(e=null===window||void 0===window?void 0:window.videoPlayerConfig)||void 0===e?void 0:e.debugLogs)&&this.subscription.add(this.logger.log$.subscribe((e=>{console.log('%c player web component ','background:#77dd77;',`${e.component}`,e.message)})))}connectedCallback(){const e=this.getAttribute('stub-title'),t=this.getAttribute('stub-thumb-url');this.svelteStubComponent=new Vl({target:this.playerContainer,props:{title:e,thumbUrl:t}})}disconnectedCallback(){var e,t;null===(e=this.svelteRootComponent)||void 0===e||e.$destroy(),null===(t=this.svelteStubComponent)||void 0===t||t.$destroy(),this.subscription.unsubscribe()}needToShowNextPrevButtons(){return!!this.config&&this.config.videos.length>1}isNextButtonActive(){return!!this.config&&(this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.config.videos.length-1||this.needToRepeatPlaylist))}isPrevButtonActive(){return!!this.config&&(this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist))}getNextVideoInfo(){if(!this.config)return{nextVideoTitle:void 0,nextVideoThumb:void 0};const e=this.config.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,t={}){if(!this.config)return;const{albumId:i,statPlace:n,autoplay:o,volume:l,muted:a,fromTime:s,canRewindLive:r,supportLink:c,showAds:d,adsSlotId:u,adsParams:v={},adsPreviewParam:p,logoClickable:m,logoHidden:h,isMobile:g,fullScreenTarget:f,failoverHosts:b,callbacks:w}=Object.assign(Object.assign({},this.config),t),{sources:$,title:y,thumbUrl:x,unitedVideoId:k,duration:V,adsParams:P={}}=e,z=Object.assign(Object.assign({},v),P),A=this.getNextVideoInfo(),C={sources:$,title:y,thumbUrl:x,unitedVideoId:k,albumId:i,statPlace:n,autoplay:o,muted:a,volume:l,fromTime:s,canRewindLive:r,supportLink:c,showAds:d,adsSlotId:u,adsParams:z,adsPreviewParam:p,duration:V,logoClickable:m,logoHidden:h,isMobile:g,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:A.nextVideoTitle,endScreenVideoThumb:A.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()};this.log({message:`create player, props: ${JSON.stringify(C)}`}),this.svelteRootComponent=new bl({target:this.playerContainer,props:{sources:$,title:y,thumbUrl:x,unitedVideoId:k,albumId:i,statPlace:n,autoplay:o,muted:a,volume:l,fromTime:s,canRewindLive:r,supportLink:c,showAds:d,adsSlotId:u,adsParams:z,adsPreviewParam:p,duration:V,logoClickable:m,logoHidden:h,isMobile:g,callbacks:w,failoverHosts:b,fullScreenTarget:f,outerContainerRef:this.playerContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:A.nextVideoTitle,endScreenVideoThumb:A.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist()}})}playNextVideo(){this.config&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.config.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.config&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.config.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(){var e;if(!this.config)return;const t=this.config.videos[this.currentPlayingVideoIndex];t?(null===(e=this.svelteRootComponent)||void 0===e||e.$destroy(),setTimeout((()=>this.createPlayer(t,{autoplay:!0,fromTime:0})),0)):this.log({message:'no next video'})}initPlayer(e){var t,i,n;if(!Array.isArray(e.videos)||0===e.videos.length)throw new Error('empty videos');this.config=s.default(e,(e=>e instanceof HTMLElement?e:void 0)),this.config.callbacks=null!==(t=e.callbacks)&&void 0!==t?t:{},this.currentPlayingVideoIndex=0,null===(i=this.svelteStubComponent)||void 0===i||i.$destroy(),null===(n=this.svelteRootComponent)||void 0===n||n.$destroy(),this.createPlayer(e.videos[0])}isOneVideoPlaylist(){return!!this.config&&1===this.config.videos.length}updateNextVideos(e){var t;if(!this.config)return;this.log({message:`update next videos, videos: ${JSON.stringify(e)}`}),this.config.videos.splice(this.currentPlayingVideoIndex+1),this.config.videos.push(...e);const i=this.getNextVideoInfo();null===(t=this.svelteRootComponent)||void 0===t||t.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:i.nextVideoTitle,endScreenVideoThumb:i.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}play(){var e;this.log({message:'play'}),null===(e=this.svelteRootComponent)||void 0===e||e.play()}pause(){var e;this.log({message:'pause'}),null===(e=this.svelteRootComponent)||void 0===e||e.pause()}stop(){var e,t;if(!this.config)return;this.log({message:'stop'}),null===(e=this.svelteStubComponent)||void 0===e||e.$destroy();const i=this.config.videos[0];i&&(null===(t=this.svelteRootComponent)||void 0===t||t.$destroy(),this.createPlayer(i))}setMuted(e){var t;this.log({message:`set muted, muted: ${e}`}),null===(t=this.svelteRootComponent)||void 0===t||t.setMuted(e)}setVolume(e){var t;this.log({message:`set volume, volume: ${e}`}),null===(t=this.svelteRootComponent)||void 0===t||t.setVolume(e)}setRepeat(e){var t;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,null===(t=this.svelteRootComponent)||void 0===t||t.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var t;this.log({message:`seek time, time: ${e}`}),null===(t=this.svelteRootComponent)||void 0===t||t.seekTime(e)}}exports.registerPlayerWebComponent=()=>{window.customElements.define('vk-video-player',Pl)};
6
+ "use strict";var Se=require("@vkontakte/videoplayer-core/es2015.cjs.js"),Bl=require("lodash/debounce.js"),re=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),Si=require("@vkontakte/videoplayer-statistics/es2015.cjs.js"),Il=require("lodash/cloneDeepWith.js");function B(){}function Fl(t,e){for(const i in e)t[i]=e[i];return t}function il(t){return t()}function Ai(){return Object.create(null)}function We(t){t.forEach(il)}function Re(t){return typeof t=="function"}function ve(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Jt;function Ve(t,e){return Jt||(Jt=document.createElement("a")),Jt.href=e,t===Jt.href}function Rl(t){return Object.keys(t).length===0}function hi(t,...e){if(t==null)return B;const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Ie(t){let e;return hi(t,i=>e=i)(),e}function Y(t,e,i){t.$$.on_destroy.push(hi(e,i))}function ql(t,e,i,n){if(t){const l=nl(t,e,i,n);return t[0](l)}}function nl(t,e,i,n){return t[1]&&n?Fl(i.ctx.slice(),t[1](n(e))):i.ctx}function jl(t,e,i,n){if(t[2]&&n){const l=t[2](n(i));if(e.dirty===void 0)return l;if(typeof l=="object"){const o=[],s=Math.max(e.dirty.length,l.length);for(let a=0;a<s;a+=1)o[a]=e.dirty[a]|l[a];return o}return e.dirty|l}return e.dirty}function Dl(t,e,i,n,l,o){if(l){const s=nl(e,i,n,o);t.p(s,l)}}function Hl(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function vt(t){return t==null?"":t}function f(t,e){t.appendChild(e)}function _e(t,e,i){const n=Ul(t);if(!n.getElementById(e)){const l=g("style");l.id=e,l.textContent=i,Ol(n,l)}}function Ul(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Ol(t,e){return f(t.head||t,e),e.sheet}function M(t,e,i){t.insertBefore(e,i||null)}function C(t){t.parentNode&&t.parentNode.removeChild(t)}function Ci(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function g(t){return document.createElement(t)}function Ae(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function fe(t){return document.createTextNode(t)}function T(){return fe(" ")}function Je(){return fe("")}function le(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Vt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ql(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 Yl(t){return Array.from(t.childNodes)}function Ne(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Bt(t,e,i,n){i===null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}function A(t,e,i){t.classList[i?"add":"remove"](e)}let Ot;function Ht(t){Ot=t}function ti(){if(!Ot)throw new Error("Function called outside component initialization");return Ot}function At(t){ti().$$.on_mount.push(t)}function Wl(t){ti().$$.on_destroy.push(t)}function Kl(t,e){return ti().$$.context.set(t,e),e}function Xl(t){return ti().$$.context.get(t)}function xe(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const Et=[],Ye=[],Zt=[],ui=[],Gl=Promise.resolve();let di=!1;function Jl(){di||(di=!0,Gl.then(ll))}function fi(t){Zt.push(t)}function Zl(t){ui.push(t)}const si=new Set;let Tt=0;function ll(){if(Tt!==0)return;const t=Ot;do{try{for(;Tt<Et.length;){const e=Et[Tt];Tt++,Ht(e),xl(e.$$)}}catch(e){throw Et.length=0,Tt=0,e}for(Ht(null),Et.length=0,Tt=0;Ye.length;)Ye.pop()();for(let e=0;e<Zt.length;e+=1){const i=Zt[e];si.has(i)||(si.add(i),i())}Zt.length=0}while(Et.length);for(;ui.length;)ui.pop()();di=!1,si.clear(),Ht(t)}function xl(t){if(t.fragment!==null){t.update(),We(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(fi)}}const xt=new Set;let Pt;function oe(){Pt={r:0,c:[],p:Pt}}function se(){Pt.r||We(Pt.c),Pt=Pt.p}function v(t,e){t&&t.i&&(xt.delete(t),t.i(e))}function y(t,e,i,n){if(t&&t.o){if(xt.has(t))return;xt.add(t),Pt.c.push(()=>{xt.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}const $l=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function eo(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function te(t){t&&t.c()}function $(t,e,i,n){const{fragment:l,after_update:o}=t.$$;l&&l.m(e,i),n||fi(()=>{const s=t.$$.on_mount.map(il).filter(Re);t.$$.on_destroy?t.$$.on_destroy.push(...s):We(s),t.$$.on_mount=[]}),o.forEach(fi)}function ee(t,e){const i=t.$$;i.fragment!==null&&(We(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function to(t,e){t.$$.dirty[0]===-1&&(Et.push(t),Jl(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function he(t,e,i,n,l,o,s,a=[-1]){const r=Ot;Ht(t);const u=t.$$={fragment:null,ctx:[],props:o,update:B,not_equal:l,bound:Ai(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(r?r.$$.context:[])),callbacks:Ai(),dirty:a,skip_bound:!1,root:e.target||r.$$.root};s&&s(u.root);let d=!1;if(u.ctx=i?i(t,e.props||{},(m,_,...h)=>{const b=h.length?h[0]:_;return u.ctx&&l(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),d&&to(t,m)),_}):[],u.update(),d=!0,We(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const m=Yl(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&v(t.$$.fragment),$(t,e.target,e.anchor,e.customElement),ll()}Ht(r)}class pe{$destroy(){ee(this,1),this.$destroy=B}$on(e,i){if(!Re(i))return B;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const l=n.indexOf(i);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!Rl(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Lt=[];function It(t,e){return{subscribe:Le(t,e).subscribe}}function Le(t,e=B){let i;const n=new Set;function l(a){if(ve(t,a)&&(t=a,i)){const r=!Lt.length;for(const u of n)u[1](),Lt.push(u,t);if(r){for(let u=0;u<Lt.length;u+=2)Lt[u][0](Lt[u+1]);Lt.length=0}}}function o(a){l(a(t))}function s(a,r=B){const u=[a,r];return n.add(u),n.size===1&&(i=e(l)||B),a(t),()=>{n.delete(u),n.size===0&&(i(),i=null)}}return{set:l,update:o,subscribe:s}}function nt(t,e,i){const n=!Array.isArray(t),l=n?[t]:t,o=e.length<2;return It(i,s=>{let a=!1;const r=[];let u=0,d=B;const m=()=>{if(u)return;d();const h=e(n?r[0]:r,s);o?s(h):d=Re(h)?h:B},_=l.map((h,b)=>hi(h,w=>{r[b]=w,u&=~(1<<b),a&&m()},()=>{u|=1<<b}));return a=!0,m(),function(){We(_),d()}})}const ol="1.1.15-dev.68b954d.0",io="@vkontakte/videoplayer",sl=Symbol("storeContext"),no=t=>{Kl(sl,t)},De=()=>{const t=Xl(sl);return re.assertNonNullable(t,"Store context is empty!"),t},je=(t,e)=>It(t.getValue(),i=>{const n=t.subscribe(l=>{i(l),e==null||e(l)});return()=>n.unsubscribe()}),lo=(t,e,i)=>{var n,l,o,s;const a=t.info,{width:r,height:u}=Ie(i.ui.playerSize),d=(l=(n=a.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,m=(s=(o=a.rttEstimation$.getValue())===null||o===void 0?void 0:o.toFixed(0))!==null&&s!==void 0?s:0,_=a.isAutoQualityEnabled$.getValue()?"auto":"manual",h={Version:`${io}@${ol}`,Browser:navigator.userAgent,"United video id":i.videoId,"Content host":a.hostname$.getValue(),"Connection type":a.httpConnectionType$.getValue()+(a.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${m}ms RTT`,Format:a.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Quality:`${_} ${a.currentQuality$.getValue()}`,"Available qualities":a.availableQualities$.getValue().join(", "),Position:`${Ie(i.state.positionExact$)}s`,State:`${Ie(i.playerPhase)} ${a.playbackState$.getValue()}`,"Player size":`${r}x${u}`,URL:window.location.href,Errors:Ie(i.state.errorLog$).map(({id:b})=>b).join(", ")};return Object.entries(h).map(([b,w])=>`${b}: ${w}`).join(`
7
+ `)},oo=(t,e,i)=>{const n=t.info,{width:l,height:o}=Ie(i.ui.playerSize),s={version:ol,viewport:`${l}x${o}`,volume:Math.round(Ie(i.state.volume$)*100)},a=i.videoId;a&&(s.id=a),n.currentFormat$.getValue()&&(s.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(s.cdn=n.hostname$.getValue());const d=n.intrinsicVideoSize$.getValue();d&&(s.videoSize=`${d.width}x${d.height}`);const m=n.currentBuffer$.getValue();m&&(s.buffer=Math.max(m.end-Ie(i.state.positionExact$),0));const _=n.throughputEstimation$.getValue();_&&(s.speed=_);const h=n.videoBitrate$.getValue();return h&&(s.bitrate=h),s},so=500,Mi=3e3,Ni=2e3,ao=3e3,ro=6e3,co=300,$t="\u0410\u0432\u0442\u043E",al="vk_player_preferred_volume",rl="vk_player_prefer_volume_mute",mi="vk_player_debug_panel_opened",ii=1,uo=.05,zi=1,Ti=.05,Li=10,fo=300,mo=5,vo="https://vk.com/support?act=new&from=v",go=500;var Qe;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ"})(Qe||(Qe={}));var vi="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.25 2.833c.222.74.378 1.479 1.574 2.19a.574.574 0 0 0 .12.05c1.355.35 2.028-.021 2.654-.439.663-.442.86-.314 1.124-.053l.644.643c.294.294.412.412 0 1.178-.366.68-.779 1.313-.435 2.662a.469.469 0 0 0 .05.12c.71 1.206 1.448 1.418 2.186 1.566.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.74.222-1.479.378-2.19 1.574a.469.469 0 0 0-.05.12c-.35 1.355.021 2.028.439 2.654.442.663.314.86.053 1.124l-.643.644c-.294.294-.412.412-1.178 0-.68-.366-1.313-.779-2.662-.435a.464.464 0 0 0-.12.05c-1.206.71-1.418 1.448-1.566 2.186-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.222-.74-.378-1.479-1.574-2.19a.468.468 0 0 0-.12-.05c-1.355-.35-2.028.021-2.654.439-.663.442-.86.314-1.124.053l-.644-.643c-.294-.294-.412-.412 0-1.178.366-.68.779-1.313.435-2.662a.466.466 0 0 0-.05-.12c-.71-1.206-1.448-1.418-2.186-1.566-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.74-.222 1.479-.378 2.19-1.574a.467.467 0 0 0 .05-.12c.35-1.355-.021-2.028-.439-2.654-.442-.663-.314-.86-.053-1.124l.643-.644c.294-.294.412-.412 1.178 0 .68.366 1.313.779 2.662.435a.467.467 0 0 0 .12-.05c1.206-.71 1.418-1.448 1.566-2.186.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833zM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5z' fill='white'/%3e%3c/svg%3e",ho="data:image/svg+xml,%3csvg height='24' width='24' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cpath d='M0 0h24v24H0z'/%3e%3cpath d='M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12zM10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686z' fill='white' fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e",po="data:image/svg+xml,%3csvg width='15' height='5' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646h-.468zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5z' fill='%2370C1FF'/%3e%3c/svg%3e",bo="data:image/svg+xml,%3csvg width='15' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.516 5h1.107C14.103 5 15 4.065 15 2.5S14.103 0 12.623 0h-1.107C11.191 0 11 .2 11 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM6.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S10 4.802 10 4.464V.54C10 .198 9.809 0 9.484 0s-.516.198-.516.54v1.531H7.032V.54c0-.342-.191-.54-.516-.54S6 .198 6 .54v3.989c0 .338.191.471.516.471z' fill='%2370C1FF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.338 4.909A3.9 3.9 0 0 1 2.5 5C1.037 5 0 4.135 0 2.553 0 .983 1.037 0 2.5 0 3.96 0 5 .984 5 2.553c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037C3.947 1.517 3.307.9 2.5.9c-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02z' fill='%2370C1FF'/%3e%3c/svg%3e",wo="data:image/svg+xml,%3csvg width='15' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.491.491 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536z' fill='%2370C1FF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='m2.551 1.052-1.51 2.052h1.51V1.052zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9H3.5z' fill='%2370C1FF'/%3e%3c/svg%3e",_o="data:image/svg+xml,%3csvg width='15' height='5' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537z' fill='%2370C1FF'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 0c-.353 0-.671.057-.952.173a1.492 1.492 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.778l.001.001c.173.224.412.398.712.523C1.267 4.939 1.612 5 2 5c.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.427 2.427 0 0 0 2 0zm-.573.964C1.563.86 1.75.804 2 .804c.25 0 .434.055.564.16h.001a.512.512 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.187a.637.637 0 0 1-.234-.524z' fill='%2370C1FF'/%3e%3c/svg%3e",ko="data:image/svg+xml,%3csvg width='15' height='5' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471zm-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 5z' fill='%2370C1FF'/%3e%3c/svg%3e",cl="data:image/svg+xml,%3csvg height='16' width='16' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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' fill='white'/%3e%3c/svg%3e",Ei="data:image/svg+xml,%3csvg width='12' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z' fill='white'/%3e%3c/svg%3e",yo="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697zm-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z' fill='white'/%3e%3c/svg%3e",Vo="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' 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 4H16.812a2.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093.284-.022.655-.023 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.093-.284.022-.655.023-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17.057 17.057 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492z' fill='white'/%3e%3c/svg%3e",Po="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z' fill='white'/%3e%3c/svg%3e";const ul=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const 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)}}};function So(t){_e(t,"v-1f29v8g","ul.v-1f29v8g.v-1f29v8g{margin:0;padding:0}.menu.v-1f29v8g.v-1f29v8g{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.container-mobile.v-1f29v8g.v-1f29v8g{width:100%}.menu-desktop.v-1f29v8g.v-1f29v8g{position:absolute;right:0;bottom:0}.menu-mobile.v-1f29v8g.v-1f29v8g{width:100%;background:var(--videplayer-mobile-settings-bg);font-size:15px;line-height:50px}.hidden.v-1f29v8g.v-1f29v8g{visibility:hidden;opacity:0}.menu-mobile.hidden.v-1f29v8g.v-1f29v8g{display:none}.menu-subList.v-1f29v8g.v-1f29v8g{min-width:134px;padding-bottom:0}.item.v-1f29v8g.v-1f29v8g{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.v-1f29v8g.v-1f29v8g{padding:0 14px}.item-quality.item-mobile.v-1f29v8g.v-1f29v8g{flex-direction:row-reverse}.quality-title-mobile.v-1f29v8g.v-1f29v8g{flex-grow:1}.item.v-1f29v8g.v-1f29v8g:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.v-1f29v8g.v-1f29v8g:hover{background:var(--videplayer-mobile-settings-bg)}.menu-subList.v-1f29v8g .item.v-1f29v8g{color:rgba(255, 255, 255, 0.9)}.menu-subList.v-1f29v8g .item.v-1f29v8g:last-child{margin-bottom:4px}.menu-icon.v-1f29v8g.v-1f29v8g{margin-right:16px}.menu-title.v-1f29v8g.v-1f29v8g{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.v-1f29v8g.v-1f29v8g{position:relative;opacity:0.7}.menu-valueIcon.v-1f29v8g.v-1f29v8g{position:absolute;top:10px;margin-left:4px;width:15px}.menu-valueIcon-list.v-1f29v8g.v-1f29v8g{position:absolute;top:12px;width:15px;right:6px}.menu-divider.v-1f29v8g.v-1f29v8g{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.v-1f29v8g.v-1f29v8g{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.menu-header-back-icon.v-1f29v8g.v-1f29v8g{width:16px;height:24px}.menu-header.v-1f29v8g:hover .menu-header-back-icon.v-1f29v8g{opacity:0.8;transition:opacity 0.2s}.itemIcon.v-1f29v8g.v-1f29v8g{margin-right:auto;opacity:0.9}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar{width:8px}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.v-1f29v8g.v-1f29v8g{overflow-y:auto;max-height:160px;text-align:left}.close.v-1f29v8g.v-1f29v8g{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.v-1f29v8g.v-1f29v8g:before,.close.v-1f29v8g.v-1f29v8g:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.v-1f29v8g.v-1f29v8g:before{transform:rotate(45deg)}.close.v-1f29v8g.v-1f29v8g:after{transform:rotate(-45deg)}")}function Bi(t,e,i){const n=t.slice();return n[42]=e[i],n}function Ii(t,e,i){const n=t.slice();return n[45]=e[i],n}function Fi(t){let e,i,n,l,o,s,a,r;return{c(){e=g("div"),i=g("div"),i.textContent="\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",n=T(),l=g("div"),o=T(),s=g("div"),c(l,"class","close v-1f29v8g"),c(e,"class","item menu-header v-1f29v8g"),A(e,"item-mobile",t[0]),c(s,"class","menu-divider v-1f29v8g")},m(u,d){M(u,e,d),f(e,i),f(e,n),f(e,l),M(u,o,d),M(u,s,d),a||(r=le(l,"click",t[22]),a=!0)},p(u,d){d[0]&1&&A(e,"item-mobile",u[0])},d(u){u&&C(e),u&&C(o),u&&C(s),a=!1,r()}}}function Ri(t){let e,i;return{c(){e=g("img"),c(e,"class","menu-valueIcon v-1f29v8g"),Ve(e.src,i=t[6])||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p(n,l){l[0]&64&&!Ve(e.src,i=n[6])&&c(e,"src",i)},d(n){n&&C(e)}}}function qi(t){let e,i,n,l,o,s,a,r,u,d,m;return{c(){e=g("li"),i=g("img"),l=T(),o=g("div"),o.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",s=T(),a=g("div"),r=fe(t[10]),u=fe("x"),c(i,"class","menu-icon v-1f29v8g"),Ve(i.src,n=ho)||c(i,"src",n),c(i,"alt",""),c(o,"class","menu-title v-1f29v8g"),c(a,"class","menu-value v-1f29v8g"),c(e,"class","item v-1f29v8g"),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(_,h){M(_,e,h),f(e,i),f(e,l),f(e,o),f(e,s),f(e,a),f(a,r),f(a,u),d||(m=le(e,"click",t[26]),d=!0)},p(_,h){h[0]&1024&&Ne(r,_[10]),h[0]&1&&A(e,"item-mobile",_[0])},d(_){_&&C(e),d=!1,m()}}}function ji(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b,w,N,L,p,k;return{c(){e=g("li"),i=g("img"),l=T(),o=g("div"),o.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",s=T(),a=g("li"),r=g("img"),d=T(),m=g("div"),m.textContent="\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",_=T(),h=g("li"),b=g("img"),N=T(),L=g("div"),L.textContent="\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",c(i,"class","menu-icon v-1f29v8g"),Ve(i.src,n=yo)||c(i,"src",n),c(i,"alt",""),c(o,"class","menu-title v-1f29v8g"),c(e,"class","item item-mobile v-1f29v8g"),c(e,"role","menuitemradio"),c(e,"tabindex","0"),c(r,"class","menu-icon v-1f29v8g"),Ve(r.src,u=Vo)||c(r,"src",u),c(r,"alt",""),c(m,"class","menu-title v-1f29v8g"),c(a,"class","item item-mobile v-1f29v8g"),c(a,"role","menuitemradio"),c(a,"tabindex","0"),c(b,"class","menu-icon v-1f29v8g"),Ve(b.src,w=Po)||c(b,"src",w),c(b,"alt",""),c(L,"class","menu-title v-1f29v8g"),c(h,"class","item item-mobile v-1f29v8g"),c(h,"role","menuitemradio"),c(h,"tabindex","0")},m(z,F){M(z,e,F),f(e,i),f(e,l),f(e,o),M(z,s,F),M(z,a,F),f(a,r),f(a,d),f(a,m),M(z,_,F),M(z,h,F),f(h,b),f(h,N),f(h,L),p||(k=[le(e,"click",t[28]),le(a,"click",t[29]),le(h,"click",t[30])],p=!0)},p:B,d(z){z&&C(e),z&&C(s),z&&C(a),z&&C(_),z&&C(h),p=!1,We(k)}}}function Di(t){let e,i;return{c(){e=g("img"),c(e,"class","itemIcon v-1f29v8g"),Ve(e.src,i=cl)||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p:B,d(n){n&&C(e)}}}function Hi(t){let e,i;return{c(){e=g("img"),c(e,"class","menu-valueIcon-list v-1f29v8g"),Ve(e.src,i=t[31](t[45].value))||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p(n,l){l[0]&2&&!Ve(e.src,i=n[31](n[45].value))&&c(e,"src",i)},d(n){n&&C(e)}}}function Ui(t){let e,i,n,l=t[45].displayValue+"",o,s,a,r,u,d,m=t[45].selected&&Di(),_=!t[0]&&Hi(t);function h(){return t[37](t[45])}return{c(){e=g("li"),m&&m.c(),i=T(),n=g("div"),o=fe(l),s=T(),_&&_.c(),a=T(),c(n,"class","v-1f29v8g"),A(n,"quality-title-mobile",t[0]),c(e,"class","item item-quality v-1f29v8g"),c(e,"data-value",r=t[45].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(b,w){M(b,e,w),m&&m.m(e,null),f(e,i),f(e,n),f(n,o),f(e,s),_&&_.m(e,null),f(e,a),u||(d=le(e,"click",h),u=!0)},p(b,w){t=b,t[45].selected?m?m.p(t,w):(m=Di(),m.c(),m.m(e,i)):m&&(m.d(1),m=null),w[0]&2&&l!==(l=t[45].displayValue+"")&&Ne(o,l),w[0]&1&&A(n,"quality-title-mobile",t[0]),t[0]?_&&(_.d(1),_=null):_?_.p(t,w):(_=Hi(t),_.c(),_.m(e,a)),w[0]&2&&r!==(r=t[45].value)&&c(e,"data-value",r),w[0]&1&&A(e,"item-mobile",t[0])},d(b){b&&C(e),m&&m.d(),_&&_.d(),u=!1,d()}}}function Oi(t){let e,i;return{c(){e=g("img"),c(e,"class","itemIcon v-1f29v8g"),Ve(e.src,i=cl)||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p:B,d(n){n&&C(e)}}}function Qi(t){let e,i,n,l=t[42].displayValue+"",o,s,a,r,u,d=t[42].selected&&Oi();function m(){return t[38](t[42])}return{c(){e=g("li"),d&&d.c(),i=T(),n=g("div"),o=fe(l),s=T(),c(n,"class","v-1f29v8g"),A(n,"quality-title-mobile",t[0]),c(e,"class","item item-quality v-1f29v8g"),c(e,"data-value",a=t[42].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(_,h){M(_,e,h),d&&d.m(e,null),f(e,i),f(e,n),f(n,o),f(e,s),r||(u=le(e,"click",m),r=!0)},p(_,h){t=_,t[42].selected?d?d.p(t,h):(d=Oi(),d.c(),d.m(e,i)):d&&(d.d(1),d=null),h[0]&2048&&l!==(l=t[42].displayValue+"")&&Ne(o,l),h[0]&1&&A(n,"quality-title-mobile",t[0]),h[0]&2048&&a!==(a=t[42].value)&&c(e,"data-value",a),h[0]&1&&A(e,"item-mobile",t[0])},d(_){_&&C(e),d&&d.d(),r=!1,u()}}}function Ao(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b,w,N,L,p,k,z,F,V,I,O,j,E,K,J,H,U,X,be,Z,D,ie,ce,Ce,ze,qe,de=t[0]&&Fi(t),me=t[6]&&!t[0]&&Ri(t),ue=!t[9]&&qi(t),ge=t[0]&&ji(t),ke=t[1],Q=[];for(let R=0;R<ke.length;R+=1)Q[R]=Ui(Ii(t,ke,R));let we=t[11],ae=[];for(let R=0;R<we.length;R+=1)ae[R]=Qi(Bi(t,we,R));return{c(){e=g("div"),i=g("div"),de&&de.c(),n=T(),l=g("ul"),o=g("li"),s=g("img"),r=T(),u=g("div"),u.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",d=T(),m=g("div"),_=fe(t[7]),h=T(),me&&me.c(),b=T(),ue&&ue.c(),w=T(),ge&&ge.c(),N=T(),L=g("div"),p=g("div"),k=g("img"),F=T(),V=g("div"),V.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",I=T(),O=g("div"),j=T(),E=g("ul");for(let R=0;R<Q.length;R+=1)Q[R].c();K=T(),J=g("div"),H=g("div"),U=g("img"),be=T(),Z=g("div"),Z.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",D=T(),ie=g("div"),ce=T(),Ce=g("ul");for(let R=0;R<ae.length;R+=1)ae[R].c();c(s,"class","menu-icon v-1f29v8g"),Ve(s.src,a=vi)||c(s,"src",a),c(s,"alt",""),c(u,"class","menu-title v-1f29v8g"),c(m,"class","menu-value v-1f29v8g"),c(o,"class","item v-1f29v8g"),c(o,"role","menuitemradio"),c(o,"tabindex","0"),A(o,"item-mobile",t[0]),c(l,"class","items v-1f29v8g"),A(l,"items-mobile",t[0]),c(i,"class","menu v-1f29v8g"),c(i,"role","menu"),A(i,"menu-desktop",!t[0]),A(i,"menu-mobile",t[0]),A(i,"hidden",!t[3]),Ve(k.src,z=Ei)||c(k,"src",z),c(k,"class","menu-header-back-icon v-1f29v8g"),c(k,"alt",""),c(p,"class","item menu-header v-1f29v8g"),A(p,"item-mobile",t[0]),c(O,"class","menu-divider v-1f29v8g"),c(E,"class","items v-1f29v8g"),c(E,"style",t[8]),A(E,"items-mobile",t[0]),c(L,"class","menu menu-subList v-1f29v8g"),A(L,"menu-desktop",!t[0]),A(L,"menu-mobile",t[0]),A(L,"hidden",!t[4]),Ve(U.src,X=Ei)||c(U,"src",X),c(U,"class","menu-header-back-icon v-1f29v8g"),c(U,"alt",""),c(H,"class","item menu-header v-1f29v8g"),A(H,"item-mobile",t[0]),c(ie,"class","menu-divider v-1f29v8g"),c(Ce,"class","items v-1f29v8g"),A(Ce,"items-mobile",t[0]),c(J,"class","menu menu-subList v-1f29v8g"),A(J,"menu-desktop",!t[0]),A(J,"menu-mobile",t[0]),A(J,"hidden",!t[5]),c(e,"class","v-1f29v8g"),A(e,"hidden",!t[2]),A(e,"container-mobile",t[0])},m(R,q){M(R,e,q),f(e,i),de&&de.m(i,null),f(i,n),f(i,l),f(l,o),f(o,s),f(o,r),f(o,u),f(o,d),f(o,m),f(m,_),f(m,h),me&&me.m(m,null),f(l,b),ue&&ue.m(l,null),f(l,w),ge&&ge.m(l,null),f(e,N),f(e,L),f(L,p),f(p,k),f(p,F),f(p,V),f(L,I),f(L,O),f(L,j),f(L,E);for(let x=0;x<Q.length;x+=1)Q[x].m(E,null);f(e,K),f(e,J),f(J,H),f(H,U),f(H,be),f(H,Z),f(J,D),f(J,ie),f(J,ce),f(J,Ce);for(let x=0;x<ae.length;x+=1)ae[x].m(Ce,null);ze||(qe=[le(o,"click",t[23]),le(p,"click",t[27]),le(H,"click",t[27])],ze=!0)},p(R,q){if(R[0]?de?de.p(R,q):(de=Fi(R),de.c(),de.m(i,n)):de&&(de.d(1),de=null),q[0]&128&&Ne(_,R[7]),R[6]&&!R[0]?me?me.p(R,q):(me=Ri(R),me.c(),me.m(m,null)):me&&(me.d(1),me=null),q[0]&1&&A(o,"item-mobile",R[0]),R[9]?ue&&(ue.d(1),ue=null):ue?ue.p(R,q):(ue=qi(R),ue.c(),ue.m(l,w)),R[0]?ge?ge.p(R,q):(ge=ji(R),ge.c(),ge.m(l,null)):ge&&(ge.d(1),ge=null),q[0]&1&&A(l,"items-mobile",R[0]),q[0]&1&&A(i,"menu-desktop",!R[0]),q[0]&1&&A(i,"menu-mobile",R[0]),q[0]&8&&A(i,"hidden",!R[3]),q[0]&1&&A(p,"item-mobile",R[0]),q[0]&16777219|q[1]&1){ke=R[1];let x;for(x=0;x<ke.length;x+=1){const He=Ii(R,ke,x);Q[x]?Q[x].p(He,q):(Q[x]=Ui(He),Q[x].c(),Q[x].m(E,null))}for(;x<Q.length;x+=1)Q[x].d(1);Q.length=ke.length}if(q[0]&256&&c(E,"style",R[8]),q[0]&1&&A(E,"items-mobile",R[0]),q[0]&1&&A(L,"menu-desktop",!R[0]),q[0]&1&&A(L,"menu-mobile",R[0]),q[0]&16&&A(L,"hidden",!R[4]),q[0]&1&&A(H,"item-mobile",R[0]),q[0]&33556481){we=R[11];let x;for(x=0;x<we.length;x+=1){const He=Bi(R,we,x);ae[x]?ae[x].p(He,q):(ae[x]=Qi(He),ae[x].c(),ae[x].m(Ce,null))}for(;x<ae.length;x+=1)ae[x].d(1);ae.length=we.length}q[0]&1&&A(Ce,"items-mobile",R[0]),q[0]&1&&A(J,"menu-desktop",!R[0]),q[0]&1&&A(J,"menu-mobile",R[0]),q[0]&32&&A(J,"hidden",!R[5]),q[0]&4&&A(e,"hidden",!R[2]),q[0]&1&&A(e,"container-mobile",R[0])},i:B,o:B,d(R){R&&C(e),de&&de.d(),me&&me.d(),ue&&ue.d(),ge&&ge.d(),Ci(Q,R),Ci(ae,R),ze=!1,We(qe)}}}function Co(t,e,i){let n,l,o,s,a,r,u,d,m,_,{supportLink:h}=e;const b=De(),w=b.state.currentQuality$;Y(t,w,Q=>i(36,r=Q));const N=b.state.availableQualities$;Y(t,N,Q=>i(1,a=Q));const L=b.state.isAutoQualityEnabled$;Y(t,L,Q=>i(35,s=Q));const p=b.state.currentPlaybackRate$;Y(t,p,Q=>i(10,m=Q));const k=b.state.availablePlaybackRates$;Y(t,k,Q=>i(11,_=Q));const z=b.ui.settingsMenuVisible;Y(t,z,Q=>i(2,u=Q));const F=b.ui.isMobile;Y(t,F,Q=>i(0,o=Q));const V=b.ui.isFullscreen;Y(t,V,Q=>i(34,l=Q));const I=b.state.isLive$;Y(t,I,Q=>i(9,d=Q));const O=b.ui.playerSize;Y(t,O,Q=>i(33,n=Q));const j=b.ui.debugPanelVisible;let E=!0,K=!1,J=!1;function H(){z.set(!1)}function U(){i(3,E=!1),i(4,K=!0)}function X(Q){b.actions.internal.setQuality(Q),H()}function be(Q){b.actions.internal.setPlaybackRate(Q),H()}function Z(){i(3,E=!1),i(5,J=!0)}function D(){i(3,E=!0),i(4,K=!1),i(5,J=!1)}function ie(){window.open(h,"_blank"),H(),b.actions.internal.pause()}function ce(){ul(b.actions.internal.getDebugTextData()),H()}function Ce(){j.set(!0),H()}function ze(Q){switch(Q){case Se.VideoQuality.Q_720P:return po;case Se.VideoQuality.Q_1080P:return ko;case Se.VideoQuality.Q_1440P:return bo;case Se.VideoQuality.Q_2160P:return wo;case Se.VideoQuality.Q_4320P:return _o}}function qe(Q,we,ae){if(!Q)return"...";const R=we.find(x=>x.value===Q),q=R?R.displayValue:Q;return ae?Q===Se.VideoQuality.INVARIANT?$t:`${$t} ${q}`:q}let de,me,ue;const ge=Q=>X(Q.value),ke=Q=>be(Q.value);return t.$$set=Q=>{"supportLink"in Q&&i(32,h=Q.supportLink)},t.$$.update=()=>{t.$$.dirty[0]&4&&u&&(i(3,E=!0),i(4,K=!1),i(5,J=!1)),t.$$.dirty[1]&32&&i(6,de=ze(r)),t.$$.dirty[0]&2|t.$$.dirty[1]&48&&i(7,me=qe(r,a,s)),t.$$.dirty[0]&1|t.$$.dirty[1]&12&&i(8,ue=o&&l?`max-height: ${Math.round(n.height*.6)}px`:"")},[o,a,u,E,K,J,de,me,ue,d,m,_,w,N,L,p,k,z,F,V,I,O,H,U,X,be,Z,D,ie,ce,Ce,ze,h,n,l,s,r,ge,ke]}class dl extends pe{constructor(e){super(),he(this,e,Co,Ao,ve,{supportLink:32},So,[-1,-1])}}var Mo="data:image/svg+xml,%3csvg width='34' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='17' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M24.516 11h1.107C27.103 11 28 10.066 28 8.5S27.103 6 25.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM19.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S19 6.198 19 6.54v3.989c0 .338.191.472.516.472z' fill='white'/%3e%3c/svg%3e",No="data:image/svg+xml,%3csvg width='40' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3cpath d='M15 8.5A5.5 5.5 0 0 1 20.5 3h12a5.5 5.5 0 1 1 0 11h-12A5.5 5.5 0 0 1 15 8.5z' fill='%23689FF8'/%3e%3cpath d='M30.516 11h1.107C33.103 11 34 10.066 34 8.5S33.103 6 31.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM25.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S25 6.198 25 6.54v3.989c0 .338.191.472.516.472z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.338 10.909c-.254.06-.58.091-.838.091-1.463 0-2.5-.865-2.5-2.447C19 6.983 20.037 6 21.5 6c1.46 0 2.5.984 2.5 2.553 0 .863-.274 1.46-.777 1.88l.193.29a.5.5 0 1 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 0 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02z' fill='white'/%3e%3c/svg%3e",zo="data:image/svg+xml,%3csvg width='34' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='17' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M24.517 11c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.284.516.284a.491.491 0 0 0 .499-.5c0-.14-.068-.287-.222-.478l-1.47-1.73 1.51-1.425c.13-.137.182-.25.182-.393A.474.474 0 0 0 27.515 6c-.171 0-.301.065-.445.222L25.064 8.25h-.03V6.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.537.516.537z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='m21.551 7.052-1.51 2.052h1.51V7.052zm.949 2.052V6.832c0-.81-1.089-1.14-1.556-.48l-1.805 2.469a.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 1 0 0-.9H22.5z' fill='white'/%3e%3c/svg%3e",To="data:image/svg+xml,%3csvg width='34' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='17' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M24.513 11c.323 0 .513-.198.513-.537v-.97l.49-.516 1.475 1.738c.16.205.302.284.513.284A.49.49 0 0 0 28 10.5c0-.14-.068-.287-.22-.478l-1.486-1.729 1.526-1.425c.129-.137.18-.25.18-.393A.473.473 0 0 0 27.517 6c-.17 0-.299.065-.441.222l-2.02 2.027h-.03V6.54c0-.342-.19-.54-.513-.54S24 6.198 24 6.54v3.923c0 .339.19.537.513.537z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M21 6c-.353 0-.671.057-.952.173a1.493 1.493 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.777l.001.002c.173.224.412.398.712.523.302.125.647.186 1.035.186.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.428 2.428 0 0 0 21 6zm-.573.964c.136-.105.323-.16.573-.16.25 0 .434.055.564.16h.001a.512.512 0 0 1 .203.43c0 .19-.07.333-.203.437-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.188a.636.636 0 0 1-.234-.523z' fill='white'/%3e%3c/svg%3e",Lo="data:image/svg+xml,%3csvg width='38' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z' fill='white'/%3e%3crect x='15' y='3' width='21' height='11' rx='5.5' fill='%23689FF8'/%3e%3cpath d='M28.516 11h1.107C31.103 11 32 10.066 32 8.5S31.103 6 29.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM23.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S23 6.198 23 6.54v3.989c0 .338.191.472.516.472zm-4 0c.325 0 .516-.198.516-.537V9h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407h-1.333V6.854h1.5c.28 0 .468-.16.468-.427 0-.266-.185-.427-.468-.427h-2.016c-.325 0-.516.198-.516.537v3.926c0 .339.191.537.516.537z' fill='white'/%3e%3c/svg%3e";function Eo(t){_e(t,"v-1qf7s4g",".settingsButton-icon.v-1qf7s4g{display:block;width:40px;height:24px}.settingsButton-icon.mobile.v-1qf7s4g{width:auto}")}function Bo(t){let e,i,n,l,o,s,a;return{c(){e=g("div"),i=g("div"),n=g("img"),Ve(n.src,l=t[7](t[2],t[1]))||c(n,"src",l),c(n,"alt",""),c(i,"class","settingsButton-icon v-1qf7s4g"),A(i,"mobile",t[1]),c(e,"class",o=vt(t[0])+" v-1qf7s4g"),c(e,"aria-label","\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"),c(e,"tabindex","-1"),c(e,"role","button")},m(r,u){M(r,e,u),f(e,i),f(i,n),s||(a=le(e,"click",t[6]),s=!0)},p(r,[u]){u&6&&!Ve(n.src,l=r[7](r[2],r[1]))&&c(n,"src",l),u&2&&A(i,"mobile",r[1]),u&1&&o!==(o=vt(r[0])+" v-1qf7s4g")&&c(e,"class",o)},i:B,o:B,d(r){r&&C(e),s=!1,a()}}}function Io(t,e,i){let n,l,o,{className:s=""}=e;const a=De(),r=a.state.currentQuality$;Y(t,r,h=>i(2,o=h));const u=a.ui.settingsMenuVisible;Y(t,u,h=>i(8,n=h));const d=a.ui.isMobile;Y(t,d,h=>i(1,l=h));function m(){u.set(!n)}function _(h,b){if(b)return vi;switch(h){case Se.VideoQuality.Q_720P:return Mo;case Se.VideoQuality.Q_1080P:return Lo;case Se.VideoQuality.Q_1440P:return No;case Se.VideoQuality.Q_2160P:return zo;case Se.VideoQuality.Q_4320P:return To;default:return vi}}return t.$$set=h=>{"className"in h&&i(0,s=h.className)},[s,l,o,r,u,d,m,_]}class fl extends pe{constructor(e){super(),he(this,e,Io,Bo,ve,{className:0},Eo)}}const mt=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t);const i=Math.floor(e/(60*60));e-=i*(60*60);const n=Math.floor(e/60);return e-=n*60,(i>0?[i,n,e]:[n,e]).map(o=>o>9?String(o):`0${o}`).join(":")};function Fo(t){_e(t,"v-1bjfp5n",".time.v-1bjfp5n{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums}.current.v-1bjfp5n{position:relative}.duration.v-1bjfp5n{opacity:0.7}.duration.v-1bjfp5n:before{content:' / ';white-space:pre}")}function Yi(t){let e,i;return{c(){e=g("span"),i=fe(t[2]),c(e,"class","duration v-1bjfp5n")},m(n,l){M(n,e,l),f(e,i)},p(n,l){l&4&&Ne(i,n[2])},d(n){n&&C(e)}}}function Ro(t){let e,i,n,l,o,s=t[0]&&Yi(t);return{c(){e=g("div"),i=g("span"),n=fe(t[3]),l=T(),s&&s.c(),c(i,"class","current v-1bjfp5n"),c(e,"class",o="time "+t[1]+" v-1bjfp5n")},m(a,r){M(a,e,r),f(e,i),f(i,n),f(e,l),s&&s.m(e,null)},p(a,[r]){r&8&&Ne(n,a[3]),a[0]?s?s.p(a,r):(s=Yi(a),s.c(),s.m(e,null)):s&&(s.d(1),s=null),r&2&&o!==(o="time "+a[1]+" v-1bjfp5n")&&c(e,"class",o)},i:B,o:B,d(a){a&&C(e),s&&s.d()}}}function qo(t,e,i){let{duration:n}=e,{position:l}=e,{showDuration:o=!0}=e,{className:s=""}=e,a,r;return t.$$set=u=>{"duration"in u&&i(4,n=u.duration),"position"in u&&i(5,l=u.position),"showDuration"in u&&i(0,o=u.showDuration),"className"in u&&i(1,s=u.className)},t.$$.update=()=>{t.$$.dirty&16&&i(2,a=mt(n)),t.$$.dirty&32&&i(3,r=mt(l))},[o,s,a,r,n,l]}class jo extends pe{constructor(e){super(),he(this,e,qo,Ro,ve,{duration:4,position:5,showDuration:0,className:1},Fo)}}function Do(t){_e(t,"v-mgwd2i",".slider.v-mgwd2i.v-mgwd2i{position:relative;height:var(--videoplayer-slider-height);border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-bg);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.v-mgwd2i.v-mgwd2i{cursor:default}.slider.v-mgwd2i.v-mgwd2i:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--videoplayer-controls-height) - var(--videoplayer-slider-height)) / 2);height:var(--videoplayer-controls-height)}.bars.v-mgwd2i.v-mgwd2i{position:absolute;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);overflow:hidden}.loaded.v-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-loaded-bg);transition:transform 0.2s}.filled.v-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background-color:var(--videoplayer-slider-filled-bg)}.slider.square.v-mgwd2i.v-mgwd2i,.slider.square.v-mgwd2i>.bars.v-mgwd2i,.slider.square.v-mgwd2i .loaded.v-mgwd2i,.slider.square.v-mgwd2i .filled.v-mgwd2i{border-radius:unset}.filled.active-live.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-active-live-bg)}.filled.ads.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-ads)}.handleWrap.v-mgwd2i.v-mgwd2i{position:absolute;left:-100%;width:100%}.handle.v-mgwd2i.v-mgwd2i{position:absolute;width:var(--videoplayer-slider-handle-size);height:var(--videoplayer-slider-handle-size);right:calc(-1 * var(--videoplayer-slider-handle-size) / 2);top:calc((var(--videoplayer-slider-height) - var(--videoplayer-slider-handle-size)) / 2);border-radius:50%;background-color:var(--videoplayer-slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.v-mgwd2i.v-mgwd2i{background-color:var(--videoplayer-slider-filled-active-live-bg)}.slider.v-mgwd2i:hover .handle.v-mgwd2i,.slider-dragging.v-mgwd2i .handle.v-mgwd2i{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.v-mgwd2i .handle.v-mgwd2i{transform:scale(1.3)}.slider-vertical.v-mgwd2i.v-mgwd2i{position:absolute;left:-26px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.hidden.v-mgwd2i.v-mgwd2i{visibility:hidden;opacity:0}")}function Ho(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b;return{c(){e=g("div"),i=g("div"),n=g("div"),o=T(),s=g("div"),r=T(),u=g("div"),d=g("div"),c(n,"class","loaded v-mgwd2i"),c(n,"style",l=`transform: translateX(${t[6]*100}%);`),c(s,"class","filled v-mgwd2i"),c(s,"style",a=`transform: translateX(${t[7]*100}%);`),A(s,"active-live",t[3]),A(s,"ads",t[4]),c(i,"class","bars v-mgwd2i"),c(d,"class","handle v-mgwd2i"),A(d,"active-live",t[3]),c(u,"class","handleWrap v-mgwd2i"),c(u,"style",m=`transform: translateX(${t[8]*100}%);`),A(u,"hidden",t[4]),c(e,"class",_="slider "+t[0]+" v-mgwd2i"),c(e,"aria-label",t[9]),c(e,"aria-valuemin",t[10]),c(e,"aria-valuemax",t[11]),c(e,"aria-valuenow",t[12]),c(e,"aria-valuetext",t[13]),c(e,"role","slider"),c(e,"tabindex","0"),A(e,"slider-dragging",t[15]),A(e,"hidden",t[1]),A(e,"slider-vertical",t[2]),A(e,"no-handle",t[4]),A(e,"square",t[5])},m(w,N){M(w,e,N),f(e,i),f(i,n),f(i,o),f(i,s),f(e,r),f(e,u),f(u,d),t[27](e),h||(b=[le(e,"pointerdown",Vt(t[16])),le(e,"pointermove",Vt(t[17])),le(e,"pointerup",Vt(t[18])),le(e,"pointerenter",Vt(t[19])),le(e,"pointerleave",Vt(t[20]))],h=!0)},p(w,[N]){N&64&&l!==(l=`transform: translateX(${w[6]*100}%);`)&&c(n,"style",l),N&128&&a!==(a=`transform: translateX(${w[7]*100}%);`)&&c(s,"style",a),N&8&&A(s,"active-live",w[3]),N&16&&A(s,"ads",w[4]),N&8&&A(d,"active-live",w[3]),N&256&&m!==(m=`transform: translateX(${w[8]*100}%);`)&&c(u,"style",m),N&16&&A(u,"hidden",w[4]),N&1&&_!==(_="slider "+w[0]+" v-mgwd2i")&&c(e,"class",_),N&512&&c(e,"aria-label",w[9]),N&1024&&c(e,"aria-valuemin",w[10]),N&2048&&c(e,"aria-valuemax",w[11]),N&4096&&c(e,"aria-valuenow",w[12]),N&8192&&c(e,"aria-valuetext",w[13]),N&32769&&A(e,"slider-dragging",w[15]),N&3&&A(e,"hidden",w[1]),N&5&&A(e,"slider-vertical",w[2]),N&17&&A(e,"no-handle",w[4]),N&33&&A(e,"square",w[5])},i:B,o:B,d(w){w&&C(e),t[27](null),h=!1,We(b)}}}function Uo(t,e,i){let{className:n=""}=e,{isHidden:l=!1}=e,{isVertical:o=!1}=e,{isActiveLive:s=!1}=e,{isAds:a=!1}=e,{squareBorders:r=!1}=e,u,d,{onPointerDown:m=B}=e,{onHandleMove:_=B}=e,{onPointerUp:h=B}=e,{onPointerEnter:b=B}=e,{onPointerMove:w=B}=e,{onPointerLeave:N=B}=e,{loadedProgress:L=0}=e,{filledProgress:p=0}=e,{handleProgress:k=0}=e,{ariaLabel:z=""}=e,{ariaValueMin:F=void 0}=e,{ariaValueMax:V=void 0}=e,{ariaValueNow:I=void 0}=e,{ariaValueText:O=""}=e,j=!1;function E(D){if(j)return;i(15,j=!0),d=u.getBoundingClientRect();const ie=X(D.clientX,D.clientY);m(ie),u.setPointerCapture(D.pointerId)}function K(D){const ie=X(D.clientX,D.clientY),ce=be(D.clientX);w(ie,ce),j&&_(ie)}function J(D){if(!j)return;i(15,j=!1);const ie=X(D.clientX,D.clientY);h(ie)}function H(D){d=u.getBoundingClientRect();const ie=X(D.clientX,D.clientY),ce=be(D.clientX);b(ie,ce)}function U(){N()}function X(D,ie){return o?Math.max(0,Math.min(1,(d.height-(ie-d.top))/d.height)):Math.min(Math.max(D-d.x,0),d.width)/d.width}function be(D){return Math.min(Math.max(D-d.x,0),d.width)}function Z(D){Ye[D?"unshift":"push"](()=>{u=D,i(14,u)})}return t.$$set=D=>{"className"in D&&i(0,n=D.className),"isHidden"in D&&i(1,l=D.isHidden),"isVertical"in D&&i(2,o=D.isVertical),"isActiveLive"in D&&i(3,s=D.isActiveLive),"isAds"in D&&i(4,a=D.isAds),"squareBorders"in D&&i(5,r=D.squareBorders),"onPointerDown"in D&&i(21,m=D.onPointerDown),"onHandleMove"in D&&i(22,_=D.onHandleMove),"onPointerUp"in D&&i(23,h=D.onPointerUp),"onPointerEnter"in D&&i(24,b=D.onPointerEnter),"onPointerMove"in D&&i(25,w=D.onPointerMove),"onPointerLeave"in D&&i(26,N=D.onPointerLeave),"loadedProgress"in D&&i(6,L=D.loadedProgress),"filledProgress"in D&&i(7,p=D.filledProgress),"handleProgress"in D&&i(8,k=D.handleProgress),"ariaLabel"in D&&i(9,z=D.ariaLabel),"ariaValueMin"in D&&i(10,F=D.ariaValueMin),"ariaValueMax"in D&&i(11,V=D.ariaValueMax),"ariaValueNow"in D&&i(12,I=D.ariaValueNow),"ariaValueText"in D&&i(13,O=D.ariaValueText)},[n,l,o,s,a,r,L,p,k,z,F,V,I,O,u,j,E,K,J,H,U,m,_,h,b,w,N,Z]}class pi extends pe{constructor(e){super(),he(this,e,Uo,Ho,ve,{className:0,isHidden:1,isVertical:2,isActiveLive:3,isAds:4,squareBorders:5,onPointerDown:21,onHandleMove:22,onPointerUp:23,onPointerEnter:24,onPointerMove:25,onPointerLeave:26,loadedProgress:6,filledProgress:7,handleProgress:8,ariaLabel:9,ariaValueMin:10,ariaValueMax:11,ariaValueNow:12,ariaValueText:13},Do)}}function Oo(t){_e(t,"v-t7t1oe",".icon.v-t7t1oe.v-t7t1oe{display:block;width:24px;height:24px}.icon.v-t7t1oe .cross.v-t7t1oe{visibility:hidden}.icon[data-value='off'].v-t7t1oe .wave1.v-t7t1oe,.icon[data-value='off'].v-t7t1oe .wave2.v-t7t1oe{visibility:hidden}.icon[data-value='off'].v-t7t1oe .cross.v-t7t1oe{visibility:visible}.icon[data-value='mid'].v-t7t1oe .wave2.v-t7t1oe,.icon[data-value='min'].v-t7t1oe .wave2.v-t7t1oe{visibility:hidden}.volumeBar.v-t7t1oe.v-t7t1oe{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.v-t7t1oe.v-t7t1oe{padding:0;width:0}")}function Qo(t){let e,i,n,l,o,s,a,r,u,d,m,_;return u=new pi({props:{className:t[0]?"volumeBar-slider-vertical":"",isHidden:t[0]&&!t[1],isVertical:t[0],onPointerDown:t[6],onHandleMove:t[7],onPointerUp:t[8],onPointerEnter:t[0]?t[9]:B,onPointerLeave:t[0]?t[10]:B,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[3]*100),ariaValueText:`${Math.round(t[3]*100)}%`,filledProgress:t[3],handleProgress:t[3]}}),{c(){e=g("div"),i=Ae("svg"),n=Ae("g"),l=Ae("path"),o=Ae("path"),s=Ae("path"),a=T(),r=g("div"),te(u.$$.fragment),c(l,"class","wave2 v-t7t1oe"),c(l,"d","M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032zm3-1.99999997c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0 .2637116.26371158.6207023.73969919.9665078 1.43131016.5167785 1.03355701.842501 2.25503497.8892639 3.71655167-.0467629 1.4032299-.3724854 2.6247079-.8892639 3.6582649-.3458055.6916109-.7027962 1.1675985-.9665078 1.4313101-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.1375896-.1375897.3825507-.4642045.638697-.9764971.4071252-.8142505.6673665-1.7901701.7054825-2.8756411-.038116-1.1437578-.2983573-2.11967743-.7054825-2.93392787-.2561463-.51229266-.5011074-.83890747-.638697-.9764971z"),c(o,"class","wave1 v-t7t1oe"),c(o,"d","M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032z"),c(s,"class","cross v-t7t1oe"),c(s,"d","M20 10.7625631l2.3812816-2.38128153c.3417087-.34170876.8957281-.34170876 1.2374368 0 .3417088.34170875.3417088.89572811 0 1.23743686L21.2374369 12l2.3812815 2.3812816c.3417088.3417087.3417088.8957281 0 1.2374368-.3417087.3417088-.8957281.3417088-1.2374368 0L20 13.2374369l-2.3812816 2.3812815c-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368L18.7625631 12l-2.3812815-2.38128157c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0zm-7.019157 8.060199c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545z"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(i,"xmlns","http://www.w3.org/2000/svg"),c(i,"class","icon v-t7t1oe"),c(i,"data-value",t[2]),c(e,"tabindex","0"),c(e,"role","button"),c(r,"class","volumeBar v-t7t1oe"),A(r,"volumeBar-vertical",t[0])},m(h,b){M(h,e,b),f(e,i),f(i,n),f(n,l),f(n,o),f(n,s),M(h,a,b),M(h,r,b),$(u,r,null),d=!0,m||(_=[le(e,"mouseenter",function(){Re(t[0]?t[11]:B)&&(t[0]?t[11]:B).apply(this,arguments)}),le(e,"mouseleave",function(){Re(t[0]?t[12]:B)&&(t[0]?t[12]:B).apply(this,arguments)}),le(e,"click",t[15])],m=!0)},p(h,[b]){t=h,(!d||b&4)&&c(i,"data-value",t[2]);const w={};b&1&&(w.className=t[0]?"volumeBar-slider-vertical":""),b&3&&(w.isHidden=t[0]&&!t[1]),b&1&&(w.isVertical=t[0]),b&1&&(w.onPointerEnter=t[0]?t[9]:B),b&1&&(w.onPointerLeave=t[0]?t[10]:B),b&8&&(w.ariaValueNow=Math.round(t[3]*100)),b&8&&(w.ariaValueText=`${Math.round(t[3]*100)}%`),b&8&&(w.filledProgress=t[3]),b&8&&(w.handleProgress=t[3]),u.$set(w),(!d||b&1)&&A(r,"volumeBar-vertical",t[0])},i(h){d||(v(u.$$.fragment,h),d=!0)},o(h){y(u.$$.fragment,h),d=!1},d(h){h&&C(e),h&&C(a),h&&C(r),ee(u),m=!1,We(_)}}}function Yo(t,e){return e?"off":t>.5?"max":t>.2?"mid":t>0?"min":"off"}function Wo(t,e,i){let n,l,{isVerticalVolume:o=!1}=e;const s=De(),a=s.state.volume$;Y(t,a,j=>i(13,n=j));const r=s.state.muted$;Y(t,r,j=>i(14,l=j));const u=s.actions.internal.setVolume;let d=!1,m,_,h,b=1,w=!1;function N(j){b=n,u(j)}function L(j){u(j)}function p(j){const E=j;u(E,E===0?b:E)}function k(){w=!0}function z(){w=!1,I()}function F(){clearTimeout(m),i(1,d=!0)}function V(){I()}function I(){m=window.setTimeout(()=>{w||i(1,d=!1)},co)}function O(j){xe.call(this,t,j)}return t.$$set=j=>{"isVerticalVolume"in j&&i(0,o=j.isVerticalVolume)},t.$$.update=()=>{t.$$.dirty&24576&&i(2,_=Yo(n,l)),t.$$.dirty&24576&&i(3,h=l?0:n)},[o,d,_,h,a,r,N,L,p,k,z,F,V,n,l,O]}class Ko extends pe{constructor(e){super(),he(this,e,Wo,Qo,ve,{isVerticalVolume:0},Oo)}}function Xo(t){_e(t,"v-1fkqq1h",".container.v-1fkqq1h{display:flex;align-items:center;height:100%;transition:var(--videoplayer-button-hover-transition);will-change:opacity;cursor:pointer;-webkit-tap-highlight-color:transparent}.container.v-1fkqq1h:hover{opacity:0.8}.disabled.v-1fkqq1h{pointer-events:none}")}function Go(t){let e,i,n;const l=t[3].default,o=ql(l,t,t[2],null);return{c(){e=g("div"),o&&o.c(),c(e,"class",i="container "+t[0]+" v-1fkqq1h"),A(e,"disabled",t[1])},m(s,a){M(s,e,a),o&&o.m(e,null),n=!0},p(s,[a]){o&&o.p&&(!n||a&4)&&Dl(o,l,s,s[2],n?jl(l,s[2],a,null):Hl(s[2]),null),(!n||a&1&&i!==(i="container "+s[0]+" v-1fkqq1h"))&&c(e,"class",i),(!n||a&3)&&A(e,"disabled",s[1])},i(s){n||(v(o,s),n=!0)},o(s){y(o,s),n=!1},d(s){s&&C(e),o&&o.d(s)}}}function Jo(t,e,i){let{$$slots:n={},$$scope:l}=e,{className:o=""}=e,{disabled:s=!1}=e;return t.$$set=a=>{"className"in a&&i(0,o=a.className),"disabled"in a&&i(1,s=a.disabled),"$$scope"in a&&i(2,l=a.$$scope)},[o,s,l,n]}class ot extends pe{constructor(e){super(),he(this,e,Jo,Go,ve,{className:0,disabled:1},Xo)}}function Zo(t){_e(t,"v-daygaf",".icon.v-daygaf{display:block;width:24px;height:24px}")}function xo(t){let e;return{c(){e=Ae("path"),c(e,"class","_enter"),c(e,"d","M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z")},m(i,n){M(i,e,n)},d(i){i&&C(e)}}}function $o(t){let e;return{c(){e=Ae("path"),c(e,"class","_exit"),c(e,"d","M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z")},m(i,n){M(i,e,n)},d(i){i&&C(e)}}}function es(t){let e,i,n,l,o;function s(u,d){return u[0]?$o:xo}let a=s(t),r=a(t);return{c(){e=g("div"),i=Ae("svg"),n=Ae("g"),r.c(),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(i,"class","icon v-daygaf"),c(i,"xmlns","http://www.w3.org/2000/svg"),c(e,"role","button"),c(e,"tabindex","0")},m(u,d){M(u,e,d),f(e,i),f(i,n),r.m(n,null),l||(o=le(e,"click",t[2]),l=!0)},p(u,[d]){a!==(a=s(u))&&(r.d(1),r=a(u),r&&(r.c(),r.m(n,null)))},i:B,o:B,d(u){u&&C(e),r.d(),l=!1,o()}}}function ts(t,e,i){let n;const o=De().ui.isFullscreen;Y(t,o,a=>i(0,n=a));function s(a){xe.call(this,t,a)}return[n,o,s]}class is extends pe{constructor(e){super(),he(this,e,ts,es,ve,{},Zo)}}var gi="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z' fill='white'/%3e%3c/svg%3e",Wi="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z' fill='white'/%3e%3c/svg%3e",ns="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.668.668 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6v3.096z' fill='white'/%3e%3c/svg%3e",Ut;(function(t){t.AUTO="auto"})(Ut||(Ut={}));var Pe;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed"})(Pe||(Pe={}));var lt;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(lt||(lt={}));var Fe;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(Fe||(Fe={}));function ls(t){_e(t,"v-1kcq5gq",".container-mobile.v-1kcq5gq{width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center;position:relative}.icon.v-1kcq5gq{display:block;width:24px;height:24px}.icon-mobile.v-1kcq5gq{position:relative;width:48px;height:48px}.icon-background-mobile.v-1kcq5gq{position:absolute;top:0;left:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);width:100%;height:100%}")}function os(t){let e,i,n,l,o,s;return{c(){e=g("div"),i=g("img"),Ve(i.src,n=t[2])||c(i,"src",n),c(i,"class","icon v-1kcq5gq"),c(i,"alt",""),c(e,"class",l=vt(t[0])+" v-1kcq5gq"),c(e,"role","button"),c(e,"tabindex","0")},m(a,r){M(a,e,r),f(e,i),o||(s=le(e,"click",function(){Re(t[1])&&t[1].apply(this,arguments)}),o=!0)},p(a,r){t=a,r&4&&!Ve(i.src,n=t[2])&&c(i,"src",n),r&1&&l!==(l=vt(t[0])+" v-1kcq5gq")&&c(e,"class",l)},d(a){a&&C(e),o=!1,s()}}}function ss(t){let e,i,n,l,o,s,a;return{c(){e=g("div"),i=g("div"),n=T(),l=g("img"),c(i,"class","icon-background-mobile v-1kcq5gq"),Ve(l.src,o=t[2])||c(l,"src",o),c(l,"class","icon-mobile v-1kcq5gq"),c(l,"alt",""),c(e,"class","container-mobile v-1kcq5gq"),c(e,"role","button"),c(e,"tabindex","0")},m(r,u){M(r,e,u),f(e,i),f(e,n),f(e,l),s||(a=le(e,"click",function(){Re(t[1])&&t[1].apply(this,arguments)}),s=!0)},p(r,u){t=r,u&4&&!Ve(l.src,o=t[2])&&c(l,"src",o)},d(r){r&&C(e),s=!1,a()}}}function as(t){let e;function i(o,s){return o[3]?ss:os}let n=i(t),l=n(t);return{c(){l.c(),e=Je()},m(o,s){l.m(o,s),M(o,e,s)},p(o,[s]){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)))},i:B,o:B,d(o){l.d(o),o&&C(e)}}}function rs(t,e,i){let n,l,o,{isEnded:s}=e,{isAds:a}=e,{playbackState:r}=e,{adPlaybackState:u}=e,{className:d=""}=e,{handlePlayClick:m}=e,{repeatPlaylist:_}=e,{isOneVideoPlaylist:h}=e;const w=De().ui.isMobile;Y(t,w,p=>i(3,o=p));function N(p,k){return k?ns:p===Se.PlaybackState.PLAYING?Wi:gi}function L(p){return p===Fe.PLAYING?Wi:gi}return t.$$set=p=>{"isEnded"in p&&i(5,s=p.isEnded),"isAds"in p&&i(6,a=p.isAds),"playbackState"in p&&i(7,r=p.playbackState),"adPlaybackState"in p&&i(8,u=p.adPlaybackState),"className"in p&&i(0,d=p.className),"handlePlayClick"in p&&i(9,m=p.handlePlayClick),"repeatPlaylist"in p&&i(10,_=p.repeatPlaylist),"isOneVideoPlaylist"in p&&i(11,h=p.isOneVideoPlaylist)},t.$$.update=()=>{t.$$.dirty&480&&i(2,n=a?L(u):N(r,s)),t.$$.dirty&3680&&i(1,l=!a&&s&&!h?_:m)},[d,l,n,o,w,s,a,r,u,m,_,h]}class bi extends pe{constructor(e){super(),he(this,e,rs,as,ve,{isEnded:5,isAds:6,playbackState:7,adPlaybackState:8,className:0,handlePlayClick:9,repeatPlaylist:10,isOneVideoPlaylist:11},ls)}}var ml="data:image/svg+xml,%3csvg width='26' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath 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' fill='white'/%3e%3c/svg%3e";function cs(t){_e(t,"v-1tmb7ku",".container-mobile-prev.v-1tmb7ku{margin-right:12px}.container-mobile-next.v-1tmb7ku{margin-right:12px}.disabled.v-1tmb7ku{opacity:0.4;pointer-events:none}.icon.v-1tmb7ku{display:block;height:24px}.icon-mobile.v-1tmb7ku{height:32px}.icon-prev.v-1tmb7ku{transform:scaleX(-1)}")}function us(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("img"),c(i,"class","icon v-1tmb7ku"),Ve(i.src,n=ml)||c(i,"src",n),c(i,"alt",""),A(i,"icon-prev",t[1]==="prev"),c(e,"role","button"),c(e,"tabindex","0"),c(e,"class","v-1tmb7ku"),A(e,"disabled",t[0])},m(s,a){M(s,e,a),f(e,i),l||(o=le(e,"click",t[5]),l=!0)},p(s,a){a&2&&A(i,"icon-prev",s[1]==="prev"),a&1&&A(e,"disabled",s[0])},d(s){s&&C(e),l=!1,o()}}}function ds(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("img"),c(i,"class","icon-mobile v-1tmb7ku"),Ve(i.src,n=ml)||c(i,"src",n),c(i,"alt",""),A(i,"icon-prev",t[1]==="prev"),c(e,"role","button"),c(e,"tabindex","0"),c(e,"class","v-1tmb7ku"),A(e,"container-mobile-prev",t[1]==="prev"),A(e,"container-mobile-next",t[1]==="next"),A(e,"disabled",t[0])},m(s,a){M(s,e,a),f(e,i),l||(o=le(e,"click",t[4]),l=!0)},p(s,a){a&2&&A(i,"icon-prev",s[1]==="prev"),a&2&&A(e,"container-mobile-prev",s[1]==="prev"),a&2&&A(e,"container-mobile-next",s[1]==="next"),a&1&&A(e,"disabled",s[0])},d(s){s&&C(e),l=!1,o()}}}function fs(t){let e;function i(o,s){return o[2]?ds:us}let n=i(t),l=n(t);return{c(){l.c(),e=Je()},m(o,s){l.m(o,s),M(o,e,s)},p(o,[s]){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e.parentNode,e)))},i:B,o:B,d(o){l.d(o),o&&C(e)}}}function ms(t,e,i){let n,{disabled:l=!1}=e,{type:o}=e;const a=De().ui.isMobile;Y(t,a,d=>i(2,n=d));function r(d){xe.call(this,t,d)}function u(d){xe.call(this,t,d)}return t.$$set=d=>{"disabled"in d&&i(0,l=d.disabled),"type"in d&&i(1,o=d.type)},[l,o,n,a,r,u]}class ni extends pe{constructor(e){super(),he(this,e,ms,fs,ve,{disabled:0,type:1},cs)}}var vl="data:image/svg+xml,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265zM6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197H6z' fill='white'/%3e%3c/svg%3e";function vs(t){_e(t,"v-j4644b",".no-hover.v-j4644b{pointer-events:none}.icon.v-j4644b{display:block;width:24px;height:24px}")}function gs(t){let e,i;return{c(){e=g("img"),Ve(e.src,i=vl)||c(e,"src",i),c(e,"class","icon v-j4644b"),c(e,"alt","")},m(n,l){M(n,e,l)},p:B,d(n){n&&C(e)}}}function hs(t){let e,i,n,l,o;return{c(){e=g("a"),i=g("img"),Ve(i.src,n=vl)||c(i,"src",n),c(i,"class","icon v-j4644b"),c(i,"alt",""),c(e,"href","https://vk.com/video"),c(e,"target","_blank"),c(e,"rel","noreferrer")},m(s,a){M(s,e,a),f(e,i),l||(o=le(e,"click",t[2]),l=!0)},p:B,d(s){s&&C(e),l=!1,o()}}}function ps(t){let e,i;function n(s,a){return s[1]?hs:gs}let l=n(t),o=l(t);return{c(){e=g("div"),o.c(),c(e,"class",i=vt(t[0])+" v-j4644b"),c(e,"role","button"),c(e,"tabindex","0"),A(e,"no-hover",!t[1])},m(s,a){M(s,e,a),o.m(e,null)},p(s,[a]){l===(l=n(s))&&o?o.p(s,a):(o.d(1),o=l(s),o&&(o.c(),o.m(e,null))),a&1&&i!==(i=vt(s[0])+" v-j4644b")&&c(e,"class",i),a&3&&A(e,"no-hover",!s[1])},i:B,o:B,d(s){s&&C(e),o.d()}}}function bs(t,e,i){let{className:n=""}=e,{logoClickable:l=!1}=e;function o(s){xe.call(this,t,s)}return t.$$set=s=>{"className"in s&&i(0,n=s.className),"logoClickable"in s&&i(1,l=s.logoClickable)},[n,l,o]}class gl extends pe{constructor(e){super(),he(this,e,bs,ps,ve,{className:0,logoClickable:1},vs)}}function ws(t){_e(t,"v-1gdbwrb",".icon.v-1gdbwrb{display:block;width:24px;height:24px}.wave.v-1gdbwrb{animation-duration:1s;animation-iteration-count:infinite}.wave1.v-1gdbwrb{animation-name:v-1gdbwrb-wave1}.wave2.v-1gdbwrb{animation-name:v-1gdbwrb-wave2}.wave3.v-1gdbwrb{animation-name:v-1gdbwrb-wave3}@keyframes v-1gdbwrb-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function Ki(t){let e,i,n,l;function o(r,u){if(r[1]===Se.ChromecastState.AVAILABLE)return ys;if(r[1]===Se.ChromecastState.CONNECTED)return ks;if(r[1]===Se.ChromecastState.CONNECTING)return _s}let s=o(t),a=s&&s(t);return{c(){e=g("div"),a&&a.c(),c(e,"class",i=vt(t[0])+" v-1gdbwrb"),c(e,"role","button"),c(e,"tabindex","0")},m(r,u){M(r,e,u),a&&a.m(e,null),n||(l=le(e,"click",t[4]),n=!0)},p(r,u){s!==(s=o(r))&&(a&&a.d(1),a=s&&s(r),a&&(a.c(),a.m(e,null))),u&1&&i!==(i=vt(r[0])+" v-1gdbwrb")&&c(e,"class",i)},d(r){r&&C(e),a&&a.d(),n=!1,l()}}}function _s(t){let e,i,n,l,o,s,a;return{c(){e=Ae("svg"),i=Ae("g"),n=Ae("path"),l=Ae("path"),o=Ae("path"),s=Ae("path"),a=Ae("path"),c(n,"class","wave wave1 v-1gdbwrb"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"opacity",".3"),c(n,"fill","#fff"),c(l,"class","wave wave2 v-1gdbwrb"),c(l,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(l,"opacity",".3"),c(l,"fill","#fff"),c(o,"class","wave wave3 v-1gdbwrb"),c(o,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(o,"opacity",".3"),c(o,"fill","#fff"),c(s,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(s,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(r,u){M(r,e,u),f(e,i),f(i,n),f(i,l),f(i,o),f(i,s),f(i,a)},d(r){r&&C(e)}}}function ks(t){let e,i,n,l;return{c(){e=Ae("svg"),i=Ae("g"),n=Ae("path"),l=Ae("path"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2a9 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"),c(n,"fill","#fff"),c(l,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){M(o,e,s),f(e,i),f(i,n),f(i,l)},d(o){o&&C(e)}}}function ys(t){let e,i,n,l;return{c(){e=Ae("svg"),i=Ae("g"),n=Ae("path"),l=Ae("path"),c(n,"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"),c(n,"fill","#fff"),c(l,"d","M0 0h24v24H0z"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"class","icon v-1gdbwrb"),c(e,"width","22"),c(e,"height","22"),c(e,"viewBox","0 0 24 24"),c(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){M(o,e,s),f(e,i),f(i,n),f(i,l)},d(o){o&&C(e)}}}function Vs(t){let e,i=t[1]!==Se.ChromecastState.NOT_AVAILABLE&&Ki(t);return{c(){i&&i.c(),e=Je()},m(n,l){i&&i.m(n,l),M(n,e,l)},p(n,[l]){n[1]!==Se.ChromecastState.NOT_AVAILABLE?i?i.p(n,l):(i=Ki(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:B,o:B,d(n){i&&i.d(n),n&&C(e)}}}function Ps(t,e,i){let n,{className:l=""}=e;const s=De().state.chromecastState$;Y(t,s,u=>i(3,n=u));let a;function r(u){xe.call(this,t,u)}return t.$$set=u=>{"className"in u&&i(0,l=u.className)},t.$$.update=()=>{t.$$.dirty&8&&i(1,a=n)},[l,a,s,n,r]}class Ss extends pe{constructor(e){super(),he(this,e,Ps,Vs,ve,{className:0},ws)}}var As="data:image/svg+xml,%3csvg viewBox='0 0 42 20' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.41 1A6.46 6.46 0 0 0 3 1.55 3.52 3.52 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.52 3.52 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.52 3.52 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.52 3.52 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z' fill='none' stroke='white' stroke-width='2'/%3e%3cpath d='M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.49.49 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.49.49 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.89.89 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.89.89 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9z' fill='%23f0f2f5' fill-rule='evenodd'/%3e%3c/svg%3e",Cs="data:image/svg+xml,%3csvg width='42' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='42' height='20' rx='5' fill='%23FF3347'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1zm7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0V6zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2h-4zm-8.325 9.31-2.55-7.824a.993.993 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a.993.993 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z' fill='%23F2F3F5'/%3e%3c/svg%3e";function Ms(t){_e(t,"v-rwtbzf",".icon.v-rwtbzf{display:block;width:42px;height:20px}")}function Ns(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("img"),Ve(i.src,n=t[0])||c(i,"src",n),c(i,"class","icon v-rwtbzf"),c(i,"alt",""),c(e,"role","button"),c(e,"tabindex","0")},m(s,a){M(s,e,a),f(e,i),l||(o=le(e,"click",t[2]),l=!0)},p(s,[a]){a&1&&!Ve(i.src,n=s[0])&&c(i,"src",n)},i:B,o:B,d(s){s&&C(e),l=!1,o()}}}function zs(t,e,i){let{isActiveLive:n=!1}=e,l="";function o(s){xe.call(this,t,s)}return t.$$set=s=>{"isActiveLive"in s&&i(1,n=s.isActiveLive)},t.$$.update=()=>{t.$$.dirty&2&&i(0,l=n?Cs:As)},[l,n,o]}class Ts extends pe{constructor(e){super(),he(this,e,zs,Ns,ve,{isActiveLive:1},Ms)}}var Xi="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cpath d='M0 0h24v24H0z'/%3e%3cpath fill='white' d='M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765l.93-.895Zm2.88-2.77 1.704-1.642A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z'/%3e%3c/g%3e%3c/svg%3e",Gi="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cpath d='M0 0h24v24H0z'/%3e%3cpath fill='white' fill-rule='nonzero' d='M21.657 17.657a.9.9 0 1 1-1.273-1.273 6.2 6.2 0 0 0 0-8.768.9.9 0 1 1 1.273-1.273 8 8 0 0 1 0 11.314ZM19.11 15.11a.9.9 0 0 1-1.273-1.273 2.6 2.6 0 0 0 0-3.676.9.9 0 1 1 1.273-1.273 4.4 4.4 0 0 1 0 6.222ZM5 15a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765l5.514-5.307A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5Z'/%3e%3c/g%3e%3c/svg%3e";function Ls(t){_e(t,"v-dsbe5p",".container.v-dsbe5p{display:flex;height:32px;align-items:center;padding:0 8px}.expanded.v-dsbe5p{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.icon.v-dsbe5p{width:24px;height:24px}.text.v-dsbe5p{font-size:15px;margin-left:8px}")}function Ji(t){let e;return{c(){e=g("span"),e.textContent="\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",c(e,"class","text v-dsbe5p")},m(i,n){M(i,e,n)},d(i){i&&C(e)}}}function Es(t){let e,i,n,l,o,s,a=t[0]&&Ji();return{c(){e=g("div"),i=g("img"),l=T(),a&&a.c(),Ve(i.src,n=t[0]?Gi:Xi)||c(i,"src",n),c(i,"class","icon v-dsbe5p"),c(i,"alt",""),c(e,"class","container v-dsbe5p"),A(e,"expanded",t[0])},m(r,u){M(r,e,u),f(e,i),f(e,l),a&&a.m(e,null),o||(s=le(e,"click",t[1]),o=!0)},p(r,[u]){u&1&&!Ve(i.src,n=r[0]?Gi:Xi)&&c(i,"src",n),r[0]?a||(a=Ji(),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&A(e,"expanded",r[0])},i:B,o:B,d(r){r&&C(e),a&&a.d(),o=!1,s()}}}function Bs(t,e,i){let{expanded:n=!1}=e;function l(o){xe.call(this,t,o)}return t.$$set=o=>{"expanded"in o&&i(0,n=o.expanded)},[n,l]}class hl extends pe{constructor(e){super(),he(this,e,Bs,Es,ve,{expanded:0},Ls)}}function Is(t){_e(t,"v-1bwjmdb",'.tooltip-wrapper.v-1bwjmdb{position:relative;display:block}.tooltip.v-1bwjmdb{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.tooltip.v-1bwjmdb: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)}.content.v-1bwjmdb{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-1bwjmdb{opacity:1;visibility:visible}')}function Fs(t){let e,i,n,l,o;return{c(){e=g("div"),i=g("div"),n=g("div"),l=fe(t[0]),c(n,"class","content v-1bwjmdb"),c(i,"class","tooltip v-1bwjmdb"),A(i,"active",t[1]),c(e,"class","tooltip-wrapper v-1bwjmdb"),c(e,"style",o=`transform: translate(${t[2]}px, ${t[3]}px);`)},m(s,a){M(s,e,a),f(e,i),f(i,n),f(n,l)},p(s,[a]){a&1&&Ne(l,s[0]),a&2&&A(i,"active",s[1]),a&12&&o!==(o=`transform: translate(${s[2]}px, ${s[3]}px);`)&&c(e,"style",o)},i:B,o:B,d(s){s&&C(e)}}}function Rs(t,e,i){let{content:n=""}=e,{active:l=!1}=e,{translateXPx:o=0}=e,{translateYPx:s=0}=e;return t.$$set=a=>{"content"in a&&i(0,n=a.content),"active"in a&&i(1,l=a.active),"translateXPx"in a&&i(2,o=a.translateXPx),"translateYPx"in a&&i(3,s=a.translateYPx)},[n,l,o,s]}class qs extends pe{constructor(e){super(),he(this,e,Rs,Fs,ve,{content:0,active:1,translateXPx:2,translateYPx:3},Is)}}function Zi(t){let e,i;return e=new qs({props:{content:t[5],active:t[4],translateXPx:t[6],translateYPx:-16}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&32&&(o.content=n[5]),l&16&&(o.active=n[4]),l&64&&(o.translateXPx=n[6]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function js(t){let e,i,n,l=(!t[8]||t[8]&&t[7])&&Zi(t);return i=new pi({props:{isActiveLive:t[9],ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:`${t[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${t[1]})`,loadedProgress:t[10],filledProgress:t[3],handleProgress:t[3],onPointerDown:t[17],onHandleMove:t[18],onPointerMove:t[21],onPointerUp:t[19],onPointerEnter:t[20],onPointerLeave:t[22]}}),{c(){l&&l.c(),e=T(),te(i.$$.fragment)},m(o,s){l&&l.m(o,s),M(o,e,s),$(i,o,s),n=!0},p(o,[s]){!o[8]||o[8]&&o[7]?l?(l.p(o,s),s&384&&v(l,1)):(l=Zi(o),l.c(),v(l,1),l.m(e.parentNode,e)):l&&(oe(),y(l,1,1,()=>{l=null}),se());const a={};s&512&&(a.isActiveLive=o[9]),s&1&&(a.ariaValueMax=o[0]),s&8&&(a.ariaValueNow=Math.round(o[3]*100)),s&6&&(a.ariaValueText=`${o[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${o[1]})`),s&1024&&(a.loadedProgress=o[10]),s&8&&(a.filledProgress=o[3]),s&8&&(a.handleProgress=o[3]),i.$set(a)},i(o){n||(v(l),v(i.$$.fragment,o),n=!0)},o(o){y(l),y(i.$$.fragment,o),n=!1},d(o){l&&l.d(o),o&&C(e),ee(i,o)}}}function Ds(t,e,i){let n,l,o,s,a,r;const u=De(),d=u.state.bufferedProgress$;Y(t,d,U=>i(10,r=U));const m=u.state.positionWithScrubbing$;Y(t,m,U=>i(23,o=U));const _=u.state.duration$;Y(t,_,U=>i(0,l=U));const h=u.state.isLive$;Y(t,h,U=>i(7,n=U));const b=u.state.isActiveLive$;Y(t,b,U=>i(9,a=U));const w=u.ui.isMobile;Y(t,w,U=>i(8,s=U));let N,L,p,k=!1,z="",F=0;function V(U){u.actions.internal.startScrubbing(U)}function I(U){u.actions.internal.progressScrubbing(U)}function O(U){u.actions.internal.completeScrubbing(U)}function j(U,X){J(U,X),i(4,k=!0)}function E(U,X){J(U,X)}function K(){i(4,k=!1)}function J(U,X){i(6,F=X),i(5,z=H(U))}function H(U){const X=mt((n?1-U:U)*l);return n?`-${X}`:X}return t.$$.update=()=>{t.$$.dirty&1&&i(1,N=mt(l)),t.$$.dirty&8388608&&i(2,L=mt(o)),t.$$.dirty&8388609&&i(3,p=o/l)},[l,N,L,p,k,z,F,n,s,a,r,d,m,_,h,b,w,V,I,O,j,E,K,o]}let Hs=class extends pe{constructor(e){super(),he(this,e,Ds,js,ve,{})}};function Us(t){let e,i;return e=new pi({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:`${t[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${t[1]})`,filledProgress:t[3],isAds:!0,squareBorders:t[4]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,[l]){const o={};l&1&&(o.ariaValueMax=n[0]),l&8&&(o.ariaValueNow=Math.round(n[3]*100)),l&6&&(o.ariaValueText=`${n[2]} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C ${n[1]})`),l&8&&(o.filledProgress=n[3]),l&16&&(o.squareBorders=n[4]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Os(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const a=De().ui.isMobile;Y(t,a,m=>i(4,n=m));let r,u,d;return t.$$set=m=>{"position"in m&&i(6,l=m.position),"duration"in m&&i(0,o=m.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,r=mt(o)),t.$$.dirty&64&&i(2,u=mt(l)),t.$$.dirty&65&&i(3,d=l/o)},[o,r,u,d,n,a,l]}class pl extends pe{constructor(e){super(),he(this,e,Os,Us,ve,{position:6,duration:0})}}function Qs(t){_e(t,"v-17msmwz",".timeline.v-17msmwz{display:flex;align-items:center;width:100%;min-width:86px;margin:0 6px}.timeline-stub.v-17msmwz{width:100%;min-width:20px}")}function Ys(t){let e;return{c(){e=g("div"),c(e,"class","timeline-stub v-17msmwz")},m(i,n){M(i,e,n)},p:B,i:B,o:B,d(i){i&&C(e)}}}function Ws(t){let e,i,n,l,o;const s=[Xs,Ks],a=[];function r(u,d){return u[0]?0:1}return i=r(t),n=a[i]=s[i](t),{c(){e=g("div"),n.c(),c(e,"class",l="timeline "+t[1]+" v-17msmwz")},m(u,d){M(u,e,d),a[i].m(e,null),o=!0},p(u,d){let m=i;i=r(u),i===m?a[i].p(u,d):(oe(),y(a[m],1,1,()=>{a[m]=null}),se(),n=a[i],n?n.p(u,d):(n=a[i]=s[i](u),n.c()),v(n,1),n.m(e,null)),(!o||d&2&&l!==(l="timeline "+u[1]+" v-17msmwz"))&&c(e,"class",l)},i(u){o||(v(n),o=!0)},o(u){y(n),o=!1},d(u){u&&C(e),a[i].d()}}}function Ks(t){let e,i;return e=new Hs({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Xs(t){let e,i;return e=new pl({props:{position:t[3],duration:t[4]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&8&&(o.position=n[3]),l&16&&(o.duration=n[4]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Gs(t){let e,i,n,l;const o=[Ws,Ys],s=[];function a(r,u){return r[2]?0:1}return e=a(t),i=s[e]=o[e](t),{c(){i.c(),n=Je()},m(r,u){s[e].m(r,u),M(r,n,u),l=!0},p(r,[u]){let d=e;e=a(r),e===d?s[e].p(r,u):(oe(),y(s[d],1,1,()=>{s[d]=null}),se(),i=s[e],i?i.p(r,u):(i=s[e]=o[e](r),i.c()),v(i,1),i.m(n.parentNode,n))},i(r){l||(v(i),l=!0)},o(r){y(i),l=!1},d(r){s[e].d(r),r&&C(n)}}}function Js(t,e,i){let n,l,o,{isAds:s=!1}=e,{canRewindLive:a}=e,{isHidden:r=!1}=e,{className:u=""}=e;const d=De(),m=d.state.isLive$;Y(t,m,w=>i(10,n=w));const _=d.ads.duration;Y(t,_,w=>i(4,o=w));const h=d.ads.position;Y(t,h,w=>i(3,l=w));let b;return t.$$set=w=>{"isAds"in w&&i(0,s=w.isAds),"canRewindLive"in w&&i(8,a=w.canRewindLive),"isHidden"in w&&i(9,r=w.isHidden),"className"in w&&i(1,u=w.className)},t.$$.update=()=>{t.$$.dirty&1793&&i(2,b=!r&&(!n||n&&a||s))},[s,u,b,l,o,m,_,h,a,r,n]}class bl extends pe{constructor(e){super(),he(this,e,Js,Gs,ve,{isAds:0,canRewindLive:8,isHidden:9,className:1},Qs)}}function Zs(t){_e(t,"v-1qfxnal",`.wrapper-bottom.v-1qfxnal.v-1qfxnal{position:absolute;width:100%;bottom:0;left:0;height:var(--videoplayer-controls-gradient-height);background:linear-gradient(
8
+ 180deg,
9
+ rgba(0, 0, 0, 0) 0%,
10
+ rgba(0, 0, 0, 0.02) 19%,
11
+ rgba(0, 0, 0, 0.10) 34%,
12
+ rgba(0, 0, 0, 0.40) 60%,
13
+ rgba(0, 0, 0, 0.60) 100%
14
+ );transition:transform var(--videoplayer-controls-transition-duration)
15
+ var(--videoplayer-controls-transition-fn)}.wrapper-bottom.ads-timeline-mobile.v-1qfxnal.v-1qfxnal{height:5px}.wrapper-middle.v-1qfxnal.v-1qfxnal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.v-1qfxnal.v-1qfxnal{position:absolute;top:16px;right:16px;transition:opacity var(--videoplayer-controls-transition-duration);display:flex}.wrapper-top-left.v-1qfxnal.v-1qfxnal{position:absolute;top:12px;left:12px}.controls.v-1qfxnal.v-1qfxnal{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;height:var(--videoplayer-controls-height);white-space:nowrap;font-size:13px;transition:transform var(--videoplayer-controls-transition-duration)
16
+ var(--videoplayer-controls-transition-fn);will-change:transform;padding:0 16px;box-sizing:border-box}.controls-element+.controls-element{padding-left:8px}.hidden.v-1qfxnal.v-1qfxnal{visibility:hidden;opacity:0}.controls-hidden.v-1qfxnal.v-1qfxnal{visibility:visible;transform:translateY(100%)}.settings-desktop.v-1qfxnal.v-1qfxnal{bottom:42px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}.settings-mobile.v-1qfxnal.v-1qfxnal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.v-1qfxnal.v-1qfxnal{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--videoplayer-controls-transition-duration)}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .controls.v-1qfxnal{--videoplayer-controls-height:50px;font-size:16px}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .ui-time{padding-left:20px;padding-right:15px}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .controls-play-button{padding-left:20px;padding-right:11px}.mobile-top-right-button+.mobile-top-right-button{margin-left:24px}@media screen and (orientation: portrait){.wrapper-top-right.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{top:36px}.wrapper-top-left.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{top:32px}.controls.controls-fullscreen-mobile.v-1qfxnal.v-1qfxnal{bottom:36px}}@media screen and (orientation: landscape){.wrapper-top-left.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{left:32px}.wrapper-top-right.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{right:36px}.controls.controls-fullscreen-mobile.v-1qfxnal.v-1qfxnal{left:20px;right:20px;bottom:24px}}`)}function xi(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b=t[28]&&$i(t);s=new fl({props:{className:"mobile-top-right-button"}});let w=!t[6]&&en(t),N=t[7]&&tn(t);m=new bi({props:{playbackState:t[31],adPlaybackState:t[32],isAds:t[3],handlePlayClick:t[41],repeatPlaylist:t[14],isEnded:t[33],isOneVideoPlaylist:t[10]}});let L=t[7]&&nn(t);return{c(){e=g("div"),i=T(),n=g("div"),b&&b.c(),l=T(),o=g("div"),te(s.$$.fragment),a=T(),w&&w.c(),r=T(),u=g("div"),N&&N.c(),d=T(),te(m.$$.fragment),_=T(),L&&L.c(),c(e,"class","overlay-mobile v-1qfxnal"),A(e,"hidden",!t[26]),c(n,"class","wrapper-top-left v-1qfxnal"),A(n,"hidden",!t[2]),A(n,"wrapper-top-fullscreen-mobile",t[27]&&t[18]),c(o,"class","wrapper-top-right v-1qfxnal"),A(o,"hidden",!t[2]),A(o,"wrapper-top-fullscreen-mobile",t[27]&&t[18]),c(u,"class","wrapper-middle v-1qfxnal"),A(u,"hidden",!t[2]||t[30])},m(p,k){M(p,e,k),M(p,i,k),M(p,n,k),b&&b.m(n,null),M(p,l,k),M(p,o,k),$(s,o,null),f(o,a),w&&w.m(o,null),M(p,r,k),M(p,u,k),N&&N.m(u,null),f(u,d),$(m,u,null),f(u,_),L&&L.m(u,null),h=!0},p(p,k){(!h||k[0]&67108864)&&A(e,"hidden",!p[26]),p[28]?b?(b.p(p,k),k[0]&268435456&&v(b,1)):(b=$i(p),b.c(),v(b,1),b.m(n,null)):b&&(oe(),y(b,1,1,()=>{b=null}),se()),(!h||k[0]&4)&&A(n,"hidden",!p[2]),(!h||k[0]&134479872)&&A(n,"wrapper-top-fullscreen-mobile",p[27]&&p[18]),p[6]?w&&(oe(),y(w,1,1,()=>{w=null}),se()):w?(w.p(p,k),k[0]&64&&v(w,1)):(w=en(p),w.c(),v(w,1),w.m(o,null)),(!h||k[0]&4)&&A(o,"hidden",!p[2]),(!h||k[0]&134479872)&&A(o,"wrapper-top-fullscreen-mobile",p[27]&&p[18]),p[7]?N?(N.p(p,k),k[0]&128&&v(N,1)):(N=tn(p),N.c(),v(N,1),N.m(u,d)):N&&(oe(),y(N,1,1,()=>{N=null}),se());const z={};k[1]&1&&(z.playbackState=p[31]),k[1]&2&&(z.adPlaybackState=p[32]),k[0]&8&&(z.isAds=p[3]),k[0]&16384&&(z.repeatPlaylist=p[14]),k[1]&4&&(z.isEnded=p[33]),k[0]&1024&&(z.isOneVideoPlaylist=p[10]),m.$set(z),p[7]?L?(L.p(p,k),k[0]&128&&v(L,1)):(L=nn(p),L.c(),v(L,1),L.m(u,null)):L&&(oe(),y(L,1,1,()=>{L=null}),se()),(!h||k[0]&1073741828)&&A(u,"hidden",!p[2]||p[30])},i(p){h||(v(b),v(s.$$.fragment,p),v(w),v(N),v(m.$$.fragment,p),v(L),h=!0)},o(p){y(b),y(s.$$.fragment,p),y(w),y(N),y(m.$$.fragment,p),y(L),h=!1},d(p){p&&C(e),p&&C(i),p&&C(n),b&&b.d(),p&&C(l),p&&C(o),ee(s),w&&w.d(),p&&C(r),p&&C(u),N&&N.d(),ee(m),L&&L.d()}}}function $i(t){let e,i;return e=new hl({props:{expanded:t[29]}}),e.$on("click",t[62]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&536870912&&(o.expanded=n[29]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function en(t){let e,i;return e=new gl({props:{className:"mobile-top-right-button",logoClickable:t[5]}}),e.$on("click",t[42]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.logoClickable=n[5]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function tn(t){let e,i;return e=new ni({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Re(t[13])&&t[13].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&512&&(o.disabled=!t[9]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function nn(t){let e,i;return e=new ni({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Re(t[12])&&t[12].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&256&&(o.disabled=!t[8]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ln(t){let e,i,n,l,o,s=t[28]&&on(t),a=t[32]===Fe.PAUSED&&sn(t);return l=new pl({props:{position:t[34],duration:t[35]}}),{c(){s&&s.c(),e=T(),a&&a.c(),i=T(),n=g("div"),te(l.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile v-1qfxnal")},m(r,u){s&&s.m(r,u),M(r,e,u),a&&a.m(r,u),M(r,i,u),M(r,n,u),$(l,n,null),o=!0},p(r,u){r[28]?s?(s.p(r,u),u[0]&268435456&&v(s,1)):(s=on(r),s.c(),v(s,1),s.m(e.parentNode,e)):s&&(oe(),y(s,1,1,()=>{s=null}),se()),r[32]===Fe.PAUSED?a?(a.p(r,u),u[1]&2&&v(a,1)):(a=sn(r),a.c(),v(a,1),a.m(i.parentNode,i)):a&&(oe(),y(a,1,1,()=>{a=null}),se());const d={};u[1]&8&&(d.position=r[34]),u[1]&16&&(d.duration=r[35]),l.$set(d)},i(r){o||(v(s),v(a),v(l.$$.fragment,r),o=!0)},o(r){y(s),y(a),y(l.$$.fragment,r),o=!1},d(r){s&&s.d(r),r&&C(e),a&&a.d(r),r&&C(i),r&&C(n),ee(l)}}}function on(t){let e,i,n;return i=new hl({props:{expanded:!1}}),i.$on("click",t[62]),{c(){e=g("div"),te(i.$$.fragment),c(e,"class","wrapper-top-right v-1qfxnal")},m(l,o){M(l,e,o),$(i,e,null),n=!0},p:B,i(l){n||(v(i.$$.fragment,l),n=!0)},o(l){y(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function sn(t){let e,i,n;return i=new bi({props:{playbackState:t[31],adPlaybackState:t[32],isAds:!0,handlePlayClick:t[41],repeatPlaylist:B,isEnded:!1,isOneVideoPlaylist:!1}}),{c(){e=g("div"),te(i.$$.fragment),c(e,"class","wrapper-middle v-1qfxnal")},m(l,o){M(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[1]&1&&(s.playbackState=l[31]),o[1]&2&&(s.adPlaybackState=l[32]),i.$set(s)},i(l){n||(v(i.$$.fragment,l),n=!0)},o(l){y(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function an(t){let e,i,n,l,o,s=t[7]&&!t[3]&&rn(t);i=new ot({props:{className:"controls-element",$$slots:{default:[$s]},$$scope:{ctx:t}}});let a=t[7]&&!t[3]&&cn(t);return{c(){s&&s.c(),e=T(),te(i.$$.fragment),n=T(),a&&a.c(),l=Je()},m(r,u){s&&s.m(r,u),M(r,e,u),$(i,r,u),M(r,n,u),a&&a.m(r,u),M(r,l,u),o=!0},p(r,u){r[7]&&!r[3]?s?(s.p(r,u),u[0]&136&&v(s,1)):(s=rn(r),s.c(),v(s,1),s.m(e.parentNode,e)):s&&(oe(),y(s,1,1,()=>{s=null}),se());const d={};u[0]&17416|u[1]&7|u[2]&16&&(d.$$scope={dirty:u,ctx:r}),i.$set(d),r[7]&&!r[3]?a?(a.p(r,u),u[0]&136&&v(a,1)):(a=cn(r),a.c(),v(a,1),a.m(l.parentNode,l)):a&&(oe(),y(a,1,1,()=>{a=null}),se())},i(r){o||(v(s),v(i.$$.fragment,r),v(a),o=!0)},o(r){y(s),y(i.$$.fragment,r),y(a),o=!1},d(r){s&&s.d(r),r&&C(e),ee(i,r),r&&C(n),a&&a.d(r),r&&C(l)}}}function rn(t){let e,i;return e=new ot({props:{className:"controls-element",disabled:!t[9],$$slots:{default:[xs]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&512&&(o.disabled=!n[9]),l[0]&8704|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function xs(t){let e,i;return e=new ni({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Re(t[13])&&t[13].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&512&&(o.disabled=!t[9]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function $s(t){let e,i;return e=new bi({props:{className:"controls-play-button",playbackState:t[31],adPlaybackState:t[32],isAds:t[3],handlePlayClick:t[41],repeatPlaylist:t[14],isEnded:t[33],isOneVideoPlaylist:t[10]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&1&&(o.playbackState=n[31]),l[1]&2&&(o.adPlaybackState=n[32]),l[0]&8&&(o.isAds=n[3]),l[0]&16384&&(o.repeatPlaylist=n[14]),l[1]&4&&(o.isEnded=n[33]),l[0]&1024&&(o.isOneVideoPlaylist=n[10]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function cn(t){let e,i;return e=new ot({props:{className:"controls-element",disabled:!t[8],$$slots:{default:[ea]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&256&&(o.disabled=!n[8]),l[0]&4352|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ea(t){let e,i;return e=new ni({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Re(t[12])&&t[12].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n;const o={};l[0]&256&&(o.disabled=!t[8]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function un(t){let e,i;return e=new ot({props:{className:"controls-element",$$slots:{default:[ta]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&32|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ta(t){let e,i;return e=new Ts({props:{isActiveLive:t[36]}}),e.$on("click",t[61]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[1]&32&&(o.isActiveLive=n[36]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function dn(t){let e,i;return e=new bl({props:{isHidden:!t[23],isAds:t[3],canRewindLive:t[4],className:"controls-element"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8388608&&(o.isHidden=!n[23]),l[0]&8&&(o.isAds=n[3]),l[0]&16&&(o.canRewindLive=n[4]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function fn(t){let e,i;return e=new jo({props:{className:"ui-time controls-element",showDuration:t[20],position:t[3]?t[34]:t[37],duration:t[3]?t[35]:t[38]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&1048576&&(o.showDuration=n[20]),l[0]&8|l[1]&72&&(o.position=n[3]?n[34]:n[37]),l[0]&8|l[1]&144&&(o.duration=n[3]?n[35]:n[38]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function mn(t){let e,i;return e=new bl({props:{isAds:t[3],canRewindLive:t[4],className:"controls-element"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8&&(o.isAds=n[3]),l[0]&16&&(o.canRewindLive=n[4]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function vn(t){let e,i,n,l;e=new ot({props:{className:"controls-element",$$slots:{default:[ia]},$$scope:{ctx:t}}});let o=!t[39]&&!t[3]&&gn(t);return{c(){te(e.$$.fragment),i=T(),o&&o.c(),n=Je()},m(s,a){$(e,s,a),M(s,i,a),o&&o.m(s,a),M(s,n,a),l=!0},p(s,a){const r={};a[0]&524288|a[2]&16&&(r.$$scope={dirty:a,ctx:s}),e.$set(r),!s[39]&&!s[3]?o?(o.p(s,a),a[0]&8|a[1]&256&&v(o,1)):(o=gn(s),o.c(),v(o,1),o.m(n.parentNode,n)):o&&(oe(),y(o,1,1,()=>{o=null}),se())},i(s){l||(v(e.$$.fragment,s),v(o),l=!0)},o(s){y(e.$$.fragment,s),y(o),l=!1},d(s){ee(e,s),s&&C(i),o&&o.d(s),s&&C(n)}}}function ia(t){let e,i;return e=new Ko({props:{isVerticalVolume:t[19]}}),e.$on("click",t[40]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&524288&&(o.isVerticalVolume=n[19]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function gn(t){let e,i,n,l,o;i=new dl({props:{supportLink:t[11]}});let s=t[22]&&hn(t);return{c(){e=g("div"),te(i.$$.fragment),n=T(),s&&s.c(),l=Je(),c(e,"class","settings-desktop v-1qfxnal")},m(a,r){M(a,e,r),$(i,e,null),M(a,n,r),s&&s.m(a,r),M(a,l,r),o=!0},p(a,r){const u={};r[0]&2048&&(u.supportLink=a[11]),i.$set(u),a[22]?s?r[0]&4194304&&v(s,1):(s=hn(a),s.c(),v(s,1),s.m(l.parentNode,l)):s&&(oe(),y(s,1,1,()=>{s=null}),se())},i(a){o||(v(i.$$.fragment,a),v(s),o=!0)},o(a){y(i.$$.fragment,a),y(s),o=!1},d(a){a&&C(e),ee(i),a&&C(n),s&&s.d(a),a&&C(l)}}}function hn(t){let e,i;return e=new ot({props:{className:"controls-element",$$slots:{default:[na]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function na(t){let e,i;return e=new fl({props:{className:"ui-settings"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function pn(t){let e,i;return e=new ot({props:{className:"controls-element",$$slots:{default:[la]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32768|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function la(t){let e,i;return e=new is({}),e.$on("click",function(){Re(t[15])&&t[15].apply(this,arguments)}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){t=n},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function bn(t){let e,i,n,l=t[21]&&wn(t),o=!t[6]&&_n(t);return{c(){l&&l.c(),e=T(),o&&o.c(),i=Je()},m(s,a){l&&l.m(s,a),M(s,e,a),o&&o.m(s,a),M(s,i,a),n=!0},p(s,a){s[21]?l?(l.p(s,a),a[0]&2097152&&v(l,1)):(l=wn(s),l.c(),v(l,1),l.m(e.parentNode,e)):l&&(oe(),y(l,1,1,()=>{l=null}),se()),s[6]?o&&(oe(),y(o,1,1,()=>{o=null}),se()):o?(o.p(s,a),a[0]&64&&v(o,1)):(o=_n(s),o.c(),v(o,1),o.m(i.parentNode,i))},i(s){n||(v(l),v(o),n=!0)},o(s){y(l),y(o),n=!1},d(s){l&&l.d(s),s&&C(e),o&&o.d(s),s&&C(i)}}}function wn(t){let e,i;return e=new ot({props:{className:"controls-element",$$slots:{default:[oa]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function oa(t){let e,i;return e=new Ss({props:{className:"ui-chromecast"}}),e.$on("click",t[60]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function _n(t){let e,i;return e=new ot({props:{className:"controls-element",disabled:!t[5],$$slots:{default:[sa]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.disabled=!n[5]),l[0]&32|l[2]&16&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function sa(t){let e,i;return e=new gl({props:{logoClickable:t[5]}}),e.$on("click",t[42]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32&&(o.logoClickable=n[5]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function kn(t){let e,i,n;return i=new dl({props:{supportLink:t[11]}}),{c(){e=g("div"),te(i.$$.fragment),c(e,"class","settings-mobile v-1qfxnal")},m(l,o){M(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[0]&2048&&(s.supportLink=l[11]),i.$set(s)},i(l){n||(v(i.$$.fragment,l),n=!0)},o(l){y(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function aa(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b,w=t[18]&&!t[3]&&xi(t),N=t[18]&&t[3]&&t[32]!==Fe.INACTIVE&&ln(t),L=!t[18]&&an(t),p=!t[3]&&t[17]&&un(t),k=!t[18]&&dn(t),z=t[25]&&fn(t),F=t[18]&&mn(t),V=!t[18]&&vn(t),I=t[24]&&pn(t),O=!t[18]&&bn(t),j=t[18]&&t[16]&&kn(t);return{c(){w&&w.c(),e=T(),N&&N.c(),i=T(),n=g("div"),l=g("div"),L&&L.c(),o=T(),p&&p.c(),s=T(),k&&k.c(),a=T(),z&&z.c(),r=T(),F&&F.c(),u=T(),V&&V.c(),d=T(),I&&I.c(),m=T(),O&&O.c(),_=T(),j&&j.c(),h=Je(),c(l,"class","controls v-1qfxnal"),A(l,"controls-hidden",!t[2]),A(l,"controls-fullscreen-mobile",t[27]&&t[18]),c(n,"class","wrapper-bottom v-1qfxnal"),A(n,"hidden",t[1]),A(n,"controls-hidden",!t[2]),A(n,"wrapper-bottom-fullscreen-desktop",t[27]&&!t[18])},m(E,K){w&&w.m(E,K),M(E,e,K),N&&N.m(E,K),M(E,i,K),M(E,n,K),f(n,l),L&&L.m(l,null),f(l,o),p&&p.m(l,null),f(l,s),k&&k.m(l,null),f(l,a),z&&z.m(l,null),f(l,r),F&&F.m(l,null),f(l,u),V&&V.m(l,null),f(l,d),I&&I.m(l,null),f(l,m),O&&O.m(l,null),t[64](n),M(E,_,K),j&&j.m(E,K),M(E,h,K),b=!0},p(E,K){E[18]&&!E[3]?w?(w.p(E,K),K[0]&262152&&v(w,1)):(w=xi(E),w.c(),v(w,1),w.m(e.parentNode,e)):w&&(oe(),y(w,1,1,()=>{w=null}),se()),E[18]&&E[3]&&E[32]!==Fe.INACTIVE?N?(N.p(E,K),K[0]&262152|K[1]&2&&v(N,1)):(N=ln(E),N.c(),v(N,1),N.m(i.parentNode,i)):N&&(oe(),y(N,1,1,()=>{N=null}),se()),E[18]?L&&(oe(),y(L,1,1,()=>{L=null}),se()):L?(L.p(E,K),K[0]&262144&&v(L,1)):(L=an(E),L.c(),v(L,1),L.m(l,o)),!E[3]&&E[17]?p?(p.p(E,K),K[0]&131080&&v(p,1)):(p=un(E),p.c(),v(p,1),p.m(l,s)):p&&(oe(),y(p,1,1,()=>{p=null}),se()),E[18]?k&&(oe(),y(k,1,1,()=>{k=null}),se()):k?(k.p(E,K),K[0]&262144&&v(k,1)):(k=dn(E),k.c(),v(k,1),k.m(l,a)),E[25]?z?(z.p(E,K),K[0]&33554432&&v(z,1)):(z=fn(E),z.c(),v(z,1),z.m(l,r)):z&&(oe(),y(z,1,1,()=>{z=null}),se()),E[18]?F?(F.p(E,K),K[0]&262144&&v(F,1)):(F=mn(E),F.c(),v(F,1),F.m(l,u)):F&&(oe(),y(F,1,1,()=>{F=null}),se()),E[18]?V&&(oe(),y(V,1,1,()=>{V=null}),se()):V?(V.p(E,K),K[0]&262144&&v(V,1)):(V=vn(E),V.c(),v(V,1),V.m(l,d)),E[24]?I?(I.p(E,K),K[0]&16777216&&v(I,1)):(I=pn(E),I.c(),v(I,1),I.m(l,m)):I&&(oe(),y(I,1,1,()=>{I=null}),se()),E[18]?O&&(oe(),y(O,1,1,()=>{O=null}),se()):O?(O.p(E,K),K[0]&262144&&v(O,1)):(O=bn(E),O.c(),v(O,1),O.m(l,null)),(!b||K[0]&4)&&A(l,"controls-hidden",!E[2]),(!b||K[0]&134479872)&&A(l,"controls-fullscreen-mobile",E[27]&&E[18]),(!b||K[0]&2)&&A(n,"hidden",E[1]),(!b||K[0]&4)&&A(n,"controls-hidden",!E[2]),(!b||K[0]&134479872)&&A(n,"wrapper-bottom-fullscreen-desktop",E[27]&&!E[18]),E[18]&&E[16]?j?(j.p(E,K),K[0]&327680&&v(j,1)):(j=kn(E),j.c(),v(j,1),j.m(h.parentNode,h)):j&&(oe(),y(j,1,1,()=>{j=null}),se())},i(E){b||(v(w),v(N),v(L),v(p),v(k),v(z),v(F),v(V),v(I),v(O),v(j),b=!0)},o(E){y(w),y(N),y(L),y(p),y(k),y(z),y(F),y(V),y(I),y(O),y(j),b=!1},d(E){w&&w.d(E),E&&C(e),N&&N.d(E),E&&C(i),E&&C(n),L&&L.d(),p&&p.d(),k&&k.d(),z&&z.d(),F&&F.d(),V&&V.d(),I&&I.d(),O&&O.d(),t[64](null),E&&C(_),j&&j.d(E),E&&C(h)}}}function ra(t,e,i){let n,l,o,s,a,r,u,d,m,_,h,b,w,N,L,p,k,{hidden:z}=e,{showControls:F}=e,{controlsElementRef:V=void 0}=e,{isAds:I=!1}=e,{canRewindLive:O}=e,{logoClickable:j}=e,{logoHidden:E}=e,{showNextPrevButtons:K}=e,{nextButtonActive:J}=e,{prevButtonActive:H}=e,{isOneVideoPlaylist:U=!1}=e,{supportLink:X}=e,{playNextVideo:be}=e,{playPrevVideo:Z}=e,{repeatPlaylist:D}=e,{toggleFullscreen:ie}=e;const ce=De(),Ce=ce.actions.internal.toggleMuted,ze=ce.actions.internal.togglePlay,qe=ce.actions.internal.pause,de=ce.state.duration$;Y(t,de,W=>i(38,p=W));const me=ce.state.positionWithScrubbing$;Y(t,me,W=>i(37,L=W));const ue=ce.state.playbackState$;Y(t,ue,W=>i(31,m=W));const ge=ce.state.chromecastConnected$;Y(t,ge,W=>i(39,k=W));const ke=ce.state.isEnded$;Y(t,ke,W=>i(33,h=W));const Q=ce.state.isLive$;Y(t,Q,W=>i(17,o=W));const we=ce.state.isActiveLive$;Y(t,we,W=>i(36,N=W));const ae=ce.ui.scrubbingInProgress;Y(t,ae,W=>i(30,d=W));const R=ce.ui.isMobile;Y(t,R,W=>i(18,s=W));const q=ce.ui.mobileUnmuteButtonExpanded;Y(t,q,W=>i(29,u=W));const x=ce.ui.mobileUnmuteButtonVisible;Y(t,x,W=>i(28,r=W));const He=ce.ui.settingsMenuVisible;Y(t,He,W=>i(16,n=W));const Ze=ce.ads.duration;Y(t,Ze,W=>i(35,w=W));const gt=ce.ads.position;Y(t,gt,W=>i(34,b=W));const ht=ce.ads.playbackState;Y(t,ht,W=>i(32,_=W));const st=ce.ui.isFullscreen;Y(t,st,W=>i(27,a=W));const at=ce.ui.playerSize;Y(t,at,W=>i(63,l=W));const Ct=()=>ce.actions.internal.toggleChromecast(),rt=()=>ce.actions.internal.switchToActiveLive();let Ue,$e,pt,ct,et,ut,tt,it;function Mt(){x.set(!1),Ce()}function bt(W){Ye[W?"unshift":"push"](()=>{V=W,i(0,V)})}return t.$$set=W=>{"hidden"in W&&i(1,z=W.hidden),"showControls"in W&&i(2,F=W.showControls),"controlsElementRef"in W&&i(0,V=W.controlsElementRef),"isAds"in W&&i(3,I=W.isAds),"canRewindLive"in W&&i(4,O=W.canRewindLive),"logoClickable"in W&&i(5,j=W.logoClickable),"logoHidden"in W&&i(6,E=W.logoHidden),"showNextPrevButtons"in W&&i(7,K=W.showNextPrevButtons),"nextButtonActive"in W&&i(8,J=W.nextButtonActive),"prevButtonActive"in W&&i(9,H=W.prevButtonActive),"isOneVideoPlaylist"in W&&i(10,U=W.isOneVideoPlaylist),"supportLink"in W&&i(11,X=W.supportLink),"playNextVideo"in W&&i(12,be=W.playNextVideo),"playPrevVideo"in W&&i(13,Z=W.playPrevVideo),"repeatPlaylist"in W&&i(14,D=W.repeatPlaylist),"toggleFullscreen"in W&&i(15,ie=W.toggleFullscreen)},t.$$.update=()=>{t.$$.dirty[2]&2&&i(19,Ue=l.width<600),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(20,$e=s||l.width>550),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(21,pt=s||l.width>450),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(22,ct=s||l.width>380),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(23,et=s||l.width>300),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(24,ut=s||l.width>220),t.$$.dirty[0]&131080|t.$$.dirty[2]&2&&i(25,tt=(!o||I)&&l.width>200),t.$$.dirty[0]&65540&&i(26,it=n||F)},[V,z,F,I,O,j,E,K,J,H,U,X,be,Z,D,ie,n,o,s,Ue,$e,pt,ct,et,ut,tt,it,a,r,u,d,m,_,h,b,w,N,L,p,k,Ce,ze,qe,de,me,ue,ge,ke,Q,we,ae,R,q,x,He,Ze,gt,ht,st,at,Ct,rt,Mt,l,bt]}class ca extends pe{constructor(e){super(),he(this,e,ra,aa,ve,{hidden:1,showControls:2,controlsElementRef:0,isAds:3,canRewindLive:4,logoClickable:5,logoHidden:6,showNextPrevButtons:7,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:10,supportLink:11,playNextVideo:12,playPrevVideo:13,repeatPlaylist:14,toggleFullscreen:15},Zs,[-1,-1,-1])}}function ua(t){_e(t,"v-y9pij4",".container.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.v-y9pij4.v-y9pij4{opacity:0;visibility:hidden}.playButton.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.v-y9pij4:hover .playButtonBackground.v-y9pij4{background-color:var(--videoplayer-big-play-hover-bg-color);transform:scale(1.15)}.playButtonIcon.v-y9pij4.v-y9pij4{position:relative;width:48px;height:48px}")}function da(t){let e,i,n,l,o,s,a,r,u;return{c(){e=g("div"),i=g("div"),n=g("div"),l=T(),o=g("img"),c(n,"class","playButtonBackground v-y9pij4"),Ve(o.src,s=gi)||c(o,"src",s),c(o,"class","playButtonIcon v-y9pij4"),c(o,"alt",""),c(i,"class","playButton v-y9pij4"),c(e,"class","container v-y9pij4"),c(e,"style",a=`background-color: #222; background-image: url('${t[0]||""}')`),A(e,"hidden",t[1])},m(d,m){M(d,e,m),f(e,i),f(i,n),f(i,l),f(i,o),r||(u=le(e,"click",function(){Re(t[2])&&t[2].apply(this,arguments)}),r=!0)},p(d,[m]){t=d,m&1&&a!==(a=`background-color: #222; background-image: url('${t[0]||""}')`)&&c(e,"style",a),m&2&&A(e,"hidden",t[1])},i:B,o:B,d(d){d&&C(e),r=!1,u()}}}function fa(t,e,i){let{thumbUrl:n}=e,{hidden:l}=e,{startVideo:o}=e;return t.$$set=s=>{"thumbUrl"in s&&i(0,n=s.thumbUrl),"hidden"in s&&i(1,l=s.hidden),"startVideo"in s&&i(2,o=s.startVideo)},[n,l,o]}class ma extends pe{constructor(e){super(),he(this,e,fa,da,ve,{thumbUrl:0,hidden:1,startVideo:2},ua)}}function va(t){_e(t,"v-8nkw5s",".container.v-8nkw5s.v-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.v-8nkw5s.v-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes v-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.v-8nkw5s.v-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:v-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.v-8nkw5s+.dot.v-8nkw5s{margin-left:4px}")}function ga(t){let e;return{c(){e=g("div"),e.innerHTML=`<div class="dot v-8nkw5s"></div>
17
+ <div class="dot v-8nkw5s"></div>
18
+ <div class="dot v-8nkw5s"></div>`,c(e,"class","container v-8nkw5s")},m(i,n){M(i,e,n)},p:B,i:B,o:B,d(i){i&&C(e)}}}class ha extends pe{constructor(e){super(),he(this,e,null,ga,ve,{},va)}}function pa(t){const e=De();return At(()=>{e.getAdmanWrapper().startPostroll()}),[]}class ba extends pe{constructor(e){super(),he(this,e,pa,null,ve,{})}}function wa(t){_e(t,"v-17pubzn",".container.v-17pubzn{position:absolute;top:14px;left:16px;padding:4px 8px;font-size:13px;color:var(--white);background:rgba(0, 0, 0, 0.35);border-radius:4px}.container-mobile.v-17pubzn{font-size:15px;background:unset;border-radius:unset}")}function _a(t){let e,i,n;return{c(){e=g("div"),i=fe("\u0420\u0435\u043A\u043B\u0430\u043C\u0430 "),n=fe(t[0]),c(e,"class","container v-17pubzn"),A(e,"container-mobile",t[1])},m(l,o){M(l,e,o),f(e,i),f(e,n)},p(l,[o]){o&1&&Ne(n,l[0]),o&2&&A(e,"container-mobile",l[1])},i:B,o:B,d(l){l&&C(e)}}}function ka(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const a=De().ui.isMobile;Y(t,a,u=>i(1,n=u));let r;return t.$$set=u=>{"position"in u&&i(3,l=u.position),"duration"in u&&i(4,o=u.duration)},t.$$.update=()=>{t.$$.dirty&24&&i(0,r=mt(o-l))},[r,n,a,l,o]}class ya extends pe{constructor(e){super(),he(this,e,ka,_a,ve,{position:3,duration:4},wa)}}function Va(t){_e(t,"v-22jj8o",".container.v-22jj8o.v-22jj8o{position:absolute;top:14px;right:16px;padding:4px 8px;font-size:13px;color:#bbb;background:rgba(0, 0, 0, 0.35);border-radius:4px;transition:color .2s}.container-mobile.v-22jj8o.v-22jj8o{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-22jj8o.v-22jj8o{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-22jj8o.v-22jj8o{width:86px}.skippable.v-22jj8o.v-22jj8o{cursor:pointer;color:var(--white)}.skippable.v-22jj8o.v-22jj8o:hover{color:rgba(255, 255, 255, .75)}.skippable.v-22jj8o:hover .icon.v-22jj8o{fill:rgba(255, 255, 255, .75)}")}function Pa(t){let e,i=Math.ceil(t[1]-t[0])+"",n,l;return{c(){e=fe("\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 "),n=fe(i),l=fe(" \u0441")},m(o,s){M(o,e,s),M(o,n,s),M(o,l,s)},p(o,s){s&3&&i!==(i=Math.ceil(o[1]-o[0])+"")&&Ne(n,i)},d(o){o&&C(e),o&&C(n),o&&C(l)}}}function Sa(t){let e,i,n;return{c(){e=g("div"),e.innerHTML=`\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443
19
+ <svg class="icon v-22jj8o" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" 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"></path></svg>`,c(e,"class","skip v-22jj8o")},m(l,o){M(l,e,o),i||(n=le(e,"click",function(){Re(t[2])&&t[2].apply(this,arguments)}),i=!0)},p(l,o){t=l},d(l){l&&C(e),i=!1,n()}}}function Aa(t){let e;function i(o,s){return o[3]?Sa:Pa}let n=i(t),l=n(t);return{c(){e=g("div"),l.c(),c(e,"class","container v-22jj8o"),A(e,"container-mobile",t[4]),A(e,"skippable",t[3])},m(o,s){M(o,e,s),l.m(e,null)},p(o,[s]){n===(n=i(o))&&l?l.p(o,s):(l.d(1),l=n(o),l&&(l.c(),l.m(e,null))),s&16&&A(e,"container-mobile",o[4]),s&8&&A(e,"skippable",o[3])},i:B,o:B,d(o){o&&C(e),l.d()}}}function Ca(t,e,i){let n,{position:l=0}=e,{secondsToWatchBeforeSkip:o=0}=e,{skipAd:s=B}=e;const r=De().ui.isMobile;Y(t,r,d=>i(4,n=d));let u;return t.$$set=d=>{"position"in d&&i(0,l=d.position),"secondsToWatchBeforeSkip"in d&&i(1,o=d.secondsToWatchBeforeSkip),"skipAd"in d&&i(2,s=d.skipAd)},t.$$.update=()=>{t.$$.dirty&3&&i(3,u=l>0&&l>=o)},[l,o,s,u,n,r]}class Ma extends pe{constructor(e){super(),he(this,e,Ca,Aa,ve,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Va)}}function Na(t){_e(t,"v-1wy3dql","button.v-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function za(t){let e;return{c(){e=g("button"),e.textContent="\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",c(e,"class","v-1wy3dql")},m(i,n){M(i,e,n)},p:B,i:B,o:B,d(i){i&&C(e)}}}class Ta extends pe{constructor(e){super(),he(this,e,null,za,ve,{},Na)}}function La(t){_e(t,"v-354ajf",`.container.v-354ajf{width:100%;height:100%}.top-gradient-mobile.v-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
20
+ 360deg,
21
+ rgba(0, 0, 0, 0) 0%,
22
+ rgba(0, 0, 0, 0.05) 12%,
23
+ rgba(0, 0, 0, 0.15) 25%,
24
+ rgba(0, 0, 0, 0.3) 45%,
25
+ rgba(0, 0, 0, 0.4) 57%,
26
+ rgba(0, 0, 0, 0.5) 77%,
27
+ rgba(0, 0, 0, 0.55) 88%,
28
+ rgba(0, 0, 0, 0.65) 100%
29
+ )}`)}function yn(t){let e;return{c(){e=g("div"),c(e,"class","top-gradient-mobile v-354ajf")},m(i,n){M(i,e,n)},d(i){i&&C(e)}}}function Vn(t){let e,i;return e=new ya({props:{position:t[6],duration:t[7]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&64&&(o.position=n[6]),l&128&&(o.duration=n[7]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Pn(t){let e,i;return e=new Ma({props:{position:t[6],secondsToWatchBeforeSkip:t[8],skipAd:t[10].actions.internal.skipAd}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&64&&(o.position=n[6]),l&256&&(o.secondsToWatchBeforeSkip=n[8]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Sn(t){let e,i;return e=new ba({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function An(t){let e,i;return e=new Ta({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Ea(t){let e,i,n,l,o,s,a,r,u=t[0]&&yn(),d=t[3]&&Vn(t),m=t[4]&&Pn(t),_=t[9]&&Sn(),h=t[5]&&An();return{c(){e=g("div"),u&&u.c(),i=T(),n=g("video"),l=T(),d&&d.c(),o=T(),m&&m.c(),s=T(),_&&_.c(),a=T(),h&&h.c(),Bt(n,"width","100%"),Bt(n,"height","100%"),n.playsInline=!0,c(e,"class","container v-354ajf")},m(b,w){M(b,e,w),u&&u.m(e,null),f(e,i),f(e,n),t[22](n),f(e,l),d&&d.m(e,null),f(e,o),m&&m.m(e,null),f(e,s),_&&_.m(e,null),f(e,a),h&&h.m(e,null),t[23](e),r=!0},p(b,[w]){b[0]?u||(u=yn(),u.c(),u.m(e,i)):u&&(u.d(1),u=null),b[3]?d?(d.p(b,w),w&8&&v(d,1)):(d=Vn(b),d.c(),v(d,1),d.m(e,o)):d&&(oe(),y(d,1,1,()=>{d=null}),se()),b[4]?m?(m.p(b,w),w&16&&v(m,1)):(m=Pn(b),m.c(),v(m,1),m.m(e,s)):m&&(oe(),y(m,1,1,()=>{m=null}),se()),b[9]?_?w&512&&v(_,1):(_=Sn(),_.c(),v(_,1),_.m(e,a)):_&&(oe(),y(_,1,1,()=>{_=null}),se()),b[5]?h?w&32&&v(h,1):(h=An(),h.c(),v(h,1),h.m(e,null)):h&&(oe(),y(h,1,1,()=>{h=null}),se())},i(b){r||(v(d),v(m),v(_),v(h),r=!0)},o(b){y(d),y(m),y(_),y(h),r=!1},d(b){b&&C(e),u&&u.d(),t[22](null),d&&d.d(),m&&m.d(),_&&_.d(),h&&h.d(),t[23](null)}}}function Ba(t,e,i){let n,l,o,s,a,r,{adsSlotId:u=void 0}=e,{adsParams:d=void 0}=e,{adsPreviewParam:m=void 0}=e,{duration:_=0}=e;const h=De(),b=h.state.isEnded$;Y(t,b,H=>i(9,r=H));const w=h.ui.isMobile;Y(t,w,H=>i(0,l=H));let N,L,p=!1;const k=h.ads.playbackState;Y(t,k,H=>i(21,n=H));const z=h.ads.canSkip,F=h.ads.duration;Y(t,F,H=>i(7,s=H));const V=h.ads.position;Y(t,V,H=>i(6,o=H));const I=h.ads.secondsToWatchBeforeSkip;Y(t,I,H=>i(8,a=H));let O,j,E;At(()=>{const H=new AbortController;let U=()=>{H.abort()};const X=h.getAdmanWrapper();if(!u){X.onAdmanLoadingError();return}const{width:be,height:Z}=Ie(h.ui.playerSize),D=Ie(h.ui.isFullscreen),ie=Ie(h.ui.isAutoplay),ce={width:be,height:Z,isFullscreen:D,isAutoplay:ie,adsContainer:N,adsVideoElement:L,slotId:u,params:d,previewParam:m,duration:_};return window.AdmanHTML?(X.initAdman(ce),p=!0):X.loadAdman(H.signal).then(()=>{X.initAdman(ce),p=!0}).catch(()=>{X.onAdmanLoadingError()}),()=>{!p&&U()}});function K(H){Ye[H?"unshift":"push"](()=>{L=H,i(2,L)})}function J(H){Ye[H?"unshift":"push"](()=>{N=H,i(1,N)})}return t.$$set=H=>{"adsSlotId"in H&&i(17,u=H.adsSlotId),"adsParams"in H&&i(18,d=H.adsParams),"adsPreviewParam"in H&&i(19,m=H.adsPreviewParam),"duration"in H&&i(20,_=H.duration)},t.$$.update=()=>{t.$$.dirty&2097152&&i(3,O=n!==Fe.INACTIVE),t.$$.dirty&2097152&&i(4,j=z&&n!==Fe.INACTIVE),t.$$.dirty&2097153&&i(5,E=l&&n!==Fe.INACTIVE)},[l,N,L,O,j,E,o,s,a,r,h,b,w,k,F,V,I,u,d,m,_,n,K,J]}class Ia extends pe{constructor(e){super(),he(this,e,Ba,Ea,ve,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},La)}}function Fa(t){_e(t,"v-p5rs9b","ul.v-p5rs9b{position:absolute;border-radius:3px;background:rgba(0, 0, 0, 0.88);overflow:hidden;transition:visibility .1s,opacity .1s;font-size:13px;list-style:none;margin:0;padding:0}.hidden.v-p5rs9b{visibility:hidden;opacity:0}li.v-p5rs9b{padding:8px 20px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;white-space:nowrap}li.v-p5rs9b:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function Ra(t){let e,i,n,l,o,s,a,r;return{c(){e=g("ul"),i=g("li"),i.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",n=T(),l=g("li"),l.textContent="\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",o=T(),s=g("li"),s.textContent="\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",c(i,"class","v-p5rs9b"),c(l,"class","v-p5rs9b"),c(s,"class","v-p5rs9b"),Bt(e,"top",t[1]+"px"),Bt(e,"left",t[0]+"px"),c(e,"class","v-p5rs9b"),A(e,"hidden",!t[2])},m(u,d){M(u,e,d),f(e,i),f(e,n),f(e,l),f(e,o),f(e,s),t[10](e),a||(r=[le(i,"click",t[4]),le(l,"click",t[5]),le(s,"click",t[6])],a=!0)},p(u,[d]){d&2&&Bt(e,"top",u[1]+"px"),d&1&&Bt(e,"left",u[0]+"px"),d&4&&A(e,"hidden",!u[2])},i:B,o:B,d(u){u&&C(e),t[10](null),a=!1,We(r)}}}function qa(t,e,i){let{visible:n=!1}=e,{supportLink:l}=e,{x:o=0}=e,{y:s=0}=e,{playerContainerRef:a=void 0}=e,{controlsContainerRef:r=void 0}=e;const u=De(),d=u.ui.contextMenuVisible,m=u.ui.debugPanelVisible;let _;const h=(p,k)=>{if(!_||!a||!r)return;const z=_.getBoundingClientRect(),F=a.getBoundingClientRect(),V=r.getBoundingClientRect();i(0,o=p-F.left),i(1,s=k-F.top),o+z.width>F.width&&i(0,o-=z.width),s+z.height>F.height-V.height&&i(1,s-=z.height)},b=p=>{window.open(l,"_blank"),d.set(!1),u.actions.internal.pause(),p.stopPropagation()},w=p=>{ul(u.actions.internal.getDebugTextData()),d.set(!1),p.stopPropagation()},N=p=>{m.set(!0),d.set(!1),p.stopPropagation()};function L(p){Ye[p?"unshift":"push"](()=>{_=p,i(3,_)})}return t.$$set=p=>{"visible"in p&&i(2,n=p.visible),"supportLink"in p&&i(7,l=p.supportLink),"x"in p&&i(0,o=p.x),"y"in p&&i(1,s=p.y),"playerContainerRef"in p&&i(8,a=p.playerContainerRef),"controlsContainerRef"in p&&i(9,r=p.controlsContainerRef)},t.$$.update=()=>{t.$$.dirty&3&&h(o,s)},[o,s,n,_,b,w,N,l,a,r,L]}class ja extends pe{constructor(e){super(),he(this,e,qa,Ra,ve,{visible:2,supportLink:7,x:0,y:1,playerContainerRef:8,controlsContainerRef:9},Fa)}}class Da{constructor(e){this.value=e,this.next=null}}class ai{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new Da(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(){const e=[];let i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}}function Ha(t){_e(t,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function Ua(t){let e,i;return{c(){e=g("div"),i=g("canvas"),c(i,"class","v-1ssl9eb"),c(e,"class","container v-1ssl9eb")},m(n,l){M(n,e,l),f(e,i),t[3](i)},p:B,i:B,o:B,d(n){n&&C(e),t[3](null)}}}const ri=16,ci=120,Cn=60;function Oa(t,e,i,n,l){l===0&&(l=1),t.fillStyle="#fff",t.fillRect(e,i,n,l)}function Qa(t,e,i){let{values:n=[]}=e,l,o;const s=ci/Cn;At(()=>{i(0,l.width=ci,l),i(0,l.height=ri,l),i(2,o=l.getContext("2d"))});function a(r){Ye[r?"unshift":"push"](()=>{l=r,i(0,l)})}return t.$$set=r=>{"values"in r&&i(1,n=r.values)},t.$$.update=()=>{if(t.$$.dirty&6&&o){let r=n[0];for(let d=1;d<n.length;d++)n[d]>r&&(r=n[d]);o.clearRect(0,0,ci,ri);let u=Cn-1;for(let d=n.length-1;d>=0;d--){const m=u*s,_=r>0?ri*(n[d]/r):0;Oa(o,m,0,s,_),u--}}},[l,n,o,a]}class wi extends pe{constructor(e){super(),he(this,e,Qa,Ua,ve,{values:1},Ha)}}const St={set:(t,e)=>{try{localStorage.setItem(t,JSON.stringify(e))}catch(i){}},get:t=>{try{const e=localStorage.getItem(t);return e?JSON.parse(e):null}catch(e){return null}},remove(t){try{localStorage.removeItem(t)}catch(e){}}};function Ya(t){_e(t,"v-1gy2e68",".container.v-1gy2e68.v-1gy2e68.v-1gy2e68{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.v-1gy2e68.v-1gy2e68.v-1gy2e68{top:16px;left:16px}button.v-1gy2e68.v-1gy2e68.v-1gy2e68{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1gy2e68.v-1gy2e68.v-1gy2e68{padding:5px}.content.v-1gy2e68>div.v-1gy2e68>div.v-1gy2e68{display:inline-block;text-align:right;width:52px;padding:0 5px}")}function Mn(t){let e,i,n,l,o=t[0].id+"",s;return{c(){e=g("div"),i=g("div"),i.textContent="Video id",n=T(),l=g("span"),s=fe(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){M(a,e,r),f(e,i),f(e,n),f(e,l),f(l,s)},p(a,r){r&1&&o!==(o=a[0].id+"")&&Ne(s,o)},d(a){a&&C(e)}}}function Nn(t){let e,i,n,l,o=t[0].provider+"",s;return{c(){e=g("div"),i=g("div"),i.textContent="Provider",n=T(),l=g("span"),s=fe(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){M(a,e,r),f(e,i),f(e,n),f(e,l),f(l,s)},p(a,r){r&1&&o!==(o=a[0].provider+"")&&Ne(s,o)},d(a){a&&C(e)}}}function zn(t){let e,i,n,l,o=t[0].viewport+"",s;return{c(){e=g("div"),i=g("div"),i.textContent="Viewport",n=T(),l=g("span"),s=fe(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){M(a,e,r),f(e,i),f(e,n),f(e,l),f(l,s)},p(a,r){r&1&&o!==(o=a[0].viewport+"")&&Ne(s,o)},d(a){a&&C(e)}}}function Tn(t){let e,i,n,l,o=t[0].videoSize+"",s;return{c(){e=g("div"),i=g("div"),i.textContent="Video size",n=T(),l=g("span"),s=fe(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){M(a,e,r),f(e,i),f(e,n),f(e,l),f(l,s)},p(a,r){r&1&&o!==(o=a[0].videoSize+"")&&Ne(s,o)},d(a){a&&C(e)}}}function Ln(t){let e,i,n,l,o=t[0].cdn+"",s;return{c(){e=g("div"),i=g("div"),i.textContent="CDN host",n=T(),l=g("span"),s=fe(o),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(a,r){M(a,e,r),f(e,i),f(e,n),f(e,l),f(l,s)},p(a,r){r&1&&o!==(o=a[0].cdn+"")&&Ne(s,o)},d(a){a&&C(e)}}}function En(t){let e,i,n,l,o=t[0].volume+"",s,a;return{c(){e=g("div"),i=g("div"),i.textContent="Volume",n=T(),l=g("span"),s=fe(o),a=fe(" %"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(r,u){M(r,e,u),f(e,i),f(e,n),f(e,l),f(l,s),f(l,a)},p(r,u){u&1&&o!==(o=r[0].volume+"")&&Ne(s,o)},d(r){r&&C(e)}}}function Bn(t){let e,i,n,l,o=t[0].buffer.toFixed(2)+"",s,a;return{c(){e=g("div"),i=g("div"),i.textContent="Buffer",n=T(),l=g("span"),s=fe(o),a=fe(" s"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(r,u){M(r,e,u),f(e,i),f(e,n),f(e,l),f(l,s),f(l,a)},p(r,u){u&1&&o!==(o=r[0].buffer.toFixed(2)+"")&&Ne(s,o)},d(r){r&&C(e)}}}function In(t){let e,i,n,l,o,s,a=t[0].speed.toFixed(2)+"",r,u,d;return l=new wi({props:{values:t[5]}}),{c(){e=g("div"),i=g("div"),i.textContent="Network",n=T(),te(l.$$.fragment),o=T(),s=g("span"),r=fe(a),u=fe(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(m,_){M(m,e,_),f(e,i),f(e,n),$(l,e,null),f(e,o),f(e,s),f(s,r),f(s,u),d=!0},p(m,_){const h={};_&32&&(h.values=m[5]),l.$set(h),(!d||_&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ne(r,a)},i(m){d||(v(l.$$.fragment,m),d=!0)},o(m){y(l.$$.fragment,m),d=!1},d(m){m&&C(e),ee(l)}}}function Fn(t){let e,i,n,l,o,s,a=t[0].bitrate.toFixed(2)+"",r,u,d;return l=new wi({props:{values:t[6]}}),{c(){e=g("div"),i=g("div"),i.textContent="V bitrate",n=T(),te(l.$$.fragment),o=T(),s=g("span"),r=fe(a),u=fe(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(m,_){M(m,e,_),f(e,i),f(e,n),$(l,e,null),f(e,o),f(e,s),f(s,r),f(s,u),d=!0},p(m,_){const h={};_&64&&(h.values=m[6]),l.$set(h),(!d||_&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ne(r,a)},i(m){d||(v(l.$$.fragment,m),d=!0)},o(m){y(l.$$.fragment,m),d=!1},d(m){m&&C(e),ee(l)}}}function Wa(t){let e,i,n,l,o,s,a,r,u=t[0].version+"",d,m,_,h,b,w,N,L,p,k,z,F,V,I,O,j,E,K,J,H,U,X,be,Z,D,ie,ce,Ce,ze,qe,de=t[0].id&&Mn(t),me=t[0].provider&&Nn(t),ue=t[0].viewport&&zn(t),ge=t[0].videoSize&&Tn(t),ke=t[0].cdn&&Ln(t),Q=t[0].volume&&En(t),we=t[0].buffer&&Bn(t),ae=t[0].speed&&In(t),R=t[0].bitrate&&Fn(t);return Z=new wi({props:{values:t[4]}}),{c(){e=g("div"),i=g("button"),i.textContent="[x]",n=T(),l=g("div"),o=g("div"),s=g("div"),s.textContent="Version",a=T(),r=g("span"),d=fe(u),m=T(),de&&de.c(),_=T(),me&&me.c(),h=T(),ue&&ue.c(),b=T(),ge&&ge.c(),w=T(),ke&&ke.c(),N=T(),Q&&Q.c(),L=T(),we&&we.c(),p=T(),k=g("div"),z=g("div"),z.textContent="Dropped",F=T(),V=g("span"),I=fe(t[2]),O=fe(" / "),j=fe(t[1]),E=fe(" frames"),K=T(),ae&&ae.c(),J=T(),R&&R.c(),H=T(),U=g("div"),X=g("div"),X.textContent="FPS",be=T(),te(Z.$$.fragment),D=T(),ie=g("span"),ce=fe(t[3]),c(i,"class","close v-1gy2e68"),c(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(s,"class","v-1gy2e68"),c(o,"class","v-1gy2e68"),c(z,"class","v-1gy2e68"),c(k,"class","v-1gy2e68"),c(X,"class","v-1gy2e68"),c(U,"class","v-1gy2e68"),c(l,"class","content v-1gy2e68"),c(e,"class","container v-1gy2e68"),A(e,"container-mobile",t[7])},m(q,x){M(q,e,x),f(e,i),f(e,n),f(e,l),f(l,o),f(o,s),f(o,a),f(o,r),f(r,d),f(l,m),de&&de.m(l,null),f(l,_),me&&me.m(l,null),f(l,h),ue&&ue.m(l,null),f(l,b),ge&&ge.m(l,null),f(l,w),ke&&ke.m(l,null),f(l,N),Q&&Q.m(l,null),f(l,L),we&&we.m(l,null),f(l,p),f(l,k),f(k,z),f(k,F),f(k,V),f(V,I),f(V,O),f(V,j),f(V,E),f(l,K),ae&&ae.m(l,null),f(l,J),R&&R.m(l,null),f(l,H),f(l,U),f(U,X),f(U,be),$(Z,U,null),f(U,D),f(U,ie),f(ie,ce),Ce=!0,ze||(qe=le(i,"click",t[9]),ze=!0)},p(q,[x]){(!Ce||x&1)&&u!==(u=q[0].version+"")&&Ne(d,u),q[0].id?de?de.p(q,x):(de=Mn(q),de.c(),de.m(l,_)):de&&(de.d(1),de=null),q[0].provider?me?me.p(q,x):(me=Nn(q),me.c(),me.m(l,h)):me&&(me.d(1),me=null),q[0].viewport?ue?ue.p(q,x):(ue=zn(q),ue.c(),ue.m(l,b)):ue&&(ue.d(1),ue=null),q[0].videoSize?ge?ge.p(q,x):(ge=Tn(q),ge.c(),ge.m(l,w)):ge&&(ge.d(1),ge=null),q[0].cdn?ke?ke.p(q,x):(ke=Ln(q),ke.c(),ke.m(l,N)):ke&&(ke.d(1),ke=null),q[0].volume?Q?Q.p(q,x):(Q=En(q),Q.c(),Q.m(l,L)):Q&&(Q.d(1),Q=null),q[0].buffer?we?we.p(q,x):(we=Bn(q),we.c(),we.m(l,p)):we&&(we.d(1),we=null),(!Ce||x&4)&&Ne(I,q[2]),(!Ce||x&2)&&Ne(j,q[1]),q[0].speed?ae?(ae.p(q,x),x&1&&v(ae,1)):(ae=In(q),ae.c(),v(ae,1),ae.m(l,J)):ae&&(oe(),y(ae,1,1,()=>{ae=null}),se()),q[0].bitrate?R?(R.p(q,x),x&1&&v(R,1)):(R=Fn(q),R.c(),v(R,1),R.m(l,H)):R&&(oe(),y(R,1,1,()=>{R=null}),se());const He={};x&16&&(He.values=q[4]),Z.$set(He),(!Ce||x&8)&&Ne(ce,q[3]),(!Ce||x&128)&&A(e,"container-mobile",q[7])},i(q){Ce||(v(ae),v(R),v(Z.$$.fragment,q),Ce=!0)},o(q){y(ae),y(R),y(Z.$$.fragment,q),Ce=!1},d(q){q&&C(e),de&&de.d(),me&&me.d(),ue&&ue.d(),ge&&ge.d(),ke&&ke.d(),Q&&Q.d(),we&&we.d(),ae&&ae.d(),R&&R.d(),ee(Z),ze=!1,qe()}}}function Ka(t,e,i){let n;const l=De(),o=l.ui.debugPanelVisible,s=l.ui.isMobile;Y(t,s,k=>i(7,n=k));const a=k=>{St.set(mi,!1),o.set(!1),k.stopPropagation()};let r=l.actions.internal.getDebugPanelData(),u=l.actions.internal.getVideoElement(),d=0,m=0,_=0;const h=new ai(60),b=new ai(60),w=new ai(60);let N=[],L=[],p=[];return At(()=>{St.set(mi,!0),l.actions.internal.startLogging(),u&&(i(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),i(1,d=u.getVideoPlaybackQuality().totalVideoFrames));const k=window.setInterval(()=>{i(0,r=l.actions.internal.getDebugPanelData())},500);let z;return u&&(z=window.setInterval(()=>{if(u){i(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);const F=u.getVideoPlaybackQuality().totalVideoFrames;i(3,_=F-d),i(1,d=F),h.push(_),r.speed&&b.push(r.speed),r.bitrate&&w.push(r.bitrate),i(4,N=h.getValuesFromBottom()),i(5,L=b.getValuesFromBottom()),i(6,p=w.getValuesFromBottom())}},1e3)),()=>{l.actions.internal.stopLogging(),clearInterval(k),z&&clearInterval(z)}}),[r,d,m,_,N,L,p,n,s,a]}class Xa extends pe{constructor(e){super(),he(this,e,Ka,Wa,ve,{},Ya)}}function Ga(t){_e(t,"v-1ome55p",".close.v-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.v-1ome55p:hover{opacity:1}.close.v-1ome55p:before,.close.v-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.v-1ome55p:before{transform:rotate(45deg)}.close.v-1ome55p:after{transform:rotate(-45deg)}")}function Ja(t){let e,i,n;return{c(){e=g("div"),c(e,"class","close v-1ome55p")},m(l,o){M(l,e,o),i||(n=le(e,"click",t[0]),i=!0)},p:B,i:B,o:B,d(l){l&&C(e),i=!1,n()}}}function Za(t){function e(i){xe.call(this,t,i)}return[e]}class xa extends pe{constructor(e){super(),he(this,e,Za,Ja,ve,{},Ga)}}function $a(t){_e(t,"v-8jhsry",`.timer.v-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.v-8jhsry:hover{background:rgba(31, 31, 31, .85)
30
+ }.timer-canvas.v-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.v-8jhsry{width:22px;height:26px}`)}function e1(t){let e,i,n,l,o,s,a;return{c(){e=g("div"),i=g("canvas"),n=T(),l=Ae("svg"),o=Ae("g"),s=Ae("g"),a=Ae("path"),c(i,"class","timer-canvas v-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(s,"fill-rule","nonzero"),c(o,"fill","none"),c(o,"fill-rule","evenodd"),c(l,"class","timer-play-icon v-8jhsry"),c(l,"viewBox","0 0 24 24"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer v-8jhsry")},m(r,u){M(r,e,u),f(e,i),t[2](i),f(e,n),f(e,l),f(l,o),f(o,s),f(s,a)},p:B,i:B,o:B,d(r){r&&C(e),t[2](null)}}}const t1=5e3;function i1(t,e,i){let{onTimerEnded:n=B}=e,l;At(()=>{let s;const a=l.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";const r=Date.now(),u=()=>{const d=(Date.now()-r)/t1;d<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*d),a.stroke(),s=requestAnimationFrame(u)):n()};return s=requestAnimationFrame(u),()=>{cancelAnimationFrame(s)}});function o(s){Ye[s?"unshift":"push"](()=>{l=s,i(0,l)})}return t.$$set=s=>{"onTimerEnded"in s&&i(1,n=s.onTimerEnded)},[l,n,o]}class n1 extends pe{constructor(e){super(),he(this,e,i1,e1,ve,{onTimerEnded:1},$a)}}function l1(t){_e(t,"v-kisfwc",".overlay.v-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.v-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.v-kisfwc{display:flex;justify-content:space-between}.caption.v-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.v-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.v-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.v-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.v-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.v-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function Rn(t){let e,i;return e=new n1({props:{onTimerEnded:t[2]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l&4&&(o.onTimerEnded=n[2]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function o1(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b,w,N,L,p,k,z,F;a=new xa({}),a.$on("click",t[4]);let V=t[3]&&Rn(t);return{c(){e=g("div"),i=T(),n=g("div"),l=g("div"),o=g("div"),o.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",s=T(),te(a.$$.fragment),r=T(),u=g("div"),d=g("div"),m=g("div"),_=g("div"),h=T(),V&&V.c(),w=T(),N=g("div"),L=g("div"),p=fe(t[0]),c(e,"class","overlay v-kisfwc"),c(o,"class","caption v-kisfwc"),c(l,"class","top v-kisfwc"),c(_,"class","thumb-overlay v-kisfwc"),c(m,"class","thumb v-kisfwc"),c(m,"style",b=`background-image: url('${t[1]}')`),c(d,"class","column v-kisfwc"),c(L,"class","title v-kisfwc"),c(N,"class","column v-kisfwc"),c(u,"class","row v-kisfwc"),c(n,"class","next-video v-kisfwc")},m(I,O){M(I,e,O),M(I,i,O),M(I,n,O),f(n,l),f(l,o),f(l,s),$(a,l,null),f(n,r),f(n,u),f(u,d),f(d,m),f(m,_),f(m,h),V&&V.m(m,null),f(u,w),f(u,N),f(N,L),f(L,p),k=!0,z||(F=le(u,"click",function(){Re(t[2])&&t[2].apply(this,arguments)}),z=!0)},p(I,[O]){t=I,t[3]?V?(V.p(t,O),O&8&&v(V,1)):(V=Rn(t),V.c(),v(V,1),V.m(m,null)):V&&(oe(),y(V,1,1,()=>{V=null}),se()),(!k||O&2&&b!==(b=`background-image: url('${t[1]}')`))&&c(m,"style",b),(!k||O&1)&&Ne(p,t[0])},i(I){k||(v(a.$$.fragment,I),v(V),k=!0)},o(I){y(a.$$.fragment,I),y(V),k=!1},d(I){I&&C(e),I&&C(i),I&&C(n),ee(a),V&&V.d(),z=!1,F()}}}function s1(t,e,i){let{title:n}=e,{thumb:l}=e,{playNextVideo:o}=e,s=!0;const a=()=>i(3,s=!1);return t.$$set=r=>{"title"in r&&i(0,n=r.title),"thumb"in r&&i(1,l=r.thumb),"playNextVideo"in r&&i(2,o=r.playNextVideo)},[n,l,o,s,a]}class a1 extends pe{constructor(e){super(),he(this,e,s1,o1,ve,{title:0,thumb:1,playNextVideo:2},l1)}}function r1(t,e,i){let{playNextVideo:n}=e;return At(()=>{n()}),t.$$set=l=>{"playNextVideo"in l&&i(0,n=l.playNextVideo)},[n]}class c1 extends pe{constructor(e){super(),he(this,e,r1,null,ve,{playNextVideo:0})}}function u1(t){_e(t,"v-cus9x4",`.title.v-cus9x4{position:absolute;left:0;top:0;width:100%;height:var(--videoplayer-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(--videoplayer-controls-transition-duration);transition-timing-function:var(--videoplayer-controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
31
+ 0deg,
32
+ rgba(0, 0, 0, 0) 0%,
33
+ rgba(0, 0, 0, 0.02) 19%,
34
+ rgba(0, 0, 0, 0.10) 34%,
35
+ rgba(0, 0, 0, 0.40) 60%,
36
+ rgba(0, 0, 0, 0.60) 100%
37
+ )}.hidden.v-cus9x4{visibility:hidden;transform:translateY(calc(var(--videoplayer-controls-gradient-height) * -1));opacity:0}`)}function d1(t){let e,i;return{c(){e=g("div"),i=fe(t[0]),c(e,"class","title v-cus9x4"),A(e,"hidden",t[1])},m(n,l){M(n,e,l),f(e,i)},p(n,[l]){l&1&&Ne(i,n[0]),l&2&&A(e,"hidden",n[1])},i:B,o:B,d(n){n&&C(e)}}}function f1(t,e,i){let{title:n=""}=e,{isHidden:l=!1}=e;return t.$$set=o=>{"title"in o&&i(0,n=o.title),"isHidden"in o&&i(1,l=o.isHidden)},[n,l]}class m1 extends pe{constructor(e){super(),he(this,e,f1,d1,ve,{title:0,isHidden:1},u1)}}function v1(t){_e(t,"v-1o62kpz",".wrapper.v-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.v-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.v-1o62kpz{width:50px;height:50px}.text.v-1o62kpz{margin-top:20px}")}function qn(t){let e,i,n;return{c(){e=g("div"),i=fe("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=fe(t[1]),c(e,"class","text v-1o62kpz")},m(l,o){M(l,e,o),f(e,i),f(e,n)},p(l,o){o&2&&Ne(n,l[1])},d(l){l&&C(e)}}}function g1(t){let e,i,n,l,o,s,a=t[1]&&qn(t);return{c(){e=g("div"),i=g("div"),i.innerHTML='<svg class="icon v-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=T(),a&&a.c(),c(i,"class","icon_wrapper v-1o62kpz"),c(e,"class","wrapper v-1o62kpz"),c(e,"style",l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${t[0]||""}')`)},m(r,u){M(r,e,u),f(e,i),f(e,n),a&&a.m(e,null),o||(s=le(e,"click",t[2]),o=!0)},p(r,[u]){r[1]?a?a.p(r,u):(a=qn(r),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&l!==(l=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${r[0]||""}')`)&&c(e,"style",l)},i:B,o:B,d(r){r&&C(e),a&&a.d(),o=!1,s()}}}function h1(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:l}=e;function o(s){xe.call(this,t,s)}return t.$$set=s=>{"thumbUrl"in s&&i(0,n=s.thumbUrl),"chromecastDeviceName"in s&&i(1,l=s.chromecastDeviceName)},[n,l,o]}class p1 extends pe{constructor(e){super(),he(this,e,h1,g1,ve,{thumbUrl:0,chromecastDeviceName:1},v1)}}var b1="data:image/svg+xml,%3csvg viewBox='460 190 130 90' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z' fill='white' fill-rule='evenodd'/%3e%3c/svg%3e";function w1(t){_e(t,"v-zd9h6u",".container.v-zd9h6u{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}.icon.v-zd9h6u{width:200px;height:200px}")}function _1(t){let e,i,n;return{c(){e=g("div"),i=g("img"),Ve(i.src,n=b1)||c(i,"src",n),c(i,"class","icon v-zd9h6u"),c(i,"alt",""),c(e,"class","container v-zd9h6u")},m(l,o){M(l,e,o),f(e,i)},p:B,i:B,o:B,d(l){l&&C(e)}}}class k1 extends pe{constructor(e){super(),he(this,e,null,_1,ve,{},w1)}}function y1(t,e,i){let n,l,o,s,a,{isAds:r}=e,{hideContextMenu:u}=e,{toggleFullscreen:d}=e;const m=De(),_=m.getLogger().createComponentLog("KeyboardControls component"),h=m.state.playbackState$;Y(t,h,k=>i(13,a=k));const b=m.ads.playbackState;Y(t,b,k=>i(12,s=k));const w=m.state.positionExact$;Y(t,w,k=>i(11,o=k));const N=m.state.duration$;Y(t,N,k=>i(10,l=k));const L=m.state.volume$;Y(t,L,k=>i(9,n=k));const p=k=>{u();const z=k.code;if(k.ctrlKey||k.altKey||k.metaKey)return;const F=a===Se.PlaybackState.PLAYING||a===Se.PlaybackState.PAUSED,V=r&&(s===Fe.PAUSED||s===Fe.PLAYING);if(F||V)switch(_({message:`key down, code: ${z}`}),z){case Qe.KeyJ:case Qe.ArrowLeft:{if(V)break;const I=Math.max(o-Li,0);o>0&&m.actions.internal.seekTime(I),k.preventDefault();break}case Qe.KeyL:case Qe.ArrowRight:{if(V)break;const I=Math.min(o+Li,l);o<l&&m.actions.internal.seekTime(I),k.preventDefault();break}case Qe.ArrowUp:{const I=Math.min(n+Ti,zi);n<zi&&m.actions.internal.setVolume(I),k.preventDefault();break}case Qe.ArrowDown:{const I=Math.max(n-Ti,0);n>0&&m.actions.internal.setVolume(I),k.preventDefault();break}case Qe.Comma:{k.shiftKey&&(m.actions.internal.decrementPlaybackRate(),k.preventDefault());break}case Qe.Period:{k.shiftKey&&(m.actions.internal.incrementPlaybackRate(),k.preventDefault());break}case Qe.KeyK:case Qe.Space:m.actions.internal.togglePlay(),k.preventDefault();break;case Qe.KeyM:m.actions.internal.toggleMuted(),k.preventDefault();break;case Qe.KeyF:d(),k.preventDefault();break;default:re.checkNever(z);break}};return t.$$set=k=>{"isAds"in k&&i(5,r=k.isAds),"hideContextMenu"in k&&i(6,u=k.hideContextMenu),"toggleFullscreen"in k&&i(7,d=k.toggleFullscreen)},[h,b,w,N,L,r,u,d,p]}class V1 extends pe{constructor(e){super(),he(this,e,y1,null,ve,{isAds:5,hideContextMenu:6,toggleFullscreen:7,keyDownHandler:8})}get keyDownHandler(){return this.$$.ctx[8]}}function P1(t){_e(t,"v-1c30l04",".double-click-area.v-1c30l04{position:absolute;z-index:1;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.v-1c30l04{left:0}.double-click-area.right.v-1c30l04{right:0}.semicircle.v-1c30l04{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.v-1c30l04{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.v-1c30l04{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.v-1c30l04{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.v-1c30l04{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.v-1c30l04{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:v-1c30l04-blink 500ms infinite;opacity:0}.triangle.right.v-1c30l04:nth-child(1),.triangle.left.v-1c30l04:nth-child(3){animation-delay:0ms}.triangle.right.v-1c30l04:nth-child(2),.triangle.left.v-1c30l04:nth-child(2){animation-delay:100ms}.triangle.right.v-1c30l04:nth-child(3),.triangle.left.v-1c30l04:nth-child(1){animation-delay:200ms}@keyframes v-1c30l04-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.v-1c30l04{border-right:8px solid var(--white)}.triangle.right.v-1c30l04{border-left:8px solid var(--white)}.triangle.v-1c30l04:not(:last-child){margin-right:5px}.step-caption.v-1c30l04{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function jn(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b,w,N,L;return{c(){e=g("div"),n=T(),l=g("div"),o=g("div"),s=g("div"),r=T(),u=g("div"),m=T(),_=g("div"),b=T(),w=g("p"),N=fe(t[1]),L=fe(" \u0441\u0435\u043A\u0443\u043D\u0434"),c(e,"class",i="semicircle "+t[0]+" v-1c30l04"),c(s,"class",a="triangle "+t[0]+" v-1c30l04"),c(u,"class",d="triangle "+t[0]+" v-1c30l04"),c(_,"class",h="triangle "+t[0]+" v-1c30l04"),c(o,"class","triangles-wrapper v-1c30l04"),c(w,"class","step-caption v-1c30l04"),c(l,"class","info v-1c30l04")},m(p,k){M(p,e,k),M(p,n,k),M(p,l,k),f(l,o),f(o,s),f(o,r),f(o,u),f(o,m),f(o,_),f(l,b),f(l,w),f(w,N),f(w,L)},p(p,k){k&1&&i!==(i="semicircle "+p[0]+" v-1c30l04")&&c(e,"class",i),k&1&&a!==(a="triangle "+p[0]+" v-1c30l04")&&c(s,"class",a),k&1&&d!==(d="triangle "+p[0]+" v-1c30l04")&&c(u,"class",d),k&1&&h!==(h="triangle "+p[0]+" v-1c30l04")&&c(_,"class",h),k&2&&Ne(N,p[1])},d(p){p&&C(e),p&&C(n),p&&C(l)}}}function S1(t){let e,i,n,l,o=t[2]&&jn(t);return{c(){e=g("div"),o&&o.c(),c(e,"class",i="double-click-area "+t[0]+" v-1c30l04")},m(s,a){M(s,e,a),o&&o.m(e,null),n||(l=le(e,"click",Ql(t[3]())),n=!0)},p(s,[a]){s[2]?o?o.p(s,a):(o=jn(s),o.c(),o.m(e,null)):o&&(o.d(1),o=null),a&1&&i!==(i="double-click-area "+s[0]+" v-1c30l04")&&c(e,"class",i)},i:B,o:B,d(s){s&&C(e),o&&o.d(),n=!1,l()}}}function A1(t,e,i){let{side:n}=e,{seekStep:l}=e,{handleSingleFirstClick:o}=e,{handleSecondClick:s}=e,a=!1,r=0,u=0;const d=()=>{let _=0;return()=>{_+=1,_===1?r=window.setTimeout(()=>{o(),_=0},300):(window.clearTimeout(r),_=0,s(),i(2,a=!0),u=window.setTimeout(()=>{i(2,a=!1)},500))}};return Wl(()=>{window.clearTimeout(r),window.clearTimeout(u)}),t.$$set=m=>{"side"in m&&i(0,n=m.side),"seekStep"in m&&i(1,l=m.seekStep),"handleSingleFirstClick"in m&&i(4,o=m.handleSingleFirstClick),"handleSecondClick"in m&&i(5,s=m.handleSecondClick)},[n,l,a,d,o,s]}class wl extends pe{constructor(e){super(),he(this,e,A1,S1,ve,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},P1)}}function C1(t,e){var i,n,l,o,s;return t?((s=(o=(l=(n=(i=t.matches)!==null&&i!==void 0?i:t.matchesSelector)!==null&&n!==void 0?n:t.mozMatchesSelector)!==null&&l!==void 0?l:t.msMatchesSelector)!==null&&o!==void 0?o:t.oMatchesSelector)!==null&&s!==void 0?s:t.webkitMatchesSelector).call(t,e):!1}function M1(t){return C1(t,":hover")}const _l=t=>t>1?ii:t<0?0:t,Dn=t=>St.set(al,_l(t)),kl=()=>{const t=parseFloat(St.get(al));return isNaN(t)?ii:_l(t)},Hn=t=>St.set(rl,t),N1=()=>{const t=St.get(rl);return typeof t=="boolean"?t:!1},z1=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();const e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},T1=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),L1=t=>{const e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Un=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},E1=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},B1=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},{window:I1}=$l;function F1(t){_e(t,"v-phigzb",".player-wrapper.v-phigzb{--white:#fff;--black:#000;--red:#ff3347;--videoplayer-controls-height:45px;--videoplayer-controls-fullscreen-height:50px;--videoplayer-controls-gradient-height:100px;--videoplayer-controls-transition-duration:0.25s;--videoplayer-controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--videoplayer-focused-element-shadow:inset 0 0 0 2px #2a5885;--videoplayer-focused-slider-shadow:0 0 0 2px #2a5885;--videoplayer-big-play-size:75px;--videoplayer-big-play-radius:50%;--videoplayer-big-play-bg-color:rgba(0, 0, 0, 0.5);--videoplayer-big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--videoplayer-big-play-icon-width:38px;--videoplayer-big-play-icon-height:33px;--videoplayer-slider-height:5px;--videoplayer-slider-radius:calc(var(--videoplayer-slider-height) / 2);--videoplayer-slider-handle-size:13px;--videoplayer-slider-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-loaded-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-filled-bg:var(--white);--videoplayer-slider-filled-active-live-bg:var(--red);--videoplayer-slider-filled-ads:rgba(103, 165, 235, 1);--videoplayer-slider-disabled-color:rgba(248, 248, 248, 0.31);--videplayer-mobile-settings-bg:#2C2D2E;--videoplayer-button-hover-transition:opacity 0.2s;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}.player-wrapper.v-phigzb .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.video-container.v-phigzb,.ads-container.v-phigzb{position:absolute;width:100%;height:100%;left:0;top:0}.video-container.v-phigzb{z-index:0}.nocursor.v-phigzb{cursor:none}.ads-container.v-phigzb{background:var(--black)}.hidden.v-phigzb{visibility:hidden}div{outline:none}")}function On(t){let e,i,n,l;e=new wl({props:{side:"left",seekStep:ei,handleSingleFirstClick:t[66],handleSecondClick:t[92]}});let o=!t[37]&&Qn(t);return{c(){te(e.$$.fragment),i=T(),o&&o.c(),n=Je()},m(s,a){$(e,s,a),M(s,i,a),o&&o.m(s,a),M(s,n,a),l=!0},p(s,a){s[37]?o&&(oe(),y(o,1,1,()=>{o=null}),se()):o?(o.p(s,a),a[1]&64&&v(o,1)):(o=Qn(s),o.c(),v(o,1),o.m(n.parentNode,n))},i(s){l||(v(e.$$.fragment,s),v(o),l=!0)},o(s){y(e.$$.fragment,s),y(o),l=!1},d(s){ee(e,s),s&&C(i),o&&o.d(s),s&&C(n)}}}function Qn(t){let e,i;return e=new wl({props:{side:"right",seekStep:ei,handleSingleFirstClick:t[66],handleSecondClick:t[93]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:B,i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Yn(t){let e,i,n;return i=new Ia({props:{adsSlotId:t[5],adsParams:t[6],adsPreviewParam:t[7],duration:t[8]}}),{c(){e=g("div"),te(i.$$.fragment),c(e,"class","ads-container v-phigzb"),A(e,"hidden",t[25]!==Pe.Ads)},m(l,o){M(l,e,o),$(i,e,null),n=!0},p(l,o){const s={};o[0]&32&&(s.adsSlotId=l[5]),o[0]&64&&(s.adsParams=l[6]),o[0]&128&&(s.adsPreviewParam=l[7]),o[0]&256&&(s.duration=l[8]),i.$set(s),(!n||o[0]&33554432)&&A(e,"hidden",l[25]!==Pe.Ads)},i(l){n||(v(i.$$.fragment,l),n=!0)},o(l){y(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function Wn(t){let e,i,n,l;const o=[q1,R1],s=[];function a(r,u){return r[11]?0:1}return e=a(t),i=s[e]=o[e](t),{c(){i.c(),n=Je()},m(r,u){s[e].m(r,u),M(r,n,u),l=!0},p(r,u){let d=e;e=a(r),e===d?s[e].p(r,u):(oe(),y(s[d],1,1,()=>{s[d]=null}),se(),i=s[e],i?i.p(r,u):(i=s[e]=o[e](r),i.c()),v(i,1),i.m(n.parentNode,n))},i(r){l||(v(i),l=!0)},o(r){y(i),l=!1},d(r){s[e].d(r),r&&C(n)}}}function R1(t){let e,i;return e=new a1({props:{title:t[15],thumb:t[16],playNextVideo:t[18]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&32768&&(o.title=n[15]),l[0]&65536&&(o.thumb=n[16]),l[0]&262144&&(o.playNextVideo=n[18]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function q1(t){let e,i;return e=new c1({props:{playNextVideo:t[18]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&262144&&(o.playNextVideo=n[18]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Kn(t){let e,i;return e=new m1({props:{title:t[0],isHidden:!t[21]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&1&&(o.title=n[0]),l[0]&2097152&&(o.isHidden=!n[21]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Xn(t){let e,i;return e=new p1({props:{thumbUrl:t[1],chromecastDeviceName:t[38]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&2&&(o.thumbUrl=n[1]),l[1]&128&&(o.chromecastDeviceName=n[38]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Gn(t){let e,i,n={toggleFullscreen:t[63],hideContextMenu:t[64],isAds:t[25]===Pe.Ads};return e=new V1({props:n}),t[95](e),{c(){te(e.$$.fragment)},m(l,o){$(e,l,o),i=!0},p(l,o){const s={};o[0]&33554432&&(s.isAds=l[25]===Pe.Ads),e.$set(s)},i(l){i||(v(e.$$.fragment,l),i=!0)},o(l){y(e.$$.fragment,l),i=!1},d(l){t[95](null),ee(e,l)}}}function Jn(t){let e,i,n,l,o;return i=new k1({}),{c(){e=g("div"),te(i.$$.fragment)},m(s,a){M(s,e,a),$(i,e,null),n=!0,l||(o=[le(e,"contextmenu",Vt(t[65])),le(e,"click",t[68])],l=!0)},p:B,i(s){n||(v(i.$$.fragment,s),n=!0)},o(s){y(i.$$.fragment,s),n=!1},d(s){s&&C(e),ee(i),l=!1,We(o)}}}function Zn(t){let e,i;return e=new ja({props:{supportLink:t[3],visible:t[36],playerContainerRef:t[27],controlsContainerRef:t[29],x:t[31],y:t[32]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[0]&8&&(o.supportLink=n[3]),l[1]&32&&(o.visible=n[36]),l[0]&134217728&&(o.playerContainerRef=n[27]),l[0]&536870912&&(o.controlsContainerRef=n[29]),l[1]&1&&(o.x=n[31]),l[1]&2&&(o.y=n[32]),e.$set(o)},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function xn(t){let e,i;return e=new ha({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function $n(t){let e,i;return e=new Xa({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(v(e.$$.fragment,n),i=!0)},o(n){y(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function j1(t){let e,i,n,l,o,s,a,r,u,d,m,_,h,b,w,N,L,p,k;i=new ma({props:{hidden:t[25]!==Pe.Thumb||t[23],thumbUrl:t[1],startVideo:t[61]}});let z=t[11]&&On(t),F=t[4]&&t[30]&&Yn(t),V=t[22]&&t[15]&&t[16]&&Wn(t),I=!t[11]&&t[25]===Pe.Video&&Kn(t),O=t[24]&&Xn(t),j=!t[11]&&Gn(t);function E(be){t[96](be)}let K={hidden:t[25]===Pe.Thumb||t[11]&&t[25]===Pe.Ads,showControls:t[21],isAds:t[25]===Pe.Ads,canRewindLive:t[2]&&t[26]!==0,logoClickable:t[9],logoHidden:t[10],showNextPrevButtons:t[12],nextButtonActive:t[13],prevButtonActive:t[14],isOneVideoPlaylist:t[17],supportLink:t[3],playNextVideo:t[18],playPrevVideo:t[19],repeatPlaylist:t[20],toggleFullscreen:t[63]};t[29]!==void 0&&(K.controlsElementRef=t[29]),m=new ca({props:K}),Ye.push(()=>eo(m,"controlsElementRef",E));let J=t[23]&&Jn(t),H=!t[11]&&Zn(t),U=t[34]&&xn(),X=t[39]&&$n();return{c(){e=g("div"),te(i.$$.fragment),n=T(),l=g("div"),z&&z.c(),o=T(),F&&F.c(),s=T(),V&&V.c(),a=T(),I&&I.c(),r=T(),O&&O.c(),u=T(),j&&j.c(),d=T(),te(m.$$.fragment),h=T(),J&&J.c(),b=T(),H&&H.c(),w=T(),U&&U.c(),N=T(),X&&X.c(),c(l,"class","video-container v-phigzb"),A(l,"hidden",t[25]!==Pe.Video),A(l,"nocursor",t[35]),c(e,"class","player-wrapper v-phigzb"),c(e,"tabindex","0")},m(be,Z){M(be,e,Z),$(i,e,null),f(e,n),f(e,l),z&&z.m(l,null),t[94](l),f(e,o),F&&F.m(e,null),f(e,s),V&&V.m(e,null),f(e,a),I&&I.m(e,null),f(e,r),O&&O.m(e,null),f(e,u),j&&j.m(e,null),f(e,d),$(m,e,null),f(e,h),J&&J.m(e,null),f(e,b),H&&H.m(e,null),f(e,w),U&&U.m(e,null),f(e,N),X&&X.m(e,null),t[97](e),L=!0,p||(k=[le(I1,"blur",t[64]),le(l,"contextmenu",Vt(t[65])),le(l,"click",t[67]),le(e,"mouseenter",function(){Re(t[11]?B:t[58])&&(t[11]?B:t[58]).apply(this,arguments)}),le(e,"mouseleave",function(){Re(t[11]?B:t[59])&&(t[11]?B:t[59]).apply(this,arguments)}),le(e,"mousemove",function(){Re(t[11]?B:t[60])&&(t[11]?B:t[60]).apply(this,arguments)}),le(e,"keydown",function(){Re(t[11]?B:t[69])&&(t[11]?B:t[69]).apply(this,arguments)})],p=!0)},p(be,Z){t=be;const D={};Z[0]&41943040&&(D.hidden=t[25]!==Pe.Thumb||t[23]),Z[0]&2&&(D.thumbUrl=t[1]),i.$set(D),t[11]?z?(z.p(t,Z),Z[0]&2048&&v(z,1)):(z=On(t),z.c(),v(z,1),z.m(l,null)):z&&(oe(),y(z,1,1,()=>{z=null}),se()),(!L||Z[0]&33554432)&&A(l,"hidden",t[25]!==Pe.Video),(!L||Z[1]&16)&&A(l,"nocursor",t[35]),t[4]&&t[30]?F?(F.p(t,Z),Z[0]&1073741840&&v(F,1)):(F=Yn(t),F.c(),v(F,1),F.m(e,s)):F&&(oe(),y(F,1,1,()=>{F=null}),se()),t[22]&&t[15]&&t[16]?V?(V.p(t,Z),Z[0]&4292608&&v(V,1)):(V=Wn(t),V.c(),v(V,1),V.m(e,a)):V&&(oe(),y(V,1,1,()=>{V=null}),se()),!t[11]&&t[25]===Pe.Video?I?(I.p(t,Z),Z[0]&33556480&&v(I,1)):(I=Kn(t),I.c(),v(I,1),I.m(e,r)):I&&(oe(),y(I,1,1,()=>{I=null}),se()),t[24]?O?(O.p(t,Z),Z[0]&16777216&&v(O,1)):(O=Xn(t),O.c(),v(O,1),O.m(e,u)):O&&(oe(),y(O,1,1,()=>{O=null}),se()),t[11]?j&&(oe(),y(j,1,1,()=>{j=null}),se()):j?(j.p(t,Z),Z[0]&2048&&v(j,1)):(j=Gn(t),j.c(),v(j,1),j.m(e,d));const ie={};Z[0]&33556480&&(ie.hidden=t[25]===Pe.Thumb||t[11]&&t[25]===Pe.Ads),Z[0]&2097152&&(ie.showControls=t[21]),Z[0]&33554432&&(ie.isAds=t[25]===Pe.Ads),Z[0]&67108868&&(ie.canRewindLive=t[2]&&t[26]!==0),Z[0]&512&&(ie.logoClickable=t[9]),Z[0]&1024&&(ie.logoHidden=t[10]),Z[0]&4096&&(ie.showNextPrevButtons=t[12]),Z[0]&8192&&(ie.nextButtonActive=t[13]),Z[0]&16384&&(ie.prevButtonActive=t[14]),Z[0]&131072&&(ie.isOneVideoPlaylist=t[17]),Z[0]&8&&(ie.supportLink=t[3]),Z[0]&262144&&(ie.playNextVideo=t[18]),Z[0]&524288&&(ie.playPrevVideo=t[19]),Z[0]&1048576&&(ie.repeatPlaylist=t[20]),!_&&Z[0]&536870912&&(_=!0,ie.controlsElementRef=t[29],Zl(()=>_=!1)),m.$set(ie),t[23]?J?(J.p(t,Z),Z[0]&8388608&&v(J,1)):(J=Jn(t),J.c(),v(J,1),J.m(e,b)):J&&(oe(),y(J,1,1,()=>{J=null}),se()),t[11]?H&&(oe(),y(H,1,1,()=>{H=null}),se()):H?(H.p(t,Z),Z[0]&2048&&v(H,1)):(H=Zn(t),H.c(),v(H,1),H.m(e,w)),t[34]?U?Z[1]&8&&v(U,1):(U=xn(),U.c(),v(U,1),U.m(e,N)):U&&(oe(),y(U,1,1,()=>{U=null}),se()),t[39]?X?Z[1]&256&&v(X,1):(X=$n(),X.c(),v(X,1),X.m(e,null)):X&&(oe(),y(X,1,1,()=>{X=null}),se())},i(be){L||(v(i.$$.fragment,be),v(z),v(F),v(V),v(I),v(O),v(j),v(m.$$.fragment,be),v(J),v(H),v(U),v(X),L=!0)},o(be){y(i.$$.fragment,be),y(z),y(F),y(V),y(I),y(O),y(j),y(m.$$.fragment,be),y(J),y(H),y(U),y(X),L=!1},d(be){be&&C(e),ee(i),z&&z.d(),t[94](null),F&&F.d(),V&&V.d(),I&&I.d(),O&&O.d(),j&&j.d(),ee(m),J&&J.d(),H&&H.d(),U&&U.d(),X&&X.d(),t[97](null),p=!1,We(k)}}}let ei=15;function D1(t,e,i){let n,l,o,s,a,r,u,d,m,_,h,b,w,N,L,p,k,z,{sources:F}=e,{store:V}=e,{title:I}=e,{thumbUrl:O}=e,{autoplay:j=!1}=e,{volume:E=void 0}=e,{muted:K=void 0}=e,{fromTime:J=0}=e,{canRewindLive:H=!0}=e,{supportLink:U=vo}=e,{showAds:X=!1}=e,{adsSlotId:be=void 0}=e,{adsParams:Z=void 0}=e,{adsPreviewParam:D=void 0}=e,{duration:ie=void 0}=e,{logoClickable:ce=!1}=e,{logoHidden:Ce=!1}=e,{isMobile:ze=!1}=e,{showNextPrevButtons:qe=!1}=e,{nextButtonActive:de=!1}=e,{prevButtonActive:me=!1}=e,{endScreenVideoTitle:ue=void 0}=e,{endScreenVideoThumb:ge=void 0}=e,{isOneVideoPlaylist:ke=!1}=e,{outerContainerRef:Q=void 0}=e,{playNextVideo:we=B}=e,{playPrevVideo:ae=B}=e,{repeatPlaylist:R=B}=e,{fullScreenTarget:q=void 0}=e,{failoverHosts:x=void 0}=e;const He=P=>{Ue.set(!0),P?ze&&(Qt.set(!0),Ft.set(!0),window.setTimeout(()=>{Ft.set(!1),Me(Ni)},ro)):Me(Ni)};V.setUiCallbacks({onStarted:He}),V.getAdmanWrapper().init({switchFromAdsToVideo:V.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:V.actions.internal.switchFromVideoToAds,setMuted:V.actions.external.setMuted},V.ads,{isMobile:V.ui.isMobile,mobileUnmuteButtonVisible:V.ui.mobileUnmuteButtonVisible});const Ze=V.getLogger().createComponentLog("Root component"),gt=V.state.playbackState$;Y(t,gt,P=>i(103,d=P));const ht=V.ads.playbackState;Y(t,ht,P=>i(90,w=P));const st=V.state.positionWithScrubbing$;Y(t,st,P=>i(101,r=P));const at=V.state.duration$;Y(t,at,P=>i(100,a=P));const Ct=V.playerPhase;Y(t,Ct,P=>i(25,N=P));const rt=V.ui.isFullscreen;Y(t,rt,P=>i(99,s=P));const Ue=V.ui.controlsVisible;Y(t,Ue,P=>i(87,o=P));const $e=V.ui.settingsMenuVisible;Y(t,$e,P=>i(102,u=P));const pt=V.ui.scrubbingInProgress;Y(t,pt,P=>i(88,m=P));const ct=V.ui.playerSize,et=V.ui.contextMenuVisible;Y(t,et,P=>i(36,n=P));const ut=V.ui.debugPanelVisible;Y(t,ut,P=>i(39,z=P));const tt=V.state.isLoaderVisible;Y(t,tt,P=>i(91,L=P));const it=V.state.isEnded$;Y(t,it,P=>i(86,l=P));const Mt=V.state.chromecastConnected$;Y(t,Mt,P=>i(24,b=P));const bt=V.state.chromecastDeviceName$;Y(t,bt,P=>i(38,k=P));const W=V.ads.postrollPassed;Y(t,W,P=>i(89,h=P));const Ft=V.ui.mobileUnmuteButtonExpanded,Qt=V.ui.mobileUnmuteButtonVisible,Yt=V.state.isActiveLive$;Y(t,Yt,P=>i(37,p=P));const Wt=V.state.crashed$;Y(t,Wt,P=>i(23,_=P));let Kt=0;V.state.duration$.subscribe(P=>{i(26,Kt=P)}),no(V);let wt,Nt,_t,dt,kt=null,Rt=!1,Xt=0,qt=0,zt,jt,Dt,Te,S,G=!1;function ne(){clearTimeout(dt),Ue.set(!0)}function ye(){Me(so)}function Oe(){clearTimeout(dt),Ue.set(!0),s&&_t&&!M1(_t)&&Me(ao)}function Me(P){i(84,dt=window.setTimeout(()=>{if(d===Se.PlaybackState.PLAYING){if(ze&&u)return;Ue.set(!1),$e.set(!1)}},P))}const Ge=P=>{if(window.ResizeObserver){let Be,Ke;kt=new ResizeObserver(Bl(yt=>{const Xe=yt[0];if(Xe){if(Xe.contentBoxSize){const Pi=Array.isArray(Xe.contentBoxSize)?Xe.contentBoxSize[0]:Xe.contentBoxSize;Be=Pi.inlineSize,Ke=Pi.blockSize}else Xe.contentRect&&(Be=Xe.contentRect.width,Ke=Xe.contentRect.height);ct.set({width:Be,height:Ke})}},fo)),kt.observe(P)}ct.set({width:P.clientWidth,height:P.clientHeight})},Ee=(P=!1)=>{i(30,Rt=!0),P?V.actions.external.firstStart(X):V.actions.internal.firstStart(X)};At(()=>{E1(yi),Ge(wt),V.initVideo({container:Nt,sources:F,failoverHosts:x}),J>0&&V.actions.external.seekTime(J);const P=ze?ii:E!=null?E:kl(),Be=K!=null?K:N1();V.actions.external.setVolume(P),V.actions.external.setMuted(Be),V.getAdmanWrapper().setInitialVolume(Be?0:P),V.ui.isAutoplay.set(j),j&&Ee();const Ke=Boolean(St.get(mi));return ut.set(Ke),()=>{B1(yi),kt==null||kt.disconnect(),V.destroy()}});function ft(){Rt?V.actions.external.play():Ee(!0)}function li(){V.actions.external.pause()}function yl(P){ze||V.actions.external.setMuted(P)}function Vl(P){ze||P>=0&&P<=1&&V.actions.external.setVolume(P)}function _i(P){V.actions.internal.seekTime(P)}const oi=P=>{let Be=r+(P==="forward"?ei:-ei);Be<0?Be=0:Be>a&&(Be=a-1),_i(Be)},ki=()=>{if(Un())T1(document),Ze({message:"exit fullscreen"});else{Ze({message:"request fullscreen"});const P=Q!=null?Q:wt,Be=P.getRootNode(),Ke=Be instanceof ShadowRoot?Be.host:Be,yt=q instanceof HTMLElement&&q.contains(Ke);z1(q&&yt?q:P)}},yi=()=>{var P,Be,Ke,yt;const Xe=Un();rt.set(Xe),V.getAdmanWrapper().setFullscreen(Xe),s?(Be=(P=V.callbacks)===null||P===void 0?void 0:P.onFullscreenEnter)===null||Be===void 0||Be.call(P):(yt=(Ke=V.callbacks)===null||Ke===void 0?void 0:Ke.onFullscreenExit)===null||yt===void 0||yt.call(Ke)},Gt=()=>et.set(!1),Pl=P=>{et.set(!0),i(31,Xt=P.clientX),i(32,qt=P.clientY)},Vi=()=>{o?Ue.set(!1):(Ue.set(!0),clearTimeout(dt),Me(Mi))},Sl=P=>{if(ze){Vi();return}if(n){Gt();return}Gt(),!l&&(V.actions.internal.togglePlay(),$e.set(!1),P.detail===2&&(Ze({message:"double click on video"}),ki()))},Al=()=>{if(n){Gt();return}},Cl=P=>{zt.keyDownHandler(P)},Ml=()=>oi("backward"),Nl=()=>oi("forward");function zl(P){Ye[P?"unshift":"push"](()=>{Nt=P,i(28,Nt)})}function Tl(P){Ye[P?"unshift":"push"](()=>{zt=P,i(33,zt)})}function Ll(P){_t=P,i(29,_t)}function El(P){Ye[P?"unshift":"push"](()=>{wt=P,i(27,wt)})}return t.$$set=P=>{"sources"in P&&i(70,F=P.sources),"store"in P&&i(71,V=P.store),"title"in P&&i(0,I=P.title),"thumbUrl"in P&&i(1,O=P.thumbUrl),"autoplay"in P&&i(72,j=P.autoplay),"volume"in P&&i(73,E=P.volume),"muted"in P&&i(74,K=P.muted),"fromTime"in P&&i(75,J=P.fromTime),"canRewindLive"in P&&i(2,H=P.canRewindLive),"supportLink"in P&&i(3,U=P.supportLink),"showAds"in P&&i(4,X=P.showAds),"adsSlotId"in P&&i(5,be=P.adsSlotId),"adsParams"in P&&i(6,Z=P.adsParams),"adsPreviewParam"in P&&i(7,D=P.adsPreviewParam),"duration"in P&&i(8,ie=P.duration),"logoClickable"in P&&i(9,ce=P.logoClickable),"logoHidden"in P&&i(10,Ce=P.logoHidden),"isMobile"in P&&i(11,ze=P.isMobile),"showNextPrevButtons"in P&&i(12,qe=P.showNextPrevButtons),"nextButtonActive"in P&&i(13,de=P.nextButtonActive),"prevButtonActive"in P&&i(14,me=P.prevButtonActive),"endScreenVideoTitle"in P&&i(15,ue=P.endScreenVideoTitle),"endScreenVideoThumb"in P&&i(16,ge=P.endScreenVideoThumb),"isOneVideoPlaylist"in P&&i(17,ke=P.isOneVideoPlaylist),"outerContainerRef"in P&&i(76,Q=P.outerContainerRef),"playNextVideo"in P&&i(18,we=P.playNextVideo),"playPrevVideo"in P&&i(19,ae=P.playPrevVideo),"repeatPlaylist"in P&&i(20,R=P.repeatPlaylist),"fullScreenTarget"in P&&i(77,q=P.fullScreenTarget),"failoverHosts"in P&&i(78,x=P.failoverHosts)},t.$$.update=()=>{t.$$.dirty[0]&41943040|t.$$.dirty[2]&805306368&&i(34,jt=(N===Pe.Video&&L||N===Pe.Ads&&w===Fe.INACTIVE)&&!_),t.$$.dirty[0]&25165824|t.$$.dirty[2]&50331648&&i(21,Dt=(o||b||l)&&!_),t.$$.dirty[0]&8388624|t.$$.dirty[2]&150994944&&i(22,Te=(X&&h||!X)&&l&&!_),t.$$.dirty[0]&6291456&&i(35,S=rt&&!(Dt||Te)),t.$$.dirty[0]&2048|t.$$.dirty[2]&512&&V.ui.isMobile.set(ze),t.$$.dirty[0]&2048|t.$$.dirty[2]&79691776&&(G!==m&&ze&&(clearTimeout(dt),m?Ue.set(!0):Me(Mi)),i(85,G=m))},[I,O,H,U,X,be,Z,D,ie,ce,Ce,ze,qe,de,me,ue,ge,ke,we,ae,R,Dt,Te,_,b,N,Kt,wt,Nt,_t,Rt,Xt,qt,zt,jt,S,n,p,k,z,gt,ht,st,at,Ct,rt,Ue,$e,pt,et,ut,tt,it,Mt,bt,W,Yt,Wt,ne,ye,Oe,Ee,oi,ki,Gt,Pl,Vi,Sl,Al,Cl,F,V,j,E,K,J,Q,q,x,ft,li,yl,Vl,_i,dt,G,l,o,m,h,w,L,Ml,Nl,zl,Tl,Ll,El]}class H1 extends pe{constructor(e){super(),he(this,e,D1,j1,ve,{sources:70,store:71,title:0,thumbUrl:1,autoplay:72,volume:73,muted:74,fromTime:75,canRewindLive:2,supportLink:3,showAds:4,adsSlotId:5,adsParams:6,adsPreviewParam:7,duration:8,logoClickable:9,logoHidden:10,isMobile:11,showNextPrevButtons:12,nextButtonActive:13,prevButtonActive:14,endScreenVideoTitle:15,endScreenVideoThumb:16,isOneVideoPlaylist:17,outerContainerRef:76,playNextVideo:18,playPrevVideo:19,repeatPlaylist:20,fullScreenTarget:77,failoverHosts:78,play:79,pause:80,setMuted:81,setVolume:82,seekTime:83},F1,[-1,-1,-1,-1])}get play(){return this.$$.ctx[79]}get pause(){return this.$$.ctx[80]}get setMuted(){return this.$$.ctx[81]}get setVolume(){return this.$$.ctx[82]}get seekTime(){return this.$$.ctx[83]}}var U1="data:image/svg+xml,%3csvg width='57' height='60' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6h19.489zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z' fill='%23909499'/%3e%3c/svg%3e";function O1(t){_e(t,"v-1oqts7t",".playerStub.v-1oqts7t{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}.stubImage.v-1oqts7t{height:60px}.stubImage-white.v-1oqts7t{filter:brightness(0) invert(1)}.title.v-1oqts7t{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 el(t){let e,i;return{c(){e=g("div"),i=fe(t[0]),c(e,"class","title v-1oqts7t")},m(n,l){M(n,e,l),f(e,i)},p(n,l){l&1&&Ne(i,n[0])},d(n){n&&C(e)}}}function tl(t){let e,i;return{c(){e=g("img"),Ve(e.src,i=U1)||c(e,"src",i),c(e,"class","stubImage v-1oqts7t"),c(e,"alt",""),A(e,"stubImage-white",t[1]||"")},m(n,l){M(n,e,l)},p(n,l){l&2&&A(e,"stubImage-white",n[1]||"")},d(n){n&&C(e)}}}function Q1(t){let e,i,n,l=t[0]&&el(t),o=(!t[0]||!t[1])&&tl(t);return{c(){e=g("div"),l&&l.c(),i=T(),o&&o.c(),c(e,"class","playerStub v-1oqts7t"),c(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(s,a){M(s,e,a),l&&l.m(e,null),f(e,i),o&&o.m(e,null)},p(s,[a]){s[0]?l?l.p(s,a):(l=el(s),l.c(),l.m(e,i)):l&&(l.d(1),l=null),!s[0]||!s[1]?o?o.p(s,a):(o=tl(s),o.c(),o.m(e,null)):o&&(o.d(1),o=null),a&2&&n!==(n=s[1]?`background-image: url('${s[1]}')`:"")&&c(e,"style",n)},i:B,o:B,d(s){s&&C(e),l&&l.d(),o&&o.d()}}}function Y1(t,e,i){let{title:n}=e,{thumbUrl:l}=e;return t.$$set=o=>{"title"in o&&i(0,n=o.title),"thumbUrl"in o&&i(1,l=o.thumbUrl)},[n,l]}class W1 extends pe{constructor(e){super(),he(this,e,Y1,Q1,ve,{title:0,thumbUrl:1},O1)}}const K1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,X1="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",G1=2e3,J1=2e3;class Z1{constructor(e){this.adman=null,this.initialVolume=ii,this.videoElement=null,this.currentAdSection=null,this.actions=null,this.adsState=null,this.uiState=null,this.events={slotRequested$:new re.Subject,started$:new re.Subject,paused$:new re.Subject,resumed$:new re.Subject,ended$:new re.Subject,skipped$:new re.Subject,clicked$:new re.Subject},this.loadAdman=i=>new Promise((n,l)=>{let o;const s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?n():l()};re.addScript(X1,i,G1).then(()=>{window.AdmanHTML?n():(window.admanAsyncInit=s,o=window.setTimeout(s,J1))}).catch(()=>{l()})}),this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()},this.onAdStarted=(i,n)=>{re.assertNonNullable(this.adsState),re.assertNonNullable(this.uiState),re.assertNonNullable(this.actions),this.log({message:`ad started, section: ${i}, banner: ${JSON.stringify(n)}`}),this.events.started$.next(i),n.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Ie(this.uiState.isMobile)&&this.uiState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(n.duration),this.adsState.playbackState.set(Fe.PLAYING),this.adsState.canSkip.set(n.allowClose),this.adsState.secondsToWatchBeforeSkip.set(n.allowCloseDelay)},this.onAdTimeRemained=({currentTime:i})=>{re.assertNonNullable(this.adsState),this.adsState.position.set(i)},this.onAdPaused=()=>{re.assertNonNullable(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(Fe.PAUSED)},this.onAdPlayed=()=>{re.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(Fe.PLAYING)},this.onAdMidrollPoint=()=>{re.assertNonNullable(this.adman),re.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=lt.Midroll,this.adman.start(lt.Midroll)},this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()},this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()},this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()},this.onAdClicked=()=>{var i;this.log({message:"ad clicked"}),(i=this.videoElement)===null||i===void 0||i.pause(),this.events.clicked$.next()},this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)},this.log=e.createComponentLog("AdmanWrapper")}init(e,i,n){this.actions=e,this.adsState=i,this.uiState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){const{width:i,height:n,isFullscreen:l,isAutoplay:o,adsContainer:s,adsVideoElement:a,slotId:r,params:u={},duration:d,previewParam:m}=e,_=Object.assign({dl:encodeURIComponent(window.location.href),autoplay:o,player_width:i,player_height:n,puid10:K1(i,n),puid11:l?0:1,preview:m,duration:d},u),h={slot:r,wrapper:s,videoEl:a,videoQuality:n,params:_,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(h),this.adman=b,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(h)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}re.assertNonNullable(this.actions),re.assertNonNullable(this.adsState),re.assertNonNullable(this.uiState);const i=this.currentAdSection===lt.Postroll;this.adsState.playbackState.set(Fe.INACTIVE),this.currentAdSection=null,this.uiState.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(){re.assertNonNullable(this.adsState),this.log({message:"toggle play"});const e=Ie(this.adsState.playbackState);e===Fe.PLAYING?this.pause():e===Fe.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var i;this.log({message:`set volume ${e}`}),(i=this.adman)===null||i===void 0||i.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var i;this.log({message:`set fullscreen ${e}`}),(i=this.adman)===null||i===void 0||i.setFullscreen(e)}startPreroll(){re.assertNonNullable(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=lt.Preroll,this.adman.start(lt.Preroll)}startPostroll(){re.assertNonNullable(this.adman),re.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=lt.Postroll,this.adman.start(lt.Postroll)}play(){re.assertNonNullable(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){re.assertNonNullable(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){re.assertNonNullable(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,i){var n;(n=this.adman)===null||n===void 0||n.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)===null||e===void 0||e.destroy()}}const x1=()=>/ipad|iphone|ipod/.test(window.navigator.userAgent.toLowerCase()),$1=t=>{const 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:""},er=(t,e,i)=>{const n=new re.Subscription;return n.add(i.attachTo(t)),n.add(e.slotRequested$.subscribe(()=>{i.logAdSlotRequest()})).add(e.started$.subscribe(l=>{i.logAdStarted(l)})).add(e.paused$.subscribe(()=>{i.logAdPaused()})).add(e.resumed$.subscribe(()=>{i.logAdResumed()})).add(e.ended$.subscribe(()=>{i.logAdEnded()})).add(e.skipped$.subscribe(()=>{i.logAdSkipped()})).add(e.clicked$.subscribe(()=>{i.logAdClicked()})),n},tr=({videoId:t,albumId:e,autoplay:i,statPlace:n,callbacks:l})=>{const o=new Se.Player,s=new re.Logger,a=new Z1(s),r=s.createComponentLog("Store");let u,d,m={};const _=It([],S=>{let G=[];const ne=re.merge(o.events.managedError$,o.events.fatalError$).subscribe(ye=>{G=[...G,ye],S(G)});return()=>ne.unsubscribe()}),h=It(!1,S=>{const G=o.events.fatalError$.subscribe(()=>S(!0));return()=>G.unsubscribe()}),b=Le(Pe.Thumb),w=nt([h,b],([S,G])=>S?Pe.Crashed:G);r({message:"create store"});const N=S=>{r({message:`init video, config: ${JSON.stringify(S)}`}),o.initVideo(S),u=S},L=new Si.OneStat({movieId:t,albumId:e,place:n,autoplay:i},{apiEnv:Si.ApiEnv.VK_ALIAS}),p=er(o,a.events,L),k=()=>{x1()&&d&&L1(d)},z=new re.Subscription().add(o.experimental.element$.subscribe(S=>{S&&(d=S,S.classList.add("player-media"))})).add(o.events.ended$.subscribe(()=>{var S;k(),(S=l==null?void 0:l.onEnded)===null||S===void 0||S.call(l)})).add(o.events.started$.subscribe(()=>{var S,G;const ne=o.info.muted$.getValue();(S=l==null?void 0:l.onStarted)===null||S===void 0||S.call(l),(G=m.onStarted)===null||G===void 0||G.call(m,ne)})).add(o.events.willSeek$.subscribe(({from:S,to:G})=>{var ne;(ne=l==null?void 0:l.onSeek)===null||ne===void 0||ne.call(l,S,G)})).add(o.info.position$.subscribe(S=>{var G;const ne=o.info.duration$.getValue();(G=l==null?void 0:l.onTimeupdate)===null||G===void 0||G.call(l,ne,S),a.setPosition(S,ne)})).add(o.events.fatalError$.subscribe(()=>{var S;(S=l==null?void 0:l.onCrashed)===null||S===void 0||S.call(l)})),F=new re.Subscription,V=()=>{F.add(o.events.log$.subscribe(S=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${S.component}`,S.message)})).add(s.log$.subscribe(S=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${S.component}.`,S.message)}))},I=()=>{F.unsubscribe()},O=It(o.info.position$.getValue(),S=>{let G,ne;const ye=()=>{const Oe=o.info.playbackState$.getValue(),Me=o.info.isLive$.getValue(),Ge=o.info.duration$.getValue(),Ee=o.info.position$.getValue();if([Se.PlaybackState.PLAYING,Se.PlaybackState.PAUSED].includes(Oe)){const ft=Me?Ee-Ge:o.getExactTime();ft!==ne&&S(ft),ne=ft}G=requestAnimationFrame(ye)};return ye(),()=>cancelAnimationFrame(G)}),j=je(o.info.playbackState$),E=je(o.info.currentBuffer$),K=je(o.info.isEnded$),J=je(o.info.isLive$),H=je(o.info.volume$),U=je(o.info.muted$),X=je(o.info.availableQualities$),be=je(o.info.availableQualitiesFps$),Z=je(o.info.chromecastState$),D=je(o.info.chromecastDeviceName$),ie=je(o.info.currentFormat$),ce=je(o.info.throughputEstimation$),Ce=je(o.info.videoBitrate$),ze=je(o.info.duration$);let qe=null;const de=o.info.isBuffering$,me=It(de.getValue(),S=>{const G=de.subscribe(ne=>{ne&&qe===null?qe=window.setTimeout(()=>{S(de.getValue()),qe=null},go):S(ne)});return()=>{G.unsubscribe(),qe&&clearTimeout(qe)}}),ue=nt([ze,J],([S,G])=>G?-S:S),ge=je(o.info.position$),ke=nt([J,ge],([S,G])=>Boolean(S&&G>-mo)),Q=nt([Z],([S])=>S===Se.ChromecastState.CONNECTED),we=Le(void 0),ae=je(o.info.isAutoQualityEnabled$,S=>S&&we.set(void 0)),R=je(o.info.currentQuality$,()=>we.set(void 0)),q=nt([we,R],([S,G])=>S!=null?S:G),x=nt([X,be,ae,q,ie],([S,G,ne,ye,Oe])=>{const Me=[];Oe!==Se.VideoFormat.MPEG&&Me.push({value:Ut.AUTO,displayValue:$t,selected:ne});const Ge=S.filter(Ee=>Ee!==Se.VideoQuality.INVARIANT);for(const Ee of Ge){const ft=G[Ee],li=Ee===Se.VideoQuality.INVARIANT?$t:Ee;Me.push({value:Ee,displayValue:`${li}${ft?$1(ft):""}`,selected:ne?!1:Ee===ye})}return Me}),He=je(o.info.currentPlaybackRate$),Ze=nt([He],([S])=>{const Oe=[];for(let Me=.25;Me<=2;Me+=.25)Oe.push({value:Me,displayValue:Me===1?"\u041E\u0431\u044B\u0447\u043D\u0430\u044F":Me+"x",selected:S===Me});return Oe}),gt=nt([E,ue],([S,G],ne)=>{var ye;return ne(((ye=S==null?void 0:S.end)!==null&&ye!==void 0?ye:0)/G)}),ht=()=>{r({message:"toggle muted"});const S=o.info.muted$.getValue(),ye=!(o.info.volume$.getValue()===0||S);at(ye)},st=(S,G=S,ne=!1)=>{var ye,Oe;const Me=!ne,Ge=o.info.muted$.getValue();r({message:`set volume, volume: ${S}, preferredVolume: ${G}, internalCall: ${Me}`}),o.setVolume(S),a.setVolume(S),Me&&((ye=l==null?void 0:l.onVolumeChange)===null||ye===void 0||ye.call(l,S)),Dn(G),Ge&&(o.setMuted(!1),Me&&((Oe=l==null?void 0:l.onUnmute)===null||Oe===void 0||Oe.call(l)),Hn(!1))},at=(S,G=!1)=>{var ne,ye,Oe;const Me=!G,Ge=o.info.volume$.getValue();if(r({message:`set muted, currentVolume: ${Ge}, mute: ${S}, internalCall: ${Me}`}),o.setMuted(S),a.setVolume(S?0:Ge),Hn(S),Me&&(S?(ne=l==null?void 0:l.onMute)===null||ne===void 0||ne.call(l):(ye=l==null?void 0:l.onUnmute)===null||ye===void 0||ye.call(l)),Ge===0){let Ee=kl();Ee===0&&(Ee=uo,Dn(Ee)),o.setVolume(Ee),a.setVolume(Ee),Me&&((Oe=l==null?void 0:l.onVolumeChange)===null||Oe===void 0||Oe.call(l,Ee))}},Ct=()=>{var S,G;if(re.assertNonNullable(Te),r({message:"toggle play"}),Ie(Te.playerPhase)===Pe.Ads){a.togglePlay();return}o.info.playbackState$.getValue()!==Se.PlaybackState.PLAYING?(o.info.isEnded$.getValue()&&(r({message:"toggle play, video ended, seek to 0"}),o.seekTime(0)),r({message:"toggle play, call player.play"}),o.play(),(S=l==null?void 0:l.onPlay)===null||S===void 0||S.call(l)):(r({message:"toggle play, call player.pause"}),o.pause(),(G=l==null?void 0:l.onPause)===null||G===void 0||G.call(l))},rt=S=>{r({message:`set quality, quality: ${S}`}),o.setAutoQuality(S===Ut.AUTO),S!==Ut.AUTO&&(we.set(S),o.setQuality(S))},Ue=S=>{o.setPlaybackRate(S)},$e=()=>{const S=Ie(Ze),G=S.findIndex(({selected:ye})=>ye);if(G===S.length-1)return;const ne=S[G+1];Ue(ne.value)},pt=()=>{const S=Ie(Ze),G=S.findIndex(({selected:ye})=>ye);if(G===0)return;const ne=S[G-1];Ue(ne.value)},ct=(S,G=!0)=>{if(r({message:`seek to time, time: ${S}`}),o.info.isLive$.getValue()){const ne=o.info.duration$.getValue(),ye=Math.min(0,ne+S);o.seekTime(ye,G)}else o.seekTime(S,G)},et=S=>{r({message:`seek to percent, percent: ${S}`});const G=Math.round(Ie(ue)*S);ct(G,!1)},ut=S=>{r({message:`seek external, time: ${S}`}),o.seekTime(o.info.isLive$.getValue()?-S:S)},tt=Le(void 0),it=Le(!1),Mt=S=>{r({message:`start scrubbing, progress: ${S}`}),it.set(!0),bt(S)},bt=S=>{tt.set(S)};let W;const Ft=()=>{tt.set(void 0),it.set(!1)},Qt=()=>{clearTimeout(W),W=window.setTimeout(()=>{Ft()},500),d==null||d.removeEventListener("canplay",Qt)},Yt=S=>{r({message:`complete scrubbing, progress: ${S}`}),et(S),Ie(Te.ui.isMobile)&&Ie(Te.state.currentFormat$)===Se.VideoFormat.HLS?d==null||d.addEventListener("canplay",Qt):Ft()},Wt=nt([O,ue,tt],([S,G,ne],ye)=>{ye(re.isNonNullable(ne)?ne*G:S)}),Kt=()=>{r({message:"switch to active live"}),o.seekTime(0)},wt=()=>a.skip(),Nt=(S=!0)=>{re.assertNonNullable(Te),r({message:`switch from ads to video, callPlay: ${S}`}),b.set(Pe.Video),S&&o.play()},_t=()=>{re.assertNonNullable(Te),r({message:"switch from video to ads"}),Te.actions.internal.pause(),k(),b.set(Pe.Ads)},dt=()=>(re.assertNonNullable(Te),lo(o,u,Te)),kt=()=>(re.assertNonNullable(Te),oo(o,u,Te)),Rt=()=>d,Xt=()=>{r({message:"toggle chromecast"}),o.toggleChromecast()},qt=S=>{var G;re.assertNonNullable(Te);const ne=!S;if(Ie(Te.playerPhase)===Pe.Ads){r({message:`pause ads, internalCall: ${ne}`}),a.pause();return}r({message:`pause video, internalCall: ${ne}`}),ne&&((G=l==null?void 0:l.onPause)===null||G===void 0||G.call(l)),o.pause()},zt=S=>{var G;re.assertNonNullable(Te);const ne=!S;if(Ie(Te.playerPhase)===Pe.Ads){r({message:`play ads, internalCall: ${ne}`}),a.play();return}r({message:`play video, internalCall: ${ne}`}),ne&&((G=l==null?void 0:l.onPlay)===null||G===void 0||G.call(l)),o.play()},jt=(S,G)=>{re.assertNonNullable(Te),r({message:`first start, show ads: ${S}, internalCall: ${!G}`}),S?b.set(Pe.Ads):(b.set(Pe.Video),G?o.play():Te.actions.internal.togglePlay())},Dt=()=>{L.destroy(),p.unsubscribe(),z.unsubscribe(),F.unsubscribe(),o.destroy(),a.destroy()},Te={initVideo:N,videoId:t,playerPhase:w,state:{positionExact$:O,positionWithScrubbing$:Wt,duration$:ue,playbackState$:j,isLoaderVisible:me,bufferedProgress$:gt,isLive$:J,isActiveLive$:ke,isEnded$:K,muted$:U,volume$:H,currentQuality$:q,isAutoQualityEnabled$:ae,availableQualities$:x,currentPlaybackRate$:He,availablePlaybackRates$:Ze,chromecastState$:Z,chromecastDeviceName$:D,chromecastConnected$:Q,currentFormat$:ie,throughputEstimation$:ce,videoBitrate$:Ce,errorLog$:_,crashed$:h},ui:{controlsVisible:Le(!1),isFullscreen:Le(!1),isAutoplay:Le(!1),contextMenuVisible:Le(!1),debugPanelVisible:Le(!1),playerSize:Le({width:0,height:0}),isMobile:Le(!1),mobileUnmuteButtonExpanded:Le(!1),mobileUnmuteButtonVisible:Le(!1),settingsMenuVisible:Le(!1),scrubbingInProgress:it},ads:{position:Le(0),duration:Le(0),playbackState:Le(Fe.INACTIVE),canSkip:Le(!1),secondsToWatchBeforeSkip:Le(0),postrollPassed:Le(!1)},actions:{internal:{firstStart:S=>jt(S,!1),pause:()=>qt(!1),togglePlay:Ct,toggleMuted:ht,setVolume:st,setQuality:rt,setPlaybackRate:Ue,incrementPlaybackRate:$e,decrementPlaybackRate:pt,startScrubbing:Mt,progressScrubbing:bt,completeScrubbing:Yt,toggleChromecast:Xt,switchToActiveLive:Kt,switchFromAdsToVideo:Nt,switchFromVideoToAds:_t,skipAd:wt,getDebugTextData:dt,getDebugPanelData:kt,getVideoElement:Rt,seekTime:S=>ct(S),startLogging:V,stopLogging:I},external:{firstStart:S=>jt(S,!0),play:()=>zt(!0),pause:()=>qt(!0),seekTime:S=>ut(S),setMuted:S=>at(S,!0),setVolume:S=>st(S,S,!0)}},callbacks:l,setUiCallbacks:S=>{m=Object.assign({},S)},getAdmanWrapper:()=>a,getLogger:()=>s,destroy:Dt};return Te};class ir extends HTMLElement{constructor(){var e;super(),this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=!1,this.config=void 0,this._shadowRoot=this.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.logger=new re.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new re.Subscription,!((e=window==null?void 0:window.videoPlayerConfig)===null||e===void 0)&&e.debugLogs&&this.subscription.add(this.logger.log$.subscribe(i=>{console.log("%c player web component ","background:#77dd77;",`${i.component}`,i.message)}))}connectedCallback(){var e,i;const n=(e=this.getAttribute("stub-title"))!==null&&e!==void 0?e:void 0,l=(i=this.getAttribute("stub-thumb-url"))!==null&&i!==void 0?i:void 0;this.svelteStubComponent=new W1({target:this.playerContainer,props:{title:n,thumbUrl:l}})}disconnectedCallback(){var e,i;(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),(i=this.svelteStubComponent)===null||i===void 0||i.$destroy(),this.subscription.unsubscribe()}needToShowNextPrevButtons(){return this.config?this.config.videos.length>1:!1}isNextButtonActive(){return this.config?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.config.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.config?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}getNextVideoInfo(){if(!this.config)return{nextVideoTitle:void 0,nextVideoThumb:void 0};const e=this.config.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={}){if(!this.config)return;const{albumId:n,statPlace:l,autoplay:o,volume:s,muted:a,fromTime:r,canRewindLive:u,supportLink:d,showAds:m,adsSlotId:_,adsParams:h={},adsPreviewParam:b,logoClickable:w,logoHidden:N,isMobile:L,fullScreenTarget:p,failoverHosts:k,callbacks:z}=Object.assign(Object.assign({},this.config),i),{sources:F,title:V,thumbUrl:I,unitedVideoId:O,duration:j,adsParams:E={}}=e,K=Object.assign(Object.assign({},h),E),J=this.getNextVideoInfo(),H={sources:F,title:V,thumbUrl:I,unitedVideoId:O,albumId:n,statPlace:l,autoplay:o,muted:a,volume:s,fromTime:r,canRewindLive:u,supportLink:d,showAds:m,adsSlotId:_,adsParams:K,adsPreviewParam:b,duration:j,logoClickable:w,logoHidden:N,isMobile:L,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:J.nextVideoTitle,endScreenVideoThumb:J.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()};this.log({message:`create player, props: ${JSON.stringify(H)}`}),this.store=tr({videoId:O,albumId:n,autoplay:o,statPlace:l,callbacks:z}),this.store.state.currentFormat$.subscribe(U=>{var X;(X=z==null?void 0:z.onCurrentFormatChanged)===null||X===void 0||X.call(z,U)}),this.store.state.throughputEstimation$.subscribe(U=>{var X;(X=z==null?void 0:z.onThroughputEstimationChanged)===null||X===void 0||X.call(z,U)}),this.store.state.videoBitrate$.subscribe(U=>{var X;(X=z==null?void 0:z.onVideoBitrateChanged)===null||X===void 0||X.call(z,U)}),this.svelteRootComponent=new H1({target:this.playerContainer,props:{sources:F,store:this.store,title:V,thumbUrl:I,autoplay:o,muted:a,volume:s,fromTime:r,canRewindLive:u,supportLink:d,showAds:m,adsSlotId:_,adsParams:K,adsPreviewParam:b,duration:j,logoClickable:w,logoHidden:N,isMobile:L,failoverHosts:k,fullScreenTarget:p,outerContainerRef:this.playerContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:J.nextVideoTitle,endScreenVideoThumb:J.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist()}})}playNextVideo(){this.config&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.config.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.config&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.config.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(){var e;if(!this.config)return;const i=this.config.videos[this.currentPlayingVideoIndex];if(!i){this.log({message:"no next video"});return}(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),setTimeout(()=>this.createPlayer(i,{autoplay:!0,fromTime:0}),0)}initPlayer(e){var i,n,l;if(!Array.isArray(e.videos)||e.videos.length===0)throw new Error("empty videos");this.config=Il(e,o=>o instanceof HTMLElement?o:void 0),this.config.callbacks=(i=e.callbacks)!==null&&i!==void 0?i:{},this.currentPlayingVideoIndex=0,(n=this.svelteStubComponent)===null||n===void 0||n.$destroy(),(l=this.svelteRootComponent)===null||l===void 0||l.$destroy(),this.createPlayer(e.videos[0])}isOneVideoPlaylist(){return this.config?this.config.videos.length===1:!1}updateNextVideos(e){var i;if(!this.config)return;this.log({message:`update next videos, videos: ${JSON.stringify(e)}`}),this.config.videos.splice(this.currentPlayingVideoIndex+1),this.config.videos.push(...e);const n=this.getNextVideoInfo();(i=this.svelteRootComponent)===null||i===void 0||i.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}play(){var e;this.log({message:"play"}),(e=this.svelteRootComponent)===null||e===void 0||e.play()}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)===null||e===void 0||e.pause()}stop(){var e,i;if(!this.config)return;this.log({message:"stop"}),(e=this.svelteStubComponent)===null||e===void 0||e.$destroy();const n=this.config.videos[0];n&&((i=this.svelteRootComponent)===null||i===void 0||i.$destroy(),this.createPlayer(n))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setMuted(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.setVolume(e)}setRepeat(e){var i;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,(i=this.svelteRootComponent)===null||i===void 0||i.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var i;this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)===null||i===void 0||i.seekTime(e)}}const nr=()=>{window.customElements.define("vk-video-player",ir)};exports.registerPlayerWebComponent=nr;