@vkontakte/videoplayer 1.1.35-beta.2 → 1.1.35-beta.3

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,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.35-beta.2
3
- * Fri, 17 May 2024 09:05:41 GMT
2
+ * @vkontakte/videoplayer v1.1.35-beta.3
3
+ * Tue, 21 May 2024 12:05:21 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-35/doc/
5
5
  */
6
- "use strict";var e0=Object.create;var Ll=Object.defineProperty,t0=Object.defineProperties,i0=Object.getOwnPropertyDescriptor,n0=Object.getOwnPropertyDescriptors,o0=Object.getOwnPropertyNames,Fr=Object.getOwnPropertySymbols,l0=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty,r0=Object.prototype.propertyIsEnumerable;var Al=(i,e,t)=>e in i?Ll(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,dn=(i,e)=>{for(var t in e||(e={}))Hr.call(e,t)&&Al(i,t,e[t]);if(Fr)for(var t of Fr(e))r0.call(e,t)&&Al(i,t,e[t]);return i},fo=(i,e)=>t0(i,n0(e));var s0=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of o0(e))!Hr.call(i,o)&&o!==t&&Ll(i,o,{get:()=>e[o],enumerable:!(n=i0(e,o))||n.enumerable});return i};var Ur=(i,e,t)=>(t=i!=null?e0(l0(i)):{},s0(e||!i||!i.__esModule?Ll(t,"default",{value:i,enumerable:!0}):t,i));var Il=(i,e,t)=>(Al(i,typeof e!="symbol"?e+"":e,t),t);var Ji=(i,e,t)=>new Promise((n,o)=>{var r=a=>{try{s(t.next(a))}catch(c){o(c)}},l=a=>{try{s(t.throw(a))}catch(c){o(c)}},s=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,l);s((t=t.apply(i,e)).next())});var xe=require("@vkontakte/videoplayer-core/es2015.cjs.js"),oe=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),wt=require("@vkontakte/videoplayer-statistics/es2015.cjs.js");function ai(i,e,t,n){function o(r){return r instanceof t?r:new t(function(l){l(r)})}return new(t||(t=Promise))(function(r,l){function s(f){try{c(n.next(f))}catch(m){l(m)}}function a(f){try{c(n.throw(f))}catch(m){l(m)}}function c(f){f.done?r(f.value):o(f.value).then(s,a)}c((n=n.apply(i,e||[])).next())})}function K(){}function _1(i,e){for(const t in e)i[t]=e[t];return i}function w1(i){return i()}function jr(){return Object.create(null)}function nt(i){i.forEach(w1)}function Sn(i){return typeof i=="function"}function be(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let $o;function qr(i,e){return $o||($o=document.createElement("a")),$o.href=e,i===$o.href}function a0(i){return Object.keys(i).length===0}function ei(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Je(i){let e;return ei(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(ei(e,t))}function Mn(i,e,t,n){if(i){const o=y1(i,e,t,n);return i[0](o)}}function y1(i,e,t,n){return i[1]&&n?_1(t.ctx.slice(),i[1](n(e))):t.ctx}function Bn(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const r=[],l=Math.max(e.dirty.length,o.length);for(let s=0;s<l;s+=1)r[s]=e.dirty[s]|o[s];return r}return e.dirty|o}return e.dirty}function Nn(i,e,t,n,o,r){if(o){const l=y1(e,t,n,r);i.p(l,o)}}function Rn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function u0(i){return i==null?"":i}const k1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function je(i,e,t){const n=c0(i);if(!n.getElementById(e)){const o=A("style");o.id=e,o.textContent=t,f0(n,o)}}function c0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function f0(i,e){return p(i.head||i,e),e.sheet}function E(i,e,t){i.insertBefore(e,t||null)}function P(i){i.parentNode&&i.parentNode.removeChild(i)}function Cn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function A(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function R(){return Oe(" ")}function gt(){return Oe("")}function ge(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ii(i){return function(e){return e.preventDefault(),i.call(this,e)}}function rt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function d0(i){return Array.from(i.childNodes)}function $e(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ut(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let el;function m0(){if(el===void 0){el=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){el=!0}}return el}function fr(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=A("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=m0();let r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ge(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ge(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),P(n)}}function M(i,e,t){i.classList.toggle(e,!!t)}function En(i,e){return new i(e)}let Ro;function No(i){Ro=i}function Do(){if(!Ro)throw new Error("Function called outside component initialization");return Ro}function vn(i){Do().$$.on_mount.push(i)}function _l(i){Do().$$.on_destroy.push(i)}function ir(i,e){return Do().$$.context.set(i,e),e}function dr(i){return Do().$$.context.get(i)}function S1(){return Do().$$.context}function Co(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const _o=[],ye=[];let ko=[];const nr=[],C1=Promise.resolve();let or=!1;function P1(){or||(or=!0,C1.then(T1))}function zo(){return P1(),C1}function Po(i){ko.push(i)}function We(i){nr.push(i)}const Vl=new Set;let mo=0;function T1(){if(mo!==0)return;const i=Ro;do{try{for(;mo<_o.length;){const e=_o[mo];mo++,No(e),p0(e.$$)}}catch(e){throw _o.length=0,mo=0,e}for(No(null),_o.length=0,mo=0;ye.length;)ye.pop()();for(let e=0;e<ko.length;e+=1){const t=ko[e];Vl.has(t)||(Vl.add(t),t())}ko.length=0}while(_o.length);for(;nr.length;)nr.pop()();or=!1,Vl.clear(),No(i)}function p0(i){if(i.fragment!==null){i.update(),nt(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Po)}}function h0(i){const e=[],t=[];ko.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ko=e}const ml=new Set;let Yn;function pe(){Yn={r:0,c:[],p:Yn}}function he(){Yn.r||nt(Yn.c),Yn=Yn.p}function d(i,e){i&&i.i&&(ml.delete(i),i.i(e))}function g(i,e,t,n){if(i&&i.o){if(ml.has(i))return;ml.add(i),Yn.c.push(()=>{ml.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Gt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function v0(i,e){const t={},n={},o={$$scope:1};let r=i.length;for(;r--;){const l=i[r],s=e[r];if(s){for(const a in l)a in s||(n[a]=1);for(const a in s)o[a]||(t[a]=s[a],o[a]=1);i[r]=s}else for(const a in l)o[a]=1}for(const l in n)l in t||(t[l]=void 0);return t}function g0(i){return typeof i=="object"&&i!==null?i:{}}function Ze(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function W(i){i&&i.c()}function U(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Po(()=>{const r=i.$$.on_mount.map(w1).filter(Sn);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Po)}function j(i,e){const t=i.$$;t.fragment!==null&&(h0(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function b0(i,e){i.$$.dirty[0]===-1&&(_o.push(i),P1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function _e(i,e,t,n,o,r,l,s=[-1]){const a=Ro;No(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:o,bound:jr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:jr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(m,h,...b)=>{const v=b.length?b[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=v)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](v),f&&b0(i,m)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=d0(e.target);c.fragment&&c.fragment.l(m),m.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),U(i,e.target,e.anchor),T1()}No(a)}class we{constructor(){Il(this,"$$");Il(this,"$$set")}$destroy(){j(this,1),this.$destroy=K}$on(e,t){if(!Sn(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!a0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const _0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_0);var To;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(To||(To={}));const w0={isMobile:void 0,defaultLanguage:oe.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:To.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:oe.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},y0=i=>oe.fillWithDefault(i,w0),k0=i=>ir("ui-config",i),gn=()=>dr("ui-config"),lr="vk_player_debug_panel_opened",E1=300,S0=100,C0="videoplayer",P0="videoplayer";var Ce;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ce||(Ce={}));const Fo={[Ce.KeyF]:"f",[Ce.KeyK]:"k",[Ce.KeyC]:"c",[Ce.KeyM]:"m"},T0=new Set([Ce.ArrowLeft,Ce.ArrowRight,Ce.KeyL,Ce.KeyJ]),E0=new Set([Ce.Tab,Ce.Space,Ce.ArrowLeft,Ce.ArrowRight,Ce.ArrowUp,Ce.ArrowDown]),A0=new Set([Ce.ShiftRight,Ce.ShiftLeft]);var ut;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(ut||(ut={}));const Wr=40,A1=260,L0=60,tl=8,L1=[ut.TIMELINE],pl=[...L1,ut.GRAPH_BUTTON],Zr=[...L1,ut.PLAY_BUTTON],I1=[...pl,ut.PLAY_BUTTON];var wo;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(wo||(wo={}));exports.GridTypes=void 0;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const Eo={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},po=[];function Tn(i,e){return{subscribe:Le(i,e).subscribe}}function Le(i,e=K){let t;const n=new Set;function o(s){if(be(i,s)&&(i=s,t)){const a=!po.length;for(const c of n)c[1](),po.push(c,i);if(a){for(let c=0;c<po.length;c+=2)po[c][0](po[c+1]);po.length=0}}}function r(s){o(s(i))}function l(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(o,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function si(i,e,t){const n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Tn(t,(l,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const v=e(n?c[0]:c,l,s);r?l(v):m=Sn(v)?v:K},b=o.map((v,w)=>ei(v,_=>{c[w]=_,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){nt(b),m(),a=!1}})}const I0="prod",wl="1.1.35-beta.2",V1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},M1=Symbol("storeContext"),B1=Symbol("microStoresContext"),V0=(i,e)=>{ir(M1,i),ir(B1,e)},Et=()=>{const i=dr(M1);return oe.assertNonNullable(i,"Store context is empty!"),i},mr=()=>{const i=dr(B1);return oe.assertNonNullable(i,"MicroStores context is empty!"),i},Tt=(i,e)=>N1(i,i.getValue(),e),N1=(i,e,t)=>Tn(e,n=>{const o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),M0=(i,e,t)=>{var n,o,r,l;const s=i.info,{width:a,height:c}=Je(t.ui.playerSize),f=(o=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&o!==void 0?o:0,m=(l=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&l!==void 0?l:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",b=`${wl} (core: ${xe.VERSION}, stat: ${wt.VERSION}, shared: ${oe.VERSION})`,v=Je(t.state.errorLog$),w=v.length?`
6
+ "use strict";var e0=Object.create;var Ll=Object.defineProperty,t0=Object.defineProperties,i0=Object.getOwnPropertyDescriptor,n0=Object.getOwnPropertyDescriptors,o0=Object.getOwnPropertyNames,Fr=Object.getOwnPropertySymbols,l0=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty,r0=Object.prototype.propertyIsEnumerable;var Al=(i,e,t)=>e in i?Ll(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,dn=(i,e)=>{for(var t in e||(e={}))Hr.call(e,t)&&Al(i,t,e[t]);if(Fr)for(var t of Fr(e))r0.call(e,t)&&Al(i,t,e[t]);return i},fo=(i,e)=>t0(i,n0(e));var s0=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of o0(e))!Hr.call(i,o)&&o!==t&&Ll(i,o,{get:()=>e[o],enumerable:!(n=i0(e,o))||n.enumerable});return i};var Ur=(i,e,t)=>(t=i!=null?e0(l0(i)):{},s0(e||!i||!i.__esModule?Ll(t,"default",{value:i,enumerable:!0}):t,i));var Il=(i,e,t)=>(Al(i,typeof e!="symbol"?e+"":e,t),t);var Ji=(i,e,t)=>new Promise((n,o)=>{var r=a=>{try{s(t.next(a))}catch(c){o(c)}},l=a=>{try{s(t.throw(a))}catch(c){o(c)}},s=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,l);s((t=t.apply(i,e)).next())});var xe=require("@vkontakte/videoplayer-core/es2015.cjs.js"),oe=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),wt=require("@vkontakte/videoplayer-statistics/es2015.cjs.js");function ai(i,e,t,n){function o(r){return r instanceof t?r:new t(function(l){l(r)})}return new(t||(t=Promise))(function(r,l){function s(f){try{c(n.next(f))}catch(m){l(m)}}function a(f){try{c(n.throw(f))}catch(m){l(m)}}function c(f){f.done?r(f.value):o(f.value).then(s,a)}c((n=n.apply(i,e||[])).next())})}function K(){}function _1(i,e){for(const t in e)i[t]=e[t];return i}function w1(i){return i()}function jr(){return Object.create(null)}function nt(i){i.forEach(w1)}function Sn(i){return typeof i=="function"}function be(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let $o;function qr(i,e){return $o||($o=document.createElement("a")),$o.href=e,i===$o.href}function a0(i){return Object.keys(i).length===0}function ei(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Je(i){let e;return ei(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(ei(e,t))}function Mn(i,e,t,n){if(i){const o=y1(i,e,t,n);return i[0](o)}}function y1(i,e,t,n){return i[1]&&n?_1(t.ctx.slice(),i[1](n(e))):t.ctx}function Bn(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const r=[],l=Math.max(e.dirty.length,o.length);for(let s=0;s<l;s+=1)r[s]=e.dirty[s]|o[s];return r}return e.dirty|o}return e.dirty}function Nn(i,e,t,n,o,r){if(o){const l=y1(e,t,n,r);i.p(l,o)}}function Rn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function u0(i){return i==null?"":i}const k1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function je(i,e,t){const n=c0(i);if(!n.getElementById(e)){const o=A("style");o.id=e,o.textContent=t,f0(n,o)}}function c0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function f0(i,e){return p(i.head||i,e),e.sheet}function E(i,e,t){i.insertBefore(e,t||null)}function P(i){i.parentNode&&i.parentNode.removeChild(i)}function Cn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function A(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function R(){return Oe(" ")}function gt(){return Oe("")}function ge(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ii(i){return function(e){return e.preventDefault(),i.call(this,e)}}function rt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function d0(i){return Array.from(i.childNodes)}function $e(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ut(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let el;function m0(){if(el===void 0){el=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){el=!0}}return el}function fr(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=A("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=m0();let r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ge(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ge(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),P(n)}}function M(i,e,t){i.classList.toggle(e,!!t)}function En(i,e){return new i(e)}let Ro;function No(i){Ro=i}function Do(){if(!Ro)throw new Error("Function called outside component initialization");return Ro}function vn(i){Do().$$.on_mount.push(i)}function _l(i){Do().$$.on_destroy.push(i)}function ir(i,e){return Do().$$.context.set(i,e),e}function dr(i){return Do().$$.context.get(i)}function S1(){return Do().$$.context}function Co(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const _o=[],ye=[];let ko=[];const nr=[],C1=Promise.resolve();let or=!1;function P1(){or||(or=!0,C1.then(T1))}function zo(){return P1(),C1}function Po(i){ko.push(i)}function We(i){nr.push(i)}const Vl=new Set;let mo=0;function T1(){if(mo!==0)return;const i=Ro;do{try{for(;mo<_o.length;){const e=_o[mo];mo++,No(e),p0(e.$$)}}catch(e){throw _o.length=0,mo=0,e}for(No(null),_o.length=0,mo=0;ye.length;)ye.pop()();for(let e=0;e<ko.length;e+=1){const t=ko[e];Vl.has(t)||(Vl.add(t),t())}ko.length=0}while(_o.length);for(;nr.length;)nr.pop()();or=!1,Vl.clear(),No(i)}function p0(i){if(i.fragment!==null){i.update(),nt(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Po)}}function h0(i){const e=[],t=[];ko.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ko=e}const ml=new Set;let Yn;function pe(){Yn={r:0,c:[],p:Yn}}function he(){Yn.r||nt(Yn.c),Yn=Yn.p}function d(i,e){i&&i.i&&(ml.delete(i),i.i(e))}function g(i,e,t,n){if(i&&i.o){if(ml.has(i))return;ml.add(i),Yn.c.push(()=>{ml.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Gt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function v0(i,e){const t={},n={},o={$$scope:1};let r=i.length;for(;r--;){const l=i[r],s=e[r];if(s){for(const a in l)a in s||(n[a]=1);for(const a in s)o[a]||(t[a]=s[a],o[a]=1);i[r]=s}else for(const a in l)o[a]=1}for(const l in n)l in t||(t[l]=void 0);return t}function g0(i){return typeof i=="object"&&i!==null?i:{}}function Ze(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function W(i){i&&i.c()}function U(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Po(()=>{const r=i.$$.on_mount.map(w1).filter(Sn);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Po)}function j(i,e){const t=i.$$;t.fragment!==null&&(h0(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function b0(i,e){i.$$.dirty[0]===-1&&(_o.push(i),P1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function _e(i,e,t,n,o,r,l,s=[-1]){const a=Ro;No(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:o,bound:jr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:jr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(m,h,...b)=>{const v=b.length?b[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=v)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](v),f&&b0(i,m)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=d0(e.target);c.fragment&&c.fragment.l(m),m.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),U(i,e.target,e.anchor),T1()}No(a)}class we{constructor(){Il(this,"$$");Il(this,"$$set")}$destroy(){j(this,1),this.$destroy=K}$on(e,t){if(!Sn(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!a0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const _0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_0);var To;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(To||(To={}));const w0={isMobile:void 0,defaultLanguage:oe.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:To.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:oe.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},y0=i=>oe.fillWithDefault(i,w0),k0=i=>ir("ui-config",i),gn=()=>dr("ui-config"),lr="vk_player_debug_panel_opened",E1=300,S0=100,C0="videoplayer",P0="videoplayer";var Ce;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ce||(Ce={}));const Fo={[Ce.KeyF]:"f",[Ce.KeyK]:"k",[Ce.KeyC]:"c",[Ce.KeyM]:"m"},T0=new Set([Ce.ArrowLeft,Ce.ArrowRight,Ce.KeyL,Ce.KeyJ]),E0=new Set([Ce.Tab,Ce.Space,Ce.ArrowLeft,Ce.ArrowRight,Ce.ArrowUp,Ce.ArrowDown]),A0=new Set([Ce.ShiftRight,Ce.ShiftLeft]);var ut;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(ut||(ut={}));const Wr=40,A1=260,L0=60,tl=8,L1=[ut.TIMELINE],pl=[...L1,ut.GRAPH_BUTTON],Zr=[...L1,ut.PLAY_BUTTON],I1=[...pl,ut.PLAY_BUTTON];var wo;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(wo||(wo={}));exports.GridTypes=void 0;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const Eo={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},po=[];function Tn(i,e){return{subscribe:Le(i,e).subscribe}}function Le(i,e=K){let t;const n=new Set;function o(s){if(be(i,s)&&(i=s,t)){const a=!po.length;for(const c of n)c[1](),po.push(c,i);if(a){for(let c=0;c<po.length;c+=2)po[c][0](po[c+1]);po.length=0}}}function r(s){o(s(i))}function l(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(o,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function si(i,e,t){const n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Tn(t,(l,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const v=e(n?c[0]:c,l,s);r?l(v):m=Sn(v)?v:K},b=o.map((v,w)=>ei(v,_=>{c[w]=_,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){nt(b),m(),a=!1}})}const I0="prod",wl="1.1.35-beta.3",V1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},M1=Symbol("storeContext"),B1=Symbol("microStoresContext"),V0=(i,e)=>{ir(M1,i),ir(B1,e)},Et=()=>{const i=dr(M1);return oe.assertNonNullable(i,"Store context is empty!"),i},mr=()=>{const i=dr(B1);return oe.assertNonNullable(i,"MicroStores context is empty!"),i},Tt=(i,e)=>N1(i,i.getValue(),e),N1=(i,e,t)=>Tn(e,n=>{const o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),M0=(i,e,t)=>{var n,o,r,l;const s=i.info,{width:a,height:c}=Je(t.ui.playerSize),f=(o=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&o!==void 0?o:0,m=(l=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&l!==void 0?l:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",b=`${wl} (core: ${xe.VERSION}, stat: ${wt.VERSION}, shared: ${oe.VERSION})`,v=Je(t.state.errorLog$),w=v.length?`
7
7
  `+v.map((y,k)=>{var V;const G=`${k}) Type: ${y.id}
8
8
  `,I=`Message: ${y.message} (${y.thrown})
9
9
  `,Q=`Trace: ${(V=y.thrown)===null||V===void 0?void 0:V.stack}
package/es2015.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.35-beta.2
3
- * Fri, 17 May 2024 09:05:41 GMT
2
+ * @vkontakte/videoplayer v1.1.35-beta.3
3
+ * Tue, 21 May 2024 12:05:21 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-35/doc/
5
5
  */
6
- var g0=Object.defineProperty,b0=Object.defineProperties;var _0=Object.getOwnPropertyDescriptors;var ts=Object.getOwnPropertySymbols;var w0=Object.prototype.hasOwnProperty,y0=Object.prototype.propertyIsEnumerable;var Ul=(i,e,t)=>e in i?g0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,pn=(i,e)=>{for(var t in e||(e={}))w0.call(e,t)&&Ul(i,t,e[t]);if(ts)for(var t of ts(e))y0.call(e,t)&&Ul(i,t,e[t]);return i},_o=(i,e)=>b0(i,_0(e));var jl=(i,e,t)=>(Ul(i,typeof e!="symbol"?e+"":e,t),t);var $i=(i,e,t)=>new Promise((n,l)=>{var r=a=>{try{s(t.next(a))}catch(c){l(c)}},o=a=>{try{s(t.throw(a))}catch(c){l(c)}},s=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,o);s((t=t.apply(i,e)).next())});import{VERSION as k0,ChromecastState as Vn,PlaybackState as Yt,VideoQuality as To,Player as C0,VideoFormat as Uo}from"@vkontakte/videoplayer-core/es2015.esm.js";import{VideoFormat as G6,VideoQuality as Y6}from"@vkontakte/videoplayer-core/es2015.esm.js";import{InterfaceLanguage as Go,VideoQuality as Sl,fillWithDefault as S0,VERSION as P0,assertNonNullable as vt,safeStorage as An,isNullable as Al,Subscription as Gn,isNonNullable as Tn,isMacLike as is,debounceFn as T0,ValueSubject as Cr,getCurrentBrowser as Sr,CurrentClientBrowser as R1,noop as Ye,checkNever as E0,timeCodeToString as A0,Subject as kn,addScript as L0,Logger as N1,merge as I0,Observable as M0,map as V0,loadVKLangPack as B0,isIOS as Pr,getHighestQuality as R0,throttleFn as Vl,CurrentClientDevice as N0,getIOSVersion as O0,detectEmbed as D0,observeElementSize as z0,isMobile as F0,cloneDeepWith as H0}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{InterfaceLanguage as X6,VKNumericLanguage as J6,loadVKLangPack as x6}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{VERSION as U0,SeekAction as qt,OneStat as j0,InteractiveInterfaceClick as jo}from"@vkontakte/videoplayer-statistics/es2015.esm.js";function ci(i,e,t,n){function l(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function s(f){try{c(n.next(f))}catch(m){o(m)}}function a(f){try{c(n.throw(f))}catch(m){o(m)}}function c(f){f.done?r(f.value):l(f.value).then(s,a)}c((n=n.apply(i,e||[])).next())})}function K(){}function O1(i,e){for(const t in e)i[t]=e[t];return i}function D1(i){return i()}function ns(){return Object.create(null)}function it(i){i.forEach(D1)}function En(i){return typeof i=="function"}function ge(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let cl;function os(i,e){return cl||(cl=document.createElement("a")),cl.href=e,i===cl.href}function q0(i){return Object.keys(i).length===0}function ii(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Je(i){let e;return ii(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(ii(e,t))}function zn(i,e,t,n){if(i){const l=z1(i,e,t,n);return i[0](l)}}function z1(i,e,t,n){return i[1]&&n?O1(t.ctx.slice(),i[1](n(e))):t.ctx}function Fn(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function Hn(i,e,t,n,l,r){if(l){const o=z1(e,t,n,r);i.p(o,l)}}function Un(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function W0(i){return i==null?"":i}const F1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function Ue(i,e,t){const n=Z0(i);if(!n.getElementById(e)){const l=A("style");l.id=e,l.textContent=t,K0(n,l)}}function Z0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function K0(i,e){return p(i.head||i,e),e.sheet}function E(i,e,t){i.insertBefore(e,t||null)}function P(i){i.parentNode&&i.parentNode.removeChild(i)}function Ln(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function A(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function N(){return Ne(" ")}function gt(){return Ne("")}function ve(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function oi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function lt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function G0(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ut(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let fl;function Y0(){if(fl===void 0){fl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){fl=!0}}return fl}function Tr(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=A("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=Y0();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ve(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ve(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(l||r&&n.contentWindow)&&r(),P(n)}}function V(i,e,t){i.classList.toggle(e,!!t)}function Bn(i,e){return new i(e)}let Zo;function Wo(i){Zo=i}function Yo(){if(!Zo)throw new Error("Function called outside component initialization");return Zo}function bn(i){Yo().$$.on_mount.push(i)}function Bl(i){Yo().$$.on_destroy.push(i)}function pr(i,e){return Yo().$$.context.set(i,e),e}function Er(i){return Yo().$$.context.get(i)}function H1(){return Yo().$$.context}function Vo(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Eo=[],we=[];let Io=[];const hr=[],U1=Promise.resolve();let vr=!1;function j1(){vr||(vr=!0,U1.then(q1))}function Qo(){return j1(),U1}function Bo(i){Io.push(i)}function qe(i){hr.push(i)}const ql=new Set;let wo=0;function q1(){if(wo!==0)return;const i=Zo;do{try{for(;wo<Eo.length;){const e=Eo[wo];wo++,Wo(e),Q0(e.$$)}}catch(e){throw Eo.length=0,wo=0,e}for(Wo(null),Eo.length=0,wo=0;we.length;)we.pop()();for(let e=0;e<Io.length;e+=1){const t=Io[e];ql.has(t)||(ql.add(t),t())}Io.length=0}while(Eo.length);for(;hr.length;)hr.pop()();vr=!1,ql.clear(),Wo(i)}function Q0(i){if(i.fragment!==null){i.update(),it(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Bo)}}function X0(i){const e=[],t=[];Io.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Io=e}const Pl=new Set;let to;function me(){to={r:0,c:[],p:to}}function pe(){to.r||it(to.c),to=to.p}function d(i,e){i&&i.i&&(Pl.delete(i),i.i(e))}function g(i,e,t,n){if(i&&i.o){if(Pl.has(i))return;Pl.add(i),to.c.push(()=>{Pl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Qt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function J0(i,e){const t={},n={},l={$$scope:1};let r=i.length;for(;r--;){const o=i[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(t[a]=s[a],l[a]=1);i[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in t||(t[o]=void 0);return t}function x0(i){return typeof i=="object"&&i!==null?i:{}}function We(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function W(i){i&&i.c()}function U(i,e,t){const{fragment:n,after_update:l}=i.$$;n&&n.m(e,t),Bo(()=>{const r=i.$$.on_mount.map(D1).filter(En);i.$$.on_destroy?i.$$.on_destroy.push(...r):it(r),i.$$.on_mount=[]}),l.forEach(Bo)}function j(i,e){const t=i.$$;t.fragment!==null&&(X0(t.after_update),it(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function $0(i,e){i.$$.dirty[0]===-1&&(Eo.push(i),j1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function be(i,e,t,n,l,r,o,s=[-1]){const a=Zo;Wo(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:ns(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ns(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(m,h,...b)=>{const v=b.length?b[0]:h;return c.ctx&&l(c.ctx[m],c.ctx[m]=v)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](v),f&&$0(i,m)),h}):[],c.update(),f=!0,it(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=G0(e.target);c.fragment&&c.fragment.l(m),m.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),U(i,e.target,e.anchor),q1()}Wo(a)}class _e{constructor(){jl(this,"$$");jl(this,"$$set")}$destroy(){j(this,1),this.$destroy=K}$on(e,t){if(!En(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!q0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ed="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ed);var Ro;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(Ro||(Ro={}));const td={isMobile:void 0,defaultLanguage:Go.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:Ro.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Sl.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},id=i=>S0(i,td),nd=i=>pr("ui-config",i),_n=()=>Er("ui-config"),gr="vk_player_debug_panel_opened",W1=300,od=100,ld="videoplayer",rd="videoplayer";var Ce;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ce||(Ce={}));const Xo={[Ce.KeyF]:"f",[Ce.KeyK]:"k",[Ce.KeyC]:"c",[Ce.KeyM]:"m"},sd=new Set([Ce.ArrowLeft,Ce.ArrowRight,Ce.KeyL,Ce.KeyJ]),ad=new Set([Ce.Tab,Ce.Space,Ce.ArrowLeft,Ce.ArrowRight,Ce.ArrowUp,Ce.ArrowDown]),ud=new Set([Ce.ShiftRight,Ce.ShiftLeft]);var at;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(at||(at={}));const ls=40,Z1=260,cd=60,dl=8,K1=[at.TIMELINE],Tl=[...K1,at.GRAPH_BUTTON],rs=[...K1,at.PLAY_BUTTON],G1=[...Tl,at.PLAY_BUTTON];var Ao;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(Ao||(Ao={}));var Mt;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(Mt||(Mt={}));const No={[Mt.XS]:0,[Mt.S]:1,[Mt.M]:2,[Mt.L]:3,[Mt.XL]:4},yo=[];function Mn(i,e){return{subscribe:Ae(i,e).subscribe}}function Ae(i,e=K){let t;const n=new Set;function l(s){if(ge(i,s)&&(i=s,t)){const a=!yo.length;for(const c of n)c[1](),yo.push(c,i);if(a){for(let c=0;c<yo.length;c+=2)yo[c][0](yo[c+1]);yo.length=0}}}function r(s){l(s(i))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(l,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:l,update:r,subscribe:o}}function ui(i,e,t){const n=!Array.isArray(i),l=n?[i]:i;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Mn(t,(o,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const v=e(n?c[0]:c,o,s);r?o(v):m=En(v)?v:K},b=l.map((v,w)=>ii(v,_=>{c[w]=_,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){it(b),m(),a=!1}})}const fd="prod",Ar="1.1.35-beta.2",Y1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},Q1=Symbol("storeContext"),X1=Symbol("microStoresContext"),dd=(i,e)=>{pr(Q1,i),pr(X1,e)},Tt=()=>{const i=Er(Q1);return vt(i,"Store context is empty!"),i},Lr=()=>{const i=Er(X1);return vt(i,"MicroStores context is empty!"),i},Pt=(i,e)=>J1(i,i.getValue(),e),J1=(i,e,t)=>Mn(e,n=>{const l=i.subscribe(r=>{n(r),t==null||t(r)});return()=>l.unsubscribe()}),md=(i,e,t)=>{var n,l,r,o;const s=i.info,{width:a,height:c}=Je(t.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,m=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",b=`${Ar} (core: ${k0}, stat: ${U0}, shared: ${P0})`,v=Je(t.state.errorLog$),w=v.length?`
6
+ var g0=Object.defineProperty,b0=Object.defineProperties;var _0=Object.getOwnPropertyDescriptors;var ts=Object.getOwnPropertySymbols;var w0=Object.prototype.hasOwnProperty,y0=Object.prototype.propertyIsEnumerable;var Ul=(i,e,t)=>e in i?g0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,pn=(i,e)=>{for(var t in e||(e={}))w0.call(e,t)&&Ul(i,t,e[t]);if(ts)for(var t of ts(e))y0.call(e,t)&&Ul(i,t,e[t]);return i},_o=(i,e)=>b0(i,_0(e));var jl=(i,e,t)=>(Ul(i,typeof e!="symbol"?e+"":e,t),t);var $i=(i,e,t)=>new Promise((n,l)=>{var r=a=>{try{s(t.next(a))}catch(c){l(c)}},o=a=>{try{s(t.throw(a))}catch(c){l(c)}},s=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,o);s((t=t.apply(i,e)).next())});import{VERSION as k0,ChromecastState as Vn,PlaybackState as Yt,VideoQuality as To,Player as C0,VideoFormat as Uo}from"@vkontakte/videoplayer-core/es2015.esm.js";import{VideoFormat as G6,VideoQuality as Y6}from"@vkontakte/videoplayer-core/es2015.esm.js";import{InterfaceLanguage as Go,VideoQuality as Sl,fillWithDefault as S0,VERSION as P0,assertNonNullable as vt,safeStorage as An,isNullable as Al,Subscription as Gn,isNonNullable as Tn,isMacLike as is,debounceFn as T0,ValueSubject as Cr,getCurrentBrowser as Sr,CurrentClientBrowser as R1,noop as Ye,checkNever as E0,timeCodeToString as A0,Subject as kn,addScript as L0,Logger as N1,merge as I0,Observable as M0,map as V0,loadVKLangPack as B0,isIOS as Pr,getHighestQuality as R0,throttleFn as Vl,CurrentClientDevice as N0,getIOSVersion as O0,detectEmbed as D0,observeElementSize as z0,isMobile as F0,cloneDeepWith as H0}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{InterfaceLanguage as X6,VKNumericLanguage as J6,loadVKLangPack as x6}from"@vkontakte/videoplayer-shared/es2015.esm.js";import{VERSION as U0,SeekAction as qt,OneStat as j0,InteractiveInterfaceClick as jo}from"@vkontakte/videoplayer-statistics/es2015.esm.js";function ci(i,e,t,n){function l(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function s(f){try{c(n.next(f))}catch(m){o(m)}}function a(f){try{c(n.throw(f))}catch(m){o(m)}}function c(f){f.done?r(f.value):l(f.value).then(s,a)}c((n=n.apply(i,e||[])).next())})}function K(){}function O1(i,e){for(const t in e)i[t]=e[t];return i}function D1(i){return i()}function ns(){return Object.create(null)}function it(i){i.forEach(D1)}function En(i){return typeof i=="function"}function ge(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let cl;function os(i,e){return cl||(cl=document.createElement("a")),cl.href=e,i===cl.href}function q0(i){return Object.keys(i).length===0}function ii(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Je(i){let e;return ii(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(ii(e,t))}function zn(i,e,t,n){if(i){const l=z1(i,e,t,n);return i[0](l)}}function z1(i,e,t,n){return i[1]&&n?O1(t.ctx.slice(),i[1](n(e))):t.ctx}function Fn(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function Hn(i,e,t,n,l,r){if(l){const o=z1(e,t,n,r);i.p(o,l)}}function Un(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function W0(i){return i==null?"":i}const F1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function Ue(i,e,t){const n=Z0(i);if(!n.getElementById(e)){const l=A("style");l.id=e,l.textContent=t,K0(n,l)}}function Z0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function K0(i,e){return p(i.head||i,e),e.sheet}function E(i,e,t){i.insertBefore(e,t||null)}function P(i){i.parentNode&&i.parentNode.removeChild(i)}function Ln(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function A(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function N(){return Ne(" ")}function gt(){return Ne("")}function ve(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function oi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function lt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function G0(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ut(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let fl;function Y0(){if(fl===void 0){fl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){fl=!0}}return fl}function Tr(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=A("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=Y0();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ve(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ve(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(l||r&&n.contentWindow)&&r(),P(n)}}function V(i,e,t){i.classList.toggle(e,!!t)}function Bn(i,e){return new i(e)}let Zo;function Wo(i){Zo=i}function Yo(){if(!Zo)throw new Error("Function called outside component initialization");return Zo}function bn(i){Yo().$$.on_mount.push(i)}function Bl(i){Yo().$$.on_destroy.push(i)}function pr(i,e){return Yo().$$.context.set(i,e),e}function Er(i){return Yo().$$.context.get(i)}function H1(){return Yo().$$.context}function Vo(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Eo=[],we=[];let Io=[];const hr=[],U1=Promise.resolve();let vr=!1;function j1(){vr||(vr=!0,U1.then(q1))}function Qo(){return j1(),U1}function Bo(i){Io.push(i)}function qe(i){hr.push(i)}const ql=new Set;let wo=0;function q1(){if(wo!==0)return;const i=Zo;do{try{for(;wo<Eo.length;){const e=Eo[wo];wo++,Wo(e),Q0(e.$$)}}catch(e){throw Eo.length=0,wo=0,e}for(Wo(null),Eo.length=0,wo=0;we.length;)we.pop()();for(let e=0;e<Io.length;e+=1){const t=Io[e];ql.has(t)||(ql.add(t),t())}Io.length=0}while(Eo.length);for(;hr.length;)hr.pop()();vr=!1,ql.clear(),Wo(i)}function Q0(i){if(i.fragment!==null){i.update(),it(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Bo)}}function X0(i){const e=[],t=[];Io.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Io=e}const Pl=new Set;let to;function me(){to={r:0,c:[],p:to}}function pe(){to.r||it(to.c),to=to.p}function d(i,e){i&&i.i&&(Pl.delete(i),i.i(e))}function g(i,e,t,n){if(i&&i.o){if(Pl.has(i))return;Pl.add(i),to.c.push(()=>{Pl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Qt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function J0(i,e){const t={},n={},l={$$scope:1};let r=i.length;for(;r--;){const o=i[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(t[a]=s[a],l[a]=1);i[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in t||(t[o]=void 0);return t}function x0(i){return typeof i=="object"&&i!==null?i:{}}function We(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function W(i){i&&i.c()}function U(i,e,t){const{fragment:n,after_update:l}=i.$$;n&&n.m(e,t),Bo(()=>{const r=i.$$.on_mount.map(D1).filter(En);i.$$.on_destroy?i.$$.on_destroy.push(...r):it(r),i.$$.on_mount=[]}),l.forEach(Bo)}function j(i,e){const t=i.$$;t.fragment!==null&&(X0(t.after_update),it(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function $0(i,e){i.$$.dirty[0]===-1&&(Eo.push(i),j1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function be(i,e,t,n,l,r,o,s=[-1]){const a=Zo;Wo(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:ns(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ns(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(m,h,...b)=>{const v=b.length?b[0]:h;return c.ctx&&l(c.ctx[m],c.ctx[m]=v)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](v),f&&$0(i,m)),h}):[],c.update(),f=!0,it(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=G0(e.target);c.fragment&&c.fragment.l(m),m.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),U(i,e.target,e.anchor),q1()}Wo(a)}class _e{constructor(){jl(this,"$$");jl(this,"$$set")}$destroy(){j(this,1),this.$destroy=K}$on(e,t){if(!En(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!q0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ed="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ed);var Ro;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(Ro||(Ro={}));const td={isMobile:void 0,defaultLanguage:Go.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:Ro.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Sl.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},id=i=>S0(i,td),nd=i=>pr("ui-config",i),_n=()=>Er("ui-config"),gr="vk_player_debug_panel_opened",W1=300,od=100,ld="videoplayer",rd="videoplayer";var Ce;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ce||(Ce={}));const Xo={[Ce.KeyF]:"f",[Ce.KeyK]:"k",[Ce.KeyC]:"c",[Ce.KeyM]:"m"},sd=new Set([Ce.ArrowLeft,Ce.ArrowRight,Ce.KeyL,Ce.KeyJ]),ad=new Set([Ce.Tab,Ce.Space,Ce.ArrowLeft,Ce.ArrowRight,Ce.ArrowUp,Ce.ArrowDown]),ud=new Set([Ce.ShiftRight,Ce.ShiftLeft]);var at;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(at||(at={}));const ls=40,Z1=260,cd=60,dl=8,K1=[at.TIMELINE],Tl=[...K1,at.GRAPH_BUTTON],rs=[...K1,at.PLAY_BUTTON],G1=[...Tl,at.PLAY_BUTTON];var Ao;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(Ao||(Ao={}));var Mt;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(Mt||(Mt={}));const No={[Mt.XS]:0,[Mt.S]:1,[Mt.M]:2,[Mt.L]:3,[Mt.XL]:4},yo=[];function Mn(i,e){return{subscribe:Ae(i,e).subscribe}}function Ae(i,e=K){let t;const n=new Set;function l(s){if(ge(i,s)&&(i=s,t)){const a=!yo.length;for(const c of n)c[1](),yo.push(c,i);if(a){for(let c=0;c<yo.length;c+=2)yo[c][0](yo[c+1]);yo.length=0}}}function r(s){l(s(i))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(l,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:l,update:r,subscribe:o}}function ui(i,e,t){const n=!Array.isArray(i),l=n?[i]:i;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Mn(t,(o,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const v=e(n?c[0]:c,o,s);r?o(v):m=En(v)?v:K},b=l.map((v,w)=>ii(v,_=>{c[w]=_,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){it(b),m(),a=!1}})}const fd="prod",Ar="1.1.35-beta.3",Y1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},Q1=Symbol("storeContext"),X1=Symbol("microStoresContext"),dd=(i,e)=>{pr(Q1,i),pr(X1,e)},Tt=()=>{const i=Er(Q1);return vt(i,"Store context is empty!"),i},Lr=()=>{const i=Er(X1);return vt(i,"MicroStores context is empty!"),i},Pt=(i,e)=>J1(i,i.getValue(),e),J1=(i,e,t)=>Mn(e,n=>{const l=i.subscribe(r=>{n(r),t==null||t(r)});return()=>l.unsubscribe()}),md=(i,e,t)=>{var n,l,r,o;const s=i.info,{width:a,height:c}=Je(t.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,m=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",b=`${Ar} (core: ${k0}, stat: ${U0}, shared: ${P0})`,v=Je(t.state.errorLog$),w=v.length?`
7
7
  `+v.map((y,k)=>{var M;const G=`${k}) Type: ${y.id}
8
8
  `,I=`Message: ${y.message} (${y.thrown})
9
9
  `,Q=`Trace: ${(M=y.thrown)===null||M===void 0?void 0:M.stack}
package/es2018.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.35-beta.2
3
- * Fri, 17 May 2024 09:05:41 GMT
2
+ * @vkontakte/videoplayer v1.1.35-beta.3
3
+ * Tue, 21 May 2024 12:05:21 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-35/doc/
5
5
  */
6
- "use strict";var Gf=Object.create;var Cl=Object.defineProperty;var Yf=Object.getOwnPropertyDescriptor;var Qf=Object.getOwnPropertyNames;var Xf=Object.getPrototypeOf,Jf=Object.prototype.hasOwnProperty;var xf=(i,e,t)=>e in i?Cl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var $f=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Qf(e))!Jf.call(i,o)&&o!==t&&Cl(i,o,{get:()=>e[o],enumerable:!(n=Yf(e,o))||n.enumerable});return i};var Nr=(i,e,t)=>(t=i!=null?Gf(Xf(i)):{},$f(e||!i||!i.__esModule?Cl(t,"default",{value:i,enumerable:!0}):t,i));var Pl=(i,e,t)=>(xf(i,typeof e!="symbol"?e+"":e,t),t);var xe=require("@vkontakte/videoplayer-core/es2018.cjs.js"),oe=require("@vkontakte/videoplayer-shared/es2018.cjs.js"),wt=require("@vkontakte/videoplayer-statistics/es2018.cjs.js");function K(){}function d1(i,e){for(const t in e)i[t]=e[t];return i}function m1(i){return i()}function Rr(){return Object.create(null)}function nt(i){i.forEach(m1)}function wn(i){return typeof i=="function"}function be(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Qo;function Or(i,e){return Qo||(Qo=document.createElement("a")),Qo.href=e,i===Qo.href}function e0(i){return Object.keys(i).length===0}function ei(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Je(i){let e;return ei(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(ei(e,t))}function Ln(i,e,t,n){if(i){const o=p1(i,e,t,n);return i[0](o)}}function p1(i,e,t,n){return i[1]&&n?d1(t.ctx.slice(),i[1](n(e))):t.ctx}function In(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const r=[],l=Math.max(e.dirty.length,o.length);for(let s=0;s<l;s+=1)r[s]=e.dirty[s]|o[s];return r}return e.dirty|o}return e.dirty}function Vn(i,e,t,n,o,r){if(o){const l=p1(e,t,n,r);i.p(l,o)}}function Mn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function t0(i){return i==null?"":i}const h1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function qe(i,e,t){const n=i0(i);if(!n.getElementById(e)){const o=A("style");o.id=e,o.textContent=t,n0(n,o)}}function i0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function n0(i,e){return p(i.head||i,e),e.sheet}function E(i,e,t){i.insertBefore(e,t||null)}function P(i){i.parentNode&&i.parentNode.removeChild(i)}function yn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function A(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function R(){return Oe(" ")}function gt(){return Oe("")}function ge(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ii(i){return function(e){return e.preventDefault(),i.call(this,e)}}function rt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function o0(i){return Array.from(i.childNodes)}function $e(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ut(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let Xo;function l0(){if(Xo===void 0){Xo=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Xo=!0}}return Xo}function rr(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=A("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=l0();let r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ge(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ge(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),P(n)}}function M(i,e,t){i.classList.toggle(e,!!t)}function Cn(i,e){return new i(e)}let Vo;function Io(i){Vo=i}function Bo(){if(!Vo)throw new Error("Function called outside component initialization");return Vo}function mn(i){Bo().$$.on_mount.push(i)}function hl(i){Bo().$$.on_destroy.push(i)}function Jl(i,e){return Bo().$$.context.set(i,e),e}function sr(i){return Bo().$$.context.get(i)}function v1(){return Bo().$$.context}function wo(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const ho=[],ye=[];let bo=[];const xl=[],g1=Promise.resolve();let $l=!1;function b1(){$l||($l=!0,g1.then(_1))}function No(){return b1(),g1}function yo(i){bo.push(i)}function We(i){xl.push(i)}const Tl=new Set;let ao=0;function _1(){if(ao!==0)return;const i=Vo;do{try{for(;ao<ho.length;){const e=ho[ao];ao++,Io(e),r0(e.$$)}}catch(e){throw ho.length=0,ao=0,e}for(Io(null),ho.length=0,ao=0;ye.length;)ye.pop()();for(let e=0;e<bo.length;e+=1){const t=bo[e];Tl.has(t)||(Tl.add(t),t())}bo.length=0}while(ho.length);for(;xl.length;)xl.pop()();$l=!1,Tl.clear(),Io(i)}function r0(i){if(i.fragment!==null){i.update(),nt(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(yo)}}function s0(i){const e=[],t=[];bo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),bo=e}const ul=new Set;let Zn;function pe(){Zn={r:0,c:[],p:Zn}}function he(){Zn.r||nt(Zn.c),Zn=Zn.p}function d(i,e){i&&i.i&&(ul.delete(i),i.i(e))}function g(i,e,t,n){if(i&&i.o){if(ul.has(i))return;ul.add(i),Zn.c.push(()=>{ul.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Gt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function a0(i,e){const t={},n={},o={$$scope:1};let r=i.length;for(;r--;){const l=i[r],s=e[r];if(s){for(const a in l)a in s||(n[a]=1);for(const a in s)o[a]||(t[a]=s[a],o[a]=1);i[r]=s}else for(const a in l)o[a]=1}for(const l in n)l in t||(t[l]=void 0);return t}function u0(i){return typeof i=="object"&&i!==null?i:{}}function Ze(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function W(i){i&&i.c()}function U(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),yo(()=>{const r=i.$$.on_mount.map(m1).filter(wn);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(yo)}function q(i,e){const t=i.$$;t.fragment!==null&&(s0(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function c0(i,e){i.$$.dirty[0]===-1&&(ho.push(i),b1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function _e(i,e,t,n,o,r,l,s=[-1]){const a=Vo;Io(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:o,bound:Rr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Rr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(m,h,...b)=>{const v=b.length?b[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=v)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](v),f&&c0(i,m)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=o0(e.target);c.fragment&&c.fragment.l(m),m.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),U(i,e.target,e.anchor),_1()}Io(a)}class we{constructor(){Pl(this,"$$");Pl(this,"$$set")}$destroy(){q(this,1),this.$destroy=K}$on(e,t){if(!wn(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!e0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const f0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(f0);var ko;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(ko||(ko={}));const d0={isMobile:void 0,defaultLanguage:oe.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:ko.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:oe.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},m0=i=>oe.fillWithDefault(i,d0),p0=i=>Jl("ui-config",i),pn=()=>sr("ui-config"),er="vk_player_debug_panel_opened",w1=300,h0=100,v0="videoplayer",g0="videoplayer";var Ce;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ce||(Ce={}));const Ro={[Ce.KeyF]:"f",[Ce.KeyK]:"k",[Ce.KeyC]:"c",[Ce.KeyM]:"m"},b0=new Set([Ce.ArrowLeft,Ce.ArrowRight,Ce.KeyL,Ce.KeyJ]),_0=new Set([Ce.Tab,Ce.Space,Ce.ArrowLeft,Ce.ArrowRight,Ce.ArrowUp,Ce.ArrowDown]),w0=new Set([Ce.ShiftRight,Ce.ShiftLeft]);var ut;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(ut||(ut={}));const Dr=40,y1=260,y0=60,Jo=8,k1=[ut.TIMELINE],cl=[...k1,ut.GRAPH_BUTTON],zr=[...k1,ut.PLAY_BUTTON],S1=[...cl,ut.PLAY_BUTTON];var vo;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(vo||(vo={}));exports.GridTypes=void 0;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const So={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},uo=[];function Sn(i,e){return{subscribe:Le(i,e).subscribe}}function Le(i,e=K){let t;const n=new Set;function o(s){if(be(i,s)&&(i=s,t)){const a=!uo.length;for(const c of n)c[1](),uo.push(c,i);if(a){for(let c=0;c<uo.length;c+=2)uo[c][0](uo[c+1]);uo.length=0}}}function r(s){o(s(i))}function l(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(o,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function si(i,e,t){const n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Sn(t,(l,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const v=e(n?c[0]:c,l,s);r?l(v):m=wn(v)?v:K},b=o.map((v,w)=>ei(v,_=>{c[w]=_,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){nt(b),m(),a=!1}})}const k0="prod",vl="1.1.35-beta.2",C1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},P1=Symbol("storeContext"),T1=Symbol("microStoresContext"),S0=(i,e)=>{Jl(P1,i),Jl(T1,e)},Et=()=>{const i=sr(P1);return oe.assertNonNullable(i,"Store context is empty!"),i},ar=()=>{const i=sr(T1);return oe.assertNonNullable(i,"MicroStores context is empty!"),i},Tt=(i,e)=>E1(i,i.getValue(),e),E1=(i,e,t)=>Sn(e,n=>{const o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),C0=(i,e,t)=>{var n,o,r,l;const s=i.info,{width:a,height:c}=Je(t.ui.playerSize),f=(o=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&o!==void 0?o:0,m=(l=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&l!==void 0?l:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",b=`${vl} (core: ${xe.VERSION}, stat: ${wt.VERSION}, shared: ${oe.VERSION})`,v=Je(t.state.errorLog$),w=v.length?`
6
+ "use strict";var Gf=Object.create;var Cl=Object.defineProperty;var Yf=Object.getOwnPropertyDescriptor;var Qf=Object.getOwnPropertyNames;var Xf=Object.getPrototypeOf,Jf=Object.prototype.hasOwnProperty;var xf=(i,e,t)=>e in i?Cl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var $f=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Qf(e))!Jf.call(i,o)&&o!==t&&Cl(i,o,{get:()=>e[o],enumerable:!(n=Yf(e,o))||n.enumerable});return i};var Nr=(i,e,t)=>(t=i!=null?Gf(Xf(i)):{},$f(e||!i||!i.__esModule?Cl(t,"default",{value:i,enumerable:!0}):t,i));var Pl=(i,e,t)=>(xf(i,typeof e!="symbol"?e+"":e,t),t);var xe=require("@vkontakte/videoplayer-core/es2018.cjs.js"),oe=require("@vkontakte/videoplayer-shared/es2018.cjs.js"),wt=require("@vkontakte/videoplayer-statistics/es2018.cjs.js");function K(){}function d1(i,e){for(const t in e)i[t]=e[t];return i}function m1(i){return i()}function Rr(){return Object.create(null)}function nt(i){i.forEach(m1)}function wn(i){return typeof i=="function"}function be(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Qo;function Or(i,e){return Qo||(Qo=document.createElement("a")),Qo.href=e,i===Qo.href}function e0(i){return Object.keys(i).length===0}function ei(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Je(i){let e;return ei(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(ei(e,t))}function Ln(i,e,t,n){if(i){const o=p1(i,e,t,n);return i[0](o)}}function p1(i,e,t,n){return i[1]&&n?d1(t.ctx.slice(),i[1](n(e))):t.ctx}function In(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const r=[],l=Math.max(e.dirty.length,o.length);for(let s=0;s<l;s+=1)r[s]=e.dirty[s]|o[s];return r}return e.dirty|o}return e.dirty}function Vn(i,e,t,n,o,r){if(o){const l=p1(e,t,n,r);i.p(l,o)}}function Mn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function t0(i){return i==null?"":i}const h1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function qe(i,e,t){const n=i0(i);if(!n.getElementById(e)){const o=A("style");o.id=e,o.textContent=t,n0(n,o)}}function i0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function n0(i,e){return p(i.head||i,e),e.sheet}function E(i,e,t){i.insertBefore(e,t||null)}function P(i){i.parentNode&&i.parentNode.removeChild(i)}function yn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function A(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Oe(i){return document.createTextNode(i)}function R(){return Oe(" ")}function gt(){return Oe("")}function ge(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ii(i){return function(e){return e.preventDefault(),i.call(this,e)}}function rt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function o0(i){return Array.from(i.childNodes)}function $e(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ut(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let Xo;function l0(){if(Xo===void 0){Xo=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Xo=!0}}return Xo}function rr(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=A("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=l0();let r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ge(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ge(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),P(n)}}function M(i,e,t){i.classList.toggle(e,!!t)}function Cn(i,e){return new i(e)}let Vo;function Io(i){Vo=i}function Bo(){if(!Vo)throw new Error("Function called outside component initialization");return Vo}function mn(i){Bo().$$.on_mount.push(i)}function hl(i){Bo().$$.on_destroy.push(i)}function Jl(i,e){return Bo().$$.context.set(i,e),e}function sr(i){return Bo().$$.context.get(i)}function v1(){return Bo().$$.context}function wo(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const ho=[],ye=[];let bo=[];const xl=[],g1=Promise.resolve();let $l=!1;function b1(){$l||($l=!0,g1.then(_1))}function No(){return b1(),g1}function yo(i){bo.push(i)}function We(i){xl.push(i)}const Tl=new Set;let ao=0;function _1(){if(ao!==0)return;const i=Vo;do{try{for(;ao<ho.length;){const e=ho[ao];ao++,Io(e),r0(e.$$)}}catch(e){throw ho.length=0,ao=0,e}for(Io(null),ho.length=0,ao=0;ye.length;)ye.pop()();for(let e=0;e<bo.length;e+=1){const t=bo[e];Tl.has(t)||(Tl.add(t),t())}bo.length=0}while(ho.length);for(;xl.length;)xl.pop()();$l=!1,Tl.clear(),Io(i)}function r0(i){if(i.fragment!==null){i.update(),nt(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(yo)}}function s0(i){const e=[],t=[];bo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),bo=e}const ul=new Set;let Zn;function pe(){Zn={r:0,c:[],p:Zn}}function he(){Zn.r||nt(Zn.c),Zn=Zn.p}function d(i,e){i&&i.i&&(ul.delete(i),i.i(e))}function g(i,e,t,n){if(i&&i.o){if(ul.has(i))return;ul.add(i),Zn.c.push(()=>{ul.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Gt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function a0(i,e){const t={},n={},o={$$scope:1};let r=i.length;for(;r--;){const l=i[r],s=e[r];if(s){for(const a in l)a in s||(n[a]=1);for(const a in s)o[a]||(t[a]=s[a],o[a]=1);i[r]=s}else for(const a in l)o[a]=1}for(const l in n)l in t||(t[l]=void 0);return t}function u0(i){return typeof i=="object"&&i!==null?i:{}}function Ze(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function W(i){i&&i.c()}function U(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),yo(()=>{const r=i.$$.on_mount.map(m1).filter(wn);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(yo)}function q(i,e){const t=i.$$;t.fragment!==null&&(s0(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function c0(i,e){i.$$.dirty[0]===-1&&(ho.push(i),b1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function _e(i,e,t,n,o,r,l,s=[-1]){const a=Vo;Io(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:o,bound:Rr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Rr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(m,h,...b)=>{const v=b.length?b[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=v)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](v),f&&c0(i,m)),h}):[],c.update(),f=!0,nt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=o0(e.target);c.fragment&&c.fragment.l(m),m.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),U(i,e.target,e.anchor),_1()}Io(a)}class we{constructor(){Pl(this,"$$");Pl(this,"$$set")}$destroy(){q(this,1),this.$destroy=K}$on(e,t){if(!wn(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!e0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const f0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(f0);var ko;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(ko||(ko={}));const d0={isMobile:void 0,defaultLanguage:oe.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:ko.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:oe.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},m0=i=>oe.fillWithDefault(i,d0),p0=i=>Jl("ui-config",i),pn=()=>sr("ui-config"),er="vk_player_debug_panel_opened",w1=300,h0=100,v0="videoplayer",g0="videoplayer";var Ce;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ce||(Ce={}));const Ro={[Ce.KeyF]:"f",[Ce.KeyK]:"k",[Ce.KeyC]:"c",[Ce.KeyM]:"m"},b0=new Set([Ce.ArrowLeft,Ce.ArrowRight,Ce.KeyL,Ce.KeyJ]),_0=new Set([Ce.Tab,Ce.Space,Ce.ArrowLeft,Ce.ArrowRight,Ce.ArrowUp,Ce.ArrowDown]),w0=new Set([Ce.ShiftRight,Ce.ShiftLeft]);var ut;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(ut||(ut={}));const Dr=40,y1=260,y0=60,Jo=8,k1=[ut.TIMELINE],cl=[...k1,ut.GRAPH_BUTTON],zr=[...k1,ut.PLAY_BUTTON],S1=[...cl,ut.PLAY_BUTTON];var vo;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(vo||(vo={}));exports.GridTypes=void 0;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const So={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},uo=[];function Sn(i,e){return{subscribe:Le(i,e).subscribe}}function Le(i,e=K){let t;const n=new Set;function o(s){if(be(i,s)&&(i=s,t)){const a=!uo.length;for(const c of n)c[1](),uo.push(c,i);if(a){for(let c=0;c<uo.length;c+=2)uo[c][0](uo[c+1]);uo.length=0}}}function r(s){o(s(i))}function l(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(o,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function si(i,e,t){const n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return Sn(t,(l,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const v=e(n?c[0]:c,l,s);r?l(v):m=wn(v)?v:K},b=o.map((v,w)=>ei(v,_=>{c[w]=_,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){nt(b),m(),a=!1}})}const k0="prod",vl="1.1.35-beta.3",C1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},P1=Symbol("storeContext"),T1=Symbol("microStoresContext"),S0=(i,e)=>{Jl(P1,i),Jl(T1,e)},Et=()=>{const i=sr(P1);return oe.assertNonNullable(i,"Store context is empty!"),i},ar=()=>{const i=sr(T1);return oe.assertNonNullable(i,"MicroStores context is empty!"),i},Tt=(i,e)=>E1(i,i.getValue(),e),E1=(i,e,t)=>Sn(e,n=>{const o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),C0=(i,e,t)=>{var n,o,r,l;const s=i.info,{width:a,height:c}=Je(t.ui.playerSize),f=(o=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&o!==void 0?o:0,m=(l=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&l!==void 0?l:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",b=`${vl} (core: ${xe.VERSION}, stat: ${wt.VERSION}, shared: ${oe.VERSION})`,v=Je(t.state.errorLog$),w=v.length?`
7
7
  `+v.map((y,k)=>{var V;const G=`${k}) Type: ${y.id}
8
8
  `,I=`Message: ${y.message} (${y.thrown})
9
9
  `,Q=`Trace: ${(V=y.thrown)===null||V===void 0?void 0:V.stack}
package/es2018.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.35-beta.2
3
- * Fri, 17 May 2024 09:05:41 GMT
2
+ * @vkontakte/videoplayer v1.1.35-beta.3
3
+ * Tue, 21 May 2024 12:05:21 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-35/doc/
5
5
  */
6
- var f0=Object.defineProperty;var d0=(i,e,t)=>e in i?f0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Dl=(i,e,t)=>(d0(i,typeof e!="symbol"?e+"":e,t),t);import{VERSION as m0,ChromecastState as Ln,PlaybackState as Yt,VideoQuality as ko,Player as p0,VideoFormat as Do}from"@vkontakte/videoplayer-core/es2018.esm.js";import{VideoFormat as z6,VideoQuality as F6}from"@vkontakte/videoplayer-core/es2018.esm.js";import{InterfaceLanguage as jo,VideoQuality as wl,fillWithDefault as h0,VERSION as v0,assertNonNullable as vt,safeStorage as Pn,isNullable as Sl,Subscription as Wn,isNonNullable as Cn,isMacLike as Xr,debounceFn as g0,ValueSubject as br,getCurrentBrowser as _r,CurrentClientBrowser as A1,noop as Ye,checkNever as b0,timeCodeToString as _0,Subject as _n,addScript as w0,Logger as L1,merge as y0,Observable as k0,map as C0,loadVKLangPack as S0,isIOS as wr,getHighestQuality as P0,throttleFn as Al,CurrentClientDevice as T0,getIOSVersion as E0,detectEmbed as A0,observeElementSize as L0,isMobile as I0,cloneDeepWith as M0}from"@vkontakte/videoplayer-shared/es2018.esm.js";import{InterfaceLanguage as U6,VKNumericLanguage as q6,loadVKLangPack as j6}from"@vkontakte/videoplayer-shared/es2018.esm.js";import{VERSION as V0,SeekAction as jt,OneStat as B0,InteractiveInterfaceClick as zo}from"@vkontakte/videoplayer-statistics/es2018.esm.js";function K(){}function I1(i,e){for(const t in e)i[t]=e[t];return i}function M1(i){return i()}function Jr(){return Object.create(null)}function it(i){i.forEach(M1)}function Sn(i){return typeof i=="function"}function ge(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let rl;function xr(i,e){return rl||(rl=document.createElement("a")),rl.href=e,i===rl.href}function R0(i){return Object.keys(i).length===0}function ii(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Je(i){let e;return ii(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(ii(e,t))}function Nn(i,e,t,n){if(i){const l=V1(i,e,t,n);return i[0](l)}}function V1(i,e,t,n){return i[1]&&n?I1(t.ctx.slice(),i[1](n(e))):t.ctx}function On(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function Dn(i,e,t,n,l,r){if(l){const o=V1(e,t,n,r);i.p(o,l)}}function zn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function N0(i){return i==null?"":i}const B1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function Ue(i,e,t){const n=O0(i);if(!n.getElementById(e)){const l=A("style");l.id=e,l.textContent=t,D0(n,l)}}function O0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function D0(i,e){return p(i.head||i,e),e.sheet}function E(i,e,t){i.insertBefore(e,t||null)}function P(i){i.parentNode&&i.parentNode.removeChild(i)}function Tn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function A(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function N(){return Ne(" ")}function gt(){return Ne("")}function ve(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function oi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function lt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function z0(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ut(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let sl;function F0(){if(sl===void 0){sl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){sl=!0}}return sl}function yr(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=A("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=F0();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ve(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ve(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(l||r&&n.contentWindow)&&r(),P(n)}}function V(i,e,t){i.classList.toggle(e,!!t)}function In(i,e){return new i(e)}let Uo;function Ho(i){Uo=i}function Wo(){if(!Uo)throw new Error("Function called outside component initialization");return Uo}function hn(i){Wo().$$.on_mount.push(i)}function Ll(i){Wo().$$.on_destroy.push(i)}function ur(i,e){return Wo().$$.context.set(i,e),e}function kr(i){return Wo().$$.context.get(i)}function R1(){return Wo().$$.context}function Ao(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Co=[],we=[];let To=[];const cr=[],N1=Promise.resolve();let fr=!1;function O1(){fr||(fr=!0,N1.then(D1))}function Zo(){return O1(),N1}function Lo(i){To.push(i)}function je(i){cr.push(i)}const zl=new Set;let vo=0;function D1(){if(vo!==0)return;const i=Uo;do{try{for(;vo<Co.length;){const e=Co[vo];vo++,Ho(e),H0(e.$$)}}catch(e){throw Co.length=0,vo=0,e}for(Ho(null),Co.length=0,vo=0;we.length;)we.pop()();for(let e=0;e<To.length;e+=1){const t=To[e];zl.has(t)||(zl.add(t),t())}To.length=0}while(Co.length);for(;cr.length;)cr.pop()();fr=!1,zl.clear(),Ho(i)}function H0(i){if(i.fragment!==null){i.update(),it(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Lo)}}function U0(i){const e=[],t=[];To.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),To=e}const yl=new Set;let xn;function me(){xn={r:0,c:[],p:xn}}function pe(){xn.r||it(xn.c),xn=xn.p}function d(i,e){i&&i.i&&(yl.delete(i),i.i(e))}function g(i,e,t,n){if(i&&i.o){if(yl.has(i))return;yl.add(i),xn.c.push(()=>{yl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Qt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function q0(i,e){const t={},n={},l={$$scope:1};let r=i.length;for(;r--;){const o=i[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(t[a]=s[a],l[a]=1);i[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in t||(t[o]=void 0);return t}function j0(i){return typeof i=="object"&&i!==null?i:{}}function We(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function W(i){i&&i.c()}function U(i,e,t){const{fragment:n,after_update:l}=i.$$;n&&n.m(e,t),Lo(()=>{const r=i.$$.on_mount.map(M1).filter(Sn);i.$$.on_destroy?i.$$.on_destroy.push(...r):it(r),i.$$.on_mount=[]}),l.forEach(Lo)}function q(i,e){const t=i.$$;t.fragment!==null&&(U0(t.after_update),it(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function W0(i,e){i.$$.dirty[0]===-1&&(Co.push(i),O1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function be(i,e,t,n,l,r,o,s=[-1]){const a=Uo;Ho(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:Jr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Jr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(m,h,...b)=>{const v=b.length?b[0]:h;return c.ctx&&l(c.ctx[m],c.ctx[m]=v)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](v),f&&W0(i,m)),h}):[],c.update(),f=!0,it(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=z0(e.target);c.fragment&&c.fragment.l(m),m.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),U(i,e.target,e.anchor),D1()}Ho(a)}class _e{constructor(){Dl(this,"$$");Dl(this,"$$set")}$destroy(){q(this,1),this.$destroy=K}$on(e,t){if(!Sn(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!R0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Z0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Z0);var Io;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(Io||(Io={}));const K0={isMobile:void 0,defaultLanguage:jo.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:Io.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:wl.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},G0=i=>h0(i,K0),Y0=i=>ur("ui-config",i),vn=()=>kr("ui-config"),dr="vk_player_debug_panel_opened",z1=300,Q0=100,X0="videoplayer",J0="videoplayer";var Ce;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ce||(Ce={}));const Ko={[Ce.KeyF]:"f",[Ce.KeyK]:"k",[Ce.KeyC]:"c",[Ce.KeyM]:"m"},x0=new Set([Ce.ArrowLeft,Ce.ArrowRight,Ce.KeyL,Ce.KeyJ]),$0=new Set([Ce.Tab,Ce.Space,Ce.ArrowLeft,Ce.ArrowRight,Ce.ArrowUp,Ce.ArrowDown]),ed=new Set([Ce.ShiftRight,Ce.ShiftLeft]);var at;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(at||(at={}));const $r=40,F1=260,td=60,al=8,H1=[at.TIMELINE],kl=[...H1,at.GRAPH_BUTTON],es=[...H1,at.PLAY_BUTTON],U1=[...kl,at.PLAY_BUTTON];var So;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(So||(So={}));var Mt;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(Mt||(Mt={}));const Mo={[Mt.XS]:0,[Mt.S]:1,[Mt.M]:2,[Mt.L]:3,[Mt.XL]:4},go=[];function An(i,e){return{subscribe:Ae(i,e).subscribe}}function Ae(i,e=K){let t;const n=new Set;function l(s){if(ge(i,s)&&(i=s,t)){const a=!go.length;for(const c of n)c[1](),go.push(c,i);if(a){for(let c=0;c<go.length;c+=2)go[c][0](go[c+1]);go.length=0}}}function r(s){l(s(i))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(l,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:l,update:r,subscribe:o}}function ui(i,e,t){const n=!Array.isArray(i),l=n?[i]:i;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return An(t,(o,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const v=e(n?c[0]:c,o,s);r?o(v):m=Sn(v)?v:K},b=l.map((v,w)=>ii(v,_=>{c[w]=_,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){it(b),m(),a=!1}})}const id="prod",Cr="1.1.35-beta.2",q1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},j1=Symbol("storeContext"),W1=Symbol("microStoresContext"),nd=(i,e)=>{ur(j1,i),ur(W1,e)},Tt=()=>{const i=kr(j1);return vt(i,"Store context is empty!"),i},Sr=()=>{const i=kr(W1);return vt(i,"MicroStores context is empty!"),i},Pt=(i,e)=>Z1(i,i.getValue(),e),Z1=(i,e,t)=>An(e,n=>{const l=i.subscribe(r=>{n(r),t==null||t(r)});return()=>l.unsubscribe()}),od=(i,e,t)=>{var n,l,r,o;const s=i.info,{width:a,height:c}=Je(t.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,m=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",b=`${Cr} (core: ${m0}, stat: ${V0}, shared: ${v0})`,v=Je(t.state.errorLog$),w=v.length?`
6
+ var f0=Object.defineProperty;var d0=(i,e,t)=>e in i?f0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Dl=(i,e,t)=>(d0(i,typeof e!="symbol"?e+"":e,t),t);import{VERSION as m0,ChromecastState as Ln,PlaybackState as Yt,VideoQuality as ko,Player as p0,VideoFormat as Do}from"@vkontakte/videoplayer-core/es2018.esm.js";import{VideoFormat as z6,VideoQuality as F6}from"@vkontakte/videoplayer-core/es2018.esm.js";import{InterfaceLanguage as jo,VideoQuality as wl,fillWithDefault as h0,VERSION as v0,assertNonNullable as vt,safeStorage as Pn,isNullable as Sl,Subscription as Wn,isNonNullable as Cn,isMacLike as Xr,debounceFn as g0,ValueSubject as br,getCurrentBrowser as _r,CurrentClientBrowser as A1,noop as Ye,checkNever as b0,timeCodeToString as _0,Subject as _n,addScript as w0,Logger as L1,merge as y0,Observable as k0,map as C0,loadVKLangPack as S0,isIOS as wr,getHighestQuality as P0,throttleFn as Al,CurrentClientDevice as T0,getIOSVersion as E0,detectEmbed as A0,observeElementSize as L0,isMobile as I0,cloneDeepWith as M0}from"@vkontakte/videoplayer-shared/es2018.esm.js";import{InterfaceLanguage as U6,VKNumericLanguage as q6,loadVKLangPack as j6}from"@vkontakte/videoplayer-shared/es2018.esm.js";import{VERSION as V0,SeekAction as jt,OneStat as B0,InteractiveInterfaceClick as zo}from"@vkontakte/videoplayer-statistics/es2018.esm.js";function K(){}function I1(i,e){for(const t in e)i[t]=e[t];return i}function M1(i){return i()}function Jr(){return Object.create(null)}function it(i){i.forEach(M1)}function Sn(i){return typeof i=="function"}function ge(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let rl;function xr(i,e){return rl||(rl=document.createElement("a")),rl.href=e,i===rl.href}function R0(i){return Object.keys(i).length===0}function ii(i,...e){if(i==null){for(const n of e)n(void 0);return K}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Je(i){let e;return ii(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(ii(e,t))}function Nn(i,e,t,n){if(i){const l=V1(i,e,t,n);return i[0](l)}}function V1(i,e,t,n){return i[1]&&n?I1(t.ctx.slice(),i[1](n(e))):t.ctx}function On(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const r=[],o=Math.max(e.dirty.length,l.length);for(let s=0;s<o;s+=1)r[s]=e.dirty[s]|l[s];return r}return e.dirty|l}return e.dirty}function Dn(i,e,t,n,l,r){if(l){const o=V1(e,t,n,r);i.p(o,l)}}function zn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function N0(i){return i==null?"":i}const B1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function p(i,e){i.appendChild(e)}function Ue(i,e,t){const n=O0(i);if(!n.getElementById(e)){const l=A("style");l.id=e,l.textContent=t,D0(n,l)}}function O0(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function D0(i,e){return p(i.head||i,e),e.sheet}function E(i,e,t){i.insertBefore(e,t||null)}function P(i){i.parentNode&&i.parentNode.removeChild(i)}function Tn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function A(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function N(){return Ne(" ")}function gt(){return Ne("")}function ve(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function oi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function lt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function z0(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ut(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let sl;function F0(){if(sl===void 0){sl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){sl=!0}}return sl}function yr(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=A("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const l=F0();let r;return l?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=ve(window,"message",o=>{o.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=ve(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(l||r&&n.contentWindow)&&r(),P(n)}}function V(i,e,t){i.classList.toggle(e,!!t)}function In(i,e){return new i(e)}let Uo;function Ho(i){Uo=i}function Wo(){if(!Uo)throw new Error("Function called outside component initialization");return Uo}function hn(i){Wo().$$.on_mount.push(i)}function Ll(i){Wo().$$.on_destroy.push(i)}function ur(i,e){return Wo().$$.context.set(i,e),e}function kr(i){return Wo().$$.context.get(i)}function R1(){return Wo().$$.context}function Ao(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Co=[],we=[];let To=[];const cr=[],N1=Promise.resolve();let fr=!1;function O1(){fr||(fr=!0,N1.then(D1))}function Zo(){return O1(),N1}function Lo(i){To.push(i)}function je(i){cr.push(i)}const zl=new Set;let vo=0;function D1(){if(vo!==0)return;const i=Uo;do{try{for(;vo<Co.length;){const e=Co[vo];vo++,Ho(e),H0(e.$$)}}catch(e){throw Co.length=0,vo=0,e}for(Ho(null),Co.length=0,vo=0;we.length;)we.pop()();for(let e=0;e<To.length;e+=1){const t=To[e];zl.has(t)||(zl.add(t),t())}To.length=0}while(Co.length);for(;cr.length;)cr.pop()();fr=!1,zl.clear(),Ho(i)}function H0(i){if(i.fragment!==null){i.update(),it(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Lo)}}function U0(i){const e=[],t=[];To.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),To=e}const yl=new Set;let xn;function me(){xn={r:0,c:[],p:xn}}function pe(){xn.r||it(xn.c),xn=xn.p}function d(i,e){i&&i.i&&(yl.delete(i),i.i(e))}function g(i,e,t,n){if(i&&i.o){if(yl.has(i))return;yl.add(i),xn.c.push(()=>{yl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Qt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function q0(i,e){const t={},n={},l={$$scope:1};let r=i.length;for(;r--;){const o=i[r],s=e[r];if(s){for(const a in o)a in s||(n[a]=1);for(const a in s)l[a]||(t[a]=s[a],l[a]=1);i[r]=s}else for(const a in o)l[a]=1}for(const o in n)o in t||(t[o]=void 0);return t}function j0(i){return typeof i=="object"&&i!==null?i:{}}function We(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function W(i){i&&i.c()}function U(i,e,t){const{fragment:n,after_update:l}=i.$$;n&&n.m(e,t),Lo(()=>{const r=i.$$.on_mount.map(M1).filter(Sn);i.$$.on_destroy?i.$$.on_destroy.push(...r):it(r),i.$$.on_mount=[]}),l.forEach(Lo)}function q(i,e){const t=i.$$;t.fragment!==null&&(U0(t.after_update),it(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function W0(i,e){i.$$.dirty[0]===-1&&(Co.push(i),O1(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function be(i,e,t,n,l,r,o,s=[-1]){const a=Uo;Ho(i);const c=i.$$={fragment:null,ctx:[],props:r,update:K,not_equal:l,bound:Jr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Jr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};o&&o(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(m,h,...b)=>{const v=b.length?b[0]:h;return c.ctx&&l(c.ctx[m],c.ctx[m]=v)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](v),f&&W0(i,m)),h}):[],c.update(),f=!0,it(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=z0(e.target);c.fragment&&c.fragment.l(m),m.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(i.$$.fragment),U(i,e.target,e.anchor),D1()}Ho(a)}class _e{constructor(){Dl(this,"$$");Dl(this,"$$set")}$destroy(){q(this,1),this.$destroy=K}$on(e,t){if(!Sn(t))return K;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!R0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Z0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Z0);var Io;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(Io||(Io={}));const K0={isMobile:void 0,defaultLanguage:jo.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:Io.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:wl.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},G0=i=>h0(i,K0),Y0=i=>ur("ui-config",i),vn=()=>kr("ui-config"),dr="vk_player_debug_panel_opened",z1=300,Q0=100,X0="videoplayer",J0="videoplayer";var Ce;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash",i.Tab="Tab",i.Escape="Escape",i.Enter="Enter"})(Ce||(Ce={}));const Ko={[Ce.KeyF]:"f",[Ce.KeyK]:"k",[Ce.KeyC]:"c",[Ce.KeyM]:"m"},x0=new Set([Ce.ArrowLeft,Ce.ArrowRight,Ce.KeyL,Ce.KeyJ]),$0=new Set([Ce.Tab,Ce.Space,Ce.ArrowLeft,Ce.ArrowRight,Ce.ArrowUp,Ce.ArrowDown]),ed=new Set([Ce.ShiftRight,Ce.ShiftLeft]);var at;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(at||(at={}));const $r=40,F1=260,td=60,al=8,H1=[at.TIMELINE],kl=[...H1,at.GRAPH_BUTTON],es=[...H1,at.PLAY_BUTTON],U1=[...kl,at.PLAY_BUTTON];var So;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(So||(So={}));var Mt;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(Mt||(Mt={}));const Mo={[Mt.XS]:0,[Mt.S]:1,[Mt.M]:2,[Mt.L]:3,[Mt.XL]:4},go=[];function An(i,e){return{subscribe:Ae(i,e).subscribe}}function Ae(i,e=K){let t;const n=new Set;function l(s){if(ge(i,s)&&(i=s,t)){const a=!go.length;for(const c of n)c[1](),go.push(c,i);if(a){for(let c=0;c<go.length;c+=2)go[c][0](go[c+1]);go.length=0}}}function r(s){l(s(i))}function o(s,a=K){const c=[s,a];return n.add(c),n.size===1&&(t=e(l,r)||K),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:l,update:r,subscribe:o}}function ui(i,e,t){const n=!Array.isArray(i),l=n?[i]:i;if(!l.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return An(t,(o,s)=>{let a=!1;const c=[];let f=0,m=K;const h=()=>{if(f)return;m();const v=e(n?c[0]:c,o,s);r?o(v):m=Sn(v)?v:K},b=l.map((v,w)=>ii(v,_=>{c[w]=_,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){it(b),m(),a=!1}})}const id="prod",Cr="1.1.35-beta.3",q1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},j1=Symbol("storeContext"),W1=Symbol("microStoresContext"),nd=(i,e)=>{ur(j1,i),ur(W1,e)},Tt=()=>{const i=kr(j1);return vt(i,"Store context is empty!"),i},Sr=()=>{const i=kr(W1);return vt(i,"MicroStores context is empty!"),i},Pt=(i,e)=>Z1(i,i.getValue(),e),Z1=(i,e,t)=>An(e,n=>{const l=i.subscribe(r=>{n(r),t==null||t(r)});return()=>l.unsubscribe()}),od=(i,e,t)=>{var n,l,r,o;const s=i.info,{width:a,height:c}=Je(t.ui.playerSize),f=(l=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&l!==void 0?l:0,m=(o=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&o!==void 0?o:0,h=s.isAutoQualityEnabled$.getValue()?"auto":"manual",b=`${Cr} (core: ${m0}, stat: ${V0}, shared: ${v0})`,v=Je(t.state.errorLog$),w=v.length?`
7
7
  `+v.map((y,k)=>{var M;const G=`${k}) Type: ${y.id}
8
8
  `,I=`Message: ${y.message} (${y.thrown})
9
9
  `,Q=`Trace: ${(M=y.thrown)===null||M===void 0?void 0:M.stack}
package/esnext.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.35-beta.2
3
- * Fri, 17 May 2024 09:05:41 GMT
2
+ * @vkontakte/videoplayer v1.1.35-beta.3
3
+ * Tue, 21 May 2024 12:05:21 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-35/doc/
5
5
  */
6
- "use strict";var xu=Object.create;var Dl=Object.defineProperty;var $u=Object.getOwnPropertyDescriptor;var ec=Object.getOwnPropertyNames;var tc=Object.getPrototypeOf,ic=Object.prototype.hasOwnProperty;var nc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ec(e))!ic.call(t,o)&&o!==i&&Dl(t,o,{get:()=>e[o],enumerable:!(n=$u(e,o))||n.enumerable});return t};var Fl=(t,e,i)=>(i=t!=null?xu(tc(t)):{},nc(e||!t||!t.__esModule?Dl(i,"default",{value:t,enumerable:!0}):i,t));var Xe=require("@vkontakte/videoplayer-core/esnext.cjs.js"),ie=require("@vkontakte/videoplayer-shared/esnext.cjs.js"),ct=require("@vkontakte/videoplayer-statistics/esnext.cjs.js");function j(){}function Ga(t,e){for(const i in e)t[i]=e[i];return t}function Ya(t){return t()}function Hl(){return Object.create(null)}function et(t){t.forEach(Ya)}function mn(t){return typeof t=="function"}function ge(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Vo;function Ul(t,e){return Vo||(Vo=document.createElement("a")),Vo.href=e,t===Vo.href}function oc(t){return Object.keys(t).length===0}function Wt(t,...e){if(t==null){for(const n of e)n(void 0);return j}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Qe(t){let e;return Wt(t,i=>e=i)(),e}function O(t,e,i){t.$$.on_destroy.push(Wt(e,i))}function An(t,e,i,n){if(t){const o=Qa(t,e,i,n);return t[0](o)}}function Qa(t,e,i,n){return t[1]&&n?Ga(i.ctx.slice(),t[1](n(e))):i.ctx}function Ln(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function In(t,e,i,n,o,s){if(o){const l=Qa(e,i,n,s);t.p(l,o)}}function Vn(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 lc(t){return t??""}const Xa=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function p(t,e){t.appendChild(e)}function Fe(t,e,i){const n=sc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,rc(n,o)}}function sc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function rc(t,e){return p(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function P(t){t.parentNode&&t.parentNode.removeChild(t)}function pn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function N(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ze(t){return document.createTextNode(t)}function z(){return ze(" ")}function lt(){return ze("")}function he(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Gt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function it(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ac(t){return Array.from(t.childNodes)}function Je(t,e){e=""+e,t.data!==e&&(t.data=e)}function Pt(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Mo;function uc(){if(Mo===void 0){Mo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Mo=!0}}return Mo}function pl(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=uc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=he(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=he(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(o||s&&n.contentWindow)&&s(),P(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function wn(t,e){return new t(e)}let ko;function wo(t){ko=t}function Co(){if(!ko)throw new Error("Function called outside component initialization");return ko}function on(t){Co().$$.on_mount.push(t)}function Wo(t){Co().$$.on_destroy.push(t)}function al(t,e){return Co().$$.context.set(t,e),e}function hl(t){return Co().$$.context.get(t)}function Ja(){return Co().$$.context}function ro(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const no=[],we=[];let lo=[];const ul=[],xa=Promise.resolve();let cl=!1;function $a(){cl||(cl=!0,xa.then(e1))}function So(){return $a(),xa}function ao(t){lo.push(t)}function He(t){ul.push(t)}const xo=new Set;let eo=0;function e1(){if(eo!==0)return;const t=ko;do{try{for(;eo<no.length;){const e=no[eo];eo++,wo(e),cc(e.$$)}}catch(e){throw no.length=0,eo=0,e}for(wo(null),no.length=0,eo=0;we.length;)we.pop()();for(let e=0;e<lo.length;e+=1){const i=lo[e];xo.has(i)||(xo.add(i),i())}lo.length=0}while(no.length);for(;ul.length;)ul.pop()();cl=!1,xo.clear(),wo(t)}function cc(t){if(t.fragment!==null){t.update(),et(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ao)}}function fc(t){const e=[],i=[];lo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),lo=e}const Uo=new Set;let Fn;function me(){Fn={r:0,c:[],p:Fn}}function pe(){Fn.r||et(Fn.c),Fn=Fn.p}function d(t,e){t&&t.i&&(Uo.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if(Uo.has(t))return;Uo.add(t),Fn.c.push(()=>{Uo.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Ft(t){return t?.length!==void 0?t:Array.from(t)}function dc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function mc(t){return typeof t=="object"&&t!==null?t:{}}function Ue(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function U(t){t&&t.c()}function D(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),ao(()=>{const s=t.$$.on_mount.map(Ya).filter(mn);t.$$.on_destroy?t.$$.on_destroy.push(...s):et(s),t.$$.on_mount=[]}),o.forEach(ao)}function F(t,e){const i=t.$$;i.fragment!==null&&(fc(i.after_update),et(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function pc(t,e){t.$$.dirty[0]===-1&&(no.push(t),$a(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function be(t,e,i,n,o,s,l,r=[-1]){const a=ko;wo(t);const c=t.$$={fragment:null,ctx:[],props:s,update:j,not_equal:o,bound:Hl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Hl(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=b)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](b),f&&pc(t,m)),h}):[],c.update(),f=!0,et(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=ac(e.target);c.fragment&&c.fragment.l(m),m.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),D(t,e.target,e.anchor),e1()}wo(a)}class _e{$$=void 0;$$set=void 0;$destroy(){F(this,1),this.$destroy=j}$on(e,i){if(!mn(i))return j;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!oc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const hc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(hc);var uo;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(uo||(uo={}));const gc={isMobile:void 0,defaultLanguage:ie.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:uo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ie.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},bc=t=>ie.fillWithDefault(t,gc),_c=t=>al("ui-config",t),ln=()=>hl("ui-config"),fl="vk_player_debug_panel_opened",t1=300,vc=100,wc="videoplayer",kc="videoplayer";var Pe;(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",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Pe||(Pe={}));const Po={[Pe.KeyF]:"f",[Pe.KeyK]:"k",[Pe.KeyC]:"c",[Pe.KeyM]:"m"},yc=new Set([Pe.ArrowLeft,Pe.ArrowRight,Pe.KeyL,Pe.KeyJ]),Cc=new Set([Pe.Tab,Pe.Space,Pe.ArrowLeft,Pe.ArrowRight,Pe.ArrowUp,Pe.ArrowDown]),Sc=new Set([Pe.ShiftRight,Pe.ShiftLeft]);var ot;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(ot||(ot={}));const ql=40,i1=260,Pc=60,Bo=8,n1=[ot.TIMELINE],qo=[...n1,ot.GRAPH_BUTTON],jl=[...n1,ot.PLAY_BUTTON],o1=[...qo,ot.PLAY_BUTTON];var oo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(oo||(oo={}));exports.GridTypes=void 0;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const co={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},to=[];function vn(t,e){return{subscribe:Le(t,e).subscribe}}function Le(t,e=j){let i;const n=new Set;function o(r){if(ge(t,r)&&(t=r,i)){const a=!to.length;for(const c of n)c[1](),to.push(c,t);if(a){for(let c=0;c<to.length;c+=2)to[c][0](to[c+1]);to.length=0}}}function s(r){o(r(t))}function l(r,a=j){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||j),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function ii(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return vn(i,(l,r)=>{let a=!1;const c=[];let f=0,m=j;const h=()=>{if(f)return;m();const b=e(n?c[0]:c,l,r);s?l(b):m=mn(b)?b:j},_=o.map((b,w)=>Wt(b,v=>{c[w]=v,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){et(_),m(),a=!1}})}const Tc="prod",Ko="1.1.35-beta.2",l1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},s1=Symbol("storeContext"),r1=Symbol("microStoresContext"),Ec=(t,e)=>{al(s1,t),al(r1,e)},mt=()=>{const t=hl(s1);return ie.assertNonNullable(t,"Store context is empty!"),t},gl=()=>{const t=hl(r1);return ie.assertNonNullable(t,"MicroStores context is empty!"),t},dt=(t,e)=>a1(t,t.getValue(),e),a1=(t,e,i)=>vn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),Ac=(t,e,i)=>{const n=t.info,{width:o,height:s}=Qe(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ko} (core: ${Xe.VERSION}, stat: ${ct.VERSION}, shared: ${ie.VERSION})`,f=Qe(i.state.errorLog$),m=f.length?`
6
+ "use strict";var xu=Object.create;var Dl=Object.defineProperty;var $u=Object.getOwnPropertyDescriptor;var ec=Object.getOwnPropertyNames;var tc=Object.getPrototypeOf,ic=Object.prototype.hasOwnProperty;var nc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ec(e))!ic.call(t,o)&&o!==i&&Dl(t,o,{get:()=>e[o],enumerable:!(n=$u(e,o))||n.enumerable});return t};var Fl=(t,e,i)=>(i=t!=null?xu(tc(t)):{},nc(e||!t||!t.__esModule?Dl(i,"default",{value:t,enumerable:!0}):i,t));var Xe=require("@vkontakte/videoplayer-core/esnext.cjs.js"),ie=require("@vkontakte/videoplayer-shared/esnext.cjs.js"),ct=require("@vkontakte/videoplayer-statistics/esnext.cjs.js");function j(){}function Ga(t,e){for(const i in e)t[i]=e[i];return t}function Ya(t){return t()}function Hl(){return Object.create(null)}function et(t){t.forEach(Ya)}function mn(t){return typeof t=="function"}function ge(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Vo;function Ul(t,e){return Vo||(Vo=document.createElement("a")),Vo.href=e,t===Vo.href}function oc(t){return Object.keys(t).length===0}function Wt(t,...e){if(t==null){for(const n of e)n(void 0);return j}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Qe(t){let e;return Wt(t,i=>e=i)(),e}function O(t,e,i){t.$$.on_destroy.push(Wt(e,i))}function An(t,e,i,n){if(t){const o=Qa(t,e,i,n);return t[0](o)}}function Qa(t,e,i,n){return t[1]&&n?Ga(i.ctx.slice(),t[1](n(e))):i.ctx}function Ln(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function In(t,e,i,n,o,s){if(o){const l=Qa(e,i,n,s);t.p(l,o)}}function Vn(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 lc(t){return t??""}const Xa=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function p(t,e){t.appendChild(e)}function Fe(t,e,i){const n=sc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,rc(n,o)}}function sc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function rc(t,e){return p(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function P(t){t.parentNode&&t.parentNode.removeChild(t)}function pn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function N(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ze(t){return document.createTextNode(t)}function z(){return ze(" ")}function lt(){return ze("")}function he(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Gt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function it(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ac(t){return Array.from(t.childNodes)}function Je(t,e){e=""+e,t.data!==e&&(t.data=e)}function Pt(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Mo;function uc(){if(Mo===void 0){Mo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Mo=!0}}return Mo}function pl(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=uc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=he(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=he(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(o||s&&n.contentWindow)&&s(),P(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function wn(t,e){return new t(e)}let ko;function wo(t){ko=t}function Co(){if(!ko)throw new Error("Function called outside component initialization");return ko}function on(t){Co().$$.on_mount.push(t)}function Wo(t){Co().$$.on_destroy.push(t)}function al(t,e){return Co().$$.context.set(t,e),e}function hl(t){return Co().$$.context.get(t)}function Ja(){return Co().$$.context}function ro(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const no=[],we=[];let lo=[];const ul=[],xa=Promise.resolve();let cl=!1;function $a(){cl||(cl=!0,xa.then(e1))}function So(){return $a(),xa}function ao(t){lo.push(t)}function He(t){ul.push(t)}const xo=new Set;let eo=0;function e1(){if(eo!==0)return;const t=ko;do{try{for(;eo<no.length;){const e=no[eo];eo++,wo(e),cc(e.$$)}}catch(e){throw no.length=0,eo=0,e}for(wo(null),no.length=0,eo=0;we.length;)we.pop()();for(let e=0;e<lo.length;e+=1){const i=lo[e];xo.has(i)||(xo.add(i),i())}lo.length=0}while(no.length);for(;ul.length;)ul.pop()();cl=!1,xo.clear(),wo(t)}function cc(t){if(t.fragment!==null){t.update(),et(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ao)}}function fc(t){const e=[],i=[];lo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),lo=e}const Uo=new Set;let Fn;function me(){Fn={r:0,c:[],p:Fn}}function pe(){Fn.r||et(Fn.c),Fn=Fn.p}function d(t,e){t&&t.i&&(Uo.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if(Uo.has(t))return;Uo.add(t),Fn.c.push(()=>{Uo.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Ft(t){return t?.length!==void 0?t:Array.from(t)}function dc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function mc(t){return typeof t=="object"&&t!==null?t:{}}function Ue(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function U(t){t&&t.c()}function D(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),ao(()=>{const s=t.$$.on_mount.map(Ya).filter(mn);t.$$.on_destroy?t.$$.on_destroy.push(...s):et(s),t.$$.on_mount=[]}),o.forEach(ao)}function F(t,e){const i=t.$$;i.fragment!==null&&(fc(i.after_update),et(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function pc(t,e){t.$$.dirty[0]===-1&&(no.push(t),$a(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function be(t,e,i,n,o,s,l,r=[-1]){const a=ko;wo(t);const c=t.$$={fragment:null,ctx:[],props:s,update:j,not_equal:o,bound:Hl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:Hl(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=b)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](b),f&&pc(t,m)),h}):[],c.update(),f=!0,et(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=ac(e.target);c.fragment&&c.fragment.l(m),m.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),D(t,e.target,e.anchor),e1()}wo(a)}class _e{$$=void 0;$$set=void 0;$destroy(){F(this,1),this.$destroy=j}$on(e,i){if(!mn(i))return j;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!oc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const hc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(hc);var uo;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(uo||(uo={}));const gc={isMobile:void 0,defaultLanguage:ie.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:uo.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ie.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},bc=t=>ie.fillWithDefault(t,gc),_c=t=>al("ui-config",t),ln=()=>hl("ui-config"),fl="vk_player_debug_panel_opened",t1=300,vc=100,wc="videoplayer",kc="videoplayer";var Pe;(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",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Pe||(Pe={}));const Po={[Pe.KeyF]:"f",[Pe.KeyK]:"k",[Pe.KeyC]:"c",[Pe.KeyM]:"m"},yc=new Set([Pe.ArrowLeft,Pe.ArrowRight,Pe.KeyL,Pe.KeyJ]),Cc=new Set([Pe.Tab,Pe.Space,Pe.ArrowLeft,Pe.ArrowRight,Pe.ArrowUp,Pe.ArrowDown]),Sc=new Set([Pe.ShiftRight,Pe.ShiftLeft]);var ot;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(ot||(ot={}));const ql=40,i1=260,Pc=60,Bo=8,n1=[ot.TIMELINE],qo=[...n1,ot.GRAPH_BUTTON],jl=[...n1,ot.PLAY_BUTTON],o1=[...qo,ot.PLAY_BUTTON];var oo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(oo||(oo={}));exports.GridTypes=void 0;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const co={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},to=[];function vn(t,e){return{subscribe:Le(t,e).subscribe}}function Le(t,e=j){let i;const n=new Set;function o(r){if(ge(t,r)&&(t=r,i)){const a=!to.length;for(const c of n)c[1](),to.push(c,t);if(a){for(let c=0;c<to.length;c+=2)to[c][0](to[c+1]);to.length=0}}}function s(r){o(r(t))}function l(r,a=j){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||j),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function ii(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return vn(i,(l,r)=>{let a=!1;const c=[];let f=0,m=j;const h=()=>{if(f)return;m();const b=e(n?c[0]:c,l,r);s?l(b):m=mn(b)?b:j},_=o.map((b,w)=>Wt(b,v=>{c[w]=v,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){et(_),m(),a=!1}})}const Tc="prod",Ko="1.1.35-beta.3",l1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},s1=Symbol("storeContext"),r1=Symbol("microStoresContext"),Ec=(t,e)=>{al(s1,t),al(r1,e)},mt=()=>{const t=hl(s1);return ie.assertNonNullable(t,"Store context is empty!"),t},gl=()=>{const t=hl(r1);return ie.assertNonNullable(t,"MicroStores context is empty!"),t},dt=(t,e)=>a1(t,t.getValue(),e),a1=(t,e,i)=>vn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),Ac=(t,e,i)=>{const n=t.info,{width:o,height:s}=Qe(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ko} (core: ${Xe.VERSION}, stat: ${ct.VERSION}, shared: ${ie.VERSION})`,f=Qe(i.state.errorLog$),m=f.length?`
7
7
  `+f.map((b,w)=>{const v=`${w}) Type: ${b.id}
8
8
  `,S=`Message: ${b.message} (${b.thrown})
9
9
  `,k=`Trace: ${b.thrown?.stack}
package/esnext.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.35-beta.2
3
- * Fri, 17 May 2024 09:05:41 GMT
2
+ * @vkontakte/videoplayer v1.1.35-beta.3
3
+ * Tue, 21 May 2024 12:05:21 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-35/doc/
5
5
  */
6
- import{VERSION as gc,ChromecastState as Sn,PlaybackState as Ft,VideoQuality as co,Player as bc,VideoFormat as Eo}from"@vkontakte/videoplayer-core/esnext.esm.js";import{VideoFormat as k5,VideoQuality as y5}from"@vkontakte/videoplayer-core/esnext.esm.js";import{InterfaceLanguage as Bo,VideoQuality as xo,fillWithDefault as _c,VERSION as vc,assertNonNullable as ot,safeStorage as _n,isNullable as tl,Subscription as Un,isNonNullable as gn,isMacLike as ts,debounceFn as wc,ValueSubject as El,getCurrentBrowser as Al,CurrentClientBrowser as u1,noop as Ge,checkNever as kc,timeCodeToString as yc,Subject as mn,addScript as Cc,Logger as c1,merge as Pc,Observable as Sc,map as Tc,loadVKLangPack as Ec,isIOS as Ll,getHighestQuality as Ac,throttleFn as ol,CurrentClientDevice as Lc,getIOSVersion as Ic,detectEmbed as Vc,observeElementSize as Mc,isMobile as Bc,cloneDeepWith as Rc}from"@vkontakte/videoplayer-shared/esnext.esm.js";import{InterfaceLanguage as P5,VKNumericLanguage as S5,loadVKLangPack as T5}from"@vkontakte/videoplayer-shared/esnext.esm.js";import{VERSION as Nc,SeekAction as Vt,OneStat as zc,InteractiveInterfaceClick as Ao}from"@vkontakte/videoplayer-statistics/esnext.esm.js";function Z(){}function f1(t,e){for(const i in e)t[i]=e[i];return t}function d1(t){return t()}function is(){return Object.create(null)}function $e(t){t.forEach(d1)}function bn(t){return typeof t=="function"}function he(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let qo;function ns(t,e){return qo||(qo=document.createElement("a")),qo.href=e,t===qo.href}function Dc(t){return Object.keys(t).length===0}function Gt(t,...e){if(t==null){for(const n of e)n(void 0);return Z}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Qe(t){let e;return Gt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Gt(e,i))}function Rn(t,e,i,n){if(t){const o=m1(t,e,i,n);return t[0](o)}}function m1(t,e,i,n){return t[1]&&n?f1(i.ctx.slice(),t[1](n(e))):i.ctx}function Nn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function zn(t,e,i,n,o,s){if(o){const l=m1(e,i,n,s);t.p(l,o)}}function Dn(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 Oc(t){return t??""}const p1=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function p(t,e){t.appendChild(e)}function Oe(t,e,i){const n=Hc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,Fc(n,o)}}function Hc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Fc(t,e){return p(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function vn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ne(t){return document.createTextNode(t)}function z(){return Ne(" ")}function lt(){return Ne("")}function pe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Qt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function tt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function Uc(t){return Array.from(t.childNodes)}function Xe(t,e){e=""+e,t.data!==e&&(t.data=e)}function St(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Zo;function qc(){if(Zo===void 0){Zo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Zo=!0}}return Zo}function Il(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=qc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=pe(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Tn(t,e){return new t(e)}let Vo;function Io(t){Vo=t}function Ro(){if(!Vo)throw new Error("Function called outside component initialization");return Vo}function sn(t){Ro().$$.on_mount.push(t)}function ll(t){Ro().$$.on_destroy.push(t)}function kl(t,e){return Ro().$$.context.set(t,e),e}function Vl(t){return Ro().$$.context.get(t)}function h1(){return Ro().$$.context}function go(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const fo=[],ve=[];let po=[];const yl=[],g1=Promise.resolve();let Cl=!1;function b1(){Cl||(Cl=!0,g1.then(_1))}function No(){return b1(),g1}function bo(t){po.push(t)}function He(t){yl.push(t)}const fl=new Set;let ro=0;function _1(){if(ro!==0)return;const t=Vo;do{try{for(;ro<fo.length;){const e=fo[ro];ro++,Io(e),Zc(e.$$)}}catch(e){throw fo.length=0,ro=0,e}for(Io(null),fo.length=0,ro=0;ve.length;)ve.pop()();for(let e=0;e<po.length;e+=1){const i=po[e];fl.has(i)||(fl.add(i),i())}po.length=0}while(fo.length);for(;yl.length;)yl.pop()();Cl=!1,fl.clear(),Io(t)}function Zc(t){if(t.fragment!==null){t.update(),$e(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(bo)}}function Wc(t){const e=[],i=[];po.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),po=e}const $o=new Set;let Kn;function de(){Kn={r:0,c:[],p:Kn}}function me(){Kn.r||$e(Kn.c),Kn=Kn.p}function d(t,e){t&&t.i&&($o.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if($o.has(t))return;$o.add(t),Kn.c.push(()=>{$o.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Ut(t){return t?.length!==void 0?t:Array.from(t)}function jc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function Kc(t){return typeof t=="object"&&t!==null?t:{}}function Fe(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function U(t){t&&t.c()}function O(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),bo(()=>{const s=t.$$.on_mount.map(d1).filter(bn);t.$$.on_destroy?t.$$.on_destroy.push(...s):$e(s),t.$$.on_mount=[]}),o.forEach(bo)}function H(t,e){const i=t.$$;i.fragment!==null&&(Wc(i.after_update),$e(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function Gc(t,e){t.$$.dirty[0]===-1&&(fo.push(t),b1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ge(t,e,i,n,o,s,l,r=[-1]){const a=Vo;Io(t);const c=t.$$={fragment:null,ctx:[],props:s,update:Z,not_equal:o,bound:is(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:is(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=b)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](b),f&&Gc(t,m)),h}):[],c.update(),f=!0,$e(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=Uc(e.target);c.fragment&&c.fragment.l(m),m.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),O(t,e.target,e.anchor),_1()}Io(a)}class be{$$=void 0;$$set=void 0;$destroy(){H(this,1),this.$destroy=Z}$on(e,i){if(!bn(i))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Dc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Yc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yc);var _o;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(_o||(_o={}));const Qc={isMobile:void 0,defaultLanguage:Bo.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:_o.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:xo.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},Xc=t=>_c(t,Qc),Jc=t=>kl("ui-config",t),rn=()=>Vl("ui-config"),Pl="vk_player_debug_panel_opened",v1=300,xc=100,$c="videoplayer",ef="videoplayer";var Pe;(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",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Pe||(Pe={}));const zo={[Pe.KeyF]:"f",[Pe.KeyK]:"k",[Pe.KeyC]:"c",[Pe.KeyM]:"m"},tf=new Set([Pe.ArrowLeft,Pe.ArrowRight,Pe.KeyL,Pe.KeyJ]),nf=new Set([Pe.Tab,Pe.Space,Pe.ArrowLeft,Pe.ArrowRight,Pe.ArrowUp,Pe.ArrowDown]),of=new Set([Pe.ShiftRight,Pe.ShiftLeft]);var nt;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(nt||(nt={}));const os=40,w1=260,lf=60,Wo=8,k1=[nt.TIMELINE],el=[...k1,nt.GRAPH_BUTTON],ls=[...k1,nt.PLAY_BUTTON],y1=[...el,nt.PLAY_BUTTON];var mo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(mo||(mo={}));var yt;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(yt||(yt={}));const vo={[yt.XS]:0,[yt.S]:1,[yt.M]:2,[yt.L]:3,[yt.XL]:4},ao=[];function Pn(t,e){return{subscribe:Ae(t,e).subscribe}}function Ae(t,e=Z){let i;const n=new Set;function o(r){if(he(t,r)&&(t=r,i)){const a=!ao.length;for(const c of n)c[1](),ao.push(c,t);if(a){for(let c=0;c<ao.length;c+=2)ao[c][0](ao[c+1]);ao.length=0}}}function s(r){o(r(t))}function l(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||Z),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function oi(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Pn(i,(l,r)=>{let a=!1;const c=[];let f=0,m=Z;const h=()=>{if(f)return;m();const b=e(n?c[0]:c,l,r);s?l(b):m=bn(b)?b:Z},_=o.map((b,w)=>Gt(b,v=>{c[w]=v,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){$e(_),m(),a=!1}})}const sf="prod",Ml="1.1.35-beta.2",C1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},P1=Symbol("storeContext"),S1=Symbol("microStoresContext"),rf=(t,e)=>{kl(P1,t),kl(S1,e)},dt=()=>{const t=Vl(P1);return ot(t,"Store context is empty!"),t},Bl=()=>{const t=Vl(S1);return ot(t,"MicroStores context is empty!"),t},ft=(t,e)=>T1(t,t.getValue(),e),T1=(t,e,i)=>Pn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),af=(t,e,i)=>{const n=t.info,{width:o,height:s}=Qe(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ml} (core: ${gc}, stat: ${Nc}, shared: ${vc})`,f=Qe(i.state.errorLog$),m=f.length?`
6
+ import{VERSION as gc,ChromecastState as Sn,PlaybackState as Ft,VideoQuality as co,Player as bc,VideoFormat as Eo}from"@vkontakte/videoplayer-core/esnext.esm.js";import{VideoFormat as k5,VideoQuality as y5}from"@vkontakte/videoplayer-core/esnext.esm.js";import{InterfaceLanguage as Bo,VideoQuality as xo,fillWithDefault as _c,VERSION as vc,assertNonNullable as ot,safeStorage as _n,isNullable as tl,Subscription as Un,isNonNullable as gn,isMacLike as ts,debounceFn as wc,ValueSubject as El,getCurrentBrowser as Al,CurrentClientBrowser as u1,noop as Ge,checkNever as kc,timeCodeToString as yc,Subject as mn,addScript as Cc,Logger as c1,merge as Pc,Observable as Sc,map as Tc,loadVKLangPack as Ec,isIOS as Ll,getHighestQuality as Ac,throttleFn as ol,CurrentClientDevice as Lc,getIOSVersion as Ic,detectEmbed as Vc,observeElementSize as Mc,isMobile as Bc,cloneDeepWith as Rc}from"@vkontakte/videoplayer-shared/esnext.esm.js";import{InterfaceLanguage as P5,VKNumericLanguage as S5,loadVKLangPack as T5}from"@vkontakte/videoplayer-shared/esnext.esm.js";import{VERSION as Nc,SeekAction as Vt,OneStat as zc,InteractiveInterfaceClick as Ao}from"@vkontakte/videoplayer-statistics/esnext.esm.js";function Z(){}function f1(t,e){for(const i in e)t[i]=e[i];return t}function d1(t){return t()}function is(){return Object.create(null)}function $e(t){t.forEach(d1)}function bn(t){return typeof t=="function"}function he(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let qo;function ns(t,e){return qo||(qo=document.createElement("a")),qo.href=e,t===qo.href}function Dc(t){return Object.keys(t).length===0}function Gt(t,...e){if(t==null){for(const n of e)n(void 0);return Z}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Qe(t){let e;return Gt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Gt(e,i))}function Rn(t,e,i,n){if(t){const o=m1(t,e,i,n);return t[0](o)}}function m1(t,e,i,n){return t[1]&&n?f1(i.ctx.slice(),t[1](n(e))):i.ctx}function Nn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function zn(t,e,i,n,o,s){if(o){const l=m1(e,i,n,s);t.p(l,o)}}function Dn(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 Oc(t){return t??""}const p1=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function p(t,e){t.appendChild(e)}function Oe(t,e,i){const n=Hc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,Fc(n,o)}}function Hc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Fc(t,e){return p(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function vn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ne(t){return document.createTextNode(t)}function z(){return Ne(" ")}function lt(){return Ne("")}function pe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Qt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function tt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function Uc(t){return Array.from(t.childNodes)}function Xe(t,e){e=""+e,t.data!==e&&(t.data=e)}function St(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Zo;function qc(){if(Zo===void 0){Zo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Zo=!0}}return Zo}function Il(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=qc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=pe(n.contentWindow,"resize",e),e()}),p(t,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Tn(t,e){return new t(e)}let Vo;function Io(t){Vo=t}function Ro(){if(!Vo)throw new Error("Function called outside component initialization");return Vo}function sn(t){Ro().$$.on_mount.push(t)}function ll(t){Ro().$$.on_destroy.push(t)}function kl(t,e){return Ro().$$.context.set(t,e),e}function Vl(t){return Ro().$$.context.get(t)}function h1(){return Ro().$$.context}function go(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const fo=[],ve=[];let po=[];const yl=[],g1=Promise.resolve();let Cl=!1;function b1(){Cl||(Cl=!0,g1.then(_1))}function No(){return b1(),g1}function bo(t){po.push(t)}function He(t){yl.push(t)}const fl=new Set;let ro=0;function _1(){if(ro!==0)return;const t=Vo;do{try{for(;ro<fo.length;){const e=fo[ro];ro++,Io(e),Zc(e.$$)}}catch(e){throw fo.length=0,ro=0,e}for(Io(null),fo.length=0,ro=0;ve.length;)ve.pop()();for(let e=0;e<po.length;e+=1){const i=po[e];fl.has(i)||(fl.add(i),i())}po.length=0}while(fo.length);for(;yl.length;)yl.pop()();Cl=!1,fl.clear(),Io(t)}function Zc(t){if(t.fragment!==null){t.update(),$e(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(bo)}}function Wc(t){const e=[],i=[];po.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),po=e}const $o=new Set;let Kn;function de(){Kn={r:0,c:[],p:Kn}}function me(){Kn.r||$e(Kn.c),Kn=Kn.p}function d(t,e){t&&t.i&&($o.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if($o.has(t))return;$o.add(t),Kn.c.push(()=>{$o.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Ut(t){return t?.length!==void 0?t:Array.from(t)}function jc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function Kc(t){return typeof t=="object"&&t!==null?t:{}}function Fe(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function U(t){t&&t.c()}function O(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),bo(()=>{const s=t.$$.on_mount.map(d1).filter(bn);t.$$.on_destroy?t.$$.on_destroy.push(...s):$e(s),t.$$.on_mount=[]}),o.forEach(bo)}function H(t,e){const i=t.$$;i.fragment!==null&&(Wc(i.after_update),$e(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function Gc(t,e){t.$$.dirty[0]===-1&&(fo.push(t),b1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ge(t,e,i,n,o,s,l,r=[-1]){const a=Vo;Io(t);const c=t.$$={fragment:null,ctx:[],props:s,update:Z,not_equal:o,bound:is(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:is(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(m,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[m],c.ctx[m]=b)&&(!c.skip_bound&&c.bound[m]&&c.bound[m](b),f&&Gc(t,m)),h}):[],c.update(),f=!0,$e(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const m=Uc(e.target);c.fragment&&c.fragment.l(m),m.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),O(t,e.target,e.anchor),_1()}Io(a)}class be{$$=void 0;$$set=void 0;$destroy(){H(this,1),this.$destroy=Z}$on(e,i){if(!bn(i))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Dc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Yc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yc);var _o;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(_o||(_o={}));const Qc={isMobile:void 0,defaultLanguage:Bo.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:_o.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:xo.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},Xc=t=>_c(t,Qc),Jc=t=>kl("ui-config",t),rn=()=>Vl("ui-config"),Pl="vk_player_debug_panel_opened",v1=300,xc=100,$c="videoplayer",ef="videoplayer";var Pe;(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",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Pe||(Pe={}));const zo={[Pe.KeyF]:"f",[Pe.KeyK]:"k",[Pe.KeyC]:"c",[Pe.KeyM]:"m"},tf=new Set([Pe.ArrowLeft,Pe.ArrowRight,Pe.KeyL,Pe.KeyJ]),nf=new Set([Pe.Tab,Pe.Space,Pe.ArrowLeft,Pe.ArrowRight,Pe.ArrowUp,Pe.ArrowDown]),of=new Set([Pe.ShiftRight,Pe.ShiftLeft]);var nt;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(nt||(nt={}));const os=40,w1=260,lf=60,Wo=8,k1=[nt.TIMELINE],el=[...k1,nt.GRAPH_BUTTON],ls=[...k1,nt.PLAY_BUTTON],y1=[...el,nt.PLAY_BUTTON];var mo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(mo||(mo={}));var yt;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(yt||(yt={}));const vo={[yt.XS]:0,[yt.S]:1,[yt.M]:2,[yt.L]:3,[yt.XL]:4},ao=[];function Pn(t,e){return{subscribe:Ae(t,e).subscribe}}function Ae(t,e=Z){let i;const n=new Set;function o(r){if(he(t,r)&&(t=r,i)){const a=!ao.length;for(const c of n)c[1](),ao.push(c,t);if(a){for(let c=0;c<ao.length;c+=2)ao[c][0](ao[c+1]);ao.length=0}}}function s(r){o(r(t))}function l(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||Z),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function oi(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Pn(i,(l,r)=>{let a=!1;const c=[];let f=0,m=Z;const h=()=>{if(f)return;m();const b=e(n?c[0]:c,l,r);s?l(b):m=bn(b)?b:Z},_=o.map((b,w)=>Gt(b,v=>{c[w]=v,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){$e(_),m(),a=!1}})}const sf="prod",Ml="1.1.35-beta.3",C1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},P1=Symbol("storeContext"),S1=Symbol("microStoresContext"),rf=(t,e)=>{kl(P1,t),kl(S1,e)},dt=()=>{const t=Vl(P1);return ot(t,"Store context is empty!"),t},Bl=()=>{const t=Vl(S1);return ot(t,"MicroStores context is empty!"),t},ft=(t,e)=>T1(t,t.getValue(),e),T1=(t,e,i)=>Pn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),af=(t,e,i)=>{const n=t.info,{width:o,height:s}=Qe(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ml} (core: ${gc}, stat: ${Nc}, shared: ${vc})`,f=Qe(i.state.errorLog$),m=f.length?`
7
7
  `+f.map((b,w)=>{const v=`${w}) Type: ${b.id}
8
8
  `,P=`Message: ${b.message} (${b.thrown})
9
9
  `,k=`Trace: ${b.thrown?.stack}
package/evergreen.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.35-beta.2
3
- * Fri, 17 May 2024 09:05:41 GMT
2
+ * @vkontakte/videoplayer v1.1.35-beta.3
3
+ * Tue, 21 May 2024 12:05:21 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-35/doc/
5
5
  */
6
- import{VERSION as fc,ChromecastState as Sn,PlaybackState as Ft,VideoQuality as co,Player as dc,VideoFormat as Eo}from"@vkontakte/videoplayer-core/evergreen.esm.js";import{VideoFormat as d5,VideoQuality as m5}from"@vkontakte/videoplayer-core/evergreen.esm.js";import{InterfaceLanguage as Bo,VideoQuality as xo,fillWithDefault as mc,VERSION as pc,assertNonNullable as ot,safeStorage as _n,isNullable as tl,Subscription as Un,isNonNullable as gn,isMacLike as es,debounceFn as hc,ValueSubject as El,getCurrentBrowser as Al,CurrentClientBrowser as r1,noop as Ge,checkNever as gc,timeCodeToString as bc,Subject as mn,addScript as _c,Logger as a1,merge as vc,Observable as wc,map as kc,loadVKLangPack as yc,isIOS as Ll,getHighestQuality as Cc,throttleFn as ol,CurrentClientDevice as Pc,getIOSVersion as Sc,detectEmbed as Tc,observeElementSize as Ec,isMobile as Ac,cloneDeepWith as Lc}from"@vkontakte/videoplayer-shared/evergreen.esm.js";import{InterfaceLanguage as h5,VKNumericLanguage as g5,loadVKLangPack as b5}from"@vkontakte/videoplayer-shared/evergreen.esm.js";import{VERSION as Ic,SeekAction as Vt,OneStat as Vc,InteractiveInterfaceClick as Ao}from"@vkontakte/videoplayer-statistics/evergreen.esm.js";function Z(){}function u1(t,e){for(const i in e)t[i]=e[i];return t}function c1(t){return t()}function ts(){return Object.create(null)}function $e(t){t.forEach(c1)}function bn(t){return typeof t=="function"}function he(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let qo;function is(t,e){return qo||(qo=document.createElement("a")),qo.href=e,t===qo.href}function Mc(t){return Object.keys(t).length===0}function Gt(t,...e){if(t==null){for(const n of e)n(void 0);return Z}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Qe(t){let e;return Gt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Gt(e,i))}function Rn(t,e,i,n){if(t){const o=f1(t,e,i,n);return t[0](o)}}function f1(t,e,i,n){return t[1]&&n?u1(i.ctx.slice(),t[1](n(e))):i.ctx}function Nn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function zn(t,e,i,n,o,s){if(o){const l=f1(e,i,n,s);t.p(l,o)}}function Dn(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 Bc(t){return t??""}const d1=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function m(t,e){t.appendChild(e)}function Oe(t,e,i){const n=Rc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,Nc(n,o)}}function Rc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Nc(t,e){return m(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function vn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ne(t){return document.createTextNode(t)}function z(){return Ne(" ")}function lt(){return Ne("")}function pe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Qt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function tt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function zc(t){return Array.from(t.childNodes)}function Xe(t,e){e=""+e,t.data!==e&&(t.data=e)}function St(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Zo;function Dc(){if(Zo===void 0){Zo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Zo=!0}}return Zo}function Il(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=Dc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=pe(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Tn(t,e){return new t(e)}let Vo;function Io(t){Vo=t}function Ro(){if(!Vo)throw new Error("Function called outside component initialization");return Vo}function sn(t){Ro().$$.on_mount.push(t)}function ll(t){Ro().$$.on_destroy.push(t)}function kl(t,e){return Ro().$$.context.set(t,e),e}function Vl(t){return Ro().$$.context.get(t)}function m1(){return Ro().$$.context}function go(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const fo=[],ve=[];let po=[];const yl=[],p1=Promise.resolve();let Cl=!1;function h1(){Cl||(Cl=!0,p1.then(g1))}function No(){return h1(),p1}function bo(t){po.push(t)}function He(t){yl.push(t)}const fl=new Set;let ro=0;function g1(){if(ro!==0)return;const t=Vo;do{try{for(;ro<fo.length;){const e=fo[ro];ro++,Io(e),Oc(e.$$)}}catch(e){throw fo.length=0,ro=0,e}for(Io(null),fo.length=0,ro=0;ve.length;)ve.pop()();for(let e=0;e<po.length;e+=1){const i=po[e];fl.has(i)||(fl.add(i),i())}po.length=0}while(fo.length);for(;yl.length;)yl.pop()();Cl=!1,fl.clear(),Io(t)}function Oc(t){if(t.fragment!==null){t.update(),$e(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(bo)}}function Hc(t){const e=[],i=[];po.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),po=e}const $o=new Set;let jn;function de(){jn={r:0,c:[],p:jn}}function me(){jn.r||$e(jn.c),jn=jn.p}function d(t,e){t&&t.i&&($o.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if($o.has(t))return;$o.add(t),jn.c.push(()=>{$o.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Ut(t){return t?.length!==void 0?t:Array.from(t)}function Fc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function Uc(t){return typeof t=="object"&&t!==null?t:{}}function Fe(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function U(t){t&&t.c()}function O(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),bo(()=>{const s=t.$$.on_mount.map(c1).filter(bn);t.$$.on_destroy?t.$$.on_destroy.push(...s):$e(s),t.$$.on_mount=[]}),o.forEach(bo)}function H(t,e){const i=t.$$;i.fragment!==null&&(Hc(i.after_update),$e(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function qc(t,e){t.$$.dirty[0]===-1&&(fo.push(t),h1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ge(t,e,i,n,o,s,l,r=[-1]){const a=Vo;Io(t);const c=t.$$={fragment:null,ctx:[],props:s,update:Z,not_equal:o,bound:ts(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ts(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(p,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[p],c.ctx[p]=b)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](b),f&&qc(t,p)),h}):[],c.update(),f=!0,$e(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const p=zc(e.target);c.fragment&&c.fragment.l(p),p.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),O(t,e.target,e.anchor),g1()}Io(a)}class be{$$=void 0;$$set=void 0;$destroy(){H(this,1),this.$destroy=Z}$on(e,i){if(!bn(i))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Mc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Zc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Zc);var _o;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(_o||(_o={}));const Wc={isMobile:void 0,defaultLanguage:Bo.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:_o.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:xo.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},Kc=t=>mc(t,Wc),jc=t=>kl("ui-config",t),rn=()=>Vl("ui-config"),Pl="vk_player_debug_panel_opened",b1=300,Gc=100,Yc="videoplayer",Qc="videoplayer";var Pe;(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",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Pe||(Pe={}));const zo={[Pe.KeyF]:"f",[Pe.KeyK]:"k",[Pe.KeyC]:"c",[Pe.KeyM]:"m"},Xc=new Set([Pe.ArrowLeft,Pe.ArrowRight,Pe.KeyL,Pe.KeyJ]),Jc=new Set([Pe.Tab,Pe.Space,Pe.ArrowLeft,Pe.ArrowRight,Pe.ArrowUp,Pe.ArrowDown]),xc=new Set([Pe.ShiftRight,Pe.ShiftLeft]);var nt;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(nt||(nt={}));const ns=40,_1=260,$c=60,Wo=8,v1=[nt.TIMELINE],el=[...v1,nt.GRAPH_BUTTON],os=[...v1,nt.PLAY_BUTTON],w1=[...el,nt.PLAY_BUTTON];var mo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(mo||(mo={}));var yt;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(yt||(yt={}));const vo={[yt.XS]:0,[yt.S]:1,[yt.M]:2,[yt.L]:3,[yt.XL]:4},ao=[];function Pn(t,e){return{subscribe:Ae(t,e).subscribe}}function Ae(t,e=Z){let i;const n=new Set;function o(r){if(he(t,r)&&(t=r,i)){const a=!ao.length;for(const c of n)c[1](),ao.push(c,t);if(a){for(let c=0;c<ao.length;c+=2)ao[c][0](ao[c+1]);ao.length=0}}}function s(r){o(r(t))}function l(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||Z),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function oi(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Pn(i,(l,r)=>{let a=!1;const c=[];let f=0,p=Z;const h=()=>{if(f)return;p();const b=e(n?c[0]:c,l,r);s?l(b):p=bn(b)?b:Z},_=o.map((b,w)=>Gt(b,v=>{c[w]=v,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){$e(_),p(),a=!1}})}const ef="prod",Ml="1.1.35-beta.2",k1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},y1=Symbol("storeContext"),C1=Symbol("microStoresContext"),tf=(t,e)=>{kl(y1,t),kl(C1,e)},dt=()=>{const t=Vl(y1);return ot(t,"Store context is empty!"),t},Bl=()=>{const t=Vl(C1);return ot(t,"MicroStores context is empty!"),t},ft=(t,e)=>P1(t,t.getValue(),e),P1=(t,e,i)=>Pn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),nf=(t,e,i)=>{const n=t.info,{width:o,height:s}=Qe(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ml} (core: ${fc}, stat: ${Ic}, shared: ${pc})`,f=Qe(i.state.errorLog$),p=f.length?`
6
+ import{VERSION as fc,ChromecastState as Sn,PlaybackState as Ft,VideoQuality as co,Player as dc,VideoFormat as Eo}from"@vkontakte/videoplayer-core/evergreen.esm.js";import{VideoFormat as d5,VideoQuality as m5}from"@vkontakte/videoplayer-core/evergreen.esm.js";import{InterfaceLanguage as Bo,VideoQuality as xo,fillWithDefault as mc,VERSION as pc,assertNonNullable as ot,safeStorage as _n,isNullable as tl,Subscription as Un,isNonNullable as gn,isMacLike as es,debounceFn as hc,ValueSubject as El,getCurrentBrowser as Al,CurrentClientBrowser as r1,noop as Ge,checkNever as gc,timeCodeToString as bc,Subject as mn,addScript as _c,Logger as a1,merge as vc,Observable as wc,map as kc,loadVKLangPack as yc,isIOS as Ll,getHighestQuality as Cc,throttleFn as ol,CurrentClientDevice as Pc,getIOSVersion as Sc,detectEmbed as Tc,observeElementSize as Ec,isMobile as Ac,cloneDeepWith as Lc}from"@vkontakte/videoplayer-shared/evergreen.esm.js";import{InterfaceLanguage as h5,VKNumericLanguage as g5,loadVKLangPack as b5}from"@vkontakte/videoplayer-shared/evergreen.esm.js";import{VERSION as Ic,SeekAction as Vt,OneStat as Vc,InteractiveInterfaceClick as Ao}from"@vkontakte/videoplayer-statistics/evergreen.esm.js";function Z(){}function u1(t,e){for(const i in e)t[i]=e[i];return t}function c1(t){return t()}function ts(){return Object.create(null)}function $e(t){t.forEach(c1)}function bn(t){return typeof t=="function"}function he(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let qo;function is(t,e){return qo||(qo=document.createElement("a")),qo.href=e,t===qo.href}function Mc(t){return Object.keys(t).length===0}function Gt(t,...e){if(t==null){for(const n of e)n(void 0);return Z}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Qe(t){let e;return Gt(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Gt(e,i))}function Rn(t,e,i,n){if(t){const o=f1(t,e,i,n);return t[0](o)}}function f1(t,e,i,n){return t[1]&&n?u1(i.ctx.slice(),t[1](n(e))):i.ctx}function Nn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function zn(t,e,i,n,o,s){if(o){const l=f1(e,i,n,s);t.p(l,o)}}function Dn(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 Bc(t){return t??""}const d1=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function m(t,e){t.appendChild(e)}function Oe(t,e,i){const n=Rc(t);if(!n.getElementById(e)){const o=E("style");o.id=e,o.textContent=i,Nc(n,o)}}function Rc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Nc(t,e){return m(t.head||t,e),e.sheet}function T(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function vn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function E(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ne(t){return document.createTextNode(t)}function z(){return Ne(" ")}function lt(){return Ne("")}function pe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Qt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function tt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function zc(t){return Array.from(t.childNodes)}function Xe(t,e){e=""+e,t.data!==e&&(t.data=e)}function St(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Zo;function Dc(){if(Zo===void 0){Zo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Zo=!0}}return Zo}function Il(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=Dc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=pe(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function Tn(t,e){return new t(e)}let Vo;function Io(t){Vo=t}function Ro(){if(!Vo)throw new Error("Function called outside component initialization");return Vo}function sn(t){Ro().$$.on_mount.push(t)}function ll(t){Ro().$$.on_destroy.push(t)}function kl(t,e){return Ro().$$.context.set(t,e),e}function Vl(t){return Ro().$$.context.get(t)}function m1(){return Ro().$$.context}function go(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const fo=[],ve=[];let po=[];const yl=[],p1=Promise.resolve();let Cl=!1;function h1(){Cl||(Cl=!0,p1.then(g1))}function No(){return h1(),p1}function bo(t){po.push(t)}function He(t){yl.push(t)}const fl=new Set;let ro=0;function g1(){if(ro!==0)return;const t=Vo;do{try{for(;ro<fo.length;){const e=fo[ro];ro++,Io(e),Oc(e.$$)}}catch(e){throw fo.length=0,ro=0,e}for(Io(null),fo.length=0,ro=0;ve.length;)ve.pop()();for(let e=0;e<po.length;e+=1){const i=po[e];fl.has(i)||(fl.add(i),i())}po.length=0}while(fo.length);for(;yl.length;)yl.pop()();Cl=!1,fl.clear(),Io(t)}function Oc(t){if(t.fragment!==null){t.update(),$e(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(bo)}}function Hc(t){const e=[],i=[];po.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),po=e}const $o=new Set;let jn;function de(){jn={r:0,c:[],p:jn}}function me(){jn.r||$e(jn.c),jn=jn.p}function d(t,e){t&&t.i&&($o.delete(t),t.i(e))}function g(t,e,i,n){if(t&&t.o){if($o.has(t))return;$o.add(t),jn.c.push(()=>{$o.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Ut(t){return t?.length!==void 0?t:Array.from(t)}function Fc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function Uc(t){return typeof t=="object"&&t!==null?t:{}}function Fe(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function U(t){t&&t.c()}function O(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),bo(()=>{const s=t.$$.on_mount.map(c1).filter(bn);t.$$.on_destroy?t.$$.on_destroy.push(...s):$e(s),t.$$.on_mount=[]}),o.forEach(bo)}function H(t,e){const i=t.$$;i.fragment!==null&&(Hc(i.after_update),$e(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function qc(t,e){t.$$.dirty[0]===-1&&(fo.push(t),h1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ge(t,e,i,n,o,s,l,r=[-1]){const a=Vo;Io(t);const c=t.$$={fragment:null,ctx:[],props:s,update:Z,not_equal:o,bound:ts(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ts(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(p,h,..._)=>{const b=_.length?_[0]:h;return c.ctx&&o(c.ctx[p],c.ctx[p]=b)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](b),f&&qc(t,p)),h}):[],c.update(),f=!0,$e(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const p=zc(e.target);c.fragment&&c.fragment.l(p),p.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),O(t,e.target,e.anchor),g1()}Io(a)}class be{$$=void 0;$$set=void 0;$destroy(){H(this,1),this.$destroy=Z}$on(e,i){if(!bn(i))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Mc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Zc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Zc);var _o;(function(t){t.VK="vk",t.VK_VIDEO="vk_video"})(_o||(_o={}));const Wc={isMobile:void 0,defaultLanguage:Bo.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:_o.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:xo.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100}},Kc=t=>mc(t,Wc),jc=t=>kl("ui-config",t),rn=()=>Vl("ui-config"),Pl="vk_player_debug_panel_opened",b1=300,Gc=100,Yc="videoplayer",Qc="videoplayer";var Pe;(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",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Pe||(Pe={}));const zo={[Pe.KeyF]:"f",[Pe.KeyK]:"k",[Pe.KeyC]:"c",[Pe.KeyM]:"m"},Xc=new Set([Pe.ArrowLeft,Pe.ArrowRight,Pe.KeyL,Pe.KeyJ]),Jc=new Set([Pe.Tab,Pe.Space,Pe.ArrowLeft,Pe.ArrowRight,Pe.ArrowUp,Pe.ArrowDown]),xc=new Set([Pe.ShiftRight,Pe.ShiftLeft]);var nt;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(nt||(nt={}));const ns=40,_1=260,$c=60,Wo=8,v1=[nt.TIMELINE],el=[...v1,nt.GRAPH_BUTTON],os=[...v1,nt.PLAY_BUTTON],w1=[...el,nt.PLAY_BUTTON];var mo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(mo||(mo={}));var yt;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(yt||(yt={}));const vo={[yt.XS]:0,[yt.S]:1,[yt.M]:2,[yt.L]:3,[yt.XL]:4},ao=[];function Pn(t,e){return{subscribe:Ae(t,e).subscribe}}function Ae(t,e=Z){let i;const n=new Set;function o(r){if(he(t,r)&&(t=r,i)){const a=!ao.length;for(const c of n)c[1](),ao.push(c,t);if(a){for(let c=0;c<ao.length;c+=2)ao[c][0](ao[c+1]);ao.length=0}}}function s(r){o(r(t))}function l(r,a=Z){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||Z),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function oi(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Pn(i,(l,r)=>{let a=!1;const c=[];let f=0,p=Z;const h=()=>{if(f)return;p();const b=e(n?c[0]:c,l,r);s?l(b):p=bn(b)?b:Z},_=o.map((b,w)=>Gt(b,v=>{c[w]=v,f&=~(1<<w),a&&h()},()=>{f|=1<<w}));return a=!0,h(),function(){$e(_),p(),a=!1}})}const ef="prod",Ml="1.1.35-beta.3",k1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},y1=Symbol("storeContext"),C1=Symbol("microStoresContext"),tf=(t,e)=>{kl(y1,t),kl(C1,e)},dt=()=>{const t=Vl(y1);return ot(t,"Store context is empty!"),t},Bl=()=>{const t=Vl(C1);return ot(t,"MicroStores context is empty!"),t},ft=(t,e)=>P1(t,t.getValue(),e),P1=(t,e,i)=>Pn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),nf=(t,e,i)=>{const n=t.info,{width:o,height:s}=Qe(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ml} (core: ${fc}, stat: ${Ic}, shared: ${pc})`,f=Qe(i.state.errorLog$),p=f.length?`
7
7
  `+f.map((b,w)=>{const v=`${w}) Type: ${b.id}
8
8
  `,P=`Message: ${b.message} (${b.thrown})
9
9
  `,k=`Trace: ${b.thrown?.stack}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer",
3
- "version": "1.1.35-beta.2",
3
+ "version": "1.1.35-beta.3",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -49,9 +49,9 @@
49
49
  "**/*.d.ts"
50
50
  ],
51
51
  "dependencies": {
52
- "@vkontakte/videoplayer-core": "2.0.102-beta.2",
53
- "@vkontakte/videoplayer-interactive": "1.0.10-beta.2",
54
- "@vkontakte/videoplayer-shared": "1.0.35-beta.2",
55
- "@vkontakte/videoplayer-statistics": "1.0.48-beta.2"
52
+ "@vkontakte/videoplayer-core": "2.0.102-beta.3",
53
+ "@vkontakte/videoplayer-interactive": "1.0.10-beta.3",
54
+ "@vkontakte/videoplayer-shared": "1.0.35-beta.3",
55
+ "@vkontakte/videoplayer-statistics": "1.0.48-beta.3"
56
56
  }
57
57
  }