@vkontakte/videoplayer 1.1.41-dev.478463df.0 → 1.1.41-dev.499dcc4b.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.41-dev.478463df.0
3
- * Thu, 29 Aug 2024 16:52:51 GMT
2
+ * @vkontakte/videoplayer v1.1.41-dev.499dcc4b.0
3
+ * Tue, 03 Sep 2024 13:01:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-41/doc/
5
5
  */
6
- "use strict";var Y_=Object.create;var Fl=Object.defineProperty,Z_=Object.defineProperties,X_=Object.getOwnPropertyDescriptor,J_=Object.getOwnPropertyDescriptors,x_=Object.getOwnPropertyNames,Wf=Object.getOwnPropertySymbols,$_=Object.getPrototypeOf,Gf=Object.prototype.hasOwnProperty,eh=Object.prototype.propertyIsEnumerable;var As=(i,e,t)=>e in i?Fl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,rt=(i,e)=>{for(var t in e||(e={}))Gf.call(e,t)&&As(i,t,e[t]);if(Wf)for(var t of Wf(e))eh.call(e,t)&&As(i,t,e[t]);return i},Nt=(i,e)=>Z_(i,J_(e));var th=(i,e)=>{for(var t in e)Fl(i,t,{get:e[t],enumerable:!0})},Qf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of x_(e))!Gf.call(i,o)&&o!==t&&Fl(i,o,{get:()=>e[o],enumerable:!(n=X_(e,o))||n.enumerable});return i};var Ms=(i,e,t)=>(t=i!=null?Y_($_(i)):{},Qf(e||!i||!i.__esModule?Fl(t,"default",{value:i,enumerable:!0}):t,i)),ih=i=>Qf(Fl({},"__esModule",{value:!0}),i);var Qi=(i,e,t)=>As(i,typeof e!="symbol"?e+"":e,t);var ft=(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 t8={};th(t8,{GridTypes:()=>go,InterfaceLanguage:()=>Bl.InterfaceLanguage,VERSION:()=>Oo,VKNumericLanguage:()=>Bl.VKNumericLanguage,VideoFormat:()=>Es.VideoFormat,VideoQuality:()=>Es.VideoQuality,loadVKLangPack:()=>Bl.loadVKLangPack,registerPlayerWebComponent:()=>e8});module.exports=ih(t8);function Ce(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function Vs(i){return i()}function sr(){return Object.create(null)}function nt(i){i.forEach(Vs)}function Vi(i){return typeof i=="function"}function H(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var rr;function Rs(i,e){return i===e?!0:(rr||(rr=document.createElement("a")),rr.href=e,i===rr.href)}function Yf(i){return Object.keys(i).length===0}function Jt(i,...e){if(i==null){for(let n of e)n(void 0);return Ce}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Jt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Jt(e,t))}function Ee(i,e,t,n){if(i){let o=Zf(i,e,t,n);return i[0](o)}}function Zf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Le(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 Ae(i,e,t,n,o,r){if(o){let l=Zf(e,t,n,r);i.p(l,o)}}function Me(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 ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Xf(i){return i==null?"":i}var Ro=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var ar=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)})}};ar.entries="WeakMap"in Ro?new WeakMap:void 0;var Jf=!1;function xf(){Jf=!0}function $f(){Jf=!1}function p(i,e){i.appendChild(e)}function Te(i,e,t){let n=ec(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,lh(n,o)}}function ec(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function lh(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 Ri(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 N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function D(){return Be(" ")}function ct(){return Be("")}function _e(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function zt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(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 we(i,e){for(let t in e)f(i,t,e[t])}function tc(i){return Array.from(i.childNodes)}function Ye(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 ur;function rh(){if(ur===void 0){ur=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){ur=!0}}return ur}function il(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=rh(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=_e(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=_e(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function ic(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 so(i){ho=i}function nl(){if(!ho)throw new Error("Function called outside component initialization");return ho}function Ut(i){nl().$$.on_mount.push(i)}function Yn(i){nl().$$.on_destroy.push(i)}function ol(i,e){return nl().$$.context.set(i,e),e}function ll(i){return nl().$$.context.get(i)}function Hl(){return nl().$$.context}function qn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Bo=[];var ge=[],sl=[],Ds=[],oc=Promise.resolve(),Ns=!1;function qs(){Ns||(Ns=!0,oc.then(fr))}function Zn(){return qs(),oc}function Xn(i){sl.push(i)}function Oe(i){Ds.push(i)}var Bs=new Set,rl=0;function fr(){if(rl!==0)return;let i=ho;do{try{for(;rl<Bo.length;){let e=Bo[rl];rl++,so(e),dh(e.$$)}}catch(e){throw Bo.length=0,rl=0,e}for(so(null),Bo.length=0,rl=0;ge.length;)ge.pop()();for(let e=0;e<sl.length;e+=1){let t=sl[e];Bs.has(t)||(Bs.add(t),t())}sl.length=0}while(Bo.length);for(;Ds.length;)Ds.pop()();Ns=!1,Bs.clear(),so(i)}function dh(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xn)}}function lc(i){let e=[],t=[];sl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),sl=e}var cr=new Set,Do;function ce(){Do={r:0,c:[],p:Do}}function de(){Do.r||nt(Do.c),Do=Do.p}function d(i,e){i&&i.i&&(cr.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(cr.has(i))return;cr.add(i),Do.c.push(()=>{cr.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function It(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function De(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 rc(i){return typeof i=="object"&&i!==null?i:{}}var mh=["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"],ph=new Set([...mh]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xn(()=>{let r=i.$$.on_mount.map(Vs).filter(Vi);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Xn)}function R(i,e){let t=i.$$;t.fragment!==null&&(lc(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function hh(i,e){i.$$.dirty[0]===-1&&(Bo.push(i),qs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=ho;so(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Ce,not_equal:o,bound:sr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:sr(),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,...w)=>{let b=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&hh(i,m)),h}):[],u.update(),c=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){xf();let m=tc(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),$f(),fr()}so(s)}var gh;typeof HTMLElement=="function"&&(gh=class extends HTMLElement{constructor(e,t,n){super();Qi(this,"$$ctor");Qi(this,"$$s");Qi(this,"$$c");Qi(this,"$$cn",!1);Qi(this,"$$d",{});Qi(this,"$$r",!1);Qi(this,"$$p_d",{});Qi(this,"$$l",{});Qi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return ft(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&f(a,"name",l)},m:function(c,m){S(c,a,m)},d:function(c){c&&C(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=ic(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Os(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Nt(rt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Os(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Os(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Os(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 U=class{constructor(){Qi(this,"$$");Qi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Ce}$on(e,t){if(!Vi(t))return Ce;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&&!Yf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var sc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(sc);var mD=require("@vkontakte/videoplayer-core"),xn=require("@vkontakte/videoplayer-shared"),l_=require("@vkontakte/videoplayer-statistics");var al=require("@vkontakte/videoplayer-shared");var bh={isMobile:void 0,defaultLanguage:al.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:al.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,fullscreenInternalTargetPlayerContainer:!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}},ac=i=>(0,al.fillWithDefault)(i,bh),uc=i=>ol("ui-config",i),Yt=()=>ll("ui-config");var zl="vk_player_debug_panel_opened";var fc="videoplayer",cc="videoplayer";var eo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},dc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),mc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),pc=new Set(["ShiftRight","ShiftLeft"]);var _c=["TIMELINE"],Ul=[..._c,"GRAPH_BUTTON"],Fs=[..._c,"PLAY_BUTTON"],dr=[...Ul,"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 ul=[];function Wn(i,e){return{subscribe:qe(i,e).subscribe}}function qe(i,e=Ce){let t,n=new Set;function o(a){if(H(i,a)&&(i=a,t)){let s=!ul.length;for(let u of n)u[1](),ul.push(u,i);if(s){for(let u=0;u<ul.length;u+=2)ul[u][0](ul[u+1]);ul.length=0}}}function r(a){o(a(i))}function l(a,s=Ce){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Ce),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Bi(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 Wn(t,(l,a)=>{let s=!1,u=[],c=0,m=Ce,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Vi(b)?b:Ce},w=o.map((b,k)=>Jt(b,y=>{u[k]=y,c&=~(1<<k),s&&h()},()=>{c|=1<<k}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Kl=require("@vkontakte/videoplayer-shared"),hc=require("@vkontakte/videoplayer-core"),gc=require("@vkontakte/videoplayer-statistics");var mr="prod",Oo="1.1.41-dev.478463df.0";var pr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var bc=Symbol("storeContext"),vc=Symbol("microStoresContext"),yc=(i,e)=>{ol(bc,i),ol(vc,e),mr==="dev"&&(window.app={store:i,microStores:e})},lt=()=>{let i=ll(bc);return(0,Kl.assertNonNullable)(i,"Store context is empty!"),i},Gn=()=>{let i=ll(vc);return(0,Kl.assertNonNullable)(i,"MicroStores context is empty!"),i},St=(i,e)=>Hs(i,i.getValue(),e),Hs=(i,e,t)=>Wn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),wc=(i,e,t)=>{var I,v,g,P,M,A;let n=i.info,{width:o,height:r}=et(t.ui.playerSize),l=(v=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?v:0,a=(P=(g=n.rttEstimation$.getValue())==null?void 0:g.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Oo} (core: ${hc.VERSION}, stat: ${gc.VERSION}, shared: ${Kl.VERSION})`,c=et(t.state.errorLog$),m=c.length?`
6
+ "use strict";var Y_=Object.create;var Fl=Object.defineProperty,Z_=Object.defineProperties,X_=Object.getOwnPropertyDescriptor,J_=Object.getOwnPropertyDescriptors,x_=Object.getOwnPropertyNames,Wf=Object.getOwnPropertySymbols,$_=Object.getPrototypeOf,Gf=Object.prototype.hasOwnProperty,eh=Object.prototype.propertyIsEnumerable;var As=(i,e,t)=>e in i?Fl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,rt=(i,e)=>{for(var t in e||(e={}))Gf.call(e,t)&&As(i,t,e[t]);if(Wf)for(var t of Wf(e))eh.call(e,t)&&As(i,t,e[t]);return i},Nt=(i,e)=>Z_(i,J_(e));var th=(i,e)=>{for(var t in e)Fl(i,t,{get:e[t],enumerable:!0})},Qf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of x_(e))!Gf.call(i,o)&&o!==t&&Fl(i,o,{get:()=>e[o],enumerable:!(n=X_(e,o))||n.enumerable});return i};var Ms=(i,e,t)=>(t=i!=null?Y_($_(i)):{},Qf(e||!i||!i.__esModule?Fl(t,"default",{value:i,enumerable:!0}):t,i)),ih=i=>Qf(Fl({},"__esModule",{value:!0}),i);var Qi=(i,e,t)=>As(i,typeof e!="symbol"?e+"":e,t);var ft=(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 t8={};th(t8,{GridTypes:()=>go,InterfaceLanguage:()=>Bl.InterfaceLanguage,VERSION:()=>Oo,VKNumericLanguage:()=>Bl.VKNumericLanguage,VideoFormat:()=>Es.VideoFormat,VideoQuality:()=>Es.VideoQuality,loadVKLangPack:()=>Bl.loadVKLangPack,registerPlayerWebComponent:()=>e8});module.exports=ih(t8);function Ce(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function Vs(i){return i()}function sr(){return Object.create(null)}function nt(i){i.forEach(Vs)}function Vi(i){return typeof i=="function"}function H(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var rr;function Rs(i,e){return i===e?!0:(rr||(rr=document.createElement("a")),rr.href=e,i===rr.href)}function Yf(i){return Object.keys(i).length===0}function Jt(i,...e){if(i==null){for(let n of e)n(void 0);return Ce}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Jt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Jt(e,t))}function Ee(i,e,t,n){if(i){let o=Zf(i,e,t,n);return i[0](o)}}function Zf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Le(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 Ae(i,e,t,n,o,r){if(o){let l=Zf(e,t,n,r);i.p(l,o)}}function Me(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 ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Xf(i){return i==null?"":i}var Ro=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var ar=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)})}};ar.entries="WeakMap"in Ro?new WeakMap:void 0;var Jf=!1;function xf(){Jf=!0}function $f(){Jf=!1}function p(i,e){i.appendChild(e)}function Te(i,e,t){let n=ec(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,lh(n,o)}}function ec(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function lh(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 Ri(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 N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function D(){return Be(" ")}function ct(){return Be("")}function _e(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function zt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(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 we(i,e){for(let t in e)f(i,t,e[t])}function tc(i){return Array.from(i.childNodes)}function Ye(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 ur;function rh(){if(ur===void 0){ur=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){ur=!0}}return ur}function il(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=rh(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=_e(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=_e(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function ic(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 so(i){ho=i}function nl(){if(!ho)throw new Error("Function called outside component initialization");return ho}function Ut(i){nl().$$.on_mount.push(i)}function Yn(i){nl().$$.on_destroy.push(i)}function ol(i,e){return nl().$$.context.set(i,e),e}function ll(i){return nl().$$.context.get(i)}function Hl(){return nl().$$.context}function qn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Bo=[];var ge=[],sl=[],Ds=[],oc=Promise.resolve(),Ns=!1;function qs(){Ns||(Ns=!0,oc.then(fr))}function Zn(){return qs(),oc}function Xn(i){sl.push(i)}function Oe(i){Ds.push(i)}var Bs=new Set,rl=0;function fr(){if(rl!==0)return;let i=ho;do{try{for(;rl<Bo.length;){let e=Bo[rl];rl++,so(e),dh(e.$$)}}catch(e){throw Bo.length=0,rl=0,e}for(so(null),Bo.length=0,rl=0;ge.length;)ge.pop()();for(let e=0;e<sl.length;e+=1){let t=sl[e];Bs.has(t)||(Bs.add(t),t())}sl.length=0}while(Bo.length);for(;Ds.length;)Ds.pop()();Ns=!1,Bs.clear(),so(i)}function dh(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Xn)}}function lc(i){let e=[],t=[];sl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),sl=e}var cr=new Set,Do;function ce(){Do={r:0,c:[],p:Do}}function de(){Do.r||nt(Do.c),Do=Do.p}function d(i,e){i&&i.i&&(cr.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(cr.has(i))return;cr.add(i),Do.c.push(()=>{cr.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function It(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function De(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 rc(i){return typeof i=="object"&&i!==null?i:{}}var mh=["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"],ph=new Set([...mh]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Xn(()=>{let r=i.$$.on_mount.map(Vs).filter(Vi);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Xn)}function R(i,e){let t=i.$$;t.fragment!==null&&(lc(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function hh(i,e){i.$$.dirty[0]===-1&&(Bo.push(i),qs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=ho;so(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Ce,not_equal:o,bound:sr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:sr(),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,...w)=>{let b=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&hh(i,m)),h}):[],u.update(),c=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){xf();let m=tc(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),$f(),fr()}so(s)}var gh;typeof HTMLElement=="function"&&(gh=class extends HTMLElement{constructor(e,t,n){super();Qi(this,"$$ctor");Qi(this,"$$s");Qi(this,"$$c");Qi(this,"$$cn",!1);Qi(this,"$$d",{});Qi(this,"$$r",!1);Qi(this,"$$p_d",{});Qi(this,"$$l",{});Qi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return ft(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&f(a,"name",l)},m:function(c,m){S(c,a,m)},d:function(c){c&&C(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=ic(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Os(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Nt(rt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Os(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Os(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Os(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 U=class{constructor(){Qi(this,"$$");Qi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Ce}$on(e,t){if(!Vi(t))return Ce;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&&!Yf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var sc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(sc);var mD=require("@vkontakte/videoplayer-core"),xn=require("@vkontakte/videoplayer-shared"),l_=require("@vkontakte/videoplayer-statistics");var al=require("@vkontakte/videoplayer-shared");var bh={isMobile:void 0,defaultLanguage:al.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:al.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,fullscreenInternalTargetPlayerContainer:!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}},ac=i=>(0,al.fillWithDefault)(i,bh),uc=i=>ol("ui-config",i),Yt=()=>ll("ui-config");var zl="vk_player_debug_panel_opened";var fc="videoplayer",cc="videoplayer";var eo={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},dc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),mc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),pc=new Set(["ShiftRight","ShiftLeft"]);var _c=["TIMELINE"],Ul=[..._c,"GRAPH_BUTTON"],Fs=[..._c,"PLAY_BUTTON"],dr=[...Ul,"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 ul=[];function Wn(i,e){return{subscribe:qe(i,e).subscribe}}function qe(i,e=Ce){let t,n=new Set;function o(a){if(H(i,a)&&(i=a,t)){let s=!ul.length;for(let u of n)u[1](),ul.push(u,i);if(s){for(let u=0;u<ul.length;u+=2)ul[u][0](ul[u+1]);ul.length=0}}}function r(a){o(a(i))}function l(a,s=Ce){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Ce),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Bi(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 Wn(t,(l,a)=>{let s=!1,u=[],c=0,m=Ce,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Vi(b)?b:Ce},w=o.map((b,k)=>Jt(b,y=>{u[k]=y,c&=~(1<<k),s&&h()},()=>{c|=1<<k}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Kl=require("@vkontakte/videoplayer-shared"),hc=require("@vkontakte/videoplayer-core"),gc=require("@vkontakte/videoplayer-statistics");var mr="prod",Oo="1.1.41-dev.499dcc4b.0";var pr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var bc=Symbol("storeContext"),vc=Symbol("microStoresContext"),yc=(i,e)=>{ol(bc,i),ol(vc,e),mr==="dev"&&(window.app={store:i,microStores:e})},lt=()=>{let i=ll(bc);return(0,Kl.assertNonNullable)(i,"Store context is empty!"),i},Gn=()=>{let i=ll(vc);return(0,Kl.assertNonNullable)(i,"MicroStores context is empty!"),i},St=(i,e)=>Hs(i,i.getValue(),e),Hs=(i,e,t)=>Wn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),wc=(i,e,t)=>{var I,v,g,P,M,A;let n=i.info,{width:o,height:r}=et(t.ui.playerSize),l=(v=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?v:0,a=(P=(g=n.rttEstimation$.getValue())==null?void 0:g.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Oo} (core: ${hc.VERSION}, stat: ${gc.VERSION}, shared: ${Kl.VERSION})`,c=et(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((q,ie)=>{var L;let me=`${ie}) Type: ${q.id}
8
8
  `,Y=`Message: ${q.message} (${q.thrown})
9
9
  `,x=`Trace: ${(L=q.thrown)==null?void 0:L.stack}
package/es2015.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.41-dev.478463df.0
3
- * Thu, 29 Aug 2024 16:52:51 GMT
2
+ * @vkontakte/videoplayer v1.1.41-dev.499dcc4b.0
3
+ * Tue, 03 Sep 2024 13:01:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-41/doc/
5
5
  */
6
- var w_=Object.defineProperty,k_=Object.defineProperties;var C_=Object.getOwnPropertyDescriptors;var Bf=Object.getOwnPropertySymbols;var S_=Object.prototype.hasOwnProperty,T_=Object.prototype.propertyIsEnumerable;var hs=(i,e,t)=>e in i?w_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,rt=(i,e)=>{for(var t in e||(e={}))S_.call(e,t)&&hs(i,t,e[t]);if(Bf)for(var t of Bf(e))T_.call(e,t)&&hs(i,t,e[t]);return i},Bt=(i,e)=>k_(i,C_(e));var Wi=(i,e,t)=>hs(i,typeof e!="symbol"?e+"":e,t);var ft=(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 Ce(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function gs(i){return i()}function Yl(){return Object.create(null)}function nt(i){i.forEach(gs)}function Ai(i){return typeof i=="function"}function H(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ql;function bs(i,e){return i===e?!0:(Ql||(Ql=document.createElement("a")),Ql.href=e,i===Ql.href)}function Df(i){return Object.keys(i).length===0}function Zt(i,...e){if(i==null){for(let n of e)n(void 0);return Ce}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Zt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Zt(e,t))}function Ee(i,e,t,n){if(i){let o=Nf(i,e,t,n);return i[0](o)}}function Nf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Le(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 Ae(i,e,t,n,o,r){if(o){let l=Nf(e,t,n,r);i.p(l,o)}}function Me(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 ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function qf(i){return i==null?"":i}var Io=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Zl=class i{constructor(e){Wi(this,"_listeners","WeakMap"in Io?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)})}};Zl.entries="WeakMap"in Io?new WeakMap:void 0;var Of=!1;function Ff(){Of=!0}function Hf(){Of=!1}function p(i,e){i.appendChild(e)}function Te(i,e,t){let n=zf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,E_(n,o)}}function zf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function E_(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 N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function D(){return Be(" ")}function ct(){return Be("")}function _e(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Ft(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(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 we(i,e){for(let t in e)f(i,t,e[t])}function Uf(i){return Array.from(i.childNodes)}function Ye(i,e){e=""+e,i.data!==e&&(i.data=e)}function vi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Xl;function L_(){if(Xl===void 0){Xl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Xl=!0}}return Xl}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=L_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=_e(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=_e(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Kf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function En(i,e){return new i(e)}var uo;function no(i){uo=i}function Jo(){if(!uo)throw new Error("Function called outside component initialization");return uo}function Ht(i){Jo().$$.on_mount.push(i)}function jn(i){Jo().$$.on_destroy.push(i)}function xo(i,e){return Jo().$$.context.set(i,e),e}function $o(i){return Jo().$$.context.get(i)}function Tl(){return Jo().$$.context}function Rn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Eo=[];var ge=[],tl=[],ys=[],Wf=Promise.resolve(),ws=!1;function ks(){ws||(ws=!0,Wf.then(Jl))}function Wn(){return ks(),Wf}function Gn(i){tl.push(i)}function Oe(i){ys.push(i)}var vs=new Set,el=0;function Jl(){if(el!==0)return;let i=uo;do{try{for(;el<Eo.length;){let e=Eo[el];el++,no(e),D_(e.$$)}}catch(e){throw Eo.length=0,el=0,e}for(no(null),Eo.length=0,el=0;ge.length;)ge.pop()();for(let e=0;e<tl.length;e+=1){let t=tl[e];vs.has(t)||(vs.add(t),t())}tl.length=0}while(Eo.length);for(;ys.length;)ys.pop()();ws=!1,vs.clear(),no(i)}function D_(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Gn)}}function Gf(i){let e=[],t=[];tl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),tl=e}var xl=new Set,Lo;function ce(){Lo={r:0,c:[],p:Lo}}function de(){Lo.r||nt(Lo.c),Lo=Lo.p}function d(i,e){i&&i.i&&(xl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(xl.has(i))return;xl.add(i),Lo.c.push(()=>{xl.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 De(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 Qf(i){return typeof i=="object"&&i!==null?i:{}}var N_=["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"],q_=new Set([...N_]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Gn(()=>{let r=i.$$.on_mount.map(gs).filter(Ai);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Gn)}function R(i,e){let t=i.$$;t.fragment!==null&&(Gf(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function F_(i,e){i.$$.dirty[0]===-1&&(Eo.push(i),ks(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=uo;no(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Ce,not_equal:o,bound:Yl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Yl(),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,...w)=>{let b=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&F_(i,m)),h}):[],u.update(),c=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ff();let m=Uf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Hf(),Jl()}no(s)}var H_;typeof HTMLElement=="function"&&(H_=class extends HTMLElement{constructor(e,t,n){super();Wi(this,"$$ctor");Wi(this,"$$s");Wi(this,"$$c");Wi(this,"$$cn",!1);Wi(this,"$$d",{});Wi(this,"$$r",!1);Wi(this,"$$p_d",{});Wi(this,"$$l",{});Wi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return ft(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&f(a,"name",l)},m:function(c,m){S(c,a,m)},d:function(c){c&&C(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Kf(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Cs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Bt(rt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Cs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Cs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Cs(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 U=class{constructor(){Wi(this,"$$");Wi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Ce}$on(e,t){if(!Ai(t))return Ce;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&&!Df(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Yf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yf);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 z_,fillWithDefault as U_,VideoQuality as K_}from"@vkontakte/videoplayer-shared";var j_={isMobile:void 0,defaultLanguage:z_.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:K_.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,fullscreenInternalTargetPlayerContainer:!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}},Zf=i=>U_(i,j_),Xf=i=>xo("ui-config",i),Gt=()=>$o("ui-config");var Pl="vk_player_debug_panel_opened";var Jf="videoplayer",xf="videoplayer";var Jn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},$f=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ec=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),tc=new Set(["ShiftRight","ShiftLeft"]);var ic=["TIMELINE"],Il=[...ic,"GRAPH_BUTTON"],Ss=[...ic,"PLAY_BUTTON"],$l=[...Il,"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 il=[];function zn(i,e){return{subscribe:qe(i,e).subscribe}}function qe(i,e=Ce){let t,n=new Set;function o(a){if(H(i,a)&&(i=a,t)){let s=!il.length;for(let u of n)u[1](),il.push(u,i);if(s){for(let u=0;u<il.length;u+=2)il[u][0](il[u+1]);il.length=0}}}function r(a){o(a(i))}function l(a,s=Ce){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Ce),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 zn(t,(l,a)=>{let s=!1,u=[],c=0,m=Ce,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Ai(b)?b:Ce},w=o.map((b,k)=>Zt(b,y=>{u[k]=y,c&=~(1<<k),s&&h()},()=>{c|=1<<k}));return s=!0,h(),function(){nt(w),m(),s=!1}})}import{assertNonNullable as nc,VERSION as W_}from"@vkontakte/videoplayer-shared";import{VERSION as G_}from"@vkontakte/videoplayer-core";import{VERSION as Q_}from"@vkontakte/videoplayer-statistics";var er="prod",nl="1.1.41-dev.478463df.0";var tr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var oc=Symbol("storeContext"),lc=Symbol("microStoresContext"),rc=(i,e)=>{xo(oc,i),xo(lc,e),er==="dev"&&(window.app={store:i,microStores:e})},lt=()=>{let i=$o(oc);return nc(i,"Store context is empty!"),i},Un=()=>{let i=$o(lc);return nc(i,"MicroStores context is empty!"),i},Ct=(i,e)=>Ts(i,i.getValue(),e),Ts=(i,e,t)=>zn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),sc=(i,e,t)=>{var I,v,g,P,M,A;let n=i.info,{width:o,height:r}=et(t.ui.playerSize),l=(v=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?v:0,a=(P=(g=n.rttEstimation$.getValue())==null?void 0:g.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${nl} (core: ${G_}, stat: ${Q_}, shared: ${W_})`,c=et(t.state.errorLog$),m=c.length?`
6
+ var w_=Object.defineProperty,k_=Object.defineProperties;var C_=Object.getOwnPropertyDescriptors;var Bf=Object.getOwnPropertySymbols;var S_=Object.prototype.hasOwnProperty,T_=Object.prototype.propertyIsEnumerable;var hs=(i,e,t)=>e in i?w_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,rt=(i,e)=>{for(var t in e||(e={}))S_.call(e,t)&&hs(i,t,e[t]);if(Bf)for(var t of Bf(e))T_.call(e,t)&&hs(i,t,e[t]);return i},Bt=(i,e)=>k_(i,C_(e));var Wi=(i,e,t)=>hs(i,typeof e!="symbol"?e+"":e,t);var ft=(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 Ce(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function gs(i){return i()}function Yl(){return Object.create(null)}function nt(i){i.forEach(gs)}function Ai(i){return typeof i=="function"}function H(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Ql;function bs(i,e){return i===e?!0:(Ql||(Ql=document.createElement("a")),Ql.href=e,i===Ql.href)}function Df(i){return Object.keys(i).length===0}function Zt(i,...e){if(i==null){for(let n of e)n(void 0);return Ce}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Zt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Zt(e,t))}function Ee(i,e,t,n){if(i){let o=Nf(i,e,t,n);return i[0](o)}}function Nf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Le(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 Ae(i,e,t,n,o,r){if(o){let l=Nf(e,t,n,r);i.p(l,o)}}function Me(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 ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function qf(i){return i==null?"":i}var Io=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Zl=class i{constructor(e){Wi(this,"_listeners","WeakMap"in Io?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)})}};Zl.entries="WeakMap"in Io?new WeakMap:void 0;var Of=!1;function Ff(){Of=!0}function Hf(){Of=!1}function p(i,e){i.appendChild(e)}function Te(i,e,t){let n=zf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,E_(n,o)}}function zf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function E_(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 N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function D(){return Be(" ")}function ct(){return Be("")}function _e(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Ft(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(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 we(i,e){for(let t in e)f(i,t,e[t])}function Uf(i){return Array.from(i.childNodes)}function Ye(i,e){e=""+e,i.data!==e&&(i.data=e)}function vi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Xl;function L_(){if(Xl===void 0){Xl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Xl=!0}}return Xl}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=L_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=_e(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=_e(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Kf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function En(i,e){return new i(e)}var uo;function no(i){uo=i}function Jo(){if(!uo)throw new Error("Function called outside component initialization");return uo}function Ht(i){Jo().$$.on_mount.push(i)}function jn(i){Jo().$$.on_destroy.push(i)}function xo(i,e){return Jo().$$.context.set(i,e),e}function $o(i){return Jo().$$.context.get(i)}function Tl(){return Jo().$$.context}function Rn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Eo=[];var ge=[],tl=[],ys=[],Wf=Promise.resolve(),ws=!1;function ks(){ws||(ws=!0,Wf.then(Jl))}function Wn(){return ks(),Wf}function Gn(i){tl.push(i)}function Oe(i){ys.push(i)}var vs=new Set,el=0;function Jl(){if(el!==0)return;let i=uo;do{try{for(;el<Eo.length;){let e=Eo[el];el++,no(e),D_(e.$$)}}catch(e){throw Eo.length=0,el=0,e}for(no(null),Eo.length=0,el=0;ge.length;)ge.pop()();for(let e=0;e<tl.length;e+=1){let t=tl[e];vs.has(t)||(vs.add(t),t())}tl.length=0}while(Eo.length);for(;ys.length;)ys.pop()();ws=!1,vs.clear(),no(i)}function D_(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Gn)}}function Gf(i){let e=[],t=[];tl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),tl=e}var xl=new Set,Lo;function ce(){Lo={r:0,c:[],p:Lo}}function de(){Lo.r||nt(Lo.c),Lo=Lo.p}function d(i,e){i&&i.i&&(xl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(xl.has(i))return;xl.add(i),Lo.c.push(()=>{xl.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 De(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 Qf(i){return typeof i=="object"&&i!==null?i:{}}var N_=["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"],q_=new Set([...N_]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Gn(()=>{let r=i.$$.on_mount.map(gs).filter(Ai);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Gn)}function R(i,e){let t=i.$$;t.fragment!==null&&(Gf(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function F_(i,e){i.$$.dirty[0]===-1&&(Eo.push(i),ks(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=uo;no(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Ce,not_equal:o,bound:Yl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Yl(),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,...w)=>{let b=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&F_(i,m)),h}):[],u.update(),c=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ff();let m=Uf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Hf(),Jl()}no(s)}var H_;typeof HTMLElement=="function"&&(H_=class extends HTMLElement{constructor(e,t,n){super();Wi(this,"$$ctor");Wi(this,"$$s");Wi(this,"$$c");Wi(this,"$$cn",!1);Wi(this,"$$d",{});Wi(this,"$$r",!1);Wi(this,"$$p_d",{});Wi(this,"$$l",{});Wi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return ft(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&f(a,"name",l)},m:function(c,m){S(c,a,m)},d:function(c){c&&C(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Kf(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Cs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Bt(rt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Cs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Cs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Cs(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 U=class{constructor(){Wi(this,"$$");Wi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Ce}$on(e,t){if(!Ai(t))return Ce;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&&!Df(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Yf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yf);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 z_,fillWithDefault as U_,VideoQuality as K_}from"@vkontakte/videoplayer-shared";var j_={isMobile:void 0,defaultLanguage:z_.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:K_.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,fullscreenInternalTargetPlayerContainer:!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}},Zf=i=>U_(i,j_),Xf=i=>xo("ui-config",i),Gt=()=>$o("ui-config");var Pl="vk_player_debug_panel_opened";var Jf="videoplayer",xf="videoplayer";var Jn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},$f=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ec=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),tc=new Set(["ShiftRight","ShiftLeft"]);var ic=["TIMELINE"],Il=[...ic,"GRAPH_BUTTON"],Ss=[...ic,"PLAY_BUTTON"],$l=[...Il,"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 il=[];function zn(i,e){return{subscribe:qe(i,e).subscribe}}function qe(i,e=Ce){let t,n=new Set;function o(a){if(H(i,a)&&(i=a,t)){let s=!il.length;for(let u of n)u[1](),il.push(u,i);if(s){for(let u=0;u<il.length;u+=2)il[u][0](il[u+1]);il.length=0}}}function r(a){o(a(i))}function l(a,s=Ce){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Ce),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 zn(t,(l,a)=>{let s=!1,u=[],c=0,m=Ce,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Ai(b)?b:Ce},w=o.map((b,k)=>Zt(b,y=>{u[k]=y,c&=~(1<<k),s&&h()},()=>{c|=1<<k}));return s=!0,h(),function(){nt(w),m(),s=!1}})}import{assertNonNullable as nc,VERSION as W_}from"@vkontakte/videoplayer-shared";import{VERSION as G_}from"@vkontakte/videoplayer-core";import{VERSION as Q_}from"@vkontakte/videoplayer-statistics";var er="prod",nl="1.1.41-dev.499dcc4b.0";var tr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var oc=Symbol("storeContext"),lc=Symbol("microStoresContext"),rc=(i,e)=>{xo(oc,i),xo(lc,e),er==="dev"&&(window.app={store:i,microStores:e})},lt=()=>{let i=$o(oc);return nc(i,"Store context is empty!"),i},Un=()=>{let i=$o(lc);return nc(i,"MicroStores context is empty!"),i},Ct=(i,e)=>Ts(i,i.getValue(),e),Ts=(i,e,t)=>zn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),sc=(i,e,t)=>{var I,v,g,P,M,A;let n=i.info,{width:o,height:r}=et(t.ui.playerSize),l=(v=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?v:0,a=(P=(g=n.rttEstimation$.getValue())==null?void 0:g.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${nl} (core: ${G_}, stat: ${Q_}, shared: ${W_})`,c=et(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((q,ie)=>{var L;let me=`${ie}) Type: ${q.id}
8
8
  `,Y=`Message: ${q.message} (${q.thrown})
9
9
  `,x=`Trace: ${(L=q.thrown)==null?void 0:L.stack}
package/es2018.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.41-dev.478463df.0
3
- * Thu, 29 Aug 2024 16:52:51 GMT
2
+ * @vkontakte/videoplayer v1.1.41-dev.499dcc4b.0
3
+ * Tue, 03 Sep 2024 13:01:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-41/doc/
5
5
  */
6
- "use strict";var U_=Object.create;var Nl=Object.defineProperty;var K_=Object.getOwnPropertyDescriptor;var j_=Object.getOwnPropertyNames;var W_=Object.getPrototypeOf,G_=Object.prototype.hasOwnProperty;var Q_=(i,e,t)=>e in i?Nl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Y_=(i,e)=>{for(var t in e)Nl(i,t,{get:e[t],enumerable:!0})},zf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j_(e))!G_.call(i,o)&&o!==t&&Nl(i,o,{get:()=>e[o],enumerable:!(n=K_(e,o))||n.enumerable});return i};var Is=(i,e,t)=>(t=i!=null?U_(W_(i)):{},zf(e||!i||!i.__esModule?Nl(t,"default",{value:i,enumerable:!0}):t,i)),Z_=i=>zf(Nl({},"__esModule",{value:!0}),i);var ji=(i,e,t)=>Q_(i,typeof e!="symbol"?e+"":e,t);var Y6={};Y_(Y6,{GridTypes:()=>po,InterfaceLanguage:()=>Ml.InterfaceLanguage,VERSION:()=>Do,VKNumericLanguage:()=>Ml.VKNumericLanguage,VideoFormat:()=>Ts.VideoFormat,VideoQuality:()=>Ts.VideoQuality,loadVKLangPack:()=>Ml.loadVKLangPack,registerPlayerWebComponent:()=>Q6});module.exports=Z_(Y6);function Ce(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function Es(i){return i()}function or(){return Object.create(null)}function nt(i){i.forEach(Es)}function Li(i){return typeof i=="function"}function H(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var nr;function Ls(i,e){return i===e?!0:(nr||(nr=document.createElement("a")),nr.href=e,i===nr.href)}function Uf(i){return Object.keys(i).length===0}function Yt(i,...e){if(i==null){for(let n of e)n(void 0);return Ce}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Yt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Yt(e,t))}function Ee(i,e,t,n){if(i){let o=Kf(i,e,t,n);return i[0](o)}}function Kf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Le(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 Ae(i,e,t,n,o,r){if(o){let l=Kf(e,t,n,r);i.p(l,o)}}function Me(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 ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function jf(i){return i==null?"":i}var Ao=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var lr=class i{constructor(e){ji(this,"_listeners","WeakMap"in Ao?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)})}};lr.entries="WeakMap"in Ao?new WeakMap:void 0;var Wf=!1;function Gf(){Wf=!0}function Qf(){Wf=!1}function p(i,e){i.appendChild(e)}function Te(i,e,t){let n=Yf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,x_(n,o)}}function Yf(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 Ai(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 N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function D(){return Be(" ")}function ut(){return Be("")}function _e(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Ot(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 f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Zf(i){return Array.from(i.childNodes)}function Ye(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 rr;function $_(){if(rr===void 0){rr=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){rr=!0}}return rr}function $o(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=$_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=_e(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=_e(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Xf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function An(i,e){return new i(e)}var mo;function oo(i){mo=i}function el(){if(!mo)throw new Error("Function called outside component initialization");return mo}function Ft(i){el().$$.on_mount.push(i)}function Wn(i){el().$$.on_destroy.push(i)}function tl(i,e){return el().$$.context.set(i,e),e}function il(i){return el().$$.context.get(i)}function ql(){return el().$$.context}function Bn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Mo=[];var ge=[],ol=[],Ms=[],xf=Promise.resolve(),Vs=!1;function Rs(){Vs||(Vs=!0,xf.then(sr))}function Gn(){return Rs(),xf}function Qn(i){ol.push(i)}function Oe(i){Ms.push(i)}var As=new Set,nl=0;function sr(){if(nl!==0)return;let i=mo;do{try{for(;nl<Mo.length;){let e=Mo[nl];nl++,oo(e),lh(e.$$)}}catch(e){throw Mo.length=0,nl=0,e}for(oo(null),Mo.length=0,nl=0;ge.length;)ge.pop()();for(let e=0;e<ol.length;e+=1){let t=ol[e];As.has(t)||(As.add(t),t())}ol.length=0}while(Mo.length);for(;Ms.length;)Ms.pop()();Vs=!1,As.clear(),oo(i)}function lh(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qn)}}function $f(i){let e=[],t=[];ol.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ol=e}var ar=new Set,Vo;function ce(){Vo={r:0,c:[],p:Vo}}function de(){Vo.r||nt(Vo.c),Vo=Vo.p}function d(i,e){i&&i.i&&(ar.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(ar.has(i))return;ar.add(i),Vo.c.push(()=>{ar.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Tt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function De(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 ec(i){return typeof i=="object"&&i!==null?i:{}}var rh=["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"],sh=new Set([...rh]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qn(()=>{let r=i.$$.on_mount.map(Es).filter(Li);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Qn)}function R(i,e){let t=i.$$;t.fragment!==null&&($f(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function uh(i,e){i.$$.dirty[0]===-1&&(Mo.push(i),Rs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=mo;oo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Ce,not_equal:o,bound:or(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:or(),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,...w)=>{let b=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&uh(i,m)),h}):[],u.update(),c=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Gf();let m=Zf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Qf(),sr()}oo(s)}var fh;typeof HTMLElement=="function"&&(fh=class extends HTMLElement{constructor(e,t,n){super();ji(this,"$$ctor");ji(this,"$$s");ji(this,"$$c");ji(this,"$$cn",!1);ji(this,"$$d",{});ji(this,"$$r",!1);ji(this,"$$p_d",{});ji(this,"$$l",{});ji(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&f(a,"name",l)},m:function(c,m){S(c,a,m)},d:function(c){c&&C(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Xf(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Bs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Bs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Bs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Bs(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 U=class{constructor(){ji(this,"$$");ji(this,"$$set")}$destroy(){R(this,1),this.$destroy=Ce}$on(e,t){if(!Li(t))return Ce;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&&!Uf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var tc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(tc);var KB=require("@vkontakte/videoplayer-core"),Zn=require("@vkontakte/videoplayer-shared"),$p=require("@vkontakte/videoplayer-statistics");var ll=require("@vkontakte/videoplayer-shared");var ch={isMobile:void 0,defaultLanguage:ll.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:ll.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,fullscreenInternalTargetPlayerContainer:!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}},ic=i=>(0,ll.fillWithDefault)(i,ch),nc=i=>tl("ui-config",i),Wt=()=>il("ui-config");var Ol="vk_player_debug_panel_opened";var oc="videoplayer",lc="videoplayer";var Jn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},rc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),sc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ac=new Set(["ShiftRight","ShiftLeft"]);var uc=["TIMELINE"],Fl=[...uc,"GRAPH_BUTTON"],Ds=[...uc,"PLAY_BUTTON"],ur=[...Fl,"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 rl=[];function Un(i,e){return{subscribe:qe(i,e).subscribe}}function qe(i,e=Ce){let t,n=new Set;function o(a){if(H(i,a)&&(i=a,t)){let s=!rl.length;for(let u of n)u[1](),rl.push(u,i);if(s){for(let u=0;u<rl.length;u+=2)rl[u][0](rl[u+1]);rl.length=0}}}function r(a){o(a(i))}function l(a,s=Ce){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Ce),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Mi(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 Un(t,(l,a)=>{let s=!1,u=[],c=0,m=Ce,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Li(b)?b:Ce},w=o.map((b,k)=>Yt(b,y=>{u[k]=y,c&=~(1<<k),s&&h()},()=>{c|=1<<k}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Hl=require("@vkontakte/videoplayer-shared"),fc=require("@vkontakte/videoplayer-core"),cc=require("@vkontakte/videoplayer-statistics");var fr="prod",Do="1.1.41-dev.478463df.0";var cr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var dc=Symbol("storeContext"),mc=Symbol("microStoresContext"),pc=(i,e)=>{tl(dc,i),tl(mc,e),fr==="dev"&&(window.app={store:i,microStores:e})},lt=()=>{let i=il(dc);return(0,Hl.assertNonNullable)(i,"Store context is empty!"),i},Kn=()=>{let i=il(mc);return(0,Hl.assertNonNullable)(i,"MicroStores context is empty!"),i},kt=(i,e)=>Ns(i,i.getValue(),e),Ns=(i,e,t)=>Un(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),_c=(i,e,t)=>{var I,v,g,P,M,A;let n=i.info,{width:o,height:r}=et(t.ui.playerSize),l=(v=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?v:0,a=(P=(g=n.rttEstimation$.getValue())==null?void 0:g.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Do} (core: ${fc.VERSION}, stat: ${cc.VERSION}, shared: ${Hl.VERSION})`,c=et(t.state.errorLog$),m=c.length?`
6
+ "use strict";var U_=Object.create;var Nl=Object.defineProperty;var K_=Object.getOwnPropertyDescriptor;var j_=Object.getOwnPropertyNames;var W_=Object.getPrototypeOf,G_=Object.prototype.hasOwnProperty;var Q_=(i,e,t)=>e in i?Nl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Y_=(i,e)=>{for(var t in e)Nl(i,t,{get:e[t],enumerable:!0})},zf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j_(e))!G_.call(i,o)&&o!==t&&Nl(i,o,{get:()=>e[o],enumerable:!(n=K_(e,o))||n.enumerable});return i};var Is=(i,e,t)=>(t=i!=null?U_(W_(i)):{},zf(e||!i||!i.__esModule?Nl(t,"default",{value:i,enumerable:!0}):t,i)),Z_=i=>zf(Nl({},"__esModule",{value:!0}),i);var ji=(i,e,t)=>Q_(i,typeof e!="symbol"?e+"":e,t);var Y6={};Y_(Y6,{GridTypes:()=>po,InterfaceLanguage:()=>Ml.InterfaceLanguage,VERSION:()=>Do,VKNumericLanguage:()=>Ml.VKNumericLanguage,VideoFormat:()=>Ts.VideoFormat,VideoQuality:()=>Ts.VideoQuality,loadVKLangPack:()=>Ml.loadVKLangPack,registerPlayerWebComponent:()=>Q6});module.exports=Z_(Y6);function Ce(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function Es(i){return i()}function or(){return Object.create(null)}function nt(i){i.forEach(Es)}function Li(i){return typeof i=="function"}function H(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var nr;function Ls(i,e){return i===e?!0:(nr||(nr=document.createElement("a")),nr.href=e,i===nr.href)}function Uf(i){return Object.keys(i).length===0}function Yt(i,...e){if(i==null){for(let n of e)n(void 0);return Ce}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Yt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Yt(e,t))}function Ee(i,e,t,n){if(i){let o=Kf(i,e,t,n);return i[0](o)}}function Kf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Le(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 Ae(i,e,t,n,o,r){if(o){let l=Kf(e,t,n,r);i.p(l,o)}}function Me(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 ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function jf(i){return i==null?"":i}var Ao=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var lr=class i{constructor(e){ji(this,"_listeners","WeakMap"in Ao?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)})}};lr.entries="WeakMap"in Ao?new WeakMap:void 0;var Wf=!1;function Gf(){Wf=!0}function Qf(){Wf=!1}function p(i,e){i.appendChild(e)}function Te(i,e,t){let n=Yf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,x_(n,o)}}function Yf(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 Ai(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 N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function D(){return Be(" ")}function ut(){return Be("")}function _e(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Ot(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 f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Zf(i){return Array.from(i.childNodes)}function Ye(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 rr;function $_(){if(rr===void 0){rr=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){rr=!0}}return rr}function $o(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=$_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=_e(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=_e(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Xf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function An(i,e){return new i(e)}var mo;function oo(i){mo=i}function el(){if(!mo)throw new Error("Function called outside component initialization");return mo}function Ft(i){el().$$.on_mount.push(i)}function Wn(i){el().$$.on_destroy.push(i)}function tl(i,e){return el().$$.context.set(i,e),e}function il(i){return el().$$.context.get(i)}function ql(){return el().$$.context}function Bn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Mo=[];var ge=[],ol=[],Ms=[],xf=Promise.resolve(),Vs=!1;function Rs(){Vs||(Vs=!0,xf.then(sr))}function Gn(){return Rs(),xf}function Qn(i){ol.push(i)}function Oe(i){Ms.push(i)}var As=new Set,nl=0;function sr(){if(nl!==0)return;let i=mo;do{try{for(;nl<Mo.length;){let e=Mo[nl];nl++,oo(e),lh(e.$$)}}catch(e){throw Mo.length=0,nl=0,e}for(oo(null),Mo.length=0,nl=0;ge.length;)ge.pop()();for(let e=0;e<ol.length;e+=1){let t=ol[e];As.has(t)||(As.add(t),t())}ol.length=0}while(Mo.length);for(;Ms.length;)Ms.pop()();Vs=!1,As.clear(),oo(i)}function lh(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qn)}}function $f(i){let e=[],t=[];ol.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ol=e}var ar=new Set,Vo;function ce(){Vo={r:0,c:[],p:Vo}}function de(){Vo.r||nt(Vo.c),Vo=Vo.p}function d(i,e){i&&i.i&&(ar.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(ar.has(i))return;ar.add(i),Vo.c.push(()=>{ar.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Tt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function De(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 ec(i){return typeof i=="object"&&i!==null?i:{}}var rh=["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"],sh=new Set([...rh]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qn(()=>{let r=i.$$.on_mount.map(Es).filter(Li);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Qn)}function R(i,e){let t=i.$$;t.fragment!==null&&($f(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function uh(i,e){i.$$.dirty[0]===-1&&(Mo.push(i),Rs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=mo;oo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Ce,not_equal:o,bound:or(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:or(),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,...w)=>{let b=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&uh(i,m)),h}):[],u.update(),c=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Gf();let m=Zf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Qf(),sr()}oo(s)}var fh;typeof HTMLElement=="function"&&(fh=class extends HTMLElement{constructor(e,t,n){super();ji(this,"$$ctor");ji(this,"$$s");ji(this,"$$c");ji(this,"$$cn",!1);ji(this,"$$d",{});ji(this,"$$r",!1);ji(this,"$$p_d",{});ji(this,"$$l",{});ji(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&f(a,"name",l)},m:function(c,m){S(c,a,m)},d:function(c){c&&C(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Xf(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Bs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Bs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Bs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Bs(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 U=class{constructor(){ji(this,"$$");ji(this,"$$set")}$destroy(){R(this,1),this.$destroy=Ce}$on(e,t){if(!Li(t))return Ce;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&&!Uf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var tc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(tc);var KB=require("@vkontakte/videoplayer-core"),Zn=require("@vkontakte/videoplayer-shared"),$p=require("@vkontakte/videoplayer-statistics");var ll=require("@vkontakte/videoplayer-shared");var ch={isMobile:void 0,defaultLanguage:ll.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:ll.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,fullscreenInternalTargetPlayerContainer:!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}},ic=i=>(0,ll.fillWithDefault)(i,ch),nc=i=>tl("ui-config",i),Wt=()=>il("ui-config");var Ol="vk_player_debug_panel_opened";var oc="videoplayer",lc="videoplayer";var Jn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},rc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),sc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ac=new Set(["ShiftRight","ShiftLeft"]);var uc=["TIMELINE"],Fl=[...uc,"GRAPH_BUTTON"],Ds=[...uc,"PLAY_BUTTON"],ur=[...Fl,"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 rl=[];function Un(i,e){return{subscribe:qe(i,e).subscribe}}function qe(i,e=Ce){let t,n=new Set;function o(a){if(H(i,a)&&(i=a,t)){let s=!rl.length;for(let u of n)u[1](),rl.push(u,i);if(s){for(let u=0;u<rl.length;u+=2)rl[u][0](rl[u+1]);rl.length=0}}}function r(a){o(a(i))}function l(a,s=Ce){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Ce),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Mi(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 Un(t,(l,a)=>{let s=!1,u=[],c=0,m=Ce,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Li(b)?b:Ce},w=o.map((b,k)=>Yt(b,y=>{u[k]=y,c&=~(1<<k),s&&h()},()=>{c|=1<<k}));return s=!0,h(),function(){nt(w),m(),s=!1}})}var Hl=require("@vkontakte/videoplayer-shared"),fc=require("@vkontakte/videoplayer-core"),cc=require("@vkontakte/videoplayer-statistics");var fr="prod",Do="1.1.41-dev.499dcc4b.0";var cr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var dc=Symbol("storeContext"),mc=Symbol("microStoresContext"),pc=(i,e)=>{tl(dc,i),tl(mc,e),fr==="dev"&&(window.app={store:i,microStores:e})},lt=()=>{let i=il(dc);return(0,Hl.assertNonNullable)(i,"Store context is empty!"),i},Kn=()=>{let i=il(mc);return(0,Hl.assertNonNullable)(i,"MicroStores context is empty!"),i},kt=(i,e)=>Ns(i,i.getValue(),e),Ns=(i,e,t)=>Un(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),_c=(i,e,t)=>{var I,v,g,P,M,A;let n=i.info,{width:o,height:r}=et(t.ui.playerSize),l=(v=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?v:0,a=(P=(g=n.rttEstimation$.getValue())==null?void 0:g.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Do} (core: ${fc.VERSION}, stat: ${cc.VERSION}, shared: ${Hl.VERSION})`,c=et(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((q,ie)=>{var L;let me=`${ie}) Type: ${q.id}
8
8
  `,Y=`Message: ${q.message} (${q.thrown})
9
9
  `,x=`Trace: ${(L=q.thrown)==null?void 0:L.stack}
package/es2018.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.41-dev.478463df.0
3
- * Thu, 29 Aug 2024 16:52:51 GMT
2
+ * @vkontakte/videoplayer v1.1.41-dev.499dcc4b.0
3
+ * Tue, 03 Sep 2024 13:01:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-41/doc/
5
5
  */
6
- var h_=Object.defineProperty;var g_=(i,e,t)=>e in i?h_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ui=(i,e,t)=>g_(i,typeof e!="symbol"?e+"":e,t);function Ce(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function ms(i){return i()}function Wl(){return Object.create(null)}function nt(i){i.forEach(ms)}function Ii(i){return typeof i=="function"}function H(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var jl;function ps(i,e){return i===e?!0:(jl||(jl=document.createElement("a")),jl.href=e,i===jl.href)}function Af(i){return Object.keys(i).length===0}function Gt(i,...e){if(i==null){for(let n of e)n(void 0);return Ce}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Gt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Gt(e,t))}function Ee(i,e,t,n){if(i){let o=Mf(i,e,t,n);return i[0](o)}}function Mf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Le(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 Ae(i,e,t,n,o,r){if(o){let l=Mf(e,t,n,r);i.p(l,o)}}function Me(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 ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Vf(i){return i==null?"":i}var So=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Gl=class i{constructor(e){Ui(this,"_listeners","WeakMap"in So?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)})}};Gl.entries="WeakMap"in So?new WeakMap:void 0;var Rf=!1;function Bf(){Rf=!0}function Df(){Rf=!1}function p(i,e){i.appendChild(e)}function Te(i,e,t){let n=Nf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,y_(n,o)}}function Nf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function y_(i,e){return 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 N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function D(){return Be(" ")}function ut(){return Be("")}function _e(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 st(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 we(i,e){for(let t in e)f(i,t,e[t])}function qf(i){return Array.from(i.childNodes)}function Ye(i,e){e=""+e,i.data!==e&&(i.data=e)}function hi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Ql;function w_(){if(Ql===void 0){Ql=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Ql=!0}}return Ql}function Qo(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=w_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=_e(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=_e(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Of(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Tn(i,e){return new i(e)}var ro;function eo(i){ro=i}function Yo(){if(!ro)throw new Error("Function called outside component initialization");return ro}function qt(i){Yo().$$.on_mount.push(i)}function zn(i){Yo().$$.on_destroy.push(i)}function Zo(i,e){return Yo().$$.context.set(i,e),e}function Xo(i){return Yo().$$.context.get(i)}function kl(){return Yo().$$.context}function An(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var To=[];var ge=[],xo=[],hs=[],Hf=Promise.resolve(),gs=!1;function bs(){gs||(gs=!0,Hf.then(Yl))}function Un(){return bs(),Hf}function Kn(i){xo.push(i)}function Oe(i){hs.push(i)}var _s=new Set,Jo=0;function Yl(){if(Jo!==0)return;let i=ro;do{try{for(;Jo<To.length;){let e=To[Jo];Jo++,eo(e),I_(e.$$)}}catch(e){throw To.length=0,Jo=0,e}for(eo(null),To.length=0,Jo=0;ge.length;)ge.pop()();for(let e=0;e<xo.length;e+=1){let t=xo[e];_s.has(t)||(_s.add(t),t())}xo.length=0}while(To.length);for(;hs.length;)hs.pop()();gs=!1,_s.clear(),eo(i)}function I_(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Kn)}}function zf(i){let e=[],t=[];xo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),xo=e}var Zl=new Set,Po;function ce(){Po={r:0,c:[],p:Po}}function de(){Po.r||nt(Po.c),Po=Po.p}function d(i,e){i&&i.i&&(Zl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Zl.has(i))return;Zl.add(i),Po.c.push(()=>{Zl.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 De(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 Uf(i){return typeof i=="object"&&i!==null?i:{}}var E_=["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"],L_=new Set([...E_]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Kn(()=>{let r=i.$$.on_mount.map(ms).filter(Ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Kn)}function R(i,e){let t=i.$$;t.fragment!==null&&(zf(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function M_(i,e){i.$$.dirty[0]===-1&&(To.push(i),bs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=ro;eo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Ce,not_equal:o,bound:Wl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Wl(),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,...w)=>{let b=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&M_(i,m)),h}):[],u.update(),c=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Bf();let m=qf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Df(),Yl()}eo(s)}var V_;typeof HTMLElement=="function"&&(V_=class extends HTMLElement{constructor(e,t,n){super();Ui(this,"$$ctor");Ui(this,"$$s");Ui(this,"$$c");Ui(this,"$$cn",!1);Ui(this,"$$d",{});Ui(this,"$$r",!1);Ui(this,"$$p_d",{});Ui(this,"$$l",{});Ui(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&f(a,"name",l)},m:function(c,m){S(c,a,m)},d:function(c){c&&C(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Of(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=vs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=vs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=vs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function vs(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 U=class{constructor(){Ui(this,"$$");Ui(this,"$$set")}$destroy(){R(this,1),this.$destroy=Ce}$on(e,t){if(!Ii(t))return Ce;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&&!Af(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Kf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Kf);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 R_,fillWithDefault as B_,VideoQuality as D_}from"@vkontakte/videoplayer-shared";var N_={isMobile:void 0,defaultLanguage:R_.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:D_.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,fullscreenInternalTargetPlayerContainer:!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}},jf=i=>B_(i,N_),Wf=i=>Zo("ui-config",i),Kt=()=>Xo("ui-config");var Cl="vk_player_debug_panel_opened";var Gf="videoplayer",Qf="videoplayer";var Yn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Yf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Zf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Xf=new Set(["ShiftRight","ShiftLeft"]);var Jf=["TIMELINE"],Sl=[...Jf,"GRAPH_BUTTON"],ys=[...Jf,"PLAY_BUTTON"],Xl=[...Sl,"PLAY_BUTTON"];var Eo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Eo||{}),Lo={xs:0,s:1,m:2,l:3,xl:4};var $o=[];function On(i,e){return{subscribe:qe(i,e).subscribe}}function qe(i,e=Ce){let t,n=new Set;function o(a){if(H(i,a)&&(i=a,t)){let s=!$o.length;for(let u of n)u[1](),$o.push(u,i);if(s){for(let u=0;u<$o.length;u+=2)$o[u][0]($o[u+1]);$o.length=0}}}function r(a){o(a(i))}function l(a,s=Ce){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Ce),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Li(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 On(t,(l,a)=>{let s=!1,u=[],c=0,m=Ce,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Ii(b)?b:Ce},w=o.map((b,k)=>Gt(b,y=>{u[k]=y,c&=~(1<<k),s&&h()},()=>{c|=1<<k}));return s=!0,h(),function(){nt(w),m(),s=!1}})}import{assertNonNullable as xf,VERSION as q_}from"@vkontakte/videoplayer-shared";import{VERSION as O_}from"@vkontakte/videoplayer-core";import{VERSION as F_}from"@vkontakte/videoplayer-statistics";var Jl="prod",el="1.1.41-dev.478463df.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 $f=Symbol("storeContext"),ec=Symbol("microStoresContext"),tc=(i,e)=>{Zo($f,i),Zo(ec,e),Jl==="dev"&&(window.app={store:i,microStores:e})},lt=()=>{let i=Xo($f);return xf(i,"Store context is empty!"),i},Fn=()=>{let i=Xo(ec);return xf(i,"MicroStores context is empty!"),i},wt=(i,e)=>ws(i,i.getValue(),e),ws=(i,e,t)=>On(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ic=(i,e,t)=>{var I,v,g,P,M,A;let n=i.info,{width:o,height:r}=et(t.ui.playerSize),l=(v=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?v:0,a=(P=(g=n.rttEstimation$.getValue())==null?void 0:g.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${el} (core: ${O_}, stat: ${F_}, shared: ${q_})`,c=et(t.state.errorLog$),m=c.length?`
6
+ var h_=Object.defineProperty;var g_=(i,e,t)=>e in i?h_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ui=(i,e,t)=>g_(i,typeof e!="symbol"?e+"":e,t);function Ce(){}function se(i,e){for(let t in e)i[t]=e[t];return i}function ms(i){return i()}function Wl(){return Object.create(null)}function nt(i){i.forEach(ms)}function Ii(i){return typeof i=="function"}function H(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var jl;function ps(i,e){return i===e?!0:(jl||(jl=document.createElement("a")),jl.href=e,i===jl.href)}function Af(i){return Object.keys(i).length===0}function Gt(i,...e){if(i==null){for(let n of e)n(void 0);return Ce}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Gt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Gt(e,t))}function Ee(i,e,t,n){if(i){let o=Mf(i,e,t,n);return i[0](o)}}function Mf(i,e,t,n){return i[1]&&n?se(t.ctx.slice(),i[1](n(e))):t.ctx}function Le(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 Ae(i,e,t,n,o,r){if(o){let l=Mf(e,t,n,r);i.p(l,o)}}function Me(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 ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Vf(i){return i==null?"":i}var So=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Gl=class i{constructor(e){Ui(this,"_listeners","WeakMap"in So?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)})}};Gl.entries="WeakMap"in So?new WeakMap:void 0;var Rf=!1;function Bf(){Rf=!0}function Df(){Rf=!1}function p(i,e){i.appendChild(e)}function Te(i,e,t){let n=Nf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,y_(n,o)}}function Nf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function y_(i,e){return 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 N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function D(){return Be(" ")}function ut(){return Be("")}function _e(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 st(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 we(i,e){for(let t in e)f(i,t,e[t])}function qf(i){return Array.from(i.childNodes)}function Ye(i,e){e=""+e,i.data!==e&&(i.data=e)}function hi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Ql;function w_(){if(Ql===void 0){Ql=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Ql=!0}}return Ql}function Qo(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=w_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=_e(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=_e(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),C(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Of(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Tn(i,e){return new i(e)}var ro;function eo(i){ro=i}function Yo(){if(!ro)throw new Error("Function called outside component initialization");return ro}function qt(i){Yo().$$.on_mount.push(i)}function zn(i){Yo().$$.on_destroy.push(i)}function Zo(i,e){return Yo().$$.context.set(i,e),e}function Xo(i){return Yo().$$.context.get(i)}function kl(){return Yo().$$.context}function An(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var To=[];var ge=[],xo=[],hs=[],Hf=Promise.resolve(),gs=!1;function bs(){gs||(gs=!0,Hf.then(Yl))}function Un(){return bs(),Hf}function Kn(i){xo.push(i)}function Oe(i){hs.push(i)}var _s=new Set,Jo=0;function Yl(){if(Jo!==0)return;let i=ro;do{try{for(;Jo<To.length;){let e=To[Jo];Jo++,eo(e),I_(e.$$)}}catch(e){throw To.length=0,Jo=0,e}for(eo(null),To.length=0,Jo=0;ge.length;)ge.pop()();for(let e=0;e<xo.length;e+=1){let t=xo[e];_s.has(t)||(_s.add(t),t())}xo.length=0}while(To.length);for(;hs.length;)hs.pop()();gs=!1,_s.clear(),eo(i)}function I_(i){if(i.fragment!==null){i.update(),nt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Kn)}}function zf(i){let e=[],t=[];xo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),xo=e}var Zl=new Set,Po;function ce(){Po={r:0,c:[],p:Po}}function de(){Po.r||nt(Po.c),Po=Po.p}function d(i,e){i&&i.i&&(Zl.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Zl.has(i))return;Zl.add(i),Po.c.push(()=>{Zl.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 De(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 Uf(i){return typeof i=="object"&&i!==null?i:{}}var E_=["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"],L_=new Set([...E_]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Kn(()=>{let r=i.$$.on_mount.map(ms).filter(Ii);i.$$.on_destroy?i.$$.on_destroy.push(...r):nt(r),i.$$.on_mount=[]}),o.forEach(Kn)}function R(i,e){let t=i.$$;t.fragment!==null&&(zf(t.after_update),nt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function M_(i,e){i.$$.dirty[0]===-1&&(To.push(i),bs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function j(i,e,t,n,o,r,l=null,a=[-1]){let s=ro;eo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Ce,not_equal:o,bound:Wl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Wl(),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,...w)=>{let b=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&M_(i,m)),h}):[],u.update(),c=!0,nt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Bf();let m=qf(e.target);u.fragment&&u.fragment.l(m),m.forEach(C)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Df(),Yl()}eo(s)}var V_;typeof HTMLElement=="function"&&(V_=class extends HTMLElement{constructor(e,t,n){super();Ui(this,"$$ctor");Ui(this,"$$s");Ui(this,"$$c");Ui(this,"$$cn",!1);Ui(this,"$$d",{});Ui(this,"$$r",!1);Ui(this,"$$p_d",{});Ui(this,"$$l",{});Ui(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&f(a,"name",l)},m:function(c,m){S(c,a,m)},d:function(c){c&&C(a)}}}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Of(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=vs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=vs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=vs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function vs(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 U=class{constructor(){Ui(this,"$$");Ui(this,"$$set")}$destroy(){R(this,1),this.$destroy=Ce}$on(e,t){if(!Ii(t))return Ce;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&&!Af(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Kf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Kf);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 R_,fillWithDefault as B_,VideoQuality as D_}from"@vkontakte/videoplayer-shared";var N_={isMobile:void 0,defaultLanguage:R_.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:D_.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,fullscreenInternalTargetPlayerContainer:!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}},jf=i=>B_(i,N_),Wf=i=>Zo("ui-config",i),Kt=()=>Xo("ui-config");var Cl="vk_player_debug_panel_opened";var Gf="videoplayer",Qf="videoplayer";var Yn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Yf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Zf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Xf=new Set(["ShiftRight","ShiftLeft"]);var Jf=["TIMELINE"],Sl=[...Jf,"GRAPH_BUTTON"],ys=[...Jf,"PLAY_BUTTON"],Xl=[...Sl,"PLAY_BUTTON"];var Eo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Eo||{}),Lo={xs:0,s:1,m:2,l:3,xl:4};var $o=[];function On(i,e){return{subscribe:qe(i,e).subscribe}}function qe(i,e=Ce){let t,n=new Set;function o(a){if(H(i,a)&&(i=a,t)){let s=!$o.length;for(let u of n)u[1](),$o.push(u,i);if(s){for(let u=0;u<$o.length;u+=2)$o[u][0]($o[u+1]);$o.length=0}}}function r(a){o(a(i))}function l(a,s=Ce){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Ce),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Li(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 On(t,(l,a)=>{let s=!1,u=[],c=0,m=Ce,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Ii(b)?b:Ce},w=o.map((b,k)=>Gt(b,y=>{u[k]=y,c&=~(1<<k),s&&h()},()=>{c|=1<<k}));return s=!0,h(),function(){nt(w),m(),s=!1}})}import{assertNonNullable as xf,VERSION as q_}from"@vkontakte/videoplayer-shared";import{VERSION as O_}from"@vkontakte/videoplayer-core";import{VERSION as F_}from"@vkontakte/videoplayer-statistics";var Jl="prod",el="1.1.41-dev.499dcc4b.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 $f=Symbol("storeContext"),ec=Symbol("microStoresContext"),tc=(i,e)=>{Zo($f,i),Zo(ec,e),Jl==="dev"&&(window.app={store:i,microStores:e})},lt=()=>{let i=Xo($f);return xf(i,"Store context is empty!"),i},Fn=()=>{let i=Xo(ec);return xf(i,"MicroStores context is empty!"),i},wt=(i,e)=>ws(i,i.getValue(),e),ws=(i,e,t)=>On(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),ic=(i,e,t)=>{var I,v,g,P,M,A;let n=i.info,{width:o,height:r}=et(t.ui.playerSize),l=(v=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?v:0,a=(P=(g=n.rttEstimation$.getValue())==null?void 0:g.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${el} (core: ${O_}, stat: ${F_}, shared: ${q_})`,c=et(t.state.errorLog$),m=c.length?`
7
7
  `+c.map((q,ie)=>{var L;let me=`${ie}) Type: ${q.id}
8
8
  `,Y=`Message: ${q.message} (${q.thrown})
9
9
  `,x=`Trace: ${(L=q.thrown)==null?void 0:L.stack}
package/esnext.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.41-dev.478463df.0
3
- * Thu, 29 Aug 2024 16:52:51 GMT
2
+ * @vkontakte/videoplayer v1.1.41-dev.499dcc4b.0
3
+ * Tue, 03 Sep 2024 13:01:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-41/doc/
5
5
  */
6
- "use strict";var F_=Object.create;var xl=Object.defineProperty;var H_=Object.getOwnPropertyDescriptor;var z_=Object.getOwnPropertyNames;var U_=Object.getPrototypeOf,K_=Object.prototype.hasOwnProperty;var j_=(t,e)=>{for(var i in e)xl(t,i,{get:e[i],enumerable:!0})},Nc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of z_(e))!K_.call(t,o)&&o!==i&&xl(t,o,{get:()=>e[o],enumerable:!(n=H_(e,o))||n.enumerable});return t};var Ss=(t,e,i)=>(i=t!=null?F_(U_(t)):{},Nc(e||!t||!t.__esModule?xl(i,"default",{value:t,enumerable:!0}):i,t)),W_=t=>Nc(xl({},"__esModule",{value:!0}),t);var j6={};j_(j6,{GridTypes:()=>mo,InterfaceLanguage:()=>Al.InterfaceLanguage,VERSION:()=>Do,VKNumericLanguage:()=>Al.VKNumericLanguage,VideoFormat:()=>ks.VideoFormat,VideoQuality:()=>ks.VideoQuality,loadVKLangPack:()=>Al.loadVKLangPack,registerPlayerWebComponent:()=>K6});module.exports=W_(j6);function Pe(){}function re(t,e){for(let i in e)t[i]=e[i];return t}function Ps(t){return t()}function er(){return Object.create(null)}function et(t){t.forEach(Ps)}function Ii(t){return typeof t=="function"}function H(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var $l;function Is(t,e){return t===e?!0:($l||($l=document.createElement("a")),$l.href=e,t===$l.href)}function qc(t){return Object.keys(t).length===0}function Ot(t,...e){if(t==null){for(let n of e)n(void 0);return Pe}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Ot(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Ot(e,i))}function Te(t,e,i,n){if(t){let o=Oc(t,e,i,n);return t[0](o)}}function Oc(t,e,i,n){return t[1]&&n?re(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Oc(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ye(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Fc(t){return t??""}var Lo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var tr=class t{_listeners="WeakMap"in Lo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};tr.entries="WeakMap"in Lo?new WeakMap:void 0;var Hc=!1;function zc(){Hc=!0}function Uc(){Hc=!1}function m(t,e){t.appendChild(e)}function Ie(t,e,i){let n=Kc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,Y_(n,o)}}function Kc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Y_(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Ti(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function R(){return Re(" ")}function at(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Et(t){return function(e){return e.preventDefault(),t.call(this,e)}}function st(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ke(t,e){for(let i in e)c(t,i,e[i])}function jc(t){return Array.from(t.childNodes)}function Ke(t,e){e=""+e,t.data!==e&&(t.data=e)}function _i(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var ir;function Z_(){if(ir===void 0){ir=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{ir=!0}}return ir}function Jo(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=Z_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Wc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function Cn(t,e){return new t(e)}var fo;function to(t){fo=t}function xo(){if(!fo)throw new Error("Function called outside component initialization");return fo}function At(t){xo().$$.on_mount.push(t)}function Kn(t){xo().$$.on_destroy.push(t)}function $o(t,e){return xo().$$.context.set(t,e),e}function el(t){return xo().$$.context.get(t)}function Bl(){return xo().$$.context}function En(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var Mo=[];var ge=[],il=[],Es=[],Qc=Promise.resolve(),As=!1;function Ls(){As||(As=!0,Qc.then(nr))}function jn(){return Ls(),Qc}function Wn(t){il.push(t)}function qe(t){Es.push(t)}var Ts=new Set,tl=0;function nr(){if(tl!==0)return;let t=fo;do{try{for(;tl<Mo.length;){let e=Mo[tl];tl++,to(e),th(e.$$)}}catch(e){throw Mo.length=0,tl=0,e}for(to(null),Mo.length=0,tl=0;ge.length;)ge.pop()();for(let e=0;e<il.length;e+=1){let i=il[e];Ts.has(i)||(Ts.add(i),i())}il.length=0}while(Mo.length);for(;Es.length;)Es.pop()();As=!1,Ts.clear(),to(t)}function th(t){if(t.fragment!==null){t.update(),et(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Wn)}}function Yc(t){let e=[],i=[];il.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),il=e}var or=new Set,Vo;function ae(){Vo={r:0,c:[],p:Vo}}function ue(){Vo.r||et(Vo.c),Vo=Vo.p}function d(t,e){t&&t.i&&(or.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(or.has(t))return;or.add(t),Vo.c.push(()=>{or.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function wt(t){return t?.length!==void 0?t:Array.from(t)}function De(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function Zc(t){return typeof t=="object"&&t!==null?t:{}}var ih=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],nh=new Set([...ih]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),Wn(()=>{let l=t.$$.on_mount.map(Ps).filter(Ii);t.$$.on_destroy?t.$$.on_destroy.push(...l):et(l),t.$$.on_mount=[]}),o.forEach(Wn)}function L(t,e){let i=t.$$;i.fragment!==null&&(Yc(i.after_update),et(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function lh(t,e){t.$$.dirty[0]===-1&&(Mo.push(t),Ls(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function K(t,e,i,n,o,l,r=null,a=[-1]){let s=fo;to(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Pe,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};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&lh(t,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){zc();let p=jc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Uc(),nr()}to(s)}var rh;typeof HTMLElement=="function"&&(rh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Wc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=Ms(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=Ms(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ms(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Ms(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Pe}$on(e,i){if(!Ii(i))return Pe;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!qc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Xc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Xc);var DB=require("@vkontakte/videoplayer-core"),Qn=require("@vkontakte/videoplayer-shared"),Zp=require("@vkontakte/videoplayer-statistics");var nl=require("@vkontakte/videoplayer-shared");var sh={isMobile:void 0,defaultLanguage:nl.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:nl.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Jc=t=>(0,nl.fillWithDefault)(t,sh),xc=t=>$o("ui-config",t),Dt=()=>el("ui-config");var Dl="vk_player_debug_panel_opened";var $c="videoplayer",ef="videoplayer";var Yn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},tf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),nf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),of=new Set(["ShiftRight","ShiftLeft"]);var lf=["TIMELINE"],Nl=[...lf,"GRAPH_BUTTON"],Vs=[...lf,"PLAY_BUTTON"],lr=[...Nl,"PLAY_BUTTON"];var mo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(mo||{}),Bo={xs:0,s:1,m:2,l:3,xl:4};var ol=[];function qn(t,e){return{subscribe:Ne(t,e).subscribe}}function Ne(t,e=Pe){let i,n=new Set;function o(a){if(H(t,a)&&(t=a,i)){let s=!ol.length;for(let u of n)u[1](),ol.push(u,t);if(s){for(let u=0;u<ol.length;u+=2)ol[u][0](ol[u+1]);ol.length=0}}}function l(a){o(a(t))}function r(a,s=Pe){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Pe),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Ei(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return qn(i,(r,a)=>{let s=!1,u=[],f=0,p=Pe,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ii(g)?g:Pe},k=o.map((g,S)=>Ot(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){et(k),p(),s=!1}})}var ql=require("@vkontakte/videoplayer-shared"),rf=require("@vkontakte/videoplayer-core"),sf=require("@vkontakte/videoplayer-statistics");var rr="prod",Do="1.1.41-dev.478463df.0";var sr=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var af=Symbol("storeContext"),uf=Symbol("microStoresContext"),cf=(t,e)=>{$o(af,t),$o(uf,e),rr==="dev"&&(window.app={store:t,microStores:e})},nt=()=>{let t=el(af);return(0,ql.assertNonNullable)(t,"Store context is empty!"),t},On=()=>{let t=el(uf);return(0,ql.assertNonNullable)(t,"MicroStores context is empty!"),t},yt=(t,e)=>Rs(t,t.getValue(),e),Rs=(t,e,i)=>qn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),ff=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Do} (core: ${rf.VERSION}, stat: ${sf.VERSION}, shared: ${ql.VERSION})`,f=Je(i.state.errorLog$),p=f.length?`
6
+ "use strict";var F_=Object.create;var xl=Object.defineProperty;var H_=Object.getOwnPropertyDescriptor;var z_=Object.getOwnPropertyNames;var U_=Object.getPrototypeOf,K_=Object.prototype.hasOwnProperty;var j_=(t,e)=>{for(var i in e)xl(t,i,{get:e[i],enumerable:!0})},Nc=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of z_(e))!K_.call(t,o)&&o!==i&&xl(t,o,{get:()=>e[o],enumerable:!(n=H_(e,o))||n.enumerable});return t};var Ss=(t,e,i)=>(i=t!=null?F_(U_(t)):{},Nc(e||!t||!t.__esModule?xl(i,"default",{value:t,enumerable:!0}):i,t)),W_=t=>Nc(xl({},"__esModule",{value:!0}),t);var j6={};j_(j6,{GridTypes:()=>mo,InterfaceLanguage:()=>Al.InterfaceLanguage,VERSION:()=>Do,VKNumericLanguage:()=>Al.VKNumericLanguage,VideoFormat:()=>ks.VideoFormat,VideoQuality:()=>ks.VideoQuality,loadVKLangPack:()=>Al.loadVKLangPack,registerPlayerWebComponent:()=>K6});module.exports=W_(j6);function Pe(){}function re(t,e){for(let i in e)t[i]=e[i];return t}function Ps(t){return t()}function er(){return Object.create(null)}function et(t){t.forEach(Ps)}function Ii(t){return typeof t=="function"}function H(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var $l;function Is(t,e){return t===e?!0:($l||($l=document.createElement("a")),$l.href=e,t===$l.href)}function qc(t){return Object.keys(t).length===0}function Ot(t,...e){if(t==null){for(let n of e)n(void 0);return Pe}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Ot(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Ot(e,i))}function Te(t,e,i,n){if(t){let o=Oc(t,e,i,n);return t[0](o)}}function Oc(t,e,i,n){return t[1]&&n?re(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Oc(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ye(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Fc(t){return t??""}var Lo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var tr=class t{_listeners="WeakMap"in Lo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};tr.entries="WeakMap"in Lo?new WeakMap:void 0;var Hc=!1;function zc(){Hc=!0}function Uc(){Hc=!1}function m(t,e){t.appendChild(e)}function Ie(t,e,i){let n=Kc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,Y_(n,o)}}function Kc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Y_(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Ti(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function R(){return Re(" ")}function at(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Et(t){return function(e){return e.preventDefault(),t.call(this,e)}}function st(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ke(t,e){for(let i in e)c(t,i,e[i])}function jc(t){return Array.from(t.childNodes)}function Ke(t,e){e=""+e,t.data!==e&&(t.data=e)}function _i(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var ir;function Z_(){if(ir===void 0){ir=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{ir=!0}}return ir}function Jo(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=Z_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Wc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function Cn(t,e){return new t(e)}var fo;function to(t){fo=t}function xo(){if(!fo)throw new Error("Function called outside component initialization");return fo}function At(t){xo().$$.on_mount.push(t)}function Kn(t){xo().$$.on_destroy.push(t)}function $o(t,e){return xo().$$.context.set(t,e),e}function el(t){return xo().$$.context.get(t)}function Bl(){return xo().$$.context}function En(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var Mo=[];var ge=[],il=[],Es=[],Qc=Promise.resolve(),As=!1;function Ls(){As||(As=!0,Qc.then(nr))}function jn(){return Ls(),Qc}function Wn(t){il.push(t)}function qe(t){Es.push(t)}var Ts=new Set,tl=0;function nr(){if(tl!==0)return;let t=fo;do{try{for(;tl<Mo.length;){let e=Mo[tl];tl++,to(e),th(e.$$)}}catch(e){throw Mo.length=0,tl=0,e}for(to(null),Mo.length=0,tl=0;ge.length;)ge.pop()();for(let e=0;e<il.length;e+=1){let i=il[e];Ts.has(i)||(Ts.add(i),i())}il.length=0}while(Mo.length);for(;Es.length;)Es.pop()();As=!1,Ts.clear(),to(t)}function th(t){if(t.fragment!==null){t.update(),et(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Wn)}}function Yc(t){let e=[],i=[];il.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),il=e}var or=new Set,Vo;function ae(){Vo={r:0,c:[],p:Vo}}function ue(){Vo.r||et(Vo.c),Vo=Vo.p}function d(t,e){t&&t.i&&(or.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(or.has(t))return;or.add(t),Vo.c.push(()=>{or.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function wt(t){return t?.length!==void 0?t:Array.from(t)}function De(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function Zc(t){return typeof t=="object"&&t!==null?t:{}}var ih=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],nh=new Set([...ih]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),Wn(()=>{let l=t.$$.on_mount.map(Ps).filter(Ii);t.$$.on_destroy?t.$$.on_destroy.push(...l):et(l),t.$$.on_mount=[]}),o.forEach(Wn)}function L(t,e){let i=t.$$;i.fragment!==null&&(Yc(i.after_update),et(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function lh(t,e){t.$$.dirty[0]===-1&&(Mo.push(t),Ls(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function K(t,e,i,n,o,l,r=null,a=[-1]){let s=fo;to(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Pe,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};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&lh(t,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){zc();let p=jc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Uc(),nr()}to(s)}var rh;typeof HTMLElement=="function"&&(rh=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Wc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=Ms(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=Ms(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ms(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Ms(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Pe}$on(e,i){if(!Ii(i))return Pe;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!qc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Xc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Xc);var DB=require("@vkontakte/videoplayer-core"),Qn=require("@vkontakte/videoplayer-shared"),Zp=require("@vkontakte/videoplayer-statistics");var nl=require("@vkontakte/videoplayer-shared");var sh={isMobile:void 0,defaultLanguage:nl.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:nl.VideoQuality.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Jc=t=>(0,nl.fillWithDefault)(t,sh),xc=t=>$o("ui-config",t),Dt=()=>el("ui-config");var Dl="vk_player_debug_panel_opened";var $c="videoplayer",ef="videoplayer";var Yn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},tf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),nf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),of=new Set(["ShiftRight","ShiftLeft"]);var lf=["TIMELINE"],Nl=[...lf,"GRAPH_BUTTON"],Vs=[...lf,"PLAY_BUTTON"],lr=[...Nl,"PLAY_BUTTON"];var mo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(mo||{}),Bo={xs:0,s:1,m:2,l:3,xl:4};var ol=[];function qn(t,e){return{subscribe:Ne(t,e).subscribe}}function Ne(t,e=Pe){let i,n=new Set;function o(a){if(H(t,a)&&(t=a,i)){let s=!ol.length;for(let u of n)u[1](),ol.push(u,t);if(s){for(let u=0;u<ol.length;u+=2)ol[u][0](ol[u+1]);ol.length=0}}}function l(a){o(a(t))}function r(a,s=Pe){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Pe),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Ei(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return qn(i,(r,a)=>{let s=!1,u=[],f=0,p=Pe,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ii(g)?g:Pe},k=o.map((g,S)=>Ot(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){et(k),p(),s=!1}})}var ql=require("@vkontakte/videoplayer-shared"),rf=require("@vkontakte/videoplayer-core"),sf=require("@vkontakte/videoplayer-statistics");var rr="prod",Do="1.1.41-dev.499dcc4b.0";var sr=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var af=Symbol("storeContext"),uf=Symbol("microStoresContext"),cf=(t,e)=>{$o(af,t),$o(uf,e),rr==="dev"&&(window.app={store:t,microStores:e})},nt=()=>{let t=el(af);return(0,ql.assertNonNullable)(t,"Store context is empty!"),t},On=()=>{let t=el(uf);return(0,ql.assertNonNullable)(t,"MicroStores context is empty!"),t},yt=(t,e)=>Rs(t,t.getValue(),e),Rs=(t,e,i)=>qn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),ff=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Do} (core: ${rf.VERSION}, stat: ${sf.VERSION}, shared: ${ql.VERSION})`,f=Je(i.state.errorLog$),p=f.length?`
7
7
  `+f.map((T,v)=>{let y=`${v}) 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.41-dev.478463df.0
3
- * Thu, 29 Aug 2024 16:52:51 GMT
2
+ * @vkontakte/videoplayer v1.1.41-dev.499dcc4b.0
3
+ * Tue, 03 Sep 2024 13:01:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-41/doc/
5
5
  */
6
- function Pe(){}function re(t,e){for(let i in e)t[i]=e[i];return t}function cs(t){return t()}function zl(){return Object.create(null)}function et(t){t.forEach(cs)}function Si(t){return typeof t=="function"}function H(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Hl;function fs(t,e){return t===e?!0:(Hl||(Hl=document.createElement("a")),Hl.href=e,t===Hl.href)}function Pc(t){return Object.keys(t).length===0}function Nt(t,...e){if(t==null){for(let n of e)n(void 0);return Pe}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Nt(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Nt(e,i))}function Te(t,e,i,n){if(t){let o=Ic(t,e,i,n);return t[0](o)}}function Ic(t,e,i,n){return t[1]&&n?re(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Ic(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ye(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Tc(t){return t??""}var So=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Ul=class t{_listeners="WeakMap"in So?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};Ul.entries="WeakMap"in So?new WeakMap:void 0;var Ec=!1;function Ac(){Ec=!0}function Lc(){Ec=!1}function m(t,e){t.appendChild(e)}function Ie(t,e,i){let n=Mc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,__(n,o)}}function Mc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function __(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Pi(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function R(){return Re(" ")}function at(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function It(t){return function(e){return e.preventDefault(),t.call(this,e)}}function st(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ke(t,e){for(let i in e)c(t,i,e[i])}function Vc(t){return Array.from(t.childNodes)}function Ke(t,e){e=""+e,t.data!==e&&(t.data=e)}function mi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var Kl;function h_(){if(Kl===void 0){Kl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Kl=!0}}return Kl}function Wo(t,e){getComputedStyle(t).position==="static"&&(t.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=h_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Rc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function bn(t,e){return new t(e)}var lo;function Jn(t){lo=t}function Go(){if(!lo)throw new Error("Function called outside component initialization");return lo}function Tt(t){Go().$$.on_mount.push(t)}function Fn(t){Go().$$.on_destroy.push(t)}function Qo(t,e){return Go().$$.context.set(t,e),e}function Yo(t){return Go().$$.context.get(t)}function yl(){return Go().$$.context}function Sn(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var Po=[];var ge=[],Xo=[],ms=[],Dc=Promise.resolve(),ps=!1;function _s(){ps||(ps=!0,Dc.then(jl))}function Hn(){return _s(),Dc}function zn(t){Xo.push(t)}function qe(t){ms.push(t)}var ds=new Set,Zo=0;function jl(){if(Zo!==0)return;let t=lo;do{try{for(;Zo<Po.length;){let e=Po[Zo];Zo++,Jn(e),w_(e.$$)}}catch(e){throw Po.length=0,Zo=0,e}for(Jn(null),Po.length=0,Zo=0;ge.length;)ge.pop()();for(let e=0;e<Xo.length;e+=1){let i=Xo[e];ds.has(i)||(ds.add(i),i())}Xo.length=0}while(Po.length);for(;ms.length;)ms.pop()();ps=!1,ds.clear(),Jn(t)}function w_(t){if(t.fragment!==null){t.update(),et(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(zn)}}function Nc(t){let e=[],i=[];Xo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Xo=e}var Wl=new Set,Io;function ae(){Io={r:0,c:[],p:Io}}function ue(){Io.r||et(Io.c),Io=Io.p}function d(t,e){t&&t.i&&(Wl.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(Wl.has(t))return;Wl.add(t),Io.c.push(()=>{Wl.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function kt(t){return t?.length!==void 0?t:Array.from(t)}function De(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function qc(t){return typeof t=="object"&&t!==null?t:{}}var C_=["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"],S_=new Set([...C_]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),zn(()=>{let l=t.$$.on_mount.map(cs).filter(Si);t.$$.on_destroy?t.$$.on_destroy.push(...l):et(l),t.$$.on_mount=[]}),o.forEach(zn)}function L(t,e){let i=t.$$;i.fragment!==null&&(Nc(i.after_update),et(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function I_(t,e){t.$$.dirty[0]===-1&&(Po.push(t),_s(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function K(t,e,i,n,o,l,r=null,a=[-1]){let s=lo;Jn(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Pe,not_equal:o,bound:zl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:zl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&I_(t,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ac();let p=Vc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Lc(),jl()}Jn(s)}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Rc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=hs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=hs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=hs(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function hs(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Pe}$on(e,i){if(!Si(i))return Pe;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Pc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Oc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oc);import"@vkontakte/videoplayer-core";import{noop as pl,safeStorage as B6,throttleFn as D6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as E_,fillWithDefault as A_,VideoQuality as L_}from"@vkontakte/videoplayer-shared";var M_={isMobile:void 0,defaultLanguage:E_.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:L_.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,fullscreenInternalTargetPlayerContainer:!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}},Fc=t=>A_(t,M_),Hc=t=>Qo("ui-config",t),Rt=()=>Yo("ui-config");var kl="vk_player_debug_panel_opened";var zc="videoplayer",Uc="videoplayer";var Wn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),jc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wc=new Set(["ShiftRight","ShiftLeft"]);var Gc=["TIMELINE"],wl=[...Gc,"GRAPH_BUTTON"],gs=[...Gc,"PLAY_BUTTON"],Gl=[...wl,"PLAY_BUTTON"];var Eo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Eo||{}),Ao={xs:0,s:1,m:2,l:3,xl:4};var Jo=[];function Rn(t,e){return{subscribe:Ne(t,e).subscribe}}function Ne(t,e=Pe){let i,n=new Set;function o(a){if(H(t,a)&&(t=a,i)){let s=!Jo.length;for(let u of n)u[1](),Jo.push(u,t);if(s){for(let u=0;u<Jo.length;u+=2)Jo[u][0](Jo[u+1]);Jo.length=0}}}function l(a){o(a(t))}function r(a,s=Pe){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Pe),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Ii(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Rn(i,(r,a)=>{let s=!1,u=[],f=0,p=Pe,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Si(g)?g:Pe},k=o.map((g,S)=>Nt(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){et(k),p(),s=!1}})}import{assertNonNullable as Qc,VERSION as V_}from"@vkontakte/videoplayer-shared";import{VERSION as R_}from"@vkontakte/videoplayer-core";import{VERSION as B_}from"@vkontakte/videoplayer-statistics";var Ql="prod",xo="1.1.41-dev.478463df.0";var Yl=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Yc=Symbol("storeContext"),Zc=Symbol("microStoresContext"),Xc=(t,e)=>{Qo(Yc,t),Qo(Zc,e),Ql==="dev"&&(window.app={store:t,microStores:e})},nt=()=>{let t=Yo(Yc);return Qc(t,"Store context is empty!"),t},Bn=()=>{let t=Yo(Zc);return Qc(t,"MicroStores context is empty!"),t},vt=(t,e)=>bs(t,t.getValue(),e),bs=(t,e,i)=>Rn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),Jc=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${xo} (core: ${R_}, stat: ${B_}, shared: ${V_})`,f=Je(i.state.errorLog$),p=f.length?`
6
+ function Pe(){}function re(t,e){for(let i in e)t[i]=e[i];return t}function cs(t){return t()}function zl(){return Object.create(null)}function et(t){t.forEach(cs)}function Si(t){return typeof t=="function"}function H(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Hl;function fs(t,e){return t===e?!0:(Hl||(Hl=document.createElement("a")),Hl.href=e,t===Hl.href)}function Pc(t){return Object.keys(t).length===0}function Nt(t,...e){if(t==null){for(let n of e)n(void 0);return Pe}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Nt(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Nt(e,i))}function Te(t,e,i,n){if(t){let o=Ic(t,e,i,n);return t[0](o)}}function Ic(t,e,i,n){return t[1]&&n?re(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Ic(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ye(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Tc(t){return t??""}var So=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Ul=class t{_listeners="WeakMap"in So?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};Ul.entries="WeakMap"in So?new WeakMap:void 0;var Ec=!1;function Ac(){Ec=!0}function Lc(){Ec=!1}function m(t,e){t.appendChild(e)}function Ie(t,e,i){let n=Mc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,__(n,o)}}function Mc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function __(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Pi(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function R(){return Re(" ")}function at(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function It(t){return function(e){return e.preventDefault(),t.call(this,e)}}function st(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ke(t,e){for(let i in e)c(t,i,e[i])}function Vc(t){return Array.from(t.childNodes)}function Ke(t,e){e=""+e,t.data!==e&&(t.data=e)}function mi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var Kl;function h_(){if(Kl===void 0){Kl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Kl=!0}}return Kl}function Wo(t,e){getComputedStyle(t).position==="static"&&(t.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=h_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Rc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function bn(t,e){return new t(e)}var lo;function Jn(t){lo=t}function Go(){if(!lo)throw new Error("Function called outside component initialization");return lo}function Tt(t){Go().$$.on_mount.push(t)}function Fn(t){Go().$$.on_destroy.push(t)}function Qo(t,e){return Go().$$.context.set(t,e),e}function Yo(t){return Go().$$.context.get(t)}function yl(){return Go().$$.context}function Sn(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var Po=[];var ge=[],Xo=[],ms=[],Dc=Promise.resolve(),ps=!1;function _s(){ps||(ps=!0,Dc.then(jl))}function Hn(){return _s(),Dc}function zn(t){Xo.push(t)}function qe(t){ms.push(t)}var ds=new Set,Zo=0;function jl(){if(Zo!==0)return;let t=lo;do{try{for(;Zo<Po.length;){let e=Po[Zo];Zo++,Jn(e),w_(e.$$)}}catch(e){throw Po.length=0,Zo=0,e}for(Jn(null),Po.length=0,Zo=0;ge.length;)ge.pop()();for(let e=0;e<Xo.length;e+=1){let i=Xo[e];ds.has(i)||(ds.add(i),i())}Xo.length=0}while(Po.length);for(;ms.length;)ms.pop()();ps=!1,ds.clear(),Jn(t)}function w_(t){if(t.fragment!==null){t.update(),et(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(zn)}}function Nc(t){let e=[],i=[];Xo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Xo=e}var Wl=new Set,Io;function ae(){Io={r:0,c:[],p:Io}}function ue(){Io.r||et(Io.c),Io=Io.p}function d(t,e){t&&t.i&&(Wl.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(Wl.has(t))return;Wl.add(t),Io.c.push(()=>{Wl.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function kt(t){return t?.length!==void 0?t:Array.from(t)}function De(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function qc(t){return typeof t=="object"&&t!==null?t:{}}var C_=["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"],S_=new Set([...C_]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),zn(()=>{let l=t.$$.on_mount.map(cs).filter(Si);t.$$.on_destroy?t.$$.on_destroy.push(...l):et(l),t.$$.on_mount=[]}),o.forEach(zn)}function L(t,e){let i=t.$$;i.fragment!==null&&(Nc(i.after_update),et(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function I_(t,e){t.$$.dirty[0]===-1&&(Po.push(t),_s(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function K(t,e,i,n,o,l,r=null,a=[-1]){let s=lo;Jn(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Pe,not_equal:o,bound:zl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:zl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&I_(t,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ac();let p=Vc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Lc(),jl()}Jn(s)}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Rc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=hs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=hs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=hs(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function hs(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Pe}$on(e,i){if(!Si(i))return Pe;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Pc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Oc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oc);import"@vkontakte/videoplayer-core";import{noop as pl,safeStorage as B6,throttleFn as D6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as E_,fillWithDefault as A_,VideoQuality as L_}from"@vkontakte/videoplayer-shared";var M_={isMobile:void 0,defaultLanguage:E_.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:L_.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,fullscreenInternalTargetPlayerContainer:!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}},Fc=t=>A_(t,M_),Hc=t=>Qo("ui-config",t),Rt=()=>Yo("ui-config");var kl="vk_player_debug_panel_opened";var zc="videoplayer",Uc="videoplayer";var Wn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),jc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wc=new Set(["ShiftRight","ShiftLeft"]);var Gc=["TIMELINE"],wl=[...Gc,"GRAPH_BUTTON"],gs=[...Gc,"PLAY_BUTTON"],Gl=[...wl,"PLAY_BUTTON"];var Eo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Eo||{}),Ao={xs:0,s:1,m:2,l:3,xl:4};var Jo=[];function Rn(t,e){return{subscribe:Ne(t,e).subscribe}}function Ne(t,e=Pe){let i,n=new Set;function o(a){if(H(t,a)&&(t=a,i)){let s=!Jo.length;for(let u of n)u[1](),Jo.push(u,t);if(s){for(let u=0;u<Jo.length;u+=2)Jo[u][0](Jo[u+1]);Jo.length=0}}}function l(a){o(a(t))}function r(a,s=Pe){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Pe),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Ii(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Rn(i,(r,a)=>{let s=!1,u=[],f=0,p=Pe,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Si(g)?g:Pe},k=o.map((g,S)=>Nt(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){et(k),p(),s=!1}})}import{assertNonNullable as Qc,VERSION as V_}from"@vkontakte/videoplayer-shared";import{VERSION as R_}from"@vkontakte/videoplayer-core";import{VERSION as B_}from"@vkontakte/videoplayer-statistics";var Ql="prod",xo="1.1.41-dev.499dcc4b.0";var Yl=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Yc=Symbol("storeContext"),Zc=Symbol("microStoresContext"),Xc=(t,e)=>{Qo(Yc,t),Qo(Zc,e),Ql==="dev"&&(window.app={store:t,microStores:e})},nt=()=>{let t=Yo(Yc);return Qc(t,"Store context is empty!"),t},Bn=()=>{let t=Yo(Zc);return Qc(t,"MicroStores context is empty!"),t},vt=(t,e)=>bs(t,t.getValue(),e),bs=(t,e,i)=>Rn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),Jc=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${xo} (core: ${R_}, stat: ${B_}, shared: ${V_})`,f=Je(i.state.errorLog$),p=f.length?`
7
7
  `+f.map((T,v)=>{let y=`${v}) 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.41-dev.478463df.0
3
- * Thu, 29 Aug 2024 16:52:51 GMT
2
+ * @vkontakte/videoplayer v1.1.41-dev.499dcc4b.0
3
+ * Tue, 03 Sep 2024 13:01:48 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-41/doc/
5
5
  */
6
- function Pe(){}function re(t,e){for(let i in e)t[i]=e[i];return t}function cs(t){return t()}function zl(){return Object.create(null)}function et(t){t.forEach(cs)}function Si(t){return typeof t=="function"}function H(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Hl;function fs(t,e){return t===e?!0:(Hl||(Hl=document.createElement("a")),Hl.href=e,t===Hl.href)}function Pc(t){return Object.keys(t).length===0}function Nt(t,...e){if(t==null){for(let n of e)n(void 0);return Pe}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Nt(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Nt(e,i))}function Te(t,e,i,n){if(t){let o=Ic(t,e,i,n);return t[0](o)}}function Ic(t,e,i,n){return t[1]&&n?re(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Ic(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ye(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Tc(t){return t??""}var So=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Ul=class t{_listeners="WeakMap"in So?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};Ul.entries="WeakMap"in So?new WeakMap:void 0;var Ec=!1;function Ac(){Ec=!0}function Lc(){Ec=!1}function m(t,e){t.appendChild(e)}function Ie(t,e,i){let n=Mc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,__(n,o)}}function Mc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function __(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Pi(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function R(){return Re(" ")}function at(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function It(t){return function(e){return e.preventDefault(),t.call(this,e)}}function st(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ke(t,e){for(let i in e)c(t,i,e[i])}function Vc(t){return Array.from(t.childNodes)}function Ke(t,e){e=""+e,t.data!==e&&(t.data=e)}function mi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var Kl;function h_(){if(Kl===void 0){Kl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Kl=!0}}return Kl}function Wo(t,e){getComputedStyle(t).position==="static"&&(t.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=h_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Rc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function bn(t,e){return new t(e)}var lo;function Jn(t){lo=t}function Go(){if(!lo)throw new Error("Function called outside component initialization");return lo}function Tt(t){Go().$$.on_mount.push(t)}function Fn(t){Go().$$.on_destroy.push(t)}function Qo(t,e){return Go().$$.context.set(t,e),e}function Yo(t){return Go().$$.context.get(t)}function yl(){return Go().$$.context}function Sn(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var Po=[];var ge=[],Xo=[],ms=[],Dc=Promise.resolve(),ps=!1;function _s(){ps||(ps=!0,Dc.then(jl))}function Hn(){return _s(),Dc}function zn(t){Xo.push(t)}function qe(t){ms.push(t)}var ds=new Set,Zo=0;function jl(){if(Zo!==0)return;let t=lo;do{try{for(;Zo<Po.length;){let e=Po[Zo];Zo++,Jn(e),w_(e.$$)}}catch(e){throw Po.length=0,Zo=0,e}for(Jn(null),Po.length=0,Zo=0;ge.length;)ge.pop()();for(let e=0;e<Xo.length;e+=1){let i=Xo[e];ds.has(i)||(ds.add(i),i())}Xo.length=0}while(Po.length);for(;ms.length;)ms.pop()();ps=!1,ds.clear(),Jn(t)}function w_(t){if(t.fragment!==null){t.update(),et(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(zn)}}function Nc(t){let e=[],i=[];Xo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Xo=e}var Wl=new Set,Io;function ae(){Io={r:0,c:[],p:Io}}function ue(){Io.r||et(Io.c),Io=Io.p}function d(t,e){t&&t.i&&(Wl.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(Wl.has(t))return;Wl.add(t),Io.c.push(()=>{Wl.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function kt(t){return t?.length!==void 0?t:Array.from(t)}function De(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function qc(t){return typeof t=="object"&&t!==null?t:{}}var C_=["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"],S_=new Set([...C_]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),zn(()=>{let l=t.$$.on_mount.map(cs).filter(Si);t.$$.on_destroy?t.$$.on_destroy.push(...l):et(l),t.$$.on_mount=[]}),o.forEach(zn)}function L(t,e){let i=t.$$;i.fragment!==null&&(Nc(i.after_update),et(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function I_(t,e){t.$$.dirty[0]===-1&&(Po.push(t),_s(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function K(t,e,i,n,o,l,r=null,a=[-1]){let s=lo;Jn(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Pe,not_equal:o,bound:zl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:zl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&I_(t,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ac();let p=Vc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Lc(),jl()}Jn(s)}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Rc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=hs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=hs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=hs(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function hs(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Pe}$on(e,i){if(!Si(i))return Pe;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Pc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Oc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oc);import"@vkontakte/videoplayer-core";import{noop as pl,safeStorage as B6,throttleFn as D6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as E_,fillWithDefault as A_,VideoQuality as L_}from"@vkontakte/videoplayer-shared";var M_={isMobile:void 0,defaultLanguage:E_.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:L_.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,fullscreenInternalTargetPlayerContainer:!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}},Fc=t=>A_(t,M_),Hc=t=>Qo("ui-config",t),Rt=()=>Yo("ui-config");var kl="vk_player_debug_panel_opened";var zc="videoplayer",Uc="videoplayer";var Wn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),jc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wc=new Set(["ShiftRight","ShiftLeft"]);var Gc=["TIMELINE"],wl=[...Gc,"GRAPH_BUTTON"],gs=[...Gc,"PLAY_BUTTON"],Gl=[...wl,"PLAY_BUTTON"];var Eo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Eo||{}),Ao={xs:0,s:1,m:2,l:3,xl:4};var Jo=[];function Rn(t,e){return{subscribe:Ne(t,e).subscribe}}function Ne(t,e=Pe){let i,n=new Set;function o(a){if(H(t,a)&&(t=a,i)){let s=!Jo.length;for(let u of n)u[1](),Jo.push(u,t);if(s){for(let u=0;u<Jo.length;u+=2)Jo[u][0](Jo[u+1]);Jo.length=0}}}function l(a){o(a(t))}function r(a,s=Pe){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Pe),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Ii(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Rn(i,(r,a)=>{let s=!1,u=[],f=0,p=Pe,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Si(g)?g:Pe},k=o.map((g,S)=>Nt(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){et(k),p(),s=!1}})}import{assertNonNullable as Qc,VERSION as V_}from"@vkontakte/videoplayer-shared";import{VERSION as R_}from"@vkontakte/videoplayer-core";import{VERSION as B_}from"@vkontakte/videoplayer-statistics";var Ql="prod",xo="1.1.41-dev.478463df.0";var Yl=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Yc=Symbol("storeContext"),Zc=Symbol("microStoresContext"),Xc=(t,e)=>{Qo(Yc,t),Qo(Zc,e),Ql==="dev"&&(window.app={store:t,microStores:e})},nt=()=>{let t=Yo(Yc);return Qc(t,"Store context is empty!"),t},Bn=()=>{let t=Yo(Zc);return Qc(t,"MicroStores context is empty!"),t},vt=(t,e)=>bs(t,t.getValue(),e),bs=(t,e,i)=>Rn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),Jc=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${xo} (core: ${R_}, stat: ${B_}, shared: ${V_})`,f=Je(i.state.errorLog$),p=f.length?`
6
+ function Pe(){}function re(t,e){for(let i in e)t[i]=e[i];return t}function cs(t){return t()}function zl(){return Object.create(null)}function et(t){t.forEach(cs)}function Si(t){return typeof t=="function"}function H(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Hl;function fs(t,e){return t===e?!0:(Hl||(Hl=document.createElement("a")),Hl.href=e,t===Hl.href)}function Pc(t){return Object.keys(t).length===0}function Nt(t,...e){if(t==null){for(let n of e)n(void 0);return Pe}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Nt(t,i=>e=i)(),e}function q(t,e,i){t.$$.on_destroy.push(Nt(e,i))}function Te(t,e,i,n){if(t){let o=Ic(t,e,i,n);return t[0](o)}}function Ic(t,e,i,n){return t[1]&&n?re(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Ic(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ye(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Tc(t){return t??""}var So=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Ul=class t{_listeners="WeakMap"in So?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};Ul.entries="WeakMap"in So?new WeakMap:void 0;var Ec=!1;function Ac(){Ec=!0}function Lc(){Ec=!1}function m(t,e){t.appendChild(e)}function Ie(t,e,i){let n=Mc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,__(n,o)}}function Mc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function __(t,e){return m(t.head||t,e),e.sheet}function C(t,e,i){t.insertBefore(e,i||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function Pi(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function R(){return Re(" ")}function at(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function It(t){return function(e){return e.preventDefault(),t.call(this,e)}}function st(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ke(t,e){for(let i in e)c(t,i,e[i])}function Vc(t){return Array.from(t.childNodes)}function Ke(t,e){e=""+e,t.data!==e&&(t.data=e)}function mi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var Kl;function h_(){if(Kl===void 0){Kl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Kl=!0}}return Kl}function Wo(t,e){getComputedStyle(t).position==="static"&&(t.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=h_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function D(t,e,i){t.classList.toggle(e,!!i)}function Rc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function bn(t,e){return new t(e)}var lo;function Jn(t){lo=t}function Go(){if(!lo)throw new Error("Function called outside component initialization");return lo}function Tt(t){Go().$$.on_mount.push(t)}function Fn(t){Go().$$.on_destroy.push(t)}function Qo(t,e){return Go().$$.context.set(t,e),e}function Yo(t){return Go().$$.context.get(t)}function yl(){return Go().$$.context}function Sn(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var Po=[];var ge=[],Xo=[],ms=[],Dc=Promise.resolve(),ps=!1;function _s(){ps||(ps=!0,Dc.then(jl))}function Hn(){return _s(),Dc}function zn(t){Xo.push(t)}function qe(t){ms.push(t)}var ds=new Set,Zo=0;function jl(){if(Zo!==0)return;let t=lo;do{try{for(;Zo<Po.length;){let e=Po[Zo];Zo++,Jn(e),w_(e.$$)}}catch(e){throw Po.length=0,Zo=0,e}for(Jn(null),Po.length=0,Zo=0;ge.length;)ge.pop()();for(let e=0;e<Xo.length;e+=1){let i=Xo[e];ds.has(i)||(ds.add(i),i())}Xo.length=0}while(Po.length);for(;ms.length;)ms.pop()();ps=!1,ds.clear(),Jn(t)}function w_(t){if(t.fragment!==null){t.update(),et(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(zn)}}function Nc(t){let e=[],i=[];Xo.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Xo=e}var Wl=new Set,Io;function ae(){Io={r:0,c:[],p:Io}}function ue(){Io.r||et(Io.c),Io=Io.p}function d(t,e){t&&t.i&&(Wl.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(Wl.has(t))return;Wl.add(t),Io.c.push(()=>{Wl.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function kt(t){return t?.length!==void 0?t:Array.from(t)}function De(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function qc(t){return typeof t=="object"&&t!==null?t:{}}var C_=["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"],S_=new Set([...C_]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),zn(()=>{let l=t.$$.on_mount.map(cs).filter(Si);t.$$.on_destroy?t.$$.on_destroy.push(...l):et(l),t.$$.on_mount=[]}),o.forEach(zn)}function L(t,e){let i=t.$$;i.fragment!==null&&(Nc(i.after_update),et(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function I_(t,e){t.$$.dirty[0]===-1&&(Po.push(t),_s(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function K(t,e,i,n,o,l,r=null,a=[-1]){let s=lo;Jn(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Pe,not_equal:o,bound:zl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:zl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...k)=>{let g=k.length?k[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&I_(t,p)),h}):[],u.update(),f=!0,et(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ac();let p=Vc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Lc(),jl()}Jn(s)}var T_;typeof HTMLElement=="function"&&(T_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){C(u,r,f)},d:function(u){u&&w(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Rc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=hs(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=hs(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=hs(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function hs(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var U=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Pe}$on(e,i){if(!Si(i))return Pe;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Pc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Oc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Oc);import"@vkontakte/videoplayer-core";import{noop as pl,safeStorage as B6,throttleFn as D6}from"@vkontakte/videoplayer-shared";import{SeekAction as N6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as E_,fillWithDefault as A_,VideoQuality as L_}from"@vkontakte/videoplayer-shared";var M_={isMobile:void 0,defaultLanguage:E_.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:L_.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,fullscreenInternalTargetPlayerContainer:!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}},Fc=t=>A_(t,M_),Hc=t=>Qo("ui-config",t),Rt=()=>Yo("ui-config");var kl="vk_player_debug_panel_opened";var zc="videoplayer",Uc="videoplayer";var Wn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),jc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Wc=new Set(["ShiftRight","ShiftLeft"]);var Gc=["TIMELINE"],wl=[...Gc,"GRAPH_BUTTON"],gs=[...Gc,"PLAY_BUTTON"],Gl=[...wl,"PLAY_BUTTON"];var Eo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Eo||{}),Ao={xs:0,s:1,m:2,l:3,xl:4};var Jo=[];function Rn(t,e){return{subscribe:Ne(t,e).subscribe}}function Ne(t,e=Pe){let i,n=new Set;function o(a){if(H(t,a)&&(t=a,i)){let s=!Jo.length;for(let u of n)u[1](),Jo.push(u,t);if(s){for(let u=0;u<Jo.length;u+=2)Jo[u][0](Jo[u+1]);Jo.length=0}}}function l(a){o(a(t))}function r(a,s=Pe){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Pe),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function Ii(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Rn(i,(r,a)=>{let s=!1,u=[],f=0,p=Pe,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Si(g)?g:Pe},k=o.map((g,S)=>Nt(g,b=>{u[S]=b,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){et(k),p(),s=!1}})}import{assertNonNullable as Qc,VERSION as V_}from"@vkontakte/videoplayer-shared";import{VERSION as R_}from"@vkontakte/videoplayer-core";import{VERSION as B_}from"@vkontakte/videoplayer-statistics";var Ql="prod",xo="1.1.41-dev.499dcc4b.0";var Yl=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Yc=Symbol("storeContext"),Zc=Symbol("microStoresContext"),Xc=(t,e)=>{Qo(Yc,t),Qo(Zc,e),Ql==="dev"&&(window.app={store:t,microStores:e})},nt=()=>{let t=Yo(Yc);return Qc(t,"Store context is empty!"),t},Bn=()=>{let t=Yo(Zc);return Qc(t,"MicroStores context is empty!"),t},vt=(t,e)=>bs(t,t.getValue(),e),bs=(t,e,i)=>Rn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),Jc=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${xo} (core: ${R_}, stat: ${B_}, shared: ${V_})`,f=Je(i.state.errorLog$),p=f.length?`
7
7
  `+f.map((T,v)=>{let y=`${v}) 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.41-dev.478463df.0",
3
+ "version": "1.1.41-dev.499dcc4b.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.108-dev.43b53ca1.0",
53
- "@vkontakte/videoplayer-interactive": "1.0.16-dev.5099551f.0",
54
- "@vkontakte/videoplayer-shared": "1.0.40-dev.0f7bb846.0",
55
- "@vkontakte/videoplayer-statistics": "1.0.54-dev.18b929a8.0"
52
+ "@vkontakte/videoplayer-core": "2.0.108-dev.ce9f9a29.0",
53
+ "@vkontakte/videoplayer-interactive": "1.0.16-dev.31a3b43f.0",
54
+ "@vkontakte/videoplayer-shared": "^1.0.39",
55
+ "@vkontakte/videoplayer-statistics": "1.0.54-dev.56b9df0d.0"
56
56
  }
57
57
  }