@vkontakte/videoplayer 1.1.38 → 1.1.39-dev.001aa027.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.38
3
- * Mon, 29 Jul 2024 14:44:05 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
2
+ * @vkontakte/videoplayer v1.1.39-dev.001aa027.0
3
+ * Tue, 30 Jul 2024 10:45:29 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-39/doc/
5
5
  */
6
- "use strict";var G_=Object.create;var Ol=Object.defineProperty,Q_=Object.defineProperties,Y_=Object.getOwnPropertyDescriptor,Z_=Object.getOwnPropertyDescriptors,X_=Object.getOwnPropertyNames,zf=Object.getOwnPropertySymbols,J_=Object.getPrototypeOf,Uf=Object.prototype.hasOwnProperty,x_=Object.prototype.propertyIsEnumerable;var Es=(i,e,t)=>e in i?Ol(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ut=(i,e)=>{for(var t in e||(e={}))Uf.call(e,t)&&Es(i,t,e[t]);if(zf)for(var t of zf(e))x_.call(e,t)&&Es(i,t,e[t]);return i},Dt=(i,e)=>Q_(i,Z_(e));var $_=(i,e)=>{for(var t in e)Ol(i,t,{get:e[t],enumerable:!0})},Kf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of X_(e))!Uf.call(i,o)&&o!==t&&Ol(i,o,{get:()=>e[o],enumerable:!(n=Y_(e,o))||n.enumerable});return i};var jf=(i,e,t)=>(t=i!=null?G_(J_(i)):{},Kf(e||!i||!i.__esModule?Ol(t,"default",{value:i,enumerable:!0}):t,i)),e2=i=>Kf(Ol({},"__esModule",{value:!0}),i);var Qi=(i,e,t)=>(Es(i,typeof e!="symbol"?e+"":e,t),t);var dt=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});var J6={};$_(J6,{GridTypes:()=>go,InterfaceLanguage:()=>Dl.InterfaceLanguage,VERSION:()=>Oo,VKNumericLanguage:()=>Dl.VKNumericLanguage,VideoFormat:()=>Ts.VideoFormat,VideoQuality:()=>Ts.VideoQuality,loadVKLangPack:()=>Dl.loadVKLangPack,registerPlayerWebComponent:()=>X6});module.exports=e2(J6);function _e(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function As(i){return i()}function nr(){return Object.create(null)}function lt(i){i.forEach(As)}function Ai(i){return typeof i=="function"}function K(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ir;function Ms(i,e){return ir||(ir=document.createElement("a")),ir.href=e,i===ir.href}function Wf(i){return Object.keys(i).length===0}function ti(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return ti(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(ti(e,t))}function Ee(i,e,t,n){if(i){let o=Gf(i,e,t,n);return i[0](o)}}function Gf(i,e,t,n){return i[1]&&n?le(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=Gf(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Qf(i){return i==null?"":i}var Ro=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var or=class i{constructor(e){Qi(this,"_listeners","WeakMap"in Ro?new WeakMap:void 0);Qi(this,"_observer");Qi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};or.entries="WeakMap"in Ro?new WeakMap:void 0;var Yf=!1;function Zf(){Yf=!0}function Xf(){Yf=!1}function p(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Jf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,n2(n,o)}}function Jf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function n2(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Mi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function F(){return Le(" ")}function ct(){return Le("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function qt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ft(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)f(i,t,e[t])}function xf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var lr;function o2(){if(lr===void 0){lr=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){lr=!0}}return lr}function rl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=o2(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function $f(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Rn(i,e){return new i(e)}var ho;function oo(i){ho=i}function sl(){if(!ho)throw new Error("Function called outside component initialization");return ho}function Ot(i){sl().$$.on_mount.push(i)}function Yn(i){sl().$$.on_destroy.push(i)}function al(i,e){return sl().$$.context.set(i,e),e}function ul(i){return sl().$$.context.get(i)}function Fl(){return sl().$$.context}function Fn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Bo=[];var pe=[],cl=[],Ls=[],tc=Promise.resolve(),Rs=!1;function Bs(){Rs||(Rs=!0,tc.then(rr))}function Zn(){return Bs(),tc}function Xn(i){cl.push(i)}function Ne(i){Ls.push(i)}var Vs=new Set,fl=0;function rr(){if(fl!==0)return;let i=ho;do{try{for(;fl<Bo.length;){let e=Bo[fl];fl++,oo(e),f2(e.$$)}}catch(e){throw Bo.length=0,fl=0,e}for(oo(null),Bo.length=0,fl=0;pe.length;)pe.pop()();for(let e=0;e<cl.length;e+=1){let t=cl[e];Vs.has(t)||(Vs.add(t),t())}cl.length=0}while(Bo.length);for(;Ls.length;)Ls.pop()();Rs=!1,Vs.clear(),oo(i)}function f2(i){if(i.fragment!==null){i.update(),lt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xn)}}function ic(i){let e=[],t=[];cl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),cl=e}var sr=new Set,Do;function ue(){Do={r:0,c:[],p:Do}}function fe(){Do.r||lt(Do.c),Do=Do.p}function d(i,e){i&&i.i&&(sr.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(sr.has(i))return;sr.add(i),Do.c.push(()=>{sr.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Pt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function nc(i){return typeof i=="object"&&i!==null?i:{}}var c2=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],d2=new Set([...c2]);function qe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function D(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xn(()=>{let r=i.$$.on_mount.map(As).filter(Ai);i.$$.on_destroy?i.$$.on_destroy.push(...r):lt(r),i.$$.on_mount=[]}),o.forEach(Xn)}function N(i,e){let t=i.$$;t.fragment!==null&&(ic(t.after_update),lt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function p2(i,e){i.$$.dirty[0]===-1&&(Bo.push(i),Bs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function G(i,e,t,n,o,r,l,a=[-1]){let s=ho;oo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:nr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:nr(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&p2(i,m)),h}):[],u.update(),c=!0,lt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Zf();let m=xf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),Xf(),rr()}oo(s)}var _2;typeof HTMLElement=="function"&&(_2=class extends HTMLElement{constructor(e,t,n){super();Qi(this,"$$componentCtor");Qi(this,"$$slots");Qi(this,"$$component");Qi(this,"$$connected",!1);Qi(this,"$$data",{});Qi(this,"$$reflecting",!1);Qi(this,"$$props_definition",{});Qi(this,"$$listeners",{});Qi(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}connectedCallback(){return dt(this,null,function*(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){S(u,l,c)},d:function(u){u&&C(l)}}}};var e=t;if(yield Promise.resolve(),!this.$$connected)return;let n={},o=$f(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=oc(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:Dt(ut({},this.$$data),{$$slots:n,$$scope:{ctx:[]}})});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}})}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=oc(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function oc(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Qi(this,"$$");Qi(this,"$$set")}$destroy(){N(this,1),this.$destroy=_e}$on(e,t){if(!Ai(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Wf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var lc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(lc);var cD=require("@vkontakte/videoplayer-core"),xn=require("@vkontakte/videoplayer-shared"),o_=require("@vkontakte/videoplayer-statistics");var dl=require("@vkontakte/videoplayer-shared");var h2={isMobile:void 0,defaultLanguage:dl.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:dl.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},rc=i=>(0,dl.fillWithDefault)(i,h2),sc=i=>al("ui-config",i),Qt=()=>ul("ui-config");var Hl="vk_player_debug_panel_opened";var ac="videoplayer",uc="videoplayer";var $n={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},fc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),cc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),dc=new Set(["ShiftRight","ShiftLeft"]);var mc=["TIMELINE"],zl=[...mc,"GRAPH_BUTTON"],Ds=[...mc,"PLAY_BUTTON"],ar=[...zl,"PLAY_BUTTON"];var go=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(go||{}),qo={xs:0,s:1,m:2,l:3,xl:4};var ml=[];function Hn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=_e){let t,n=new Set;function o(a){if(K(i,a)&&(i=a,t)){let s=!ml.length;for(let u of n)u[1](),ml.push(u,i);if(s){for(let u=0;u<ml.length;u+=2)ml[u][0](ml[u+1]);ml.length=0}}}function r(a){o(a(i))}function l(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Vi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Hn(t,(l,a)=>{let s=!1,u=[],c=0,m=_e,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ai(g)?g:_e},k=o.map((g,w)=>ti(g,y=>{u[w]=y,c&=~(1<<w),s&&h()},()=>{c|=1<<w}));return s=!0,h(),function(){lt(k),m(),s=!1}})}var Ul=require("@vkontakte/videoplayer-shared"),pc=require("@vkontakte/videoplayer-core"),_c=require("@vkontakte/videoplayer-statistics");var ur="prod",Oo="1.1.38";var fr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var hc=Symbol("storeContext"),gc=Symbol("microStoresContext"),bc=(i,e)=>{al(hc,i),al(gc,e),ur==="dev"&&(window.app={store:i,microStores:e})},at=()=>{let i=ul(hc);return(0,Ul.assertNonNullable)(i,"Store context is empty!"),i},Wn=()=>{let i=ul(gc);return(0,Ul.assertNonNullable)(i,"MicroStores context is empty!"),i},St=(i,e)=>Ns(i,i.getValue(),e),Ns=(i,e,t)=>Hn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),vc=(i,e,t)=>{var P,v,b,I,L,V;let n=i.info,{width:o,height:r}=rt(t.ui.playerSize),l=(v=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?v:0,a=(I=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?I:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Oo} (core: ${pc.VERSION}, stat: ${_c.VERSION}, shared: ${Ul.VERSION})`,c=rt(t.state.errorLog$),m=c.length?`
6
+ "use strict";var G_=Object.create;var Ol=Object.defineProperty,Q_=Object.defineProperties,Y_=Object.getOwnPropertyDescriptor,Z_=Object.getOwnPropertyDescriptors,X_=Object.getOwnPropertyNames,zf=Object.getOwnPropertySymbols,J_=Object.getPrototypeOf,Uf=Object.prototype.hasOwnProperty,x_=Object.prototype.propertyIsEnumerable;var Es=(i,e,t)=>e in i?Ol(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ut=(i,e)=>{for(var t in e||(e={}))Uf.call(e,t)&&Es(i,t,e[t]);if(zf)for(var t of zf(e))x_.call(e,t)&&Es(i,t,e[t]);return i},Dt=(i,e)=>Q_(i,Z_(e));var $_=(i,e)=>{for(var t in e)Ol(i,t,{get:e[t],enumerable:!0})},Kf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of X_(e))!Uf.call(i,o)&&o!==t&&Ol(i,o,{get:()=>e[o],enumerable:!(n=Y_(e,o))||n.enumerable});return i};var jf=(i,e,t)=>(t=i!=null?G_(J_(i)):{},Kf(e||!i||!i.__esModule?Ol(t,"default",{value:i,enumerable:!0}):t,i)),e2=i=>Kf(Ol({},"__esModule",{value:!0}),i);var Qi=(i,e,t)=>(Es(i,typeof e!="symbol"?e+"":e,t),t);var dt=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});var J6={};$_(J6,{GridTypes:()=>go,InterfaceLanguage:()=>Dl.InterfaceLanguage,VERSION:()=>Oo,VKNumericLanguage:()=>Dl.VKNumericLanguage,VideoFormat:()=>Ts.VideoFormat,VideoQuality:()=>Ts.VideoQuality,loadVKLangPack:()=>Dl.loadVKLangPack,registerPlayerWebComponent:()=>X6});module.exports=e2(J6);function _e(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function As(i){return i()}function nr(){return Object.create(null)}function lt(i){i.forEach(As)}function Ai(i){return typeof i=="function"}function K(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ir;function Ms(i,e){return ir||(ir=document.createElement("a")),ir.href=e,i===ir.href}function Wf(i){return Object.keys(i).length===0}function ti(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return ti(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(ti(e,t))}function Ee(i,e,t,n){if(i){let o=Gf(i,e,t,n);return i[0](o)}}function Gf(i,e,t,n){return i[1]&&n?le(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=Gf(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Qf(i){return i==null?"":i}var Ro=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var or=class i{constructor(e){Qi(this,"_listeners","WeakMap"in Ro?new WeakMap:void 0);Qi(this,"_observer");Qi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};or.entries="WeakMap"in Ro?new WeakMap:void 0;var Yf=!1;function Zf(){Yf=!0}function Xf(){Yf=!1}function p(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Jf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,n2(n,o)}}function Jf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function n2(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Mi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function F(){return Le(" ")}function ct(){return Le("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function qt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ft(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)f(i,t,e[t])}function xf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var lr;function o2(){if(lr===void 0){lr=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){lr=!0}}return lr}function rl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=o2(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function $f(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Rn(i,e){return new i(e)}var ho;function oo(i){ho=i}function sl(){if(!ho)throw new Error("Function called outside component initialization");return ho}function Ot(i){sl().$$.on_mount.push(i)}function Yn(i){sl().$$.on_destroy.push(i)}function al(i,e){return sl().$$.context.set(i,e),e}function ul(i){return sl().$$.context.get(i)}function Fl(){return sl().$$.context}function Fn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Bo=[];var pe=[],cl=[],Ls=[],tc=Promise.resolve(),Rs=!1;function Bs(){Rs||(Rs=!0,tc.then(rr))}function Zn(){return Bs(),tc}function Xn(i){cl.push(i)}function Ne(i){Ls.push(i)}var Vs=new Set,fl=0;function rr(){if(fl!==0)return;let i=ho;do{try{for(;fl<Bo.length;){let e=Bo[fl];fl++,oo(e),f2(e.$$)}}catch(e){throw Bo.length=0,fl=0,e}for(oo(null),Bo.length=0,fl=0;pe.length;)pe.pop()();for(let e=0;e<cl.length;e+=1){let t=cl[e];Vs.has(t)||(Vs.add(t),t())}cl.length=0}while(Bo.length);for(;Ls.length;)Ls.pop()();Rs=!1,Vs.clear(),oo(i)}function f2(i){if(i.fragment!==null){i.update(),lt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xn)}}function ic(i){let e=[],t=[];cl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),cl=e}var sr=new Set,Do;function ue(){Do={r:0,c:[],p:Do}}function fe(){Do.r||lt(Do.c),Do=Do.p}function d(i,e){i&&i.i&&(sr.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(sr.has(i))return;sr.add(i),Do.c.push(()=>{sr.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Pt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function nc(i){return typeof i=="object"&&i!==null?i:{}}var c2=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],d2=new Set([...c2]);function qe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function D(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xn(()=>{let r=i.$$.on_mount.map(As).filter(Ai);i.$$.on_destroy?i.$$.on_destroy.push(...r):lt(r),i.$$.on_mount=[]}),o.forEach(Xn)}function N(i,e){let t=i.$$;t.fragment!==null&&(ic(t.after_update),lt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function p2(i,e){i.$$.dirty[0]===-1&&(Bo.push(i),Bs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function G(i,e,t,n,o,r,l,a=[-1]){let s=ho;oo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:nr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:nr(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&p2(i,m)),h}):[],u.update(),c=!0,lt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Zf();let m=xf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),Xf(),rr()}oo(s)}var _2;typeof HTMLElement=="function"&&(_2=class extends HTMLElement{constructor(e,t,n){super();Qi(this,"$$componentCtor");Qi(this,"$$slots");Qi(this,"$$component");Qi(this,"$$connected",!1);Qi(this,"$$data",{});Qi(this,"$$reflecting",!1);Qi(this,"$$props_definition",{});Qi(this,"$$listeners",{});Qi(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}connectedCallback(){return dt(this,null,function*(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){S(u,l,c)},d:function(u){u&&C(l)}}}};var e=t;if(yield Promise.resolve(),!this.$$connected)return;let n={},o=$f(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=oc(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:Dt(ut({},this.$$data),{$$slots:n,$$scope:{ctx:[]}})});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}})}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=oc(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function oc(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Qi(this,"$$");Qi(this,"$$set")}$destroy(){N(this,1),this.$destroy=_e}$on(e,t){if(!Ai(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Wf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var lc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(lc);var cD=require("@vkontakte/videoplayer-core"),xn=require("@vkontakte/videoplayer-shared"),o_=require("@vkontakte/videoplayer-statistics");var dl=require("@vkontakte/videoplayer-shared");var h2={isMobile:void 0,defaultLanguage:dl.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:dl.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},rc=i=>(0,dl.fillWithDefault)(i,h2),sc=i=>al("ui-config",i),Qt=()=>ul("ui-config");var Hl="vk_player_debug_panel_opened";var ac="videoplayer",uc="videoplayer";var $n={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},fc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),cc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),dc=new Set(["ShiftRight","ShiftLeft"]);var mc=["TIMELINE"],zl=[...mc,"GRAPH_BUTTON"],Ds=[...mc,"PLAY_BUTTON"],ar=[...zl,"PLAY_BUTTON"];var go=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(go||{}),qo={xs:0,s:1,m:2,l:3,xl:4};var ml=[];function Hn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=_e){let t,n=new Set;function o(a){if(K(i,a)&&(i=a,t)){let s=!ml.length;for(let u of n)u[1](),ml.push(u,i);if(s){for(let u=0;u<ml.length;u+=2)ml[u][0](ml[u+1]);ml.length=0}}}function r(a){o(a(i))}function l(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Vi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Hn(t,(l,a)=>{let s=!1,u=[],c=0,m=_e,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ai(g)?g:_e},k=o.map((g,w)=>ti(g,y=>{u[w]=y,c&=~(1<<w),s&&h()},()=>{c|=1<<w}));return s=!0,h(),function(){lt(k),m(),s=!1}})}var Ul=require("@vkontakte/videoplayer-shared"),pc=require("@vkontakte/videoplayer-core"),_c=require("@vkontakte/videoplayer-statistics");var ur="prod",Oo="1.1.39-dev.001aa027.0";var fr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var hc=Symbol("storeContext"),gc=Symbol("microStoresContext"),bc=(i,e)=>{al(hc,i),al(gc,e),ur==="dev"&&(window.app={store:i,microStores:e})},at=()=>{let i=ul(hc);return(0,Ul.assertNonNullable)(i,"Store context is empty!"),i},Wn=()=>{let i=ul(gc);return(0,Ul.assertNonNullable)(i,"MicroStores context is empty!"),i},St=(i,e)=>Ns(i,i.getValue(),e),Ns=(i,e,t)=>Hn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),vc=(i,e,t)=>{var P,v,b,I,L,V;let n=i.info,{width:o,height:r}=rt(t.ui.playerSize),l=(v=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?v:0,a=(I=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?I:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Oo} (core: ${pc.VERSION}, stat: ${_c.VERSION}, shared: ${Ul.VERSION})`,c=rt(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((B,se)=>{var $;let re=`${se}) Type: ${B.id}
8
8
  `,U=`Message: ${B.message} (${B.thrown})
9
9
  `,R=`Trace: ${($=B.thrown)==null?void 0:$.stack}
package/es2015.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.38
3
- * Mon, 29 Jul 2024 14:44:05 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
2
+ * @vkontakte/videoplayer v1.1.39-dev.001aa027.0
3
+ * Tue, 30 Jul 2024 10:45:29 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-39/doc/
5
5
  */
6
- var v_=Object.defineProperty,y_=Object.defineProperties;var w_=Object.getOwnPropertyDescriptors;var Vf=Object.getOwnPropertySymbols;var k_=Object.prototype.hasOwnProperty,C_=Object.prototype.propertyIsEnumerable;var ds=(i,e,t)=>e in i?v_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ut=(i,e)=>{for(var t in e||(e={}))k_.call(e,t)&&ds(i,t,e[t]);if(Vf)for(var t of Vf(e))C_.call(e,t)&&ds(i,t,e[t]);return i},Bt=(i,e)=>y_(i,w_(e));var Wi=(i,e,t)=>(ds(i,typeof e!="symbol"?e+"":e,t),t);var dt=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});function _e(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function ms(i){return i()}function Kl(){return Object.create(null)}function lt(i){i.forEach(ms)}function Ii(i){return typeof i=="function"}function K(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ul;function ps(i,e){return Ul||(Ul=document.createElement("a")),Ul.href=e,i===Ul.href}function Lf(i){return Object.keys(i).length===0}function $t(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return $t(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push($t(e,t))}function Ee(i,e,t,n){if(i){let o=Rf(i,e,t,n);return i[0](o)}}function Rf(i,e,t,n){return i[1]&&n?le(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=Rf(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Bf(i){return i==null?"":i}var To=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var jl=class i{constructor(e){Wi(this,"_listeners","WeakMap"in To?new WeakMap:void 0);Wi(this,"_observer");Wi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};jl.entries="WeakMap"in To?new WeakMap:void 0;var Df=!1;function Nf(){Df=!0}function qf(){Df=!1}function p(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Of(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,T_(n,o)}}function Of(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function T_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Ei(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function F(){return Le(" ")}function ct(){return Le("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Nt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ft(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)f(i,t,e[t])}function Ff(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function wi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Wl;function I_(){if(Wl===void 0){Wl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Wl=!0}}return Wl}function xo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=I_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function Hf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function En(i,e){return new i(e)}var fo;function eo(i){fo=i}function $o(){if(!fo)throw new Error("Function called outside component initialization");return fo}function qt(i){$o().$$.on_mount.push(i)}function jn(i){$o().$$.on_destroy.push(i)}function el(i,e){return $o().$$.context.set(i,e),e}function tl(i){return $o().$$.context.get(i)}function Cl(){return $o().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Io=[];var pe=[],nl=[],hs=[],Uf=Promise.resolve(),gs=!1;function bs(){gs||(gs=!0,Uf.then(Gl))}function Wn(){return bs(),Uf}function Gn(i){nl.push(i)}function Ne(i){hs.push(i)}var _s=new Set,il=0;function Gl(){if(il!==0)return;let i=fo;do{try{for(;il<Io.length;){let e=Io[il];il++,eo(e),R_(e.$$)}}catch(e){throw Io.length=0,il=0,e}for(eo(null),Io.length=0,il=0;pe.length;)pe.pop()();for(let e=0;e<nl.length;e+=1){let t=nl[e];_s.has(t)||(_s.add(t),t())}nl.length=0}while(Io.length);for(;hs.length;)hs.pop()();gs=!1,_s.clear(),eo(i)}function R_(i){if(i.fragment!==null){i.update(),lt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Gn)}}function Kf(i){let e=[],t=[];nl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),nl=e}var Ql=new Set,Eo;function ue(){Eo={r:0,c:[],p:Eo}}function fe(){Eo.r||lt(Eo.c),Eo=Eo.p}function d(i,e){i&&i.i&&(Ql.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Ql.has(i))return;Ql.add(i),Eo.c.push(()=>{Ql.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function St(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function jf(i){return typeof i=="object"&&i!==null?i:{}}var B_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],D_=new Set([...B_]);function qe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function D(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Gn(()=>{let r=i.$$.on_mount.map(ms).filter(Ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):lt(r),i.$$.on_mount=[]}),o.forEach(Gn)}function N(i,e){let t=i.$$;t.fragment!==null&&(Kf(t.after_update),lt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function q_(i,e){i.$$.dirty[0]===-1&&(Io.push(i),bs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function G(i,e,t,n,o,r,l,a=[-1]){let s=fo;eo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:Kl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Kl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&q_(i,m)),h}):[],u.update(),c=!0,lt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Nf();let m=Ff(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),qf(),Gl()}eo(s)}var O_;typeof HTMLElement=="function"&&(O_=class extends HTMLElement{constructor(e,t,n){super();Wi(this,"$$componentCtor");Wi(this,"$$slots");Wi(this,"$$component");Wi(this,"$$connected",!1);Wi(this,"$$data",{});Wi(this,"$$reflecting",!1);Wi(this,"$$props_definition",{});Wi(this,"$$listeners",{});Wi(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}connectedCallback(){return dt(this,null,function*(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){S(u,l,c)},d:function(u){u&&C(l)}}}};var e=t;if(yield Promise.resolve(),!this.$$connected)return;let n={},o=Hf(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=Wf(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:Bt(ut({},this.$$data),{$$slots:n,$$scope:{ctx:[]}})});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}})}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=Wf(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function Wf(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Wi(this,"$$");Wi(this,"$$set")}$destroy(){N(this,1),this.$destroy=_e}$on(e,t){if(!Ii(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Lf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Gf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Gf);import"@vkontakte/videoplayer-core";import{noop as vl,safeStorage as Q6,throttleFn as Y6}from"@vkontakte/videoplayer-shared";import{SeekAction as Z6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as F_,fillWithDefault as H_,VideoQuality as z_}from"@vkontakte/videoplayer-shared";var U_={isMobile:void 0,defaultLanguage:F_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:z_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Qf=i=>H_(i,U_),Yf=i=>el("ui-config",i),Wt=()=>tl("ui-config");var Sl="vk_player_debug_panel_opened";var Zf="videoplayer",Xf="videoplayer";var Zn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Jf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),xf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),$f=new Set(["ShiftRight","ShiftLeft"]);var ec=["TIMELINE"],Pl=[...ec,"GRAPH_BUTTON"],vs=[...ec,"PLAY_BUTTON"],Yl=[...Pl,"PLAY_BUTTON"];var Mo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Mo||{}),Vo={xs:0,s:1,m:2,l:3,xl:4};var ol=[];function Nn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=_e){let t,n=new Set;function o(a){if(K(i,a)&&(i=a,t)){let s=!ol.length;for(let u of n)u[1](),ol.push(u,i);if(s){for(let u=0;u<ol.length;u+=2)ol[u][0](ol[u+1]);ol.length=0}}}function r(a){o(a(i))}function l(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Ai(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Nn(t,(l,a)=>{let s=!1,u=[],c=0,m=_e,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ii(g)?g:_e},k=o.map((g,w)=>$t(g,y=>{u[w]=y,c&=~(1<<w),s&&h()},()=>{c|=1<<w}));return s=!0,h(),function(){lt(k),m(),s=!1}})}import{assertNonNullable as tc,VERSION as K_}from"@vkontakte/videoplayer-shared";import{VERSION as j_}from"@vkontakte/videoplayer-core";import{VERSION as W_}from"@vkontakte/videoplayer-statistics";var Zl="prod",ll="1.1.38";var Xl=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var ic=Symbol("storeContext"),nc=Symbol("microStoresContext"),oc=(i,e)=>{el(ic,i),el(nc,e),Zl==="dev"&&(window.app={store:i,microStores:e})},at=()=>{let i=tl(ic);return tc(i,"Store context is empty!"),i},zn=()=>{let i=tl(nc);return tc(i,"MicroStores context is empty!"),i},Ct=(i,e)=>ys(i,i.getValue(),e),ys=(i,e,t)=>Nn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),lc=(i,e,t)=>{var P,v,b,I,L,V;let n=i.info,{width:o,height:r}=rt(t.ui.playerSize),l=(v=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?v:0,a=(I=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?I:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${ll} (core: ${j_}, stat: ${W_}, shared: ${K_})`,c=rt(t.state.errorLog$),m=c.length?`
6
+ var v_=Object.defineProperty,y_=Object.defineProperties;var w_=Object.getOwnPropertyDescriptors;var Vf=Object.getOwnPropertySymbols;var k_=Object.prototype.hasOwnProperty,C_=Object.prototype.propertyIsEnumerable;var ds=(i,e,t)=>e in i?v_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ut=(i,e)=>{for(var t in e||(e={}))k_.call(e,t)&&ds(i,t,e[t]);if(Vf)for(var t of Vf(e))C_.call(e,t)&&ds(i,t,e[t]);return i},Bt=(i,e)=>y_(i,w_(e));var Wi=(i,e,t)=>(ds(i,typeof e!="symbol"?e+"":e,t),t);var dt=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});function _e(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function ms(i){return i()}function Kl(){return Object.create(null)}function lt(i){i.forEach(ms)}function Ii(i){return typeof i=="function"}function K(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ul;function ps(i,e){return Ul||(Ul=document.createElement("a")),Ul.href=e,i===Ul.href}function Lf(i){return Object.keys(i).length===0}function $t(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return $t(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push($t(e,t))}function Ee(i,e,t,n){if(i){let o=Rf(i,e,t,n);return i[0](o)}}function Rf(i,e,t,n){return i[1]&&n?le(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=Rf(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Bf(i){return i==null?"":i}var To=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var jl=class i{constructor(e){Wi(this,"_listeners","WeakMap"in To?new WeakMap:void 0);Wi(this,"_observer");Wi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};jl.entries="WeakMap"in To?new WeakMap:void 0;var Df=!1;function Nf(){Df=!0}function qf(){Df=!1}function p(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Of(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,T_(n,o)}}function Of(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function T_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Ei(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function F(){return Le(" ")}function ct(){return Le("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Nt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ft(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)f(i,t,e[t])}function Ff(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function wi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Wl;function I_(){if(Wl===void 0){Wl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Wl=!0}}return Wl}function xo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=I_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function Hf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function En(i,e){return new i(e)}var fo;function eo(i){fo=i}function $o(){if(!fo)throw new Error("Function called outside component initialization");return fo}function qt(i){$o().$$.on_mount.push(i)}function jn(i){$o().$$.on_destroy.push(i)}function el(i,e){return $o().$$.context.set(i,e),e}function tl(i){return $o().$$.context.get(i)}function Cl(){return $o().$$.context}function Dn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Io=[];var pe=[],nl=[],hs=[],Uf=Promise.resolve(),gs=!1;function bs(){gs||(gs=!0,Uf.then(Gl))}function Wn(){return bs(),Uf}function Gn(i){nl.push(i)}function Ne(i){hs.push(i)}var _s=new Set,il=0;function Gl(){if(il!==0)return;let i=fo;do{try{for(;il<Io.length;){let e=Io[il];il++,eo(e),R_(e.$$)}}catch(e){throw Io.length=0,il=0,e}for(eo(null),Io.length=0,il=0;pe.length;)pe.pop()();for(let e=0;e<nl.length;e+=1){let t=nl[e];_s.has(t)||(_s.add(t),t())}nl.length=0}while(Io.length);for(;hs.length;)hs.pop()();gs=!1,_s.clear(),eo(i)}function R_(i){if(i.fragment!==null){i.update(),lt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Gn)}}function Kf(i){let e=[],t=[];nl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),nl=e}var Ql=new Set,Eo;function ue(){Eo={r:0,c:[],p:Eo}}function fe(){Eo.r||lt(Eo.c),Eo=Eo.p}function d(i,e){i&&i.i&&(Ql.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Ql.has(i))return;Ql.add(i),Eo.c.push(()=>{Ql.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function St(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function jf(i){return typeof i=="object"&&i!==null?i:{}}var B_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],D_=new Set([...B_]);function qe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function D(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Gn(()=>{let r=i.$$.on_mount.map(ms).filter(Ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):lt(r),i.$$.on_mount=[]}),o.forEach(Gn)}function N(i,e){let t=i.$$;t.fragment!==null&&(Kf(t.after_update),lt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function q_(i,e){i.$$.dirty[0]===-1&&(Io.push(i),bs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function G(i,e,t,n,o,r,l,a=[-1]){let s=fo;eo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:Kl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Kl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&q_(i,m)),h}):[],u.update(),c=!0,lt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Nf();let m=Ff(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),qf(),Gl()}eo(s)}var O_;typeof HTMLElement=="function"&&(O_=class extends HTMLElement{constructor(e,t,n){super();Wi(this,"$$componentCtor");Wi(this,"$$slots");Wi(this,"$$component");Wi(this,"$$connected",!1);Wi(this,"$$data",{});Wi(this,"$$reflecting",!1);Wi(this,"$$props_definition",{});Wi(this,"$$listeners",{});Wi(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}connectedCallback(){return dt(this,null,function*(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){S(u,l,c)},d:function(u){u&&C(l)}}}};var e=t;if(yield Promise.resolve(),!this.$$connected)return;let n={},o=Hf(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=Wf(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:Bt(ut({},this.$$data),{$$slots:n,$$scope:{ctx:[]}})});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}})}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=Wf(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function Wf(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Wi(this,"$$");Wi(this,"$$set")}$destroy(){N(this,1),this.$destroy=_e}$on(e,t){if(!Ii(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Lf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Gf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Gf);import"@vkontakte/videoplayer-core";import{noop as vl,safeStorage as Q6,throttleFn as Y6}from"@vkontakte/videoplayer-shared";import{SeekAction as Z6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as F_,fillWithDefault as H_,VideoQuality as z_}from"@vkontakte/videoplayer-shared";var U_={isMobile:void 0,defaultLanguage:F_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:z_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Qf=i=>H_(i,U_),Yf=i=>el("ui-config",i),Wt=()=>tl("ui-config");var Sl="vk_player_debug_panel_opened";var Zf="videoplayer",Xf="videoplayer";var Zn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Jf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),xf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),$f=new Set(["ShiftRight","ShiftLeft"]);var ec=["TIMELINE"],Pl=[...ec,"GRAPH_BUTTON"],vs=[...ec,"PLAY_BUTTON"],Yl=[...Pl,"PLAY_BUTTON"];var Mo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Mo||{}),Vo={xs:0,s:1,m:2,l:3,xl:4};var ol=[];function Nn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=_e){let t,n=new Set;function o(a){if(K(i,a)&&(i=a,t)){let s=!ol.length;for(let u of n)u[1](),ol.push(u,i);if(s){for(let u=0;u<ol.length;u+=2)ol[u][0](ol[u+1]);ol.length=0}}}function r(a){o(a(i))}function l(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Ai(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Nn(t,(l,a)=>{let s=!1,u=[],c=0,m=_e,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ii(g)?g:_e},k=o.map((g,w)=>$t(g,y=>{u[w]=y,c&=~(1<<w),s&&h()},()=>{c|=1<<w}));return s=!0,h(),function(){lt(k),m(),s=!1}})}import{assertNonNullable as tc,VERSION as K_}from"@vkontakte/videoplayer-shared";import{VERSION as j_}from"@vkontakte/videoplayer-core";import{VERSION as W_}from"@vkontakte/videoplayer-statistics";var Zl="prod",ll="1.1.39-dev.001aa027.0";var Xl=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var ic=Symbol("storeContext"),nc=Symbol("microStoresContext"),oc=(i,e)=>{el(ic,i),el(nc,e),Zl==="dev"&&(window.app={store:i,microStores:e})},at=()=>{let i=tl(ic);return tc(i,"Store context is empty!"),i},zn=()=>{let i=tl(nc);return tc(i,"MicroStores context is empty!"),i},Ct=(i,e)=>ys(i,i.getValue(),e),ys=(i,e,t)=>Nn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),lc=(i,e,t)=>{var P,v,b,I,L,V;let n=i.info,{width:o,height:r}=rt(t.ui.playerSize),l=(v=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?v:0,a=(I=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?I:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${ll} (core: ${j_}, stat: ${W_}, shared: ${K_})`,c=rt(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((B,se)=>{var $;let re=`${se}) Type: ${B.id}
8
8
  `,U=`Message: ${B.message} (${B.thrown})
9
9
  `,R=`Trace: ${($=B.thrown)==null?void 0:$.stack}
package/es2018.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.38
3
- * Mon, 29 Jul 2024 14:44:05 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
2
+ * @vkontakte/videoplayer v1.1.39-dev.001aa027.0
3
+ * Tue, 30 Jul 2024 10:45:29 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-39/doc/
5
5
  */
6
- "use strict";var H_=Object.create;var Dl=Object.defineProperty;var z_=Object.getOwnPropertyDescriptor;var U_=Object.getOwnPropertyNames;var K_=Object.getPrototypeOf,j_=Object.prototype.hasOwnProperty;var W_=(i,e,t)=>e in i?Dl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var G_=(i,e)=>{for(var t in e)Dl(i,t,{get:e[t],enumerable:!0})},qf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of U_(e))!j_.call(i,o)&&o!==t&&Dl(i,o,{get:()=>e[o],enumerable:!(n=z_(e,o))||n.enumerable});return i};var Of=(i,e,t)=>(t=i!=null?H_(K_(i)):{},qf(e||!i||!i.__esModule?Dl(t,"default",{value:i,enumerable:!0}):t,i)),Q_=i=>qf(Dl({},"__esModule",{value:!0}),i);var ji=(i,e,t)=>(W_(i,typeof e!="symbol"?e+"":e,t),t);var j6={};G_(j6,{GridTypes:()=>po,InterfaceLanguage:()=>Ll.InterfaceLanguage,VERSION:()=>Do,VKNumericLanguage:()=>Ll.VKNumericLanguage,VideoFormat:()=>Cs.VideoFormat,VideoQuality:()=>Cs.VideoQuality,loadVKLangPack:()=>Ll.loadVKLangPack,registerPlayerWebComponent:()=>K6});module.exports=Q_(j6);function _e(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function Ps(i){return i()}function er(){return Object.create(null)}function lt(i){i.forEach(Ps)}function Ti(i){return typeof i=="function"}function K(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var $l;function Ts(i,e){return $l||($l=document.createElement("a")),$l.href=e,i===$l.href}function Ff(i){return Object.keys(i).length===0}function xt(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return xt(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(xt(e,t))}function Ee(i,e,t,n){if(i){let o=Hf(i,e,t,n);return i[0](o)}}function Hf(i,e,t,n){return i[1]&&n?le(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=Hf(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function zf(i){return i==null?"":i}var Mo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var tr=class i{constructor(e){ji(this,"_listeners","WeakMap"in Mo?new WeakMap:void 0);ji(this,"_observer");ji(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};tr.entries="WeakMap"in Mo?new WeakMap:void 0;var Uf=!1;function Kf(){Uf=!0}function jf(){Uf=!1}function p(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Wf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,X_(n,o)}}function Wf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function X_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Ii(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function F(){return Le(" ")}function ft(){return Le("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Bt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ut(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)f(i,t,e[t])}function Gf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function yi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var ir;function J_(){if(ir===void 0){ir=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){ir=!0}}return ir}function nl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=J_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function Qf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Mn(i,e){return new i(e)}var mo;function to(i){mo=i}function ol(){if(!mo)throw new Error("Function called outside component initialization");return mo}function Dt(i){ol().$$.on_mount.push(i)}function Wn(i){ol().$$.on_destroy.push(i)}function ll(i,e){return ol().$$.context.set(i,e),e}function rl(i){return ol().$$.context.get(i)}function Nl(){return ol().$$.context}function Nn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Vo=[];var pe=[],al=[],Es=[],Zf=Promise.resolve(),As=!1;function Ms(){As||(As=!0,Zf.then(nr))}function Gn(){return Ms(),Zf}function Qn(i){al.push(i)}function Ne(i){Es.push(i)}var Is=new Set,sl=0;function nr(){if(sl!==0)return;let i=mo;do{try{for(;sl<Vo.length;){let e=Vo[sl];sl++,to(e),n2(e.$$)}}catch(e){throw Vo.length=0,sl=0,e}for(to(null),Vo.length=0,sl=0;pe.length;)pe.pop()();for(let e=0;e<al.length;e+=1){let t=al[e];Is.has(t)||(Is.add(t),t())}al.length=0}while(Vo.length);for(;Es.length;)Es.pop()();As=!1,Is.clear(),to(i)}function n2(i){if(i.fragment!==null){i.update(),lt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qn)}}function Xf(i){let e=[],t=[];al.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),al=e}var or=new Set,Lo;function ue(){Lo={r:0,c:[],p:Lo}}function fe(){Lo.r||lt(Lo.c),Lo=Lo.p}function d(i,e){i&&i.i&&(or.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(or.has(i))return;or.add(i),Lo.c.push(()=>{or.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ct(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Jf(i){return typeof i=="object"&&i!==null?i:{}}var o2=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],l2=new Set([...o2]);function qe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function D(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qn(()=>{let r=i.$$.on_mount.map(Ps).filter(Ti);i.$$.on_destroy?i.$$.on_destroy.push(...r):lt(r),i.$$.on_mount=[]}),o.forEach(Qn)}function N(i,e){let t=i.$$;t.fragment!==null&&(Xf(t.after_update),lt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function s2(i,e){i.$$.dirty[0]===-1&&(Vo.push(i),Ms(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function G(i,e,t,n,o,r,l,a=[-1]){let s=mo;to(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:er(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:er(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&s2(i,m)),h}):[],u.update(),c=!0,lt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Kf();let m=Gf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),jf(),nr()}to(s)}var a2;typeof HTMLElement=="function"&&(a2=class extends HTMLElement{constructor(e,t,n){super();ji(this,"$$componentCtor");ji(this,"$$slots");ji(this,"$$component");ji(this,"$$connected",!1);ji(this,"$$data",{});ji(this,"$$reflecting",!1);ji(this,"$$props_definition",{});ji(this,"$$listeners",{});ji(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){S(u,l,c)},d:function(u){u&&C(l)}}}};var e=t;if(await Promise.resolve(),!this.$$connected)return;let n={},o=Qf(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=xf(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:n,$$scope:{ctx:[]}}});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=xf(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function xf(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){ji(this,"$$");ji(this,"$$set")}$destroy(){N(this,1),this.$destroy=_e}$on(e,t){if(!Ti(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Ff(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var $f="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($f);var zB=require("@vkontakte/videoplayer-core"),Zn=require("@vkontakte/videoplayer-shared"),xp=require("@vkontakte/videoplayer-statistics");var ul=require("@vkontakte/videoplayer-shared");var u2={isMobile:void 0,defaultLanguage:ul.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ul.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},ec=i=>(0,ul.fillWithDefault)(i,u2),tc=i=>ll("ui-config",i),jt=()=>rl("ui-config");var ql="vk_player_debug_panel_opened";var ic="videoplayer",nc="videoplayer";var Xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},oc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),lc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),rc=new Set(["ShiftRight","ShiftLeft"]);var sc=["TIMELINE"],Ol=[...sc,"GRAPH_BUTTON"],Vs=[...sc,"PLAY_BUTTON"],lr=[...Ol,"PLAY_BUTTON"];var po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(po||{}),Bo={xs:0,s:1,m:2,l:3,xl:4};var fl=[];function qn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=_e){let t,n=new Set;function o(a){if(K(i,a)&&(i=a,t)){let s=!fl.length;for(let u of n)u[1](),fl.push(u,i);if(s){for(let u=0;u<fl.length;u+=2)fl[u][0](fl[u+1]);fl.length=0}}}function r(a){o(a(i))}function l(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Ei(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return qn(t,(l,a)=>{let s=!1,u=[],c=0,m=_e,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ti(g)?g:_e},k=o.map((g,w)=>xt(g,y=>{u[w]=y,c&=~(1<<w),s&&h()},()=>{c|=1<<w}));return s=!0,h(),function(){lt(k),m(),s=!1}})}var Fl=require("@vkontakte/videoplayer-shared"),ac=require("@vkontakte/videoplayer-core"),uc=require("@vkontakte/videoplayer-statistics");var rr="prod",Do="1.1.38";var sr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var fc=Symbol("storeContext"),cc=Symbol("microStoresContext"),dc=(i,e)=>{ll(fc,i),ll(cc,e),rr==="dev"&&(window.app={store:i,microStores:e})},at=()=>{let i=rl(fc);return(0,Fl.assertNonNullable)(i,"Store context is empty!"),i},Un=()=>{let i=rl(cc);return(0,Fl.assertNonNullable)(i,"MicroStores context is empty!"),i},kt=(i,e)=>Ls(i,i.getValue(),e),Ls=(i,e,t)=>qn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),mc=(i,e,t)=>{var P,v,b,I,L,V;let n=i.info,{width:o,height:r}=rt(t.ui.playerSize),l=(v=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?v:0,a=(I=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?I:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Do} (core: ${ac.VERSION}, stat: ${uc.VERSION}, shared: ${Fl.VERSION})`,c=rt(t.state.errorLog$),m=c.length?`
6
+ "use strict";var H_=Object.create;var Dl=Object.defineProperty;var z_=Object.getOwnPropertyDescriptor;var U_=Object.getOwnPropertyNames;var K_=Object.getPrototypeOf,j_=Object.prototype.hasOwnProperty;var W_=(i,e,t)=>e in i?Dl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var G_=(i,e)=>{for(var t in e)Dl(i,t,{get:e[t],enumerable:!0})},qf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of U_(e))!j_.call(i,o)&&o!==t&&Dl(i,o,{get:()=>e[o],enumerable:!(n=z_(e,o))||n.enumerable});return i};var Of=(i,e,t)=>(t=i!=null?H_(K_(i)):{},qf(e||!i||!i.__esModule?Dl(t,"default",{value:i,enumerable:!0}):t,i)),Q_=i=>qf(Dl({},"__esModule",{value:!0}),i);var ji=(i,e,t)=>(W_(i,typeof e!="symbol"?e+"":e,t),t);var j6={};G_(j6,{GridTypes:()=>po,InterfaceLanguage:()=>Ll.InterfaceLanguage,VERSION:()=>Do,VKNumericLanguage:()=>Ll.VKNumericLanguage,VideoFormat:()=>Cs.VideoFormat,VideoQuality:()=>Cs.VideoQuality,loadVKLangPack:()=>Ll.loadVKLangPack,registerPlayerWebComponent:()=>K6});module.exports=Q_(j6);function _e(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function Ps(i){return i()}function er(){return Object.create(null)}function lt(i){i.forEach(Ps)}function Ti(i){return typeof i=="function"}function K(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var $l;function Ts(i,e){return $l||($l=document.createElement("a")),$l.href=e,i===$l.href}function Ff(i){return Object.keys(i).length===0}function xt(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return xt(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(xt(e,t))}function Ee(i,e,t,n){if(i){let o=Hf(i,e,t,n);return i[0](o)}}function Hf(i,e,t,n){return i[1]&&n?le(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=Hf(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function zf(i){return i==null?"":i}var Mo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var tr=class i{constructor(e){ji(this,"_listeners","WeakMap"in Mo?new WeakMap:void 0);ji(this,"_observer");ji(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};tr.entries="WeakMap"in Mo?new WeakMap:void 0;var Uf=!1;function Kf(){Uf=!0}function jf(){Uf=!1}function p(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Wf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,X_(n,o)}}function Wf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function X_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Ii(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function F(){return Le(" ")}function ft(){return Le("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Bt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ut(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)f(i,t,e[t])}function Gf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function yi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var ir;function J_(){if(ir===void 0){ir=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){ir=!0}}return ir}function nl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=J_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function Qf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Mn(i,e){return new i(e)}var mo;function to(i){mo=i}function ol(){if(!mo)throw new Error("Function called outside component initialization");return mo}function Dt(i){ol().$$.on_mount.push(i)}function Wn(i){ol().$$.on_destroy.push(i)}function ll(i,e){return ol().$$.context.set(i,e),e}function rl(i){return ol().$$.context.get(i)}function Nl(){return ol().$$.context}function Nn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Vo=[];var pe=[],al=[],Es=[],Zf=Promise.resolve(),As=!1;function Ms(){As||(As=!0,Zf.then(nr))}function Gn(){return Ms(),Zf}function Qn(i){al.push(i)}function Ne(i){Es.push(i)}var Is=new Set,sl=0;function nr(){if(sl!==0)return;let i=mo;do{try{for(;sl<Vo.length;){let e=Vo[sl];sl++,to(e),n2(e.$$)}}catch(e){throw Vo.length=0,sl=0,e}for(to(null),Vo.length=0,sl=0;pe.length;)pe.pop()();for(let e=0;e<al.length;e+=1){let t=al[e];Is.has(t)||(Is.add(t),t())}al.length=0}while(Vo.length);for(;Es.length;)Es.pop()();As=!1,Is.clear(),to(i)}function n2(i){if(i.fragment!==null){i.update(),lt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qn)}}function Xf(i){let e=[],t=[];al.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),al=e}var or=new Set,Lo;function ue(){Lo={r:0,c:[],p:Lo}}function fe(){Lo.r||lt(Lo.c),Lo=Lo.p}function d(i,e){i&&i.i&&(or.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(or.has(i))return;or.add(i),Lo.c.push(()=>{or.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ct(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Jf(i){return typeof i=="object"&&i!==null?i:{}}var o2=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],l2=new Set([...o2]);function qe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function D(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qn(()=>{let r=i.$$.on_mount.map(Ps).filter(Ti);i.$$.on_destroy?i.$$.on_destroy.push(...r):lt(r),i.$$.on_mount=[]}),o.forEach(Qn)}function N(i,e){let t=i.$$;t.fragment!==null&&(Xf(t.after_update),lt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function s2(i,e){i.$$.dirty[0]===-1&&(Vo.push(i),Ms(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function G(i,e,t,n,o,r,l,a=[-1]){let s=mo;to(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:er(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:er(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&s2(i,m)),h}):[],u.update(),c=!0,lt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Kf();let m=Gf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),jf(),nr()}to(s)}var a2;typeof HTMLElement=="function"&&(a2=class extends HTMLElement{constructor(e,t,n){super();ji(this,"$$componentCtor");ji(this,"$$slots");ji(this,"$$component");ji(this,"$$connected",!1);ji(this,"$$data",{});ji(this,"$$reflecting",!1);ji(this,"$$props_definition",{});ji(this,"$$listeners",{});ji(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){S(u,l,c)},d:function(u){u&&C(l)}}}};var e=t;if(await Promise.resolve(),!this.$$connected)return;let n={},o=Qf(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=xf(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:n,$$scope:{ctx:[]}}});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=xf(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function xf(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){ji(this,"$$");ji(this,"$$set")}$destroy(){N(this,1),this.$destroy=_e}$on(e,t){if(!Ti(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Ff(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var $f="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($f);var zB=require("@vkontakte/videoplayer-core"),Zn=require("@vkontakte/videoplayer-shared"),xp=require("@vkontakte/videoplayer-statistics");var ul=require("@vkontakte/videoplayer-shared");var u2={isMobile:void 0,defaultLanguage:ul.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ul.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},ec=i=>(0,ul.fillWithDefault)(i,u2),tc=i=>ll("ui-config",i),jt=()=>rl("ui-config");var ql="vk_player_debug_panel_opened";var ic="videoplayer",nc="videoplayer";var Xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},oc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),lc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),rc=new Set(["ShiftRight","ShiftLeft"]);var sc=["TIMELINE"],Ol=[...sc,"GRAPH_BUTTON"],Vs=[...sc,"PLAY_BUTTON"],lr=[...Ol,"PLAY_BUTTON"];var po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(po||{}),Bo={xs:0,s:1,m:2,l:3,xl:4};var fl=[];function qn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=_e){let t,n=new Set;function o(a){if(K(i,a)&&(i=a,t)){let s=!fl.length;for(let u of n)u[1](),fl.push(u,i);if(s){for(let u=0;u<fl.length;u+=2)fl[u][0](fl[u+1]);fl.length=0}}}function r(a){o(a(i))}function l(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Ei(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return qn(t,(l,a)=>{let s=!1,u=[],c=0,m=_e,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Ti(g)?g:_e},k=o.map((g,w)=>xt(g,y=>{u[w]=y,c&=~(1<<w),s&&h()},()=>{c|=1<<w}));return s=!0,h(),function(){lt(k),m(),s=!1}})}var Fl=require("@vkontakte/videoplayer-shared"),ac=require("@vkontakte/videoplayer-core"),uc=require("@vkontakte/videoplayer-statistics");var rr="prod",Do="1.1.39-dev.001aa027.0";var sr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var fc=Symbol("storeContext"),cc=Symbol("microStoresContext"),dc=(i,e)=>{ll(fc,i),ll(cc,e),rr==="dev"&&(window.app={store:i,microStores:e})},at=()=>{let i=rl(fc);return(0,Fl.assertNonNullable)(i,"Store context is empty!"),i},Un=()=>{let i=rl(cc);return(0,Fl.assertNonNullable)(i,"MicroStores context is empty!"),i},kt=(i,e)=>Ls(i,i.getValue(),e),Ls=(i,e,t)=>qn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),mc=(i,e,t)=>{var P,v,b,I,L,V;let n=i.info,{width:o,height:r}=rt(t.ui.playerSize),l=(v=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?v:0,a=(I=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?I:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Do} (core: ${ac.VERSION}, stat: ${uc.VERSION}, shared: ${Fl.VERSION})`,c=rt(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((B,se)=>{var $;let re=`${se}) Type: ${B.id}
8
8
  `,U=`Message: ${B.message} (${B.thrown})
9
9
  `,R=`Trace: ${($=B.thrown)==null?void 0:$.stack}
package/es2018.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.38
3
- * Mon, 29 Jul 2024 14:44:05 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
2
+ * @vkontakte/videoplayer v1.1.39-dev.001aa027.0
3
+ * Tue, 30 Jul 2024 10:45:29 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-39/doc/
5
5
  */
6
- var p_=Object.defineProperty;var __=(i,e,t)=>e in i?p_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ui=(i,e,t)=>(__(i,typeof e!="symbol"?e+"":e,t),t);function _e(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function us(i){return i()}function Hl(){return Object.create(null)}function lt(i){i.forEach(us)}function Si(i){return typeof i=="function"}function K(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Fl;function fs(i,e){return Fl||(Fl=document.createElement("a")),Fl.href=e,i===Fl.href}function If(i){return Object.keys(i).length===0}function Xt(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return Xt(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(Xt(e,t))}function Ee(i,e,t,n){if(i){let o=Ef(i,e,t,n);return i[0](o)}}function Ef(i,e,t,n){return i[1]&&n?le(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=Ef(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Af(i){return i==null?"":i}var Co=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var zl=class i{constructor(e){Ui(this,"_listeners","WeakMap"in Co?new WeakMap:void 0);Ui(this,"_observer");Ui(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};zl.entries="WeakMap"in Co?new WeakMap:void 0;var Mf=!1;function Vf(){Mf=!0}function Lf(){Mf=!1}function p(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Rf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,b_(n,o)}}function Rf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function b_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Pi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function F(){return Le(" ")}function ft(){return Le("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Rt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ut(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)f(i,t,e[t])}function Bf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function bi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Ul;function v_(){if(Ul===void 0){Ul=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Ul=!0}}return Ul}function Zo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=v_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function Df(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Pn(i,e){return new i(e)}var so;function Jn(i){so=i}function Xo(){if(!so)throw new Error("Function called outside component initialization");return so}function Bt(i){Xo().$$.on_mount.push(i)}function zn(i){Xo().$$.on_destroy.push(i)}function Jo(i,e){return Xo().$$.context.set(i,e),e}function xo(i){return Xo().$$.context.get(i)}function yl(){return Xo().$$.context}function Ln(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var So=[];var pe=[],el=[],ds=[],qf=Promise.resolve(),ms=!1;function ps(){ms||(ms=!0,qf.then(Kl))}function Un(){return ps(),qf}function Kn(i){el.push(i)}function Ne(i){ds.push(i)}var cs=new Set,$o=0;function Kl(){if($o!==0)return;let i=so;do{try{for(;$o<So.length;){let e=So[$o];$o++,Jn(e),P_(e.$$)}}catch(e){throw So.length=0,$o=0,e}for(Jn(null),So.length=0,$o=0;pe.length;)pe.pop()();for(let e=0;e<el.length;e+=1){let t=el[e];cs.has(t)||(cs.add(t),t())}el.length=0}while(So.length);for(;ds.length;)ds.pop()();ms=!1,cs.clear(),Jn(i)}function P_(i){if(i.fragment!==null){i.update(),lt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Kn)}}function Of(i){let e=[],t=[];el.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),el=e}var jl=new Set,Po;function ue(){Po={r:0,c:[],p:Po}}function fe(){Po.r||lt(Po.c),Po=Po.p}function d(i,e){i&&i.i&&(jl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(jl.has(i))return;jl.add(i),Po.c.push(()=>{jl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function kt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Ff(i){return typeof i=="object"&&i!==null?i:{}}var T_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],I_=new Set([...T_]);function qe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function D(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Kn(()=>{let r=i.$$.on_mount.map(us).filter(Si);i.$$.on_destroy?i.$$.on_destroy.push(...r):lt(r),i.$$.on_mount=[]}),o.forEach(Kn)}function N(i,e){let t=i.$$;t.fragment!==null&&(Of(t.after_update),lt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function A_(i,e){i.$$.dirty[0]===-1&&(So.push(i),ps(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function G(i,e,t,n,o,r,l,a=[-1]){let s=so;Jn(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:Hl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Hl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&A_(i,m)),h}):[],u.update(),c=!0,lt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Vf();let m=Bf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),Lf(),Kl()}Jn(s)}var M_;typeof HTMLElement=="function"&&(M_=class extends HTMLElement{constructor(e,t,n){super();Ui(this,"$$componentCtor");Ui(this,"$$slots");Ui(this,"$$component");Ui(this,"$$connected",!1);Ui(this,"$$data",{});Ui(this,"$$reflecting",!1);Ui(this,"$$props_definition",{});Ui(this,"$$listeners",{});Ui(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){S(u,l,c)},d:function(u){u&&C(l)}}}};var e=t;if(await Promise.resolve(),!this.$$connected)return;let n={},o=Df(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=Hf(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:n,$$scope:{ctx:[]}}});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=Hf(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function Hf(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Ui(this,"$$");Ui(this,"$$set")}$destroy(){N(this,1),this.$destroy=_e}$on(e,t){if(!Si(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!If(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var zf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zf);import"@vkontakte/videoplayer-core";import{noop as hl,safeStorage as F6,throttleFn as H6}from"@vkontakte/videoplayer-shared";import{SeekAction as z6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as V_,fillWithDefault as L_,VideoQuality as R_}from"@vkontakte/videoplayer-shared";var B_={isMobile:void 0,defaultLanguage:V_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:R_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Uf=i=>L_(i,B_),Kf=i=>Jo("ui-config",i),Ut=()=>xo("ui-config");var wl="vk_player_debug_panel_opened";var jf="videoplayer",Wf="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Gf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Qf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Yf=new Set(["ShiftRight","ShiftLeft"]);var Zf=["TIMELINE"],kl=[...Zf,"GRAPH_BUTTON"],_s=[...Zf,"PLAY_BUTTON"],Wl=[...kl,"PLAY_BUTTON"];var Io=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Io||{}),Eo={xs:0,s:1,m:2,l:3,xl:4};var tl=[];function Rn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=_e){let t,n=new Set;function o(a){if(K(i,a)&&(i=a,t)){let s=!tl.length;for(let u of n)u[1](),tl.push(u,i);if(s){for(let u=0;u<tl.length;u+=2)tl[u][0](tl[u+1]);tl.length=0}}}function r(a){o(a(i))}function l(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Ti(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Rn(t,(l,a)=>{let s=!1,u=[],c=0,m=_e,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Si(g)?g:_e},k=o.map((g,w)=>Xt(g,y=>{u[w]=y,c&=~(1<<w),s&&h()},()=>{c|=1<<w}));return s=!0,h(),function(){lt(k),m(),s=!1}})}import{assertNonNullable as Xf,VERSION as D_}from"@vkontakte/videoplayer-shared";import{VERSION as N_}from"@vkontakte/videoplayer-core";import{VERSION as q_}from"@vkontakte/videoplayer-statistics";var Gl="prod",il="1.1.38";var Ql=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Jf=Symbol("storeContext"),xf=Symbol("microStoresContext"),$f=(i,e)=>{Jo(Jf,i),Jo(xf,e),Gl==="dev"&&(window.app={store:i,microStores:e})},at=()=>{let i=xo(Jf);return Xf(i,"Store context is empty!"),i},On=()=>{let i=xo(xf);return Xf(i,"MicroStores context is empty!"),i},wt=(i,e)=>hs(i,i.getValue(),e),hs=(i,e,t)=>Rn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ec=(i,e,t)=>{var P,v,b,I,L,V;let n=i.info,{width:o,height:r}=rt(t.ui.playerSize),l=(v=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?v:0,a=(I=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?I:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${il} (core: ${N_}, stat: ${q_}, shared: ${D_})`,c=rt(t.state.errorLog$),m=c.length?`
6
+ var p_=Object.defineProperty;var __=(i,e,t)=>e in i?p_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ui=(i,e,t)=>(__(i,typeof e!="symbol"?e+"":e,t),t);function _e(){}function le(i,e){for(let t in e)i[t]=e[t];return i}function us(i){return i()}function Hl(){return Object.create(null)}function lt(i){i.forEach(us)}function Si(i){return typeof i=="function"}function K(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Fl;function fs(i,e){return Fl||(Fl=document.createElement("a")),Fl.href=e,i===Fl.href}function If(i){return Object.keys(i).length===0}function Xt(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function rt(i){let e;return Xt(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(Xt(e,t))}function Ee(i,e,t,n){if(i){let o=Ef(i,e,t,n);return i[0](o)}}function Ef(i,e,t,n){return i[1]&&n?le(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=Ef(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Af(i){return i==null?"":i}var Co=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var zl=class i{constructor(e){Ui(this,"_listeners","WeakMap"in Co?new WeakMap:void 0);Ui(this,"_observer");Ui(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};zl.entries="WeakMap"in Co?new WeakMap:void 0;var Mf=!1;function Vf(){Mf=!0}function Lf(){Mf=!1}function p(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Rf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,b_(n,o)}}function Rf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function b_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Pi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function O(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Le(i){return document.createTextNode(i)}function F(){return Le(" ")}function ft(){return Le("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Rt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ut(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)f(i,t,e[t])}function Bf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function bi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Ul;function v_(){if(Ul===void 0){Ul=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Ul=!0}}return Ul}function Zo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=v_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function Df(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Pn(i,e){return new i(e)}var so;function Jn(i){so=i}function Xo(){if(!so)throw new Error("Function called outside component initialization");return so}function Bt(i){Xo().$$.on_mount.push(i)}function zn(i){Xo().$$.on_destroy.push(i)}function Jo(i,e){return Xo().$$.context.set(i,e),e}function xo(i){return Xo().$$.context.get(i)}function yl(){return Xo().$$.context}function Ln(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var So=[];var pe=[],el=[],ds=[],qf=Promise.resolve(),ms=!1;function ps(){ms||(ms=!0,qf.then(Kl))}function Un(){return ps(),qf}function Kn(i){el.push(i)}function Ne(i){ds.push(i)}var cs=new Set,$o=0;function Kl(){if($o!==0)return;let i=so;do{try{for(;$o<So.length;){let e=So[$o];$o++,Jn(e),P_(e.$$)}}catch(e){throw So.length=0,$o=0,e}for(Jn(null),So.length=0,$o=0;pe.length;)pe.pop()();for(let e=0;e<el.length;e+=1){let t=el[e];cs.has(t)||(cs.add(t),t())}el.length=0}while(So.length);for(;ds.length;)ds.pop()();ms=!1,cs.clear(),Jn(i)}function P_(i){if(i.fragment!==null){i.update(),lt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Kn)}}function Of(i){let e=[],t=[];el.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),el=e}var jl=new Set,Po;function ue(){Po={r:0,c:[],p:Po}}function fe(){Po.r||lt(Po.c),Po=Po.p}function d(i,e){i&&i.i&&(jl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(jl.has(i))return;jl.add(i),Po.c.push(()=>{jl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function kt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Re(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Ff(i){return typeof i=="object"&&i!==null?i:{}}var T_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],I_=new Set([...T_]);function qe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function D(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Kn(()=>{let r=i.$$.on_mount.map(us).filter(Si);i.$$.on_destroy?i.$$.on_destroy.push(...r):lt(r),i.$$.on_mount=[]}),o.forEach(Kn)}function N(i,e){let t=i.$$;t.fragment!==null&&(Of(t.after_update),lt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function A_(i,e){i.$$.dirty[0]===-1&&(So.push(i),ps(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function G(i,e,t,n,o,r,l,a=[-1]){let s=so;Jn(i);let u=i.$$={fragment:null,ctx:[],props:r,update:_e,not_equal:o,bound:Hl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Hl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&A_(i,m)),h}):[],u.update(),c=!0,lt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Vf();let m=Bf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),D(i,e.target,e.anchor),Lf(),Kl()}Jn(s)}var M_;typeof HTMLElement=="function"&&(M_=class extends HTMLElement{constructor(e,t,n){super();Ui(this,"$$componentCtor");Ui(this,"$$slots");Ui(this,"$$component");Ui(this,"$$connected",!1);Ui(this,"$$data",{});Ui(this,"$$reflecting",!1);Ui(this,"$$props_definition",{});Ui(this,"$$listeners",{});Ui(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){S(u,l,c)},d:function(u){u&&C(l)}}}};var e=t;if(await Promise.resolve(),!this.$$connected)return;let n={},o=Df(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=Hf(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:n,$$scope:{ctx:[]}}});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=Hf(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function Hf(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Ui(this,"$$");Ui(this,"$$set")}$destroy(){N(this,1),this.$destroy=_e}$on(e,t){if(!Si(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!If(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var zf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zf);import"@vkontakte/videoplayer-core";import{noop as hl,safeStorage as F6,throttleFn as H6}from"@vkontakte/videoplayer-shared";import{SeekAction as z6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as V_,fillWithDefault as L_,VideoQuality as R_}from"@vkontakte/videoplayer-shared";var B_={isMobile:void 0,defaultLanguage:V_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:R_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Uf=i=>L_(i,B_),Kf=i=>Jo("ui-config",i),Ut=()=>xo("ui-config");var wl="vk_player_debug_panel_opened";var jf="videoplayer",Wf="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Gf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Qf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Yf=new Set(["ShiftRight","ShiftLeft"]);var Zf=["TIMELINE"],kl=[...Zf,"GRAPH_BUTTON"],_s=[...Zf,"PLAY_BUTTON"],Wl=[...kl,"PLAY_BUTTON"];var Io=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Io||{}),Eo={xs:0,s:1,m:2,l:3,xl:4};var tl=[];function Rn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=_e){let t,n=new Set;function o(a){if(K(i,a)&&(i=a,t)){let s=!tl.length;for(let u of n)u[1](),tl.push(u,i);if(s){for(let u=0;u<tl.length;u+=2)tl[u][0](tl[u+1]);tl.length=0}}}function r(a){o(a(i))}function l(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Ti(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Rn(t,(l,a)=>{let s=!1,u=[],c=0,m=_e,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Si(g)?g:_e},k=o.map((g,w)=>Xt(g,y=>{u[w]=y,c&=~(1<<w),s&&h()},()=>{c|=1<<w}));return s=!0,h(),function(){lt(k),m(),s=!1}})}import{assertNonNullable as Xf,VERSION as D_}from"@vkontakte/videoplayer-shared";import{VERSION as N_}from"@vkontakte/videoplayer-core";import{VERSION as q_}from"@vkontakte/videoplayer-statistics";var Gl="prod",il="1.1.39-dev.001aa027.0";var Ql=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Jf=Symbol("storeContext"),xf=Symbol("microStoresContext"),$f=(i,e)=>{Jo(Jf,i),Jo(xf,e),Gl==="dev"&&(window.app={store:i,microStores:e})},at=()=>{let i=xo(Jf);return Xf(i,"Store context is empty!"),i},On=()=>{let i=xo(xf);return Xf(i,"MicroStores context is empty!"),i},wt=(i,e)=>hs(i,i.getValue(),e),hs=(i,e,t)=>Rn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ec=(i,e,t)=>{var P,v,b,I,L,V;let n=i.info,{width:o,height:r}=rt(t.ui.playerSize),l=(v=(P=n.throughputEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?v:0,a=(I=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?I:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${il} (core: ${N_}, stat: ${q_}, shared: ${D_})`,c=rt(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((B,se)=>{var $;let re=`${se}) Type: ${B.id}
8
8
  `,U=`Message: ${B.message} (${B.thrown})
9
9
  `,R=`Trace: ${($=B.thrown)==null?void 0:$.stack}
package/esnext.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.38
3
- * Mon, 29 Jul 2024 14:44:05 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
2
+ * @vkontakte/videoplayer v1.1.39-dev.001aa027.0
3
+ * Tue, 30 Jul 2024 10:45:29 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-39/doc/
5
5
  */
6
- "use strict";var q_=Object.create;var Xl=Object.defineProperty;var O_=Object.getOwnPropertyDescriptor;var F_=Object.getOwnPropertyNames;var H_=Object.getPrototypeOf,z_=Object.prototype.hasOwnProperty;var U_=(i,e)=>{for(var t in e)Xl(i,t,{get:e[t],enumerable:!0})},Rc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of F_(e))!z_.call(i,o)&&o!==t&&Xl(i,o,{get:()=>e[o],enumerable:!(n=O_(e,o))||n.enumerable});return i};var Bc=(i,e,t)=>(t=i!=null?q_(H_(i)):{},Rc(e||!i||!i.__esModule?Xl(t,"default",{value:i,enumerable:!0}):t,i)),K_=i=>Rc(Xl({},"__esModule",{value:!0}),i);var H6={};U_(H6,{GridTypes:()=>fo,InterfaceLanguage:()=>Al.InterfaceLanguage,VERSION:()=>Ro,VKNumericLanguage:()=>Al.VKNumericLanguage,VideoFormat:()=>ks.VideoFormat,VideoQuality:()=>ks.VideoQuality,loadVKLangPack:()=>Al.loadVKLangPack,registerPlayerWebComponent:()=>F6});module.exports=K_(H6);function he(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function Ss(i){return i()}function xl(){return Object.create(null)}function et(i){i.forEach(Ss)}function Ci(i){return typeof i=="function"}function z(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Jl;function Ps(i,e){return Jl||(Jl=document.createElement("a")),Jl.href=e,i===Jl.href}function Dc(i){return Object.keys(i).length===0}function Ut(i,...e){if(i==null){for(let n of e)n(void 0);return he}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Ut(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Ut(e,t))}function Pe(i,e,t,n){if(i){let o=Nc(i,e,t,n);return i[0](o)}}function Nc(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Ie(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Te(i,e,t,n,o,l){if(o){let r=Nc(e,t,n,l);i.p(r,o)}}function Ee(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function qc(i){return i??""}var Eo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var $l=class i{_listeners="WeakMap"in Eo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};$l.entries="WeakMap"in Eo?new WeakMap:void 0;var Oc=!1;function Fc(){Oc=!0}function Hc(){Oc=!1}function m(i,e){i.appendChild(e)}function Ce(i,e,t){let n=zc(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,G_(n,o)}}function zc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function G_(i,e){return m(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Si(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Me(i){return document.createTextNode(i)}function N(){return Me(" ")}function at(){return Me("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Pt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)c(i,t,e[t])}function Uc(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function gi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var er;function Q_(){if(er===void 0){er=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{er=!0}}return er}function el(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=Q_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=de(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Kc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function kn(i,e){return new i(e)}var co;function to(i){co=i}function tl(){if(!co)throw new Error("Function called outside component initialization");return co}function It(i){tl().$$.on_mount.push(i)}function jn(i){tl().$$.on_destroy.push(i)}function il(i,e){return tl().$$.context.set(i,e),e}function nl(i){return tl().$$.context.get(i)}function Ll(){return tl().$$.context}function En(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Ao=[];var _e=[],ll=[],Ts=[],Wc=Promise.resolve(),Es=!1;function As(){Es||(Es=!0,Wc.then(tr))}function Wn(){return As(),Wc}function Gn(i){ll.push(i)}function qe(i){Ts.push(i)}var Is=new Set,ol=0;function tr(){if(ol!==0)return;let i=co;do{try{for(;ol<Ao.length;){let e=Ao[ol];ol++,to(e),$_(e.$$)}}catch(e){throw Ao.length=0,ol=0,e}for(to(null),Ao.length=0,ol=0;_e.length;)_e.pop()();for(let e=0;e<ll.length;e+=1){let t=ll[e];Is.has(t)||(Is.add(t),t())}ll.length=0}while(Ao.length);for(;Ts.length;)Ts.pop()();Es=!1,Is.clear(),to(i)}function $_(i){if(i.fragment!==null){i.update(),et(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Gn)}}function Gc(i){let e=[],t=[];ll.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ll=e}var ir=new Set,Mo;function ae(){Mo={r:0,c:[],p:Mo}}function ue(){Mo.r||et(Mo.c),Mo=Mo.p}function d(i,e){i&&i.i&&(ir.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(ir.has(i))return;ir.add(i),Mo.c.push(()=>{ir.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function kt(i){return i?.length!==void 0?i:Array.from(i)}function Le(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Qc(i){return typeof i=="object"&&i!==null?i:{}}var e2=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],t2=new Set([...e2]);function Oe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Gn(()=>{let l=i.$$.on_mount.map(Ss).filter(Ci);i.$$.on_destroy?i.$$.on_destroy.push(...l):et(l),i.$$.on_mount=[]}),o.forEach(Gn)}function L(i,e){let t=i.$$;t.fragment!==null&&(Gc(t.after_update),et(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function n2(i,e){i.$$.dirty[0]===-1&&(Ao.push(i),As(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,l,r,a=[-1]){let s=co;to(i);let u=i.$$={fragment:null,ctx:[],props:l,update:he,not_equal:o,bound:xl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:xl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&n2(i,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Fc();let p=Uc(e.target);u.fragment&&u.fragment.l(p),p.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Hc(),tr()}to(s)}var o2;typeof HTMLElement=="function"&&(o2=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let l;return{c:function(){l=document.createElement("slot"),o!=="default"&&l.setAttribute("name",o)},m:function(s,u){S(s,l,u)},d:function(s){s&&C(l)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=Kc(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=Yc(l,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let l of this.$$listeners[o]){let r=this.$$component.$on(o,l);this.$$listener_unsubscribe_fns.set(l,r)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=Yc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function Yc(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=he}$on(e,t){if(!Ci(t))return he;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Dc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Zc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Zc);var RB=require("@vkontakte/videoplayer-core"),Yn=require("@vkontakte/videoplayer-shared"),Zp=require("@vkontakte/videoplayer-statistics");var rl=require("@vkontakte/videoplayer-shared");var l2={isMobile:void 0,defaultLanguage:rl.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:rl.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Xc=i=>(0,rl.fillWithDefault)(i,l2),Jc=i=>il("ui-config",i),Rt=()=>nl("ui-config");var Rl="vk_player_debug_panel_opened";var xc="videoplayer",$c="videoplayer";var Xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ef=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),tf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),nf=new Set(["ShiftRight","ShiftLeft"]);var of=["TIMELINE"],Bl=[...of,"GRAPH_BUTTON"],Ms=[...of,"PLAY_BUTTON"],nr=[...Bl,"PLAY_BUTTON"];var fo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(fo||{}),Lo={xs:0,s:1,m:2,l:3,xl:4};var sl=[];function An(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=he){let t,n=new Set;function o(a){if(z(i,a)&&(i=a,t)){let s=!sl.length;for(let u of n)u[1](),sl.push(u,i);if(s){for(let u=0;u<sl.length;u+=2)sl[u][0](sl[u+1]);sl.length=0}}}function l(a){o(a(i))}function r(a,s=he){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||he),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Pi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return An(t,(r,a)=>{let s=!1,u=[],f=0,p=he,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ci(g)?g:he},w=o.map((g,k)=>Ut(g,y=>{u[k]=y,f&=~(1<<k),s&&h()},()=>{f|=1<<k}));return s=!0,h(),function(){et(w),p(),s=!1}})}var Dl=require("@vkontakte/videoplayer-shared"),lf=require("@vkontakte/videoplayer-core"),rf=require("@vkontakte/videoplayer-statistics");var or="prod",Ro="1.1.38";var lr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var sf=Symbol("storeContext"),af=Symbol("microStoresContext"),uf=(i,e)=>{il(sf,i),il(af,e),or==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=nl(sf);return(0,Dl.assertNonNullable)(i,"Store context is empty!"),i},Nn=()=>{let i=nl(af);return(0,Dl.assertNonNullable)(i,"MicroStores context is empty!"),i},bt=(i,e)=>Vs(i,i.getValue(),e),Vs=(i,e,t)=>An(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),cf=(i,e,t)=>{let n=i.info,{width:o,height:l}=tt(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Ro} (core: ${lf.VERSION}, stat: ${rf.VERSION}, shared: ${Dl.VERSION})`,f=tt(t.state.errorLog$),p=f.length?`
6
+ "use strict";var q_=Object.create;var Xl=Object.defineProperty;var O_=Object.getOwnPropertyDescriptor;var F_=Object.getOwnPropertyNames;var H_=Object.getPrototypeOf,z_=Object.prototype.hasOwnProperty;var U_=(i,e)=>{for(var t in e)Xl(i,t,{get:e[t],enumerable:!0})},Rc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of F_(e))!z_.call(i,o)&&o!==t&&Xl(i,o,{get:()=>e[o],enumerable:!(n=O_(e,o))||n.enumerable});return i};var Bc=(i,e,t)=>(t=i!=null?q_(H_(i)):{},Rc(e||!i||!i.__esModule?Xl(t,"default",{value:i,enumerable:!0}):t,i)),K_=i=>Rc(Xl({},"__esModule",{value:!0}),i);var H6={};U_(H6,{GridTypes:()=>fo,InterfaceLanguage:()=>Al.InterfaceLanguage,VERSION:()=>Ro,VKNumericLanguage:()=>Al.VKNumericLanguage,VideoFormat:()=>ks.VideoFormat,VideoQuality:()=>ks.VideoQuality,loadVKLangPack:()=>Al.loadVKLangPack,registerPlayerWebComponent:()=>F6});module.exports=K_(H6);function he(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function Ss(i){return i()}function xl(){return Object.create(null)}function et(i){i.forEach(Ss)}function Ci(i){return typeof i=="function"}function z(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Jl;function Ps(i,e){return Jl||(Jl=document.createElement("a")),Jl.href=e,i===Jl.href}function Dc(i){return Object.keys(i).length===0}function Ut(i,...e){if(i==null){for(let n of e)n(void 0);return he}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Ut(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Ut(e,t))}function Pe(i,e,t,n){if(i){let o=Nc(i,e,t,n);return i[0](o)}}function Nc(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Ie(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Te(i,e,t,n,o,l){if(o){let r=Nc(e,t,n,l);i.p(r,o)}}function Ee(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function qc(i){return i??""}var Eo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var $l=class i{_listeners="WeakMap"in Eo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};$l.entries="WeakMap"in Eo?new WeakMap:void 0;var Oc=!1;function Fc(){Oc=!0}function Hc(){Oc=!1}function m(i,e){i.appendChild(e)}function Ce(i,e,t){let n=zc(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,G_(n,o)}}function zc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function G_(i,e){return m(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function Si(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Me(i){return document.createTextNode(i)}function N(){return Me(" ")}function at(){return Me("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Pt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)c(i,t,e[t])}function Uc(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function gi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var er;function Q_(){if(er===void 0){er=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{er=!0}}return er}function el(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=Q_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=de(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Kc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function kn(i,e){return new i(e)}var co;function to(i){co=i}function tl(){if(!co)throw new Error("Function called outside component initialization");return co}function It(i){tl().$$.on_mount.push(i)}function jn(i){tl().$$.on_destroy.push(i)}function il(i,e){return tl().$$.context.set(i,e),e}function nl(i){return tl().$$.context.get(i)}function Ll(){return tl().$$.context}function En(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Ao=[];var _e=[],ll=[],Ts=[],Wc=Promise.resolve(),Es=!1;function As(){Es||(Es=!0,Wc.then(tr))}function Wn(){return As(),Wc}function Gn(i){ll.push(i)}function qe(i){Ts.push(i)}var Is=new Set,ol=0;function tr(){if(ol!==0)return;let i=co;do{try{for(;ol<Ao.length;){let e=Ao[ol];ol++,to(e),$_(e.$$)}}catch(e){throw Ao.length=0,ol=0,e}for(to(null),Ao.length=0,ol=0;_e.length;)_e.pop()();for(let e=0;e<ll.length;e+=1){let t=ll[e];Is.has(t)||(Is.add(t),t())}ll.length=0}while(Ao.length);for(;Ts.length;)Ts.pop()();Es=!1,Is.clear(),to(i)}function $_(i){if(i.fragment!==null){i.update(),et(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Gn)}}function Gc(i){let e=[],t=[];ll.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ll=e}var ir=new Set,Mo;function ae(){Mo={r:0,c:[],p:Mo}}function ue(){Mo.r||et(Mo.c),Mo=Mo.p}function d(i,e){i&&i.i&&(ir.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(ir.has(i))return;ir.add(i),Mo.c.push(()=>{ir.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function kt(i){return i?.length!==void 0?i:Array.from(i)}function Le(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Qc(i){return typeof i=="object"&&i!==null?i:{}}var e2=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],t2=new Set([...e2]);function Oe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Gn(()=>{let l=i.$$.on_mount.map(Ss).filter(Ci);i.$$.on_destroy?i.$$.on_destroy.push(...l):et(l),i.$$.on_mount=[]}),o.forEach(Gn)}function L(i,e){let t=i.$$;t.fragment!==null&&(Gc(t.after_update),et(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function n2(i,e){i.$$.dirty[0]===-1&&(Ao.push(i),As(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,l,r,a=[-1]){let s=co;to(i);let u=i.$$={fragment:null,ctx:[],props:l,update:he,not_equal:o,bound:xl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:xl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&n2(i,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Fc();let p=Uc(e.target);u.fragment&&u.fragment.l(p),p.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Hc(),tr()}to(s)}var o2;typeof HTMLElement=="function"&&(o2=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let l;return{c:function(){l=document.createElement("slot"),o!=="default"&&l.setAttribute("name",o)},m:function(s,u){S(s,l,u)},d:function(s){s&&C(l)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=Kc(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=Yc(l,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let l of this.$$listeners[o]){let r=this.$$component.$on(o,l);this.$$listener_unsubscribe_fns.set(l,r)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=Yc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function Yc(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=he}$on(e,t){if(!Ci(t))return he;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Dc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Zc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Zc);var RB=require("@vkontakte/videoplayer-core"),Yn=require("@vkontakte/videoplayer-shared"),Zp=require("@vkontakte/videoplayer-statistics");var rl=require("@vkontakte/videoplayer-shared");var l2={isMobile:void 0,defaultLanguage:rl.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:rl.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Xc=i=>(0,rl.fillWithDefault)(i,l2),Jc=i=>il("ui-config",i),Rt=()=>nl("ui-config");var Rl="vk_player_debug_panel_opened";var xc="videoplayer",$c="videoplayer";var Xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ef=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),tf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),nf=new Set(["ShiftRight","ShiftLeft"]);var of=["TIMELINE"],Bl=[...of,"GRAPH_BUTTON"],Ms=[...of,"PLAY_BUTTON"],nr=[...Bl,"PLAY_BUTTON"];var fo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(fo||{}),Lo={xs:0,s:1,m:2,l:3,xl:4};var sl=[];function An(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=he){let t,n=new Set;function o(a){if(z(i,a)&&(i=a,t)){let s=!sl.length;for(let u of n)u[1](),sl.push(u,i);if(s){for(let u=0;u<sl.length;u+=2)sl[u][0](sl[u+1]);sl.length=0}}}function l(a){o(a(i))}function r(a,s=he){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||he),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Pi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return An(t,(r,a)=>{let s=!1,u=[],f=0,p=he,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ci(g)?g:he},w=o.map((g,k)=>Ut(g,y=>{u[k]=y,f&=~(1<<k),s&&h()},()=>{f|=1<<k}));return s=!0,h(),function(){et(w),p(),s=!1}})}var Dl=require("@vkontakte/videoplayer-shared"),lf=require("@vkontakte/videoplayer-core"),rf=require("@vkontakte/videoplayer-statistics");var or="prod",Ro="1.1.39-dev.001aa027.0";var lr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var sf=Symbol("storeContext"),af=Symbol("microStoresContext"),uf=(i,e)=>{il(sf,i),il(af,e),or==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=nl(sf);return(0,Dl.assertNonNullable)(i,"Store context is empty!"),i},Nn=()=>{let i=nl(af);return(0,Dl.assertNonNullable)(i,"MicroStores context is empty!"),i},bt=(i,e)=>Vs(i,i.getValue(),e),Vs=(i,e,t)=>An(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),cf=(i,e,t)=>{let n=i.info,{width:o,height:l}=tt(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Ro} (core: ${lf.VERSION}, stat: ${rf.VERSION}, shared: ${Dl.VERSION})`,f=tt(t.state.errorLog$),p=f.length?`
7
7
  `+f.map((T,b)=>{let v=`${b}) Type: ${T.id}
8
8
  `,I=`Message: ${T.message} (${T.thrown})
9
9
  `,G=`Trace: ${T.thrown?.stack}
package/esnext.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.38
3
- * Mon, 29 Jul 2024 14:44:05 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
2
+ * @vkontakte/videoplayer v1.1.39-dev.001aa027.0
3
+ * Tue, 30 Jul 2024 10:45:29 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-39/doc/
5
5
  */
6
- function he(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function as(i){return i()}function Ol(){return Object.create(null)}function et(i){i.forEach(as)}function ki(i){return typeof i=="function"}function z(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ql;function us(i,e){return ql||(ql=document.createElement("a")),ql.href=e,i===ql.href}function Cc(i){return Object.keys(i).length===0}function Ht(i,...e){if(i==null){for(let n of e)n(void 0);return he}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Ht(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Ht(e,t))}function Pe(i,e,t,n){if(i){let o=Sc(i,e,t,n);return i[0](o)}}function Sc(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Ie(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Te(i,e,t,n,o,l){if(o){let r=Sc(e,t,n,l);i.p(r,o)}}function Ee(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Pc(i){return i??""}var ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Fl=class i{_listeners="WeakMap"in ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Fl.entries="WeakMap"in ko?new WeakMap:void 0;var Ic=!1;function Tc(){Ic=!0}function Ec(){Ic=!1}function m(i,e){i.appendChild(e)}function Ce(i,e,t){let n=Ac(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,m_(n,o)}}function Ac(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function m_(i,e){return m(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function wi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Me(i){return document.createTextNode(i)}function N(){return Me(" ")}function at(){return Me("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function St(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)c(i,t,e[t])}function Mc(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function _i(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Hl;function p_(){if(Hl===void 0){Hl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Hl=!0}}return Hl}function Go(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=p_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=de(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Vc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function hn(i,e){return new i(e)}var lo;function Jn(i){lo=i}function Qo(){if(!lo)throw new Error("Function called outside component initialization");return lo}function Pt(i){Qo().$$.on_mount.push(i)}function Hn(i){Qo().$$.on_destroy.push(i)}function Yo(i,e){return Qo().$$.context.set(i,e),e}function Zo(i){return Qo().$$.context.get(i)}function gl(){return Qo().$$.context}function Sn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var wo=[];var _e=[],Jo=[],fs=[],Rc=Promise.resolve(),ds=!1;function ms(){ds||(ds=!0,Rc.then(zl))}function zn(){return ms(),Rc}function Un(i){Jo.push(i)}function qe(i){fs.push(i)}var cs=new Set,Xo=0;function zl(){if(Xo!==0)return;let i=lo;do{try{for(;Xo<wo.length;){let e=wo[Xo];Xo++,Jn(e),y_(e.$$)}}catch(e){throw wo.length=0,Xo=0,e}for(Jn(null),wo.length=0,Xo=0;_e.length;)_e.pop()();for(let e=0;e<Jo.length;e+=1){let t=Jo[e];cs.has(t)||(cs.add(t),t())}Jo.length=0}while(wo.length);for(;fs.length;)fs.pop()();ds=!1,cs.clear(),Jn(i)}function y_(i){if(i.fragment!==null){i.update(),et(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Un)}}function Bc(i){let e=[],t=[];Jo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Jo=e}var Ul=new Set,Co;function ae(){Co={r:0,c:[],p:Co}}function ue(){Co.r||et(Co.c),Co=Co.p}function d(i,e){i&&i.i&&(Ul.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Ul.has(i))return;Ul.add(i),Co.c.push(()=>{Ul.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return i?.length!==void 0?i:Array.from(i)}function Le(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Dc(i){return typeof i=="object"&&i!==null?i:{}}var k_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],w_=new Set([...k_]);function Oe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Un(()=>{let l=i.$$.on_mount.map(as).filter(ki);i.$$.on_destroy?i.$$.on_destroy.push(...l):et(l),i.$$.on_mount=[]}),o.forEach(Un)}function L(i,e){let t=i.$$;t.fragment!==null&&(Bc(t.after_update),et(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function S_(i,e){i.$$.dirty[0]===-1&&(wo.push(i),ms(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,l,r,a=[-1]){let s=lo;Jn(i);let u=i.$$={fragment:null,ctx:[],props:l,update:he,not_equal:o,bound:Ol(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ol(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&S_(i,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Tc();let p=Mc(e.target);u.fragment&&u.fragment.l(p),p.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Ec(),zl()}Jn(s)}var P_;typeof HTMLElement=="function"&&(P_=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let l;return{c:function(){l=document.createElement("slot"),o!=="default"&&l.setAttribute("name",o)},m:function(s,u){S(s,l,u)},d:function(s){s&&C(l)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=Vc(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=Nc(l,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let l of this.$$listeners[o]){let r=this.$$component.$on(o,l);this.$$listener_unsubscribe_fns.set(l,r)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=Nc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function Nc(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=he}$on(e,t){if(!ki(t))return he;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Cc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var qc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qc);import"@vkontakte/videoplayer-core";import{noop as ml,safeStorage as B6,throttleFn as D6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as I_,fillWithDefault as T_,VideoQuality as E_}from"@vkontakte/videoplayer-shared";var A_={isMobile:void 0,defaultLanguage:I_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:E_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Oc=i=>T_(i,A_),Fc=i=>Yo("ui-config",i),Vt=()=>Zo("ui-config");var bl="vk_player_debug_panel_opened";var Hc="videoplayer",zc="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Uc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Kc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),jc=new Set(["ShiftRight","ShiftLeft"]);var Wc=["TIMELINE"],vl=[...Wc,"GRAPH_BUTTON"],ps=[...Wc,"PLAY_BUTTON"],Kl=[...vl,"PLAY_BUTTON"];var Po=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Po||{}),Io={xs:0,s:1,m:2,l:3,xl:4};var xo=[];function Pn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=he){let t,n=new Set;function o(a){if(z(i,a)&&(i=a,t)){let s=!xo.length;for(let u of n)u[1](),xo.push(u,i);if(s){for(let u=0;u<xo.length;u+=2)xo[u][0](xo[u+1]);xo.length=0}}}function l(a){o(a(i))}function r(a,s=he){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||he),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Ci(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Pn(t,(r,a)=>{let s=!1,u=[],f=0,p=he,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=ki(g)?g:he},w=o.map((g,k)=>Ht(g,y=>{u[k]=y,f&=~(1<<k),s&&h()},()=>{f|=1<<k}));return s=!0,h(),function(){et(w),p(),s=!1}})}import{assertNonNullable as Gc,VERSION as M_}from"@vkontakte/videoplayer-shared";import{VERSION as V_}from"@vkontakte/videoplayer-core";import{VERSION as L_}from"@vkontakte/videoplayer-statistics";var jl="prod",$o="1.1.38";var Wl=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Qc=Symbol("storeContext"),Yc=Symbol("microStoresContext"),Zc=(i,e)=>{Yo(Qc,i),Yo(Yc,e),jl==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=Zo(Qc);return Gc(i,"Store context is empty!"),i},Ln=()=>{let i=Zo(Yc);return Gc(i,"MicroStores context is empty!"),i},gt=(i,e)=>_s(i,i.getValue(),e),_s=(i,e,t)=>Pn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),Xc=(i,e,t)=>{let n=i.info,{width:o,height:l}=tt(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${V_}, stat: ${L_}, shared: ${M_})`,f=tt(t.state.errorLog$),p=f.length?`
6
+ function he(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function as(i){return i()}function Ol(){return Object.create(null)}function et(i){i.forEach(as)}function ki(i){return typeof i=="function"}function z(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ql;function us(i,e){return ql||(ql=document.createElement("a")),ql.href=e,i===ql.href}function Cc(i){return Object.keys(i).length===0}function Ht(i,...e){if(i==null){for(let n of e)n(void 0);return he}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Ht(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Ht(e,t))}function Pe(i,e,t,n){if(i){let o=Sc(i,e,t,n);return i[0](o)}}function Sc(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Ie(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Te(i,e,t,n,o,l){if(o){let r=Sc(e,t,n,l);i.p(r,o)}}function Ee(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Pc(i){return i??""}var ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Fl=class i{_listeners="WeakMap"in ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Fl.entries="WeakMap"in ko?new WeakMap:void 0;var Ic=!1;function Tc(){Ic=!0}function Ec(){Ic=!1}function m(i,e){i.appendChild(e)}function Ce(i,e,t){let n=Ac(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,m_(n,o)}}function Ac(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function m_(i,e){return m(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function wi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Me(i){return document.createTextNode(i)}function N(){return Me(" ")}function at(){return Me("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function St(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)c(i,t,e[t])}function Mc(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function _i(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Hl;function p_(){if(Hl===void 0){Hl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Hl=!0}}return Hl}function Go(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=p_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=de(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Vc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function hn(i,e){return new i(e)}var lo;function Jn(i){lo=i}function Qo(){if(!lo)throw new Error("Function called outside component initialization");return lo}function Pt(i){Qo().$$.on_mount.push(i)}function Hn(i){Qo().$$.on_destroy.push(i)}function Yo(i,e){return Qo().$$.context.set(i,e),e}function Zo(i){return Qo().$$.context.get(i)}function gl(){return Qo().$$.context}function Sn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var wo=[];var _e=[],Jo=[],fs=[],Rc=Promise.resolve(),ds=!1;function ms(){ds||(ds=!0,Rc.then(zl))}function zn(){return ms(),Rc}function Un(i){Jo.push(i)}function qe(i){fs.push(i)}var cs=new Set,Xo=0;function zl(){if(Xo!==0)return;let i=lo;do{try{for(;Xo<wo.length;){let e=wo[Xo];Xo++,Jn(e),y_(e.$$)}}catch(e){throw wo.length=0,Xo=0,e}for(Jn(null),wo.length=0,Xo=0;_e.length;)_e.pop()();for(let e=0;e<Jo.length;e+=1){let t=Jo[e];cs.has(t)||(cs.add(t),t())}Jo.length=0}while(wo.length);for(;fs.length;)fs.pop()();ds=!1,cs.clear(),Jn(i)}function y_(i){if(i.fragment!==null){i.update(),et(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Un)}}function Bc(i){let e=[],t=[];Jo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Jo=e}var Ul=new Set,Co;function ae(){Co={r:0,c:[],p:Co}}function ue(){Co.r||et(Co.c),Co=Co.p}function d(i,e){i&&i.i&&(Ul.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Ul.has(i))return;Ul.add(i),Co.c.push(()=>{Ul.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return i?.length!==void 0?i:Array.from(i)}function Le(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Dc(i){return typeof i=="object"&&i!==null?i:{}}var k_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],w_=new Set([...k_]);function Oe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Un(()=>{let l=i.$$.on_mount.map(as).filter(ki);i.$$.on_destroy?i.$$.on_destroy.push(...l):et(l),i.$$.on_mount=[]}),o.forEach(Un)}function L(i,e){let t=i.$$;t.fragment!==null&&(Bc(t.after_update),et(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function S_(i,e){i.$$.dirty[0]===-1&&(wo.push(i),ms(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,l,r,a=[-1]){let s=lo;Jn(i);let u=i.$$={fragment:null,ctx:[],props:l,update:he,not_equal:o,bound:Ol(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ol(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&S_(i,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Tc();let p=Mc(e.target);u.fragment&&u.fragment.l(p),p.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Ec(),zl()}Jn(s)}var P_;typeof HTMLElement=="function"&&(P_=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let l;return{c:function(){l=document.createElement("slot"),o!=="default"&&l.setAttribute("name",o)},m:function(s,u){S(s,l,u)},d:function(s){s&&C(l)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=Vc(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=Nc(l,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let l of this.$$listeners[o]){let r=this.$$component.$on(o,l);this.$$listener_unsubscribe_fns.set(l,r)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=Nc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function Nc(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=he}$on(e,t){if(!ki(t))return he;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Cc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var qc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qc);import"@vkontakte/videoplayer-core";import{noop as ml,safeStorage as B6,throttleFn as D6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as I_,fillWithDefault as T_,VideoQuality as E_}from"@vkontakte/videoplayer-shared";var A_={isMobile:void 0,defaultLanguage:I_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:E_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Oc=i=>T_(i,A_),Fc=i=>Yo("ui-config",i),Vt=()=>Zo("ui-config");var bl="vk_player_debug_panel_opened";var Hc="videoplayer",zc="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Uc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Kc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),jc=new Set(["ShiftRight","ShiftLeft"]);var Wc=["TIMELINE"],vl=[...Wc,"GRAPH_BUTTON"],ps=[...Wc,"PLAY_BUTTON"],Kl=[...vl,"PLAY_BUTTON"];var Po=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Po||{}),Io={xs:0,s:1,m:2,l:3,xl:4};var xo=[];function Pn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=he){let t,n=new Set;function o(a){if(z(i,a)&&(i=a,t)){let s=!xo.length;for(let u of n)u[1](),xo.push(u,i);if(s){for(let u=0;u<xo.length;u+=2)xo[u][0](xo[u+1]);xo.length=0}}}function l(a){o(a(i))}function r(a,s=he){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||he),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Ci(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Pn(t,(r,a)=>{let s=!1,u=[],f=0,p=he,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=ki(g)?g:he},w=o.map((g,k)=>Ht(g,y=>{u[k]=y,f&=~(1<<k),s&&h()},()=>{f|=1<<k}));return s=!0,h(),function(){et(w),p(),s=!1}})}import{assertNonNullable as Gc,VERSION as M_}from"@vkontakte/videoplayer-shared";import{VERSION as V_}from"@vkontakte/videoplayer-core";import{VERSION as L_}from"@vkontakte/videoplayer-statistics";var jl="prod",$o="1.1.39-dev.001aa027.0";var Wl=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Qc=Symbol("storeContext"),Yc=Symbol("microStoresContext"),Zc=(i,e)=>{Yo(Qc,i),Yo(Yc,e),jl==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=Zo(Qc);return Gc(i,"Store context is empty!"),i},Ln=()=>{let i=Zo(Yc);return Gc(i,"MicroStores context is empty!"),i},gt=(i,e)=>_s(i,i.getValue(),e),_s=(i,e,t)=>Pn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),Xc=(i,e,t)=>{let n=i.info,{width:o,height:l}=tt(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${V_}, stat: ${L_}, shared: ${M_})`,f=tt(t.state.errorLog$),p=f.length?`
7
7
  `+f.map((T,b)=>{let v=`${b}) Type: ${T.id}
8
8
  `,I=`Message: ${T.message} (${T.thrown})
9
9
  `,G=`Trace: ${T.thrown?.stack}
package/evergreen.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.38
3
- * Mon, 29 Jul 2024 14:44:05 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
2
+ * @vkontakte/videoplayer v1.1.39-dev.001aa027.0
3
+ * Tue, 30 Jul 2024 10:45:29 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-39/doc/
5
5
  */
6
- function he(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function as(i){return i()}function Ol(){return Object.create(null)}function et(i){i.forEach(as)}function ki(i){return typeof i=="function"}function z(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ql;function us(i,e){return ql||(ql=document.createElement("a")),ql.href=e,i===ql.href}function Cc(i){return Object.keys(i).length===0}function Ht(i,...e){if(i==null){for(let n of e)n(void 0);return he}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Ht(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Ht(e,t))}function Pe(i,e,t,n){if(i){let o=Sc(i,e,t,n);return i[0](o)}}function Sc(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Ie(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Te(i,e,t,n,o,l){if(o){let r=Sc(e,t,n,l);i.p(r,o)}}function Ee(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Pc(i){return i??""}var ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Fl=class i{_listeners="WeakMap"in ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Fl.entries="WeakMap"in ko?new WeakMap:void 0;var Ic=!1;function Tc(){Ic=!0}function Ec(){Ic=!1}function m(i,e){i.appendChild(e)}function Ce(i,e,t){let n=Ac(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,m_(n,o)}}function Ac(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function m_(i,e){return m(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function wi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Me(i){return document.createTextNode(i)}function N(){return Me(" ")}function at(){return Me("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function St(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)c(i,t,e[t])}function Mc(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function _i(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Hl;function p_(){if(Hl===void 0){Hl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Hl=!0}}return Hl}function Go(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=p_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=de(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Vc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function hn(i,e){return new i(e)}var lo;function Jn(i){lo=i}function Qo(){if(!lo)throw new Error("Function called outside component initialization");return lo}function Pt(i){Qo().$$.on_mount.push(i)}function Hn(i){Qo().$$.on_destroy.push(i)}function Yo(i,e){return Qo().$$.context.set(i,e),e}function Zo(i){return Qo().$$.context.get(i)}function gl(){return Qo().$$.context}function Sn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var wo=[];var _e=[],Jo=[],fs=[],Rc=Promise.resolve(),ds=!1;function ms(){ds||(ds=!0,Rc.then(zl))}function zn(){return ms(),Rc}function Un(i){Jo.push(i)}function qe(i){fs.push(i)}var cs=new Set,Xo=0;function zl(){if(Xo!==0)return;let i=lo;do{try{for(;Xo<wo.length;){let e=wo[Xo];Xo++,Jn(e),y_(e.$$)}}catch(e){throw wo.length=0,Xo=0,e}for(Jn(null),wo.length=0,Xo=0;_e.length;)_e.pop()();for(let e=0;e<Jo.length;e+=1){let t=Jo[e];cs.has(t)||(cs.add(t),t())}Jo.length=0}while(wo.length);for(;fs.length;)fs.pop()();ds=!1,cs.clear(),Jn(i)}function y_(i){if(i.fragment!==null){i.update(),et(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Un)}}function Bc(i){let e=[],t=[];Jo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Jo=e}var Ul=new Set,Co;function ae(){Co={r:0,c:[],p:Co}}function ue(){Co.r||et(Co.c),Co=Co.p}function d(i,e){i&&i.i&&(Ul.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Ul.has(i))return;Ul.add(i),Co.c.push(()=>{Ul.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return i?.length!==void 0?i:Array.from(i)}function Le(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Dc(i){return typeof i=="object"&&i!==null?i:{}}var k_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],w_=new Set([...k_]);function Oe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Un(()=>{let l=i.$$.on_mount.map(as).filter(ki);i.$$.on_destroy?i.$$.on_destroy.push(...l):et(l),i.$$.on_mount=[]}),o.forEach(Un)}function L(i,e){let t=i.$$;t.fragment!==null&&(Bc(t.after_update),et(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function S_(i,e){i.$$.dirty[0]===-1&&(wo.push(i),ms(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,l,r,a=[-1]){let s=lo;Jn(i);let u=i.$$={fragment:null,ctx:[],props:l,update:he,not_equal:o,bound:Ol(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ol(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&S_(i,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Tc();let p=Mc(e.target);u.fragment&&u.fragment.l(p),p.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Ec(),zl()}Jn(s)}var P_;typeof HTMLElement=="function"&&(P_=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let l;return{c:function(){l=document.createElement("slot"),o!=="default"&&l.setAttribute("name",o)},m:function(s,u){S(s,l,u)},d:function(s){s&&C(l)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=Vc(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=Nc(l,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let l of this.$$listeners[o]){let r=this.$$component.$on(o,l);this.$$listener_unsubscribe_fns.set(l,r)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=Nc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function Nc(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=he}$on(e,t){if(!ki(t))return he;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Cc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var qc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qc);import"@vkontakte/videoplayer-core";import{noop as ml,safeStorage as B6,throttleFn as D6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as I_,fillWithDefault as T_,VideoQuality as E_}from"@vkontakte/videoplayer-shared";var A_={isMobile:void 0,defaultLanguage:I_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:E_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Oc=i=>T_(i,A_),Fc=i=>Yo("ui-config",i),Vt=()=>Zo("ui-config");var bl="vk_player_debug_panel_opened";var Hc="videoplayer",zc="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Uc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Kc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),jc=new Set(["ShiftRight","ShiftLeft"]);var Wc=["TIMELINE"],vl=[...Wc,"GRAPH_BUTTON"],ps=[...Wc,"PLAY_BUTTON"],Kl=[...vl,"PLAY_BUTTON"];var Po=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Po||{}),Io={xs:0,s:1,m:2,l:3,xl:4};var xo=[];function Pn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=he){let t,n=new Set;function o(a){if(z(i,a)&&(i=a,t)){let s=!xo.length;for(let u of n)u[1](),xo.push(u,i);if(s){for(let u=0;u<xo.length;u+=2)xo[u][0](xo[u+1]);xo.length=0}}}function l(a){o(a(i))}function r(a,s=he){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||he),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Ci(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Pn(t,(r,a)=>{let s=!1,u=[],f=0,p=he,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=ki(g)?g:he},w=o.map((g,k)=>Ht(g,y=>{u[k]=y,f&=~(1<<k),s&&h()},()=>{f|=1<<k}));return s=!0,h(),function(){et(w),p(),s=!1}})}import{assertNonNullable as Gc,VERSION as M_}from"@vkontakte/videoplayer-shared";import{VERSION as V_}from"@vkontakte/videoplayer-core";import{VERSION as L_}from"@vkontakte/videoplayer-statistics";var jl="prod",$o="1.1.38";var Wl=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Qc=Symbol("storeContext"),Yc=Symbol("microStoresContext"),Zc=(i,e)=>{Yo(Qc,i),Yo(Yc,e),jl==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=Zo(Qc);return Gc(i,"Store context is empty!"),i},Ln=()=>{let i=Zo(Yc);return Gc(i,"MicroStores context is empty!"),i},gt=(i,e)=>_s(i,i.getValue(),e),_s=(i,e,t)=>Pn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),Xc=(i,e,t)=>{let n=i.info,{width:o,height:l}=tt(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${V_}, stat: ${L_}, shared: ${M_})`,f=tt(t.state.errorLog$),p=f.length?`
6
+ function he(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function as(i){return i()}function Ol(){return Object.create(null)}function et(i){i.forEach(as)}function ki(i){return typeof i=="function"}function z(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ql;function us(i,e){return ql||(ql=document.createElement("a")),ql.href=e,i===ql.href}function Cc(i){return Object.keys(i).length===0}function Ht(i,...e){if(i==null){for(let n of e)n(void 0);return he}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Ht(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Ht(e,t))}function Pe(i,e,t,n){if(i){let o=Sc(i,e,t,n);return i[0](o)}}function Sc(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Ie(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Te(i,e,t,n,o,l){if(o){let r=Sc(e,t,n,l);i.p(r,o)}}function Ee(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Pc(i){return i??""}var ko=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Fl=class i{_listeners="WeakMap"in ko?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Fl.entries="WeakMap"in ko?new WeakMap:void 0;var Ic=!1;function Tc(){Ic=!0}function Ec(){Ic=!1}function m(i,e){i.appendChild(e)}function Ce(i,e,t){let n=Ac(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,m_(n,o)}}function Ac(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function m_(i,e){return m(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function C(i){i.parentNode&&i.parentNode.removeChild(i)}function wi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function B(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Me(i){return document.createTextNode(i)}function N(){return Me(" ")}function at(){return Me("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function St(i){return function(e){return e.preventDefault(),i.call(this,e)}}function st(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)c(i,t,e[t])}function Mc(i){return Array.from(i.childNodes)}function Ke(i,e){e=""+e,i.data!==e&&(i.data=e)}function _i(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Hl;function p_(){if(Hl===void 0){Hl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Hl=!0}}return Hl}function Go(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=p_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=de(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=de(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Vc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function hn(i,e){return new i(e)}var lo;function Jn(i){lo=i}function Qo(){if(!lo)throw new Error("Function called outside component initialization");return lo}function Pt(i){Qo().$$.on_mount.push(i)}function Hn(i){Qo().$$.on_destroy.push(i)}function Yo(i,e){return Qo().$$.context.set(i,e),e}function Zo(i){return Qo().$$.context.get(i)}function gl(){return Qo().$$.context}function Sn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var wo=[];var _e=[],Jo=[],fs=[],Rc=Promise.resolve(),ds=!1;function ms(){ds||(ds=!0,Rc.then(zl))}function zn(){return ms(),Rc}function Un(i){Jo.push(i)}function qe(i){fs.push(i)}var cs=new Set,Xo=0;function zl(){if(Xo!==0)return;let i=lo;do{try{for(;Xo<wo.length;){let e=wo[Xo];Xo++,Jn(e),y_(e.$$)}}catch(e){throw wo.length=0,Xo=0,e}for(Jn(null),wo.length=0,Xo=0;_e.length;)_e.pop()();for(let e=0;e<Jo.length;e+=1){let t=Jo[e];cs.has(t)||(cs.add(t),t())}Jo.length=0}while(wo.length);for(;fs.length;)fs.pop()();ds=!1,cs.clear(),Jn(i)}function y_(i){if(i.fragment!==null){i.update(),et(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Un)}}function Bc(i){let e=[],t=[];Jo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Jo=e}var Ul=new Set,Co;function ae(){Co={r:0,c:[],p:Co}}function ue(){Co.r||et(Co.c),Co=Co.p}function d(i,e){i&&i.i&&(Ul.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Ul.has(i))return;Ul.add(i),Co.c.push(()=>{Ul.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function yt(i){return i?.length!==void 0?i:Array.from(i)}function Le(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Dc(i){return typeof i=="object"&&i!==null?i:{}}var k_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],w_=new Set([...k_]);function Oe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function R(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Un(()=>{let l=i.$$.on_mount.map(as).filter(ki);i.$$.on_destroy?i.$$.on_destroy.push(...l):et(l),i.$$.on_mount=[]}),o.forEach(Un)}function L(i,e){let t=i.$$;t.fragment!==null&&(Bc(t.after_update),et(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function S_(i,e){i.$$.dirty[0]===-1&&(wo.push(i),ms(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,l,r,a=[-1]){let s=lo;Jn(i);let u=i.$$={fragment:null,ctx:[],props:l,update:he,not_equal:o,bound:Ol(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ol(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&S_(i,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Tc();let p=Mc(e.target);u.fragment&&u.fragment.l(p),p.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Ec(),zl()}Jn(s)}var P_;typeof HTMLElement=="function"&&(P_=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let l;return{c:function(){l=document.createElement("slot"),o!=="default"&&l.setAttribute("name",o)},m:function(s,u){S(s,l,u)},d:function(s){s&&C(l)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=Vc(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=Nc(l,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let l of this.$$listeners[o]){let r=this.$$component.$on(o,l);this.$$listener_unsubscribe_fns.set(l,r)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=Nc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function Nc(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=he}$on(e,t){if(!ki(t))return he;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Cc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var qc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(qc);import"@vkontakte/videoplayer-core";import{noop as ml,safeStorage as B6,throttleFn as D6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as I_,fillWithDefault as T_,VideoQuality as E_}from"@vkontakte/videoplayer-shared";var A_={isMobile:void 0,defaultLanguage:I_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:E_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Oc=i=>T_(i,A_),Fc=i=>Yo("ui-config",i),Vt=()=>Zo("ui-config");var bl="vk_player_debug_panel_opened";var Hc="videoplayer",zc="videoplayer";var Gn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Uc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Kc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),jc=new Set(["ShiftRight","ShiftLeft"]);var Wc=["TIMELINE"],vl=[...Wc,"GRAPH_BUTTON"],ps=[...Wc,"PLAY_BUTTON"],Kl=[...vl,"PLAY_BUTTON"];var Po=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Po||{}),Io={xs:0,s:1,m:2,l:3,xl:4};var xo=[];function Pn(i,e){return{subscribe:Be(i,e).subscribe}}function Be(i,e=he){let t,n=new Set;function o(a){if(z(i,a)&&(i=a,t)){let s=!xo.length;for(let u of n)u[1](),xo.push(u,i);if(s){for(let u=0;u<xo.length;u+=2)xo[u][0](xo[u+1]);xo.length=0}}}function l(a){o(a(i))}function r(a,s=he){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||he),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Ci(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Pn(t,(r,a)=>{let s=!1,u=[],f=0,p=he,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=ki(g)?g:he},w=o.map((g,k)=>Ht(g,y=>{u[k]=y,f&=~(1<<k),s&&h()},()=>{f|=1<<k}));return s=!0,h(),function(){et(w),p(),s=!1}})}import{assertNonNullable as Gc,VERSION as M_}from"@vkontakte/videoplayer-shared";import{VERSION as V_}from"@vkontakte/videoplayer-core";import{VERSION as L_}from"@vkontakte/videoplayer-statistics";var jl="prod",$o="1.1.39-dev.001aa027.0";var Wl=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Qc=Symbol("storeContext"),Yc=Symbol("microStoresContext"),Zc=(i,e)=>{Yo(Qc,i),Yo(Yc,e),jl==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=Zo(Qc);return Gc(i,"Store context is empty!"),i},Ln=()=>{let i=Zo(Yc);return Gc(i,"MicroStores context is empty!"),i},gt=(i,e)=>_s(i,i.getValue(),e),_s=(i,e,t)=>Pn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),Xc=(i,e,t)=>{let n=i.info,{width:o,height:l}=tt(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${$o} (core: ${V_}, stat: ${L_}, shared: ${M_})`,f=tt(t.state.errorLog$),p=f.length?`
7
7
  `+f.map((T,b)=>{let v=`${b}) Type: ${T.id}
8
8
  `,I=`Message: ${T.message} (${T.thrown})
9
9
  `,G=`Trace: ${T.thrown?.stack}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer",
3
- "version": "1.1.38",
3
+ "version": "1.1.39-dev.001aa027.0",
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.105",
53
- "@vkontakte/videoplayer-interactive": "^1.0.13",
52
+ "@vkontakte/videoplayer-core": "2.0.106-dev.a3723727.0",
53
+ "@vkontakte/videoplayer-interactive": "1.0.14-dev.e025b924.0",
54
54
  "@vkontakte/videoplayer-shared": "^1.0.37",
55
- "@vkontakte/videoplayer-statistics": "^1.0.51"
55
+ "@vkontakte/videoplayer-statistics": "1.0.52-dev.a5f6699f.0"
56
56
  }
57
57
  }