@vkontakte/videoplayer 1.1.16 → 1.1.17

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,10 +1,10 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.16
3
- * Fri, 03 Mar 2023 15:37:59 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-16/doc/
2
+ * @vkontakte/videoplayer v1.1.17
3
+ * Tue, 07 Mar 2023 11:41:10 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-17/doc/
5
5
  */
6
- "use strict";var Se=require("@vkontakte/videoplayer-core/es2015.cjs.js"),Gl=require("lodash/debounce.js"),se=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),xl=require("lodash/debounce"),Fi=require("@vkontakte/videoplayer-statistics/es2015.cjs.js"),Jl=require("lodash/cloneDeepWith.js");function I(){}function Zl(t,e){for(const i in e)t[i]=e[i];return t}function vl(t){return t()}function qi(){return Object.create(null)}function xe(t){t.forEach(vl)}function Fe(t){return typeof t=="function"}function ve(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let oi;function Ve(t,e){return oi||(oi=document.createElement("a")),oi.href=e,t===oi.href}function $l(t){return Object.keys(t).length===0}function Ei(t,...e){if(t==null)return I;const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Be(t){let e;return Ei(t,i=>e=i)(),e}function W(t,e,i){t.$$.on_destroy.push(Ei(e,i))}function eo(t,e,i,n){if(t){const l=gl(t,e,i,n);return t[0](l)}}function gl(t,e,i,n){return t[1]&&n?Zl(i.ctx.slice(),t[1](n(e))):i.ctx}function to(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 io(t,e,i,n,l,o){if(l){const s=gl(e,i,n,o);t.p(s,l)}}function no(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 pt(t){return t==null?"":t}function f(t,e){t.appendChild(e)}function ye(t,e,i){const n=lo(t);if(!n.getElementById(e)){const l=b("style");l.id=e,l.textContent=i,oo(n,l)}}function lo(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function oo(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 Hi(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function b(t){return document.createElement(t)}function Ce(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function me(t){return document.createTextNode(t)}function z(){return me(" ")}function et(){return me("")}function oe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function St(t){return function(e){return e.preventDefault(),t.call(this,e)}}function so(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 ao(t){return Array.from(t.childNodes)}function Me(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function jt(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 Zt;function xt(t){Zt=t}function ui(){if(!Zt)throw new Error("Function called outside component initialization");return Zt}function Et(t){ui().$$.on_mount.push(t)}function hl(t){ui().$$.on_destroy.push(t)}function ro(t,e){return ui().$$.context.set(t,e),e}function co(t){return ui().$$.context.get(t)}function it(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const Dt=[],Ge=[],si=[],ki=[],uo=Promise.resolve();let Pi=!1;function fo(){Pi||(Pi=!0,uo.then(pl))}function Vi(t){si.push(t)}function mo(t){ki.push(t)}const bi=new Set;let qt=0;function pl(){if(qt!==0)return;const t=Zt;do{try{for(;qt<Dt.length;){const e=Dt[qt];qt++,xt(e),vo(e.$$)}}catch(e){throw Dt.length=0,qt=0,e}for(xt(null),Dt.length=0,qt=0;Ge.length;)Ge.pop()();for(let e=0;e<si.length;e+=1){const i=si[e];bi.has(i)||(bi.add(i),i())}si.length=0}while(Dt.length);for(;ki.length;)ki.pop()();Pi=!1,bi.clear(),xt(t)}function vo(t){if(t.fragment!==null){t.update(),xe(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Vi)}}const ai=new Set;let At;function ae(){At={r:0,c:[],p:At}}function re(){At.r||xe(At.c),At=At.p}function g(t,e){t&&t.i&&(ai.delete(t),t.i(e))}function V(t,e,i,n){if(t&&t.o){if(ai.has(t))return;ai.add(t),At.c.push(()=>{ai.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}const go=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function ho(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||Vi(()=>{const s=t.$$.on_mount.map(vl).filter(Fe);t.$$.on_destroy?t.$$.on_destroy.push(...s):xe(s),t.$$.on_mount=[]}),o.forEach(Vi)}function ee(t,e){const i=t.$$;i.fragment!==null&&(xe(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function po(t,e){t.$$.dirty[0]===-1&&(Dt.push(t),fo(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function pe(t,e,i,n,l,o,s,a=[-1]){const r=Zt;xt(t);const u=t.$$={fragment:null,ctx:[],props:o,update:I,not_equal:l,bound:qi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(r?r.$$.context:[])),callbacks:qi(),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,...v)=>{const w=v.length?v[0]:h;return u.ctx&&l(u.ctx[m],u.ctx[m]=w)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](w),d&&po(t,m)),h}):[],u.update(),d=!0,xe(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const m=ao(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&g(t.$$.fragment),$(t,e.target,e.anchor,e.customElement),pl()}xt(r)}class be{$destroy(){ee(this,1),this.$destroy=I}$on(e,i){if(!Fe(i))return I;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&&!$l(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ht=[];function Ot(t,e){return{subscribe:Le(t,e).subscribe}}function Le(t,e=I){let i;const n=new Set;function l(a){if(ve(t,a)&&(t=a,i)){const r=!Ht.length;for(const u of n)u[1](),Ht.push(u,t);if(r){for(let u=0;u<Ht.length;u+=2)Ht[u][0](Ht[u+1]);Ht.length=0}}}function o(a){l(a(t))}function s(a,r=I){const u=[a,r];return n.add(u),n.size===1&&(i=e(l)||I),a(t),()=>{n.delete(u),n.size===0&&(i(),i=null)}}return{set:l,update:o,subscribe:s}}function tt(t,e,i){const n=!Array.isArray(t),l=n?[t]:t,o=e.length<2;return Ot(i,s=>{let a=!1;const r=[];let u=0,d=I;const m=()=>{if(u)return;d();const v=e(n?r[0]:r,s);o?s(v):d=Fe(v)?v:I},h=l.map((v,w)=>Ei(v,p=>{r[w]=p,u&=~(1<<w),a&&m()},()=>{u|=1<<w}));return a=!0,m(),function(){xe(h),d()}})}const bl="1.1.16",bo="@vkontakte/videoplayer",wl=Symbol("storeContext"),wo=t=>{ro(wl,t)},De=()=>{const t=co(wl);return se.assertNonNullable(t,"Store context is empty!"),t},He=(t,e)=>Ot(t.getValue(),i=>{const n=t.subscribe(l=>{i(l),e==null||e(l)});return()=>n.unsubscribe()}),_o=(t,e,i)=>{var n,l,o,s;const a=t.info,{width:r,height:u}=Be(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,h=a.isAutoQualityEnabled$.getValue()?"auto":"manual",v={Version:`${bo}@${bl}`,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:`${h} ${a.currentQuality$.getValue()}`,"Available qualities":a.availableQualities$.getValue().join(", "),Position:`${Be(i.state.positionExact$)}s`,State:`${Be(i.playerPhase)} ${a.playbackState$.getValue()}`,"Player size":`${r}x${u}`,URL:window.location.href,Errors:Be(i.state.errorLog$).map(({id:w})=>w).join(", ")};return Object.entries(v).map(([w,p])=>`${w}: ${p}`).join(`
7
- `)},yo=(t,e,i)=>{const n=t.info,{width:l,height:o}=Be(i.ui.playerSize),s={version:bl,viewport:`${l}x${o}`,volume:Math.round(Be(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-Be(i.state.positionExact$),0));const h=n.throughputEstimation$.getValue();h&&(s.speed=h);const v=n.videoBitrate$.getValue();return v&&(s.bitrate=v),s},ko=500,Di=3e3,ji=2e3,Po=3e3,Vo=6e3,So=300,ri="\u0410\u0432\u0442\u043E",_l="vk_player_preferred_volume",yl="vk_player_prefer_volume_mute",Si="vk_player_debug_panel_opened",di=1,Ao=.05,Oi=1,Ui=.05,Qi=10,kl=300,Co="https://vk.com/support?act=new&from=v",Mo=500;var Xe;(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"})(Xe||(Xe={}));var Ai="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",Eo="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",zo="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",To="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",No="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",Lo="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",Io="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",Pl="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",Wi="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",Bo="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",Ro="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",Fo="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 Vl=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 qo(t){ye(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 Yi(t,e,i){const n=t.slice();return n[44]=e[i],n}function Ki(t,e,i){const n=t.slice();return n[47]=e[i],n}function Xi(t){let e,i,n,l,o,s,a,r;return{c(){e=b("div"),i=b("div"),i.textContent="\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",n=z(),l=b("div"),o=z(),s=b("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=oe(l,"click",t[24]),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 Gi(t){let e,i;return{c(){e=b("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 xi(t){let e,i,n,l,o,s,a,r,u,d,m;return{c(){e=b("li"),i=b("img"),l=z(),o=b("div"),o.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",s=z(),a=b("div"),r=me(t[11]),u=me("x"),c(i,"class","menu-icon v-1f29v8g"),Ve(i.src,n=Eo)||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,v){M(h,e,v),f(e,i),f(e,l),f(e,o),f(e,s),f(e,a),f(a,r),f(a,u),d||(m=oe(e,"click",t[28]),d=!0)},p(h,v){v[0]&2048&&Me(r,h[11]),v[0]&1&&A(e,"item-mobile",h[0])},d(h){h&&C(e),d=!1,m()}}}function Ji(t){let e,i,n,l,o,s,a,r,u,d,m,h,v,w,p,E,T,_,k;return{c(){e=b("li"),i=b("img"),l=z(),o=b("div"),o.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",s=z(),a=b("li"),r=b("img"),d=z(),m=b("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",h=z(),v=b("li"),w=b("img"),E=z(),T=b("div"),T.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=Bo)||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=Ro)||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(w,"class","menu-icon v-1f29v8g"),Ve(w.src,p=Fo)||c(w,"src",p),c(w,"alt",""),c(T,"class","menu-title v-1f29v8g"),c(v,"class","item item-mobile v-1f29v8g"),c(v,"role","menuitemradio"),c(v,"tabindex","0")},m(B,N){M(B,e,N),f(e,i),f(e,l),f(e,o),M(B,s,N),M(B,a,N),f(a,r),f(a,d),f(a,m),M(B,h,N),M(B,v,N),f(v,w),f(v,E),f(v,T),_||(k=[oe(e,"click",t[30]),oe(a,"click",t[31]),oe(v,"click",t[32])],_=!0)},p:I,d(B){B&&C(e),B&&C(s),B&&C(a),B&&C(h),B&&C(v),_=!1,xe(k)}}}function Zi(t){let e,i;return{c(){e=b("img"),c(e,"class","itemIcon v-1f29v8g"),Ve(e.src,i=Pl)||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p:I,d(n){n&&C(e)}}}function $i(t){let e,i;return{c(){e=b("img"),c(e,"class","menu-valueIcon-list v-1f29v8g"),Ve(e.src,i=t[33](t[47].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[33](n[47].value))&&c(e,"src",i)},d(n){n&&C(e)}}}function en(t){let e,i,n,l=t[47].displayValue+"",o,s,a,r,u,d,m=t[47].selected&&Zi(),h=!t[0]&&$i(t);function v(){return t[39](t[47])}return{c(){e=b("li"),m&&m.c(),i=z(),n=b("div"),o=me(l),s=z(),h&&h.c(),a=z(),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[47].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(w,p){M(w,e,p),m&&m.m(e,null),f(e,i),f(e,n),f(n,o),f(e,s),h&&h.m(e,null),f(e,a),u||(d=oe(e,"click",v),u=!0)},p(w,p){t=w,t[47].selected?m?m.p(t,p):(m=Zi(),m.c(),m.m(e,i)):m&&(m.d(1),m=null),p[0]&2&&l!==(l=t[47].displayValue+"")&&Me(o,l),p[0]&1&&A(n,"quality-title-mobile",t[0]),t[0]?h&&(h.d(1),h=null):h?h.p(t,p):(h=$i(t),h.c(),h.m(e,a)),p[0]&2&&r!==(r=t[47].value)&&c(e,"data-value",r),p[0]&1&&A(e,"item-mobile",t[0])},d(w){w&&C(e),m&&m.d(),h&&h.d(),u=!1,d()}}}function tn(t){let e,i;return{c(){e=b("img"),c(e,"class","itemIcon v-1f29v8g"),Ve(e.src,i=Pl)||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p:I,d(n){n&&C(e)}}}function nn(t){let e,i,n,l=t[44].displayValue+"",o,s,a,r,u,d=t[44].selected&&tn();function m(){return t[40](t[44])}return{c(){e=b("li"),d&&d.c(),i=z(),n=b("div"),o=me(l),s=z(),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[44].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(h,v){M(h,e,v),d&&d.m(e,null),f(e,i),f(e,n),f(n,o),f(e,s),r||(u=oe(e,"click",m),r=!0)},p(h,v){t=h,t[44].selected?d?d.p(t,v):(d=tn(),d.c(),d.m(e,i)):d&&(d.d(1),d=null),v[0]&4096&&l!==(l=t[44].displayValue+"")&&Me(o,l),v[0]&1&&A(n,"quality-title-mobile",t[0]),v[0]&4096&&a!==(a=t[44].value)&&c(e,"data-value",a),v[0]&1&&A(e,"item-mobile",t[0])},d(h){h&&C(e),d&&d.d(),r=!1,u()}}}function Ho(t){let e,i,n,l,o,s,a,r,u,d,m,h,v,w,p,E,T,_,k,B,N,R,y,D,F,L,K,J,j,O,X,ue,G,q,ie,de,Ae,Oe,Qe,le=t[0]&&Xi(t),ge=t[6]&&!t[0]&&Gi(t),fe=!t[9]&&!t[10]&&xi(t),ce=t[0]&&Ji(t),we=t[1],he=[];for(let H=0;H<we.length;H+=1)he[H]=en(Ki(t,we,H));let _e=t[12],U=[];for(let H=0;H<_e.length;H+=1)U[H]=nn(Yi(t,_e,H));return{c(){e=b("div"),i=b("div"),le&&le.c(),n=z(),l=b("ul"),o=b("li"),s=b("img"),r=z(),u=b("div"),u.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",d=z(),m=b("div"),h=me(t[7]),v=z(),ge&&ge.c(),w=z(),fe&&fe.c(),p=z(),ce&&ce.c(),E=z(),T=b("div"),_=b("div"),k=b("img"),N=z(),R=b("div"),R.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",y=z(),D=b("div"),F=z(),L=b("ul");for(let H=0;H<he.length;H+=1)he[H].c();K=z(),J=b("div"),j=b("div"),O=b("img"),ue=z(),G=b("div"),G.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",q=z(),ie=b("div"),de=z(),Ae=b("ul");for(let H=0;H<U.length;H+=1)U[H].c();c(s,"class","menu-icon v-1f29v8g"),Ve(s.src,a=Ai)||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,B=Wi)||c(k,"src",B),c(k,"class","menu-header-back-icon v-1f29v8g"),c(k,"alt",""),c(_,"class","item menu-header v-1f29v8g"),A(_,"item-mobile",t[0]),c(D,"class","menu-divider v-1f29v8g"),c(L,"class","items v-1f29v8g"),c(L,"style",t[8]),A(L,"items-mobile",t[0]),c(T,"class","menu menu-subList v-1f29v8g"),A(T,"menu-desktop",!t[0]),A(T,"menu-mobile",t[0]),A(T,"hidden",!t[4]),Ve(O.src,X=Wi)||c(O,"src",X),c(O,"class","menu-header-back-icon v-1f29v8g"),c(O,"alt",""),c(j,"class","item menu-header v-1f29v8g"),A(j,"item-mobile",t[0]),c(ie,"class","menu-divider v-1f29v8g"),c(Ae,"class","items v-1f29v8g"),A(Ae,"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(H,Q){M(H,e,Q),f(e,i),le&&le.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,h),f(m,v),ge&&ge.m(m,null),f(l,w),fe&&fe.m(l,null),f(l,p),ce&&ce.m(l,null),f(e,E),f(e,T),f(T,_),f(_,k),f(_,N),f(_,R),f(T,y),f(T,D),f(T,F),f(T,L);for(let Z=0;Z<he.length;Z+=1)he[Z].m(L,null);f(e,K),f(e,J),f(J,j),f(j,O),f(j,ue),f(j,G),f(J,q),f(J,ie),f(J,de),f(J,Ae);for(let Z=0;Z<U.length;Z+=1)U[Z].m(Ae,null);Oe||(Qe=[oe(o,"click",t[25]),oe(_,"click",t[29]),oe(j,"click",t[29])],Oe=!0)},p(H,Q){if(H[0]?le?le.p(H,Q):(le=Xi(H),le.c(),le.m(i,n)):le&&(le.d(1),le=null),Q[0]&128&&Me(h,H[7]),H[6]&&!H[0]?ge?ge.p(H,Q):(ge=Gi(H),ge.c(),ge.m(m,null)):ge&&(ge.d(1),ge=null),Q[0]&1&&A(o,"item-mobile",H[0]),!H[9]&&!H[10]?fe?fe.p(H,Q):(fe=xi(H),fe.c(),fe.m(l,p)):fe&&(fe.d(1),fe=null),H[0]?ce?ce.p(H,Q):(ce=Ji(H),ce.c(),ce.m(l,null)):ce&&(ce.d(1),ce=null),Q[0]&1&&A(l,"items-mobile",H[0]),Q[0]&1&&A(i,"menu-desktop",!H[0]),Q[0]&1&&A(i,"menu-mobile",H[0]),Q[0]&8&&A(i,"hidden",!H[3]),Q[0]&1&&A(_,"item-mobile",H[0]),Q[0]&67108867|Q[1]&4){we=H[1];let Z;for(Z=0;Z<we.length;Z+=1){const Ee=Ki(H,we,Z);he[Z]?he[Z].p(Ee,Q):(he[Z]=en(Ee),he[Z].c(),he[Z].m(L,null))}for(;Z<he.length;Z+=1)he[Z].d(1);he.length=we.length}if(Q[0]&256&&c(L,"style",H[8]),Q[0]&1&&A(L,"items-mobile",H[0]),Q[0]&1&&A(T,"menu-desktop",!H[0]),Q[0]&1&&A(T,"menu-mobile",H[0]),Q[0]&16&&A(T,"hidden",!H[4]),Q[0]&1&&A(j,"item-mobile",H[0]),Q[0]&134221825){_e=H[12];let Z;for(Z=0;Z<_e.length;Z+=1){const Ee=Yi(H,_e,Z);U[Z]?U[Z].p(Ee,Q):(U[Z]=nn(Ee),U[Z].c(),U[Z].m(Ae,null))}for(;Z<U.length;Z+=1)U[Z].d(1);U.length=_e.length}Q[0]&1&&A(Ae,"items-mobile",H[0]),Q[0]&1&&A(J,"menu-desktop",!H[0]),Q[0]&1&&A(J,"menu-mobile",H[0]),Q[0]&32&&A(J,"hidden",!H[5]),Q[0]&4&&A(e,"hidden",!H[2]),Q[0]&1&&A(e,"container-mobile",H[0])},i:I,o:I,d(H){H&&C(e),le&&le.d(),ge&&ge.d(),fe&&fe.d(),ce&&ce.d(),Hi(he,H),Hi(U,H),Oe=!1,xe(Qe)}}}function Do(t,e,i){let n,l,o,s,a,r,u,d,m,h,v,{supportLink:w}=e;const p=De(),E=p.state.currentQuality$;W(t,E,U=>i(38,r=U));const T=p.state.availableQualities$;W(t,T,U=>i(1,a=U));const _=p.state.isAutoQualityEnabled$;W(t,_,U=>i(37,s=U));const k=p.state.currentPlaybackRate$;W(t,k,U=>i(11,h=U));const B=p.state.availablePlaybackRates$;W(t,B,U=>i(12,v=U));const N=p.ui.settingsMenuVisible;W(t,N,U=>i(2,u=U));const R=p.ui.isMobile;W(t,R,U=>i(0,o=U));const y=p.ui.isFullscreen;W(t,y,U=>i(36,l=U));const D=p.state.isActiveLive$;W(t,D,U=>i(10,m=U));const F=p.state.isMaxSeekBackTime$;W(t,F,U=>i(9,d=U));const L=p.ui.playerSize;W(t,L,U=>i(35,n=U));const K=p.ui.debugPanelVisible;let J=!0,j=!1,O=!1;function X(){N.set(!1)}function ue(){i(3,J=!1),i(4,j=!0)}function G(U){p.actions.internal.setQuality(U),X()}function q(U){p.actions.internal.setPlaybackRate(U),X()}function ie(){i(3,J=!1),i(5,O=!0)}function de(){i(3,J=!0),i(4,j=!1),i(5,O=!1)}function Ae(){window.open(w,"_blank"),X(),p.actions.internal.pause()}function Oe(){Vl(p.actions.internal.getDebugTextData()),X()}function Qe(){K.set(!0),X()}function le(U){switch(U){case Se.VideoQuality.Q_720P:return zo;case Se.VideoQuality.Q_1080P:return Io;case Se.VideoQuality.Q_1440P:return To;case Se.VideoQuality.Q_2160P:return No;case Se.VideoQuality.Q_4320P:return Lo}}function ge(U,H,Q){if(!U)return"...";const Z=H.find(Je=>Je.value===U),Ee=Z?Z.displayValue:U;return Q?U===Se.VideoQuality.INVARIANT?ri:`${ri} ${Ee}`:Ee}let fe,ce,we;const he=U=>G(U.value),_e=U=>q(U.value);return t.$$set=U=>{"supportLink"in U&&i(34,w=U.supportLink)},t.$$.update=()=>{t.$$.dirty[0]&4&&u&&(i(3,J=!0),i(4,j=!1),i(5,O=!1)),t.$$.dirty[1]&128&&i(6,fe=le(r)),t.$$.dirty[0]&2|t.$$.dirty[1]&192&&i(7,ce=ge(r,a,s)),t.$$.dirty[0]&1|t.$$.dirty[1]&48&&i(8,we=o&&l?`max-height: ${Math.round(n.height*.6)}px`:"")},[o,a,u,J,j,O,fe,ce,we,d,m,h,v,E,T,_,k,B,N,R,y,D,F,L,X,ue,G,q,ie,de,Ae,Oe,Qe,le,w,n,l,s,r,he,_e]}class Sl extends be{constructor(e){super(),pe(this,e,Do,Ho,ve,{supportLink:34},qo,[-1,-1])}}var jo="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",Oo="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",Uo="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",Qo="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",Wo="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 Yo(t){ye(t,"v-1qf7s4g",".settingsButton-icon.v-1qf7s4g{display:block;width:40px;height:24px}.settingsButton-icon.mobile.v-1qf7s4g{width:auto}")}function Ko(t){let e,i,n,l,o,s,a;return{c(){e=b("div"),i=b("div"),n=b("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=pt(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=oe(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=pt(r[0])+" v-1qf7s4g")&&c(e,"class",o)},i:I,o:I,d(r){r&&C(e),s=!1,a()}}}function Xo(t,e,i){let n,l,o,{className:s=""}=e;const a=De(),r=a.state.currentQuality$;W(t,r,v=>i(2,o=v));const u=a.ui.settingsMenuVisible;W(t,u,v=>i(8,n=v));const d=a.ui.isMobile;W(t,d,v=>i(1,l=v));function m(){u.set(!n)}function h(v,w){if(w)return Ai;switch(v){case Se.VideoQuality.Q_720P:return jo;case Se.VideoQuality.Q_1080P:return Wo;case Se.VideoQuality.Q_1440P:return Oo;case Se.VideoQuality.Q_2160P:return Uo;case Se.VideoQuality.Q_4320P:return Qo;default:return Ai}}return t.$$set=v=>{"className"in v&&i(0,s=v.className)},[s,l,o,r,u,d,m,h]}class Al extends be{constructor(e){super(),pe(this,e,Xo,Ko,ve,{className:0},Yo)}}const ht=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 Go(t){ye(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 ln(t){let e,i;return{c(){e=b("span"),i=me(t[2]),c(e,"class","duration v-1bjfp5n")},m(n,l){M(n,e,l),f(e,i)},p(n,l){l&4&&Me(i,n[2])},d(n){n&&C(e)}}}function xo(t){let e,i,n,l,o,s=t[0]&&ln(t);return{c(){e=b("div"),i=b("span"),n=me(t[3]),l=z(),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&&Me(n,a[3]),a[0]?s?s.p(a,r):(s=ln(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:I,o:I,d(a){a&&C(e),s&&s.d()}}}function Jo(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=ht(n)),t.$$.dirty&32&&i(3,r=ht(l))},[o,s,a,r,n,l]}class Zo extends be{constructor(e){super(),pe(this,e,Jo,xo,ve,{duration:4,position:5,showDuration:0,className:1},Go)}}function $o(t){ye(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 es(t){let e,i,n,l,o,s,a,r,u,d,m,h,v,w;return{c(){e=b("div"),i=b("div"),n=b("div"),o=z(),s=b("div"),r=z(),u=b("div"),d=b("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",h="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(p,E){M(p,e,E),f(e,i),f(i,n),f(i,o),f(i,s),f(e,r),f(e,u),f(u,d),t[27](e),v||(w=[oe(e,"pointerdown",St(t[16])),oe(e,"pointermove",St(t[17])),oe(e,"pointerup",St(t[18])),oe(e,"pointerenter",St(t[19])),oe(e,"pointerleave",St(t[20]))],v=!0)},p(p,[E]){E&64&&l!==(l=`transform: translateX(${p[6]*100}%);`)&&c(n,"style",l),E&128&&a!==(a=`transform: translateX(${p[7]*100}%);`)&&c(s,"style",a),E&8&&A(s,"active-live",p[3]),E&16&&A(s,"ads",p[4]),E&8&&A(d,"active-live",p[3]),E&256&&m!==(m=`transform: translateX(${p[8]*100}%);`)&&c(u,"style",m),E&16&&A(u,"hidden",p[4]),E&1&&h!==(h="slider "+p[0]+" v-mgwd2i")&&c(e,"class",h),E&512&&c(e,"aria-label",p[9]),E&1024&&c(e,"aria-valuemin",p[10]),E&2048&&c(e,"aria-valuemax",p[11]),E&4096&&c(e,"aria-valuenow",p[12]),E&8192&&c(e,"aria-valuetext",p[13]),E&32769&&A(e,"slider-dragging",p[15]),E&3&&A(e,"hidden",p[1]),E&5&&A(e,"slider-vertical",p[2]),E&17&&A(e,"no-handle",p[4]),E&33&&A(e,"square",p[5])},i:I,o:I,d(p){p&&C(e),t[27](null),v=!1,xe(w)}}}function ts(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=I}=e,{onHandleMove:h=I}=e,{onPointerUp:v=I}=e,{onPointerEnter:w=I}=e,{onPointerMove:p=I}=e,{onPointerLeave:E=I}=e,{loadedProgress:T=0}=e,{filledProgress:_=0}=e,{handleProgress:k=0}=e,{ariaLabel:B=""}=e,{ariaValueMin:N=void 0}=e,{ariaValueMax:R=void 0}=e,{ariaValueNow:y=void 0}=e,{ariaValueText:D=""}=e,F=!1;function L(q){if(F)return;i(15,F=!0),d=u.getBoundingClientRect();const ie=X(q.clientX,q.clientY);m(ie),u.setPointerCapture(q.pointerId)}function K(q){const ie=X(q.clientX,q.clientY),de=ue(q.clientX);p(ie,de),F&&h(ie)}function J(q){if(!F)return;i(15,F=!1);const ie=X(q.clientX,q.clientY);v(ie)}function j(q){d=u.getBoundingClientRect();const ie=X(q.clientX,q.clientY),de=ue(q.clientX);w(ie,de)}function O(){E()}function X(q,ie){return o?Math.max(0,Math.min(1,(d.height-(ie-d.top))/d.height)):Math.min(Math.max(q-d.x,0),d.width)/d.width}function ue(q){return Math.min(Math.max(q-d.x,0),d.width)}function G(q){Ge[q?"unshift":"push"](()=>{u=q,i(14,u)})}return t.$$set=q=>{"className"in q&&i(0,n=q.className),"isHidden"in q&&i(1,l=q.isHidden),"isVertical"in q&&i(2,o=q.isVertical),"isActiveLive"in q&&i(3,s=q.isActiveLive),"isAds"in q&&i(4,a=q.isAds),"squareBorders"in q&&i(5,r=q.squareBorders),"onPointerDown"in q&&i(21,m=q.onPointerDown),"onHandleMove"in q&&i(22,h=q.onHandleMove),"onPointerUp"in q&&i(23,v=q.onPointerUp),"onPointerEnter"in q&&i(24,w=q.onPointerEnter),"onPointerMove"in q&&i(25,p=q.onPointerMove),"onPointerLeave"in q&&i(26,E=q.onPointerLeave),"loadedProgress"in q&&i(6,T=q.loadedProgress),"filledProgress"in q&&i(7,_=q.filledProgress),"handleProgress"in q&&i(8,k=q.handleProgress),"ariaLabel"in q&&i(9,B=q.ariaLabel),"ariaValueMin"in q&&i(10,N=q.ariaValueMin),"ariaValueMax"in q&&i(11,R=q.ariaValueMax),"ariaValueNow"in q&&i(12,y=q.ariaValueNow),"ariaValueText"in q&&i(13,D=q.ariaValueText)},[n,l,o,s,a,r,T,_,k,B,N,R,y,D,u,F,L,K,J,j,O,m,h,v,w,p,E,G]}class zi extends be{constructor(e){super(),pe(this,e,ts,es,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},$o)}}function is(t){ye(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 ns(t){let e,i,n,l,o,s,a,r,u,d,m,h;return u=new zi({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]:I,onPointerLeave:t[0]?t[10]:I,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=b("div"),i=Ce("svg"),n=Ce("g"),l=Ce("path"),o=Ce("path"),s=Ce("path"),a=z(),r=b("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(v,w){M(v,e,w),f(e,i),f(i,n),f(n,l),f(n,o),f(n,s),M(v,a,w),M(v,r,w),$(u,r,null),d=!0,m||(h=[oe(e,"mouseenter",function(){Fe(t[0]?t[11]:I)&&(t[0]?t[11]:I).apply(this,arguments)}),oe(e,"mouseleave",function(){Fe(t[0]?t[12]:I)&&(t[0]?t[12]:I).apply(this,arguments)}),oe(e,"click",t[15])],m=!0)},p(v,[w]){t=v,(!d||w&4)&&c(i,"data-value",t[2]);const p={};w&1&&(p.className=t[0]?"volumeBar-slider-vertical":""),w&3&&(p.isHidden=t[0]&&!t[1]),w&1&&(p.isVertical=t[0]),w&1&&(p.onPointerEnter=t[0]?t[9]:I),w&1&&(p.onPointerLeave=t[0]?t[10]:I),w&8&&(p.ariaValueNow=Math.round(t[3]*100)),w&8&&(p.ariaValueText=`${Math.round(t[3]*100)}%`),w&8&&(p.filledProgress=t[3]),w&8&&(p.handleProgress=t[3]),u.$set(p),(!d||w&1)&&A(r,"volumeBar-vertical",t[0])},i(v){d||(g(u.$$.fragment,v),d=!0)},o(v){V(u.$$.fragment,v),d=!1},d(v){v&&C(e),v&&C(a),v&&C(r),ee(u),m=!1,xe(h)}}}function ls(t,e){return e?"off":t>.5?"max":t>.2?"mid":t>0?"min":"off"}function os(t,e,i){let n,l,{isVerticalVolume:o=!1}=e;const s=De(),a=s.state.volume$;W(t,a,F=>i(13,n=F));const r=s.state.muted$;W(t,r,F=>i(14,l=F));const u=s.actions.internal.setVolume;let d=!1,m,h,v,w=1,p=!1;function E(F){w=n,u(F)}function T(F){u(F)}function _(F){const L=F;u(L,L===0?w:L)}function k(){p=!0}function B(){p=!1,y()}function N(){clearTimeout(m),i(1,d=!0)}function R(){y()}function y(){m=window.setTimeout(()=>{p||i(1,d=!1)},So)}function D(F){it.call(this,t,F)}return t.$$set=F=>{"isVerticalVolume"in F&&i(0,o=F.isVerticalVolume)},t.$$.update=()=>{t.$$.dirty&24576&&i(2,h=ls(n,l)),t.$$.dirty&24576&&i(3,v=l?0:n)},[o,d,h,v,a,r,E,T,_,k,B,N,R,n,l,D]}class ss extends be{constructor(e){super(),pe(this,e,os,ns,ve,{isVerticalVolume:0},is)}}function as(t){ye(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 rs(t){let e,i,n;const l=t[3].default,o=eo(l,t,t[2],null);return{c(){e=b("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)&&io(o,l,s,s[2],n?to(l,s[2],a,null):no(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||(g(o,s),n=!0)},o(s){V(o,s),n=!1},d(s){s&&C(e),o&&o.d(s)}}}function cs(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 at extends be{constructor(e){super(),pe(this,e,cs,rs,ve,{className:0,disabled:1},as)}}function us(t){ye(t,"v-daygaf",".icon.v-daygaf{display:block;width:24px;height:24px}")}function ds(t){let e;return{c(){e=Ce("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 fs(t){let e;return{c(){e=Ce("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 ms(t){let e,i,n,l,o;function s(u,d){return u[0]?fs:ds}let a=s(t),r=a(t);return{c(){e=b("div"),i=Ce("svg"),n=Ce("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=oe(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:I,o:I,d(u){u&&C(e),r.d(),l=!1,o()}}}function vs(t,e,i){let n;const o=De().ui.isFullscreen;W(t,o,a=>i(0,n=a));function s(a){it.call(this,t,a)}return[n,o,s]}class gs extends be{constructor(e){super(),pe(this,e,vs,ms,ve,{},us)}}var Ci="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",on="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",hs="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";function Ct(t,e,i,n){function l(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function a(d){try{u(n.next(d))}catch(m){s(m)}}function r(d){try{u(n.throw(d))}catch(m){s(m)}}function u(d){d.done?o(d.value):l(d.value).then(a,r)}u((n=n.apply(t,e||[])).next())})}class Cl{constructor(){this.isRequested=!1,this.videoElement=void 0,this.externalEventHandlers={},this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:xl(this.onResize.bind(this),kl)}}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}revealPictureInPicture(){return Ct(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}hidePictureInPicture(){return Ct(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.remove(),this.registryEventHandlers())})}request(){var e;return Ct(this,void 0,void 0,function*(){if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)===null||e===void 0?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return Ct(this,void 0,void 0,function*(){!this.isSupported()||!this.isActive||(yield document.exitPictureInPicture())})}updateVideoElement(e){this.isSupported()&&(this.videoElement=e)}registryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Object.assign({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}onEnterPictureInPicture(e){var i,n;this.isRequested=!0,e.pictureInPictureWindow.addEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).enterpictureinpicture)===null||n===void 0||n.call(i,e)}onLeavePictureInPicture(e){var i,n;this.isRequested=!1,e.pictureInPictureWindow.removeEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).leavepictureinpicture)===null||n===void 0||n.call(i,e)}onResize(e){var i,n;(n=(i=this.externalEventHandlers).resize)===null||n===void 0||n.call(i,e)}}const ps=460,bs=280;class ws{isSupported(){return"documentPictureInPicture"in window}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}request(){var e,i;return Ct(this,void 0,void 0,function*(){!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot||(this.pipWindow=yield documentPictureInPicture.requestWindow({width:ps,height:bs,copyStyleSheets:!0}),(e=this.pipWindow)===null||e===void 0||e.document.body.append(this.playerDomElement),(i=this.pipWindow)===null||i===void 0||i.addEventListener("unload",n=>{!this.playerDomElement||!this.playerParentShadowRoot||this.playerParentShadowRoot.append(this.playerDomElement)}))})}remove(){return Ct(this,void 0,void 0,function*(){return new Promise(e=>{documentPictureInPicture.window.close(),e()})})}}var Jt;(function(t){t.AUTO="auto"})(Jt||(Jt={}));var Pe;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed"})(Pe||(Pe={}));var st;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(st||(st={}));var Re;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(Re||(Re={}));function Mi(t){return t instanceof Cl}function _s(t){return t instanceof ws}function ys(t){ye(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 ks(t){let e,i,n,l,o,s;return{c(){e=b("div"),i=b("img"),Ve(i.src,n=t[2])||c(i,"src",n),c(i,"class","icon v-1kcq5gq"),c(i,"alt",""),c(e,"class",l=pt(t[0])+" v-1kcq5gq"),c(e,"role","button"),c(e,"tabindex","0")},m(a,r){M(a,e,r),f(e,i),o||(s=oe(e,"click",function(){Fe(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=pt(t[0])+" v-1kcq5gq")&&c(e,"class",l)},d(a){a&&C(e),o=!1,s()}}}function Ps(t){let e,i,n,l,o,s,a;return{c(){e=b("div"),i=b("div"),n=z(),l=b("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=oe(e,"click",function(){Fe(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 Vs(t){let e;function i(o,s){return o[3]?Ps:ks}let n=i(t),l=n(t);return{c(){l.c(),e=et()},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:I,o:I,d(o){l.d(o),o&&C(e)}}}function Ss(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:h}=e,{isOneVideoPlaylist:v}=e;const p=De().ui.isMobile;W(t,p,_=>i(3,o=_));function E(_,k){return k?hs:_===Se.PlaybackState.PLAYING?on:Ci}function T(_){return _===Re.PLAYING?on:Ci}return t.$$set=_=>{"isEnded"in _&&i(5,s=_.isEnded),"isAds"in _&&i(6,a=_.isAds),"playbackState"in _&&i(7,r=_.playbackState),"adPlaybackState"in _&&i(8,u=_.adPlaybackState),"className"in _&&i(0,d=_.className),"handlePlayClick"in _&&i(9,m=_.handlePlayClick),"repeatPlaylist"in _&&i(10,h=_.repeatPlaylist),"isOneVideoPlaylist"in _&&i(11,v=_.isOneVideoPlaylist)},t.$$.update=()=>{t.$$.dirty&480&&i(2,n=a?T(u):E(r,s)),t.$$.dirty&3680&&i(1,l=!a&&s&&!v?h:m)},[d,l,n,o,p,s,a,r,u,m,h,v]}class Ti extends be{constructor(e){super(),pe(this,e,Ss,Vs,ve,{isEnded:5,isAds:6,playbackState:7,adPlaybackState:8,className:0,handlePlayClick:9,repeatPlaylist:10,isOneVideoPlaylist:11},ys)}}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 As(t){ye(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 Cs(t){let e,i,n,l,o;return{c(){e=b("div"),i=b("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=oe(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 Ms(t){let e,i,n,l,o;return{c(){e=b("div"),i=b("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=oe(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 Es(t){let e;function i(o,s){return o[2]?Ms:Cs}let n=i(t),l=n(t);return{c(){l.c(),e=et()},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:I,o:I,d(o){l.d(o),o&&C(e)}}}function zs(t,e,i){let n,{disabled:l=!1}=e,{type:o}=e;const a=De().ui.isMobile;W(t,a,d=>i(2,n=d));function r(d){it.call(this,t,d)}function u(d){it.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 fi extends be{constructor(e){super(),pe(this,e,zs,Es,ve,{disabled:0,type:1},As)}}var El="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 Ts(t){ye(t,"v-j4644b",".no-hover.v-j4644b{pointer-events:none}.icon.v-j4644b{display:block;width:24px;height:24px}")}function Ns(t){let e,i;return{c(){e=b("img"),Ve(e.src,i=El)||c(e,"src",i),c(e,"class","icon v-j4644b"),c(e,"alt","")},m(n,l){M(n,e,l)},p:I,d(n){n&&C(e)}}}function Ls(t){let e,i,n,l,o;return{c(){e=b("a"),i=b("img"),Ve(i.src,n=El)||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=oe(e,"click",t[2]),l=!0)},p:I,d(s){s&&C(e),l=!1,o()}}}function Is(t){let e,i;function n(s,a){return s[1]?Ls:Ns}let l=n(t),o=l(t);return{c(){e=b("div"),o.c(),c(e,"class",i=pt(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=pt(s[0])+" v-j4644b")&&c(e,"class",i),a&3&&A(e,"no-hover",!s[1])},i:I,o:I,d(s){s&&C(e),o.d()}}}function Bs(t,e,i){let{className:n=""}=e,{logoClickable:l=!1}=e;function o(s){it.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 zl extends be{constructor(e){super(),pe(this,e,Bs,Is,ve,{className:0,logoClickable:1},Ts)}}function Rs(t){ye(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 sn(t){let e,i,n,l;function o(r,u){if(r[1]===Se.ChromecastState.AVAILABLE)return Hs;if(r[1]===Se.ChromecastState.CONNECTED)return qs;if(r[1]===Se.ChromecastState.CONNECTING)return Fs}let s=o(t),a=s&&s(t);return{c(){e=b("div"),a&&a.c(),c(e,"class",i=pt(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=oe(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=pt(r[0])+" v-1gdbwrb")&&c(e,"class",i)},d(r){r&&C(e),a&&a.d(),n=!1,l()}}}function Fs(t){let e,i,n,l,o,s,a;return{c(){e=Ce("svg"),i=Ce("g"),n=Ce("path"),l=Ce("path"),o=Ce("path"),s=Ce("path"),a=Ce("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 qs(t){let e,i,n,l;return{c(){e=Ce("svg"),i=Ce("g"),n=Ce("path"),l=Ce("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 Hs(t){let e,i,n,l;return{c(){e=Ce("svg"),i=Ce("g"),n=Ce("path"),l=Ce("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 Ds(t){let e,i=t[1]!==Se.ChromecastState.NOT_AVAILABLE&&sn(t);return{c(){i&&i.c(),e=et()},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=sn(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:I,o:I,d(n){i&&i.d(n),n&&C(e)}}}function js(t,e,i){let n,{className:l=""}=e;const s=De().state.chromecastState$;W(t,s,u=>i(3,n=u));let a;function r(u){it.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 Os extends be{constructor(e){super(),pe(this,e,js,Ds,ve,{className:0},Rs)}}var Us="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",Qs="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 Ws(t){ye(t,"v-rwtbzf",".icon.v-rwtbzf{display:block;width:42px;height:20px}")}function Ys(t){let e,i,n,l,o;return{c(){e=b("div"),i=b("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=oe(e,"click",t[2]),l=!0)},p(s,[a]){a&1&&!Ve(i.src,n=s[0])&&c(i,"src",n)},i:I,o:I,d(s){s&&C(e),l=!1,o()}}}function Ks(t,e,i){let{isActiveLive:n=!1}=e,l="";function o(s){it.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?Qs:Us)},[l,n,o]}class Xs extends be{constructor(e){super(),pe(this,e,Ks,Ys,ve,{isActiveLive:1},Ws)}}var an="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",rn="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 Gs(t){ye(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 cn(t){let e;return{c(){e=b("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 xs(t){let e,i,n,l,o,s,a=t[0]&&cn();return{c(){e=b("div"),i=b("img"),l=z(),a&&a.c(),Ve(i.src,n=t[0]?rn:an)||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=oe(e,"click",t[1]),o=!0)},p(r,[u]){u&1&&!Ve(i.src,n=r[0]?rn:an)&&c(i,"src",n),r[0]?a||(a=cn(),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&A(e,"expanded",r[0])},i:I,o:I,d(r){r&&C(e),a&&a.d(),o=!1,s()}}}function Js(t,e,i){let{expanded:n=!1}=e;function l(o){it.call(this,t,o)}return t.$$set=o=>{"expanded"in o&&i(0,n=o.expanded)},[n,l]}class Tl extends be{constructor(e){super(),pe(this,e,Js,xs,ve,{expanded:0},Gs)}}function Zs(t){ye(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 $s(t){let e,i,n,l,o;return{c(){e=b("div"),i=b("div"),n=b("div"),l=me(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&&Me(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:I,o:I,d(s){s&&C(e)}}}function ea(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 ta extends be{constructor(e){super(),pe(this,e,ea,$s,ve,{content:0,active:1,translateXPx:2,translateYPx:3},Zs)}}function un(t){let e,i;return e=new ta({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ia(t){let e,i,n,l=(!t[8]||t[8]&&t[7])&&un(t);return i=new zi({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=z(),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&&g(l,1)):(l=un(o),l.c(),g(l,1),l.m(e.parentNode,e)):l&&(ae(),V(l,1,1,()=>{l=null}),re());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||(g(l),g(i.$$.fragment,o),n=!0)},o(o){V(l),V(i.$$.fragment,o),n=!1},d(o){l&&l.d(o),o&&C(e),ee(i,o)}}}function na(t,e,i){let n,l,o,s,a,r;const u=De(),d=u.state.bufferedProgress$;W(t,d,O=>i(10,r=O));const m=u.state.positionWithScrubbing$;W(t,m,O=>i(23,o=O));const h=u.state.duration$;W(t,h,O=>i(0,l=O));const v=u.state.isLive$;W(t,v,O=>i(7,n=O));const w=u.state.isActiveLive$;W(t,w,O=>i(9,a=O));const p=u.ui.isMobile;W(t,p,O=>i(8,s=O));let E,T,_,k=!1,B="",N=0;function R(O){u.actions.internal.startScrubbing(O)}function y(O){u.actions.internal.progressScrubbing(O)}function D(O){u.actions.internal.completeScrubbing(O)}function F(O,X){J(O,X),i(4,k=!0)}function L(O,X){J(O,X)}function K(){i(4,k=!1)}function J(O,X){i(6,N=X),i(5,B=j(O))}function j(O){const X=ht((n?1-O:O)*l);return n?`-${X}`:X}return t.$$.update=()=>{t.$$.dirty&1&&i(1,E=ht(l)),t.$$.dirty&8388608&&i(2,T=ht(o)),t.$$.dirty&8388609&&i(3,_=o/l)},[l,E,T,_,k,B,N,n,s,a,r,d,m,h,v,w,p,R,y,D,F,L,K,o]}let la=class extends be{constructor(e){super(),pe(this,e,na,ia,ve,{})}};function oa(t){let e,i;return e=new zi({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function sa(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const a=De().ui.isMobile;W(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=ht(o)),t.$$.dirty&64&&i(2,u=ht(l)),t.$$.dirty&65&&i(3,d=l/o)},[o,r,u,d,n,a,l]}class Nl extends be{constructor(e){super(),pe(this,e,sa,oa,ve,{position:6,duration:0})}}function aa(t){ye(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 ra(t){let e;return{c(){e=b("div"),c(e,"class","timeline-stub v-17msmwz")},m(i,n){M(i,e,n)},p:I,i:I,o:I,d(i){i&&C(e)}}}function ca(t){let e,i,n,l,o;const s=[da,ua],a=[];function r(u,d){return u[0]?0:1}return i=r(t),n=a[i]=s[i](t),{c(){e=b("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):(ae(),V(a[m],1,1,()=>{a[m]=null}),re(),n=a[i],n?n.p(u,d):(n=a[i]=s[i](u),n.c()),g(n,1),n.m(e,null)),(!o||d&2&&l!==(l="timeline "+u[1]+" v-17msmwz"))&&c(e,"class",l)},i(u){o||(g(n),o=!0)},o(u){V(n),o=!1},d(u){u&&C(e),a[i].d()}}}function ua(t){let e,i;return e=new la({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function da(t){let e,i;return e=new Nl({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function fa(t){let e,i,n,l;const o=[ca,ra],s=[];function a(r,u){return r[2]?0:1}return e=a(t),i=s[e]=o[e](t),{c(){i.c(),n=et()},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):(ae(),V(s[d],1,1,()=>{s[d]=null}),re(),i=s[e],i?i.p(r,u):(i=s[e]=o[e](r),i.c()),g(i,1),i.m(n.parentNode,n))},i(r){l||(g(i),l=!0)},o(r){V(i),l=!1},d(r){s[e].d(r),r&&C(n)}}}function ma(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$;W(t,m,p=>i(10,n=p));const h=d.ads.duration;W(t,h,p=>i(4,o=p));const v=d.ads.position;W(t,v,p=>i(3,l=p));let w;return t.$$set=p=>{"isAds"in p&&i(0,s=p.isAds),"canRewindLive"in p&&i(8,a=p.canRewindLive),"isHidden"in p&&i(9,r=p.isHidden),"className"in p&&i(1,u=p.className)},t.$$.update=()=>{t.$$.dirty&1793&&i(2,w=!r&&(!n||n&&a||s))},[s,u,w,l,o,m,h,v,a,r,n]}class Ll extends be{constructor(e){super(),pe(this,e,ma,fa,ve,{isAds:0,canRewindLive:8,isHidden:9,className:1},aa)}}function va(t){ye(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(
6
+ "use strict";var Se=require("@vkontakte/videoplayer-core/es2015.cjs.js"),vl=require("lodash/debounce.js"),ae=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),Fi=require("@vkontakte/videoplayer-statistics/es2015.cjs.js"),xl=require("lodash/cloneDeepWith.js");function I(){}function Zl(t,e){for(const i in e)t[i]=e[i];return t}function hl(t){return t()}function qi(){return Object.create(null)}function xe(t){t.forEach(hl)}function Fe(t){return typeof t=="function"}function ve(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let oi;function Ve(t,e){return oi||(oi=document.createElement("a")),oi.href=e,t===oi.href}function $l(t){return Object.keys(t).length===0}function Ei(t,...e){if(t==null)return I;const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Be(t){let e;return Ei(t,i=>e=i)(),e}function W(t,e,i){t.$$.on_destroy.push(Ei(e,i))}function eo(t,e,i,n){if(t){const l=gl(t,e,i,n);return t[0](l)}}function gl(t,e,i,n){return t[1]&&n?Zl(i.ctx.slice(),t[1](n(e))):i.ctx}function to(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 io(t,e,i,n,l,o){if(l){const s=gl(e,i,n,o);t.p(s,l)}}function no(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 bt(t){return t==null?"":t}function f(t,e){t.appendChild(e)}function ke(t,e,i){const n=lo(t);if(!n.getElementById(e)){const l=b("style");l.id=e,l.textContent=i,oo(n,l)}}function lo(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function oo(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 Hi(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function b(t){return document.createElement(t)}function Ae(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function me(t){return document.createTextNode(t)}function T(){return me(" ")}function it(){return me("")}function se(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function At(t){return function(e){return e.preventDefault(),t.call(this,e)}}function so(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 ao(t){return Array.from(t.childNodes)}function Me(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Ot(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 $t;function xt(t){$t=t}function ui(){if(!$t)throw new Error("Function called outside component initialization");return $t}function Et(t){ui().$$.on_mount.push(t)}function pl(t){ui().$$.on_destroy.push(t)}function ro(t,e){return ui().$$.context.set(t,e),e}function co(t){return ui().$$.context.get(t)}function lt(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const jt=[],Je=[],si=[],ki=[],uo=Promise.resolve();let Pi=!1;function fo(){Pi||(Pi=!0,uo.then(bl))}function Vi(t){si.push(t)}function mo(t){ki.push(t)}const bi=new Set;let Ht=0;function bl(){if(Ht!==0)return;const t=$t;do{try{for(;Ht<jt.length;){const e=jt[Ht];Ht++,xt(e),vo(e.$$)}}catch(e){throw jt.length=0,Ht=0,e}for(xt(null),jt.length=0,Ht=0;Je.length;)Je.pop()();for(let e=0;e<si.length;e+=1){const i=si[e];bi.has(i)||(bi.add(i),i())}si.length=0}while(jt.length);for(;ki.length;)ki.pop()();Pi=!1,bi.clear(),xt(t)}function vo(t){if(t.fragment!==null){t.update(),xe(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Vi)}}const ai=new Set;let Ct;function re(){Ct={r:0,c:[],p:Ct}}function ce(){Ct.r||xe(Ct.c),Ct=Ct.p}function h(t,e){t&&t.i&&(ai.delete(t),t.i(e))}function V(t,e,i,n){if(t&&t.o){if(ai.has(t))return;ai.add(t),Ct.c.push(()=>{ai.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}const ho=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function go(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||Vi(()=>{const s=t.$$.on_mount.map(hl).filter(Fe);t.$$.on_destroy?t.$$.on_destroy.push(...s):xe(s),t.$$.on_mount=[]}),o.forEach(Vi)}function ee(t,e){const i=t.$$;i.fragment!==null&&(xe(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function po(t,e){t.$$.dirty[0]===-1&&(jt.push(t),fo(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function pe(t,e,i,n,l,o,s,a=[-1]){const r=$t;xt(t);const u=t.$$={fragment:null,ctx:[],props:o,update:I,not_equal:l,bound:qi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(r?r.$$.context:[])),callbacks:qi(),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,g,...v)=>{const w=v.length?v[0]:g;return u.ctx&&l(u.ctx[m],u.ctx[m]=w)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](w),d&&po(t,m)),g}):[],u.update(),d=!0,xe(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const m=ao(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&h(t.$$.fragment),$(t,e.target,e.anchor,e.customElement),bl()}xt(r)}class be{$destroy(){ee(this,1),this.$destroy=I}$on(e,i){if(!Fe(i))return I;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&&!$l(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Dt=[];function Ut(t,e){return{subscribe:Ie(t,e).subscribe}}function Ie(t,e=I){let i;const n=new Set;function l(a){if(ve(t,a)&&(t=a,i)){const r=!Dt.length;for(const u of n)u[1](),Dt.push(u,t);if(r){for(let u=0;u<Dt.length;u+=2)Dt[u][0](Dt[u+1]);Dt.length=0}}}function o(a){l(a(t))}function s(a,r=I){const u=[a,r];return n.add(u),n.size===1&&(i=e(l)||I),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 Ut(i,s=>{let a=!1;const r=[];let u=0,d=I;const m=()=>{if(u)return;d();const v=e(n?r[0]:r,s);o?s(v):d=Fe(v)?v:I},g=l.map((v,w)=>Ei(v,p=>{r[w]=p,u&=~(1<<w),a&&m()},()=>{u|=1<<w}));return a=!0,m(),function(){xe(g),d()}})}const wl="1.1.17",bo="@vkontakte/videoplayer",_l=Symbol("storeContext"),wo=t=>{ro(_l,t)},De=()=>{const t=co(_l);return ae.assertNonNullable(t,"Store context is empty!"),t},He=(t,e)=>Ut(t.getValue(),i=>{const n=t.subscribe(l=>{i(l),e==null||e(l)});return()=>n.unsubscribe()}),_o=(t,e,i)=>{var n,l,o,s;const a=t.info,{width:r,height:u}=Be(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,g=a.isAutoQualityEnabled$.getValue()?"auto":"manual",v={Version:`${bo}@${wl}`,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:`${g} ${a.currentQuality$.getValue()}`,"Available qualities":a.availableQualities$.getValue().join(", "),Position:`${Be(i.state.positionExact$)}s`,State:`${Be(i.playerPhase)} ${a.playbackState$.getValue()}`,"Player size":`${r}x${u}`,URL:window.location.href,Errors:Be(i.state.errorLog$).map(({id:w})=>w).join(", ")};return Object.entries(v).map(([w,p])=>`${w}: ${p}`).join(`
7
+ `)},yo=(t,e,i)=>{const n=t.info,{width:l,height:o}=Be(i.ui.playerSize),s={version:wl,viewport:`${l}x${o}`,volume:Math.round(Be(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-Be(i.state.positionExact$),0));const g=n.throughputEstimation$.getValue();g&&(s.speed=g);const v=n.videoBitrate$.getValue();return v&&(s.bitrate=v),s},ko=500,Di=3e3,ji=2e3,Po=3e3,Vo=6e3,So=300,ri="\u0410\u0432\u0442\u043E",yl="vk_player_preferred_volume",kl="vk_player_prefer_volume_mute",Si="vk_player_debug_panel_opened",di=1,Ao=.05,Oi=1,Ui=.05,Qi=10,Pl=300,Co="https://vk.com/support?act=new&from=v",Mo=500;var Xe;(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"})(Xe||(Xe={}));var Ai="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",Eo="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",To="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",zo="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",No="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",Lo="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",Io="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",Vl="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",Wi="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",Bo="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",Ro="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",Fo="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 Sl=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 qo(t){ke(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 Yi(t,e,i){const n=t.slice();return n[44]=e[i],n}function Ki(t,e,i){const n=t.slice();return n[47]=e[i],n}function Xi(t){let e,i,n,l,o,s,a,r;return{c(){e=b("div"),i=b("div"),i.textContent="\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",n=T(),l=b("div"),o=T(),s=b("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=se(l,"click",t[24]),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 Gi(t){let e,i;return{c(){e=b("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 Ji(t){let e,i,n,l,o,s,a,r,u,d,m;return{c(){e=b("li"),i=b("img"),l=T(),o=b("div"),o.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",s=T(),a=b("div"),r=me(t[11]),u=me("x"),c(i,"class","menu-icon v-1f29v8g"),Ve(i.src,n=Eo)||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(g,v){M(g,e,v),f(e,i),f(e,l),f(e,o),f(e,s),f(e,a),f(a,r),f(a,u),d||(m=se(e,"click",t[28]),d=!0)},p(g,v){v[0]&2048&&Me(r,g[11]),v[0]&1&&A(e,"item-mobile",g[0])},d(g){g&&C(e),d=!1,m()}}}function xi(t){let e,i,n,l,o,s,a,r,u,d,m,g,v,w,p,E,z,_,k;return{c(){e=b("li"),i=b("img"),l=T(),o=b("div"),o.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",s=T(),a=b("li"),r=b("img"),d=T(),m=b("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",g=T(),v=b("li"),w=b("img"),E=T(),z=b("div"),z.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=Bo)||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=Ro)||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(w,"class","menu-icon v-1f29v8g"),Ve(w.src,p=Fo)||c(w,"src",p),c(w,"alt",""),c(z,"class","menu-title v-1f29v8g"),c(v,"class","item item-mobile v-1f29v8g"),c(v,"role","menuitemradio"),c(v,"tabindex","0")},m(B,N){M(B,e,N),f(e,i),f(e,l),f(e,o),M(B,s,N),M(B,a,N),f(a,r),f(a,d),f(a,m),M(B,g,N),M(B,v,N),f(v,w),f(v,E),f(v,z),_||(k=[se(e,"click",t[30]),se(a,"click",t[31]),se(v,"click",t[32])],_=!0)},p:I,d(B){B&&C(e),B&&C(s),B&&C(a),B&&C(g),B&&C(v),_=!1,xe(k)}}}function Zi(t){let e,i;return{c(){e=b("img"),c(e,"class","itemIcon v-1f29v8g"),Ve(e.src,i=Vl)||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p:I,d(n){n&&C(e)}}}function $i(t){let e,i;return{c(){e=b("img"),c(e,"class","menu-valueIcon-list v-1f29v8g"),Ve(e.src,i=t[33](t[47].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[33](n[47].value))&&c(e,"src",i)},d(n){n&&C(e)}}}function en(t){let e,i,n,l=t[47].displayValue+"",o,s,a,r,u,d,m=t[47].selected&&Zi(),g=!t[0]&&$i(t);function v(){return t[39](t[47])}return{c(){e=b("li"),m&&m.c(),i=T(),n=b("div"),o=me(l),s=T(),g&&g.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[47].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(w,p){M(w,e,p),m&&m.m(e,null),f(e,i),f(e,n),f(n,o),f(e,s),g&&g.m(e,null),f(e,a),u||(d=se(e,"click",v),u=!0)},p(w,p){t=w,t[47].selected?m?m.p(t,p):(m=Zi(),m.c(),m.m(e,i)):m&&(m.d(1),m=null),p[0]&2&&l!==(l=t[47].displayValue+"")&&Me(o,l),p[0]&1&&A(n,"quality-title-mobile",t[0]),t[0]?g&&(g.d(1),g=null):g?g.p(t,p):(g=$i(t),g.c(),g.m(e,a)),p[0]&2&&r!==(r=t[47].value)&&c(e,"data-value",r),p[0]&1&&A(e,"item-mobile",t[0])},d(w){w&&C(e),m&&m.d(),g&&g.d(),u=!1,d()}}}function tn(t){let e,i;return{c(){e=b("img"),c(e,"class","itemIcon v-1f29v8g"),Ve(e.src,i=Vl)||c(e,"src",i),c(e,"alt","")},m(n,l){M(n,e,l)},p:I,d(n){n&&C(e)}}}function nn(t){let e,i,n,l=t[44].displayValue+"",o,s,a,r,u,d=t[44].selected&&tn();function m(){return t[40](t[44])}return{c(){e=b("li"),d&&d.c(),i=T(),n=b("div"),o=me(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[44].value),c(e,"role","menuitemradio"),c(e,"tabindex","0"),A(e,"item-mobile",t[0])},m(g,v){M(g,e,v),d&&d.m(e,null),f(e,i),f(e,n),f(n,o),f(e,s),r||(u=se(e,"click",m),r=!0)},p(g,v){t=g,t[44].selected?d?d.p(t,v):(d=tn(),d.c(),d.m(e,i)):d&&(d.d(1),d=null),v[0]&4096&&l!==(l=t[44].displayValue+"")&&Me(o,l),v[0]&1&&A(n,"quality-title-mobile",t[0]),v[0]&4096&&a!==(a=t[44].value)&&c(e,"data-value",a),v[0]&1&&A(e,"item-mobile",t[0])},d(g){g&&C(e),d&&d.d(),r=!1,u()}}}function Ho(t){let e,i,n,l,o,s,a,r,u,d,m,g,v,w,p,E,z,_,k,B,N,R,y,D,F,L,X,x,j,O,G,ue,K,q,ie,Te,le,je,Qe,oe=t[0]&&Xi(t),he=t[6]&&!t[0]&&Gi(t),fe=!t[9]&&!t[10]&&Ji(t),de=t[0]&&xi(t),_e=t[1],ge=[];for(let H=0;H<_e.length;H+=1)ge[H]=en(Ki(t,_e,H));let ye=t[12],U=[];for(let H=0;H<ye.length;H+=1)U[H]=nn(Yi(t,ye,H));return{c(){e=b("div"),i=b("div"),oe&&oe.c(),n=T(),l=b("ul"),o=b("li"),s=b("img"),r=T(),u=b("div"),u.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",d=T(),m=b("div"),g=me(t[7]),v=T(),he&&he.c(),w=T(),fe&&fe.c(),p=T(),de&&de.c(),E=T(),z=b("div"),_=b("div"),k=b("img"),N=T(),R=b("div"),R.textContent="\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",y=T(),D=b("div"),F=T(),L=b("ul");for(let H=0;H<ge.length;H+=1)ge[H].c();X=T(),x=b("div"),j=b("div"),O=b("img"),ue=T(),K=b("div"),K.textContent="\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",q=T(),ie=b("div"),Te=T(),le=b("ul");for(let H=0;H<U.length;H+=1)U[H].c();c(s,"class","menu-icon v-1f29v8g"),Ve(s.src,a=Ai)||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,B=Wi)||c(k,"src",B),c(k,"class","menu-header-back-icon v-1f29v8g"),c(k,"alt",""),c(_,"class","item menu-header v-1f29v8g"),A(_,"item-mobile",t[0]),c(D,"class","menu-divider v-1f29v8g"),c(L,"class","items v-1f29v8g"),c(L,"style",t[8]),A(L,"items-mobile",t[0]),c(z,"class","menu menu-subList v-1f29v8g"),A(z,"menu-desktop",!t[0]),A(z,"menu-mobile",t[0]),A(z,"hidden",!t[4]),Ve(O.src,G=Wi)||c(O,"src",G),c(O,"class","menu-header-back-icon v-1f29v8g"),c(O,"alt",""),c(j,"class","item menu-header v-1f29v8g"),A(j,"item-mobile",t[0]),c(ie,"class","menu-divider v-1f29v8g"),c(le,"class","items v-1f29v8g"),A(le,"items-mobile",t[0]),c(x,"class","menu menu-subList v-1f29v8g"),A(x,"menu-desktop",!t[0]),A(x,"menu-mobile",t[0]),A(x,"hidden",!t[5]),c(e,"class","v-1f29v8g"),A(e,"hidden",!t[2]),A(e,"container-mobile",t[0])},m(H,Q){M(H,e,Q),f(e,i),oe&&oe.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,g),f(m,v),he&&he.m(m,null),f(l,w),fe&&fe.m(l,null),f(l,p),de&&de.m(l,null),f(e,E),f(e,z),f(z,_),f(_,k),f(_,N),f(_,R),f(z,y),f(z,D),f(z,F),f(z,L);for(let Z=0;Z<ge.length;Z+=1)ge[Z].m(L,null);f(e,X),f(e,x),f(x,j),f(j,O),f(j,ue),f(j,K),f(x,q),f(x,ie),f(x,Te),f(x,le);for(let Z=0;Z<U.length;Z+=1)U[Z].m(le,null);je||(Qe=[se(o,"click",t[25]),se(_,"click",t[29]),se(j,"click",t[29])],je=!0)},p(H,Q){if(H[0]?oe?oe.p(H,Q):(oe=Xi(H),oe.c(),oe.m(i,n)):oe&&(oe.d(1),oe=null),Q[0]&128&&Me(g,H[7]),H[6]&&!H[0]?he?he.p(H,Q):(he=Gi(H),he.c(),he.m(m,null)):he&&(he.d(1),he=null),Q[0]&1&&A(o,"item-mobile",H[0]),!H[9]&&!H[10]?fe?fe.p(H,Q):(fe=Ji(H),fe.c(),fe.m(l,p)):fe&&(fe.d(1),fe=null),H[0]?de?de.p(H,Q):(de=xi(H),de.c(),de.m(l,null)):de&&(de.d(1),de=null),Q[0]&1&&A(l,"items-mobile",H[0]),Q[0]&1&&A(i,"menu-desktop",!H[0]),Q[0]&1&&A(i,"menu-mobile",H[0]),Q[0]&8&&A(i,"hidden",!H[3]),Q[0]&1&&A(_,"item-mobile",H[0]),Q[0]&67108867|Q[1]&4){_e=H[1];let Z;for(Z=0;Z<_e.length;Z+=1){const Ce=Ki(H,_e,Z);ge[Z]?ge[Z].p(Ce,Q):(ge[Z]=en(Ce),ge[Z].c(),ge[Z].m(L,null))}for(;Z<ge.length;Z+=1)ge[Z].d(1);ge.length=_e.length}if(Q[0]&256&&c(L,"style",H[8]),Q[0]&1&&A(L,"items-mobile",H[0]),Q[0]&1&&A(z,"menu-desktop",!H[0]),Q[0]&1&&A(z,"menu-mobile",H[0]),Q[0]&16&&A(z,"hidden",!H[4]),Q[0]&1&&A(j,"item-mobile",H[0]),Q[0]&134221825){ye=H[12];let Z;for(Z=0;Z<ye.length;Z+=1){const Ce=Yi(H,ye,Z);U[Z]?U[Z].p(Ce,Q):(U[Z]=nn(Ce),U[Z].c(),U[Z].m(le,null))}for(;Z<U.length;Z+=1)U[Z].d(1);U.length=ye.length}Q[0]&1&&A(le,"items-mobile",H[0]),Q[0]&1&&A(x,"menu-desktop",!H[0]),Q[0]&1&&A(x,"menu-mobile",H[0]),Q[0]&32&&A(x,"hidden",!H[5]),Q[0]&4&&A(e,"hidden",!H[2]),Q[0]&1&&A(e,"container-mobile",H[0])},i:I,o:I,d(H){H&&C(e),oe&&oe.d(),he&&he.d(),fe&&fe.d(),de&&de.d(),Hi(ge,H),Hi(U,H),je=!1,xe(Qe)}}}function Do(t,e,i){let n,l,o,s,a,r,u,d,m,g,v,{supportLink:w}=e;const p=De(),E=p.state.currentQuality$;W(t,E,U=>i(38,r=U));const z=p.state.availableQualities$;W(t,z,U=>i(1,a=U));const _=p.state.isAutoQualityEnabled$;W(t,_,U=>i(37,s=U));const k=p.state.currentPlaybackRate$;W(t,k,U=>i(11,g=U));const B=p.state.availablePlaybackRates$;W(t,B,U=>i(12,v=U));const N=p.ui.settingsMenuVisible;W(t,N,U=>i(2,u=U));const R=p.ui.isMobile;W(t,R,U=>i(0,o=U));const y=p.ui.isFullscreen;W(t,y,U=>i(36,l=U));const D=p.state.isActiveLive$;W(t,D,U=>i(10,m=U));const F=p.state.isMaxSeekBackTime$;W(t,F,U=>i(9,d=U));const L=p.ui.playerSize;W(t,L,U=>i(35,n=U));const X=p.ui.debugPanelVisible;let x=!0,j=!1,O=!1;function G(){N.set(!1)}function ue(){i(3,x=!1),i(4,j=!0)}function K(U){p.actions.internal.setQuality(U),G()}function q(U){p.actions.internal.setPlaybackRate(U),G()}function ie(){i(3,x=!1),i(5,O=!0)}function Te(){i(3,x=!0),i(4,j=!1),i(5,O=!1)}function le(){window.open(w,"_blank"),G(),p.actions.internal.pause()}function je(){Sl(p.actions.internal.getDebugTextData()),G()}function Qe(){X.set(!0),G()}function oe(U){switch(U){case Se.VideoQuality.Q_720P:return To;case Se.VideoQuality.Q_1080P:return Io;case Se.VideoQuality.Q_1440P:return zo;case Se.VideoQuality.Q_2160P:return No;case Se.VideoQuality.Q_4320P:return Lo}}function he(U,H,Q){if(!U)return"...";const Z=H.find($e=>$e.value===U),Ce=Z?Z.displayValue:U;return Q?U===Se.VideoQuality.INVARIANT?ri:`${ri} ${Ce}`:Ce}let fe,de,_e;const ge=U=>K(U.value),ye=U=>q(U.value);return t.$$set=U=>{"supportLink"in U&&i(34,w=U.supportLink)},t.$$.update=()=>{t.$$.dirty[0]&4&&u&&(i(3,x=!0),i(4,j=!1),i(5,O=!1)),t.$$.dirty[1]&128&&i(6,fe=oe(r)),t.$$.dirty[0]&2|t.$$.dirty[1]&192&&i(7,de=he(r,a,s)),t.$$.dirty[0]&1|t.$$.dirty[1]&48&&i(8,_e=o&&l?`max-height: ${Math.round(n.height*.6)}px`:"")},[o,a,u,x,j,O,fe,de,_e,d,m,g,v,E,z,_,k,B,N,R,y,D,F,L,G,ue,K,q,ie,Te,le,je,Qe,oe,w,n,l,s,r,ge,ye]}class Al extends be{constructor(e){super(),pe(this,e,Do,Ho,ve,{supportLink:34},qo,[-1,-1])}}var jo="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",Oo="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",Uo="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",Qo="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",Wo="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 Yo(t){ke(t,"v-1qf7s4g",".settingsButton-icon.v-1qf7s4g{display:block;width:40px;height:24px}.settingsButton-icon.mobile.v-1qf7s4g{width:auto}")}function Ko(t){let e,i,n,l,o,s,a;return{c(){e=b("div"),i=b("div"),n=b("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=bt(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=se(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=bt(r[0])+" v-1qf7s4g")&&c(e,"class",o)},i:I,o:I,d(r){r&&C(e),s=!1,a()}}}function Xo(t,e,i){let n,l,o,{className:s=""}=e;const a=De(),r=a.state.currentQuality$;W(t,r,v=>i(2,o=v));const u=a.ui.settingsMenuVisible;W(t,u,v=>i(8,n=v));const d=a.ui.isMobile;W(t,d,v=>i(1,l=v));function m(){u.set(!n)}function g(v,w){if(w)return Ai;switch(v){case Se.VideoQuality.Q_720P:return jo;case Se.VideoQuality.Q_1080P:return Wo;case Se.VideoQuality.Q_1440P:return Oo;case Se.VideoQuality.Q_2160P:return Uo;case Se.VideoQuality.Q_4320P:return Qo;default:return Ai}}return t.$$set=v=>{"className"in v&&i(0,s=v.className)},[s,l,o,r,u,d,m,g]}class Cl extends be{constructor(e){super(),pe(this,e,Xo,Ko,ve,{className:0},Yo)}}const pt=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 Go(t){ke(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 ln(t){let e,i;return{c(){e=b("span"),i=me(t[2]),c(e,"class","duration v-1bjfp5n")},m(n,l){M(n,e,l),f(e,i)},p(n,l){l&4&&Me(i,n[2])},d(n){n&&C(e)}}}function Jo(t){let e,i,n,l,o,s=t[0]&&ln(t);return{c(){e=b("div"),i=b("span"),n=me(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&&Me(n,a[3]),a[0]?s?s.p(a,r):(s=ln(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:I,o:I,d(a){a&&C(e),s&&s.d()}}}function xo(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=pt(n)),t.$$.dirty&32&&i(3,r=pt(l))},[o,s,a,r,n,l]}class Zo extends be{constructor(e){super(),pe(this,e,xo,Jo,ve,{duration:4,position:5,showDuration:0,className:1},Go)}}function $o(t){ke(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 es(t){let e,i,n,l,o,s,a,r,u,d,m,g,v,w;return{c(){e=b("div"),i=b("div"),n=b("div"),o=T(),s=b("div"),r=T(),u=b("div"),d=b("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",g="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(p,E){M(p,e,E),f(e,i),f(i,n),f(i,o),f(i,s),f(e,r),f(e,u),f(u,d),t[27](e),v||(w=[se(e,"pointerdown",At(t[16])),se(e,"pointermove",At(t[17])),se(e,"pointerup",At(t[18])),se(e,"pointerenter",At(t[19])),se(e,"pointerleave",At(t[20]))],v=!0)},p(p,[E]){E&64&&l!==(l=`transform: translateX(${p[6]*100}%);`)&&c(n,"style",l),E&128&&a!==(a=`transform: translateX(${p[7]*100}%);`)&&c(s,"style",a),E&8&&A(s,"active-live",p[3]),E&16&&A(s,"ads",p[4]),E&8&&A(d,"active-live",p[3]),E&256&&m!==(m=`transform: translateX(${p[8]*100}%);`)&&c(u,"style",m),E&16&&A(u,"hidden",p[4]),E&1&&g!==(g="slider "+p[0]+" v-mgwd2i")&&c(e,"class",g),E&512&&c(e,"aria-label",p[9]),E&1024&&c(e,"aria-valuemin",p[10]),E&2048&&c(e,"aria-valuemax",p[11]),E&4096&&c(e,"aria-valuenow",p[12]),E&8192&&c(e,"aria-valuetext",p[13]),E&32769&&A(e,"slider-dragging",p[15]),E&3&&A(e,"hidden",p[1]),E&5&&A(e,"slider-vertical",p[2]),E&17&&A(e,"no-handle",p[4]),E&33&&A(e,"square",p[5])},i:I,o:I,d(p){p&&C(e),t[27](null),v=!1,xe(w)}}}function ts(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=I}=e,{onHandleMove:g=I}=e,{onPointerUp:v=I}=e,{onPointerEnter:w=I}=e,{onPointerMove:p=I}=e,{onPointerLeave:E=I}=e,{loadedProgress:z=0}=e,{filledProgress:_=0}=e,{handleProgress:k=0}=e,{ariaLabel:B=""}=e,{ariaValueMin:N=void 0}=e,{ariaValueMax:R=void 0}=e,{ariaValueNow:y=void 0}=e,{ariaValueText:D=""}=e,F=!1;function L(q){if(F)return;i(15,F=!0),d=u.getBoundingClientRect();const ie=G(q.clientX,q.clientY);m(ie),u.setPointerCapture(q.pointerId)}function X(q){const ie=G(q.clientX,q.clientY),Te=ue(q.clientX);p(ie,Te),F&&g(ie)}function x(q){if(!F)return;i(15,F=!1);const ie=G(q.clientX,q.clientY);v(ie)}function j(q){d=u.getBoundingClientRect();const ie=G(q.clientX,q.clientY),Te=ue(q.clientX);w(ie,Te)}function O(){E()}function G(q,ie){return o?Math.max(0,Math.min(1,(d.height-(ie-d.top))/d.height)):Math.min(Math.max(q-d.x,0),d.width)/d.width}function ue(q){return Math.min(Math.max(q-d.x,0),d.width)}function K(q){Je[q?"unshift":"push"](()=>{u=q,i(14,u)})}return t.$$set=q=>{"className"in q&&i(0,n=q.className),"isHidden"in q&&i(1,l=q.isHidden),"isVertical"in q&&i(2,o=q.isVertical),"isActiveLive"in q&&i(3,s=q.isActiveLive),"isAds"in q&&i(4,a=q.isAds),"squareBorders"in q&&i(5,r=q.squareBorders),"onPointerDown"in q&&i(21,m=q.onPointerDown),"onHandleMove"in q&&i(22,g=q.onHandleMove),"onPointerUp"in q&&i(23,v=q.onPointerUp),"onPointerEnter"in q&&i(24,w=q.onPointerEnter),"onPointerMove"in q&&i(25,p=q.onPointerMove),"onPointerLeave"in q&&i(26,E=q.onPointerLeave),"loadedProgress"in q&&i(6,z=q.loadedProgress),"filledProgress"in q&&i(7,_=q.filledProgress),"handleProgress"in q&&i(8,k=q.handleProgress),"ariaLabel"in q&&i(9,B=q.ariaLabel),"ariaValueMin"in q&&i(10,N=q.ariaValueMin),"ariaValueMax"in q&&i(11,R=q.ariaValueMax),"ariaValueNow"in q&&i(12,y=q.ariaValueNow),"ariaValueText"in q&&i(13,D=q.ariaValueText)},[n,l,o,s,a,r,z,_,k,B,N,R,y,D,u,F,L,X,x,j,O,m,g,v,w,p,E,K]}class Ti extends be{constructor(e){super(),pe(this,e,ts,es,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},$o)}}function is(t){ke(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 ns(t){let e,i,n,l,o,s,a,r,u,d,m,g;return u=new Ti({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]:I,onPointerLeave:t[0]?t[10]:I,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=b("div"),i=Ae("svg"),n=Ae("g"),l=Ae("path"),o=Ae("path"),s=Ae("path"),a=T(),r=b("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(v,w){M(v,e,w),f(e,i),f(i,n),f(n,l),f(n,o),f(n,s),M(v,a,w),M(v,r,w),$(u,r,null),d=!0,m||(g=[se(e,"mouseenter",function(){Fe(t[0]?t[11]:I)&&(t[0]?t[11]:I).apply(this,arguments)}),se(e,"mouseleave",function(){Fe(t[0]?t[12]:I)&&(t[0]?t[12]:I).apply(this,arguments)}),se(e,"click",t[15])],m=!0)},p(v,[w]){t=v,(!d||w&4)&&c(i,"data-value",t[2]);const p={};w&1&&(p.className=t[0]?"volumeBar-slider-vertical":""),w&3&&(p.isHidden=t[0]&&!t[1]),w&1&&(p.isVertical=t[0]),w&1&&(p.onPointerEnter=t[0]?t[9]:I),w&1&&(p.onPointerLeave=t[0]?t[10]:I),w&8&&(p.ariaValueNow=Math.round(t[3]*100)),w&8&&(p.ariaValueText=`${Math.round(t[3]*100)}%`),w&8&&(p.filledProgress=t[3]),w&8&&(p.handleProgress=t[3]),u.$set(p),(!d||w&1)&&A(r,"volumeBar-vertical",t[0])},i(v){d||(h(u.$$.fragment,v),d=!0)},o(v){V(u.$$.fragment,v),d=!1},d(v){v&&C(e),v&&C(a),v&&C(r),ee(u),m=!1,xe(g)}}}function ls(t,e){return e?"off":t>.5?"max":t>.2?"mid":t>0?"min":"off"}function os(t,e,i){let n,l,{isVerticalVolume:o=!1}=e;const s=De(),a=s.state.volume$;W(t,a,F=>i(13,n=F));const r=s.state.muted$;W(t,r,F=>i(14,l=F));const u=s.actions.internal.setVolume;let d=!1,m,g,v,w=1,p=!1;function E(F){w=n,u(F)}function z(F){u(F)}function _(F){const L=F;u(L,L===0?w:L)}function k(){p=!0}function B(){p=!1,y()}function N(){clearTimeout(m),i(1,d=!0)}function R(){y()}function y(){m=window.setTimeout(()=>{p||i(1,d=!1)},So)}function D(F){lt.call(this,t,F)}return t.$$set=F=>{"isVerticalVolume"in F&&i(0,o=F.isVerticalVolume)},t.$$.update=()=>{t.$$.dirty&24576&&i(2,g=ls(n,l)),t.$$.dirty&24576&&i(3,v=l?0:n)},[o,d,g,v,a,r,E,z,_,k,B,N,R,n,l,D]}class ss extends be{constructor(e){super(),pe(this,e,os,ns,ve,{isVerticalVolume:0},is)}}function as(t){ke(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 rs(t){let e,i,n;const l=t[3].default,o=eo(l,t,t[2],null);return{c(){e=b("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)&&io(o,l,s,s[2],n?to(l,s[2],a,null):no(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||(h(o,s),n=!0)},o(s){V(o,s),n=!1},d(s){s&&C(e),o&&o.d(s)}}}function cs(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 ct extends be{constructor(e){super(),pe(this,e,cs,rs,ve,{className:0,disabled:1},as)}}function us(t){ke(t,"v-daygaf",".icon.v-daygaf{display:block;width:24px;height:24px}")}function ds(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 fs(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 ms(t){let e,i,n,l,o;function s(u,d){return u[0]?fs:ds}let a=s(t),r=a(t);return{c(){e=b("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=se(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:I,o:I,d(u){u&&C(e),r.d(),l=!1,o()}}}function vs(t,e,i){let n;const o=De().ui.isFullscreen;W(t,o,a=>i(0,n=a));function s(a){lt.call(this,t,a)}return[n,o,s]}class hs extends be{constructor(e){super(),pe(this,e,vs,ms,ve,{},us)}}var Ci="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",on="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",gs="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";function gt(t,e,i,n){function l(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function a(d){try{u(n.next(d))}catch(m){s(m)}}function r(d){try{u(n.throw(d))}catch(m){s(m)}}function u(d){d.done?o(d.value):l(d.value).then(a,r)}u((n=n.apply(t,e||[])).next())})}class Ml{constructor(){this.isRequested=!1,this.videoElement=void 0,this.externalEventHandlers={},this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:vl(this.onResize.bind(this),Pl)}}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}revealPictureInPicture(){return gt(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}hidePictureInPicture(){return gt(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.remove(),this.registryEventHandlers())})}request(){var e;return gt(this,void 0,void 0,function*(){if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)===null||e===void 0?void 0:e.requestPictureInPicture()}catch(i){this.isRequested=!1}})}remove(){return gt(this,void 0,void 0,function*(){!this.isSupported()||!this.isActive||(yield document.exitPictureInPicture())})}updateVideoElement(e){this.isSupported()&&(this.videoElement=e)}registryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Object.assign({},e)}unregistryEventHandlers(){var e,i;(e=this.videoElement)===null||e===void 0||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)===null||i===void 0||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}onEnterPictureInPicture(e){var i,n;this.isRequested=!0,e.pictureInPictureWindow.addEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).enterpictureinpicture)===null||n===void 0||n.call(i,e)}onLeavePictureInPicture(e){var i,n;this.isRequested=!1,e.pictureInPictureWindow.removeEventListener("resize",this.eventHandlers.resize),(n=(i=this.externalEventHandlers).leavepictureinpicture)===null||n===void 0||n.call(i,e)}onResize(e){var i,n;(n=(i=this.externalEventHandlers).resize)===null||n===void 0||n.call(i,e)}}const ps=460,bs=280;class ws{isSupported(){return"documentPictureInPicture"in window}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}request(){var e,i;return gt(this,void 0,void 0,function*(){!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot||(this.pipWindow=yield documentPictureInPicture.requestWindow({width:ps,height:bs,copyStyleSheets:!0}),(e=this.pipWindow)===null||e===void 0||e.document.body.append(this.playerDomElement),(i=this.pipWindow)===null||i===void 0||i.addEventListener("unload",n=>{!this.playerDomElement||!this.playerParentShadowRoot||this.playerParentShadowRoot.append(this.playerDomElement)}))})}remove(){return gt(this,void 0,void 0,function*(){return new Promise(e=>{documentPictureInPicture.window.close(),e()})})}}var Zt;(function(t){t.AUTO="auto"})(Zt||(Zt={}));var Pe;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed"})(Pe||(Pe={}));var rt;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(rt||(rt={}));var Re;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(Re||(Re={}));function Mi(t){return t instanceof Ml}function _s(t){return t instanceof ws}function ys(t){ke(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 ks(t){let e,i,n,l,o,s;return{c(){e=b("div"),i=b("img"),Ve(i.src,n=t[2])||c(i,"src",n),c(i,"class","icon v-1kcq5gq"),c(i,"alt",""),c(e,"class",l=bt(t[0])+" v-1kcq5gq"),c(e,"role","button"),c(e,"tabindex","0")},m(a,r){M(a,e,r),f(e,i),o||(s=se(e,"click",function(){Fe(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=bt(t[0])+" v-1kcq5gq")&&c(e,"class",l)},d(a){a&&C(e),o=!1,s()}}}function Ps(t){let e,i,n,l,o,s,a;return{c(){e=b("div"),i=b("div"),n=T(),l=b("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=se(e,"click",function(){Fe(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 Vs(t){let e;function i(o,s){return o[3]?Ps:ks}let n=i(t),l=n(t);return{c(){l.c(),e=it()},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:I,o:I,d(o){l.d(o),o&&C(e)}}}function Ss(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:g}=e,{isOneVideoPlaylist:v}=e;const p=De().ui.isMobile;W(t,p,_=>i(3,o=_));function E(_,k){return k?gs:_===Se.PlaybackState.PLAYING?on:Ci}function z(_){return _===Re.PLAYING?on:Ci}return t.$$set=_=>{"isEnded"in _&&i(5,s=_.isEnded),"isAds"in _&&i(6,a=_.isAds),"playbackState"in _&&i(7,r=_.playbackState),"adPlaybackState"in _&&i(8,u=_.adPlaybackState),"className"in _&&i(0,d=_.className),"handlePlayClick"in _&&i(9,m=_.handlePlayClick),"repeatPlaylist"in _&&i(10,g=_.repeatPlaylist),"isOneVideoPlaylist"in _&&i(11,v=_.isOneVideoPlaylist)},t.$$.update=()=>{t.$$.dirty&480&&i(2,n=a?z(u):E(r,s)),t.$$.dirty&3680&&i(1,l=!a&&s&&!v?g:m)},[d,l,n,o,p,s,a,r,u,m,g,v]}class zi extends be{constructor(e){super(),pe(this,e,Ss,Vs,ve,{isEnded:5,isAds:6,playbackState:7,adPlaybackState:8,className:0,handlePlayClick:9,repeatPlaylist:10,isOneVideoPlaylist:11},ys)}}var El="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 As(t){ke(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 Cs(t){let e,i,n,l,o;return{c(){e=b("div"),i=b("img"),c(i,"class","icon v-1tmb7ku"),Ve(i.src,n=El)||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=se(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 Ms(t){let e,i,n,l,o;return{c(){e=b("div"),i=b("img"),c(i,"class","icon-mobile v-1tmb7ku"),Ve(i.src,n=El)||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=se(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 Es(t){let e;function i(o,s){return o[2]?Ms:Cs}let n=i(t),l=n(t);return{c(){l.c(),e=it()},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:I,o:I,d(o){l.d(o),o&&C(e)}}}function Ts(t,e,i){let n,{disabled:l=!1}=e,{type:o}=e;const a=De().ui.isMobile;W(t,a,d=>i(2,n=d));function r(d){lt.call(this,t,d)}function u(d){lt.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 fi extends be{constructor(e){super(),pe(this,e,Ts,Es,ve,{disabled:0,type:1},As)}}var Tl="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 zs(t){ke(t,"v-j4644b",".no-hover.v-j4644b{pointer-events:none}.icon.v-j4644b{display:block;width:24px;height:24px}")}function Ns(t){let e,i;return{c(){e=b("img"),Ve(e.src,i=Tl)||c(e,"src",i),c(e,"class","icon v-j4644b"),c(e,"alt","")},m(n,l){M(n,e,l)},p:I,d(n){n&&C(e)}}}function Ls(t){let e,i,n,l,o;return{c(){e=b("a"),i=b("img"),Ve(i.src,n=Tl)||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=se(e,"click",t[2]),l=!0)},p:I,d(s){s&&C(e),l=!1,o()}}}function Is(t){let e,i;function n(s,a){return s[1]?Ls:Ns}let l=n(t),o=l(t);return{c(){e=b("div"),o.c(),c(e,"class",i=bt(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=bt(s[0])+" v-j4644b")&&c(e,"class",i),a&3&&A(e,"no-hover",!s[1])},i:I,o:I,d(s){s&&C(e),o.d()}}}function Bs(t,e,i){let{className:n=""}=e,{logoClickable:l=!1}=e;function o(s){lt.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 zl extends be{constructor(e){super(),pe(this,e,Bs,Is,ve,{className:0,logoClickable:1},zs)}}function Rs(t){ke(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 sn(t){let e,i,n,l;function o(r,u){if(r[1]===Se.ChromecastState.AVAILABLE)return Hs;if(r[1]===Se.ChromecastState.CONNECTED)return qs;if(r[1]===Se.ChromecastState.CONNECTING)return Fs}let s=o(t),a=s&&s(t);return{c(){e=b("div"),a&&a.c(),c(e,"class",i=bt(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=se(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=bt(r[0])+" v-1gdbwrb")&&c(e,"class",i)},d(r){r&&C(e),a&&a.d(),n=!1,l()}}}function Fs(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 qs(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 Hs(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 Ds(t){let e,i=t[1]!==Se.ChromecastState.NOT_AVAILABLE&&sn(t);return{c(){i&&i.c(),e=it()},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=sn(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:I,o:I,d(n){i&&i.d(n),n&&C(e)}}}function js(t,e,i){let n,{className:l=""}=e;const s=De().state.chromecastState$;W(t,s,u=>i(3,n=u));let a;function r(u){lt.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 Os extends be{constructor(e){super(),pe(this,e,js,Ds,ve,{className:0},Rs)}}var Us="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",Qs="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 Ws(t){ke(t,"v-rwtbzf",".icon.v-rwtbzf{display:block;width:42px;height:20px}")}function Ys(t){let e,i,n,l,o;return{c(){e=b("div"),i=b("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=se(e,"click",t[2]),l=!0)},p(s,[a]){a&1&&!Ve(i.src,n=s[0])&&c(i,"src",n)},i:I,o:I,d(s){s&&C(e),l=!1,o()}}}function Ks(t,e,i){let{isActiveLive:n=!1}=e,l="";function o(s){lt.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?Qs:Us)},[l,n,o]}class Xs extends be{constructor(e){super(),pe(this,e,Ks,Ys,ve,{isActiveLive:1},Ws)}}var an="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",rn="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 Gs(t){ke(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 cn(t){let e;return{c(){e=b("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 Js(t){let e,i,n,l,o,s,a=t[0]&&cn();return{c(){e=b("div"),i=b("img"),l=T(),a&&a.c(),Ve(i.src,n=t[0]?rn:an)||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=se(e,"click",t[1]),o=!0)},p(r,[u]){u&1&&!Ve(i.src,n=r[0]?rn:an)&&c(i,"src",n),r[0]?a||(a=cn(),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&A(e,"expanded",r[0])},i:I,o:I,d(r){r&&C(e),a&&a.d(),o=!1,s()}}}function xs(t,e,i){let{expanded:n=!1}=e;function l(o){lt.call(this,t,o)}return t.$$set=o=>{"expanded"in o&&i(0,n=o.expanded)},[n,l]}class Nl extends be{constructor(e){super(),pe(this,e,xs,Js,ve,{expanded:0},Gs)}}function Zs(t){ke(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 $s(t){let e,i,n,l,o;return{c(){e=b("div"),i=b("div"),n=b("div"),l=me(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&&Me(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:I,o:I,d(s){s&&C(e)}}}function ea(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 ta extends be{constructor(e){super(),pe(this,e,ea,$s,ve,{content:0,active:1,translateXPx:2,translateYPx:3},Zs)}}function un(t){let e,i;return e=new ta({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ia(t){let e,i,n,l=(!t[8]||t[8]&&t[7])&&un(t);return i=new Ti({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&&h(l,1)):(l=un(o),l.c(),h(l,1),l.m(e.parentNode,e)):l&&(re(),V(l,1,1,()=>{l=null}),ce());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||(h(l),h(i.$$.fragment,o),n=!0)},o(o){V(l),V(i.$$.fragment,o),n=!1},d(o){l&&l.d(o),o&&C(e),ee(i,o)}}}function na(t,e,i){let n,l,o,s,a,r;const u=De(),d=u.state.bufferedProgress$;W(t,d,O=>i(10,r=O));const m=u.state.positionWithScrubbing$;W(t,m,O=>i(23,o=O));const g=u.state.duration$;W(t,g,O=>i(0,l=O));const v=u.state.isLive$;W(t,v,O=>i(7,n=O));const w=u.state.isActiveLive$;W(t,w,O=>i(9,a=O));const p=u.ui.isMobile;W(t,p,O=>i(8,s=O));let E,z,_,k=!1,B="",N=0;function R(O){u.actions.internal.startScrubbing(O)}function y(O){u.actions.internal.progressScrubbing(O)}function D(O){u.actions.internal.completeScrubbing(O)}function F(O,G){x(O,G),i(4,k=!0)}function L(O,G){x(O,G)}function X(){i(4,k=!1)}function x(O,G){i(6,N=G),i(5,B=j(O))}function j(O){const G=pt((n?1-O:O)*l);return n?`-${G}`:G}return t.$$.update=()=>{t.$$.dirty&1&&i(1,E=pt(l)),t.$$.dirty&8388608&&i(2,z=pt(o)),t.$$.dirty&8388609&&i(3,_=o/l)},[l,E,z,_,k,B,N,n,s,a,r,d,m,g,v,w,p,R,y,D,F,L,X,o]}let la=class extends be{constructor(e){super(),pe(this,e,na,ia,ve,{})}};function oa(t){let e,i;return e=new Ti({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function sa(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const a=De().ui.isMobile;W(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=pt(o)),t.$$.dirty&64&&i(2,u=pt(l)),t.$$.dirty&65&&i(3,d=l/o)},[o,r,u,d,n,a,l]}class Ll extends be{constructor(e){super(),pe(this,e,sa,oa,ve,{position:6,duration:0})}}function aa(t){ke(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 ra(t){let e;return{c(){e=b("div"),c(e,"class","timeline-stub v-17msmwz")},m(i,n){M(i,e,n)},p:I,i:I,o:I,d(i){i&&C(e)}}}function ca(t){let e,i,n,l,o;const s=[da,ua],a=[];function r(u,d){return u[0]?0:1}return i=r(t),n=a[i]=s[i](t),{c(){e=b("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):(re(),V(a[m],1,1,()=>{a[m]=null}),ce(),n=a[i],n?n.p(u,d):(n=a[i]=s[i](u),n.c()),h(n,1),n.m(e,null)),(!o||d&2&&l!==(l="timeline "+u[1]+" v-17msmwz"))&&c(e,"class",l)},i(u){o||(h(n),o=!0)},o(u){V(n),o=!1},d(u){u&&C(e),a[i].d()}}}function ua(t){let e,i;return e=new la({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function da(t){let e,i;return e=new Ll({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function fa(t){let e,i,n,l;const o=[ca,ra],s=[];function a(r,u){return r[2]?0:1}return e=a(t),i=s[e]=o[e](t),{c(){i.c(),n=it()},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):(re(),V(s[d],1,1,()=>{s[d]=null}),ce(),i=s[e],i?i.p(r,u):(i=s[e]=o[e](r),i.c()),h(i,1),i.m(n.parentNode,n))},i(r){l||(h(i),l=!0)},o(r){V(i),l=!1},d(r){s[e].d(r),r&&C(n)}}}function ma(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$;W(t,m,p=>i(10,n=p));const g=d.ads.duration;W(t,g,p=>i(4,o=p));const v=d.ads.position;W(t,v,p=>i(3,l=p));let w;return t.$$set=p=>{"isAds"in p&&i(0,s=p.isAds),"canRewindLive"in p&&i(8,a=p.canRewindLive),"isHidden"in p&&i(9,r=p.isHidden),"className"in p&&i(1,u=p.className)},t.$$.update=()=>{t.$$.dirty&1793&&i(2,w=!r&&(!n||n&&a||s))},[s,u,w,l,o,m,g,v,a,r,n]}class Il extends be{constructor(e){super(),pe(this,e,ma,fa,ve,{isAds:0,canRewindLive:8,isHidden:9,className:1},aa)}}function va(t){ke(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
8
  180deg,
9
9
  rgba(0, 0, 0, 0) 0%,
10
10
  rgba(0, 0, 0, 0.02) 19%,
@@ -13,10 +13,10 @@
13
13
  rgba(0, 0, 0, 0.60) 100%
14
14
  );transition:transform var(--videoplayer-controls-transition-duration)
15
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 dn(t){let e,i,n,l,o,s,a,r,u,d,m,h,v,w=t[28]&&fn(t);s=new Al({props:{className:"mobile-top-right-button"}});let p=!t[6]&&mn(t),E=t[7]&&vn(t);m=new Ti({props:{playbackState:t[31],adPlaybackState:t[32],isAds:t[3],handlePlayClick:t[41],repeatPlaylist:t[14],isEnded:t[33],isOneVideoPlaylist:t[10]}});let T=t[7]&&gn(t);return{c(){e=b("div"),i=z(),n=b("div"),w&&w.c(),l=z(),o=b("div"),te(s.$$.fragment),a=z(),p&&p.c(),r=z(),u=b("div"),E&&E.c(),d=z(),te(m.$$.fragment),h=z(),T&&T.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(_,k){M(_,e,k),M(_,i,k),M(_,n,k),w&&w.m(n,null),M(_,l,k),M(_,o,k),$(s,o,null),f(o,a),p&&p.m(o,null),M(_,r,k),M(_,u,k),E&&E.m(u,null),f(u,d),$(m,u,null),f(u,h),T&&T.m(u,null),v=!0},p(_,k){(!v||k[0]&67108864)&&A(e,"hidden",!_[26]),_[28]?w?(w.p(_,k),k[0]&268435456&&g(w,1)):(w=fn(_),w.c(),g(w,1),w.m(n,null)):w&&(ae(),V(w,1,1,()=>{w=null}),re()),(!v||k[0]&4)&&A(n,"hidden",!_[2]),(!v||k[0]&134479872)&&A(n,"wrapper-top-fullscreen-mobile",_[27]&&_[18]),_[6]?p&&(ae(),V(p,1,1,()=>{p=null}),re()):p?(p.p(_,k),k[0]&64&&g(p,1)):(p=mn(_),p.c(),g(p,1),p.m(o,null)),(!v||k[0]&4)&&A(o,"hidden",!_[2]),(!v||k[0]&134479872)&&A(o,"wrapper-top-fullscreen-mobile",_[27]&&_[18]),_[7]?E?(E.p(_,k),k[0]&128&&g(E,1)):(E=vn(_),E.c(),g(E,1),E.m(u,d)):E&&(ae(),V(E,1,1,()=>{E=null}),re());const B={};k[1]&1&&(B.playbackState=_[31]),k[1]&2&&(B.adPlaybackState=_[32]),k[0]&8&&(B.isAds=_[3]),k[0]&16384&&(B.repeatPlaylist=_[14]),k[1]&4&&(B.isEnded=_[33]),k[0]&1024&&(B.isOneVideoPlaylist=_[10]),m.$set(B),_[7]?T?(T.p(_,k),k[0]&128&&g(T,1)):(T=gn(_),T.c(),g(T,1),T.m(u,null)):T&&(ae(),V(T,1,1,()=>{T=null}),re()),(!v||k[0]&1073741828)&&A(u,"hidden",!_[2]||_[30])},i(_){v||(g(w),g(s.$$.fragment,_),g(p),g(E),g(m.$$.fragment,_),g(T),v=!0)},o(_){V(w),V(s.$$.fragment,_),V(p),V(E),V(m.$$.fragment,_),V(T),v=!1},d(_){_&&C(e),_&&C(i),_&&C(n),w&&w.d(),_&&C(l),_&&C(o),ee(s),p&&p.d(),_&&C(r),_&&C(u),E&&E.d(),ee(m),T&&T.d()}}}function fn(t){let e,i;return e=new Tl({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function mn(t){let e,i;return e=new zl({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function vn(t){let e,i;return e=new fi({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Fe(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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function gn(t){let e,i;return e=new fi({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Fe(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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function hn(t){let e,i,n,l,o,s=t[28]&&pn(t),a=t[32]===Re.PAUSED&&bn(t);return l=new Nl({props:{position:t[34],duration:t[35]}}),{c(){s&&s.c(),e=z(),a&&a.c(),i=z(),n=b("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&&g(s,1)):(s=pn(r),s.c(),g(s,1),s.m(e.parentNode,e)):s&&(ae(),V(s,1,1,()=>{s=null}),re()),r[32]===Re.PAUSED?a?(a.p(r,u),u[1]&2&&g(a,1)):(a=bn(r),a.c(),g(a,1),a.m(i.parentNode,i)):a&&(ae(),V(a,1,1,()=>{a=null}),re());const d={};u[1]&8&&(d.position=r[34]),u[1]&16&&(d.duration=r[35]),l.$set(d)},i(r){o||(g(s),g(a),g(l.$$.fragment,r),o=!0)},o(r){V(s),V(a),V(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 pn(t){let e,i,n;return i=new Tl({props:{expanded:!1}}),i.$on("click",t[62]),{c(){e=b("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:I,i(l){n||(g(i.$$.fragment,l),n=!0)},o(l){V(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function bn(t){let e,i,n;return i=new Ti({props:{playbackState:t[31],adPlaybackState:t[32],isAds:!0,handlePlayClick:t[41],repeatPlaylist:I,isEnded:!1,isOneVideoPlaylist:!1}}),{c(){e=b("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||(g(i.$$.fragment,l),n=!0)},o(l){V(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function wn(t){let e,i,n,l,o,s=t[7]&&!t[3]&&_n(t);i=new at({props:{className:"controls-element",$$slots:{default:[ha]},$$scope:{ctx:t}}});let a=t[7]&&!t[3]&&yn(t);return{c(){s&&s.c(),e=z(),te(i.$$.fragment),n=z(),a&&a.c(),l=et()},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&&g(s,1)):(s=_n(r),s.c(),g(s,1),s.m(e.parentNode,e)):s&&(ae(),V(s,1,1,()=>{s=null}),re());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&&g(a,1)):(a=yn(r),a.c(),g(a,1),a.m(l.parentNode,l)):a&&(ae(),V(a,1,1,()=>{a=null}),re())},i(r){o||(g(s),g(i.$$.fragment,r),g(a),o=!0)},o(r){V(s),V(i.$$.fragment,r),V(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 _n(t){let e,i;return e=new at({props:{className:"controls-element",disabled:!t[9],$$slots:{default:[ga]},$$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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ga(t){let e,i;return e=new fi({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Fe(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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ha(t){let e,i;return e=new Ti({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function yn(t){let e,i;return e=new at({props:{className:"controls-element",disabled:!t[8],$$slots:{default:[pa]},$$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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function pa(t){let e,i;return e=new fi({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Fe(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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function kn(t){let e,i;return e=new at({props:{className:"controls-element",$$slots:{default:[ba]},$$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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ba(t){let e,i;return e=new Xs({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Pn(t){let e,i;return e=new Ll({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Vn(t){let e,i;return e=new Zo({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Sn(t){let e,i;return e=new Ll({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function An(t){let e,i,n,l;e=new at({props:{className:"controls-element",$$slots:{default:[wa]},$$scope:{ctx:t}}});let o=!t[39]&&!t[3]&&Cn(t);return{c(){te(e.$$.fragment),i=z(),o&&o.c(),n=et()},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&&g(o,1)):(o=Cn(s),o.c(),g(o,1),o.m(n.parentNode,n)):o&&(ae(),V(o,1,1,()=>{o=null}),re())},i(s){l||(g(e.$$.fragment,s),g(o),l=!0)},o(s){V(e.$$.fragment,s),V(o),l=!1},d(s){ee(e,s),s&&C(i),o&&o.d(s),s&&C(n)}}}function wa(t){let e,i;return e=new ss({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Cn(t){let e,i,n,l,o;i=new Sl({props:{supportLink:t[11]}});let s=t[22]&&Mn(t);return{c(){e=b("div"),te(i.$$.fragment),n=z(),s&&s.c(),l=et(),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&&g(s,1):(s=Mn(a),s.c(),g(s,1),s.m(l.parentNode,l)):s&&(ae(),V(s,1,1,()=>{s=null}),re())},i(a){o||(g(i.$$.fragment,a),g(s),o=!0)},o(a){V(i.$$.fragment,a),V(s),o=!1},d(a){a&&C(e),ee(i),a&&C(n),s&&s.d(a),a&&C(l)}}}function Mn(t){let e,i;return e=new at({props:{className:"controls-element",$$slots:{default:[_a]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function _a(t){let e,i;return e=new Al({props:{className:"ui-settings"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function En(t){let e,i;return e=new at({props:{className:"controls-element",$$slots:{default:[ya]},$$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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ya(t){let e,i;return e=new gs({}),e.$on("click",function(){Fe(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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function zn(t){let e,i,n,l=t[21]&&Tn(t),o=!t[6]&&Nn(t);return{c(){l&&l.c(),e=z(),o&&o.c(),i=et()},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&&g(l,1)):(l=Tn(s),l.c(),g(l,1),l.m(e.parentNode,e)):l&&(ae(),V(l,1,1,()=>{l=null}),re()),s[6]?o&&(ae(),V(o,1,1,()=>{o=null}),re()):o?(o.p(s,a),a[0]&64&&g(o,1)):(o=Nn(s),o.c(),g(o,1),o.m(i.parentNode,i))},i(s){n||(g(l),g(o),n=!0)},o(s){V(l),V(o),n=!1},d(s){l&&l.d(s),s&&C(e),o&&o.d(s),s&&C(i)}}}function Tn(t){let e,i;return e=new at({props:{className:"controls-element",$$slots:{default:[ka]},$$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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ka(t){let e,i;return e=new Os({props:{className:"ui-chromecast"}}),e.$on("click",t[60]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Nn(t){let e,i;return e=new at({props:{className:"controls-element",disabled:!t[5],$$slots:{default:[Pa]},$$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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Pa(t){let e,i;return e=new zl({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Ln(t){let e,i,n;return i=new Sl({props:{supportLink:t[11]}}),{c(){e=b("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||(g(i.$$.fragment,l),n=!0)},o(l){V(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function Va(t){let e,i,n,l,o,s,a,r,u,d,m,h,v,w,p=t[18]&&!t[3]&&dn(t),E=t[18]&&t[3]&&t[32]!==Re.INACTIVE&&hn(t),T=!t[18]&&wn(t),_=!t[3]&&t[17]&&kn(t),k=!t[18]&&Pn(t),B=t[25]&&Vn(t),N=t[18]&&Sn(t),R=!t[18]&&An(t),y=t[24]&&En(t),D=!t[18]&&zn(t),F=t[18]&&t[16]&&Ln(t);return{c(){p&&p.c(),e=z(),E&&E.c(),i=z(),n=b("div"),l=b("div"),T&&T.c(),o=z(),_&&_.c(),s=z(),k&&k.c(),a=z(),B&&B.c(),r=z(),N&&N.c(),u=z(),R&&R.c(),d=z(),y&&y.c(),m=z(),D&&D.c(),h=z(),F&&F.c(),v=et(),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(L,K){p&&p.m(L,K),M(L,e,K),E&&E.m(L,K),M(L,i,K),M(L,n,K),f(n,l),T&&T.m(l,null),f(l,o),_&&_.m(l,null),f(l,s),k&&k.m(l,null),f(l,a),B&&B.m(l,null),f(l,r),N&&N.m(l,null),f(l,u),R&&R.m(l,null),f(l,d),y&&y.m(l,null),f(l,m),D&&D.m(l,null),t[64](n),M(L,h,K),F&&F.m(L,K),M(L,v,K),w=!0},p(L,K){L[18]&&!L[3]?p?(p.p(L,K),K[0]&262152&&g(p,1)):(p=dn(L),p.c(),g(p,1),p.m(e.parentNode,e)):p&&(ae(),V(p,1,1,()=>{p=null}),re()),L[18]&&L[3]&&L[32]!==Re.INACTIVE?E?(E.p(L,K),K[0]&262152|K[1]&2&&g(E,1)):(E=hn(L),E.c(),g(E,1),E.m(i.parentNode,i)):E&&(ae(),V(E,1,1,()=>{E=null}),re()),L[18]?T&&(ae(),V(T,1,1,()=>{T=null}),re()):T?(T.p(L,K),K[0]&262144&&g(T,1)):(T=wn(L),T.c(),g(T,1),T.m(l,o)),!L[3]&&L[17]?_?(_.p(L,K),K[0]&131080&&g(_,1)):(_=kn(L),_.c(),g(_,1),_.m(l,s)):_&&(ae(),V(_,1,1,()=>{_=null}),re()),L[18]?k&&(ae(),V(k,1,1,()=>{k=null}),re()):k?(k.p(L,K),K[0]&262144&&g(k,1)):(k=Pn(L),k.c(),g(k,1),k.m(l,a)),L[25]?B?(B.p(L,K),K[0]&33554432&&g(B,1)):(B=Vn(L),B.c(),g(B,1),B.m(l,r)):B&&(ae(),V(B,1,1,()=>{B=null}),re()),L[18]?N?(N.p(L,K),K[0]&262144&&g(N,1)):(N=Sn(L),N.c(),g(N,1),N.m(l,u)):N&&(ae(),V(N,1,1,()=>{N=null}),re()),L[18]?R&&(ae(),V(R,1,1,()=>{R=null}),re()):R?(R.p(L,K),K[0]&262144&&g(R,1)):(R=An(L),R.c(),g(R,1),R.m(l,d)),L[24]?y?(y.p(L,K),K[0]&16777216&&g(y,1)):(y=En(L),y.c(),g(y,1),y.m(l,m)):y&&(ae(),V(y,1,1,()=>{y=null}),re()),L[18]?D&&(ae(),V(D,1,1,()=>{D=null}),re()):D?(D.p(L,K),K[0]&262144&&g(D,1)):(D=zn(L),D.c(),g(D,1),D.m(l,null)),(!w||K[0]&4)&&A(l,"controls-hidden",!L[2]),(!w||K[0]&134479872)&&A(l,"controls-fullscreen-mobile",L[27]&&L[18]),(!w||K[0]&2)&&A(n,"hidden",L[1]),(!w||K[0]&4)&&A(n,"controls-hidden",!L[2]),(!w||K[0]&134479872)&&A(n,"wrapper-bottom-fullscreen-desktop",L[27]&&!L[18]),L[18]&&L[16]?F?(F.p(L,K),K[0]&327680&&g(F,1)):(F=Ln(L),F.c(),g(F,1),F.m(v.parentNode,v)):F&&(ae(),V(F,1,1,()=>{F=null}),re())},i(L){w||(g(p),g(E),g(T),g(_),g(k),g(B),g(N),g(R),g(y),g(D),g(F),w=!0)},o(L){V(p),V(E),V(T),V(_),V(k),V(B),V(N),V(R),V(y),V(D),V(F),w=!1},d(L){p&&p.d(L),L&&C(e),E&&E.d(L),L&&C(i),L&&C(n),T&&T.d(),_&&_.d(),k&&k.d(),B&&B.d(),N&&N.d(),R&&R.d(),y&&y.d(),D&&D.d(),t[64](null),L&&C(h),F&&F.d(L),L&&C(v)}}}function Sa(t,e,i){let n,l,o,s,a,r,u,d,m,h,v,w,p,E,T,_,k,{hidden:B}=e,{showControls:N}=e,{controlsElementRef:R=void 0}=e,{isAds:y=!1}=e,{canRewindLive:D}=e,{logoClickable:F}=e,{logoHidden:L}=e,{showNextPrevButtons:K}=e,{nextButtonActive:J}=e,{prevButtonActive:j}=e,{isOneVideoPlaylist:O=!1}=e,{supportLink:X}=e,{playNextVideo:ue}=e,{playPrevVideo:G}=e,{repeatPlaylist:q}=e,{toggleFullscreen:ie}=e;const de=De(),Ae=de.actions.internal.toggleMuted,Oe=de.actions.internal.togglePlay,Qe=de.actions.internal.pause,le=de.state.duration$;W(t,le,Y=>i(38,_=Y));const ge=de.state.positionWithScrubbing$;W(t,ge,Y=>i(37,T=Y));const fe=de.state.playbackState$;W(t,fe,Y=>i(31,m=Y));const ce=de.state.chromecastConnected$;W(t,ce,Y=>i(39,k=Y));const we=de.state.isEnded$;W(t,we,Y=>i(33,v=Y));const he=de.state.isLive$;W(t,he,Y=>i(17,o=Y));const _e=de.state.isActiveLive$;W(t,_e,Y=>i(36,E=Y));const U=de.ui.scrubbingInProgress;W(t,U,Y=>i(30,d=Y));const H=de.ui.isMobile;W(t,H,Y=>i(18,s=Y));const Q=de.ui.mobileUnmuteButtonExpanded;W(t,Q,Y=>i(29,u=Y));const Z=de.ui.mobileUnmuteButtonVisible;W(t,Z,Y=>i(28,r=Y));const Ee=de.ui.settingsMenuVisible;W(t,Ee,Y=>i(16,n=Y));const Je=de.ads.duration;W(t,Je,Y=>i(35,p=Y));const zt=de.ads.position;W(t,zt,Y=>i(34,w=Y));const nt=de.ads.playbackState;W(t,nt,Y=>i(32,h=Y));const bt=de.ui.isFullscreen;W(t,bt,Y=>i(27,a=Y));const rt=de.ui.playerSize;W(t,rt,Y=>i(63,l=Y));const ct=()=>de.actions.internal.toggleChromecast(),Tt=()=>de.actions.internal.switchToActiveLive();let wt,lt,We,ot,_t,ut,Ze,dt;function Nt(){Z.set(!1),Ae()}function yt(Y){Ge[Y?"unshift":"push"](()=>{R=Y,i(0,R)})}return t.$$set=Y=>{"hidden"in Y&&i(1,B=Y.hidden),"showControls"in Y&&i(2,N=Y.showControls),"controlsElementRef"in Y&&i(0,R=Y.controlsElementRef),"isAds"in Y&&i(3,y=Y.isAds),"canRewindLive"in Y&&i(4,D=Y.canRewindLive),"logoClickable"in Y&&i(5,F=Y.logoClickable),"logoHidden"in Y&&i(6,L=Y.logoHidden),"showNextPrevButtons"in Y&&i(7,K=Y.showNextPrevButtons),"nextButtonActive"in Y&&i(8,J=Y.nextButtonActive),"prevButtonActive"in Y&&i(9,j=Y.prevButtonActive),"isOneVideoPlaylist"in Y&&i(10,O=Y.isOneVideoPlaylist),"supportLink"in Y&&i(11,X=Y.supportLink),"playNextVideo"in Y&&i(12,ue=Y.playNextVideo),"playPrevVideo"in Y&&i(13,G=Y.playPrevVideo),"repeatPlaylist"in Y&&i(14,q=Y.repeatPlaylist),"toggleFullscreen"in Y&&i(15,ie=Y.toggleFullscreen)},t.$$.update=()=>{t.$$.dirty[2]&2&&i(19,wt=l.width<600),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(20,lt=s||l.width>550),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(21,We=s||l.width>450),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(22,ot=s||l.width>380),t.$$.dirty[0]&262144|t.$$.dirty[2]&2&&i(23,_t=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,Ze=(!o||y)&&l.width>200),t.$$.dirty[0]&65540&&i(26,dt=n||N)},[R,B,N,y,D,F,L,K,J,j,O,X,ue,G,q,ie,n,o,s,wt,lt,We,ot,_t,ut,Ze,dt,a,r,u,d,m,h,v,w,p,E,T,_,k,Ae,Oe,Qe,le,ge,fe,ce,we,he,_e,U,H,Q,Z,Ee,Je,zt,nt,bt,rt,ct,Tt,Nt,l,yt]}class Aa extends be{constructor(e){super(),pe(this,e,Sa,Va,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},va,[-1,-1,-1])}}function Ca(t){ye(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 Ma(t){let e,i,n,l,o,s,a,r,u;return{c(){e=b("div"),i=b("div"),n=b("div"),l=z(),o=b("img"),c(n,"class","playButtonBackground v-y9pij4"),Ve(o.src,s=Ci)||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=oe(e,"click",function(){Fe(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:I,o:I,d(d){d&&C(e),r=!1,u()}}}function Ea(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 za extends be{constructor(e){super(),pe(this,e,Ea,Ma,ve,{thumbUrl:0,hidden:1,startVideo:2},Ca)}}function Ta(t){ye(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 Na(t){let e;return{c(){e=b("div"),e.innerHTML=`<div class="dot v-8nkw5s"></div>
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 dn(t){let e,i,n,l,o,s,a,r,u,d,m,g,v,w=t[28]&&fn(t);s=new Cl({props:{className:"mobile-top-right-button"}});let p=!t[6]&&mn(t),E=t[7]&&vn(t);m=new zi({props:{playbackState:t[31],adPlaybackState:t[32],isAds:t[3],handlePlayClick:t[41],repeatPlaylist:t[14],isEnded:t[33],isOneVideoPlaylist:t[10]}});let z=t[7]&&hn(t);return{c(){e=b("div"),i=T(),n=b("div"),w&&w.c(),l=T(),o=b("div"),te(s.$$.fragment),a=T(),p&&p.c(),r=T(),u=b("div"),E&&E.c(),d=T(),te(m.$$.fragment),g=T(),z&&z.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(_,k){M(_,e,k),M(_,i,k),M(_,n,k),w&&w.m(n,null),M(_,l,k),M(_,o,k),$(s,o,null),f(o,a),p&&p.m(o,null),M(_,r,k),M(_,u,k),E&&E.m(u,null),f(u,d),$(m,u,null),f(u,g),z&&z.m(u,null),v=!0},p(_,k){(!v||k[0]&67108864)&&A(e,"hidden",!_[26]),_[28]?w?(w.p(_,k),k[0]&268435456&&h(w,1)):(w=fn(_),w.c(),h(w,1),w.m(n,null)):w&&(re(),V(w,1,1,()=>{w=null}),ce()),(!v||k[0]&4)&&A(n,"hidden",!_[2]),(!v||k[0]&134479872)&&A(n,"wrapper-top-fullscreen-mobile",_[27]&&_[18]),_[6]?p&&(re(),V(p,1,1,()=>{p=null}),ce()):p?(p.p(_,k),k[0]&64&&h(p,1)):(p=mn(_),p.c(),h(p,1),p.m(o,null)),(!v||k[0]&4)&&A(o,"hidden",!_[2]),(!v||k[0]&134479872)&&A(o,"wrapper-top-fullscreen-mobile",_[27]&&_[18]),_[7]?E?(E.p(_,k),k[0]&128&&h(E,1)):(E=vn(_),E.c(),h(E,1),E.m(u,d)):E&&(re(),V(E,1,1,()=>{E=null}),ce());const B={};k[1]&1&&(B.playbackState=_[31]),k[1]&2&&(B.adPlaybackState=_[32]),k[0]&8&&(B.isAds=_[3]),k[0]&16384&&(B.repeatPlaylist=_[14]),k[1]&4&&(B.isEnded=_[33]),k[0]&1024&&(B.isOneVideoPlaylist=_[10]),m.$set(B),_[7]?z?(z.p(_,k),k[0]&128&&h(z,1)):(z=hn(_),z.c(),h(z,1),z.m(u,null)):z&&(re(),V(z,1,1,()=>{z=null}),ce()),(!v||k[0]&1073741828)&&A(u,"hidden",!_[2]||_[30])},i(_){v||(h(w),h(s.$$.fragment,_),h(p),h(E),h(m.$$.fragment,_),h(z),v=!0)},o(_){V(w),V(s.$$.fragment,_),V(p),V(E),V(m.$$.fragment,_),V(z),v=!1},d(_){_&&C(e),_&&C(i),_&&C(n),w&&w.d(),_&&C(l),_&&C(o),ee(s),p&&p.d(),_&&C(r),_&&C(u),E&&E.d(),ee(m),z&&z.d()}}}function fn(t){let e,i;return e=new Nl({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function mn(t){let e,i;return e=new zl({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function vn(t){let e,i;return e=new fi({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Fe(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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function hn(t){let e,i;return e=new fi({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Fe(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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function gn(t){let e,i,n,l,o,s=t[28]&&pn(t),a=t[32]===Re.PAUSED&&bn(t);return l=new Ll({props:{position:t[34],duration:t[35]}}),{c(){s&&s.c(),e=T(),a&&a.c(),i=T(),n=b("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&&h(s,1)):(s=pn(r),s.c(),h(s,1),s.m(e.parentNode,e)):s&&(re(),V(s,1,1,()=>{s=null}),ce()),r[32]===Re.PAUSED?a?(a.p(r,u),u[1]&2&&h(a,1)):(a=bn(r),a.c(),h(a,1),a.m(i.parentNode,i)):a&&(re(),V(a,1,1,()=>{a=null}),ce());const d={};u[1]&8&&(d.position=r[34]),u[1]&16&&(d.duration=r[35]),l.$set(d)},i(r){o||(h(s),h(a),h(l.$$.fragment,r),o=!0)},o(r){V(s),V(a),V(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 pn(t){let e,i,n;return i=new Nl({props:{expanded:!1}}),i.$on("click",t[62]),{c(){e=b("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:I,i(l){n||(h(i.$$.fragment,l),n=!0)},o(l){V(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function bn(t){let e,i,n;return i=new zi({props:{playbackState:t[31],adPlaybackState:t[32],isAds:!0,handlePlayClick:t[41],repeatPlaylist:I,isEnded:!1,isOneVideoPlaylist:!1}}),{c(){e=b("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||(h(i.$$.fragment,l),n=!0)},o(l){V(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function wn(t){let e,i,n,l,o,s=t[7]&&!t[3]&&_n(t);i=new ct({props:{className:"controls-element",$$slots:{default:[ga]},$$scope:{ctx:t}}});let a=t[7]&&!t[3]&&yn(t);return{c(){s&&s.c(),e=T(),te(i.$$.fragment),n=T(),a&&a.c(),l=it()},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&&h(s,1)):(s=_n(r),s.c(),h(s,1),s.m(e.parentNode,e)):s&&(re(),V(s,1,1,()=>{s=null}),ce());const d={};u[0]&17416|u[1]&7|u[2]&32&&(d.$$scope={dirty:u,ctx:r}),i.$set(d),r[7]&&!r[3]?a?(a.p(r,u),u[0]&136&&h(a,1)):(a=yn(r),a.c(),h(a,1),a.m(l.parentNode,l)):a&&(re(),V(a,1,1,()=>{a=null}),ce())},i(r){o||(h(s),h(i.$$.fragment,r),h(a),o=!0)},o(r){V(s),V(i.$$.fragment,r),V(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 _n(t){let e,i;return e=new ct({props:{className:"controls-element",disabled:!t[9],$$slots:{default:[ha]},$$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]&32&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ha(t){let e,i;return e=new fi({props:{type:"prev",disabled:!t[9]}}),e.$on("click",function(){Fe(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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ga(t){let e,i;return e=new zi({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function yn(t){let e,i;return e=new ct({props:{className:"controls-element",disabled:!t[8],$$slots:{default:[pa]},$$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]&32&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function pa(t){let e,i;return e=new fi({props:{type:"next",disabled:!t[8]}}),e.$on("click",function(){Fe(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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function kn(t){let e,i;return e=new ct({props:{className:"controls-element",$$slots:{default:[ba]},$$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]&32&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ba(t){let e,i;return e=new Xs({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Pn(t){let e,i;return e=new Il({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Vn(t){let e,i;return e=new Zo({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Sn(t){let e,i;return e=new Il({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function An(t){let e,i,n,l;e=new ct({props:{className:"controls-element",$$slots:{default:[wa]},$$scope:{ctx:t}}});let o=!t[39]&&!t[3]&&Cn(t);return{c(){te(e.$$.fragment),i=T(),o&&o.c(),n=it()},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]&32&&(r.$$scope={dirty:a,ctx:s}),e.$set(r),!s[39]&&!s[3]?o?(o.p(s,a),a[0]&8|a[1]&256&&h(o,1)):(o=Cn(s),o.c(),h(o,1),o.m(n.parentNode,n)):o&&(re(),V(o,1,1,()=>{o=null}),ce())},i(s){l||(h(e.$$.fragment,s),h(o),l=!0)},o(s){V(e.$$.fragment,s),V(o),l=!1},d(s){ee(e,s),s&&C(i),o&&o.d(s),s&&C(n)}}}function wa(t){let e,i;return e=new ss({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Cn(t){let e,i,n,l,o;i=new Al({props:{supportLink:t[11]}});let s=t[22]&&Mn(t);return{c(){e=b("div"),te(i.$$.fragment),n=T(),s&&s.c(),l=it(),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&&h(s,1):(s=Mn(a),s.c(),h(s,1),s.m(l.parentNode,l)):s&&(re(),V(s,1,1,()=>{s=null}),ce())},i(a){o||(h(i.$$.fragment,a),h(s),o=!0)},o(a){V(i.$$.fragment,a),V(s),o=!1},d(a){a&&C(e),ee(i),a&&C(n),s&&s.d(a),a&&C(l)}}}function Mn(t){let e,i;return e=new ct({props:{className:"controls-element",$$slots:{default:[_a]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function _a(t){let e,i;return e=new Cl({props:{className:"ui-settings"}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function En(t){let e,i;return e=new ct({props:{className:"controls-element",$$slots:{default:[ya]},$$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]&32&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ya(t){let e,i;return e=new hs({}),e.$on("click",function(){Fe(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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Tn(t){let e,i,n,l=t[21]&&zn(t),o=!t[6]&&Nn(t);return{c(){l&&l.c(),e=T(),o&&o.c(),i=it()},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&&h(l,1)):(l=zn(s),l.c(),h(l,1),l.m(e.parentNode,e)):l&&(re(),V(l,1,1,()=>{l=null}),ce()),s[6]?o&&(re(),V(o,1,1,()=>{o=null}),ce()):o?(o.p(s,a),a[0]&64&&h(o,1)):(o=Nn(s),o.c(),h(o,1),o.m(i.parentNode,i))},i(s){n||(h(l),h(o),n=!0)},o(s){V(l),V(o),n=!1},d(s){l&&l.d(s),s&&C(e),o&&o.d(s),s&&C(i)}}}function zn(t){let e,i;return e=new ct({props:{className:"controls-element",$$slots:{default:[ka]},$$scope:{ctx:t}}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p(n,l){const o={};l[2]&32&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ka(t){let e,i;return e=new Os({props:{className:"ui-chromecast"}}),e.$on("click",t[60]),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Nn(t){let e,i;return e=new ct({props:{className:"controls-element",disabled:!t[5],$$slots:{default:[Pa]},$$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]&32&&(o.$$scope={dirty:l,ctx:n}),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Pa(t){let e,i;return e=new zl({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Ln(t){let e,i,n;return i=new Al({props:{supportLink:t[11]}}),{c(){e=b("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||(h(i.$$.fragment,l),n=!0)},o(l){V(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function Va(t){let e,i,n,l,o,s,a,r,u,d,m,g,v,w,p=t[18]&&!t[3]&&dn(t),E=t[18]&&t[3]&&t[32]!==Re.INACTIVE&&gn(t),z=!t[18]&&wn(t),_=!t[3]&&t[17]&&kn(t),k=!t[18]&&Pn(t),B=t[25]&&Vn(t),N=t[18]&&Sn(t),R=!t[18]&&An(t),y=t[24]&&En(t),D=!t[18]&&Tn(t),F=t[18]&&t[16]&&Ln(t);return{c(){p&&p.c(),e=T(),E&&E.c(),i=T(),n=b("div"),l=b("div"),z&&z.c(),o=T(),_&&_.c(),s=T(),k&&k.c(),a=T(),B&&B.c(),r=T(),N&&N.c(),u=T(),R&&R.c(),d=T(),y&&y.c(),m=T(),D&&D.c(),g=T(),F&&F.c(),v=it(),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(L,X){p&&p.m(L,X),M(L,e,X),E&&E.m(L,X),M(L,i,X),M(L,n,X),f(n,l),z&&z.m(l,null),f(l,o),_&&_.m(l,null),f(l,s),k&&k.m(l,null),f(l,a),B&&B.m(l,null),f(l,r),N&&N.m(l,null),f(l,u),R&&R.m(l,null),f(l,d),y&&y.m(l,null),f(l,m),D&&D.m(l,null),t[65](n),M(L,g,X),F&&F.m(L,X),M(L,v,X),w=!0},p(L,X){L[18]&&!L[3]?p?(p.p(L,X),X[0]&262152&&h(p,1)):(p=dn(L),p.c(),h(p,1),p.m(e.parentNode,e)):p&&(re(),V(p,1,1,()=>{p=null}),ce()),L[18]&&L[3]&&L[32]!==Re.INACTIVE?E?(E.p(L,X),X[0]&262152|X[1]&2&&h(E,1)):(E=gn(L),E.c(),h(E,1),E.m(i.parentNode,i)):E&&(re(),V(E,1,1,()=>{E=null}),ce()),L[18]?z&&(re(),V(z,1,1,()=>{z=null}),ce()):z?(z.p(L,X),X[0]&262144&&h(z,1)):(z=wn(L),z.c(),h(z,1),z.m(l,o)),!L[3]&&L[17]?_?(_.p(L,X),X[0]&131080&&h(_,1)):(_=kn(L),_.c(),h(_,1),_.m(l,s)):_&&(re(),V(_,1,1,()=>{_=null}),ce()),L[18]?k&&(re(),V(k,1,1,()=>{k=null}),ce()):k?(k.p(L,X),X[0]&262144&&h(k,1)):(k=Pn(L),k.c(),h(k,1),k.m(l,a)),L[25]?B?(B.p(L,X),X[0]&33554432&&h(B,1)):(B=Vn(L),B.c(),h(B,1),B.m(l,r)):B&&(re(),V(B,1,1,()=>{B=null}),ce()),L[18]?N?(N.p(L,X),X[0]&262144&&h(N,1)):(N=Sn(L),N.c(),h(N,1),N.m(l,u)):N&&(re(),V(N,1,1,()=>{N=null}),ce()),L[18]?R&&(re(),V(R,1,1,()=>{R=null}),ce()):R?(R.p(L,X),X[0]&262144&&h(R,1)):(R=An(L),R.c(),h(R,1),R.m(l,d)),L[24]?y?(y.p(L,X),X[0]&16777216&&h(y,1)):(y=En(L),y.c(),h(y,1),y.m(l,m)):y&&(re(),V(y,1,1,()=>{y=null}),ce()),L[18]?D&&(re(),V(D,1,1,()=>{D=null}),ce()):D?(D.p(L,X),X[0]&262144&&h(D,1)):(D=Tn(L),D.c(),h(D,1),D.m(l,null)),(!w||X[0]&4)&&A(l,"controls-hidden",!L[2]),(!w||X[0]&134479872)&&A(l,"controls-fullscreen-mobile",L[27]&&L[18]),(!w||X[0]&2)&&A(n,"hidden",L[1]),(!w||X[0]&4)&&A(n,"controls-hidden",!L[2]),(!w||X[0]&134479872)&&A(n,"wrapper-bottom-fullscreen-desktop",L[27]&&!L[18]),L[18]&&L[16]?F?(F.p(L,X),X[0]&327680&&h(F,1)):(F=Ln(L),F.c(),h(F,1),F.m(v.parentNode,v)):F&&(re(),V(F,1,1,()=>{F=null}),ce())},i(L){w||(h(p),h(E),h(z),h(_),h(k),h(B),h(N),h(R),h(y),h(D),h(F),w=!0)},o(L){V(p),V(E),V(z),V(_),V(k),V(B),V(N),V(R),V(y),V(D),V(F),w=!1},d(L){p&&p.d(L),L&&C(e),E&&E.d(L),L&&C(i),L&&C(n),z&&z.d(),_&&_.d(),k&&k.d(),B&&B.d(),N&&N.d(),R&&R.d(),y&&y.d(),D&&D.d(),t[65](null),L&&C(g),F&&F.d(L),L&&C(v)}}}function Sa(t,e,i){let n,l,o,s,a,r,u,d,m,g,v,w,p,E,z,_,k,{hidden:B}=e,{showControls:N}=e,{controlsElementRef:R=void 0}=e,{isAds:y=!1}=e,{canRewindLive:D}=e,{logoClickable:F}=e,{logoHidden:L}=e,{showNextPrevButtons:X}=e,{nextButtonActive:x}=e,{prevButtonActive:j}=e,{isOneVideoPlaylist:O=!1}=e,{supportLink:G}=e,{canShowTimeline:ue}=e,{playNextVideo:K}=e,{playPrevVideo:q}=e,{repeatPlaylist:ie}=e,{toggleFullscreen:Te}=e;const le=De(),je=le.actions.internal.toggleMuted,Qe=le.actions.internal.togglePlay,oe=le.actions.internal.pause,he=le.state.duration$;W(t,he,Y=>i(38,_=Y));const fe=le.state.positionWithScrubbing$;W(t,fe,Y=>i(37,z=Y));const de=le.state.playbackState$;W(t,de,Y=>i(31,m=Y));const _e=le.state.chromecastConnected$;W(t,_e,Y=>i(39,k=Y));const ge=le.state.isEnded$;W(t,ge,Y=>i(33,v=Y));const ye=le.state.isLive$;W(t,ye,Y=>i(17,o=Y));const U=le.state.isActiveLive$;W(t,U,Y=>i(36,E=Y));const H=le.ui.scrubbingInProgress;W(t,H,Y=>i(30,d=Y));const Q=le.ui.isMobile;W(t,Q,Y=>i(18,s=Y));const Z=le.ui.mobileUnmuteButtonExpanded;W(t,Z,Y=>i(29,u=Y));const Ce=le.ui.mobileUnmuteButtonVisible;W(t,Ce,Y=>i(28,r=Y));const $e=le.ui.settingsMenuVisible;W(t,$e,Y=>i(16,n=Y));const Tt=le.ads.duration;W(t,Tt,Y=>i(35,p=Y));const et=le.ads.position;W(t,et,Y=>i(34,w=Y));const wt=le.ads.playbackState;W(t,wt,Y=>i(32,g=Y));const ut=le.ui.isFullscreen;W(t,ut,Y=>i(27,a=Y));const ot=le.ui.playerSize;W(t,ot,Y=>i(64,l=Y));const zt=()=>le.actions.internal.toggleChromecast(),Nt=()=>le.actions.internal.switchToActiveLive();let st,We,at,_t,dt,tt,ft,yt;function kt(){Ce.set(!1),je()}function Lt(Y){Je[Y?"unshift":"push"](()=>{R=Y,i(0,R)})}return t.$$set=Y=>{"hidden"in Y&&i(1,B=Y.hidden),"showControls"in Y&&i(2,N=Y.showControls),"controlsElementRef"in Y&&i(0,R=Y.controlsElementRef),"isAds"in Y&&i(3,y=Y.isAds),"canRewindLive"in Y&&i(4,D=Y.canRewindLive),"logoClickable"in Y&&i(5,F=Y.logoClickable),"logoHidden"in Y&&i(6,L=Y.logoHidden),"showNextPrevButtons"in Y&&i(7,X=Y.showNextPrevButtons),"nextButtonActive"in Y&&i(8,x=Y.nextButtonActive),"prevButtonActive"in Y&&i(9,j=Y.prevButtonActive),"isOneVideoPlaylist"in Y&&i(10,O=Y.isOneVideoPlaylist),"supportLink"in Y&&i(11,G=Y.supportLink),"canShowTimeline"in Y&&i(63,ue=Y.canShowTimeline),"playNextVideo"in Y&&i(12,K=Y.playNextVideo),"playPrevVideo"in Y&&i(13,q=Y.playPrevVideo),"repeatPlaylist"in Y&&i(14,ie=Y.repeatPlaylist),"toggleFullscreen"in Y&&i(15,Te=Y.toggleFullscreen)},t.$$.update=()=>{t.$$.dirty[2]&4&&i(19,st=l.width<600),t.$$.dirty[0]&262144|t.$$.dirty[2]&4&&i(20,We=s||l.width>550),t.$$.dirty[0]&262144|t.$$.dirty[2]&4&&i(21,at=s||l.width>450),t.$$.dirty[0]&262144|t.$$.dirty[2]&4&&i(22,_t=s||l.width>380),t.$$.dirty[0]&262144|t.$$.dirty[2]&6&&i(23,dt=ue&&(s||l.width>300)),t.$$.dirty[0]&262144|t.$$.dirty[2]&4&&i(24,tt=s||l.width>220),t.$$.dirty[0]&131080|t.$$.dirty[2]&4&&i(25,ft=(!o||y)&&l.width>200),t.$$.dirty[0]&65540&&i(26,yt=n||N)},[R,B,N,y,D,F,L,X,x,j,O,G,K,q,ie,Te,n,o,s,st,We,at,_t,dt,tt,ft,yt,a,r,u,d,m,g,v,w,p,E,z,_,k,je,Qe,oe,he,fe,de,_e,ge,ye,U,H,Q,Z,Ce,$e,Tt,et,wt,ut,ot,zt,Nt,kt,ue,l,Lt]}class Aa extends be{constructor(e){super(),pe(this,e,Sa,Va,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,canShowTimeline:63,playNextVideo:12,playPrevVideo:13,repeatPlaylist:14,toggleFullscreen:15},va,[-1,-1,-1])}}function Ca(t){ke(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 Ma(t){let e,i,n,l,o,s,a,r,u;return{c(){e=b("div"),i=b("div"),n=b("div"),l=T(),o=b("img"),c(n,"class","playButtonBackground v-y9pij4"),Ve(o.src,s=Ci)||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=se(e,"click",function(){Fe(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:I,o:I,d(d){d&&C(e),r=!1,u()}}}function Ea(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 Ta extends be{constructor(e){super(),pe(this,e,Ea,Ma,ve,{thumbUrl:0,hidden:1,startVideo:2},Ca)}}function za(t){ke(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 Na(t){let e;return{c(){e=b("div"),e.innerHTML=`<div class="dot v-8nkw5s"></div>
17
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:I,i:I,o:I,d(i){i&&C(e)}}}class La extends be{constructor(e){super(),pe(this,e,null,Na,ve,{},Ta)}}function Ia(t){const e=De();return Et(()=>{e.getAdmanWrapper().startPostroll()}),[]}class Ba extends be{constructor(e){super(),pe(this,e,Ia,null,ve,{})}}function Ra(t){ye(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 Fa(t){let e,i,n;return{c(){e=b("div"),i=me("\u0420\u0435\u043A\u043B\u0430\u043C\u0430 "),n=me(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&&Me(n,l[0]),o&2&&A(e,"container-mobile",l[1])},i:I,o:I,d(l){l&&C(e)}}}function qa(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const a=De().ui.isMobile;W(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=ht(o-l))},[r,n,a,l,o]}class Ha extends be{constructor(e){super(),pe(this,e,qa,Fa,ve,{position:3,duration:4},Ra)}}function Da(t){ye(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 ja(t){let e,i=Math.ceil(t[1]-t[0])+"",n,l;return{c(){e=me("\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 "),n=me(i),l=me(" \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])+"")&&Me(n,i)},d(o){o&&C(e),o&&C(n),o&&C(l)}}}function Oa(t){let e,i,n;return{c(){e=b("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=oe(e,"click",function(){Fe(t[2])&&t[2].apply(this,arguments)}),i=!0)},p(l,o){t=l},d(l){l&&C(e),i=!1,n()}}}function Ua(t){let e;function i(o,s){return o[3]?Oa:ja}let n=i(t),l=n(t);return{c(){e=b("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:I,o:I,d(o){o&&C(e),l.d()}}}function Qa(t,e,i){let n,{position:l=0}=e,{secondsToWatchBeforeSkip:o=0}=e,{skipAd:s=I}=e;const r=De().ui.isMobile;W(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 Wa extends be{constructor(e){super(),pe(this,e,Qa,Ua,ve,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Da)}}function Ya(t){ye(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 Ka(t){let e;return{c(){e=b("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:I,i:I,o:I,d(i){i&&C(e)}}}class Xa extends be{constructor(e){super(),pe(this,e,null,Ka,ve,{},Ya)}}function Ga(t){ye(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(
18
+ <div class="dot v-8nkw5s"></div>`,c(e,"class","container v-8nkw5s")},m(i,n){M(i,e,n)},p:I,i:I,o:I,d(i){i&&C(e)}}}class La extends be{constructor(e){super(),pe(this,e,null,Na,ve,{},za)}}function Ia(t){const e=De();return Et(()=>{e.getAdmanWrapper().startPostroll()}),[]}class Ba extends be{constructor(e){super(),pe(this,e,Ia,null,ve,{})}}function Ra(t){ke(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 Fa(t){let e,i,n;return{c(){e=b("div"),i=me("\u0420\u0435\u043A\u043B\u0430\u043C\u0430 "),n=me(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&&Me(n,l[0]),o&2&&A(e,"container-mobile",l[1])},i:I,o:I,d(l){l&&C(e)}}}function qa(t,e,i){let n,{position:l=0}=e,{duration:o=0}=e;const a=De().ui.isMobile;W(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=pt(o-l))},[r,n,a,l,o]}class Ha extends be{constructor(e){super(),pe(this,e,qa,Fa,ve,{position:3,duration:4},Ra)}}function Da(t){ke(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 ja(t){let e,i=Math.ceil(t[1]-t[0])+"",n,l;return{c(){e=me("\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 "),n=me(i),l=me(" \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])+"")&&Me(n,i)},d(o){o&&C(e),o&&C(n),o&&C(l)}}}function Oa(t){let e,i,n;return{c(){e=b("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=se(e,"click",function(){Fe(t[2])&&t[2].apply(this,arguments)}),i=!0)},p(l,o){t=l},d(l){l&&C(e),i=!1,n()}}}function Ua(t){let e;function i(o,s){return o[3]?Oa:ja}let n=i(t),l=n(t);return{c(){e=b("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:I,o:I,d(o){o&&C(e),l.d()}}}function Qa(t,e,i){let n,{position:l=0}=e,{secondsToWatchBeforeSkip:o=0}=e,{skipAd:s=I}=e;const r=De().ui.isMobile;W(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 Wa extends be{constructor(e){super(),pe(this,e,Qa,Ua,ve,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Da)}}function Ya(t){ke(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 Ka(t){let e;return{c(){e=b("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:I,i:I,o:I,d(i){i&&C(e)}}}class Xa extends be{constructor(e){super(),pe(this,e,null,Ka,ve,{},Ya)}}function Ga(t){ke(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
20
  360deg,
21
21
  rgba(0, 0, 0, 0) 0%,
22
22
  rgba(0, 0, 0, 0.05) 12%,
@@ -26,12 +26,12 @@
26
26
  rgba(0, 0, 0, 0.5) 77%,
27
27
  rgba(0, 0, 0, 0.55) 88%,
28
28
  rgba(0, 0, 0, 0.65) 100%
29
- )}`)}function In(t){let e;return{c(){e=b("div"),c(e,"class","top-gradient-mobile v-354ajf")},m(i,n){M(i,e,n)},d(i){i&&C(e)}}}function Bn(t){let e,i;return e=new Ha({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Rn(t){let e,i;return e=new Wa({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Fn(t){let e,i;return e=new Ba({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function qn(t){let e,i;return e=new Xa({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function xa(t){let e,i,n,l,o,s,a,r,u=t[0]&&In(),d=t[3]&&Bn(t),m=t[4]&&Rn(t),h=t[9]&&Fn(),v=t[5]&&qn();return{c(){e=b("div"),u&&u.c(),i=z(),n=b("video"),l=z(),d&&d.c(),o=z(),m&&m.c(),s=z(),h&&h.c(),a=z(),v&&v.c(),jt(n,"width","100%"),jt(n,"height","100%"),n.playsInline=!0,c(e,"class","container v-354ajf")},m(w,p){M(w,e,p),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),h&&h.m(e,null),f(e,a),v&&v.m(e,null),t[23](e),r=!0},p(w,[p]){w[0]?u||(u=In(),u.c(),u.m(e,i)):u&&(u.d(1),u=null),w[3]?d?(d.p(w,p),p&8&&g(d,1)):(d=Bn(w),d.c(),g(d,1),d.m(e,o)):d&&(ae(),V(d,1,1,()=>{d=null}),re()),w[4]?m?(m.p(w,p),p&16&&g(m,1)):(m=Rn(w),m.c(),g(m,1),m.m(e,s)):m&&(ae(),V(m,1,1,()=>{m=null}),re()),w[9]?h?p&512&&g(h,1):(h=Fn(),h.c(),g(h,1),h.m(e,a)):h&&(ae(),V(h,1,1,()=>{h=null}),re()),w[5]?v?p&32&&g(v,1):(v=qn(),v.c(),g(v,1),v.m(e,null)):v&&(ae(),V(v,1,1,()=>{v=null}),re())},i(w){r||(g(d),g(m),g(h),g(v),r=!0)},o(w){V(d),V(m),V(h),V(v),r=!1},d(w){w&&C(e),u&&u.d(),t[22](null),d&&d.d(),m&&m.d(),h&&h.d(),v&&v.d(),t[23](null)}}}function Ja(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:h=0}=e;const v=De(),w=v.state.isEnded$;W(t,w,j=>i(9,r=j));const p=v.ui.isMobile;W(t,p,j=>i(0,l=j));let E,T,_=!1;const k=v.ads.playbackState;W(t,k,j=>i(21,n=j));const B=v.ads.canSkip,N=v.ads.duration;W(t,N,j=>i(7,s=j));const R=v.ads.position;W(t,R,j=>i(6,o=j));const y=v.ads.secondsToWatchBeforeSkip;W(t,y,j=>i(8,a=j));let D,F,L;Et(()=>{const j=new AbortController;let O=()=>{j.abort()};const X=v.getAdmanWrapper();if(!u){X.onAdmanLoadingError();return}const{width:ue,height:G}=Be(v.ui.playerSize),q=Be(v.ui.isFullscreen),ie=Be(v.ui.isAutoplay),de={width:ue,height:G,isFullscreen:q,isAutoplay:ie,adsContainer:E,adsVideoElement:T,slotId:u,params:d,previewParam:m,duration:h};return window.AdmanHTML?(X.initAdman(de),_=!0):X.loadAdman(j.signal).then(()=>{X.initAdman(de),_=!0}).catch(()=>{X.onAdmanLoadingError()}),()=>{!_&&O()}});function K(j){Ge[j?"unshift":"push"](()=>{T=j,i(2,T)})}function J(j){Ge[j?"unshift":"push"](()=>{E=j,i(1,E)})}return t.$$set=j=>{"adsSlotId"in j&&i(17,u=j.adsSlotId),"adsParams"in j&&i(18,d=j.adsParams),"adsPreviewParam"in j&&i(19,m=j.adsPreviewParam),"duration"in j&&i(20,h=j.duration)},t.$$.update=()=>{t.$$.dirty&2097152&&i(3,D=n!==Re.INACTIVE),t.$$.dirty&2097152&&i(4,F=B&&n!==Re.INACTIVE),t.$$.dirty&2097153&&i(5,L=l&&n!==Re.INACTIVE)},[l,E,T,D,F,L,o,s,a,r,v,w,p,k,N,R,y,u,d,m,h,n,K,J]}class Za extends be{constructor(e){super(),pe(this,e,Ja,xa,ve,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},Ga)}}function $a(t){ye(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 er(t){let e,i,n;return{c(){e=b("li"),e.textContent="\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",c(e,"class","v-p5rs9b")},m(l,o){M(l,e,o),i||(n=oe(e,"click",t[8]),i=!0)},p:I,d(l){l&&C(e),i=!1,n()}}}function tr(t){let e,i,n,l,o,s,a,r,u,d=t[4]&&er(t);return{c(){e=b("ul"),d&&d.c(),i=z(),n=b("li"),n.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",l=z(),o=b("li"),o.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",s=z(),a=b("li"),a.textContent="\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",c(n,"class","v-p5rs9b"),c(o,"class","v-p5rs9b"),c(a,"class","v-p5rs9b"),jt(e,"top",t[1]+"px"),jt(e,"left",t[0]+"px"),c(e,"class","v-p5rs9b"),A(e,"hidden",!t[2])},m(m,h){M(m,e,h),d&&d.m(e,null),f(e,i),f(e,n),f(e,l),f(e,o),f(e,s),f(e,a),t[12](e),r||(u=[oe(n,"click",t[5]),oe(o,"click",t[6]),oe(a,"click",t[7])],r=!0)},p(m,[h]){m[4]&&d.p(m,h),h&2&&jt(e,"top",m[1]+"px"),h&1&&jt(e,"left",m[0]+"px"),h&4&&A(e,"hidden",!m[2])},i:I,o:I,d(m){m&&C(e),d&&d.d(),t[12](null),r=!1,xe(u)}}}function ir(t,e,i){var n=this&&this.__awaiter||function(N,R,y,D){function F(L){return L instanceof y?L:new y(function(K){K(L)})}return new(y||(y=Promise))(function(L,K){function J(X){try{O(D.next(X))}catch(ue){K(ue)}}function j(X){try{O(D.throw(X))}catch(ue){K(ue)}}function O(X){X.done?L(X.value):F(X.value).then(J,j)}O((D=D.apply(N,R||[])).next())})};let{visible:l=!1}=e,{supportLink:o}=e,{x:s=0}=e,{y:a=0}=e,{playerContainerRef:r=void 0}=e,{controlsContainerRef:u=void 0}=e;const d=De(),m=d.ui.contextMenuVisible,h=d.ui.debugPanelVisible,v=d.webApi.pictureInPictureApi;let w;const p=(N,R)=>{if(!w||!r||!u)return;const y=w.getBoundingClientRect(),D=r.getBoundingClientRect(),F=u.getBoundingClientRect();i(0,s=N-D.left),i(1,a=R-D.top),s+y.width>D.width&&i(0,s-=y.width),a+y.height>D.height-F.height&&i(1,a-=y.height)},E=N=>{window.open(o,"_blank"),m.set(!1),d.actions.internal.pause(),N.stopPropagation()},T=N=>{Vl(d.actions.internal.getDebugTextData()),m.set(!1),N.stopPropagation()},_=N=>{h.set(!0),m.set(!1),N.stopPropagation()},k=N=>n(void 0,void 0,void 0,function*(){v!=null&&v.isActive()?yield v==null?void 0:v.remove():yield v==null?void 0:v.request(),m.set(!1),N.stopPropagation()});function B(N){Ge[N?"unshift":"push"](()=>{w=N,i(3,w)})}return t.$$set=N=>{"visible"in N&&i(2,l=N.visible),"supportLink"in N&&i(9,o=N.supportLink),"x"in N&&i(0,s=N.x),"y"in N&&i(1,a=N.y),"playerContainerRef"in N&&i(10,r=N.playerContainerRef),"controlsContainerRef"in N&&i(11,u=N.controlsContainerRef)},t.$$.update=()=>{t.$$.dirty&3&&p(s,a)},[s,a,l,w,v,E,T,_,k,o,r,u,B]}class nr extends be{constructor(e){super(),pe(this,e,ir,tr,ve,{visible:2,supportLink:9,x:0,y:1,playerContainerRef:10,controlsContainerRef:11},$a)}}class lr{constructor(e){this.value=e,this.next=null}}class wi{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new lr(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 or(t){ye(t,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function sr(t){let e,i;return{c(){e=b("div"),i=b("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:I,i:I,o:I,d(n){n&&C(e),t[3](null)}}}const _i=16,yi=120,Hn=60;function ar(t,e,i,n,l){l===0&&(l=1),t.fillStyle="#fff",t.fillRect(e,i,n,l)}function rr(t,e,i){let{values:n=[]}=e,l,o;const s=yi/Hn;Et(()=>{i(0,l.width=yi,l),i(0,l.height=_i,l),i(2,o=l.getContext("2d"))});function a(r){Ge[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,yi,_i);let u=Hn-1;for(let d=n.length-1;d>=0;d--){const m=u*s,h=r>0?_i*(n[d]/r):0;ar(o,m,0,s,h),u--}}},[l,n,o,a]}class Ni extends be{constructor(e){super(),pe(this,e,rr,sr,ve,{values:1},or)}}const Mt={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 cr(t){ye(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 Dn(t){let e,i,n,l,o=t[0].id+"",s;return{c(){e=b("div"),i=b("div"),i.textContent="Video id",n=z(),l=b("span"),s=me(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+"")&&Me(s,o)},d(a){a&&C(e)}}}function jn(t){let e,i,n,l,o=t[0].provider+"",s;return{c(){e=b("div"),i=b("div"),i.textContent="Provider",n=z(),l=b("span"),s=me(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+"")&&Me(s,o)},d(a){a&&C(e)}}}function On(t){let e,i,n,l,o=t[0].viewport+"",s;return{c(){e=b("div"),i=b("div"),i.textContent="Viewport",n=z(),l=b("span"),s=me(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+"")&&Me(s,o)},d(a){a&&C(e)}}}function Un(t){let e,i,n,l,o=t[0].videoSize+"",s;return{c(){e=b("div"),i=b("div"),i.textContent="Video size",n=z(),l=b("span"),s=me(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+"")&&Me(s,o)},d(a){a&&C(e)}}}function Qn(t){let e,i,n,l,o=t[0].cdn+"",s;return{c(){e=b("div"),i=b("div"),i.textContent="CDN host",n=z(),l=b("span"),s=me(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+"")&&Me(s,o)},d(a){a&&C(e)}}}function Wn(t){let e,i,n,l,o=t[0].volume+"",s,a;return{c(){e=b("div"),i=b("div"),i.textContent="Volume",n=z(),l=b("span"),s=me(o),a=me(" %"),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+"")&&Me(s,o)},d(r){r&&C(e)}}}function Yn(t){let e,i,n,l,o=t[0].buffer.toFixed(2)+"",s,a;return{c(){e=b("div"),i=b("div"),i.textContent="Buffer",n=z(),l=b("span"),s=me(o),a=me(" 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)+"")&&Me(s,o)},d(r){r&&C(e)}}}function Kn(t){let e,i,n,l,o,s,a=t[0].speed.toFixed(2)+"",r,u,d;return l=new Ni({props:{values:t[5]}}),{c(){e=b("div"),i=b("div"),i.textContent="Network",n=z(),te(l.$$.fragment),o=z(),s=b("span"),r=me(a),u=me(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(m,h){M(m,e,h),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,h){const v={};h&32&&(v.values=m[5]),l.$set(v),(!d||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Me(r,a)},i(m){d||(g(l.$$.fragment,m),d=!0)},o(m){V(l.$$.fragment,m),d=!1},d(m){m&&C(e),ee(l)}}}function Xn(t){let e,i,n,l,o,s,a=t[0].bitrate.toFixed(2)+"",r,u,d;return l=new Ni({props:{values:t[6]}}),{c(){e=b("div"),i=b("div"),i.textContent="V bitrate",n=z(),te(l.$$.fragment),o=z(),s=b("span"),r=me(a),u=me(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(m,h){M(m,e,h),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,h){const v={};h&64&&(v.values=m[6]),l.$set(v),(!d||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Me(r,a)},i(m){d||(g(l.$$.fragment,m),d=!0)},o(m){V(l.$$.fragment,m),d=!1},d(m){m&&C(e),ee(l)}}}function ur(t){let e,i,n,l,o,s,a,r,u=t[0].version+"",d,m,h,v,w,p,E,T,_,k,B,N,R,y,D,F,L,K,J,j,O,X,ue,G,q,ie,de,Ae,Oe,Qe,le=t[0].id&&Dn(t),ge=t[0].provider&&jn(t),fe=t[0].viewport&&On(t),ce=t[0].videoSize&&Un(t),we=t[0].cdn&&Qn(t),he=t[0].volume&&Wn(t),_e=t[0].buffer&&Yn(t),U=t[0].speed&&Kn(t),H=t[0].bitrate&&Xn(t);return G=new Ni({props:{values:t[4]}}),{c(){e=b("div"),i=b("button"),i.textContent="[x]",n=z(),l=b("div"),o=b("div"),s=b("div"),s.textContent="Version",a=z(),r=b("span"),d=me(u),m=z(),le&&le.c(),h=z(),ge&&ge.c(),v=z(),fe&&fe.c(),w=z(),ce&&ce.c(),p=z(),we&&we.c(),E=z(),he&&he.c(),T=z(),_e&&_e.c(),_=z(),k=b("div"),B=b("div"),B.textContent="Dropped",N=z(),R=b("span"),y=me(t[2]),D=me(" / "),F=me(t[1]),L=me(" frames"),K=z(),U&&U.c(),J=z(),H&&H.c(),j=z(),O=b("div"),X=b("div"),X.textContent="FPS",ue=z(),te(G.$$.fragment),q=z(),ie=b("span"),de=me(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(B,"class","v-1gy2e68"),c(k,"class","v-1gy2e68"),c(X,"class","v-1gy2e68"),c(O,"class","v-1gy2e68"),c(l,"class","content v-1gy2e68"),c(e,"class","container v-1gy2e68"),A(e,"container-mobile",t[7])},m(Q,Z){M(Q,e,Z),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),le&&le.m(l,null),f(l,h),ge&&ge.m(l,null),f(l,v),fe&&fe.m(l,null),f(l,w),ce&&ce.m(l,null),f(l,p),we&&we.m(l,null),f(l,E),he&&he.m(l,null),f(l,T),_e&&_e.m(l,null),f(l,_),f(l,k),f(k,B),f(k,N),f(k,R),f(R,y),f(R,D),f(R,F),f(R,L),f(l,K),U&&U.m(l,null),f(l,J),H&&H.m(l,null),f(l,j),f(l,O),f(O,X),f(O,ue),$(G,O,null),f(O,q),f(O,ie),f(ie,de),Ae=!0,Oe||(Qe=oe(i,"click",t[9]),Oe=!0)},p(Q,[Z]){(!Ae||Z&1)&&u!==(u=Q[0].version+"")&&Me(d,u),Q[0].id?le?le.p(Q,Z):(le=Dn(Q),le.c(),le.m(l,h)):le&&(le.d(1),le=null),Q[0].provider?ge?ge.p(Q,Z):(ge=jn(Q),ge.c(),ge.m(l,v)):ge&&(ge.d(1),ge=null),Q[0].viewport?fe?fe.p(Q,Z):(fe=On(Q),fe.c(),fe.m(l,w)):fe&&(fe.d(1),fe=null),Q[0].videoSize?ce?ce.p(Q,Z):(ce=Un(Q),ce.c(),ce.m(l,p)):ce&&(ce.d(1),ce=null),Q[0].cdn?we?we.p(Q,Z):(we=Qn(Q),we.c(),we.m(l,E)):we&&(we.d(1),we=null),Q[0].volume?he?he.p(Q,Z):(he=Wn(Q),he.c(),he.m(l,T)):he&&(he.d(1),he=null),Q[0].buffer?_e?_e.p(Q,Z):(_e=Yn(Q),_e.c(),_e.m(l,_)):_e&&(_e.d(1),_e=null),(!Ae||Z&4)&&Me(y,Q[2]),(!Ae||Z&2)&&Me(F,Q[1]),Q[0].speed?U?(U.p(Q,Z),Z&1&&g(U,1)):(U=Kn(Q),U.c(),g(U,1),U.m(l,J)):U&&(ae(),V(U,1,1,()=>{U=null}),re()),Q[0].bitrate?H?(H.p(Q,Z),Z&1&&g(H,1)):(H=Xn(Q),H.c(),g(H,1),H.m(l,j)):H&&(ae(),V(H,1,1,()=>{H=null}),re());const Ee={};Z&16&&(Ee.values=Q[4]),G.$set(Ee),(!Ae||Z&8)&&Me(de,Q[3]),(!Ae||Z&128)&&A(e,"container-mobile",Q[7])},i(Q){Ae||(g(U),g(H),g(G.$$.fragment,Q),Ae=!0)},o(Q){V(U),V(H),V(G.$$.fragment,Q),Ae=!1},d(Q){Q&&C(e),le&&le.d(),ge&&ge.d(),fe&&fe.d(),ce&&ce.d(),we&&we.d(),he&&he.d(),_e&&_e.d(),U&&U.d(),H&&H.d(),ee(G),Oe=!1,Qe()}}}function dr(t,e,i){let n;const l=De(),o=l.ui.debugPanelVisible,s=l.ui.isMobile;W(t,s,k=>i(7,n=k));const a=k=>{Mt.set(Si,!1),o.set(!1),k.stopPropagation()};let r=l.actions.internal.getDebugPanelData(),u=l.actions.internal.getVideoElement(),d=0,m=0,h=0;const v=new wi(60),w=new wi(60),p=new wi(60);let E=[],T=[],_=[];return Et(()=>{Mt.set(Si,!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 B;return u&&(B=window.setInterval(()=>{if(u){i(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);const N=u.getVideoPlaybackQuality().totalVideoFrames;i(3,h=N-d),i(1,d=N),v.push(h),r.speed&&w.push(r.speed),r.bitrate&&p.push(r.bitrate),i(4,E=v.getValuesFromBottom()),i(5,T=w.getValuesFromBottom()),i(6,_=p.getValuesFromBottom())}},1e3)),()=>{l.actions.internal.stopLogging(),clearInterval(k),B&&clearInterval(B)}}),[r,d,m,h,E,T,_,n,s,a]}class fr extends be{constructor(e){super(),pe(this,e,dr,ur,ve,{},cr)}}function mr(t){ye(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 vr(t){let e,i,n;return{c(){e=b("div"),c(e,"class","close v-1ome55p")},m(l,o){M(l,e,o),i||(n=oe(e,"click",t[0]),i=!0)},p:I,i:I,o:I,d(l){l&&C(e),i=!1,n()}}}function gr(t){function e(i){it.call(this,t,i)}return[e]}class hr extends be{constructor(e){super(),pe(this,e,gr,vr,ve,{},mr)}}function pr(t){ye(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 br(t){let e,i,n,l,o,s,a;return{c(){e=b("div"),i=b("canvas"),n=z(),l=Ce("svg"),o=Ce("g"),s=Ce("g"),a=Ce("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:I,i:I,o:I,d(r){r&&C(e),t[2](null)}}}const wr=5e3;function _r(t,e,i){let{onTimerEnded:n=I}=e,l;Et(()=>{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)/wr;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){Ge[s?"unshift":"push"](()=>{l=s,i(0,l)})}return t.$$set=s=>{"onTimerEnded"in s&&i(1,n=s.onTimerEnded)},[l,n,o]}class yr extends be{constructor(e){super(),pe(this,e,_r,br,ve,{onTimerEnded:1},pr)}}function kr(t){ye(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 Gn(t){let e,i;return e=new yr({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Pr(t){let e,i,n,l,o,s,a,r,u,d,m,h,v,w,p,E,T,_,k,B,N;a=new hr({}),a.$on("click",t[4]);let R=t[3]&&Gn(t);return{c(){e=b("div"),i=z(),n=b("div"),l=b("div"),o=b("div"),o.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",s=z(),te(a.$$.fragment),r=z(),u=b("div"),d=b("div"),m=b("div"),h=b("div"),v=z(),R&&R.c(),p=z(),E=b("div"),T=b("div"),_=me(t[0]),c(e,"class","overlay v-kisfwc"),c(o,"class","caption v-kisfwc"),c(l,"class","top v-kisfwc"),c(h,"class","thumb-overlay v-kisfwc"),c(m,"class","thumb v-kisfwc"),c(m,"style",w=`background-image: url('${t[1]}')`),c(d,"class","column v-kisfwc"),c(T,"class","title v-kisfwc"),c(E,"class","column v-kisfwc"),c(u,"class","row v-kisfwc"),c(n,"class","next-video v-kisfwc")},m(y,D){M(y,e,D),M(y,i,D),M(y,n,D),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,h),f(m,v),R&&R.m(m,null),f(u,p),f(u,E),f(E,T),f(T,_),k=!0,B||(N=oe(u,"click",function(){Fe(t[2])&&t[2].apply(this,arguments)}),B=!0)},p(y,[D]){t=y,t[3]?R?(R.p(t,D),D&8&&g(R,1)):(R=Gn(t),R.c(),g(R,1),R.m(m,null)):R&&(ae(),V(R,1,1,()=>{R=null}),re()),(!k||D&2&&w!==(w=`background-image: url('${t[1]}')`))&&c(m,"style",w),(!k||D&1)&&Me(_,t[0])},i(y){k||(g(a.$$.fragment,y),g(R),k=!0)},o(y){V(a.$$.fragment,y),V(R),k=!1},d(y){y&&C(e),y&&C(i),y&&C(n),ee(a),R&&R.d(),B=!1,N()}}}function Vr(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 Sr extends be{constructor(e){super(),pe(this,e,Vr,Pr,ve,{title:0,thumb:1,playNextVideo:2},kr)}}function Ar(t,e,i){let{playNextVideo:n}=e;return Et(()=>{n()}),t.$$set=l=>{"playNextVideo"in l&&i(0,n=l.playNextVideo)},[n]}class Cr extends be{constructor(e){super(),pe(this,e,Ar,null,ve,{playNextVideo:0})}}function Mr(t){ye(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(
29
+ )}`)}function In(t){let e;return{c(){e=b("div"),c(e,"class","top-gradient-mobile v-354ajf")},m(i,n){M(i,e,n)},d(i){i&&C(e)}}}function Bn(t){let e,i;return e=new Ha({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Rn(t){let e,i;return e=new Wa({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Fn(t){let e,i;return e=new Ba({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function qn(t){let e,i;return e=new Xa({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Ja(t){let e,i,n,l,o,s,a,r,u=t[0]&&In(),d=t[3]&&Bn(t),m=t[4]&&Rn(t),g=t[9]&&Fn(),v=t[5]&&qn();return{c(){e=b("div"),u&&u.c(),i=T(),n=b("video"),l=T(),d&&d.c(),o=T(),m&&m.c(),s=T(),g&&g.c(),a=T(),v&&v.c(),Ot(n,"width","100%"),Ot(n,"height","100%"),n.playsInline=!0,c(e,"class","container v-354ajf")},m(w,p){M(w,e,p),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),g&&g.m(e,null),f(e,a),v&&v.m(e,null),t[23](e),r=!0},p(w,[p]){w[0]?u||(u=In(),u.c(),u.m(e,i)):u&&(u.d(1),u=null),w[3]?d?(d.p(w,p),p&8&&h(d,1)):(d=Bn(w),d.c(),h(d,1),d.m(e,o)):d&&(re(),V(d,1,1,()=>{d=null}),ce()),w[4]?m?(m.p(w,p),p&16&&h(m,1)):(m=Rn(w),m.c(),h(m,1),m.m(e,s)):m&&(re(),V(m,1,1,()=>{m=null}),ce()),w[9]?g?p&512&&h(g,1):(g=Fn(),g.c(),h(g,1),g.m(e,a)):g&&(re(),V(g,1,1,()=>{g=null}),ce()),w[5]?v?p&32&&h(v,1):(v=qn(),v.c(),h(v,1),v.m(e,null)):v&&(re(),V(v,1,1,()=>{v=null}),ce())},i(w){r||(h(d),h(m),h(g),h(v),r=!0)},o(w){V(d),V(m),V(g),V(v),r=!1},d(w){w&&C(e),u&&u.d(),t[22](null),d&&d.d(),m&&m.d(),g&&g.d(),v&&v.d(),t[23](null)}}}function xa(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:g=0}=e;const v=De(),w=v.state.isEnded$;W(t,w,j=>i(9,r=j));const p=v.ui.isMobile;W(t,p,j=>i(0,l=j));let E,z,_=!1;const k=v.ads.playbackState;W(t,k,j=>i(21,n=j));const B=v.ads.canSkip,N=v.ads.duration;W(t,N,j=>i(7,s=j));const R=v.ads.position;W(t,R,j=>i(6,o=j));const y=v.ads.secondsToWatchBeforeSkip;W(t,y,j=>i(8,a=j));let D,F,L;Et(()=>{const j=new AbortController;let O=()=>{j.abort()};const G=v.getAdmanWrapper();if(!u){G.onAdmanLoadingError();return}const{width:ue,height:K}=Be(v.ui.playerSize),q=Be(v.ui.isFullscreen),ie=Be(v.ui.isAutoplay),Te={width:ue,height:K,isFullscreen:q,isAutoplay:ie,adsContainer:E,adsVideoElement:z,slotId:u,params:d,previewParam:m,duration:g};return window.AdmanHTML?(G.initAdman(Te),_=!0):G.loadAdman(j.signal).then(()=>{G.initAdman(Te),_=!0}).catch(()=>{G.onAdmanLoadingError()}),()=>{!_&&O()}});function X(j){Je[j?"unshift":"push"](()=>{z=j,i(2,z)})}function x(j){Je[j?"unshift":"push"](()=>{E=j,i(1,E)})}return t.$$set=j=>{"adsSlotId"in j&&i(17,u=j.adsSlotId),"adsParams"in j&&i(18,d=j.adsParams),"adsPreviewParam"in j&&i(19,m=j.adsPreviewParam),"duration"in j&&i(20,g=j.duration)},t.$$.update=()=>{t.$$.dirty&2097152&&i(3,D=n!==Re.INACTIVE),t.$$.dirty&2097152&&i(4,F=B&&n!==Re.INACTIVE),t.$$.dirty&2097153&&i(5,L=l&&n!==Re.INACTIVE)},[l,E,z,D,F,L,o,s,a,r,v,w,p,k,N,R,y,u,d,m,g,n,X,x]}class Za extends be{constructor(e){super(),pe(this,e,xa,Ja,ve,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},Ga)}}function $a(t){ke(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 er(t){let e,i,n;return{c(){e=b("li"),e.textContent="\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",c(e,"class","v-p5rs9b")},m(l,o){M(l,e,o),i||(n=se(e,"click",t[8]),i=!0)},p:I,d(l){l&&C(e),i=!1,n()}}}function tr(t){let e,i,n,l,o,s,a,r,u,d=t[4]&&er(t);return{c(){e=b("ul"),d&&d.c(),i=T(),n=b("li"),n.textContent="\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",l=T(),o=b("li"),o.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",s=T(),a=b("li"),a.textContent="\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",c(n,"class","v-p5rs9b"),c(o,"class","v-p5rs9b"),c(a,"class","v-p5rs9b"),Ot(e,"top",t[1]+"px"),Ot(e,"left",t[0]+"px"),c(e,"class","v-p5rs9b"),A(e,"hidden",!t[2])},m(m,g){M(m,e,g),d&&d.m(e,null),f(e,i),f(e,n),f(e,l),f(e,o),f(e,s),f(e,a),t[12](e),r||(u=[se(n,"click",t[5]),se(o,"click",t[6]),se(a,"click",t[7])],r=!0)},p(m,[g]){m[4]&&d.p(m,g),g&2&&Ot(e,"top",m[1]+"px"),g&1&&Ot(e,"left",m[0]+"px"),g&4&&A(e,"hidden",!m[2])},i:I,o:I,d(m){m&&C(e),d&&d.d(),t[12](null),r=!1,xe(u)}}}function ir(t,e,i){var n=this&&this.__awaiter||function(N,R,y,D){function F(L){return L instanceof y?L:new y(function(X){X(L)})}return new(y||(y=Promise))(function(L,X){function x(G){try{O(D.next(G))}catch(ue){X(ue)}}function j(G){try{O(D.throw(G))}catch(ue){X(ue)}}function O(G){G.done?L(G.value):F(G.value).then(x,j)}O((D=D.apply(N,R||[])).next())})};let{visible:l=!1}=e,{supportLink:o}=e,{x:s=0}=e,{y:a=0}=e,{playerContainerRef:r=void 0}=e,{controlsContainerRef:u=void 0}=e;const d=De(),m=d.ui.contextMenuVisible,g=d.ui.debugPanelVisible,v=d.webApi.pictureInPictureApi;let w;const p=(N,R)=>{if(!w||!r||!u)return;const y=w.getBoundingClientRect(),D=r.getBoundingClientRect(),F=u.getBoundingClientRect();i(0,s=N-D.left),i(1,a=R-D.top),s+y.width>D.width&&i(0,s-=y.width),a+y.height>D.height-F.height&&i(1,a-=y.height)},E=N=>{window.open(o,"_blank"),m.set(!1),d.actions.internal.pause(),N.stopPropagation()},z=N=>{Sl(d.actions.internal.getDebugTextData()),m.set(!1),N.stopPropagation()},_=N=>{g.set(!0),m.set(!1),N.stopPropagation()},k=N=>n(void 0,void 0,void 0,function*(){v!=null&&v.isActive()?yield v==null?void 0:v.remove():yield v==null?void 0:v.request(),m.set(!1),N.stopPropagation()});function B(N){Je[N?"unshift":"push"](()=>{w=N,i(3,w)})}return t.$$set=N=>{"visible"in N&&i(2,l=N.visible),"supportLink"in N&&i(9,o=N.supportLink),"x"in N&&i(0,s=N.x),"y"in N&&i(1,a=N.y),"playerContainerRef"in N&&i(10,r=N.playerContainerRef),"controlsContainerRef"in N&&i(11,u=N.controlsContainerRef)},t.$$.update=()=>{t.$$.dirty&3&&p(s,a)},[s,a,l,w,v,E,z,_,k,o,r,u,B]}class nr extends be{constructor(e){super(),pe(this,e,ir,tr,ve,{visible:2,supportLink:9,x:0,y:1,playerContainerRef:10,controlsContainerRef:11},$a)}}class lr{constructor(e){this.value=e,this.next=null}}class wi{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new lr(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 or(t){ke(t,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function sr(t){let e,i;return{c(){e=b("div"),i=b("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:I,i:I,o:I,d(n){n&&C(e),t[3](null)}}}const _i=16,yi=120,Hn=60;function ar(t,e,i,n,l){l===0&&(l=1),t.fillStyle="#fff",t.fillRect(e,i,n,l)}function rr(t,e,i){let{values:n=[]}=e,l,o;const s=yi/Hn;Et(()=>{i(0,l.width=yi,l),i(0,l.height=_i,l),i(2,o=l.getContext("2d"))});function a(r){Je[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,yi,_i);let u=Hn-1;for(let d=n.length-1;d>=0;d--){const m=u*s,g=r>0?_i*(n[d]/r):0;ar(o,m,0,s,g),u--}}},[l,n,o,a]}class Ni extends be{constructor(e){super(),pe(this,e,rr,sr,ve,{values:1},or)}}const Mt={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 cr(t){ke(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 Dn(t){let e,i,n,l,o=t[0].id+"",s;return{c(){e=b("div"),i=b("div"),i.textContent="Video id",n=T(),l=b("span"),s=me(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+"")&&Me(s,o)},d(a){a&&C(e)}}}function jn(t){let e,i,n,l,o=t[0].provider+"",s;return{c(){e=b("div"),i=b("div"),i.textContent="Provider",n=T(),l=b("span"),s=me(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+"")&&Me(s,o)},d(a){a&&C(e)}}}function On(t){let e,i,n,l,o=t[0].viewport+"",s;return{c(){e=b("div"),i=b("div"),i.textContent="Viewport",n=T(),l=b("span"),s=me(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+"")&&Me(s,o)},d(a){a&&C(e)}}}function Un(t){let e,i,n,l,o=t[0].videoSize+"",s;return{c(){e=b("div"),i=b("div"),i.textContent="Video size",n=T(),l=b("span"),s=me(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+"")&&Me(s,o)},d(a){a&&C(e)}}}function Qn(t){let e,i,n,l,o=t[0].cdn+"",s;return{c(){e=b("div"),i=b("div"),i.textContent="CDN host",n=T(),l=b("span"),s=me(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+"")&&Me(s,o)},d(a){a&&C(e)}}}function Wn(t){let e,i,n,l,o=t[0].volume+"",s,a;return{c(){e=b("div"),i=b("div"),i.textContent="Volume",n=T(),l=b("span"),s=me(o),a=me(" %"),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+"")&&Me(s,o)},d(r){r&&C(e)}}}function Yn(t){let e,i,n,l,o=t[0].buffer.toFixed(2)+"",s,a;return{c(){e=b("div"),i=b("div"),i.textContent="Buffer",n=T(),l=b("span"),s=me(o),a=me(" 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)+"")&&Me(s,o)},d(r){r&&C(e)}}}function Kn(t){let e,i,n,l,o,s,a=t[0].speed.toFixed(2)+"",r,u,d;return l=new Ni({props:{values:t[5]}}),{c(){e=b("div"),i=b("div"),i.textContent="Network",n=T(),te(l.$$.fragment),o=T(),s=b("span"),r=me(a),u=me(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(m,g){M(m,e,g),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,g){const v={};g&32&&(v.values=m[5]),l.$set(v),(!d||g&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Me(r,a)},i(m){d||(h(l.$$.fragment,m),d=!0)},o(m){V(l.$$.fragment,m),d=!1},d(m){m&&C(e),ee(l)}}}function Xn(t){let e,i,n,l,o,s,a=t[0].bitrate.toFixed(2)+"",r,u,d;return l=new Ni({props:{values:t[6]}}),{c(){e=b("div"),i=b("div"),i.textContent="V bitrate",n=T(),te(l.$$.fragment),o=T(),s=b("span"),r=me(a),u=me(" Kbps"),c(i,"class","v-1gy2e68"),c(e,"class","v-1gy2e68")},m(m,g){M(m,e,g),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,g){const v={};g&64&&(v.values=m[6]),l.$set(v),(!d||g&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Me(r,a)},i(m){d||(h(l.$$.fragment,m),d=!0)},o(m){V(l.$$.fragment,m),d=!1},d(m){m&&C(e),ee(l)}}}function ur(t){let e,i,n,l,o,s,a,r,u=t[0].version+"",d,m,g,v,w,p,E,z,_,k,B,N,R,y,D,F,L,X,x,j,O,G,ue,K,q,ie,Te,le,je,Qe,oe=t[0].id&&Dn(t),he=t[0].provider&&jn(t),fe=t[0].viewport&&On(t),de=t[0].videoSize&&Un(t),_e=t[0].cdn&&Qn(t),ge=t[0].volume&&Wn(t),ye=t[0].buffer&&Yn(t),U=t[0].speed&&Kn(t),H=t[0].bitrate&&Xn(t);return K=new Ni({props:{values:t[4]}}),{c(){e=b("div"),i=b("button"),i.textContent="[x]",n=T(),l=b("div"),o=b("div"),s=b("div"),s.textContent="Version",a=T(),r=b("span"),d=me(u),m=T(),oe&&oe.c(),g=T(),he&&he.c(),v=T(),fe&&fe.c(),w=T(),de&&de.c(),p=T(),_e&&_e.c(),E=T(),ge&&ge.c(),z=T(),ye&&ye.c(),_=T(),k=b("div"),B=b("div"),B.textContent="Dropped",N=T(),R=b("span"),y=me(t[2]),D=me(" / "),F=me(t[1]),L=me(" frames"),X=T(),U&&U.c(),x=T(),H&&H.c(),j=T(),O=b("div"),G=b("div"),G.textContent="FPS",ue=T(),te(K.$$.fragment),q=T(),ie=b("span"),Te=me(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(B,"class","v-1gy2e68"),c(k,"class","v-1gy2e68"),c(G,"class","v-1gy2e68"),c(O,"class","v-1gy2e68"),c(l,"class","content v-1gy2e68"),c(e,"class","container v-1gy2e68"),A(e,"container-mobile",t[7])},m(Q,Z){M(Q,e,Z),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),oe&&oe.m(l,null),f(l,g),he&&he.m(l,null),f(l,v),fe&&fe.m(l,null),f(l,w),de&&de.m(l,null),f(l,p),_e&&_e.m(l,null),f(l,E),ge&&ge.m(l,null),f(l,z),ye&&ye.m(l,null),f(l,_),f(l,k),f(k,B),f(k,N),f(k,R),f(R,y),f(R,D),f(R,F),f(R,L),f(l,X),U&&U.m(l,null),f(l,x),H&&H.m(l,null),f(l,j),f(l,O),f(O,G),f(O,ue),$(K,O,null),f(O,q),f(O,ie),f(ie,Te),le=!0,je||(Qe=se(i,"click",t[9]),je=!0)},p(Q,[Z]){(!le||Z&1)&&u!==(u=Q[0].version+"")&&Me(d,u),Q[0].id?oe?oe.p(Q,Z):(oe=Dn(Q),oe.c(),oe.m(l,g)):oe&&(oe.d(1),oe=null),Q[0].provider?he?he.p(Q,Z):(he=jn(Q),he.c(),he.m(l,v)):he&&(he.d(1),he=null),Q[0].viewport?fe?fe.p(Q,Z):(fe=On(Q),fe.c(),fe.m(l,w)):fe&&(fe.d(1),fe=null),Q[0].videoSize?de?de.p(Q,Z):(de=Un(Q),de.c(),de.m(l,p)):de&&(de.d(1),de=null),Q[0].cdn?_e?_e.p(Q,Z):(_e=Qn(Q),_e.c(),_e.m(l,E)):_e&&(_e.d(1),_e=null),Q[0].volume?ge?ge.p(Q,Z):(ge=Wn(Q),ge.c(),ge.m(l,z)):ge&&(ge.d(1),ge=null),Q[0].buffer?ye?ye.p(Q,Z):(ye=Yn(Q),ye.c(),ye.m(l,_)):ye&&(ye.d(1),ye=null),(!le||Z&4)&&Me(y,Q[2]),(!le||Z&2)&&Me(F,Q[1]),Q[0].speed?U?(U.p(Q,Z),Z&1&&h(U,1)):(U=Kn(Q),U.c(),h(U,1),U.m(l,x)):U&&(re(),V(U,1,1,()=>{U=null}),ce()),Q[0].bitrate?H?(H.p(Q,Z),Z&1&&h(H,1)):(H=Xn(Q),H.c(),h(H,1),H.m(l,j)):H&&(re(),V(H,1,1,()=>{H=null}),ce());const Ce={};Z&16&&(Ce.values=Q[4]),K.$set(Ce),(!le||Z&8)&&Me(Te,Q[3]),(!le||Z&128)&&A(e,"container-mobile",Q[7])},i(Q){le||(h(U),h(H),h(K.$$.fragment,Q),le=!0)},o(Q){V(U),V(H),V(K.$$.fragment,Q),le=!1},d(Q){Q&&C(e),oe&&oe.d(),he&&he.d(),fe&&fe.d(),de&&de.d(),_e&&_e.d(),ge&&ge.d(),ye&&ye.d(),U&&U.d(),H&&H.d(),ee(K),je=!1,Qe()}}}function dr(t,e,i){let n;const l=De(),o=l.ui.debugPanelVisible,s=l.ui.isMobile;W(t,s,k=>i(7,n=k));const a=k=>{Mt.set(Si,!1),o.set(!1),k.stopPropagation()};let r=l.actions.internal.getDebugPanelData(),u=l.actions.internal.getVideoElement(),d=0,m=0,g=0;const v=new wi(60),w=new wi(60),p=new wi(60);let E=[],z=[],_=[];return Et(()=>{Mt.set(Si,!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 B;return u&&(B=window.setInterval(()=>{if(u){i(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);const N=u.getVideoPlaybackQuality().totalVideoFrames;i(3,g=N-d),i(1,d=N),v.push(g),r.speed&&w.push(r.speed),r.bitrate&&p.push(r.bitrate),i(4,E=v.getValuesFromBottom()),i(5,z=w.getValuesFromBottom()),i(6,_=p.getValuesFromBottom())}},1e3)),()=>{l.actions.internal.stopLogging(),clearInterval(k),B&&clearInterval(B)}}),[r,d,m,g,E,z,_,n,s,a]}class fr extends be{constructor(e){super(),pe(this,e,dr,ur,ve,{},cr)}}function mr(t){ke(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 vr(t){let e,i,n;return{c(){e=b("div"),c(e,"class","close v-1ome55p")},m(l,o){M(l,e,o),i||(n=se(e,"click",t[0]),i=!0)},p:I,i:I,o:I,d(l){l&&C(e),i=!1,n()}}}function hr(t){function e(i){lt.call(this,t,i)}return[e]}class gr extends be{constructor(e){super(),pe(this,e,hr,vr,ve,{},mr)}}function pr(t){ke(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 br(t){let e,i,n,l,o,s,a;return{c(){e=b("div"),i=b("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:I,i:I,o:I,d(r){r&&C(e),t[2](null)}}}const wr=5e3;function _r(t,e,i){let{onTimerEnded:n=I}=e,l;Et(()=>{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)/wr;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){Je[s?"unshift":"push"](()=>{l=s,i(0,l)})}return t.$$set=s=>{"onTimerEnded"in s&&i(1,n=s.onTimerEnded)},[l,n,o]}class yr extends be{constructor(e){super(),pe(this,e,_r,br,ve,{onTimerEnded:1},pr)}}function kr(t){ke(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 Gn(t){let e,i;return e=new yr({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function Pr(t){let e,i,n,l,o,s,a,r,u,d,m,g,v,w,p,E,z,_,k,B,N;a=new gr({}),a.$on("click",t[4]);let R=t[3]&&Gn(t);return{c(){e=b("div"),i=T(),n=b("div"),l=b("div"),o=b("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=b("div"),d=b("div"),m=b("div"),g=b("div"),v=T(),R&&R.c(),p=T(),E=b("div"),z=b("div"),_=me(t[0]),c(e,"class","overlay v-kisfwc"),c(o,"class","caption v-kisfwc"),c(l,"class","top v-kisfwc"),c(g,"class","thumb-overlay v-kisfwc"),c(m,"class","thumb v-kisfwc"),c(m,"style",w=`background-image: url('${t[1]}')`),c(d,"class","column v-kisfwc"),c(z,"class","title v-kisfwc"),c(E,"class","column v-kisfwc"),c(u,"class","row v-kisfwc"),c(n,"class","next-video v-kisfwc")},m(y,D){M(y,e,D),M(y,i,D),M(y,n,D),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,g),f(m,v),R&&R.m(m,null),f(u,p),f(u,E),f(E,z),f(z,_),k=!0,B||(N=se(u,"click",function(){Fe(t[2])&&t[2].apply(this,arguments)}),B=!0)},p(y,[D]){t=y,t[3]?R?(R.p(t,D),D&8&&h(R,1)):(R=Gn(t),R.c(),h(R,1),R.m(m,null)):R&&(re(),V(R,1,1,()=>{R=null}),ce()),(!k||D&2&&w!==(w=`background-image: url('${t[1]}')`))&&c(m,"style",w),(!k||D&1)&&Me(_,t[0])},i(y){k||(h(a.$$.fragment,y),h(R),k=!0)},o(y){V(a.$$.fragment,y),V(R),k=!1},d(y){y&&C(e),y&&C(i),y&&C(n),ee(a),R&&R.d(),B=!1,N()}}}function Vr(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 Sr extends be{constructor(e){super(),pe(this,e,Vr,Pr,ve,{title:0,thumb:1,playNextVideo:2},kr)}}function Ar(t,e,i){let{playNextVideo:n}=e;return Et(()=>{n()}),t.$$set=l=>{"playNextVideo"in l&&i(0,n=l.playNextVideo)},[n]}class Cr extends be{constructor(e){super(),pe(this,e,Ar,null,ve,{playNextVideo:0})}}function Mr(t){ke(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
31
  0deg,
32
32
  rgba(0, 0, 0, 0) 0%,
33
33
  rgba(0, 0, 0, 0.02) 19%,
34
34
  rgba(0, 0, 0, 0.10) 34%,
35
35
  rgba(0, 0, 0, 0.40) 60%,
36
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 Er(t){let e,i;return{c(){e=b("div"),i=me(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&&Me(i,n[0]),l&2&&A(e,"hidden",n[1])},i:I,o:I,d(n){n&&C(e)}}}function zr(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 Tr extends be{constructor(e){super(),pe(this,e,zr,Er,ve,{title:0,isHidden:1},Mr)}}function Nr(t){ye(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 xn(t){let e,i,n;return{c(){e=b("div"),i=me("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=me(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&&Me(n,l[1])},d(l){l&&C(e)}}}function Lr(t){let e,i,n,l,o,s,a=t[1]&&xn(t);return{c(){e=b("div"),i=b("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=z(),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=oe(e,"click",t[2]),o=!0)},p(r,[u]){r[1]?a?a.p(r,u):(a=xn(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:I,o:I,d(r){r&&C(e),a&&a.d(),o=!1,s()}}}function Ir(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:l}=e;function o(s){it.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 Br extends be{constructor(e){super(),pe(this,e,Ir,Lr,ve,{thumbUrl:0,chromecastDeviceName:1},Nr)}}var Rr="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 Fr(t){ye(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 qr(t){let e,i,n;return{c(){e=b("div"),i=b("img"),Ve(i.src,n=Rr)||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:I,i:I,o:I,d(l){l&&C(e)}}}class Hr extends be{constructor(e){super(),pe(this,e,null,qr,ve,{},Fr)}}function Dr(t,e,i){let n,l,o,s,a,{isAds:r}=e,{hideContextMenu:u}=e,{toggleFullscreen:d}=e;const m=De(),h=m.getLogger().createComponentLog("KeyboardControls component"),v=m.state.playbackState$;W(t,v,k=>i(13,a=k));const w=m.ads.playbackState;W(t,w,k=>i(12,s=k));const p=m.state.positionExact$;W(t,p,k=>i(11,o=k));const E=m.state.duration$;W(t,E,k=>i(10,l=k));const T=m.state.volume$;W(t,T,k=>i(9,n=k));const _=k=>{u();const B=k.code;if(k.ctrlKey||k.altKey||k.metaKey)return;const N=a===Se.PlaybackState.PLAYING||a===Se.PlaybackState.PAUSED,R=r&&(s===Re.PAUSED||s===Re.PLAYING);if(N||R)switch(h({message:`key down, code: ${B}`}),B){case Xe.KeyJ:case Xe.ArrowLeft:{if(R)break;const y=Math.max(o-Qi,0);o>0&&m.actions.internal.seekTime(y),k.preventDefault();break}case Xe.KeyL:case Xe.ArrowRight:{if(R)break;const y=Math.min(o+Qi,l);o<l&&m.actions.internal.seekTime(y),k.preventDefault();break}case Xe.ArrowUp:{const y=Math.min(n+Ui,Oi);n<Oi&&m.actions.internal.setVolume(y),k.preventDefault();break}case Xe.ArrowDown:{const y=Math.max(n-Ui,0);n>0&&m.actions.internal.setVolume(y),k.preventDefault();break}case Xe.Comma:{k.shiftKey&&(m.actions.internal.decrementPlaybackRate(),k.preventDefault());break}case Xe.Period:{k.shiftKey&&(m.actions.internal.incrementPlaybackRate(),k.preventDefault());break}case Xe.KeyK:case Xe.Space:m.actions.internal.togglePlay(),k.preventDefault();break;case Xe.KeyM:m.actions.internal.toggleMuted(),k.preventDefault();break;case Xe.KeyF:d(),k.preventDefault();break;default:se.checkNever(B);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)},[v,w,p,E,T,r,u,d,_]}class jr extends be{constructor(e){super(),pe(this,e,Dr,null,ve,{isAds:5,hideContextMenu:6,toggleFullscreen:7,keyDownHandler:8})}get keyDownHandler(){return this.$$.ctx[8]}}function Or(t){ye(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,v,w,p,E,T;return{c(){e=b("div"),n=z(),l=b("div"),o=b("div"),s=b("div"),r=z(),u=b("div"),m=z(),h=b("div"),w=z(),p=b("p"),E=me(t[1]),T=me(" \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(h,"class",v="triangle "+t[0]+" v-1c30l04"),c(o,"class","triangles-wrapper v-1c30l04"),c(p,"class","step-caption v-1c30l04"),c(l,"class","info v-1c30l04")},m(_,k){M(_,e,k),M(_,n,k),M(_,l,k),f(l,o),f(o,s),f(o,r),f(o,u),f(o,m),f(o,h),f(l,w),f(l,p),f(p,E),f(p,T)},p(_,k){k&1&&i!==(i="semicircle "+_[0]+" v-1c30l04")&&c(e,"class",i),k&1&&a!==(a="triangle "+_[0]+" v-1c30l04")&&c(s,"class",a),k&1&&d!==(d="triangle "+_[0]+" v-1c30l04")&&c(u,"class",d),k&1&&v!==(v="triangle "+_[0]+" v-1c30l04")&&c(h,"class",v),k&2&&Me(E,_[1])},d(_){_&&C(e),_&&C(n),_&&C(l)}}}function Ur(t){let e,i,n,l,o=t[2]&&Jn(t);return{c(){e=b("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=oe(e,"click",so(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:I,o:I,d(s){s&&C(e),o&&o.d(),n=!1,l()}}}function Qr(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 h=0;return()=>{h+=1,h===1?r=window.setTimeout(()=>{o(),h=0},300):(window.clearTimeout(r),h=0,s(),i(2,a=!0),u=window.setTimeout(()=>{i(2,a=!1)},500))}};return hl(()=>{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 Il extends be{constructor(e){super(),pe(this,e,Qr,Ur,ve,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},Or)}}function Wr(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 Yr(t){return Wr(t,":hover")}const Bl=t=>t>1?di:t<0?0:t,Zn=t=>Mt.set(_l,Bl(t)),Rl=()=>{const t=parseFloat(Mt.get(_l));return isNaN(t)?di:Bl(t)},$n=t=>Mt.set(yl,t),Kr=()=>{const t=Mt.get(yl);return typeof t=="boolean"?t:!1},Xr=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()},Gr=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),xr=t=>{const e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},el=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},Jr=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Zr=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},{window:$r}=go;function e1(t){ye(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 tl(t){let e,i,n,l;e=new Il({props:{side:"left",seekStep:ci,handleSingleFirstClick:t[66],handleSecondClick:t[94]}});let o=!t[37]&&il(t);return{c(){te(e.$$.fragment),i=z(),o&&o.c(),n=et()},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&&(ae(),V(o,1,1,()=>{o=null}),re()):o?(o.p(s,a),a[1]&64&&g(o,1)):(o=il(s),o.c(),g(o,1),o.m(n.parentNode,n))},i(s){l||(g(e.$$.fragment,s),g(o),l=!0)},o(s){V(e.$$.fragment,s),V(o),l=!1},d(s){ee(e,s),s&&C(i),o&&o.d(s),s&&C(n)}}}function il(t){let e,i;return e=new Il({props:{side:"right",seekStep:ci,handleSingleFirstClick:t[66],handleSecondClick:t[95]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function nl(t){let e,i,n;return i=new Za({props:{adsSlotId:t[5],adsParams:t[6],adsPreviewParam:t[7],duration:t[8]}}),{c(){e=b("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||(g(i.$$.fragment,l),n=!0)},o(l){V(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function ll(t){let e,i,n,l;const o=[i1,t1],s=[];function a(r,u){return r[11]?0:1}return e=a(t),i=s[e]=o[e](t),{c(){i.c(),n=et()},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):(ae(),V(s[d],1,1,()=>{s[d]=null}),re(),i=s[e],i?i.p(r,u):(i=s[e]=o[e](r),i.c()),g(i,1),i.m(n.parentNode,n))},i(r){l||(g(i),l=!0)},o(r){V(i),l=!1},d(r){s[e].d(r),r&&C(n)}}}function t1(t){let e,i;return e=new Sr({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function i1(t){let e,i;return e=new Cr({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ol(t){let e,i;return e=new Tr({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function sl(t){let e,i;return e=new Br({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function al(t){let e,i,n={toggleFullscreen:t[63],hideContextMenu:t[64],isAds:t[25]===Pe.Ads};return e=new jr({props:n}),t[97](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||(g(e.$$.fragment,l),i=!0)},o(l){V(e.$$.fragment,l),i=!1},d(l){t[97](null),ee(e,l)}}}function rl(t){let e,i,n,l,o;return i=new Hr({}),{c(){e=b("div"),te(i.$$.fragment)},m(s,a){M(s,e,a),$(i,e,null),n=!0,l||(o=[oe(e,"contextmenu",St(t[65])),oe(e,"click",t[68])],l=!0)},p:I,i(s){n||(g(i.$$.fragment,s),n=!0)},o(s){V(i.$$.fragment,s),n=!1},d(s){s&&C(e),ee(i),l=!1,xe(o)}}}function cl(t){let e,i;return e=new nr({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||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ul(t){let e,i;return e=new La({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function dl(t){let e,i;return e=new fr({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(g(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function n1(t){let e,i,n,l,o,s,a,r,u,d,m,h,v,w,p,E,T,_,k;i=new za({props:{hidden:t[25]!==Pe.Thumb||t[23],thumbUrl:t[1],startVideo:t[61]}});let B=t[11]&&tl(t),N=t[4]&&t[30]&&nl(t),R=t[22]&&t[15]&&t[16]&&ll(t),y=!t[11]&&t[25]===Pe.Video&&ol(t),D=t[24]&&sl(t),F=!t[11]&&al(t);function L(ue){t[98](ue)}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 Aa({props:K}),Ge.push(()=>ho(m,"controlsElementRef",L));let J=t[23]&&rl(t),j=!t[11]&&cl(t),O=t[34]&&ul(),X=t[39]&&dl();return{c(){e=b("div"),te(i.$$.fragment),n=z(),l=b("div"),B&&B.c(),o=z(),N&&N.c(),s=z(),R&&R.c(),a=z(),y&&y.c(),r=z(),D&&D.c(),u=z(),F&&F.c(),d=z(),te(m.$$.fragment),v=z(),J&&J.c(),w=z(),j&&j.c(),p=z(),O&&O.c(),E=z(),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(ue,G){M(ue,e,G),$(i,e,null),f(e,n),f(e,l),B&&B.m(l,null),t[96](l),f(e,o),N&&N.m(e,null),f(e,s),R&&R.m(e,null),f(e,a),y&&y.m(e,null),f(e,r),D&&D.m(e,null),f(e,u),F&&F.m(e,null),f(e,d),$(m,e,null),f(e,v),J&&J.m(e,null),f(e,w),j&&j.m(e,null),f(e,p),O&&O.m(e,null),f(e,E),X&&X.m(e,null),t[99](e),T=!0,_||(k=[oe($r,"blur",t[64]),oe(l,"contextmenu",St(t[65])),oe(l,"click",t[67]),oe(e,"mouseenter",function(){Fe(t[11]?I:t[58])&&(t[11]?I:t[58]).apply(this,arguments)}),oe(e,"mouseleave",function(){Fe(t[11]?I:t[59])&&(t[11]?I:t[59]).apply(this,arguments)}),oe(e,"mousemove",function(){Fe(t[11]?I:t[60])&&(t[11]?I:t[60]).apply(this,arguments)}),oe(e,"keydown",function(){Fe(t[11]?I:t[69])&&(t[11]?I:t[69]).apply(this,arguments)})],_=!0)},p(ue,G){t=ue;const q={};G[0]&41943040&&(q.hidden=t[25]!==Pe.Thumb||t[23]),G[0]&2&&(q.thumbUrl=t[1]),i.$set(q),t[11]?B?(B.p(t,G),G[0]&2048&&g(B,1)):(B=tl(t),B.c(),g(B,1),B.m(l,null)):B&&(ae(),V(B,1,1,()=>{B=null}),re()),(!T||G[0]&33554432)&&A(l,"hidden",t[25]!==Pe.Video),(!T||G[1]&16)&&A(l,"nocursor",t[35]),t[4]&&t[30]?N?(N.p(t,G),G[0]&1073741840&&g(N,1)):(N=nl(t),N.c(),g(N,1),N.m(e,s)):N&&(ae(),V(N,1,1,()=>{N=null}),re()),t[22]&&t[15]&&t[16]?R?(R.p(t,G),G[0]&4292608&&g(R,1)):(R=ll(t),R.c(),g(R,1),R.m(e,a)):R&&(ae(),V(R,1,1,()=>{R=null}),re()),!t[11]&&t[25]===Pe.Video?y?(y.p(t,G),G[0]&33556480&&g(y,1)):(y=ol(t),y.c(),g(y,1),y.m(e,r)):y&&(ae(),V(y,1,1,()=>{y=null}),re()),t[24]?D?(D.p(t,G),G[0]&16777216&&g(D,1)):(D=sl(t),D.c(),g(D,1),D.m(e,u)):D&&(ae(),V(D,1,1,()=>{D=null}),re()),t[11]?F&&(ae(),V(F,1,1,()=>{F=null}),re()):F?(F.p(t,G),G[0]&2048&&g(F,1)):(F=al(t),F.c(),g(F,1),F.m(e,d));const ie={};G[0]&33556480&&(ie.hidden=t[25]===Pe.Thumb||t[11]&&t[25]===Pe.Ads),G[0]&2097152&&(ie.showControls=t[21]),G[0]&33554432&&(ie.isAds=t[25]===Pe.Ads),G[0]&67108868&&(ie.canRewindLive=t[2]&&t[26]!==0),G[0]&512&&(ie.logoClickable=t[9]),G[0]&1024&&(ie.logoHidden=t[10]),G[0]&4096&&(ie.showNextPrevButtons=t[12]),G[0]&8192&&(ie.nextButtonActive=t[13]),G[0]&16384&&(ie.prevButtonActive=t[14]),G[0]&131072&&(ie.isOneVideoPlaylist=t[17]),G[0]&8&&(ie.supportLink=t[3]),G[0]&262144&&(ie.playNextVideo=t[18]),G[0]&524288&&(ie.playPrevVideo=t[19]),G[0]&1048576&&(ie.repeatPlaylist=t[20]),!h&&G[0]&536870912&&(h=!0,ie.controlsElementRef=t[29],mo(()=>h=!1)),m.$set(ie),t[23]?J?(J.p(t,G),G[0]&8388608&&g(J,1)):(J=rl(t),J.c(),g(J,1),J.m(e,w)):J&&(ae(),V(J,1,1,()=>{J=null}),re()),t[11]?j&&(ae(),V(j,1,1,()=>{j=null}),re()):j?(j.p(t,G),G[0]&2048&&g(j,1)):(j=cl(t),j.c(),g(j,1),j.m(e,p)),t[34]?O?G[1]&8&&g(O,1):(O=ul(),O.c(),g(O,1),O.m(e,E)):O&&(ae(),V(O,1,1,()=>{O=null}),re()),t[39]?X?G[1]&256&&g(X,1):(X=dl(),X.c(),g(X,1),X.m(e,null)):X&&(ae(),V(X,1,1,()=>{X=null}),re())},i(ue){T||(g(i.$$.fragment,ue),g(B),g(N),g(R),g(y),g(D),g(F),g(m.$$.fragment,ue),g(J),g(j),g(O),g(X),T=!0)},o(ue){V(i.$$.fragment,ue),V(B),V(N),V(R),V(y),V(D),V(F),V(m.$$.fragment,ue),V(J),V(j),V(O),V(X),T=!1},d(ue){ue&&C(e),ee(i),B&&B.d(),t[96](null),N&&N.d(),R&&R.d(),y&&y.d(),D&&D.d(),F&&F.d(),ee(m),J&&J.d(),j&&j.d(),O&&O.d(),X&&X.d(),t[99](null),_=!1,xe(k)}}}let ci=15;function l1(t,e,i){let n,l,o,s,a,r,u,d,m,h,v,w,p,E,T,_,k,B;var N=this&&this.__awaiter||function(P,ze,je,Ke){function Ye(gt){return gt instanceof je?gt:new je(function(li){li(gt)})}return new(je||(je=Promise))(function(gt,li){function Kl(Vt){try{hi(Ke.next(Vt))}catch(pi){li(pi)}}function Xl(Vt){try{hi(Ke.throw(Vt))}catch(pi){li(pi)}}function hi(Vt){Vt.done?gt(Vt.value):Ye(Vt.value).then(Kl,Xl)}hi((Ke=Ke.apply(P,ze||[])).next())})};let{sources:R}=e,{store:y}=e,{title:D}=e,{thumbUrl:F}=e,{preload:L=!0}=e,{autoplay:K=!1}=e,{volume:J=void 0}=e,{muted:j=void 0}=e,{fromTime:O=0}=e,{canRewindLive:X=!0}=e,{supportLink:ue=Co}=e,{showAds:G=!1}=e,{adsSlotId:q=void 0}=e,{adsParams:ie=void 0}=e,{adsPreviewParam:de=void 0}=e,{duration:Ae=void 0}=e,{logoClickable:Oe=!1}=e,{logoHidden:Qe=!1}=e,{isMobile:le=!1}=e,{showNextPrevButtons:ge=!1}=e,{nextButtonActive:fe=!1}=e,{prevButtonActive:ce=!1}=e,{endScreenVideoTitle:we=void 0}=e,{endScreenVideoThumb:he=void 0}=e,{isOneVideoPlaylist:_e=!1}=e,{outerContainerRef:U=void 0}=e,{playNextVideo:H=I}=e,{playPrevVideo:Q=I}=e,{repeatPlaylist:Z=I}=e,{fullScreenTarget:Ee=void 0}=e,{failoverHosts:Je=void 0}=e;const zt=P=>{We.set(!0),P?le&&(mi.set(!0),It.set(!0),window.setTimeout(()=>{It.set(!1),ne(ji)},Vo)):ne(ji)};y.setUiCallbacks({onStarted:zt}),y.getAdmanWrapper().init({switchFromAdsToVideo:y.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:y.actions.internal.switchFromVideoToAds,setMuted:y.actions.external.setMuted},y.ads,{isMobile:y.ui.isMobile,mobileUnmuteButtonVisible:y.ui.mobileUnmuteButtonVisible});const nt=y.getLogger().createComponentLog("Root component"),bt=y.state.playbackState$;W(t,bt,P=>i(104,d=P));const rt=y.ads.playbackState;W(t,rt,P=>i(92,p=P));const ct=y.state.positionWithScrubbing$;W(t,ct,P=>i(102,r=P));const Tt=y.state.duration$;W(t,Tt,P=>i(101,a=P));const wt=y.playerPhase;W(t,wt,P=>i(25,E=P));const lt=y.ui.isFullscreen;W(t,lt,P=>i(89,s=P));const We=y.ui.controlsVisible;W(t,We,P=>i(88,o=P));const ot=y.ui.settingsMenuVisible;W(t,ot,P=>i(103,u=P));const _t=y.ui.scrubbingInProgress;W(t,_t,P=>i(90,m=P));const ut=y.ui.playerSize,Ze=y.ui.contextMenuVisible;W(t,Ze,P=>i(36,n=P));const dt=y.ui.debugPanelVisible;W(t,dt,P=>i(39,B=P));const Nt=y.state.isLoaderVisible;W(t,Nt,P=>i(93,T=P));const yt=y.state.isEnded$;W(t,yt,P=>i(87,l=P));const Y=y.state.chromecastConnected$;W(t,Y,P=>i(24,w=P));const $t=y.state.chromecastDeviceName$;W(t,$t,P=>i(38,k=P));const Lt=y.ads.postrollPassed;W(t,Lt,P=>i(91,v=P));const It=y.ui.mobileUnmuteButtonExpanded,mi=y.ui.mobileUnmuteButtonVisible,Ut=y.state.isActiveLive$;W(t,Ut,P=>i(37,_=P));const Qt=y.state.crashed$;W(t,Qt,P=>i(23,h=P));const Ne=y.webApi.pictureInPictureApi;let Wt=0;y.state.duration$.subscribe(P=>{i(26,Wt=P)}),wo(y);let ft,Bt,kt,mt,Pt=null,Yt=!1,ei=0,ti=0,Rt,ii,Ft,Kt,Xt,Gt=!1;function Ie(){clearTimeout(mt),We.set(!0)}function S(){ne(ko)}function x(){clearTimeout(mt),We.set(!0),s&&kt&&!Yr(kt)&&ne(Po)}function ne(P){i(85,mt=window.setTimeout(()=>{if(d===Se.PlaybackState.PLAYING){if(le&&u)return;We.set(!1),ot.set(!1)}},P))}const ke=P=>{if(window.ResizeObserver){let ze,je;Pt=new ResizeObserver(Gl(Ke=>{const Ye=Ke[0];if(Ye){if(Ye.contentBoxSize){const gt=Array.isArray(Ye.contentBoxSize)?Ye.contentBoxSize[0]:Ye.contentBoxSize;ze=gt.inlineSize,je=gt.blockSize}else Ye.contentRect&&(ze=Ye.contentRect.width,je=Ye.contentRect.height);ut.set({width:ze,height:je})}},kl)),Pt.observe(P)}ut.set({width:P.clientWidth,height:P.clientHeight})},Ue=P=>{const ze=P;ut.set({width:ze.target.width,height:ze.target.height})},Te=(P=!1)=>{i(30,Yt=!0),P?y.actions.external.firstStart(G):y.actions.internal.firstStart(G)};Et(()=>{if(Jr(Bi),ke(ft),y.initVideo({container:Bt,sources:R,failoverHosts:Je}),Mi(Ne)){const Ke=ft.querySelector("video");Ne==null||Ne.updateVideoElement(Ke),Ne==null||Ne.registryEventHandlers(),Ne==null||Ne.registryExternalEventHandlers({resize:Ue})}O>0&&y.actions.external.seekTime(O);const P=le?di:J!=null?J:Rl(),ze=j!=null?j:Kr();y.actions.external.setVolume(P),y.actions.external.setMuted(ze),y.getAdmanWrapper().setInitialVolume(ze?0:P),y.ui.isAutoplay.set(K),K?Te():L&&y.actions.internal.preload();const je=Boolean(Mt.get(Si));return dt.set(je),()=>{Zr(Bi),Pt==null||Pt.disconnect(),y.destroy()}}),hl(()=>N(void 0,void 0,void 0,function*(){Mi(Ne)&&(yield Ne==null?void 0:Ne.hidePictureInPicture(),Ne==null||Ne.unregistryEventHandlers())}));function $e(){Yt?y.actions.external.play():Te(!0)}function qe(){y.actions.external.pause()}function vt(P){le||y.actions.external.setMuted(P)}function vi(P){le||P>=0&&P<=1&&y.actions.external.setVolume(P)}function Li(P){y.actions.internal.seekTime(P)}const gi=P=>{let ze=r+(P==="forward"?ci:-ci);ze<0?ze=0:ze>a&&(ze=a-1),Li(ze)},Ii=()=>{if(el())Gr(document),nt({message:"exit fullscreen"});else{nt({message:"request fullscreen"});const P=U!=null?U:ft,ze=P.getRootNode(),je=ze instanceof ShadowRoot?ze.host:ze,Ke=Ee instanceof HTMLElement&&Ee.contains(je);Xr(Ee&&Ke?Ee:P)}},Bi=()=>N(void 0,void 0,void 0,function*(){var P,ze,je,Ke;const Ye=el();Ye&&(yield Ne==null?void 0:Ne.remove()),lt.set(Ye),y.getAdmanWrapper().setFullscreen(Ye),s?(ze=(P=y.callbacks)===null||P===void 0?void 0:P.onFullscreenEnter)===null||ze===void 0||ze.call(P):(Ke=(je=y.callbacks)===null||je===void 0?void 0:je.onFullscreenExit)===null||Ke===void 0||Ke.call(je)}),ni=()=>Ze.set(!1),Fl=P=>{Ze.set(!0),i(31,ei=P.clientX),i(32,ti=P.clientY)},Ri=()=>{o?We.set(!1):(We.set(!0),clearTimeout(mt),ne(Di))},ql=P=>{if(le){Ri();return}if(n){ni();return}ni(),!l&&(y.actions.internal.togglePlay(),ot.set(!1),P.detail===2&&(nt({message:"double click on video"}),Ii()))},Hl=()=>{if(n){ni();return}},Dl=P=>{Rt.keyDownHandler(P)},jl=()=>gi("backward"),Ol=()=>gi("forward");function Ul(P){Ge[P?"unshift":"push"](()=>{Bt=P,i(28,Bt)})}function Ql(P){Ge[P?"unshift":"push"](()=>{Rt=P,i(33,Rt)})}function Wl(P){kt=P,i(29,kt)}function Yl(P){Ge[P?"unshift":"push"](()=>{ft=P,i(27,ft)})}return t.$$set=P=>{"sources"in P&&i(70,R=P.sources),"store"in P&&i(71,y=P.store),"title"in P&&i(0,D=P.title),"thumbUrl"in P&&i(1,F=P.thumbUrl),"preload"in P&&i(72,L=P.preload),"autoplay"in P&&i(73,K=P.autoplay),"volume"in P&&i(74,J=P.volume),"muted"in P&&i(75,j=P.muted),"fromTime"in P&&i(76,O=P.fromTime),"canRewindLive"in P&&i(2,X=P.canRewindLive),"supportLink"in P&&i(3,ue=P.supportLink),"showAds"in P&&i(4,G=P.showAds),"adsSlotId"in P&&i(5,q=P.adsSlotId),"adsParams"in P&&i(6,ie=P.adsParams),"adsPreviewParam"in P&&i(7,de=P.adsPreviewParam),"duration"in P&&i(8,Ae=P.duration),"logoClickable"in P&&i(9,Oe=P.logoClickable),"logoHidden"in P&&i(10,Qe=P.logoHidden),"isMobile"in P&&i(11,le=P.isMobile),"showNextPrevButtons"in P&&i(12,ge=P.showNextPrevButtons),"nextButtonActive"in P&&i(13,fe=P.nextButtonActive),"prevButtonActive"in P&&i(14,ce=P.prevButtonActive),"endScreenVideoTitle"in P&&i(15,we=P.endScreenVideoTitle),"endScreenVideoThumb"in P&&i(16,he=P.endScreenVideoThumb),"isOneVideoPlaylist"in P&&i(17,_e=P.isOneVideoPlaylist),"outerContainerRef"in P&&i(77,U=P.outerContainerRef),"playNextVideo"in P&&i(18,H=P.playNextVideo),"playPrevVideo"in P&&i(19,Q=P.playPrevVideo),"repeatPlaylist"in P&&i(20,Z=P.repeatPlaylist),"fullScreenTarget"in P&&i(78,Ee=P.fullScreenTarget),"failoverHosts"in P&&i(79,Je=P.failoverHosts)},t.$$.update=()=>{t.$$.dirty[0]&41943040|t.$$.dirty[2]&1073741824|t.$$.dirty[3]&1&&i(34,ii=(E===Pe.Video&&T||E===Pe.Ads&&p===Re.INACTIVE)&&!h),t.$$.dirty[0]&25165824|t.$$.dirty[2]&100663296&&i(21,Ft=(o||w||l)&&!h),t.$$.dirty[0]&8388624|t.$$.dirty[2]&570425344&&i(22,Kt=(G&&v||!G)&&l&&!h),t.$$.dirty[0]&6291456|t.$$.dirty[2]&134217728&&i(35,Xt=s&&!(Ft||Kt)),t.$$.dirty[0]&2048|t.$$.dirty[2]&512&&y.ui.isMobile.set(le),t.$$.dirty[0]&2048|t.$$.dirty[2]&293601280&&(Gt!==m&&le&&(clearTimeout(mt),m?We.set(!0):ne(Di)),i(86,Gt=m))},[D,F,X,ue,G,q,ie,de,Ae,Oe,Qe,le,ge,fe,ce,we,he,_e,H,Q,Z,Ft,Kt,h,w,E,Wt,ft,Bt,kt,Yt,ei,ti,Rt,ii,Xt,n,_,k,B,bt,rt,ct,Tt,wt,lt,We,ot,_t,Ze,dt,Nt,yt,Y,$t,Lt,Ut,Qt,Ie,S,x,Te,gi,Ii,ni,Fl,Ri,ql,Hl,Dl,R,y,L,K,J,j,O,U,Ee,Je,$e,qe,vt,vi,Li,mt,Gt,l,o,s,m,v,p,T,jl,Ol,Ul,Ql,Wl,Yl]}class o1 extends be{constructor(e){super(),pe(this,e,l1,n1,ve,{sources:70,store:71,title:0,thumbUrl:1,preload:72,autoplay:73,volume:74,muted:75,fromTime:76,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:77,playNextVideo:18,playPrevVideo:19,repeatPlaylist:20,fullScreenTarget:78,failoverHosts:79,play:80,pause:81,setMuted:82,setVolume:83,seekTime:84},e1,[-1,-1,-1,-1])}get play(){return this.$$.ctx[80]}get pause(){return this.$$.ctx[81]}get setMuted(){return this.$$.ctx[82]}get setVolume(){return this.$$.ctx[83]}get seekTime(){return this.$$.ctx[84]}}var s1="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 a1(t){ye(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 fl(t){let e,i;return{c(){e=b("div"),i=me(t[0]),c(e,"class","title v-1oqts7t")},m(n,l){M(n,e,l),f(e,i)},p(n,l){l&1&&Me(i,n[0])},d(n){n&&C(e)}}}function ml(t){let e,i;return{c(){e=b("img"),Ve(e.src,i=s1)||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 r1(t){let e,i,n,l=t[0]&&fl(t),o=(!t[0]||!t[1])&&ml(t);return{c(){e=b("div"),l&&l.c(),i=z(),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=fl(s),l.c(),l.m(e,i)):l&&(l.d(1),l=null),!s[0]||!s[1]?o?o.p(s,a):(o=ml(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:I,o:I,d(s){s&&C(e),l&&l.d(),o&&o.d()}}}function c1(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 u1 extends be{constructor(e){super(),pe(this,e,c1,r1,ve,{title:0,thumbUrl:1},a1)}}const d1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,f1="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",m1=2e3,v1=2e3;class g1{constructor(e){this.adman=null,this.initialVolume=di,this.videoElement=null,this.currentAdSection=null,this.actions=null,this.adsState=null,this.uiState=null,this.events={slotRequested$:new se.Subject,started$:new se.Subject,paused$:new se.Subject,resumed$:new se.Subject,ended$:new se.Subject,skipped$:new se.Subject,clicked$:new se.Subject},this.loadAdman=i=>new Promise((n,l)=>{let o;const s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?n():l()};se.addScript(f1,i,m1).then(()=>{window.AdmanHTML?n():(window.admanAsyncInit=s,o=window.setTimeout(s,v1))}).catch(()=>{l()})}),this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()},this.onAdStarted=(i,n)=>{se.assertNonNullable(this.adsState),se.assertNonNullable(this.uiState),se.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"}),Be(this.uiState.isMobile)&&this.uiState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(n.duration),this.adsState.playbackState.set(Re.PLAYING),this.adsState.canSkip.set(n.allowClose),this.adsState.secondsToWatchBeforeSkip.set(n.allowCloseDelay)},this.onAdTimeRemained=({currentTime:i})=>{se.assertNonNullable(this.adsState),this.adsState.position.set(i)},this.onAdPaused=()=>{se.assertNonNullable(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(Re.PAUSED)},this.onAdPlayed=()=>{se.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(Re.PLAYING)},this.onAdMidrollPoint=()=>{se.assertNonNullable(this.adman),se.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=st.Midroll,this.adman.start(st.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,h=Object.assign({dl:encodeURIComponent(window.location.href),autoplay:o,player_width:i,player_height:n,puid10:d1(i,n),puid11:l?0:1,preview:m,duration:d},u),v={slot:r,wrapper:s,videoEl:a,videoQuality:n,params:h,browser:{mobile:!1}},w=new window.AdmanHTML;w.setDebug(!1),w.onReady(this.onAdsReady),w.onStarted(this.onAdStarted),w.onPlayed(this.onAdPlayed),w.onPaused(this.onAdPaused),w.adMidrollPoint(this.onAdMidrollPoint),w.onClosed(this.onAdClosed),w.onSkipped(this.onAdSkipped),w.onClicked(this.onAdClicked),w.onTimeRemained(this.onAdTimeRemained),w.onCompleted(this.onAdCompleted),w.onError(this.onAdError),w.init(v),this.adman=w,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(v)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}se.assertNonNullable(this.actions),se.assertNonNullable(this.adsState),se.assertNonNullable(this.uiState);const i=this.currentAdSection===st.Postroll;this.adsState.playbackState.set(Re.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(){se.assertNonNullable(this.adsState),this.log({message:"toggle play"});const e=Be(this.adsState.playbackState);e===Re.PLAYING?this.pause():e===Re.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(){se.assertNonNullable(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=st.Preroll,this.adman.start(st.Preroll)}startPostroll(){se.assertNonNullable(this.adman),se.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=st.Postroll,this.adman.start(st.Postroll)}play(){se.assertNonNullable(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){se.assertNonNullable(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){se.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 h1=()=>/ipad|iphone|ipod/.test(window.navigator.userAgent.toLowerCase()),p1=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:""},b1=(t,e,i)=>{const n=new se.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},w1=({videoId:t,albumId:e,autoplay:i,statPlace:n,statAuthToken:l,refreshStatAuthToken:o,callbacks:s,webApi:a})=>{const r=new Se.Player,u=new se.Logger,d=new g1(u),m=a==null?void 0:a.pictureInPictureApi,h=u.createComponentLog("Store");let v,w,p={};const E=Ot([],S=>{let x=[];const ne=se.merge(r.events.managedError$,r.events.fatalError$).subscribe(ke=>{x=[...x,ke],S(x)});return()=>ne.unsubscribe()}),T=Ot(!1,S=>{const x=r.events.fatalError$.subscribe(()=>S(!0));return()=>x.unsubscribe()}),_=Le(Pe.Thumb),k=tt([T,_],([S,x])=>S?Pe.Crashed:x);h({message:"create store"});const B=S=>{h({message:`init video, config: ${JSON.stringify(S)}`}),r.initVideo(S),v=S},N=new Fi.OneStat({movieId:t,albumId:e,place:n,autoplay:i},{apiEnv:Fi.ApiEnv.VK_ALIAS,refreshAuthToken:o}),R=b1(r,d.events,N);N.authorize(l).catch(S=>{h({message:`onestat auth error ${String(S)}`})});const y=()=>{h1()&&w&&xr(w)},D=new se.Subscription().add(r.experimental.element$.subscribe(S=>{S&&(w=S,S.classList.add("player-media"))})).add(r.events.ended$.subscribe(()=>{var S;y(),(S=s==null?void 0:s.onEnded)===null||S===void 0||S.call(s)})).add(r.events.started$.subscribe(()=>Ct(void 0,void 0,void 0,function*(){var S,x;Mi(m)&&(yield m==null?void 0:m.revealPictureInPicture());const ne=r.info.muted$.getValue();(S=s==null?void 0:s.onStarted)===null||S===void 0||S.call(s),(x=p.onStarted)===null||x===void 0||x.call(p,ne)}))).add(r.events.willSeek$.subscribe(({from:S,to:x})=>{var ne;(ne=s==null?void 0:s.onSeek)===null||ne===void 0||ne.call(s,S,x)})).add(r.info.position$.subscribe(S=>{var x;const ne=r.info.duration$.getValue();(x=s==null?void 0:s.onTimeupdate)===null||x===void 0||x.call(s,ne,S),d.setPosition(S,ne)})).add(r.events.fatalError$.subscribe(()=>{var S;(S=s==null?void 0:s.onCrashed)===null||S===void 0||S.call(s)})),F=new se.Subscription,L=()=>{F.add(r.events.log$.subscribe(S=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${S.component}`,S.message)})).add(u.log$.subscribe(S=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${S.component}.`,S.message)}))},K=()=>{F.unsubscribe()},J=Ot(r.info.position$.getValue(),S=>{let x,ne;const ke=()=>{const Ue=r.info.playbackState$.getValue(),Te=r.info.isLive$.getValue(),$e=r.info.duration$.getValue(),qe=r.info.position$.getValue();if([Se.PlaybackState.PLAYING,Se.PlaybackState.PAUSED].includes(Ue)){const vt=Te?qe-$e:r.getExactTime();vt!==ne&&S(vt),ne=vt}x=requestAnimationFrame(ke)};return ke(),()=>cancelAnimationFrame(x)}),j=He(r.info.playbackState$),O=He(r.info.currentBuffer$),X=He(r.info.isEnded$),ue=He(r.info.isLive$),G=He(r.info.volume$),q=He(r.info.muted$),ie=He(r.info.availableQualities$),de=He(r.info.availableQualitiesFps$),Ae=He(r.info.chromecastState$),Oe=He(r.info.chromecastDeviceName$),Qe=He(r.info.currentFormat$),le=He(r.info.throughputEstimation$),ge=He(r.info.videoBitrate$),fe=He(r.info.duration$);let ce=null;const we=r.info.isBuffering$,he=Ot(we.getValue(),S=>{const x=we.subscribe(ne=>{ne&&ce===null?ce=window.setTimeout(()=>{S(we.getValue()),ce=null},Mo):S(ne)});return()=>{x.unsubscribe(),ce&&clearTimeout(ce)}}),_e=tt([fe,ue],([S,x])=>x?-S:S),U=He(r.info.position$),H=tt([ue,U],([S,x])=>Boolean(S&&x>-se.ACTIVE_LIVE_VALID_DELAY)),Q=tt([ue,U,fe],([S,x,ne])=>Boolean(S&&x<ne+se.ACTIVE_LIVE_VALID_DELAY)),Z=tt([Ae],([S])=>S===Se.ChromecastState.CONNECTED),Ee=Le(void 0),Je=He(r.info.isAutoQualityEnabled$,S=>S&&Ee.set(void 0)),zt=He(r.info.currentQuality$,()=>Ee.set(void 0)),nt=tt([Ee,zt],([S,x])=>S!=null?S:x),bt=tt([ie,de,Je,nt,Qe],([S,x,ne,ke,Ue])=>{const Te=[];Ue!==Se.VideoFormat.MPEG&&Te.push({value:Jt.AUTO,displayValue:ri,selected:ne});const $e=S.filter(qe=>qe!==Se.VideoQuality.INVARIANT);for(const qe of $e){const vt=x[qe],vi=qe===Se.VideoQuality.INVARIANT?ri:qe;Te.push({value:qe,displayValue:`${vi}${vt?p1(vt):""}`,selected:ne?!1:qe===ke})}return Te}),rt=He(r.info.currentPlaybackRate$),ct=tt([rt],([S])=>{const Ue=[];for(let Te=.25;Te<=2;Te+=.25)Ue.push({value:Te,displayValue:Te===1?"\u041E\u0431\u044B\u0447\u043D\u0430\u044F":Te+"x",selected:S===Te});return Ue}),Tt=tt([O,_e],([S,x],ne)=>{var ke;return ne(((ke=S==null?void 0:S.end)!==null&&ke!==void 0?ke:0)/x)}),wt=()=>{h({message:"toggle muted"});const S=r.info.muted$.getValue(),ke=!(r.info.volume$.getValue()===0||S);We(ke)},lt=(S,x=S,ne=!1)=>{var ke,Ue;const Te=!ne,$e=r.info.muted$.getValue();h({message:`set volume, volume: ${S}, preferredVolume: ${x}, internalCall: ${Te}`}),r.setVolume(S),d.setVolume(S),Te&&((ke=s==null?void 0:s.onVolumeChange)===null||ke===void 0||ke.call(s,S)),Zn(x),$e&&(r.setMuted(!1),Te&&((Ue=s==null?void 0:s.onUnmute)===null||Ue===void 0||Ue.call(s)),$n(!1))},We=(S,x=!1)=>{var ne,ke,Ue;const Te=!x,$e=r.info.volume$.getValue();if(h({message:`set muted, currentVolume: ${$e}, mute: ${S}, internalCall: ${Te}`}),r.setMuted(S),d.setVolume(S?0:$e),$n(S),Te&&(S?(ne=s==null?void 0:s.onMute)===null||ne===void 0||ne.call(s):(ke=s==null?void 0:s.onUnmute)===null||ke===void 0||ke.call(s)),$e===0){let qe=Rl();qe===0&&(qe=Ao,Zn(qe)),r.setVolume(qe),d.setVolume(qe),Te&&((Ue=s==null?void 0:s.onVolumeChange)===null||Ue===void 0||Ue.call(s,qe))}},ot=()=>{r.prepare()},_t=()=>{var S,x;if(se.assertNonNullable(Ie),h({message:"toggle play"}),Be(Ie.playerPhase)===Pe.Ads){d.togglePlay();return}r.info.playbackState$.getValue()!==Se.PlaybackState.PLAYING?(r.info.isEnded$.getValue()&&(h({message:"toggle play, video ended, seek to 0"}),r.seekTime(0)),h({message:"toggle play, call player.play"}),r.play(),(S=s==null?void 0:s.onPlay)===null||S===void 0||S.call(s)):(h({message:"toggle play, call player.pause"}),r.pause(),(x=s==null?void 0:s.onPause)===null||x===void 0||x.call(s))},ut=S=>{h({message:`set quality, quality: ${S}`}),r.setAutoQuality(S===Jt.AUTO),S!==Jt.AUTO&&(Ee.set(S),r.setQuality(S))},Ze=S=>{r.setPlaybackRate(S)},dt=()=>{const S=Be(ct),x=S.findIndex(({selected:ke})=>ke);if(x===S.length-1)return;const ne=S[x+1];Ze(ne.value)},Nt=()=>{const S=Be(ct),x=S.findIndex(({selected:ke})=>ke);if(x===0)return;const ne=S[x-1];Ze(ne.value)},yt=(S,x=!0)=>{if(h({message:`seek to time, time: ${S}`}),r.info.isLive$.getValue()){const ne=r.info.duration$.getValue(),ke=Math.min(0,ne+S);r.seekTime(ke,x)}else r.seekTime(S,x)},Y=S=>{h({message:`seek to percent, percent: ${S}`});const x=Math.round(Be(_e)*S);yt(x,!1)},$t=S=>{h({message:`seek external, time: ${S}`}),r.seekTime(r.info.isLive$.getValue()?-S:S)},Lt=Le(void 0),It=Le(!1),mi=S=>{h({message:`start scrubbing, progress: ${S}`}),It.set(!0),Ut(S)},Ut=S=>{Lt.set(S)};let Qt;const Ne=()=>{Lt.set(void 0),It.set(!1)},Wt=()=>{clearTimeout(Qt),Qt=window.setTimeout(()=>{Ne()},500),w==null||w.removeEventListener("canplay",Wt)},ft=S=>{h({message:`complete scrubbing, progress: ${S}`}),Y(S),Be(Ie.ui.isMobile)&&Be(Ie.state.currentFormat$)===Se.VideoFormat.HLS?w==null||w.addEventListener("canplay",Wt):Ne()},Bt=tt([J,_e,Lt],([S,x,ne],ke)=>{ke(se.isNonNullable(ne)?ne*x:S)}),kt=()=>{h({message:"switch to active live"}),r.seekTime(0)},mt=()=>d.skip(),Pt=(S=!0)=>{se.assertNonNullable(Ie),h({message:`switch from ads to video, callPlay: ${S}`}),_.set(Pe.Video),S&&r.play()},Yt=()=>{se.assertNonNullable(Ie),h({message:"switch from video to ads"}),Ie.actions.internal.pause(),y(),_.set(Pe.Ads)},ei=()=>(se.assertNonNullable(Ie),_o(r,v,Ie)),ti=()=>(se.assertNonNullable(Ie),yo(r,v,Ie)),Rt=()=>w,ii=()=>{h({message:"toggle chromecast"}),r.toggleChromecast()},Ft=S=>{var x;se.assertNonNullable(Ie);const ne=!S;if(Be(Ie.playerPhase)===Pe.Ads){h({message:`pause ads, internalCall: ${ne}`}),d.pause();return}h({message:`pause video, internalCall: ${ne}`}),ne&&((x=s==null?void 0:s.onPause)===null||x===void 0||x.call(s)),r.pause()},Kt=S=>{var x;se.assertNonNullable(Ie);const ne=!S;if(Be(Ie.playerPhase)===Pe.Ads){h({message:`play ads, internalCall: ${ne}`}),d.play();return}h({message:`play video, internalCall: ${ne}`}),ne&&((x=s==null?void 0:s.onPlay)===null||x===void 0||x.call(s)),r.play()},Xt=(S,x)=>{se.assertNonNullable(Ie),h({message:`first start, show ads: ${S}, internalCall: ${!x}`}),S?_.set(Pe.Ads):(_.set(Pe.Video),x?r.play():Ie.actions.internal.togglePlay())},Gt=()=>{N.destroy(),R.unsubscribe(),D.unsubscribe(),F.unsubscribe(),r.destroy(),d.destroy()},Ie={initVideo:B,videoId:t,playerPhase:k,state:{positionExact$:J,positionWithScrubbing$:Bt,duration$:_e,playbackState$:j,isLoaderVisible:he,bufferedProgress$:Tt,isLive$:ue,isActiveLive$:H,isMaxSeekBackTime$:Q,isEnded$:X,muted$:q,volume$:G,currentQuality$:nt,isAutoQualityEnabled$:Je,availableQualities$:bt,currentPlaybackRate$:rt,availablePlaybackRates$:ct,chromecastState$:Ae,chromecastDeviceName$:Oe,chromecastConnected$:Z,currentFormat$:Qe,throughputEstimation$:le,videoBitrate$:ge,errorLog$:E,crashed$:T},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(Re.INACTIVE),canSkip:Le(!1),secondsToWatchBeforeSkip:Le(0),postrollPassed:Le(!1)},webApi:{pictureInPictureApi:m},actions:{internal:{preload:ot,firstStart:S=>Xt(S,!1),pause:()=>Ft(!1),togglePlay:_t,toggleMuted:wt,setVolume:lt,setQuality:ut,setPlaybackRate:Ze,incrementPlaybackRate:dt,decrementPlaybackRate:Nt,startScrubbing:mi,progressScrubbing:Ut,completeScrubbing:ft,toggleChromecast:ii,switchToActiveLive:kt,switchFromAdsToVideo:Pt,switchFromVideoToAds:Yt,skipAd:mt,getDebugTextData:ei,getDebugPanelData:ti,getVideoElement:Rt,seekTime:S=>yt(S),startLogging:L,stopLogging:K},external:{firstStart:S=>Xt(S,!0),play:()=>Kt(!0),pause:()=>Ft(!0),seekTime:S=>$t(S),setMuted:S=>We(S,!0),setVolume:S=>lt(S,S,!0)}},callbacks:s,setUiCallbacks:S=>{p=Object.assign({},S)},getAdmanWrapper:()=>d,getLogger:()=>u,destroy:Gt};return Ie};class _1{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){const e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(const[i,n]of e)try{navigator.mediaSession.setActionHandler(i,n)}catch(l){throw new Error(`The media session action "${i}" is not supported yet.`)}}}class y1{static getLatestSupportedVersion(){return new Cl}}class k1 extends HTMLElement{constructor(){var e;super(),this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=!1,this.config=void 0,this.pictureInPictureApi=void 0,this.mediaSessionApi=void 0,this.unsubscribePlayerPhaseSubscription=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 se.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new se.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 u1({target:this.playerContainer,props:{title:n,thumbUrl:l}})}disconnectedCallback(){var e,i,n;(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),(i=this.svelteStubComponent)===null||i===void 0||i.$destroy(),this.subscription.unsubscribe(),(n=this.unsubscribePlayerPhaseSubscription)===null||n===void 0||n.call(this)}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,statAuthToken:o,refreshStatAuthToken:s,preload:a,autoplay:r,volume:u,muted:d,fromTime:m,canRewindLive:h,supportLink:v,showAds:w,adsSlotId:p,adsParams:E={},adsPreviewParam:T,logoClickable:_,logoHidden:k,isMobile:B,fullScreenTarget:N,failoverHosts:R,callbacks:y}=Object.assign(Object.assign({},this.config),i),{sources:D,title:F,thumbUrl:L,unitedVideoId:K,duration:J,adsParams:j={}}=e,O=Object.assign(Object.assign({},E),j),X=this.getNextVideoInfo(),ue={sources:D,title:F,thumbUrl:L,unitedVideoId:K,albumId:n,statPlace:l,autoplay:r,muted:d,volume:u,fromTime:m,canRewindLive:h,supportLink:v,showAds:w,adsSlotId:p,adsParams:O,adsPreviewParam:T,duration:J,logoClickable:_,logoHidden:k,isMobile:B,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:X.nextVideoTitle,endScreenVideoThumb:X.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},G={pictureInPictureApi:this.pictureInPictureApi};this.log({message:`create player, props: ${JSON.stringify(ue)}`}),this.store=w1({videoId:K,albumId:n,autoplay:r,statPlace:l,statAuthToken:o,refreshStatAuthToken:s,callbacks:y,webApi:G}),this.store.state.currentFormat$.subscribe(q=>{var ie;(ie=y==null?void 0:y.onCurrentFormatChanged)===null||ie===void 0||ie.call(y,q)}),this.store.state.throughputEstimation$.subscribe(q=>{var ie;(ie=y==null?void 0:y.onThroughputEstimationChanged)===null||ie===void 0||ie.call(y,q)}),this.store.state.videoBitrate$.subscribe(q=>{var ie;(ie=y==null?void 0:y.onVideoBitrateChanged)===null||ie===void 0||ie.call(y,q)}),this.initMediaSession(),this.svelteRootComponent=new o1({target:this.playerContainer,props:{sources:D,store:this.store,title:F,thumbUrl:L,preload:a,autoplay:r,muted:d,volume:u,fromTime:m,canRewindLive:h,supportLink:v,showAds:w,adsSlotId:p,adsParams:O,adsPreviewParam:T,duration:J,logoClickable:_,logoHidden:k,isMobile:B,failoverHosts:R,fullScreenTarget:N,outerContainerRef:this.playerContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:X.nextVideoTitle,endScreenVideoThumb:X.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=Jl(e,o=>o instanceof HTMLElement?o:void 0),this.config.callbacks=(i=e.callbacks)!==null&&i!==void 0?i:{},this.currentPlayingVideoIndex=0,this.pictureInPictureApi=this.config.isPictureInPictureEnabled?y1.getLatestSupportedVersion():void 0,this.mediaSessionApi=this.config.isMediaSessionEnabled?new _1:void 0,(n=this.svelteStubComponent)===null||n===void 0||n.$destroy(),(l=this.svelteRootComponent)===null||l===void 0||l.$destroy(),this.createPlayer(e.videos[0]),_s(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}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()})}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)===null||e===void 0||e.call(this),this.unsubscribePlayerPhaseSubscription=(i=this.store)===null||i===void 0?void 0:i.playerPhase.subscribe(n=>{n===Pe.Video?this.setupMediaSessionForVideo():n===Pe.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.config||!this.mediaSessionApi))try{const{title:e,thumbUrl:i}=Object.assign({},this.config.videos[this.currentPlayingVideoIndex]),n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)],["nexttrack",()=>this.playNextVideo()],["previoustrack",()=>this.playPrevVideo()]];this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(n)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.config||!this.mediaSessionApi))try{const e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i)}catch(e){this.log({message:e.message})}}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 P1=()=>{window.customElements.define("vk-video-player",k1)};exports.registerPlayerWebComponent=P1;
37
+ )}.hidden.v-cus9x4{visibility:hidden;transform:translateY(calc(var(--videoplayer-controls-gradient-height) * -1));opacity:0}`)}function Er(t){let e,i;return{c(){e=b("div"),i=me(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&&Me(i,n[0]),l&2&&A(e,"hidden",n[1])},i:I,o:I,d(n){n&&C(e)}}}function Tr(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 zr extends be{constructor(e){super(),pe(this,e,Tr,Er,ve,{title:0,isHidden:1},Mr)}}function Nr(t){ke(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 Jn(t){let e,i,n;return{c(){e=b("div"),i=me("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=me(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&&Me(n,l[1])},d(l){l&&C(e)}}}function Lr(t){let e,i,n,l,o,s,a=t[1]&&Jn(t);return{c(){e=b("div"),i=b("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=se(e,"click",t[2]),o=!0)},p(r,[u]){r[1]?a?a.p(r,u):(a=Jn(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:I,o:I,d(r){r&&C(e),a&&a.d(),o=!1,s()}}}function Ir(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:l}=e;function o(s){lt.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 Br extends be{constructor(e){super(),pe(this,e,Ir,Lr,ve,{thumbUrl:0,chromecastDeviceName:1},Nr)}}var Rr="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 Fr(t){ke(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 qr(t){let e,i,n;return{c(){e=b("div"),i=b("img"),Ve(i.src,n=Rr)||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:I,i:I,o:I,d(l){l&&C(e)}}}class Hr extends be{constructor(e){super(),pe(this,e,null,qr,ve,{},Fr)}}function Dr(t,e,i){let n,l,o,s,a,{isAds:r}=e,{hideContextMenu:u}=e,{toggleFullscreen:d}=e;const m=De(),g=m.getLogger().createComponentLog("KeyboardControls component"),v=m.state.playbackState$;W(t,v,k=>i(13,a=k));const w=m.ads.playbackState;W(t,w,k=>i(12,s=k));const p=m.state.positionExact$;W(t,p,k=>i(11,o=k));const E=m.state.duration$;W(t,E,k=>i(10,l=k));const z=m.state.volume$;W(t,z,k=>i(9,n=k));const _=k=>{u();const B=k.code;if(k.ctrlKey||k.altKey||k.metaKey)return;const N=a===Se.PlaybackState.PLAYING||a===Se.PlaybackState.PAUSED,R=r&&(s===Re.PAUSED||s===Re.PLAYING);if(N||R)switch(g({message:`key down, code: ${B}`}),B){case Xe.KeyJ:case Xe.ArrowLeft:{if(R)break;const y=Math.max(o-Qi,0);o>0&&m.actions.internal.seekTime(y),k.preventDefault();break}case Xe.KeyL:case Xe.ArrowRight:{if(R)break;const y=Math.min(o+Qi,l);o<l&&m.actions.internal.seekTime(y),k.preventDefault();break}case Xe.ArrowUp:{const y=Math.min(n+Ui,Oi);n<Oi&&m.actions.internal.setVolume(y),k.preventDefault();break}case Xe.ArrowDown:{const y=Math.max(n-Ui,0);n>0&&m.actions.internal.setVolume(y),k.preventDefault();break}case Xe.Comma:{k.shiftKey&&(m.actions.internal.decrementPlaybackRate(),k.preventDefault());break}case Xe.Period:{k.shiftKey&&(m.actions.internal.incrementPlaybackRate(),k.preventDefault());break}case Xe.KeyK:case Xe.Space:m.actions.internal.togglePlay(),k.preventDefault();break;case Xe.KeyM:m.actions.internal.toggleMuted(),k.preventDefault();break;case Xe.KeyF:d(),k.preventDefault();break;default:ae.checkNever(B);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)},[v,w,p,E,z,r,u,d,_]}class jr extends be{constructor(e){super(),pe(this,e,Dr,null,ve,{isAds:5,hideContextMenu:6,toggleFullscreen:7,keyDownHandler:8})}get keyDownHandler(){return this.$$.ctx[8]}}function Or(t){ke(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 xn(t){let e,i,n,l,o,s,a,r,u,d,m,g,v,w,p,E,z;return{c(){e=b("div"),n=T(),l=b("div"),o=b("div"),s=b("div"),r=T(),u=b("div"),m=T(),g=b("div"),w=T(),p=b("p"),E=me(t[1]),z=me(" \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(g,"class",v="triangle "+t[0]+" v-1c30l04"),c(o,"class","triangles-wrapper v-1c30l04"),c(p,"class","step-caption v-1c30l04"),c(l,"class","info v-1c30l04")},m(_,k){M(_,e,k),M(_,n,k),M(_,l,k),f(l,o),f(o,s),f(o,r),f(o,u),f(o,m),f(o,g),f(l,w),f(l,p),f(p,E),f(p,z)},p(_,k){k&1&&i!==(i="semicircle "+_[0]+" v-1c30l04")&&c(e,"class",i),k&1&&a!==(a="triangle "+_[0]+" v-1c30l04")&&c(s,"class",a),k&1&&d!==(d="triangle "+_[0]+" v-1c30l04")&&c(u,"class",d),k&1&&v!==(v="triangle "+_[0]+" v-1c30l04")&&c(g,"class",v),k&2&&Me(E,_[1])},d(_){_&&C(e),_&&C(n),_&&C(l)}}}function Ur(t){let e,i,n,l,o=t[2]&&xn(t);return{c(){e=b("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=se(e,"click",so(t[3]())),n=!0)},p(s,[a]){s[2]?o?o.p(s,a):(o=xn(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:I,o:I,d(s){s&&C(e),o&&o.d(),n=!1,l()}}}function Qr(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 g=0;return()=>{g+=1,g===1?r=window.setTimeout(()=>{o(),g=0},300):(window.clearTimeout(r),g=0,s(),i(2,a=!0),u=window.setTimeout(()=>{i(2,a=!1)},500))}};return pl(()=>{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 Bl extends be{constructor(e){super(),pe(this,e,Qr,Ur,ve,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},Or)}}function Wr(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 Yr(t){return Wr(t,":hover")}const Rl=t=>t>1?di:t<0?0:t,Zn=t=>Mt.set(yl,Rl(t)),Fl=()=>{const t=parseFloat(Mt.get(yl));return isNaN(t)?di:Rl(t)},$n=t=>Mt.set(kl,t),Kr=()=>{const t=Mt.get(kl);return typeof t=="boolean"?t:!1},Xr=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()},Gr=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Jr=t=>{const e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},el=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},xr=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Zr=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},$r=()=>{const t=window.screen;return(i=>gt(void 0,void 0,void 0,function*(){return t.orientation?t.orientation.lock(i):t.mozLockOrientation?t.mozLockOrientation(i):t.msLockOrientation?t.msLockOrientation(i):Promise.reject()}))("landscape")},{window:e1}=ho;function t1(t){ke(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 tl(t){let e,i,n,l;e=new Bl({props:{side:"left",seekStep:ci,handleSingleFirstClick:t[67],handleSecondClick:t[97]}});let o=!t[38]&&il(t);return{c(){te(e.$$.fragment),i=T(),o&&o.c(),n=it()},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[38]?o&&(re(),V(o,1,1,()=>{o=null}),ce()):o?(o.p(s,a),a[1]&128&&h(o,1)):(o=il(s),o.c(),h(o,1),o.m(n.parentNode,n))},i(s){l||(h(e.$$.fragment,s),h(o),l=!0)},o(s){V(e.$$.fragment,s),V(o),l=!1},d(s){ee(e,s),s&&C(i),o&&o.d(s),s&&C(n)}}}function il(t){let e,i;return e=new Bl({props:{side:"right",seekStep:ci,handleSingleFirstClick:t[67],handleSecondClick:t[98]}}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},p:I,i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function nl(t){let e,i,n;return i=new Za({props:{adsSlotId:t[5],adsParams:t[6],adsPreviewParam:t[7],duration:t[8]}}),{c(){e=b("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||(h(i.$$.fragment,l),n=!0)},o(l){V(i.$$.fragment,l),n=!1},d(l){l&&C(e),ee(i)}}}function ll(t){let e,i,n,l;const o=[n1,i1],s=[];function a(r,u){return r[11]?0:1}return e=a(t),i=s[e]=o[e](t),{c(){i.c(),n=it()},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):(re(),V(s[d],1,1,()=>{s[d]=null}),ce(),i=s[e],i?i.p(r,u):(i=s[e]=o[e](r),i.c()),h(i,1),i.m(n.parentNode,n))},i(r){l||(h(i),l=!0)},o(r){V(i),l=!1},d(r){s[e].d(r),r&&C(n)}}}function i1(t){let e,i;return e=new Sr({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function n1(t){let e,i;return e=new Cr({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ol(t){let e,i;return e=new zr({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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function sl(t){let e,i;return e=new Br({props:{thumbUrl:t[1],chromecastDeviceName:t[39]}}),{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]&256&&(o.chromecastDeviceName=n[39]),e.$set(o)},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function al(t){let e,i,n={toggleFullscreen:t[64],hideContextMenu:t[65],isAds:t[25]===Pe.Ads};return e=new jr({props:n}),t[100](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||(h(e.$$.fragment,l),i=!0)},o(l){V(e.$$.fragment,l),i=!1},d(l){t[100](null),ee(e,l)}}}function rl(t){let e,i,n,l,o;return i=new Hr({}),{c(){e=b("div"),te(i.$$.fragment)},m(s,a){M(s,e,a),$(i,e,null),n=!0,l||(o=[se(e,"contextmenu",At(t[66])),se(e,"click",t[69])],l=!0)},p:I,i(s){n||(h(i.$$.fragment,s),n=!0)},o(s){V(i.$$.fragment,s),n=!1},d(s){s&&C(e),ee(i),l=!1,xe(o)}}}function cl(t){let e,i;return e=new nr({props:{supportLink:t[3],visible:t[37],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]&64&&(o.visible=n[37]),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||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function ul(t){let e,i;return e=new La({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function dl(t){let e,i;return e=new fr({}),{c(){te(e.$$.fragment)},m(n,l){$(e,n,l),i=!0},i(n){i||(h(e.$$.fragment,n),i=!0)},o(n){V(e.$$.fragment,n),i=!1},d(n){ee(e,n)}}}function l1(t){let e,i,n,l,o,s,a,r,u,d,m,g,v,w,p,E,z,_,k;i=new Ta({props:{hidden:t[25]!==Pe.Thumb||t[23],thumbUrl:t[1],startVideo:t[62]}});let B=t[11]&&t[36]&&tl(t),N=t[4]&&t[30]&&nl(t),R=t[22]&&t[15]&&t[16]&&ll(t),y=!t[11]&&t[25]===Pe.Video&&ol(t),D=t[24]&&sl(t),F=!t[11]&&al(t);function L(ue){t[101](ue)}let X={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],canShowTimeline:t[36],playNextVideo:t[18],playPrevVideo:t[19],repeatPlaylist:t[20],toggleFullscreen:t[64]};t[29]!==void 0&&(X.controlsElementRef=t[29]),m=new Aa({props:X}),Je.push(()=>go(m,"controlsElementRef",L));let x=t[23]&&rl(t),j=!t[11]&&cl(t),O=t[34]&&ul(),G=t[40]&&dl();return{c(){e=b("div"),te(i.$$.fragment),n=T(),l=b("div"),B&&B.c(),o=T(),N&&N.c(),s=T(),R&&R.c(),a=T(),y&&y.c(),r=T(),D&&D.c(),u=T(),F&&F.c(),d=T(),te(m.$$.fragment),v=T(),x&&x.c(),w=T(),j&&j.c(),p=T(),O&&O.c(),E=T(),G&&G.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(ue,K){M(ue,e,K),$(i,e,null),f(e,n),f(e,l),B&&B.m(l,null),t[99](l),f(e,o),N&&N.m(e,null),f(e,s),R&&R.m(e,null),f(e,a),y&&y.m(e,null),f(e,r),D&&D.m(e,null),f(e,u),F&&F.m(e,null),f(e,d),$(m,e,null),f(e,v),x&&x.m(e,null),f(e,w),j&&j.m(e,null),f(e,p),O&&O.m(e,null),f(e,E),G&&G.m(e,null),t[102](e),z=!0,_||(k=[se(e1,"blur",t[65]),se(l,"contextmenu",At(t[66])),se(l,"click",t[68]),se(e,"mouseenter",function(){Fe(t[11]?I:t[59])&&(t[11]?I:t[59]).apply(this,arguments)}),se(e,"mouseleave",function(){Fe(t[11]?I:t[60])&&(t[11]?I:t[60]).apply(this,arguments)}),se(e,"mousemove",function(){Fe(t[11]?I:t[61])&&(t[11]?I:t[61]).apply(this,arguments)}),se(e,"keydown",function(){Fe(t[11]?I:t[70])&&(t[11]?I:t[70]).apply(this,arguments)})],_=!0)},p(ue,K){t=ue;const q={};K[0]&41943040&&(q.hidden=t[25]!==Pe.Thumb||t[23]),K[0]&2&&(q.thumbUrl=t[1]),i.$set(q),t[11]&&t[36]?B?(B.p(t,K),K[0]&2048|K[1]&32&&h(B,1)):(B=tl(t),B.c(),h(B,1),B.m(l,null)):B&&(re(),V(B,1,1,()=>{B=null}),ce()),(!z||K[0]&33554432)&&A(l,"hidden",t[25]!==Pe.Video),(!z||K[1]&16)&&A(l,"nocursor",t[35]),t[4]&&t[30]?N?(N.p(t,K),K[0]&1073741840&&h(N,1)):(N=nl(t),N.c(),h(N,1),N.m(e,s)):N&&(re(),V(N,1,1,()=>{N=null}),ce()),t[22]&&t[15]&&t[16]?R?(R.p(t,K),K[0]&4292608&&h(R,1)):(R=ll(t),R.c(),h(R,1),R.m(e,a)):R&&(re(),V(R,1,1,()=>{R=null}),ce()),!t[11]&&t[25]===Pe.Video?y?(y.p(t,K),K[0]&33556480&&h(y,1)):(y=ol(t),y.c(),h(y,1),y.m(e,r)):y&&(re(),V(y,1,1,()=>{y=null}),ce()),t[24]?D?(D.p(t,K),K[0]&16777216&&h(D,1)):(D=sl(t),D.c(),h(D,1),D.m(e,u)):D&&(re(),V(D,1,1,()=>{D=null}),ce()),t[11]?F&&(re(),V(F,1,1,()=>{F=null}),ce()):F?(F.p(t,K),K[0]&2048&&h(F,1)):(F=al(t),F.c(),h(F,1),F.m(e,d));const ie={};K[0]&33556480&&(ie.hidden=t[25]===Pe.Thumb||t[11]&&t[25]===Pe.Ads),K[0]&2097152&&(ie.showControls=t[21]),K[0]&33554432&&(ie.isAds=t[25]===Pe.Ads),K[0]&67108868&&(ie.canRewindLive=t[2]&&t[26]!==0),K[0]&512&&(ie.logoClickable=t[9]),K[0]&1024&&(ie.logoHidden=t[10]),K[0]&4096&&(ie.showNextPrevButtons=t[12]),K[0]&8192&&(ie.nextButtonActive=t[13]),K[0]&16384&&(ie.prevButtonActive=t[14]),K[0]&131072&&(ie.isOneVideoPlaylist=t[17]),K[0]&8&&(ie.supportLink=t[3]),K[1]&32&&(ie.canShowTimeline=t[36]),K[0]&262144&&(ie.playNextVideo=t[18]),K[0]&524288&&(ie.playPrevVideo=t[19]),K[0]&1048576&&(ie.repeatPlaylist=t[20]),!g&&K[0]&536870912&&(g=!0,ie.controlsElementRef=t[29],mo(()=>g=!1)),m.$set(ie),t[23]?x?(x.p(t,K),K[0]&8388608&&h(x,1)):(x=rl(t),x.c(),h(x,1),x.m(e,w)):x&&(re(),V(x,1,1,()=>{x=null}),ce()),t[11]?j&&(re(),V(j,1,1,()=>{j=null}),ce()):j?(j.p(t,K),K[0]&2048&&h(j,1)):(j=cl(t),j.c(),h(j,1),j.m(e,p)),t[34]?O?K[1]&8&&h(O,1):(O=ul(),O.c(),h(O,1),O.m(e,E)):O&&(re(),V(O,1,1,()=>{O=null}),ce()),t[40]?G?K[1]&512&&h(G,1):(G=dl(),G.c(),h(G,1),G.m(e,null)):G&&(re(),V(G,1,1,()=>{G=null}),ce())},i(ue){z||(h(i.$$.fragment,ue),h(B),h(N),h(R),h(y),h(D),h(F),h(m.$$.fragment,ue),h(x),h(j),h(O),h(G),z=!0)},o(ue){V(i.$$.fragment,ue),V(B),V(N),V(R),V(y),V(D),V(F),V(m.$$.fragment,ue),V(x),V(j),V(O),V(G),z=!1},d(ue){ue&&C(e),ee(i),B&&B.d(),t[99](null),N&&N.d(),R&&R.d(),y&&y.d(),D&&D.d(),F&&F.d(),ee(m),x&&x.d(),j&&j.d(),O&&O.d(),G&&G.d(),t[102](null),_=!1,xe(k)}}}let ci=15;function o1(t,e,i){let n,l,o,s,a,r,u,d,m,g,v,w,p,E,z,_,k,B;var N=this&&this.__awaiter||function(P,Ee,Oe,Ke){function Ye(Ze){return Ze instanceof Oe?Ze:new Oe(function(li){li(Ze)})}return new(Oe||(Oe=Promise))(function(Ze,li){function Gl(St){try{gi(Ke.next(St))}catch(pi){li(pi)}}function Jl(St){try{gi(Ke.throw(St))}catch(pi){li(pi)}}function gi(St){St.done?Ze(St.value):Ye(St.value).then(Gl,Jl)}gi((Ke=Ke.apply(P,Ee||[])).next())})};let{sources:R}=e,{store:y}=e,{title:D}=e,{thumbUrl:F}=e,{preload:L=!0}=e,{autoplay:X=!1}=e,{volume:x=void 0}=e,{muted:j=void 0}=e,{fromTime:O=0}=e,{canRewindLive:G=!0}=e,{supportLink:ue=Co}=e,{showAds:K=!1}=e,{adsSlotId:q=void 0}=e,{adsParams:ie=void 0}=e,{adsPreviewParam:Te=void 0}=e,{duration:le=void 0}=e,{logoClickable:je=!1}=e,{logoHidden:Qe=!1}=e,{isMobile:oe=!1}=e,{showNextPrevButtons:he=!1}=e,{nextButtonActive:fe=!1}=e,{prevButtonActive:de=!1}=e,{endScreenVideoTitle:_e=void 0}=e,{endScreenVideoThumb:ge=void 0}=e,{isOneVideoPlaylist:ye=!1}=e,{outerContainerRef:U=void 0}=e,{playNextVideo:H=I}=e,{playPrevVideo:Q=I}=e,{repeatPlaylist:Z=I}=e,{fullScreenTarget:Ce=void 0}=e,{failoverHosts:$e=void 0}=e;const Tt=P=>{We.set(!0),P?oe&&(mi.set(!0),Bt.set(!0),window.setTimeout(()=>{Bt.set(!1),we(ji)},Vo)):we(ji)};y.setUiCallbacks({onStarted:Tt}),y.getAdmanWrapper().init({switchFromAdsToVideo:y.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:y.actions.internal.switchFromVideoToAds,setMuted:y.actions.external.setMuted},y.ads,{isMobile:y.ui.isMobile,mobileUnmuteButtonVisible:y.ui.mobileUnmuteButtonVisible});const et=y.getLogger().createComponentLog("Root component"),wt=y.state.playbackState$;W(t,wt,P=>i(105,d=P));const ut=y.ads.playbackState;W(t,ut,P=>i(95,p=P));const ot=y.state.positionWithScrubbing$;W(t,ot,P=>i(92,r=P));const zt=y.state.duration$;W(t,zt,P=>i(91,a=P));const Nt=y.playerPhase;W(t,Nt,P=>i(25,E=P));const st=y.ui.isFullscreen;W(t,st,P=>i(90,s=P));const We=y.ui.controlsVisible;W(t,We,P=>i(89,o=P));const at=y.ui.settingsMenuVisible;W(t,at,P=>i(104,u=P));const _t=y.ui.scrubbingInProgress;W(t,_t,P=>i(93,m=P));const dt=y.ui.playerSize,tt=y.ui.contextMenuVisible;W(t,tt,P=>i(37,n=P));const ft=y.ui.debugPanelVisible;W(t,ft,P=>i(40,B=P));const yt=y.state.isLoaderVisible;W(t,yt,P=>i(96,z=P));const kt=y.state.isEnded$;W(t,kt,P=>i(88,l=P));const Lt=y.state.chromecastConnected$;W(t,Lt,P=>i(24,w=P));const Y=y.state.chromecastDeviceName$;W(t,Y,P=>i(39,k=P));const It=y.ads.postrollPassed;W(t,It,P=>i(94,v=P));const Bt=y.ui.mobileUnmuteButtonExpanded,mi=y.ui.mobileUnmuteButtonVisible,Qt=y.state.isActiveLive$;W(t,Qt,P=>i(38,_=P));const Wt=y.state.crashed$;W(t,Wt,P=>i(23,g=P));const ze=y.webApi.pictureInPictureApi;let Yt=0;y.state.duration$.subscribe(P=>{i(26,Yt=P)}),wo(y);let mt,Rt,Pt,vt,Vt=null,Kt=!1,ei=0,ti=0,Ft,ii,qt,Xt,Gt,Jt=!1,Le;function S(){clearTimeout(vt),We.set(!0)}function J(){we(ko)}function ne(){clearTimeout(vt),We.set(!0),s&&Pt&&!Yr(Pt)&&we(Po)}function we(P){i(86,vt=window.setTimeout(()=>{if(d===Se.PlaybackState.PLAYING){if(oe&&u)return;We.set(!1),at.set(!1)}},P))}const Ue=P=>{if(window.ResizeObserver){let Ee,Oe;Vt=new ResizeObserver(vl(Ke=>{const Ye=Ke[0];if(Ye){if(Ye.contentBoxSize){const Ze=Array.isArray(Ye.contentBoxSize)?Ye.contentBoxSize[0]:Ye.contentBoxSize;Ee=Ze.inlineSize,Oe=Ze.blockSize}else Ye.contentRect&&(Ee=Ye.contentRect.width,Oe=Ye.contentRect.height);dt.set({width:Ee,height:Oe})}},Pl)),Vt.observe(P)}dt.set({width:P.clientWidth,height:P.clientHeight})},Ne=P=>{const Ee=P;dt.set({width:Ee.target.width,height:Ee.target.height})},Ge=(P=!1)=>{i(30,Kt=!0),P?y.actions.external.firstStart(K):y.actions.internal.firstStart(K)};Et(()=>{if(xr(Bi),Ue(mt),y.initVideo({container:Rt,sources:R,failoverHosts:$e}),Mi(ze)){const Ke=mt.querySelector("video");ze==null||ze.updateVideoElement(Ke),ze==null||ze.registryEventHandlers(),ze==null||ze.registryExternalEventHandlers({resize:Ne})}O>0&&y.actions.external.seekTime(O);const P=oe?di:x!=null?x:Fl(),Ee=j!=null?j:Kr();y.actions.external.setVolume(P),y.actions.external.setMuted(Ee),y.getAdmanWrapper().setInitialVolume(Ee?0:P),y.ui.isAutoplay.set(X),X?Ge():L&&y.actions.internal.preload();const Oe=Boolean(Mt.get(Si));return ft.set(Oe),()=>{Zr(Bi),Vt==null||Vt.disconnect(),y.destroy()}}),pl(()=>N(void 0,void 0,void 0,function*(){Mi(ze)&&(yield ze==null?void 0:ze.hidePictureInPicture(),ze==null||ze.unregistryEventHandlers())}));function qe(){Kt?y.actions.external.play():Ge(!0)}function ht(){y.actions.external.pause()}function vi(P){oe||y.actions.external.setMuted(P)}function ql(P){oe||P>=0&&P<=1&&y.actions.external.setVolume(P)}function Li(P){y.actions.internal.seekTime(P)}const hi=P=>{let Ee=r+(P==="forward"?ci:-ci);Ee<0?Ee=0:Ee>a&&(Ee=a-1),Li(Ee)},Ii=()=>{if(el())Gr(document),et({message:"exit fullscreen"});else{et({message:"request fullscreen"});const P=U!=null?U:mt,Ee=P.getRootNode(),Oe=Ee instanceof ShadowRoot?Ee.host:Ee,Ke=Ce instanceof HTMLElement&&Ce.contains(Oe);Xr(Ce&&Ke?Ce:P)}},Bi=()=>N(void 0,void 0,void 0,function*(){var P,Ee,Oe,Ke;const Ye=el();if(Ye){try{yield ze==null?void 0:ze.remove()}catch(Ze){et({message:Ze.message})}if(oe)try{yield $r()}catch(Ze){et({message:Ze.message})}}st.set(Ye),y.getAdmanWrapper().setFullscreen(Ye),s?(Ee=(P=y.callbacks)===null||P===void 0?void 0:P.onFullscreenEnter)===null||Ee===void 0||Ee.call(P):(Ke=(Oe=y.callbacks)===null||Oe===void 0?void 0:Oe.onFullscreenExit)===null||Ke===void 0||Ke.call(Oe)}),ni=()=>tt.set(!1),Hl=P=>{tt.set(!0),i(31,ei=P.clientX),i(32,ti=P.clientY)},Ri=()=>{o?We.set(!1):(We.set(!0),clearTimeout(vt),we(Di))},Dl=P=>{if(oe){Ri();return}if(n){ni();return}ni(),!l&&(y.actions.internal.togglePlay(),at.set(!1),P.detail===2&&(et({message:"double click on video"}),Ii()))},jl=()=>{if(n){ni();return}},Ol=P=>{Ft.keyDownHandler(P)},Ul=()=>hi("backward"),Ql=()=>hi("forward");function Wl(P){Je[P?"unshift":"push"](()=>{Rt=P,i(28,Rt)})}function Yl(P){Je[P?"unshift":"push"](()=>{Ft=P,i(33,Ft)})}function Kl(P){Pt=P,i(29,Pt)}function Xl(P){Je[P?"unshift":"push"](()=>{mt=P,i(27,mt)})}return t.$$set=P=>{"sources"in P&&i(71,R=P.sources),"store"in P&&i(72,y=P.store),"title"in P&&i(0,D=P.title),"thumbUrl"in P&&i(1,F=P.thumbUrl),"preload"in P&&i(73,L=P.preload),"autoplay"in P&&i(74,X=P.autoplay),"volume"in P&&i(75,x=P.volume),"muted"in P&&i(76,j=P.muted),"fromTime"in P&&i(77,O=P.fromTime),"canRewindLive"in P&&i(2,G=P.canRewindLive),"supportLink"in P&&i(3,ue=P.supportLink),"showAds"in P&&i(4,K=P.showAds),"adsSlotId"in P&&i(5,q=P.adsSlotId),"adsParams"in P&&i(6,ie=P.adsParams),"adsPreviewParam"in P&&i(7,Te=P.adsPreviewParam),"duration"in P&&i(8,le=P.duration),"logoClickable"in P&&i(9,je=P.logoClickable),"logoHidden"in P&&i(10,Qe=P.logoHidden),"isMobile"in P&&i(11,oe=P.isMobile),"showNextPrevButtons"in P&&i(12,he=P.showNextPrevButtons),"nextButtonActive"in P&&i(13,fe=P.nextButtonActive),"prevButtonActive"in P&&i(14,de=P.prevButtonActive),"endScreenVideoTitle"in P&&i(15,_e=P.endScreenVideoTitle),"endScreenVideoThumb"in P&&i(16,ge=P.endScreenVideoThumb),"isOneVideoPlaylist"in P&&i(17,ye=P.isOneVideoPlaylist),"outerContainerRef"in P&&i(78,U=P.outerContainerRef),"playNextVideo"in P&&i(18,H=P.playNextVideo),"playPrevVideo"in P&&i(19,Q=P.playPrevVideo),"repeatPlaylist"in P&&i(20,Z=P.repeatPlaylist),"fullScreenTarget"in P&&i(79,Ce=P.fullScreenTarget),"failoverHosts"in P&&i(80,$e=P.failoverHosts)},t.$$.update=()=>{t.$$.dirty[0]&41943040|t.$$.dirty[3]&12&&i(34,ii=(E===Pe.Video&&z||E===Pe.Ads&&p===Re.INACTIVE)&&!g),t.$$.dirty[0]&25165824|t.$$.dirty[2]&201326592&&i(21,qt=(o||w||l)&&!g),t.$$.dirty[0]&8388624|t.$$.dirty[2]&67108864|t.$$.dirty[3]&2&&i(22,Xt=(K&&v||!K)&&l&&!g),t.$$.dirty[0]&6291456|t.$$.dirty[2]&268435456&&i(35,Gt=s&&!(qt||Xt)),t.$$.dirty[0]&2048|t.$$.dirty[2]&1024&&y.ui.isMobile.set(oe),t.$$.dirty[0]&2048|t.$$.dirty[2]&50331648|t.$$.dirty[3]&1&&(Jt!==m&&oe&&(clearTimeout(vt),m?We.set(!0):we(Di)),i(87,Jt=m)),t.$$.dirty[2]&1610612736&&i(36,Le=!isNaN(r)&&!isNaN(a))},[D,F,G,ue,K,q,ie,Te,le,je,Qe,oe,he,fe,de,_e,ge,ye,H,Q,Z,qt,Xt,g,w,E,Yt,mt,Rt,Pt,Kt,ei,ti,Ft,ii,Gt,Le,n,_,k,B,wt,ut,ot,zt,Nt,st,We,at,_t,tt,ft,yt,kt,Lt,Y,It,Qt,Wt,S,J,ne,Ge,hi,Ii,ni,Hl,Ri,Dl,jl,Ol,R,y,L,X,x,j,O,U,Ce,$e,qe,ht,vi,ql,Li,vt,Jt,l,o,s,a,r,m,v,p,z,Ul,Ql,Wl,Yl,Kl,Xl]}class s1 extends be{constructor(e){super(),pe(this,e,o1,l1,ve,{sources:71,store:72,title:0,thumbUrl:1,preload: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,fullScreenTarget:79,failoverHosts:80,play:81,pause:82,setMuted:83,setVolume:84,seekTime:85},t1,[-1,-1,-1,-1])}get play(){return this.$$.ctx[81]}get pause(){return this.$$.ctx[82]}get setMuted(){return this.$$.ctx[83]}get setVolume(){return this.$$.ctx[84]}get seekTime(){return this.$$.ctx[85]}}var a1="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 r1(t){ke(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 fl(t){let e,i;return{c(){e=b("div"),i=me(t[0]),c(e,"class","title v-1oqts7t")},m(n,l){M(n,e,l),f(e,i)},p(n,l){l&1&&Me(i,n[0])},d(n){n&&C(e)}}}function ml(t){let e,i;return{c(){e=b("img"),Ve(e.src,i=a1)||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 c1(t){let e,i,n,l=t[0]&&fl(t),o=(!t[0]||!t[1])&&ml(t);return{c(){e=b("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=fl(s),l.c(),l.m(e,i)):l&&(l.d(1),l=null),!s[0]||!s[1]?o?o.p(s,a):(o=ml(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:I,o:I,d(s){s&&C(e),l&&l.d(),o&&o.d()}}}function u1(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 d1 extends be{constructor(e){super(),pe(this,e,u1,c1,ve,{title:0,thumbUrl:1},r1)}}const f1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,m1="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",v1=2e3,h1=2e3;class g1{constructor(e){this.adman=null,this.initialVolume=di,this.videoElement=null,this.currentAdSection=null,this.actions=null,this.adsState=null,this.uiState=null,this.events={slotRequested$:new ae.Subject,started$:new ae.Subject,paused$:new ae.Subject,resumed$:new ae.Subject,ended$:new ae.Subject,skipped$:new ae.Subject,clicked$:new ae.Subject},this.loadAdman=i=>new Promise((n,l)=>{let o;const s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?n():l()};ae.addScript(m1,i,v1).then(()=>{window.AdmanHTML?n():(window.admanAsyncInit=s,o=window.setTimeout(s,h1))}).catch(()=>{l()})}),this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()},this.onAdStarted=(i,n)=>{ae.assertNonNullable(this.adsState),ae.assertNonNullable(this.uiState),ae.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"}),Be(this.uiState.isMobile)&&this.uiState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(n.duration),this.adsState.playbackState.set(Re.PLAYING),this.adsState.canSkip.set(n.allowClose),this.adsState.secondsToWatchBeforeSkip.set(n.allowCloseDelay)},this.onAdTimeRemained=({currentTime:i})=>{ae.assertNonNullable(this.adsState),this.adsState.position.set(i)},this.onAdPaused=()=>{ae.assertNonNullable(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(Re.PAUSED)},this.onAdPlayed=()=>{ae.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(Re.PLAYING)},this.onAdMidrollPoint=()=>{ae.assertNonNullable(this.adman),ae.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=rt.Midroll,this.adman.start(rt.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,g=Object.assign({dl:encodeURIComponent(window.location.href),autoplay:o,player_width:i,player_height:n,puid10:f1(i,n),puid11:l?0:1,preview:m,duration:d},u),v={slot:r,wrapper:s,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}},w=new window.AdmanHTML;w.setDebug(!1),w.onReady(this.onAdsReady),w.onStarted(this.onAdStarted),w.onPlayed(this.onAdPlayed),w.onPaused(this.onAdPaused),w.adMidrollPoint(this.onAdMidrollPoint),w.onClosed(this.onAdClosed),w.onSkipped(this.onAdSkipped),w.onClicked(this.onAdClicked),w.onTimeRemained(this.onAdTimeRemained),w.onCompleted(this.onAdCompleted),w.onError(this.onAdError),w.init(v),this.adman=w,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(v)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}ae.assertNonNullable(this.actions),ae.assertNonNullable(this.adsState),ae.assertNonNullable(this.uiState);const i=this.currentAdSection===rt.Postroll;this.adsState.playbackState.set(Re.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(){ae.assertNonNullable(this.adsState),this.log({message:"toggle play"});const e=Be(this.adsState.playbackState);e===Re.PLAYING?this.pause():e===Re.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(){ae.assertNonNullable(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=rt.Preroll,this.adman.start(rt.Preroll)}startPostroll(){ae.assertNonNullable(this.adman),ae.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=rt.Postroll,this.adman.start(rt.Postroll)}play(){ae.assertNonNullable(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){ae.assertNonNullable(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){ae.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 p1=()=>/ipad|iphone|ipod/.test(window.navigator.userAgent.toLowerCase()),b1=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:""},w1=(t,e,i)=>{const n=new ae.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},_1=({videoId:t,albumId:e,autoplay:i,statPlace:n,statAuthToken:l,refreshStatAuthToken:o,callbacks:s,webApi:a})=>{const r=new Se.Player,u=new ae.Logger,d=new g1(u),m=a==null?void 0:a.pictureInPictureApi,g=u.createComponentLog("Store");let v,w,p={};const E=Ut([],S=>{let J=[];const ne=ae.merge(r.events.managedError$,r.events.fatalError$).subscribe(we=>{J=[...J,we],S(J)});return()=>ne.unsubscribe()}),z=Ut(!1,S=>{const J=r.events.fatalError$.subscribe(()=>S(!0));return()=>J.unsubscribe()}),_=Ie(Pe.Thumb),k=nt([z,_],([S,J])=>S?Pe.Crashed:J);g({message:"create store"});const B=S=>{g({message:`init video, config: ${JSON.stringify(S)}`}),r.initVideo(S),v=S},N=new Fi.OneStat({movieId:t,albumId:e,place:n,autoplay:i},{apiEnv:Fi.ApiEnv.VK_ALIAS,refreshAuthToken:o}),R=w1(r,d.events,N);N.authorize(l).catch(S=>{g({message:`onestat auth error ${String(S)}`})});const y=()=>{p1()&&w&&Jr(w)},D=new ae.Subscription().add(r.experimental.element$.subscribe(S=>{S&&(w=S,S.classList.add("player-media"))})).add(r.events.ended$.subscribe(()=>{var S;y(),(S=s==null?void 0:s.onEnded)===null||S===void 0||S.call(s)})).add(r.events.started$.subscribe(()=>gt(void 0,void 0,void 0,function*(){var S,J;Mi(m)&&(yield m==null?void 0:m.revealPictureInPicture());const ne=r.info.muted$.getValue();(S=s==null?void 0:s.onStarted)===null||S===void 0||S.call(s),(J=p.onStarted)===null||J===void 0||J.call(p,ne)}))).add(r.events.willSeek$.subscribe(({from:S,to:J})=>{var ne;(ne=s==null?void 0:s.onSeek)===null||ne===void 0||ne.call(s,S,J)})).add(r.info.position$.subscribe(S=>{var J;const ne=r.info.duration$.getValue();(J=s==null?void 0:s.onTimeupdate)===null||J===void 0||J.call(s,ne,S),d.setPosition(S,ne)})).add(r.events.fatalError$.subscribe(()=>{var S;(S=s==null?void 0:s.onCrashed)===null||S===void 0||S.call(s)})),F=new ae.Subscription,L=()=>{F.add(r.events.log$.subscribe(S=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${S.component}`,S.message)})).add(u.log$.subscribe(S=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${S.component}.`,S.message)}))},X=()=>{F.unsubscribe()},x=Ut(r.info.position$.getValue(),S=>{let J,ne;const we=()=>{const Ue=r.info.playbackState$.getValue(),Ne=r.info.isLive$.getValue(),Ge=r.info.duration$.getValue(),qe=r.info.position$.getValue();if([Se.PlaybackState.PLAYING,Se.PlaybackState.PAUSED].includes(Ue)){const ht=Ne?qe-Ge:r.getExactTime();ht!==ne&&S(ht),ne=ht}J=requestAnimationFrame(we)};return we(),()=>cancelAnimationFrame(J)}),j=He(r.info.playbackState$),O=He(r.info.currentBuffer$),G=He(r.info.isEnded$),ue=He(r.info.isLive$),K=He(r.info.volume$),q=He(r.info.muted$),ie=He(r.info.availableQualities$),Te=He(r.info.availableQualitiesFps$),le=He(r.info.chromecastState$),je=He(r.info.chromecastDeviceName$),Qe=He(r.info.currentFormat$),oe=He(r.info.throughputEstimation$),he=He(r.info.videoBitrate$),fe=He(r.info.duration$);let de=null;const _e=r.info.isBuffering$,ge=Ut(_e.getValue(),S=>{const J=_e.subscribe(ne=>{ne&&de===null?de=window.setTimeout(()=>{S(_e.getValue()),de=null},Mo):S(ne)});return()=>{J.unsubscribe(),de&&clearTimeout(de)}}),ye=nt([fe,ue],([S,J])=>J?-S:S),U=He(r.info.position$),H=nt([ue,U],([S,J])=>Boolean(S&&J>-ae.ACTIVE_LIVE_VALID_DELAY)),Q=nt([ue,U,fe],([S,J,ne])=>Boolean(S&&J<ne+ae.ACTIVE_LIVE_VALID_DELAY)),Z=nt([le],([S])=>S===Se.ChromecastState.CONNECTED),Ce=Ie(void 0),$e=He(r.info.isAutoQualityEnabled$,S=>S&&Ce.set(void 0)),Tt=He(r.info.currentQuality$,()=>Ce.set(void 0)),et=nt([Ce,Tt],([S,J])=>S!=null?S:J),wt=nt([ie,Te,$e,et,Qe],([S,J,ne,we,Ue])=>{const Ne=[];Ue!==Se.VideoFormat.MPEG&&Ne.push({value:Zt.AUTO,displayValue:ri,selected:ne});const Ge=S.filter(qe=>qe!==Se.VideoQuality.INVARIANT);for(const qe of Ge){const ht=J[qe],vi=qe===Se.VideoQuality.INVARIANT?ri:qe;Ne.push({value:qe,displayValue:`${vi}${ht?b1(ht):""}`,selected:ne?!1:qe===we})}return Ne}),ut=He(r.info.currentPlaybackRate$),ot=nt([ut],([S])=>{const Ue=[];for(let Ne=.25;Ne<=2;Ne+=.25)Ue.push({value:Ne,displayValue:Ne===1?"\u041E\u0431\u044B\u0447\u043D\u0430\u044F":Ne+"x",selected:S===Ne});return Ue}),zt=nt([O,ye],([S,J],ne)=>{var we;return ne(((we=S==null?void 0:S.end)!==null&&we!==void 0?we:0)/J)}),Nt=()=>{g({message:"toggle muted"});const S=r.info.muted$.getValue(),we=!(r.info.volume$.getValue()===0||S);We(we)},st=(S,J=S,ne=!1)=>{var we,Ue;const Ne=!ne,Ge=r.info.muted$.getValue();g({message:`set volume, volume: ${S}, preferredVolume: ${J}, internalCall: ${Ne}`}),r.setVolume(S),d.setVolume(S),Ne&&((we=s==null?void 0:s.onVolumeChange)===null||we===void 0||we.call(s,S)),Zn(J),Ge&&(r.setMuted(!1),Ne&&((Ue=s==null?void 0:s.onUnmute)===null||Ue===void 0||Ue.call(s)),$n(!1))},We=(S,J=!1)=>{var ne,we,Ue;const Ne=!J,Ge=r.info.volume$.getValue();if(g({message:`set muted, currentVolume: ${Ge}, mute: ${S}, internalCall: ${Ne}`}),r.setMuted(S),d.setVolume(S?0:Ge),$n(S),Ne&&(S?(ne=s==null?void 0:s.onMute)===null||ne===void 0||ne.call(s):(we=s==null?void 0:s.onUnmute)===null||we===void 0||we.call(s)),Ge===0){let qe=Fl();qe===0&&(qe=Ao,Zn(qe)),r.setVolume(qe),d.setVolume(qe),Ne&&((Ue=s==null?void 0:s.onVolumeChange)===null||Ue===void 0||Ue.call(s,qe))}},at=()=>{r.prepare()},_t=()=>{var S,J;if(ae.assertNonNullable(Le),g({message:"toggle play"}),Be(Le.playerPhase)===Pe.Ads){d.togglePlay();return}r.info.playbackState$.getValue()!==Se.PlaybackState.PLAYING?(r.info.isEnded$.getValue()&&(g({message:"toggle play, video ended, seek to 0"}),r.seekTime(0)),g({message:"toggle play, call player.play"}),r.play(),(S=s==null?void 0:s.onPlay)===null||S===void 0||S.call(s)):(g({message:"toggle play, call player.pause"}),r.pause(),(J=s==null?void 0:s.onPause)===null||J===void 0||J.call(s))},dt=S=>{g({message:`set quality, quality: ${S}`}),r.setAutoQuality(S===Zt.AUTO),S!==Zt.AUTO&&(Ce.set(S),r.setQuality(S))},tt=S=>{r.setPlaybackRate(S)},ft=()=>{const S=Be(ot),J=S.findIndex(({selected:we})=>we);if(J===S.length-1)return;const ne=S[J+1];tt(ne.value)},yt=()=>{const S=Be(ot),J=S.findIndex(({selected:we})=>we);if(J===0)return;const ne=S[J-1];tt(ne.value)},kt=(S,J=!0)=>{if(g({message:`seek to time, time: ${S}`}),r.info.isLive$.getValue()){const ne=r.info.duration$.getValue(),we=Math.min(0,ne+S);r.seekTime(we,J)}else r.seekTime(S,J)},Lt=S=>{g({message:`seek to percent, percent: ${S}`});const J=Math.round(Be(ye)*S);kt(J,!1)},Y=S=>{g({message:`seek external, time: ${S}`}),r.seekTime(r.info.isLive$.getValue()?-S:S)},It=Ie(void 0),Bt=Ie(!1),mi=S=>{g({message:`start scrubbing, progress: ${S}`}),Bt.set(!0),Qt(S)},Qt=S=>{It.set(S)};let Wt;const ze=()=>{It.set(void 0),Bt.set(!1)},Yt=()=>{clearTimeout(Wt),Wt=window.setTimeout(()=>{ze()},500),w==null||w.removeEventListener("canplay",Yt)},mt=S=>{g({message:`complete scrubbing, progress: ${S}`}),Lt(S),Be(Le.ui.isMobile)&&Be(Le.state.currentFormat$)===Se.VideoFormat.HLS?w==null||w.addEventListener("canplay",Yt):ze()},Rt=nt([x,ye,It],([S,J,ne],we)=>{we(ae.isNonNullable(ne)?ne*J:S)}),Pt=()=>{g({message:"switch to active live"}),r.seekTime(0)},vt=()=>d.skip(),Vt=(S=!0)=>{ae.assertNonNullable(Le),g({message:`switch from ads to video, callPlay: ${S}`}),_.set(Pe.Video),S&&r.play()},Kt=()=>{ae.assertNonNullable(Le),g({message:"switch from video to ads"}),Le.actions.internal.pause(),y(),_.set(Pe.Ads)},ei=()=>(ae.assertNonNullable(Le),_o(r,v,Le)),ti=()=>(ae.assertNonNullable(Le),yo(r,v,Le)),Ft=()=>w,ii=()=>{g({message:"toggle chromecast"}),r.toggleChromecast()},qt=S=>{var J;ae.assertNonNullable(Le);const ne=!S;if(Be(Le.playerPhase)===Pe.Ads){g({message:`pause ads, internalCall: ${ne}`}),d.pause();return}g({message:`pause video, internalCall: ${ne}`}),ne&&((J=s==null?void 0:s.onPause)===null||J===void 0||J.call(s)),r.pause()},Xt=S=>{var J;ae.assertNonNullable(Le);const ne=!S;if(Be(Le.playerPhase)===Pe.Ads){g({message:`play ads, internalCall: ${ne}`}),d.play();return}g({message:`play video, internalCall: ${ne}`}),ne&&((J=s==null?void 0:s.onPlay)===null||J===void 0||J.call(s)),r.play()},Gt=(S,J)=>{ae.assertNonNullable(Le),g({message:`first start, show ads: ${S}, internalCall: ${!J}`}),S?_.set(Pe.Ads):(_.set(Pe.Video),J?r.play():Le.actions.internal.togglePlay())},Jt=()=>{N.destroy(),R.unsubscribe(),D.unsubscribe(),F.unsubscribe(),r.destroy(),d.destroy()},Le={initVideo:B,videoId:t,playerPhase:k,state:{positionExact$:x,positionWithScrubbing$:Rt,duration$:ye,playbackState$:j,isLoaderVisible:ge,bufferedProgress$:zt,isLive$:ue,isActiveLive$:H,isMaxSeekBackTime$:Q,isEnded$:G,muted$:q,volume$:K,currentQuality$:et,isAutoQualityEnabled$:$e,availableQualities$:wt,currentPlaybackRate$:ut,availablePlaybackRates$:ot,chromecastState$:le,chromecastDeviceName$:je,chromecastConnected$:Z,currentFormat$:Qe,throughputEstimation$:oe,videoBitrate$:he,errorLog$:E,crashed$:z},ui:{controlsVisible:Ie(!1),isFullscreen:Ie(!1),isAutoplay:Ie(!1),contextMenuVisible:Ie(!1),debugPanelVisible:Ie(!1),playerSize:Ie({width:0,height:0}),isMobile:Ie(!1),mobileUnmuteButtonExpanded:Ie(!1),mobileUnmuteButtonVisible:Ie(!1),settingsMenuVisible:Ie(!1),scrubbingInProgress:Bt},ads:{position:Ie(0),duration:Ie(0),playbackState:Ie(Re.INACTIVE),canSkip:Ie(!1),secondsToWatchBeforeSkip:Ie(0),postrollPassed:Ie(!1)},webApi:{pictureInPictureApi:m},actions:{internal:{preload:at,firstStart:S=>Gt(S,!1),pause:()=>qt(!1),togglePlay:_t,toggleMuted:Nt,setVolume:st,setQuality:dt,setPlaybackRate:tt,incrementPlaybackRate:ft,decrementPlaybackRate:yt,startScrubbing:mi,progressScrubbing:Qt,completeScrubbing:mt,toggleChromecast:ii,switchToActiveLive:Pt,switchFromAdsToVideo:Vt,switchFromVideoToAds:Kt,skipAd:vt,getDebugTextData:ei,getDebugPanelData:ti,getVideoElement:Ft,seekTime:S=>kt(S),startLogging:L,stopLogging:X},external:{firstStart:S=>Gt(S,!0),play:()=>Xt(!0),pause:()=>qt(!0),seekTime:S=>Y(S),setMuted:S=>We(S,!0),setVolume:S=>st(S,S,!0)}},callbacks:s,setUiCallbacks:S=>{p=Object.assign({},S)},getAdmanWrapper:()=>d,getLogger:()=>u,destroy:Jt};return Le};class y1{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){const e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(const[i,n]of e)try{navigator.mediaSession.setActionHandler(i,n)}catch(l){throw new Error(`The media session action "${i}" is not supported yet.`)}}}class k1{static getLatestSupportedVersion(){return new Ml}}class P1 extends HTMLElement{constructor(){var e;super(),this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=!1,this.config=void 0,this.pictureInPictureApi=void 0,this.mediaSessionApi=void 0,this.unsubscribePlayerPhaseSubscription=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 ae.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ae.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 d1({target:this.playerContainer,props:{title:n,thumbUrl:l}})}disconnectedCallback(){var e,i,n;(e=this.svelteRootComponent)===null||e===void 0||e.$destroy(),(i=this.svelteStubComponent)===null||i===void 0||i.$destroy(),this.subscription.unsubscribe(),(n=this.unsubscribePlayerPhaseSubscription)===null||n===void 0||n.call(this)}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,statAuthToken:o,refreshStatAuthToken:s,preload:a,autoplay:r,volume:u,muted:d,fromTime:m,canRewindLive:g,supportLink:v,showAds:w,adsSlotId:p,adsParams:E={},adsPreviewParam:z,logoClickable:_,logoHidden:k,isMobile:B,fullScreenTarget:N,failoverHosts:R,callbacks:y}=Object.assign(Object.assign({},this.config),i),{sources:D,title:F,thumbUrl:L,unitedVideoId:X,duration:x,adsParams:j={}}=e,O=Object.assign(Object.assign({},E),j),G=this.getNextVideoInfo(),ue={sources:D,title:F,thumbUrl:L,unitedVideoId:X,albumId:n,statPlace:l,autoplay:r,muted:d,volume:u,fromTime:m,canRewindLive:g,supportLink:v,showAds:w,adsSlotId:p,adsParams:O,adsPreviewParam:z,duration:x,logoClickable:_,logoHidden:k,isMobile:B,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:G.nextVideoTitle,endScreenVideoThumb:G.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},K={pictureInPictureApi:this.pictureInPictureApi};this.log({message:`create player, props: ${JSON.stringify(ue)}`}),this.store=_1({videoId:X,albumId:n,autoplay:r,statPlace:l,statAuthToken:o,refreshStatAuthToken:s,callbacks:y,webApi:K}),this.store.state.currentFormat$.subscribe(q=>{var ie;(ie=y==null?void 0:y.onCurrentFormatChanged)===null||ie===void 0||ie.call(y,q)}),this.store.state.throughputEstimation$.subscribe(q=>{var ie;(ie=y==null?void 0:y.onThroughputEstimationChanged)===null||ie===void 0||ie.call(y,q)}),this.store.state.videoBitrate$.subscribe(q=>{var ie;(ie=y==null?void 0:y.onVideoBitrateChanged)===null||ie===void 0||ie.call(y,q)}),this.initMediaSession(),this.svelteRootComponent=new s1({target:this.playerContainer,props:{sources:D,store:this.store,title:F,thumbUrl:L,preload:a,autoplay:r,muted:d,volume:u,fromTime:m,canRewindLive:g,supportLink:v,showAds:w,adsSlotId:p,adsParams:O,adsPreviewParam:z,duration:x,logoClickable:_,logoHidden:k,isMobile:B,failoverHosts:R,fullScreenTarget:N,outerContainerRef:this.playerContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:G.nextVideoTitle,endScreenVideoThumb:G.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=xl(e,o=>o instanceof HTMLElement?o:void 0),this.config.callbacks=(i=e.callbacks)!==null&&i!==void 0?i:{},this.currentPlayingVideoIndex=0,this.pictureInPictureApi=this.config.isPictureInPictureEnabled?k1.getLatestSupportedVersion():void 0,this.mediaSessionApi=this.config.isMediaSessionEnabled?new y1:void 0,(n=this.svelteStubComponent)===null||n===void 0||n.$destroy(),(l=this.svelteRootComponent)===null||l===void 0||l.$destroy(),this.createPlayer(e.videos[0]),_s(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}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()})}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)===null||e===void 0||e.call(this),this.unsubscribePlayerPhaseSubscription=(i=this.store)===null||i===void 0?void 0:i.playerPhase.subscribe(n=>{n===Pe.Video?this.setupMediaSessionForVideo():n===Pe.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.config||!this.mediaSessionApi))try{const{title:e,thumbUrl:i}=Object.assign({},this.config.videos[this.currentPlayingVideoIndex]),n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)],["nexttrack",()=>this.playNextVideo()],["previoustrack",()=>this.playPrevVideo()]];this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(n)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.config||!this.mediaSessionApi))try{const e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i)}catch(e){this.log({message:e.message})}}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 V1=()=>{window.customElements.define("vk-video-player",P1)};exports.registerPlayerWebComponent=V1;