@vkontakte/videoplayer-shared 1.0.38 → 1.0.39-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.38
3
- * Mon, 12 Aug 2024 11:20:20 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-38/doc/
2
+ * @vkontakte/videoplayer-shared v1.0.39-beta.0
3
+ * Wed, 21 Aug 2024 12:53:10 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-39/doc/
5
5
  */
6
- "use strict";var hs=Object.create;var te=Object.defineProperty,gs=Object.defineProperties,Is=Object.getOwnPropertyDescriptor,Os=Object.getOwnPropertyDescriptors,xs=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,Es=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty,ws=Object.prototype.propertyIsEnumerable;var Mt=Math.pow,Nt=(e,r,t)=>r in e?te(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,K=(e,r)=>{for(var t in r||(r={}))jt.call(r,t)&&Nt(e,t,r[t]);if(Ct)for(var t of Ct(r))ws.call(r,t)&&Nt(e,t,r[t]);return e},he=(e,r)=>gs(e,Os(r));var i=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),kt=(e,r)=>{for(var t in r)te(e,t,{get:r[t],enumerable:!0})},Dt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of xs(r))!jt.call(e,o)&&o!==t&&te(e,o,{get:()=>r[o],enumerable:!(n=Is(r,o))||n.enumerable});return e};var Ss=(e,r,t)=>(t=e!=null?hs(Es(e)):{},Dt(r||!e||!e.__esModule?te(t,"default",{value:e,enumerable:!0}):t,e)),qs=e=>Dt(te({},"__esModule",{value:!0}),e);var ge=(e,r,t)=>new Promise((n,o)=>{var a=c=>{try{s(t.next(c))}catch(f){o(f)}},u=c=>{try{s(t.throw(c))}catch(f){o(f)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,u);s((t=t.apply(e,r)).next())});var _=i((bd,wn)=>{"use strict";wn.exports=function(e){try{return!!e()}catch(r){return!0}}});var le=i((dd,Sn)=>{"use strict";var Ds=_();Sn.exports=!Ds(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var N=i((Td,Pn)=>{"use strict";var qn=le(),Rn=Function.prototype,Sr=Rn.call,Vs=qn&&Rn.bind.bind(Sr,Sr);Pn.exports=qn?Vs:function(e){return function(){return Sr.apply(e,arguments)}}});var _e=i((md,_n)=>{"use strict";var An=N(),Fs=An({}.toString),Us=An("".slice);_n.exports=function(e){return Us(Fs(e),8,-1)}});var Cn=i((yd,Ln)=>{"use strict";var Gs=N(),Bs=_(),Qs=_e(),qr=Object,$s=Gs("".split);Ln.exports=Bs(function(){return!qr("z").propertyIsEnumerable(0)})?function(e){return Qs(e)=="String"?$s(e,""):qr(e)}:qr});var Le=i((hd,Nn)=>{"use strict";Nn.exports=function(e){return e==null}});var Rr=i((gd,jn)=>{"use strict";var Ws=Le(),zs=TypeError;jn.exports=function(e){if(Ws(e))throw zs("Can't call method on "+e);return e}});var X=i((Id,Mn)=>{"use strict";var Ks=Cn(),Ys=Rr();Mn.exports=function(e){return Ks(Ys(e))}});var Dn=i((Od,kn)=>{"use strict";kn.exports=function(){}});var Q=i((xd,Vn)=>{"use strict";Vn.exports={}});var S=i((Fn,Un)=>{"use strict";var Ce=function(e){return e&&e.Math==Math&&e};Un.exports=Ce(typeof globalThis=="object"&&globalThis)||Ce(typeof window=="object"&&window)||Ce(typeof self=="object"&&self)||Ce(typeof global=="object"&&global)||function(){return this}()||Fn||Function("return this")()});var Ar=i((Ed,Gn)=>{"use strict";var Pr=typeof document=="object"&&document.all,Hs=typeof Pr=="undefined"&&Pr!==void 0;Gn.exports={all:Pr,IS_HTMLDDA:Hs}});var x=i((wd,Qn)=>{"use strict";var Bn=Ar(),Xs=Bn.all;Qn.exports=Bn.IS_HTMLDDA?function(e){return typeof e=="function"||e===Xs}:function(e){return typeof e=="function"}});var zn=i((Sd,Wn)=>{"use strict";var Js=S(),Zs=x(),$n=Js.WeakMap;Wn.exports=Zs($n)&&/native code/.test(String($n))});var $=i((qd,Hn)=>{"use strict";var Kn=x(),Yn=Ar(),eu=Yn.all;Hn.exports=Yn.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Kn(e)||e===eu}:function(e){return typeof e=="object"?e!==null:Kn(e)}});var j=i((Rd,Xn)=>{"use strict";var ru=_();Xn.exports=!ru(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Lr=i((Pd,Zn)=>{"use strict";var tu=S(),Jn=$(),_r=tu.document,nu=Jn(_r)&&Jn(_r.createElement);Zn.exports=function(e){return nu?_r.createElement(e):{}}});var Cr=i((Ad,eo)=>{"use strict";var ou=j(),iu=_(),au=Lr();eo.exports=!ou&&!iu(function(){return Object.defineProperty(au("div"),"a",{get:function(){return 7}}).a!=7})});var Nr=i((_d,ro)=>{"use strict";var su=j(),uu=_();ro.exports=su&&uu(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var V=i((Ld,to)=>{"use strict";var lu=$(),cu=String,fu=TypeError;to.exports=function(e){if(lu(e))return e;throw fu(cu(e)+" is not an object")}});var F=i((Cd,no)=>{"use strict";var pu=le(),Ne=Function.prototype.call;no.exports=pu?Ne.bind(Ne):function(){return Ne.apply(Ne,arguments)}});var je=i((Nd,oo)=>{"use strict";oo.exports={}});var kr=i((jd,ao)=>{"use strict";var jr=je(),Mr=S(),vu=x(),io=function(e){return vu(e)?e:void 0};ao.exports=function(e,r){return arguments.length<2?io(jr[e])||io(Mr[e]):jr[e]&&jr[e][r]||Mr[e]&&Mr[e][r]}});var Dr=i((Md,so)=>{"use strict";var bu=N();so.exports=bu({}.isPrototypeOf)});var lo=i((kd,uo)=>{"use strict";uo.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var mo=i((Dd,To)=>{"use strict";var bo=S(),Vr=lo(),co=bo.process,fo=bo.Deno,po=co&&co.versions||fo&&fo.version,vo=po&&po.v8,R,Me;vo&&(R=vo.split("."),Me=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Me&&Vr&&(R=Vr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Vr.match(/Chrome\/(\d+)/),R&&(Me=+R[1])));To.exports=Me});var Fr=i((Vd,ho)=>{"use strict";var yo=mo(),du=_(),Tu=S(),mu=Tu.String;ho.exports=!!Object.getOwnPropertySymbols&&!du(function(){var e=Symbol();return!mu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yo&&yo<41})});var Ur=i((Fd,go)=>{"use strict";var yu=Fr();go.exports=yu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Gr=i((Ud,Io)=>{"use strict";var hu=kr(),gu=x(),Iu=Dr(),Ou=Ur(),xu=Object;Io.exports=Ou?function(e){return typeof e=="symbol"}:function(e){var r=hu("Symbol");return gu(r)&&Iu(r.prototype,xu(e))}});var ke=i((Gd,Oo)=>{"use strict";var Eu=String;Oo.exports=function(e){try{return Eu(e)}catch(r){return"Object"}}});var ce=i((Bd,xo)=>{"use strict";var wu=x(),Su=ke(),qu=TypeError;xo.exports=function(e){if(wu(e))return e;throw qu(Su(e)+" is not a function")}});var De=i((Qd,Eo)=>{"use strict";var Ru=ce(),Pu=Le();Eo.exports=function(e,r){var t=e[r];return Pu(t)?void 0:Ru(t)}});var So=i(($d,wo)=>{"use strict";var Br=F(),Qr=x(),$r=$(),Au=TypeError;wo.exports=function(e,r){var t,n;if(r==="string"&&Qr(t=e.toString)&&!$r(n=Br(t,e))||Qr(t=e.valueOf)&&!$r(n=Br(t,e))||r!=="string"&&Qr(t=e.toString)&&!$r(n=Br(t,e)))return n;throw Au("Can't convert object to primitive value")}});var fe=i((Wd,qo)=>{"use strict";qo.exports=!0});var Ao=i((zd,Po)=>{"use strict";var Ro=S(),_u=Object.defineProperty;Po.exports=function(e,r){try{_u(Ro,e,{value:r,configurable:!0,writable:!0})}catch(t){Ro[e]=r}return r}});var Wr=i((Kd,Lo)=>{"use strict";var Lu=S(),Cu=Ao(),_o="__core-js_shared__",Nu=Lu[_o]||Cu(_o,{});Lo.exports=Nu});var zr=i((Yd,No)=>{"use strict";var ju=fe(),Co=Wr();(No.exports=function(e,r){return Co[e]||(Co[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.31.0",mode:ju?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Kr=i((Hd,jo)=>{"use strict";var Mu=Rr(),ku=Object;jo.exports=function(e){return ku(Mu(e))}});var M=i((Xd,Mo)=>{"use strict";var Du=N(),Vu=Kr(),Fu=Du({}.hasOwnProperty);Mo.exports=Object.hasOwn||function(r,t){return Fu(Vu(r),t)}});var Yr=i((Jd,ko)=>{"use strict";var Uu=N(),Gu=0,Bu=Math.random(),Qu=Uu(1 .toString);ko.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Qu(++Gu+Bu,36)}});var L=i((Zd,Vo)=>{"use strict";var $u=S(),Wu=zr(),Do=M(),zu=Yr(),Ku=Fr(),Yu=Ur(),J=$u.Symbol,Hr=Wu("wks"),Hu=Yu?J.for||J:J&&J.withoutSetter||zu;Vo.exports=function(e){return Do(Hr,e)||(Hr[e]=Ku&&Do(J,e)?J[e]:Hu("Symbol."+e)),Hr[e]}});var Bo=i((eT,Go)=>{"use strict";var Xu=F(),Fo=$(),Uo=Gr(),Ju=De(),Zu=So(),el=L(),rl=TypeError,tl=el("toPrimitive");Go.exports=function(e,r){if(!Fo(e)||Uo(e))return e;var t=Ju(e,tl),n;if(t){if(r===void 0&&(r="default"),n=Xu(t,e,r),!Fo(n)||Uo(n))return n;throw rl("Can't convert object to primitive value")}return r===void 0&&(r="number"),Zu(e,r)}});var Ve=i((rT,Qo)=>{"use strict";var nl=Bo(),ol=Gr();Qo.exports=function(e){var r=nl(e,"string");return ol(r)?r:r+""}});var Z=i(Wo=>{"use strict";var il=j(),al=Cr(),sl=Nr(),Fe=V(),$o=Ve(),ul=TypeError,Xr=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,Jr="enumerable",Zr="configurable",et="writable";Wo.f=il?sl?function(r,t,n){if(Fe(r),t=$o(t),Fe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&et in n&&!n[et]){var o=ll(r,t);o&&o[et]&&(r[t]=n.value,n={configurable:Zr in n?n[Zr]:o[Zr],enumerable:Jr in n?n[Jr]:o[Jr],writable:!1})}return Xr(r,t,n)}:Xr:function(r,t,n){if(Fe(r),t=$o(t),Fe(n),al)try{return Xr(r,t,n)}catch(o){}if("get"in n||"set"in n)throw ul("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var pe=i((nT,zo)=>{"use strict";zo.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var W=i((oT,Ko)=>{"use strict";var cl=j(),fl=Z(),pl=pe();Ko.exports=cl?function(e,r,t){return fl.f(e,r,pl(1,t))}:function(e,r,t){return e[r]=t,e}});var Ue=i((iT,Ho)=>{"use strict";var vl=zr(),bl=Yr(),Yo=vl("keys");Ho.exports=function(e){return Yo[e]||(Yo[e]=bl(e))}});var Ge=i((aT,Xo)=>{"use strict";Xo.exports={}});var ri=i((sT,ei)=>{"use strict";var dl=zn(),Zo=S(),Tl=$(),ml=W(),rt=M(),tt=Wr(),yl=Ue(),hl=Ge(),Jo="Object already initialized",nt=Zo.TypeError,gl=Zo.WeakMap,Be,ve,Qe,Il=function(e){return Qe(e)?ve(e):Be(e,{})},Ol=function(e){return function(r){var t;if(!Tl(r)||(t=ve(r)).type!==e)throw nt("Incompatible receiver, "+e+" required");return t}};dl||tt.state?(P=tt.state||(tt.state=new gl),P.get=P.get,P.has=P.has,P.set=P.set,Be=function(e,r){if(P.has(e))throw nt(Jo);return r.facade=e,P.set(e,r),r},ve=function(e){return P.get(e)||{}},Qe=function(e){return P.has(e)}):(z=yl("state"),hl[z]=!0,Be=function(e,r){if(rt(e,z))throw nt(Jo);return r.facade=e,ml(e,z,r),r},ve=function(e){return rt(e,z)?e[z]:{}},Qe=function(e){return rt(e,z)});var P,z;ei.exports={set:Be,get:ve,has:Qe,enforce:Il,getterFor:Ol}});var ai=i((uT,ii)=>{"use strict";var xl=le(),oi=Function.prototype,ti=oi.apply,ni=oi.call;ii.exports=typeof Reflect=="object"&&Reflect.apply||(xl?ni.bind(ti):function(){return ni.apply(ti,arguments)})});var ot=i((lT,si)=>{"use strict";var El=_e(),wl=N();si.exports=function(e){if(El(e)==="Function")return wl(e)}});var fi=i(ci=>{"use strict";var ui={}.propertyIsEnumerable,li=Object.getOwnPropertyDescriptor,Sl=li&&!ui.call({1:2},1);ci.f=Sl?function(r){var t=li(this,r);return!!t&&t.enumerable}:ui});var bi=i(vi=>{"use strict";var ql=j(),Rl=F(),Pl=fi(),Al=pe(),_l=X(),Ll=Ve(),Cl=M(),Nl=Cr(),pi=Object.getOwnPropertyDescriptor;vi.f=ql?pi:function(r,t){if(r=_l(r),t=Ll(t),Nl)try{return pi(r,t)}catch(n){}if(Cl(r,t))return Al(!Rl(Pl.f,r,t),r[t])}});var Ti=i((pT,di)=>{"use strict";var jl=_(),Ml=x(),kl=/#|\.prototype\./,be=function(e,r){var t=Vl[Dl(e)];return t==Ul?!0:t==Fl?!1:Ml(r)?jl(r):!!r},Dl=be.normalize=function(e){return String(e).replace(kl,".").toLowerCase()},Vl=be.data={},Fl=be.NATIVE="N",Ul=be.POLYFILL="P";di.exports=be});var it=i((vT,yi)=>{"use strict";var mi=ot(),Gl=ce(),Bl=le(),Ql=mi(mi.bind);yi.exports=function(e,r){return Gl(e),r===void 0?e:Bl?Ql(e,r):function(){return e.apply(r,arguments)}}});var at=i((bT,gi)=>{"use strict";var $e=S(),$l=ai(),Wl=ot(),zl=x(),Kl=bi().f,Yl=Ti(),ee=je(),Hl=it(),re=W(),hi=M(),Xl=function(e){var r=function(t,n,o){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return $l(e,this,arguments)};return r.prototype=e.prototype,r};gi.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,a=e.proto,u=n?$e:o?$e[t]:($e[t]||{}).prototype,s=n?ee:ee[t]||re(ee,t,{})[t],c=s.prototype,f,l,p,b,d,T,y,I,h;for(b in r)f=Yl(n?b:t+(o?".":"#")+b,e.forced),l=!f&&u&&hi(u,b),T=s[b],l&&(e.dontCallGetSet?(h=Kl(u,b),y=h&&h.value):y=u[b]),d=l&&y?y:r[b],!(l&&typeof T==typeof d)&&(e.bind&&l?I=Hl(d,$e):e.wrap&&l?I=Xl(d):a&&zl(d)?I=Wl(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&re(I,"sham",!0),re(s,b,I),a&&(p=t+"Prototype",hi(ee,p)||re(ee,p,{}),re(ee[p],b,d),e.real&&c&&(f||!c[b])&&re(c,b,d)))}});var xi=i((dT,Oi)=>{"use strict";var st=j(),Jl=M(),Ii=Function.prototype,Zl=st&&Object.getOwnPropertyDescriptor,ut=Jl(Ii,"name"),ec=ut&&function(){}.name==="something",rc=ut&&(!st||st&&Zl(Ii,"name").configurable);Oi.exports={EXISTS:ut,PROPER:ec,CONFIGURABLE:rc}});var wi=i((TT,Ei)=>{"use strict";var tc=Math.ceil,nc=Math.floor;Ei.exports=Math.trunc||function(r){var t=+r;return(t>0?nc:tc)(t)}});var lt=i((mT,Si)=>{"use strict";var oc=wi();Si.exports=function(e){var r=+e;return r!==r||r===0?0:oc(r)}});var Ri=i((yT,qi)=>{"use strict";var ic=lt(),ac=Math.max,sc=Math.min;qi.exports=function(e,r){var t=ic(e);return t<0?ac(t+r,0):sc(t,r)}});var Ai=i((hT,Pi)=>{"use strict";var uc=lt(),lc=Math.min;Pi.exports=function(e){return e>0?lc(uc(e),9007199254740991):0}});var ct=i((gT,_i)=>{"use strict";var cc=Ai();_i.exports=function(e){return cc(e.length)}});var Ni=i((IT,Ci)=>{"use strict";var fc=X(),pc=Ri(),vc=ct(),Li=function(e){return function(r,t,n){var o=fc(r),a=vc(o),u=pc(n,a),s;if(e&&t!=t){for(;a>u;)if(s=o[u++],s!=s)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===t)return e||u||0;return!e&&-1}};Ci.exports={includes:Li(!0),indexOf:Li(!1)}});var ki=i((OT,Mi)=>{"use strict";var bc=N(),ft=M(),dc=X(),Tc=Ni().indexOf,mc=Ge(),ji=bc([].push);Mi.exports=function(e,r){var t=dc(e),n=0,o=[],a;for(a in t)!ft(mc,a)&&ft(t,a)&&ji(o,a);for(;r.length>n;)ft(t,a=r[n++])&&(~Tc(o,a)||ji(o,a));return o}});var pt=i((xT,Di)=>{"use strict";Di.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Fi=i((ET,Vi)=>{"use strict";var yc=ki(),hc=pt();Vi.exports=Object.keys||function(r){return yc(r,hc)}});var Gi=i(Ui=>{"use strict";var gc=j(),Ic=Nr(),Oc=Z(),xc=V(),Ec=X(),wc=Fi();Ui.f=gc&&!Ic?Object.defineProperties:function(r,t){xc(r);for(var n=Ec(t),o=wc(t),a=o.length,u=0,s;a>u;)Oc.f(r,s=o[u++],n[s]);return r}});var Qi=i((ST,Bi)=>{"use strict";var Sc=kr();Bi.exports=Sc("document","documentElement")});var Tt=i((qT,Xi)=>{"use strict";var qc=V(),Rc=Gi(),$i=pt(),Pc=Ge(),Ac=Qi(),_c=Lr(),Lc=Ue(),Wi=">",zi="<",bt="prototype",dt="script",Yi=Lc("IE_PROTO"),vt=function(){},Hi=function(e){return zi+dt+Wi+e+zi+"/"+dt+Wi},Ki=function(e){e.write(Hi("")),e.close();var r=e.parentWindow.Object;return e=null,r},Cc=function(){var e=_c("iframe"),r="java"+dt+":",t;return e.style.display="none",Ac.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Hi("document.F=Object")),t.close(),t.F},We,ze=function(){try{We=new ActiveXObject("htmlfile")}catch(r){}ze=typeof document!="undefined"?document.domain&&We?Ki(We):Cc():Ki(We);for(var e=$i.length;e--;)delete ze[bt][$i[e]];return ze()};Pc[Yi]=!0;Xi.exports=Object.create||function(r,t){var n;return r!==null?(vt[bt]=qc(r),n=new vt,vt[bt]=null,n[Yi]=r):n=ze(),t===void 0?n:Rc.f(n,t)}});var Zi=i((RT,Ji)=>{"use strict";var Nc=_();Ji.exports=!Nc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var yt=i((PT,ra)=>{"use strict";var jc=M(),Mc=x(),kc=Kr(),Dc=Ue(),Vc=Zi(),ea=Dc("IE_PROTO"),mt=Object,Fc=mt.prototype;ra.exports=Vc?mt.getPrototypeOf:function(e){var r=kc(e);if(jc(r,ea))return r[ea];var t=r.constructor;return Mc(t)&&r instanceof t?t.prototype:r instanceof mt?Fc:null}});var ht=i((AT,ta)=>{"use strict";var Uc=W();ta.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Uc(e,r,t),e}});var xt=i((_T,ia)=>{"use strict";var Gc=_(),Bc=x(),Qc=$(),$c=Tt(),na=yt(),Wc=ht(),zc=L(),Kc=fe(),Ot=zc("iterator"),oa=!1,k,gt,It;[].keys&&(It=[].keys(),"next"in It?(gt=na(na(It)),gt!==Object.prototype&&(k=gt)):oa=!0);var Yc=!Qc(k)||Gc(function(){var e={};return k[Ot].call(e)!==e});Yc?k={}:Kc&&(k=$c(k));Bc(k[Ot])||Wc(k,Ot,function(){return this});ia.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:oa}});var Ke=i((LT,sa)=>{"use strict";var Hc=L(),Xc=Hc("toStringTag"),aa={};aa[Xc]="z";sa.exports=String(aa)==="[object z]"});var He=i((CT,ua)=>{"use strict";var Jc=Ke(),Zc=x(),Ye=_e(),ef=L(),rf=ef("toStringTag"),tf=Object,nf=Ye(function(){return arguments}())=="Arguments",of=function(e,r){try{return e[r]}catch(t){}};ua.exports=Jc?Ye:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=of(r=tf(e),rf))=="string"?t:nf?Ye(r):(n=Ye(r))=="Object"&&Zc(r.callee)?"Arguments":n}});var ca=i((NT,la)=>{"use strict";var af=Ke(),sf=He();la.exports=af?{}.toString:function(){return"[object "+sf(this)+"]"}});var Et=i((jT,pa)=>{"use strict";var uf=Ke(),lf=Z().f,cf=W(),ff=M(),pf=ca(),vf=L(),fa=vf("toStringTag");pa.exports=function(e,r,t,n){if(e){var o=t?e:e.prototype;ff(o,fa)||lf(o,fa,{configurable:!0,value:r}),n&&!uf&&cf(o,"toString",pf)}}});var ba=i((MT,va)=>{"use strict";var bf=xt().IteratorPrototype,df=Tt(),Tf=pe(),mf=Et(),yf=Q(),hf=function(){return this};va.exports=function(e,r,t,n){var o=r+" Iterator";return e.prototype=df(bf,{next:Tf(+!n,t)}),mf(e,o,!1,!0),yf[o]=hf,e}});var Ta=i((kT,da)=>{"use strict";var gf=N(),If=ce();da.exports=function(e,r,t){try{return gf(If(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ya=i((DT,ma)=>{"use strict";var Of=x(),xf=String,Ef=TypeError;ma.exports=function(e){if(typeof e=="object"||Of(e))return e;throw Ef("Can't set "+xf(e)+" as a prototype")}});var ga=i((VT,ha)=>{"use strict";var wf=Ta(),Sf=V(),qf=ya();ha.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=wf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(o,a){return Sf(o),qf(a),e?t(o,a):o.__proto__=a,o}}():void 0)});var _a=i((FT,Aa)=>{"use strict";var Rf=at(),Pf=F(),Xe=fe(),Ra=xi(),Af=x(),_f=ba(),Ia=yt(),Oa=ga(),Lf=Et(),Cf=W(),wt=ht(),Nf=L(),xa=Q(),Pa=xt(),jf=Ra.PROPER,Mf=Ra.CONFIGURABLE,Ea=Pa.IteratorPrototype,Je=Pa.BUGGY_SAFARI_ITERATORS,de=Nf("iterator"),wa="keys",Te="values",Sa="entries",qa=function(){return this};Aa.exports=function(e,r,t,n,o,a,u){_f(t,r,n);var s=function(h){if(h===o&&b)return b;if(!Je&&h in l)return l[h];switch(h){case wa:return function(){return new t(this,h)};case Te:return function(){return new t(this,h)};case Sa:return function(){return new t(this,h)}}return function(){return new t(this)}},c=r+" Iterator",f=!1,l=e.prototype,p=l[de]||l["@@iterator"]||o&&l[o],b=!Je&&p||s(o),d=r=="Array"&&l.entries||p,T,y,I;if(d&&(T=Ia(d.call(new e)),T!==Object.prototype&&T.next&&(!Xe&&Ia(T)!==Ea&&(Oa?Oa(T,Ea):Af(T[de])||wt(T,de,qa)),Lf(T,c,!0,!0),Xe&&(xa[c]=qa))),jf&&o==Te&&p&&p.name!==Te&&(!Xe&&Mf?Cf(l,"name",Te):(f=!0,b=function(){return Pf(p,this)})),o)if(y={values:s(Te),keys:a?b:s(wa),entries:s(Sa)},u)for(I in y)(Je||f||!(I in l))&&wt(l,I,y[I]);else Rf({target:r,proto:!0,forced:Je||f},y);return(!Xe||u)&&l[de]!==b&&wt(l,de,b,{name:o}),xa[r]=b,y}});var Ca=i((UT,La)=>{"use strict";La.exports=function(e,r){return{value:e,done:r}}});var qt=i((GT,Da)=>{"use strict";var kf=X(),St=Dn(),Na=Q(),Ma=ri(),Df=Z().f,Vf=_a(),Ze=Ca(),Ff=fe(),Uf=j(),ka="Array Iterator",Gf=Ma.set,Bf=Ma.getterFor(ka);Da.exports=Vf(Array,"Array",function(e,r){Gf(this,{type:ka,target:kf(e),index:0,kind:r})},function(){var e=Bf(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,Ze(void 0,!0)):t=="keys"?Ze(n,!1):t=="values"?Ze(r[n],!1):Ze([n,r[n]],!1)},"values");var ja=Na.Arguments=Na.Array;St("keys");St("values");St("entries");if(!Ff&&Uf&&ja.name!=="values")try{Df(ja,"name",{value:"values"})}catch(e){}});var Fa=i((BT,Va)=>{"use strict";var Qf=L(),$f=Q(),Wf=Qf("iterator"),zf=Array.prototype;Va.exports=function(e){return e!==void 0&&($f.Array===e||zf[Wf]===e)}});var Rt=i((QT,Ga)=>{"use strict";var Kf=He(),Ua=De(),Yf=Le(),Hf=Q(),Xf=L(),Jf=Xf("iterator");Ga.exports=function(e){if(!Yf(e))return Ua(e,Jf)||Ua(e,"@@iterator")||Hf[Kf(e)]}});var Qa=i(($T,Ba)=>{"use strict";var Zf=F(),ep=ce(),rp=V(),tp=ke(),np=Rt(),op=TypeError;Ba.exports=function(e,r){var t=arguments.length<2?np(e):r;if(ep(t))return rp(Zf(t,e));throw op(tp(e)+" is not iterable")}});var za=i((WT,Wa)=>{"use strict";var ip=F(),$a=V(),ap=De();Wa.exports=function(e,r,t){var n,o;$a(e);try{if(n=ap(e,"return"),!n){if(r==="throw")throw t;return t}n=ip(n,e)}catch(a){o=!0,n=a}if(r==="throw")throw t;if(o)throw n;return $a(n),t}});var Ja=i((zT,Xa)=>{"use strict";var sp=it(),up=F(),lp=V(),cp=ke(),fp=Fa(),pp=ct(),Ka=Dr(),vp=Qa(),bp=Rt(),Ya=za(),dp=TypeError,er=function(e,r){this.stopped=e,this.result=r},Ha=er.prototype;Xa.exports=function(e,r,t){var n=t&&t.that,o=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),c=sp(r,n),f,l,p,b,d,T,y,I=function(g){return f&&Ya(f,"normal",g),new er(!0,g)},h=function(g){return o?(lp(g),s?c(g[0],g[1],I):c(g[0],g[1])):s?c(g,I):c(g)};if(a)f=e.iterator;else if(u)f=e;else{if(l=bp(e),!l)throw dp(cp(e)+" is not iterable");if(fp(l)){for(p=0,b=pp(e);b>p;p++)if(d=h(e[p]),d&&Ka(Ha,d))return d;return new er(!1)}f=vp(e,l)}for(T=a?e.next:f.next;!(y=up(T,f)).done;){try{d=h(y.value)}catch(g){Ya(f,"throw",g)}if(typeof d=="object"&&d&&Ka(Ha,d))return d}return new er(!1)}});var es=i((KT,Za)=>{"use strict";var Tp=Ve(),mp=Z(),yp=pe();Za.exports=function(e,r,t){var n=Tp(r);n in e?mp.f(e,n,yp(0,t)):e[n]=t}});var rs=i(()=>{"use strict";var hp=at(),gp=Ja(),Ip=es();hp({target:"Object",stat:!0},{fromEntries:function(r){var t={};return gp(r,function(n,o){Ip(t,n,o)},{AS_ENTRIES:!0}),t}})});var ns=i((XT,ts)=>{"use strict";qt();rs();var Op=je();ts.exports=Op.Object.fromEntries});var is=i((JT,os)=>{"use strict";os.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var us=i(()=>{"use strict";qt();var xp=is(),Ep=S(),wp=He(),Sp=W(),as=Q(),qp=L(),ss=qp("toStringTag");for(rr in xp)Pt=Ep[rr],tr=Pt&&Pt.prototype,tr&&wp(tr)!==ss&&Sp(tr,ss,rr),as[rr]=as.Array;var Pt,tr,rr});var cs=i((rm,ls)=>{"use strict";var Rp=ns();us();ls.exports=Rp});var ps=i((tm,fs)=>{"use strict";var Pp=cs();fs.exports=Pp});var Np={};kt(Np,{CurrentClientBrowser:()=>nr,CurrentClientDevice:()=>or,ErrorCategory:()=>On,InterfaceLanguage:()=>ds,Logger:()=>Ie,Observable:()=>v,Subject:()=>C,Subscription:()=>E,VERSION:()=>Vt,VKNumericLanguage:()=>bs,ValueSubject:()=>ie,VideoQuality:()=>Ee,abortable:()=>Kt,addScript:()=>$t,areQualitiesExact:()=>fn,assertEmptyArray:()=>Qt,assertNever:()=>A,assertNonNullable:()=>Ut,assertNotEmptyArray:()=>Bt,assertNullable:()=>Gt,assertQualityIsExact:()=>pn,buffer:()=>lr,checkNever:()=>Ft,clearVideoElement:()=>Tn,cloneDeep:()=>bn,cloneDeepWith:()=>oe,combine:()=>ar,debounce:()=>fr,debounceFn:()=>qe,detectEmbed:()=>rn,fillWithDefault:()=>vn,filter:()=>dr,filterChanged:()=>mr,fromEvent:()=>gn,getCurrentBrowser:()=>ne,getExponentialDelay:()=>en,getHighestQuality:()=>an,getIOSVersion:()=>Ht,interval:()=>yn,isAndroid:()=>Xt,isHigher:()=>tn,isHigherOrEqual:()=>nn,isIOS:()=>Yt,isInvariantQuality:()=>Se,isLower:()=>we,isLowerOrEqual:()=>on,isMacLike:()=>Jt,isMobile:()=>Zt,isNonNullable:()=>G,isNullable:()=>Oe,loadVKLangPack:()=>_p,map:()=>ae,mapTo:()=>hr,merge:()=>sr,noop:()=>D,now:()=>zt,observableFrom:()=>hn,observeElementSize:()=>dn,once:()=>gr,pairwise:()=>Or,safeStorage:()=>xe,tap:()=>Er,throttle:()=>vr,throttleFn:()=>Re,timeCodeToString:()=>Ns,timeout:()=>mn,videoHeightToQuality:()=>un,videoQualityToHeight:()=>cn,videoSizeToQuality:()=>ln});module.exports=qs(Np);var Vt="1.0.38";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var A=e=>{throw new Error(`${e} is value of unexpected type`)},Ft=e=>{};var D=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:D}:n={next:s=>t.next(s),error:s=>{var c;return(c=t.error)==null?void 0:c.call(t,s)}}:n={next:D,error:D};let o=typeof r=="function"?{next:s=>{try{r(s)}catch(c){n.next(c)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(o)}catch(s){(u=o.error)==null||u.call(o,s)}return new E().add(()=>{switch(o.next=D,o.error=D,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return A(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var C=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var o;return(o=n.error)==null?void 0:o.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var Ie=class{constructor(){this.log$=new C;this.logs=[];this.log=r=>{let t=he(K({},r),{timestamp:Date.now()});this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(o){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>K({component:r},t))}};function Ut(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Gt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function G(e){return typeof e!="undefined"&&e!==null}function Oe(e){return e==null}function Bt(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Qt(e,r){if(e!=null&&e.length)throw new Error(r)}var $t=(e,r,t)=>new Promise((n,o)=>{r.addEventListener("abort",()=>{s(),f.remove()});let a=()=>{s(),o()},u=()=>{s(),n()},s=()=>{c&&clearTimeout(c),f.removeEventListener("load",u),f.removeEventListener("error",a)},c;t&&(c=window.setTimeout(a,t));let f=document.createElement("script");f.addEventListener("load",u),f.addEventListener("error",a),f.src=e,document.head.appendChild(f)});var Wt,zt=typeof((Wt=window.performance)==null?void 0:Wt.now)=="function"?()=>window.performance.now():()=>Date.now();var Kt=(e,r)=>(...t)=>ge(void 0,null,function*(){var u;let n=r(...t),o=e.aborted,a;for(;!o&&!e.aborted;)try{let s=yield n.next(a);o=(u=s.done)!=null?u:!1,a=s.value}catch(s){yield n.throw(s)}return a});var nr=(l=>(l.Unknown="Unknown",l.Yandex="Yandex",l.Chrome="Chrome",l.Chromium="Chromium",l.Firefox="Firefox",l.Safari="Safari",l.Opera="Opera",l.Edge="Edge",l.SamsungBrowser="SamsungBrowser",l.Rest="Rest",l))(nr||{}),or=(c=>(c.Unknown="Unknown",c.Android="Android",c.iPhone="iPhone",c.iPad="iPad",c.iPod="iPod",c.RestMobile="RestMobile",c.Mac="Mac",c.Desktop="Desktop",c))(or||{}),ne=()=>{let{userAgent:e}=window.navigator,r=/yabrowser/i.test(e)?"Yandex":void 0,t=/samsungbrowser/i.test(e)?"SamsungBrowser":void 0,n=/chrome|crios/i.test(e)?"Chrome":void 0,o=/chromium/i.test(e)?"Chromium":void 0,a=/firefox|fxios/i.test(e)?"Firefox":void 0,u=/webkit|safari|khtml/i.test(e)?"Safari":void 0,s=/opr\//i.test(e)?"Opera":void 0,c=/edg/i.test(e)?"Edge":void 0,f=/android/i.test(e)?"Android":void 0,l=/iphone/i.test(e)?"iPhone":void 0,p=/ipad/i.test(e)?"iPad":void 0,b=/ipod/i.test(e)?"iPod":void 0,d=/mac/i.test(e)?"Mac":void 0,T=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(e)?"RestMobile":void 0;return{browser:r||t||a||s||c||n||o||u||"Rest",device:f||l||p||b||T||d||"Desktop"}},Yt=(e=!1)=>{let t=["iPhone","iPad","iPod"].includes(ne().device);if(!e)return t;let{userAgent:n,maxTouchPoints:o}=window.navigator;return!!(t||/macintosh/i.test(n)&&o>0)},Ht=()=>{let{userAgent:e}=window.navigator,r=e.match(/Version\/(\d+(\.\d+)?)/i);if(!r)return null;let t=r[1],n=parseFloat(t);return isNaN(n)?null:n},Xt=()=>ne().device==="Android",Jt=()=>["Mac","iPhone","iPad","iPod"].includes(ne().device),Zt=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)};var en=(e,{start:r=0,factor:t=2,max:n=1/0,min:o=r,random:a=0}={})=>{let u=r;return u*=Mt(t,e),u*=1+(Math.random()*a*2-a),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,o),u};var xe={};kt(xe,{clear:()=>Cs,get:()=>Ps,has:()=>_s,isPersistent:()=>Rs,remove:()=>Ls,set:()=>As});var O,B,ir=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(B!==void 0)return B;try{localStorage.setItem(ir,"test"),localStorage.removeItem(ir),B=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(ir),B=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)B=2;else throw r}else throw e}return B===2&&(O=new Map),B},Rs=()=>Y()===0,Ps=e=>{var t,n;let r=Y();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:A(r)}},As=(e,r)=>{let t=Y();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:A(t)}},_s=e=>{var t;let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return A(r),!1}},Ls=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:A(r)}},Cs=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:A(e)}};var rn=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Ee=(l=>(l.INVARIANT="Invariant quality",l.Q_144P="144p",l.Q_240P="240p",l.Q_360P="360p",l.Q_480P="480p",l.Q_720P="720p",l.Q_1080P="1080p",l.Q_1440P="1440p",l.Q_2160P="2160p",l.Q_4320P="4320p",l))(Ee||{});var w={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},tn=(e,r)=>w[e].height>w[r].height,nn=(e,r)=>w[e].height>=w[r].height,we=(e,r)=>w[e].height<w[r].height,on=(e,r)=>w[e].height<=w[r].height,an=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:we(r,t)?1:-1)[0],sn=Object.keys(w).sort((e,r)=>we(e,r)?-1:1),un=(e,r=.02)=>[...sn].find(n=>w[n].height*(1+r)>=e),ln=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return sn.find(o=>{let a=w[o];return a.width>=n&&a.height>=t})},cn=e=>w[e].height,Se=e=>e==="Invariant quality",fn=e=>e.every(r=>!Se(r));function pn(e){if(Se(e))throw new Error("Expected exact quality")}var vn=(e,r)=>{let t={};for(let n of Object.keys(r)){let o=r[n],a=e[n];Array.isArray(o)&&Array.isArray(a)?t[n]=a:typeof o=="object"&&typeof a=="object"?t[n]=vn(a,o):t[n]=n in e?a:o}return t};var Ns=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function qe(e,r=0,t){let n,o,a,u,s,c,f=0,l=!1,p=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(l=!!t.leading,p="maxWait"in t,a=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):a,b="trailing"in t?!!t.trailing:b);function T(m){let q=n,U=o;return n=o=void 0,f=m,u=e.apply(U,q),u}function y(m,q){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return f=m,s=y(me,r),l?T(m):u}function g(m){let q=m-c,U=m-f,Lt=r-q;return p?Math.min(Lt,a-U):Lt}function At(m){let q=m-c,U=m-f;return c===void 0||q>=r||q<0||p&&U>=a}function me(){let m=Date.now();if(At(m))return _t(m);s=y(me,g(m))}function _t(m){return s=void 0,b&&n?T(m):(n=o=void 0,u)}function Ts(){s!==void 0&&I(s),f=0,n=c=o=s=void 0}function ms(){return s===void 0?u:_t(Date.now())}function ys(){return s!==void 0}function ye(...m){let q=Date.now(),U=At(q);if(n=m,o=this,c=q,U){if(s===void 0)return h(c);if(p)return s=y(me,r),T(c)}return s===void 0&&(s=y(me,r)),u}return ye.cancel=Ts,ye.flush=ms,ye.pending=ys,ye}var Re=(e,r=0,t)=>qe(e,r,he(K(K({},{leading:!0,trailing:!0}),t),{maxWait:r}));var oe=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let o=r(e[n],n,e,t);if(o!==void 0){t[n]=o;continue}}typeof e[n]=="object"?t[n]=oe(e[n],r):t[n]=e[n]}return t};var bn=e=>oe(e);var js=300,dn=(e,r=js)=>new v(t=>{let{width:n,height:o}=e.getBoundingClientRect();if(t.next({width:n,height:o}),!window.ResizeObserver)return;let a=new ResizeObserver(Re(u=>{let s=u[0];if(!s)return;let c,f;s.contentBoxSize&&s.contentBoxSize[0]?(f=s.contentBoxSize[0].blockSize,c=s.contentBoxSize[0].inlineSize):s.contentRect&&(c=s.contentRect.width,f=s.contentRect.height),G(c)&&G(f)&&t.next({width:c,height:f})},r));return a.observe(e),()=>a.disconnect()});var Tn=e=>{e.removeAttribute("src"),e.load()};var ie=class extends C{constructor(t){super();this.value=t}next(t){super.next(this.value=t)}error(t){super.error(this.value=t)}getValue(){return this.value}_subscribe(t){let n=super._subscribe(t);return t.next(this.value),n}};function ar(e){return new v(r=>{let t={},n=Object.keys(e).length,o=a=>u=>{a in t||n--,t[a]=u,n===0&&r.next(t)};return Object.entries(e).reduce((a,[u,s])=>a.add(s.subscribe(o(u))),new E)})}function sr(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var mn=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var yn=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var hn=e=>new v(r=>{e.forEach(t=>r.next(t))});var gn=(e,r)=>new v(t=>{let n=o=>t.next(o);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function lr(e){return r=>new v(t=>r.subscribe(new ur(t,e)))}var ur=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ms={leading:!1,trailing:!0};function fr(e,r=Ms){return t=>new v(n=>t.subscribe(new cr(n,e,r)))}var cr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,G(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ks={leading:!0,trailing:!1};function vr(e,r=ks){return t=>new v(n=>t.subscribe(new pr(n,e,r)))}var pr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Oe(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function dr(e){return r=>new v(t=>r.subscribe(new br(t,e)))}var br=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function mr(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new Tr(t,e)))}var In={},Tr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=In}next(r){let t;try{t=this.lastValue===In||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ae(e){return r=>new v(t=>r.subscribe(new yr(t,e)))}var yr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function hr(e){return ae(()=>e)}function gr(){return e=>new v(r=>{let t=!1,n=!1,o=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&o.unsubscribe()},a=>{var u;t=!0,(u=r.error)==null||u.call(r,a),n&&o.unsubscribe()});return n=!0,t&&o.unsubscribe(),o})}function Or(){return e=>new v(r=>e.subscribe(new Ir(r)))}var Ir=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Er(e){return r=>new v(t=>r.subscribe(new xr(t,e)))}var xr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var On=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(On||{});var Pe=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let o=0,a=n.length;o<a;o++)if(n[o].callback===t){n.splice(o,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let o=0,a=n.length;o<a;o++){let u=n[o];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},H=class extends Pe{constructor(){super(),this.listeners||Pe.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},se=class{constructor(){Object.defineProperty(this,"signal",{value:new H,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(o){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(o){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(se.prototype[Symbol.toStringTag]="AbortController",H.prototype[Symbol.toStringTag]="AbortSignal");function Ae(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function wr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=e;if(!Ae({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||o)&&(a=function(f,l){let p;l&&l.signal&&(p=l.signal,delete l.signal);let b=new t(f,l);return p&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:p}),b},a.prototype=t.prototype);let u=r;return{fetch:(c,f)=>{let l=a&&a.prototype.isPrototypeOf(c)?c.signal:f?f.signal:void 0;if(l){let p;try{p=new DOMException("Aborted","AbortError")}catch(d){p=new Error("Aborted"),p.name="AbortError"}if(l.aborted)return Promise.reject(p);let b=new Promise((d,T)=>{l.addEventListener("abort",()=>T(p),{once:!0})});return f&&f.signal&&delete f.signal,Promise.race([b,u(c,f)])}return u(c,f)},Request:a}}var ue=Ae({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),xn=ue?wr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,En=ue?xn.fetch:window.fetch,cd=ue?xn.Request:window.Request,fd=ue?se:window.AbortController,pd=ue?H:window.AbortSignal;var vs=Ss(ps(),1);var bs=(p=>(p.Armenian="58",p.Azerbaijani="57",p.Belarusian="114",p.English="3",p.Kazakh="97",p.Portuguese="73",p.Russian="0",p.Spanish="4",p.Ukrainian="1",p.Uzbek="65",p.Vietnamese="75",p))(bs||{}),Ap="vk.com",_p=(e,r,t)=>ge(void 0,null,function*(){let n=new URL(`https://${Ap}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=yield(yield En(n.toString())).json();return Lp(a,t)}),Lp=(e,r)=>(0,vs.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Cp(n)])),Cp=e=>Array.isArray(e)?e[0]:e;var ds=(t=>(t.RU="ru",t.EN="en",t))(ds||{});
6
+ "use strict";var pa=Object.create;var te=Object.defineProperty,fa=Object.defineProperties,va=Object.getOwnPropertyDescriptor,ba=Object.getOwnPropertyDescriptors,da=Object.getOwnPropertyNames,_t=Object.getOwnPropertySymbols,Ta=Object.getPrototypeOf,Ct=Object.prototype.hasOwnProperty,ma=Object.prototype.propertyIsEnumerable;var Lt=Math.pow,At=(e,r,t)=>r in e?te(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,z=(e,r)=>{for(var t in r||(r={}))Ct.call(r,t)&&At(e,t,r[t]);if(_t)for(var t of _t(r))ma.call(r,t)&&At(e,t,r[t]);return e},ge=(e,r)=>fa(e,ba(r));var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Nt=(e,r)=>{for(var t in r)te(e,t,{get:r[t],enumerable:!0})},jt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of da(r))!Ct.call(e,i)&&i!==t&&te(e,i,{get:()=>r[i],enumerable:!(n=va(r,i))||n.enumerable});return e};var ha=(e,r,t)=>(t=e!=null?pa(Ta(e)):{},jt(r||!e||!e.__esModule?te(t,"default",{value:e,enumerable:!0}):t,e)),ya=e=>jt(te({},"__esModule",{value:!0}),e);var Ie=(e,r,t)=>new Promise((n,i)=>{var s=c=>{try{a(t.next(c))}catch(l){i(l)}},u=c=>{try{a(t.throw(c))}catch(l){i(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,u);a((t=t.apply(e,r)).next())});var A=o((id,hn)=>{"use strict";hn.exports=function(e){try{return!!e()}catch(r){return!0}}});var ue=o((od,yn)=>{"use strict";var _a=A();yn.exports=!_a(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var N=o((sd,On)=>{"use strict";var gn=ue(),In=Function.prototype,Er=In.call,Aa=gn&&In.bind.bind(Er,Er);On.exports=gn?Aa:function(e){return function(){return Er.apply(e,arguments)}}});var Ce=o((ad,wn)=>{"use strict";var xn=N(),Ca=xn({}.toString),La=xn("".slice);wn.exports=function(e){return La(Ca(e),8,-1)}});var Sn=o((ud,En)=>{"use strict";var Na=N(),ja=A(),Ma=Ce(),Sr=Object,ka=Na("".split);En.exports=ja(function(){return!Sr("z").propertyIsEnumerable(0)})?function(e){return Ma(e)==="String"?ka(e,""):Sr(e)}:Sr});var Le=o((ld,qn)=>{"use strict";qn.exports=function(e){return e==null}});var Ne=o((cd,Rn)=>{"use strict";var Va=Le(),Da=TypeError;Rn.exports=function(e){if(Va(e))throw new Da("Can't call method on "+e);return e}});var H=o((pd,Pn)=>{"use strict";var Fa=Sn(),Ua=Ne();Pn.exports=function(e){return Fa(Ua(e))}});var An=o((fd,_n)=>{"use strict";_n.exports=function(){}});var Q=o((vd,Cn)=>{"use strict";Cn.exports={}});var w=o((qr,Ln)=>{"use strict";var le=function(e){return e&&e.Math===Math&&e};Ln.exports=le(typeof globalThis=="object"&&globalThis)||le(typeof window=="object"&&window)||le(typeof self=="object"&&self)||le(typeof global=="object"&&global)||le(typeof qr=="object"&&qr)||function(){return this}()||Function("return this")()});var E=o((bd,Nn)=>{"use strict";var Rr=typeof document=="object"&&document.all;Nn.exports=typeof Rr=="undefined"&&Rr!==void 0?function(e){return typeof e=="function"||e===Rr}:function(e){return typeof e=="function"}});var kn=o((dd,Mn)=>{"use strict";var Ga=w(),Ba=E(),jn=Ga.WeakMap;Mn.exports=Ba(jn)&&/native code/.test(String(jn))});var j=o((Td,Vn)=>{"use strict";var Qa=E();Vn.exports=function(e){return typeof e=="object"?e!==null:Qa(e)}});var C=o((md,Dn)=>{"use strict";var Wa=A();Dn.exports=!Wa(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var _r=o((hd,Un)=>{"use strict";var $a=w(),Fn=j(),Pr=$a.document,za=Fn(Pr)&&Fn(Pr.createElement);Un.exports=function(e){return za?Pr.createElement(e):{}}});var Ar=o((yd,Gn)=>{"use strict";var Ya=C(),Ka=A(),Ha=_r();Gn.exports=!Ya&&!Ka(function(){return Object.defineProperty(Ha("div"),"a",{get:function(){return 7}}).a!==7})});var Cr=o((gd,Bn)=>{"use strict";var Xa=C(),Ja=A();Bn.exports=Xa&&Ja(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var W=o((Id,Qn)=>{"use strict";var Za=j(),eu=String,ru=TypeError;Qn.exports=function(e){if(Za(e))return e;throw new ru(eu(e)+" is not an object")}});var F=o((Od,Wn)=>{"use strict";var tu=ue(),je=Function.prototype.call;Wn.exports=tu?je.bind(je):function(){return je.apply(je,arguments)}});var Me=o((xd,$n)=>{"use strict";$n.exports={}});var jr=o((wd,Yn)=>{"use strict";var Lr=Me(),Nr=w(),nu=E(),zn=function(e){return nu(e)?e:void 0};Yn.exports=function(e,r){return arguments.length<2?zn(Lr[e])||zn(Nr[e]):Lr[e]&&Lr[e][r]||Nr[e]&&Nr[e][r]}});var Mr=o((Ed,Kn)=>{"use strict";var iu=N();Kn.exports=iu({}.isPrototypeOf)});var Zn=o((Sd,Jn)=>{"use strict";var ou=w(),Hn=ou.navigator,Xn=Hn&&Hn.userAgent;Jn.exports=Xn?String(Xn):""});var si=o((qd,oi)=>{"use strict";var ii=w(),kr=Zn(),ei=ii.process,ri=ii.Deno,ti=ei&&ei.versions||ri&&ri.version,ni=ti&&ti.v8,R,ke;ni&&(R=ni.split("."),ke=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!ke&&kr&&(R=kr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=kr.match(/Chrome\/(\d+)/),R&&(ke=+R[1])));oi.exports=ke});var Vr=o((Rd,ui)=>{"use strict";var ai=si(),su=A(),au=w(),uu=au.String;ui.exports=!!Object.getOwnPropertySymbols&&!su(function(){var e=Symbol("symbol detection");return!uu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ai&&ai<41})});var Dr=o((Pd,li)=>{"use strict";var lu=Vr();li.exports=lu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Fr=o((_d,ci)=>{"use strict";var cu=jr(),pu=E(),fu=Mr(),vu=Dr(),bu=Object;ci.exports=vu?function(e){return typeof e=="symbol"}:function(e){var r=cu("Symbol");return pu(r)&&fu(r.prototype,bu(e))}});var Ve=o((Ad,pi)=>{"use strict";var du=String;pi.exports=function(e){try{return du(e)}catch(r){return"Object"}}});var ce=o((Cd,fi)=>{"use strict";var Tu=E(),mu=Ve(),hu=TypeError;fi.exports=function(e){if(Tu(e))return e;throw new hu(mu(e)+" is not a function")}});var De=o((Ld,vi)=>{"use strict";var yu=ce(),gu=Le();vi.exports=function(e,r){var t=e[r];return gu(t)?void 0:yu(t)}});var di=o((Nd,bi)=>{"use strict";var Ur=F(),Gr=E(),Br=j(),Iu=TypeError;bi.exports=function(e,r){var t,n;if(r==="string"&&Gr(t=e.toString)&&!Br(n=Ur(t,e))||Gr(t=e.valueOf)&&!Br(n=Ur(t,e))||r!=="string"&&Gr(t=e.toString)&&!Br(n=Ur(t,e)))return n;throw new Iu("Can't convert object to primitive value")}});var pe=o((jd,Ti)=>{"use strict";Ti.exports=!0});var yi=o((Md,hi)=>{"use strict";var mi=w(),Ou=Object.defineProperty;hi.exports=function(e,r){try{Ou(mi,e,{value:r,configurable:!0,writable:!0})}catch(t){mi[e]=r}return r}});var Fe=o((kd,Oi)=>{"use strict";var xu=pe(),wu=w(),Eu=yi(),gi="__core-js_shared__",Ii=Oi.exports=wu[gi]||Eu(gi,{});(Ii.versions||(Ii.versions=[])).push({version:"3.38.0",mode:xu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Qr=o((Vd,wi)=>{"use strict";var xi=Fe();wi.exports=function(e,r){return xi[e]||(xi[e]=r||{})}});var Wr=o((Dd,Ei)=>{"use strict";var Su=Ne(),qu=Object;Ei.exports=function(e){return qu(Su(e))}});var M=o((Fd,Si)=>{"use strict";var Ru=N(),Pu=Wr(),_u=Ru({}.hasOwnProperty);Si.exports=Object.hasOwn||function(r,t){return _u(Pu(r),t)}});var $r=o((Ud,qi)=>{"use strict";var Au=N(),Cu=0,Lu=Math.random(),Nu=Au(1 .toString);qi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Nu(++Cu+Lu,36)}});var k=o((Gd,Pi)=>{"use strict";var ju=w(),Mu=Qr(),Ri=M(),ku=$r(),Vu=Vr(),Du=Dr(),X=ju.Symbol,zr=Mu("wks"),Fu=Du?X.for||X:X&&X.withoutSetter||ku;Pi.exports=function(e){return Ri(zr,e)||(zr[e]=Vu&&Ri(X,e)?X[e]:Fu("Symbol."+e)),zr[e]}});var Li=o((Bd,Ci)=>{"use strict";var Uu=F(),_i=j(),Ai=Fr(),Gu=De(),Bu=di(),Qu=k(),Wu=TypeError,$u=Qu("toPrimitive");Ci.exports=function(e,r){if(!_i(e)||Ai(e))return e;var t=Gu(e,$u),n;if(t){if(r===void 0&&(r="default"),n=Uu(t,e,r),!_i(n)||Ai(n))return n;throw new Wu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Bu(e,r)}});var Yr=o((Qd,Ni)=>{"use strict";var zu=Li(),Yu=Fr();Ni.exports=function(e){var r=zu(e,"string");return Yu(r)?r:r+""}});var J=o(Mi=>{"use strict";var Ku=C(),Hu=Ar(),Xu=Cr(),Ue=W(),ji=Yr(),Ju=TypeError,Kr=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,Hr="enumerable",Xr="configurable",Jr="writable";Mi.f=Ku?Xu?function(r,t,n){if(Ue(r),t=ji(t),Ue(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Jr in n&&!n[Jr]){var i=Zu(r,t);i&&i[Jr]&&(r[t]=n.value,n={configurable:Xr in n?n[Xr]:i[Xr],enumerable:Hr in n?n[Hr]:i[Hr],writable:!1})}return Kr(r,t,n)}:Kr:function(r,t,n){if(Ue(r),t=ji(t),Ue(n),Hu)try{return Kr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Ju("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var fe=o(($d,ki)=>{"use strict";ki.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Z=o((zd,Vi)=>{"use strict";var el=C(),rl=J(),tl=fe();Vi.exports=el?function(e,r,t){return rl.f(e,r,tl(1,t))}:function(e,r,t){return e[r]=t,e}});var Ge=o((Yd,Fi)=>{"use strict";var nl=Qr(),il=$r(),Di=nl("keys");Fi.exports=function(e){return Di[e]||(Di[e]=il(e))}});var Be=o((Kd,Ui)=>{"use strict";Ui.exports={}});var Wi=o((Hd,Qi)=>{"use strict";var ol=kn(),Bi=w(),sl=j(),al=Z(),Zr=M(),et=Fe(),ul=Ge(),ll=Be(),Gi="Object already initialized",rt=Bi.TypeError,cl=Bi.WeakMap,Qe,ve,We,pl=function(e){return We(e)?ve(e):Qe(e,{})},fl=function(e){return function(r){var t;if(!sl(r)||(t=ve(r)).type!==e)throw new rt("Incompatible receiver, "+e+" required");return t}};ol||et.state?(P=et.state||(et.state=new cl),P.get=P.get,P.has=P.has,P.set=P.set,Qe=function(e,r){if(P.has(e))throw new rt(Gi);return r.facade=e,P.set(e,r),r},ve=function(e){return P.get(e)||{}},We=function(e){return P.has(e)}):($=ul("state"),ll[$]=!0,Qe=function(e,r){if(Zr(e,$))throw new rt(Gi);return r.facade=e,al(e,$,r),r},ve=function(e){return Zr(e,$)?e[$]:{}},We=function(e){return Zr(e,$)});var P,$;Qi.exports={set:Qe,get:ve,has:We,enforce:pl,getterFor:fl}});var Hi=o((Xd,Ki)=>{"use strict";var vl=ue(),Yi=Function.prototype,$i=Yi.apply,zi=Yi.call;Ki.exports=typeof Reflect=="object"&&Reflect.apply||(vl?zi.bind($i):function(){return zi.apply($i,arguments)})});var tt=o((Jd,Xi)=>{"use strict";var bl=Ce(),dl=N();Xi.exports=function(e){if(bl(e)==="Function")return dl(e)}});var ro=o(eo=>{"use strict";var Ji={}.propertyIsEnumerable,Zi=Object.getOwnPropertyDescriptor,Tl=Zi&&!Ji.call({1:2},1);eo.f=Tl?function(r){var t=Zi(this,r);return!!t&&t.enumerable}:Ji});var io=o(no=>{"use strict";var ml=C(),hl=F(),yl=ro(),gl=fe(),Il=H(),Ol=Yr(),xl=M(),wl=Ar(),to=Object.getOwnPropertyDescriptor;no.f=ml?to:function(r,t){if(r=Il(r),t=Ol(t),wl)try{return to(r,t)}catch(n){}if(xl(r,t))return gl(!hl(yl.f,r,t),r[t])}});var so=o((rT,oo)=>{"use strict";var El=A(),Sl=E(),ql=/#|\.prototype\./,be=function(e,r){var t=Pl[Rl(e)];return t===Al?!0:t===_l?!1:Sl(r)?El(r):!!r},Rl=be.normalize=function(e){return String(e).replace(ql,".").toLowerCase()},Pl=be.data={},_l=be.NATIVE="N",Al=be.POLYFILL="P";oo.exports=be});var nt=o((tT,uo)=>{"use strict";var ao=tt(),Cl=ce(),Ll=ue(),Nl=ao(ao.bind);uo.exports=function(e,r){return Cl(e),r===void 0?e:Ll?Nl(e,r):function(){return e.apply(r,arguments)}}});var it=o((nT,co)=>{"use strict";var de=w(),jl=Hi(),Ml=tt(),kl=E(),Vl=io().f,Dl=so(),ee=Me(),Fl=nt(),re=Z(),lo=M();Fe();var Ul=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return jl(e,this,arguments)};return r.prototype=e.prototype,r};co.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,s=e.proto,u=n?de:i?de[t]:de[t]&&de[t].prototype,a=n?ee:ee[t]||re(ee,t,{})[t],c=a.prototype,l,p,f,b,d,m,h,I,y;for(b in r)l=Dl(n?b:t+(i?".":"#")+b,e.forced),p=!l&&u&&lo(u,b),m=a[b],p&&(e.dontCallGetSet?(y=Vl(u,b),h=y&&y.value):h=u[b]),d=p&&h?h:r[b],!(!l&&!s&&typeof m==typeof d)&&(e.bind&&p?I=Fl(d,de):e.wrap&&p?I=Ul(d):s&&kl(d)?I=Ml(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&re(I,"sham",!0),re(a,b,I),s&&(f=t+"Prototype",lo(ee,f)||re(ee,f,{}),re(ee[f],b,d),e.real&&c&&(l||!c[b])&&re(c,b,d)))}});var vo=o((iT,fo)=>{"use strict";var ot=C(),Gl=M(),po=Function.prototype,Bl=ot&&Object.getOwnPropertyDescriptor,st=Gl(po,"name"),Ql=st&&function(){}.name==="something",Wl=st&&(!ot||ot&&Bl(po,"name").configurable);fo.exports={EXISTS:st,PROPER:Ql,CONFIGURABLE:Wl}});var To=o((oT,bo)=>{"use strict";var $l=Math.ceil,zl=Math.floor;bo.exports=Math.trunc||function(r){var t=+r;return(t>0?zl:$l)(t)}});var at=o((sT,mo)=>{"use strict";var Yl=To();mo.exports=function(e){var r=+e;return r!==r||r===0?0:Yl(r)}});var yo=o((aT,ho)=>{"use strict";var Kl=at(),Hl=Math.max,Xl=Math.min;ho.exports=function(e,r){var t=Kl(e);return t<0?Hl(t+r,0):Xl(t,r)}});var Io=o((uT,go)=>{"use strict";var Jl=at(),Zl=Math.min;go.exports=function(e){var r=Jl(e);return r>0?Zl(r,9007199254740991):0}});var ut=o((lT,Oo)=>{"use strict";var ec=Io();Oo.exports=function(e){return ec(e.length)}});var Eo=o((cT,wo)=>{"use strict";var rc=H(),tc=yo(),nc=ut(),xo=function(e){return function(r,t,n){var i=rc(r),s=nc(i);if(s===0)return!e&&-1;var u=tc(n,s),a;if(e&&t!==t){for(;s>u;)if(a=i[u++],a!==a)return!0}else for(;s>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};wo.exports={includes:xo(!0),indexOf:xo(!1)}});var Ro=o((pT,qo)=>{"use strict";var ic=N(),lt=M(),oc=H(),sc=Eo().indexOf,ac=Be(),So=ic([].push);qo.exports=function(e,r){var t=oc(e),n=0,i=[],s;for(s in t)!lt(ac,s)&&lt(t,s)&&So(i,s);for(;r.length>n;)lt(t,s=r[n++])&&(~sc(i,s)||So(i,s));return i}});var ct=o((fT,Po)=>{"use strict";Po.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Ao=o((vT,_o)=>{"use strict";var uc=Ro(),lc=ct();_o.exports=Object.keys||function(r){return uc(r,lc)}});var Lo=o(Co=>{"use strict";var cc=C(),pc=Cr(),fc=J(),vc=W(),bc=H(),dc=Ao();Co.f=cc&&!pc?Object.defineProperties:function(r,t){vc(r);for(var n=bc(t),i=dc(t),s=i.length,u=0,a;s>u;)fc.f(r,a=i[u++],n[a]);return r}});var jo=o((dT,No)=>{"use strict";var Tc=jr();No.exports=Tc("document","documentElement")});var bt=o((TT,Go)=>{"use strict";var mc=W(),hc=Lo(),Mo=ct(),yc=Be(),gc=jo(),Ic=_r(),Oc=Ge(),ko=">",Vo="<",ft="prototype",vt="script",Fo=Oc("IE_PROTO"),pt=function(){},Uo=function(e){return Vo+vt+ko+e+Vo+"/"+vt+ko},Do=function(e){e.write(Uo("")),e.close();var r=e.parentWindow.Object;return e=null,r},xc=function(){var e=Ic("iframe"),r="java"+vt+":",t;return e.style.display="none",gc.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Uo("document.F=Object")),t.close(),t.F},$e,ze=function(){try{$e=new ActiveXObject("htmlfile")}catch(r){}ze=typeof document!="undefined"?document.domain&&$e?Do($e):xc():Do($e);for(var e=Mo.length;e--;)delete ze[ft][Mo[e]];return ze()};yc[Fo]=!0;Go.exports=Object.create||function(r,t){var n;return r!==null?(pt[ft]=mc(r),n=new pt,pt[ft]=null,n[Fo]=r):n=ze(),t===void 0?n:hc.f(n,t)}});var Qo=o((mT,Bo)=>{"use strict";var wc=A();Bo.exports=!wc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Tt=o((hT,$o)=>{"use strict";var Ec=M(),Sc=E(),qc=Wr(),Rc=Ge(),Pc=Qo(),Wo=Rc("IE_PROTO"),dt=Object,_c=dt.prototype;$o.exports=Pc?dt.getPrototypeOf:function(e){var r=qc(e);if(Ec(r,Wo))return r[Wo];var t=r.constructor;return Sc(t)&&r instanceof t?t.prototype:r instanceof dt?_c:null}});var mt=o((yT,zo)=>{"use strict";var Ac=Z();zo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Ac(e,r,t),e}});var It=o((gT,Ho)=>{"use strict";var Cc=A(),Lc=E(),Nc=j(),jc=bt(),Yo=Tt(),Mc=mt(),kc=k(),Vc=pe(),gt=kc("iterator"),Ko=!1,V,ht,yt;[].keys&&(yt=[].keys(),"next"in yt?(ht=Yo(Yo(yt)),ht!==Object.prototype&&(V=ht)):Ko=!0);var Dc=!Nc(V)||Cc(function(){var e={};return V[gt].call(e)!==e});Dc?V={}:Vc&&(V=jc(V));Lc(V[gt])||Mc(V,gt,function(){return this});Ho.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:Ko}});var Ye=o((IT,Jo)=>{"use strict";var Fc=k(),Uc=Fc("toStringTag"),Xo={};Xo[Uc]="z";Jo.exports=String(Xo)==="[object z]"});var Ot=o((OT,Zo)=>{"use strict";var Gc=Ye(),Bc=E(),Ke=Ce(),Qc=k(),Wc=Qc("toStringTag"),$c=Object,zc=Ke(function(){return arguments}())==="Arguments",Yc=function(e,r){try{return e[r]}catch(t){}};Zo.exports=Gc?Ke:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Yc(r=$c(e),Wc))=="string"?t:zc?Ke(r):(n=Ke(r))==="Object"&&Bc(r.callee)?"Arguments":n}});var rs=o((xT,es)=>{"use strict";var Kc=Ye(),Hc=Ot();es.exports=Kc?{}.toString:function(){return"[object "+Hc(this)+"]"}});var He=o((wT,ns)=>{"use strict";var Xc=Ye(),Jc=J().f,Zc=Z(),ep=M(),rp=rs(),tp=k(),ts=tp("toStringTag");ns.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(ep(i,ts)||Jc(i,ts,{configurable:!0,value:r}),n&&!Xc&&Zc(i,"toString",rp))}});var os=o((ET,is)=>{"use strict";var np=It().IteratorPrototype,ip=bt(),op=fe(),sp=He(),ap=Q(),up=function(){return this};is.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=ip(np,{next:op(+!n,t)}),sp(e,i,!1,!0),ap[i]=up,e}});var as=o((ST,ss)=>{"use strict";var lp=N(),cp=ce();ss.exports=function(e,r,t){try{return lp(cp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ls=o((qT,us)=>{"use strict";var pp=j();us.exports=function(e){return pp(e)||e===null}});var ps=o((RT,cs)=>{"use strict";var fp=ls(),vp=String,bp=TypeError;cs.exports=function(e){if(fp(e))return e;throw new bp("Can't set "+vp(e)+" as a prototype")}});var vs=o((PT,fs)=>{"use strict";var dp=as(),Tp=j(),mp=Ne(),hp=ps();fs.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=dp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,s){return mp(i),hp(s),Tp(i)&&(e?t(i,s):i.__proto__=s),i}}():void 0)});var ws=o((_T,xs)=>{"use strict";var yp=it(),gp=F(),Xe=pe(),Is=vo(),Ip=E(),Op=os(),bs=Tt(),ds=vs(),xp=He(),wp=Z(),xt=mt(),Ep=k(),Ts=Q(),Os=It(),Sp=Is.PROPER,qp=Is.CONFIGURABLE,ms=Os.IteratorPrototype,Je=Os.BUGGY_SAFARI_ITERATORS,Te=Ep("iterator"),hs="keys",me="values",ys="entries",gs=function(){return this};xs.exports=function(e,r,t,n,i,s,u){Op(t,r,n);var a=function(y){if(y===i&&b)return b;if(!Je&&y&&y in p)return p[y];switch(y){case hs:return function(){return new t(this,y)};case me:return function(){return new t(this,y)};case ys:return function(){return new t(this,y)}}return function(){return new t(this)}},c=r+" Iterator",l=!1,p=e.prototype,f=p[Te]||p["@@iterator"]||i&&p[i],b=!Je&&f||a(i),d=r==="Array"&&p.entries||f,m,h,I;if(d&&(m=bs(d.call(new e)),m!==Object.prototype&&m.next&&(!Xe&&bs(m)!==ms&&(ds?ds(m,ms):Ip(m[Te])||xt(m,Te,gs)),xp(m,c,!0,!0),Xe&&(Ts[c]=gs))),Sp&&i===me&&f&&f.name!==me&&(!Xe&&qp?wp(p,"name",me):(l=!0,b=function(){return gp(f,this)})),i)if(h={values:a(me),keys:s?b:a(hs),entries:a(ys)},u)for(I in h)(Je||l||!(I in p))&&xt(p,I,h[I]);else yp({target:r,proto:!0,forced:Je||l},h);return(!Xe||u)&&p[Te]!==b&&xt(p,Te,b,{name:i}),Ts[r]=b,h}});var Ss=o((AT,Es)=>{"use strict";Es.exports=function(e,r){return{value:e,done:r}}});var Et=o((CT,As)=>{"use strict";var Rp=H(),wt=An(),qs=Q(),Ps=Wi(),Pp=J().f,_p=ws(),Ze=Ss(),Ap=pe(),Cp=C(),_s="Array Iterator",Lp=Ps.set,Np=Ps.getterFor(_s);As.exports=_p(Array,"Array",function(e,r){Lp(this,{type:_s,target:Rp(e),index:0,kind:r})},function(){var e=Np(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Ze(void 0,!0);switch(e.kind){case"keys":return Ze(t,!1);case"values":return Ze(r[t],!1)}return Ze([t,r[t]],!1)},"values");var Rs=qs.Arguments=qs.Array;wt("keys");wt("values");wt("entries");if(!Ap&&Cp&&Rs.name!=="values")try{Pp(Rs,"name",{value:"values"})}catch(e){}});var Ls=o((LT,Cs)=>{"use strict";var jp=k(),Mp=Q(),kp=jp("iterator"),Vp=Array.prototype;Cs.exports=function(e){return e!==void 0&&(Mp.Array===e||Vp[kp]===e)}});var St=o((NT,js)=>{"use strict";var Dp=Ot(),Ns=De(),Fp=Le(),Up=Q(),Gp=k(),Bp=Gp("iterator");js.exports=function(e){if(!Fp(e))return Ns(e,Bp)||Ns(e,"@@iterator")||Up[Dp(e)]}});var ks=o((jT,Ms)=>{"use strict";var Qp=F(),Wp=ce(),$p=W(),zp=Ve(),Yp=St(),Kp=TypeError;Ms.exports=function(e,r){var t=arguments.length<2?Yp(e):r;if(Wp(t))return $p(Qp(t,e));throw new Kp(zp(e)+" is not iterable")}});var Fs=o((MT,Ds)=>{"use strict";var Hp=F(),Vs=W(),Xp=De();Ds.exports=function(e,r,t){var n,i;Vs(e);try{if(n=Xp(e,"return"),!n){if(r==="throw")throw t;return t}n=Hp(n,e)}catch(s){i=!0,n=s}if(r==="throw")throw t;if(i)throw n;return Vs(n),t}});var Ws=o((kT,Qs)=>{"use strict";var Jp=nt(),Zp=F(),ef=W(),rf=Ve(),tf=Ls(),nf=ut(),Us=Mr(),of=ks(),sf=St(),Gs=Fs(),af=TypeError,er=function(e,r){this.stopped=e,this.result=r},Bs=er.prototype;Qs.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),s=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),c=Jp(r,n),l,p,f,b,d,m,h,I=function(g){return l&&Gs(l,"normal",g),new er(!0,g)},y=function(g){return i?(ef(g),a?c(g[0],g[1],I):c(g[0],g[1])):a?c(g,I):c(g)};if(s)l=e.iterator;else if(u)l=e;else{if(p=sf(e),!p)throw new af(rf(e)+" is not iterable");if(tf(p)){for(f=0,b=nf(e);b>f;f++)if(d=y(e[f]),d&&Us(Bs,d))return d;return new er(!1)}l=of(e,p)}for(m=s?e.next:l.next;!(h=Zp(m,l)).done;){try{d=y(h.value)}catch(g){Gs(l,"throw",g)}if(typeof d=="object"&&d&&Us(Bs,d))return d}return new er(!1)}});var zs=o((VT,$s)=>{"use strict";var uf=C(),lf=J(),cf=fe();$s.exports=function(e,r,t){uf?lf.f(e,r,cf(0,t)):e[r]=t}});var Ys=o(()=>{"use strict";var pf=it(),ff=Ws(),vf=zs();pf({target:"Object",stat:!0},{fromEntries:function(r){var t={};return ff(r,function(n,i){vf(t,n,i)},{AS_ENTRIES:!0}),t}})});var Hs=o((UT,Ks)=>{"use strict";Et();Ys();var bf=Me();Ks.exports=bf.Object.fromEntries});var Js=o((GT,Xs)=>{"use strict";Xs.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var ea=o(()=>{"use strict";Et();var df=Js(),Tf=w(),mf=He(),Zs=Q();for(rr in df)mf(Tf[rr],rr),Zs[rr]=Zs.Array;var rr});var ta=o((WT,ra)=>{"use strict";var hf=Hs();ea();ra.exports=hf});var ia=o(($T,na)=>{"use strict";var yf=ta();na.exports=yf});var wf={};Nt(wf,{ErrorCategory:()=>dn,InterfaceLanguage:()=>aa,Logger:()=>Oe,Observable:()=>v,Subject:()=>L,Subscription:()=>x,VERSION:()=>Mt,VKNumericLanguage:()=>sa,ValueSubject:()=>ie,VideoQuality:()=>Ee,abortable:()=>Wt,addScript:()=>Gt,areQualitiesExact:()=>nn,assertEmptyArray:()=>Ut,assertNever:()=>_,assertNonNullable:()=>Vt,assertNotEmptyArray:()=>Ft,assertNullable:()=>Dt,assertQualityIsExact:()=>on,buffer:()=>ur,checkNever:()=>kt,clearVideoElement:()=>ln,clientChecker:()=>$t,cloneDeep:()=>an,cloneDeepWith:()=>ne,combine:()=>or,debounce:()=>cr,debounceFn:()=>Re,detectEmbed:()=>Yt,fillWithDefault:()=>sn,filter:()=>br,filterChanged:()=>Tr,fromEvent:()=>vn,getExponentialDelay:()=>zt,getHighestQuality:()=>Jt,interval:()=>pn,isHigher:()=>Kt,isHigherOrEqual:()=>Ht,isInvariantQuality:()=>qe,isLower:()=>Se,isLowerOrEqual:()=>Xt,isMobile:()=>nr,isNonNullable:()=>G,isNullable:()=>xe,loadVKLangPack:()=>If,map:()=>oe,mapTo:()=>hr,merge:()=>sr,noop:()=>D,now:()=>Qt,observableFrom:()=>fn,observeElementSize:()=>un,once:()=>yr,pairwise:()=>Ir,safeStorage:()=>we,tap:()=>xr,throttle:()=>fr,throttleFn:()=>Pe,timeCodeToString:()=>Sa,timeout:()=>cn,videoHeightToQuality:()=>en,videoQualityToHeight:()=>tn,videoSizeToQuality:()=>rn});module.exports=ya(wf);var Mt="1.0.39-beta.0";var x=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var _=e=>{throw new Error(`${e} is value of unexpected type`)},kt=e=>{};var D=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:D}:n={next:a=>t.next(a),error:a=>{var c;return(c=t.error)==null?void 0:c.call(t,a)}}:n={next:D,error:D};let i=typeof r=="function"?{next:a=>{try{r(a)}catch(c){n.next(c)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},s;try{s=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new x().add(()=>{switch(i.next=D,i.error=D,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return _(s)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var L=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var Oe=class{constructor(){this.log$=new L;this.logs=[];this.log=r=>{let t=ge(z({},r),{timestamp:Date.now()});this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>z({component:r},t))}};function Vt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Dt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function G(e){return typeof e!="undefined"&&e!==null}function xe(e){return e==null}function Ft(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Ut(e,r){if(e!=null&&e.length)throw new Error(r)}var Gt=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),l.remove()});let s=()=>{a(),i()},u=()=>{a(),n()},a=()=>{c&&clearTimeout(c),l.removeEventListener("load",u),l.removeEventListener("error",s)},c;t&&(c=window.setTimeout(s,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",s),l.src=e,document.head.appendChild(l)});var Bt,Qt=typeof((Bt=window.performance)==null?void 0:Bt.now)=="function"?()=>window.performance.now():()=>Date.now();var Wt=(e,r)=>(...t)=>Ie(void 0,null,function*(){var u;let n=r(...t),i=e.aborted,s;for(;!i&&!e.aborted;)try{let a=yield n.next(s);i=(u=a.done)!=null?u:!1,s=a.value}catch(a){yield n.throw(a)}return s});var nr=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},tr=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=nr()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,s=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,c=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||c||l||i||s||a||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,s=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||s||a||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},$t=new tr;var zt=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:s=0}={})=>{let u=r;return u*=Lt(t,e),u*=1+(Math.random()*s*2-s),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var we={};Nt(we,{clear:()=>Ea,get:()=>Ia,has:()=>xa,isPersistent:()=>ga,remove:()=>wa,set:()=>Oa});var O,B,ir=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(B!==void 0)return B;try{localStorage.setItem(ir,"test"),localStorage.removeItem(ir),B=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(ir),B=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)B=2;else throw r}else throw e}return B===2&&(O=new Map),B},ga=()=>Y()===0,Ia=e=>{var t,n;let r=Y();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:_(r)}},Oa=(e,r)=>{let t=Y();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:_(t)}},xa=e=>{var t;let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return _(r),!1}},wa=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:_(r)}},Ea=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:_(e)}};var Yt=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Ee=(p=>(p.INVARIANT="Invariant quality",p.Q_144P="144p",p.Q_240P="240p",p.Q_360P="360p",p.Q_480P="480p",p.Q_720P="720p",p.Q_1080P="1080p",p.Q_1440P="1440p",p.Q_2160P="2160p",p.Q_4320P="4320p",p))(Ee||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},Kt=(e,r)=>S[e].height>S[r].height,Ht=(e,r)=>S[e].height>=S[r].height,Se=(e,r)=>S[e].height<S[r].height,Xt=(e,r)=>S[e].height<=S[r].height,Jt=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Se(r,t)?1:-1)[0],Zt=Object.keys(S).sort((e,r)=>Se(e,r)?-1:1),en=(e,r=.02)=>[...Zt].find(n=>S[n].height*(1+r)>=e),rn=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Zt.find(i=>{let s=S[i];return s.width>=n&&s.height>=t})},tn=e=>S[e].height,qe=e=>e==="Invariant quality",nn=e=>e.every(r=>!qe(r));function on(e){if(qe(e))throw new Error("Expected exact quality")}var sn=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],s=e[n];Array.isArray(i)&&Array.isArray(s)?t[n]=s:typeof i=="object"&&typeof s=="object"?t[n]=sn(s,i):t[n]=n in e?s:i}return t};var Sa=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function Re(e,r=0,t){let n,i,s,u,a,c,l=0,p=!1,f=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(p=!!t.leading,f="maxWait"in t,s=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):s,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,U=i;return n=i=void 0,l=T,u=e.apply(U,q),u}function h(T,q){return d?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(T)):setTimeout(T,q)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function y(T){return l=T,a=h(he,r),p?m(T):u}function g(T){let q=T-c,U=T-l,Pt=r-q;return f?Math.min(Pt,s-U):Pt}function qt(T){let q=T-c,U=T-l;return c===void 0||q>=r||q<0||f&&U>=s}function he(){let T=Date.now();if(qt(T))return Rt(T);a=h(he,g(T))}function Rt(T){return a=void 0,b&&n?m(T):(n=i=void 0,u)}function ua(){a!==void 0&&I(a),l=0,n=c=i=a=void 0}function la(){return a===void 0?u:Rt(Date.now())}function ca(){return a!==void 0}function ye(...T){let q=Date.now(),U=qt(q);if(n=T,i=this,c=q,U){if(a===void 0)return y(c);if(f)return a=h(he,r),m(c)}return a===void 0&&(a=h(he,r)),u}return ye.cancel=ua,ye.flush=la,ye.pending=ca,ye}var Pe=(e,r=0,t)=>Re(e,r,ge(z(z({},{leading:!0,trailing:!0}),t),{maxWait:r}));var ne=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=ne(e[n],r):t[n]=e[n]}return t};var an=e=>ne(e);var qa=300,un=(e,r=qa)=>new v(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(Pe(u=>{let a=u[0];if(!a)return;let c,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,c=a.contentBoxSize[0].inlineSize):a.contentRect&&(c=a.contentRect.width,l=a.contentRect.height),G(c)&&G(l)&&t.next({width:c,height:l})},r));return s.observe(e),()=>s.disconnect()});var ln=e=>{e.removeAttribute("src"),e.load()};var ie=class extends L{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function or(e){return new v(r=>{let t={},n=Object.keys(e).length,i=s=>u=>{s in t||n--,t[s]=u,n===0&&r.next(t)};return Object.entries(e).reduce((s,[u,a])=>s.add(a.subscribe(i(u))),new x)})}function sr(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var cn=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var pn=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var fn=e=>new v(r=>{e.forEach(t=>r.next(t))});var vn=(e,r)=>new v(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function ur(e){return r=>new v(t=>r.subscribe(new ar(t,e)))}var ar=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ra={leading:!1,trailing:!0};function cr(e,r=Ra){return t=>new v(n=>t.subscribe(new lr(n,e,r)))}var lr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,G(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Pa={leading:!0,trailing:!1};function fr(e,r=Pa){return t=>new v(n=>t.subscribe(new pr(n,e,r)))}var pr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,xe(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function br(e){return r=>new v(t=>r.subscribe(new vr(t,e)))}var vr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Tr(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new dr(t,e)))}var bn={},dr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=bn}next(r){let t;try{t=this.lastValue===bn||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function oe(e){return r=>new v(t=>r.subscribe(new mr(t,e)))}var mr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function hr(e){return oe(()=>e)}function yr(){return e=>new v(r=>{let t=!1,n=!1,i=e.subscribe(s=>{t||(t=!0,r.next(s)),n&&i.unsubscribe()},s=>{var u;t=!0,(u=r.error)==null||u.call(r,s),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Ir(){return e=>new v(r=>e.subscribe(new gr(r)))}var gr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function xr(e){return r=>new v(t=>r.subscribe(new Or(t,e)))}var Or=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var dn=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(dn||{});var _e=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,s=n.length;i<s;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,s=n.length;i<s;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},K=class extends _e{constructor(){super(),this.listeners||_e.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},se=class{constructor(){Object.defineProperty(this,"signal",{value:new K,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(se.prototype[Symbol.toStringTag]="AbortController",K.prototype[Symbol.toStringTag]="AbortSignal");function Ae(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function wr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ae({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:s};let s=t;(s&&!s.prototype.hasOwnProperty("signal")||i)&&(s=function(l,p){let f;p&&p.signal&&(f=p.signal,delete p.signal);let b=new t(l,p);return f&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),b},s.prototype=t.prototype);let u=r;return{fetch:(c,l)=>{let p=s&&s.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(p){let f;try{f=new DOMException("Aborted","AbortError")}catch(d){f=new Error("Aborted"),f.name="AbortError"}if(p.aborted)return Promise.reject(f);let b=new Promise((d,m)=>{p.addEventListener("abort",()=>m(f),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,u(c,l)])}return u(c,l)},Request:s}}var ae=Ae({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Tn=ae?wr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,mn=ae?Tn.fetch:window.fetch,ed=ae?Tn.Request:window.Request,rd=ae?se:window.AbortController,td=ae?K:window.AbortSignal;var oa=ha(ia(),1);var sa=(f=>(f.Armenian="58",f.Azerbaijani="57",f.Belarusian="114",f.English="3",f.Kazakh="97",f.Portuguese="73",f.Russian="0",f.Spanish="4",f.Ukrainian="1",f.Uzbek="65",f.Vietnamese="75",f))(sa||{}),gf="vk.com",If=(e,r,t)=>Ie(void 0,null,function*(){let n=new URL(`https://${gf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let s=yield(yield mn(n.toString())).json();return Of(s,t)}),Of=(e,r)=>(0,oa.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),xf(n)])),xf=e=>Array.isArray(e)?e[0]:e;var aa=(t=>(t.RU="ru",t.EN="en",t))(aa||{});
package/es2015.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.38
3
- * Mon, 12 Aug 2024 11:20:20 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-38/doc/
2
+ * @vkontakte/videoplayer-shared v1.0.39-beta.0
3
+ * Wed, 21 Aug 2024 12:53:10 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-39/doc/
5
5
  */
6
- var ja=Object.create;var be=Object.defineProperty,Ma=Object.defineProperties,ka=Object.getOwnPropertyDescriptor,Da=Object.getOwnPropertyDescriptors,Va=Object.getOwnPropertyNames,gt=Object.getOwnPropertySymbols,Fa=Object.getPrototypeOf,Ot=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable;var xt=Math.pow,It=(e,r,t)=>r in e?be(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,z=(e,r)=>{for(var t in r||(r={}))Ot.call(r,t)&&It(e,t,r[t]);if(gt)for(var t of gt(r))Ua.call(r,t)&&It(e,t,r[t]);return e},de=(e,r)=>Ma(e,Da(r));var i=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ga=(e,r)=>{for(var t in r)be(e,t,{get:r[t],enumerable:!0})},Ba=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Va(r))!Ot.call(e,o)&&o!==t&&be(e,o,{get:()=>r[o],enumerable:!(n=ka(r,o))||n.enumerable});return e};var Qa=(e,r,t)=>(t=e!=null?ja(Fa(e)):{},Ba(r||!e||!e.__esModule?be(t,"default",{value:e,enumerable:!0}):t,e));var Te=(e,r,t)=>new Promise((n,o)=>{var a=c=>{try{s(t.next(c))}catch(f){o(f)}},u=c=>{try{s(t.throw(c))}catch(f){o(f)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,u);s((t=t.apply(e,r)).next())});var A=i((fd,Gt)=>{"use strict";Gt.exports=function(e){try{return!!e()}catch(r){return!0}}});var oe=i((pd,Bt)=>{"use strict";var Ns=A();Bt.exports=!Ns(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var C=i((vd,Wt)=>{"use strict";var Qt=oe(),$t=Function.prototype,vr=$t.call,js=Qt&&$t.bind.bind(vr,vr);Wt.exports=Qt?js:function(e){return function(){return vr.apply(e,arguments)}}});var xe=i((bd,Kt)=>{"use strict";var zt=C(),Ms=zt({}.toString),ks=zt("".slice);Kt.exports=function(e){return ks(Ms(e),8,-1)}});var Ht=i((dd,Yt)=>{"use strict";var Ds=C(),Vs=A(),Fs=xe(),br=Object,Us=Ds("".split);Yt.exports=Vs(function(){return!br("z").propertyIsEnumerable(0)})?function(e){return Fs(e)=="String"?Us(e,""):br(e)}:br});var Ee=i((Td,Xt)=>{"use strict";Xt.exports=function(e){return e==null}});var dr=i((md,Jt)=>{"use strict";var Gs=Ee(),Bs=TypeError;Jt.exports=function(e){if(Gs(e))throw Bs("Can't call method on "+e);return e}});var X=i((yd,Zt)=>{"use strict";var Qs=Ht(),$s=dr();Zt.exports=function(e){return Qs($s(e))}});var rn=i((hd,en)=>{"use strict";en.exports=function(){}});var B=i((gd,tn)=>{"use strict";tn.exports={}});var S=i((nn,on)=>{"use strict";var we=function(e){return e&&e.Math==Math&&e};on.exports=we(typeof globalThis=="object"&&globalThis)||we(typeof window=="object"&&window)||we(typeof self=="object"&&self)||we(typeof global=="object"&&global)||function(){return this}()||nn||Function("return this")()});var mr=i((Id,an)=>{"use strict";var Tr=typeof document=="object"&&document.all,Ws=typeof Tr=="undefined"&&Tr!==void 0;an.exports={all:Tr,IS_HTMLDDA:Ws}});var x=i((Od,un)=>{"use strict";var sn=mr(),zs=sn.all;un.exports=sn.IS_HTMLDDA?function(e){return typeof e=="function"||e===zs}:function(e){return typeof e=="function"}});var fn=i((xd,cn)=>{"use strict";var Ks=S(),Ys=x(),ln=Ks.WeakMap;cn.exports=Ys(ln)&&/native code/.test(String(ln))});var Q=i((Ed,bn)=>{"use strict";var pn=x(),vn=mr(),Hs=vn.all;bn.exports=vn.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:pn(e)||e===Hs}:function(e){return typeof e=="object"?e!==null:pn(e)}});var N=i((wd,dn)=>{"use strict";var Xs=A();dn.exports=!Xs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var hr=i((Sd,mn)=>{"use strict";var Js=S(),Tn=Q(),yr=Js.document,Zs=Tn(yr)&&Tn(yr.createElement);mn.exports=function(e){return Zs?yr.createElement(e):{}}});var gr=i((qd,yn)=>{"use strict";var eu=N(),ru=A(),tu=hr();yn.exports=!eu&&!ru(function(){return Object.defineProperty(tu("div"),"a",{get:function(){return 7}}).a!=7})});var Ir=i((Rd,hn)=>{"use strict";var nu=N(),ou=A();hn.exports=nu&&ou(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var D=i((Pd,gn)=>{"use strict";var iu=Q(),au=String,su=TypeError;gn.exports=function(e){if(iu(e))return e;throw su(au(e)+" is not an object")}});var V=i((Ad,In)=>{"use strict";var uu=oe(),Se=Function.prototype.call;In.exports=uu?Se.bind(Se):function(){return Se.apply(Se,arguments)}});var qe=i((_d,On)=>{"use strict";On.exports={}});var Er=i((Ld,En)=>{"use strict";var Or=qe(),xr=S(),lu=x(),xn=function(e){return lu(e)?e:void 0};En.exports=function(e,r){return arguments.length<2?xn(Or[e])||xn(xr[e]):Or[e]&&Or[e][r]||xr[e]&&xr[e][r]}});var wr=i((Cd,wn)=>{"use strict";var cu=C();wn.exports=cu({}.isPrototypeOf)});var qn=i((Nd,Sn)=>{"use strict";Sn.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var Nn=i((jd,Cn)=>{"use strict";var Ln=S(),Sr=qn(),Rn=Ln.process,Pn=Ln.Deno,An=Rn&&Rn.versions||Pn&&Pn.version,_n=An&&An.v8,R,Re;_n&&(R=_n.split("."),Re=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Re&&Sr&&(R=Sr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Sr.match(/Chrome\/(\d+)/),R&&(Re=+R[1])));Cn.exports=Re});var qr=i((Md,Mn)=>{"use strict";var jn=Nn(),fu=A(),pu=S(),vu=pu.String;Mn.exports=!!Object.getOwnPropertySymbols&&!fu(function(){var e=Symbol();return!vu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jn&&jn<41})});var Rr=i((kd,kn)=>{"use strict";var bu=qr();kn.exports=bu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Pr=i((Dd,Dn)=>{"use strict";var du=Er(),Tu=x(),mu=wr(),yu=Rr(),hu=Object;Dn.exports=yu?function(e){return typeof e=="symbol"}:function(e){var r=du("Symbol");return Tu(r)&&mu(r.prototype,hu(e))}});var Pe=i((Vd,Vn)=>{"use strict";var gu=String;Vn.exports=function(e){try{return gu(e)}catch(r){return"Object"}}});var ie=i((Fd,Fn)=>{"use strict";var Iu=x(),Ou=Pe(),xu=TypeError;Fn.exports=function(e){if(Iu(e))return e;throw xu(Ou(e)+" is not a function")}});var Ae=i((Ud,Un)=>{"use strict";var Eu=ie(),wu=Ee();Un.exports=function(e,r){var t=e[r];return wu(t)?void 0:Eu(t)}});var Bn=i((Gd,Gn)=>{"use strict";var Ar=V(),_r=x(),Lr=Q(),Su=TypeError;Gn.exports=function(e,r){var t,n;if(r==="string"&&_r(t=e.toString)&&!Lr(n=Ar(t,e))||_r(t=e.valueOf)&&!Lr(n=Ar(t,e))||r!=="string"&&_r(t=e.toString)&&!Lr(n=Ar(t,e)))return n;throw Su("Can't convert object to primitive value")}});var ae=i((Bd,Qn)=>{"use strict";Qn.exports=!0});var zn=i((Qd,Wn)=>{"use strict";var $n=S(),qu=Object.defineProperty;Wn.exports=function(e,r){try{qu($n,e,{value:r,configurable:!0,writable:!0})}catch(t){$n[e]=r}return r}});var Cr=i(($d,Yn)=>{"use strict";var Ru=S(),Pu=zn(),Kn="__core-js_shared__",Au=Ru[Kn]||Pu(Kn,{});Yn.exports=Au});var Nr=i((Wd,Xn)=>{"use strict";var _u=ae(),Hn=Cr();(Xn.exports=function(e,r){return Hn[e]||(Hn[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.31.0",mode:_u?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var jr=i((zd,Jn)=>{"use strict";var Lu=dr(),Cu=Object;Jn.exports=function(e){return Cu(Lu(e))}});var j=i((Kd,Zn)=>{"use strict";var Nu=C(),ju=jr(),Mu=Nu({}.hasOwnProperty);Zn.exports=Object.hasOwn||function(r,t){return Mu(ju(r),t)}});var Mr=i((Yd,eo)=>{"use strict";var ku=C(),Du=0,Vu=Math.random(),Fu=ku(1 .toString);eo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Fu(++Du+Vu,36)}});var _=i((Hd,to)=>{"use strict";var Uu=S(),Gu=Nr(),ro=j(),Bu=Mr(),Qu=qr(),$u=Rr(),J=Uu.Symbol,kr=Gu("wks"),Wu=$u?J.for||J:J&&J.withoutSetter||Bu;to.exports=function(e){return ro(kr,e)||(kr[e]=Qu&&ro(J,e)?J[e]:Wu("Symbol."+e)),kr[e]}});var ao=i((Xd,io)=>{"use strict";var zu=V(),no=Q(),oo=Pr(),Ku=Ae(),Yu=Bn(),Hu=_(),Xu=TypeError,Ju=Hu("toPrimitive");io.exports=function(e,r){if(!no(e)||oo(e))return e;var t=Ku(e,Ju),n;if(t){if(r===void 0&&(r="default"),n=zu(t,e,r),!no(n)||oo(n))return n;throw Xu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Yu(e,r)}});var _e=i((Jd,so)=>{"use strict";var Zu=ao(),el=Pr();so.exports=function(e){var r=Zu(e,"string");return el(r)?r:r+""}});var Z=i(lo=>{"use strict";var rl=N(),tl=gr(),nl=Ir(),Le=D(),uo=_e(),ol=TypeError,Dr=Object.defineProperty,il=Object.getOwnPropertyDescriptor,Vr="enumerable",Fr="configurable",Ur="writable";lo.f=rl?nl?function(r,t,n){if(Le(r),t=uo(t),Le(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Ur in n&&!n[Ur]){var o=il(r,t);o&&o[Ur]&&(r[t]=n.value,n={configurable:Fr in n?n[Fr]:o[Fr],enumerable:Vr in n?n[Vr]:o[Vr],writable:!1})}return Dr(r,t,n)}:Dr:function(r,t,n){if(Le(r),t=uo(t),Le(n),tl)try{return Dr(r,t,n)}catch(o){}if("get"in n||"set"in n)throw ol("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var se=i((eT,co)=>{"use strict";co.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var $=i((rT,fo)=>{"use strict";var al=N(),sl=Z(),ul=se();fo.exports=al?function(e,r,t){return sl.f(e,r,ul(1,t))}:function(e,r,t){return e[r]=t,e}});var Ce=i((tT,vo)=>{"use strict";var ll=Nr(),cl=Mr(),po=ll("keys");vo.exports=function(e){return po[e]||(po[e]=cl(e))}});var Ne=i((nT,bo)=>{"use strict";bo.exports={}});var ho=i((oT,yo)=>{"use strict";var fl=fn(),mo=S(),pl=Q(),vl=$(),Gr=j(),Br=Cr(),bl=Ce(),dl=Ne(),To="Object already initialized",Qr=mo.TypeError,Tl=mo.WeakMap,je,ue,Me,ml=function(e){return Me(e)?ue(e):je(e,{})},yl=function(e){return function(r){var t;if(!pl(r)||(t=ue(r)).type!==e)throw Qr("Incompatible receiver, "+e+" required");return t}};fl||Br.state?(P=Br.state||(Br.state=new Tl),P.get=P.get,P.has=P.has,P.set=P.set,je=function(e,r){if(P.has(e))throw Qr(To);return r.facade=e,P.set(e,r),r},ue=function(e){return P.get(e)||{}},Me=function(e){return P.has(e)}):(W=bl("state"),dl[W]=!0,je=function(e,r){if(Gr(e,W))throw Qr(To);return r.facade=e,vl(e,W,r),r},ue=function(e){return Gr(e,W)?e[W]:{}},Me=function(e){return Gr(e,W)});var P,W;yo.exports={set:je,get:ue,has:Me,enforce:ml,getterFor:yl}});var Eo=i((iT,xo)=>{"use strict";var hl=oe(),Oo=Function.prototype,go=Oo.apply,Io=Oo.call;xo.exports=typeof Reflect=="object"&&Reflect.apply||(hl?Io.bind(go):function(){return Io.apply(go,arguments)})});var $r=i((aT,wo)=>{"use strict";var gl=xe(),Il=C();wo.exports=function(e){if(gl(e)==="Function")return Il(e)}});var Po=i(Ro=>{"use strict";var So={}.propertyIsEnumerable,qo=Object.getOwnPropertyDescriptor,Ol=qo&&!So.call({1:2},1);Ro.f=Ol?function(r){var t=qo(this,r);return!!t&&t.enumerable}:So});var Lo=i(_o=>{"use strict";var xl=N(),El=V(),wl=Po(),Sl=se(),ql=X(),Rl=_e(),Pl=j(),Al=gr(),Ao=Object.getOwnPropertyDescriptor;_o.f=xl?Ao:function(r,t){if(r=ql(r),t=Rl(t),Al)try{return Ao(r,t)}catch(n){}if(Pl(r,t))return Sl(!El(wl.f,r,t),r[t])}});var No=i((lT,Co)=>{"use strict";var _l=A(),Ll=x(),Cl=/#|\.prototype\./,le=function(e,r){var t=jl[Nl(e)];return t==kl?!0:t==Ml?!1:Ll(r)?_l(r):!!r},Nl=le.normalize=function(e){return String(e).replace(Cl,".").toLowerCase()},jl=le.data={},Ml=le.NATIVE="N",kl=le.POLYFILL="P";Co.exports=le});var Wr=i((cT,Mo)=>{"use strict";var jo=$r(),Dl=ie(),Vl=oe(),Fl=jo(jo.bind);Mo.exports=function(e,r){return Dl(e),r===void 0?e:Vl?Fl(e,r):function(){return e.apply(r,arguments)}}});var zr=i((fT,Do)=>{"use strict";var ke=S(),Ul=Eo(),Gl=$r(),Bl=x(),Ql=Lo().f,$l=No(),ee=qe(),Wl=Wr(),re=$(),ko=j(),zl=function(e){var r=function(t,n,o){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return Ul(e,this,arguments)};return r.prototype=e.prototype,r};Do.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,a=e.proto,u=n?ke:o?ke[t]:(ke[t]||{}).prototype,s=n?ee:ee[t]||re(ee,t,{})[t],c=s.prototype,f,l,p,b,d,T,y,I,h;for(b in r)f=$l(n?b:t+(o?".":"#")+b,e.forced),l=!f&&u&&ko(u,b),T=s[b],l&&(e.dontCallGetSet?(h=Ql(u,b),y=h&&h.value):y=u[b]),d=l&&y?y:r[b],!(l&&typeof T==typeof d)&&(e.bind&&l?I=Wl(d,ke):e.wrap&&l?I=zl(d):a&&Bl(d)?I=Gl(d):I=d,(e.sham||d&&d.sham||T&&T.sham)&&re(I,"sham",!0),re(s,b,I),a&&(p=t+"Prototype",ko(ee,p)||re(ee,p,{}),re(ee[p],b,d),e.real&&c&&(f||!c[b])&&re(c,b,d)))}});var Uo=i((pT,Fo)=>{"use strict";var Kr=N(),Kl=j(),Vo=Function.prototype,Yl=Kr&&Object.getOwnPropertyDescriptor,Yr=Kl(Vo,"name"),Hl=Yr&&function(){}.name==="something",Xl=Yr&&(!Kr||Kr&&Yl(Vo,"name").configurable);Fo.exports={EXISTS:Yr,PROPER:Hl,CONFIGURABLE:Xl}});var Bo=i((vT,Go)=>{"use strict";var Jl=Math.ceil,Zl=Math.floor;Go.exports=Math.trunc||function(r){var t=+r;return(t>0?Zl:Jl)(t)}});var Hr=i((bT,Qo)=>{"use strict";var ec=Bo();Qo.exports=function(e){var r=+e;return r!==r||r===0?0:ec(r)}});var Wo=i((dT,$o)=>{"use strict";var rc=Hr(),tc=Math.max,nc=Math.min;$o.exports=function(e,r){var t=rc(e);return t<0?tc(t+r,0):nc(t,r)}});var Ko=i((TT,zo)=>{"use strict";var oc=Hr(),ic=Math.min;zo.exports=function(e){return e>0?ic(oc(e),9007199254740991):0}});var Xr=i((mT,Yo)=>{"use strict";var ac=Ko();Yo.exports=function(e){return ac(e.length)}});var Jo=i((yT,Xo)=>{"use strict";var sc=X(),uc=Wo(),lc=Xr(),Ho=function(e){return function(r,t,n){var o=sc(r),a=lc(o),u=uc(n,a),s;if(e&&t!=t){for(;a>u;)if(s=o[u++],s!=s)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===t)return e||u||0;return!e&&-1}};Xo.exports={includes:Ho(!0),indexOf:Ho(!1)}});var ri=i((hT,ei)=>{"use strict";var cc=C(),Jr=j(),fc=X(),pc=Jo().indexOf,vc=Ne(),Zo=cc([].push);ei.exports=function(e,r){var t=fc(e),n=0,o=[],a;for(a in t)!Jr(vc,a)&&Jr(t,a)&&Zo(o,a);for(;r.length>n;)Jr(t,a=r[n++])&&(~pc(o,a)||Zo(o,a));return o}});var Zr=i((gT,ti)=>{"use strict";ti.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var oi=i((IT,ni)=>{"use strict";var bc=ri(),dc=Zr();ni.exports=Object.keys||function(r){return bc(r,dc)}});var ai=i(ii=>{"use strict";var Tc=N(),mc=Ir(),yc=Z(),hc=D(),gc=X(),Ic=oi();ii.f=Tc&&!mc?Object.defineProperties:function(r,t){hc(r);for(var n=gc(t),o=Ic(t),a=o.length,u=0,s;a>u;)yc.f(r,s=o[u++],n[s]);return r}});var ui=i((xT,si)=>{"use strict";var Oc=Er();si.exports=Oc("document","documentElement")});var nt=i((ET,di)=>{"use strict";var xc=D(),Ec=ai(),li=Zr(),wc=Ne(),Sc=ui(),qc=hr(),Rc=Ce(),ci=">",fi="<",rt="prototype",tt="script",vi=Rc("IE_PROTO"),et=function(){},bi=function(e){return fi+tt+ci+e+fi+"/"+tt+ci},pi=function(e){e.write(bi("")),e.close();var r=e.parentWindow.Object;return e=null,r},Pc=function(){var e=qc("iframe"),r="java"+tt+":",t;return e.style.display="none",Sc.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(bi("document.F=Object")),t.close(),t.F},De,Ve=function(){try{De=new ActiveXObject("htmlfile")}catch(r){}Ve=typeof document!="undefined"?document.domain&&De?pi(De):Pc():pi(De);for(var e=li.length;e--;)delete Ve[rt][li[e]];return Ve()};wc[vi]=!0;di.exports=Object.create||function(r,t){var n;return r!==null?(et[rt]=xc(r),n=new et,et[rt]=null,n[vi]=r):n=Ve(),t===void 0?n:Ec.f(n,t)}});var mi=i((wT,Ti)=>{"use strict";var Ac=A();Ti.exports=!Ac(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var it=i((ST,hi)=>{"use strict";var _c=j(),Lc=x(),Cc=jr(),Nc=Ce(),jc=mi(),yi=Nc("IE_PROTO"),ot=Object,Mc=ot.prototype;hi.exports=jc?ot.getPrototypeOf:function(e){var r=Cc(e);if(_c(r,yi))return r[yi];var t=r.constructor;return Lc(t)&&r instanceof t?t.prototype:r instanceof ot?Mc:null}});var at=i((qT,gi)=>{"use strict";var kc=$();gi.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:kc(e,r,t),e}});var ct=i((RT,xi)=>{"use strict";var Dc=A(),Vc=x(),Fc=Q(),Uc=nt(),Ii=it(),Gc=at(),Bc=_(),Qc=ae(),lt=Bc("iterator"),Oi=!1,M,st,ut;[].keys&&(ut=[].keys(),"next"in ut?(st=Ii(Ii(ut)),st!==Object.prototype&&(M=st)):Oi=!0);var $c=!Fc(M)||Dc(function(){var e={};return M[lt].call(e)!==e});$c?M={}:Qc&&(M=Uc(M));Vc(M[lt])||Gc(M,lt,function(){return this});xi.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:Oi}});var Fe=i((PT,wi)=>{"use strict";var Wc=_(),zc=Wc("toStringTag"),Ei={};Ei[zc]="z";wi.exports=String(Ei)==="[object z]"});var Ge=i((AT,Si)=>{"use strict";var Kc=Fe(),Yc=x(),Ue=xe(),Hc=_(),Xc=Hc("toStringTag"),Jc=Object,Zc=Ue(function(){return arguments}())=="Arguments",ef=function(e,r){try{return e[r]}catch(t){}};Si.exports=Kc?Ue:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=ef(r=Jc(e),Xc))=="string"?t:Zc?Ue(r):(n=Ue(r))=="Object"&&Yc(r.callee)?"Arguments":n}});var Ri=i((_T,qi)=>{"use strict";var rf=Fe(),tf=Ge();qi.exports=rf?{}.toString:function(){return"[object "+tf(this)+"]"}});var ft=i((LT,Ai)=>{"use strict";var nf=Fe(),of=Z().f,af=$(),sf=j(),uf=Ri(),lf=_(),Pi=lf("toStringTag");Ai.exports=function(e,r,t,n){if(e){var o=t?e:e.prototype;sf(o,Pi)||of(o,Pi,{configurable:!0,value:r}),n&&!nf&&af(o,"toString",uf)}}});var Li=i((CT,_i)=>{"use strict";var cf=ct().IteratorPrototype,ff=nt(),pf=se(),vf=ft(),bf=B(),df=function(){return this};_i.exports=function(e,r,t,n){var o=r+" Iterator";return e.prototype=ff(cf,{next:pf(+!n,t)}),vf(e,o,!1,!0),bf[o]=df,e}});var Ni=i((NT,Ci)=>{"use strict";var Tf=C(),mf=ie();Ci.exports=function(e,r,t){try{return Tf(mf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Mi=i((jT,ji)=>{"use strict";var yf=x(),hf=String,gf=TypeError;ji.exports=function(e){if(typeof e=="object"||yf(e))return e;throw gf("Can't set "+hf(e)+" as a prototype")}});var Di=i((MT,ki)=>{"use strict";var If=Ni(),Of=D(),xf=Mi();ki.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=If(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(o,a){return Of(o),xf(a),e?t(o,a):o.__proto__=a,o}}():void 0)});var Yi=i((kT,Ki)=>{"use strict";var Ef=zr(),wf=V(),Be=ae(),Wi=Uo(),Sf=x(),qf=Li(),Vi=it(),Fi=Di(),Rf=ft(),Pf=$(),pt=at(),Af=_(),Ui=B(),zi=ct(),_f=Wi.PROPER,Lf=Wi.CONFIGURABLE,Gi=zi.IteratorPrototype,Qe=zi.BUGGY_SAFARI_ITERATORS,ce=Af("iterator"),Bi="keys",fe="values",Qi="entries",$i=function(){return this};Ki.exports=function(e,r,t,n,o,a,u){qf(t,r,n);var s=function(h){if(h===o&&b)return b;if(!Qe&&h in l)return l[h];switch(h){case Bi:return function(){return new t(this,h)};case fe:return function(){return new t(this,h)};case Qi:return function(){return new t(this,h)}}return function(){return new t(this)}},c=r+" Iterator",f=!1,l=e.prototype,p=l[ce]||l["@@iterator"]||o&&l[o],b=!Qe&&p||s(o),d=r=="Array"&&l.entries||p,T,y,I;if(d&&(T=Vi(d.call(new e)),T!==Object.prototype&&T.next&&(!Be&&Vi(T)!==Gi&&(Fi?Fi(T,Gi):Sf(T[ce])||pt(T,ce,$i)),Rf(T,c,!0,!0),Be&&(Ui[c]=$i))),_f&&o==fe&&p&&p.name!==fe&&(!Be&&Lf?Pf(l,"name",fe):(f=!0,b=function(){return wf(p,this)})),o)if(y={values:s(fe),keys:a?b:s(Bi),entries:s(Qi)},u)for(I in y)(Qe||f||!(I in l))&&pt(l,I,y[I]);else Ef({target:r,proto:!0,forced:Qe||f},y);return(!Be||u)&&l[ce]!==b&&pt(l,ce,b,{name:o}),Ui[r]=b,y}});var Xi=i((DT,Hi)=>{"use strict";Hi.exports=function(e,r){return{value:e,done:r}}});var bt=i((VT,ta)=>{"use strict";var Cf=X(),vt=rn(),Ji=B(),ea=ho(),Nf=Z().f,jf=Yi(),$e=Xi(),Mf=ae(),kf=N(),ra="Array Iterator",Df=ea.set,Vf=ea.getterFor(ra);ta.exports=jf(Array,"Array",function(e,r){Df(this,{type:ra,target:Cf(e),index:0,kind:r})},function(){var e=Vf(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,$e(void 0,!0)):t=="keys"?$e(n,!1):t=="values"?$e(r[n],!1):$e([n,r[n]],!1)},"values");var Zi=Ji.Arguments=Ji.Array;vt("keys");vt("values");vt("entries");if(!Mf&&kf&&Zi.name!=="values")try{Nf(Zi,"name",{value:"values"})}catch(e){}});var oa=i((FT,na)=>{"use strict";var Ff=_(),Uf=B(),Gf=Ff("iterator"),Bf=Array.prototype;na.exports=function(e){return e!==void 0&&(Uf.Array===e||Bf[Gf]===e)}});var dt=i((UT,aa)=>{"use strict";var Qf=Ge(),ia=Ae(),$f=Ee(),Wf=B(),zf=_(),Kf=zf("iterator");aa.exports=function(e){if(!$f(e))return ia(e,Kf)||ia(e,"@@iterator")||Wf[Qf(e)]}});var ua=i((GT,sa)=>{"use strict";var Yf=V(),Hf=ie(),Xf=D(),Jf=Pe(),Zf=dt(),ep=TypeError;sa.exports=function(e,r){var t=arguments.length<2?Zf(e):r;if(Hf(t))return Xf(Yf(t,e));throw ep(Jf(e)+" is not iterable")}});var fa=i((BT,ca)=>{"use strict";var rp=V(),la=D(),tp=Ae();ca.exports=function(e,r,t){var n,o;la(e);try{if(n=tp(e,"return"),!n){if(r==="throw")throw t;return t}n=rp(n,e)}catch(a){o=!0,n=a}if(r==="throw")throw t;if(o)throw n;return la(n),t}});var Ta=i((QT,da)=>{"use strict";var np=Wr(),op=V(),ip=D(),ap=Pe(),sp=oa(),up=Xr(),pa=wr(),lp=ua(),cp=dt(),va=fa(),fp=TypeError,We=function(e,r){this.stopped=e,this.result=r},ba=We.prototype;da.exports=function(e,r,t){var n=t&&t.that,o=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),c=np(r,n),f,l,p,b,d,T,y,I=function(g){return f&&va(f,"normal",g),new We(!0,g)},h=function(g){return o?(ip(g),s?c(g[0],g[1],I):c(g[0],g[1])):s?c(g,I):c(g)};if(a)f=e.iterator;else if(u)f=e;else{if(l=cp(e),!l)throw fp(ap(e)+" is not iterable");if(sp(l)){for(p=0,b=up(e);b>p;p++)if(d=h(e[p]),d&&pa(ba,d))return d;return new We(!1)}f=lp(e,l)}for(T=a?e.next:f.next;!(y=op(T,f)).done;){try{d=h(y.value)}catch(g){va(f,"throw",g)}if(typeof d=="object"&&d&&pa(ba,d))return d}return new We(!1)}});var ya=i(($T,ma)=>{"use strict";var pp=_e(),vp=Z(),bp=se();ma.exports=function(e,r,t){var n=pp(r);n in e?vp.f(e,n,bp(0,t)):e[n]=t}});var ha=i(()=>{"use strict";var dp=zr(),Tp=Ta(),mp=ya();dp({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Tp(r,function(n,o){mp(t,n,o)},{AS_ENTRIES:!0}),t}})});var Ia=i((KT,ga)=>{"use strict";bt();ha();var yp=qe();ga.exports=yp.Object.fromEntries});var xa=i((YT,Oa)=>{"use strict";Oa.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Sa=i(()=>{"use strict";bt();var hp=xa(),gp=S(),Ip=Ge(),Op=$(),Ea=B(),xp=_(),wa=xp("toStringTag");for(ze in hp)Tt=gp[ze],Ke=Tt&&Tt.prototype,Ke&&Ip(Ke)!==wa&&Op(Ke,wa,ze),Ea[ze]=Ea.Array;var Tt,Ke,ze});var Ra=i((JT,qa)=>{"use strict";var Ep=Ia();Sa();qa.exports=Ep});var Aa=i((ZT,Pa)=>{"use strict";var wp=Ra();Pa.exports=wp});var $a="1.0.38";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var L=e=>{throw new Error(`${e} is value of unexpected type`)},Wa=e=>{};var U=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:U}:n={next:s=>t.next(s),error:s=>{var c;return(c=t.error)==null?void 0:c.call(t,s)}}:n={next:U,error:U};let o=typeof r=="function"?{next:s=>{try{r(s)}catch(c){n.next(c)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(o)}catch(s){(u=o.error)==null||u.call(o,s)}return new E().add(()=>{switch(o.next=U,o.error=U,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return L(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var k=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var o;return(o=n.error)==null?void 0:o.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var Ye=class{constructor(){this.log$=new k;this.logs=[];this.log=r=>{let t=de(z({},r),{timestamp:Date.now()});this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(o){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>z({component:r},t))}};function za(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ka(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function K(e){return typeof e!="undefined"&&e!==null}function He(e){return e==null}function Ya(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Ha(e,r){if(e!=null&&e.length)throw new Error(r)}var Xa=(e,r,t)=>new Promise((n,o)=>{r.addEventListener("abort",()=>{s(),f.remove()});let a=()=>{s(),o()},u=()=>{s(),n()},s=()=>{c&&clearTimeout(c),f.removeEventListener("load",u),f.removeEventListener("error",a)},c;t&&(c=window.setTimeout(a,t));let f=document.createElement("script");f.addEventListener("load",u),f.addEventListener("error",a),f.src=e,document.head.appendChild(f)});var Et,Ja=typeof((Et=window.performance)==null?void 0:Et.now)=="function"?()=>window.performance.now():()=>Date.now();var Za=(e,r)=>(...t)=>Te(void 0,null,function*(){var u;let n=r(...t),o=e.aborted,a;for(;!o&&!e.aborted;)try{let s=yield n.next(a);o=(u=s.done)!=null?u:!1,a=s.value}catch(s){yield n.throw(s)}return a});var wt=(l=>(l.Unknown="Unknown",l.Yandex="Yandex",l.Chrome="Chrome",l.Chromium="Chromium",l.Firefox="Firefox",l.Safari="Safari",l.Opera="Opera",l.Edge="Edge",l.SamsungBrowser="SamsungBrowser",l.Rest="Rest",l))(wt||{}),St=(c=>(c.Unknown="Unknown",c.Android="Android",c.iPhone="iPhone",c.iPad="iPad",c.iPod="iPod",c.RestMobile="RestMobile",c.Mac="Mac",c.Desktop="Desktop",c))(St||{}),me=()=>{let{userAgent:e}=window.navigator,r=/yabrowser/i.test(e)?"Yandex":void 0,t=/samsungbrowser/i.test(e)?"SamsungBrowser":void 0,n=/chrome|crios/i.test(e)?"Chrome":void 0,o=/chromium/i.test(e)?"Chromium":void 0,a=/firefox|fxios/i.test(e)?"Firefox":void 0,u=/webkit|safari|khtml/i.test(e)?"Safari":void 0,s=/opr\//i.test(e)?"Opera":void 0,c=/edg/i.test(e)?"Edge":void 0,f=/android/i.test(e)?"Android":void 0,l=/iphone/i.test(e)?"iPhone":void 0,p=/ipad/i.test(e)?"iPad":void 0,b=/ipod/i.test(e)?"iPod":void 0,d=/mac/i.test(e)?"Mac":void 0,T=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(e)?"RestMobile":void 0;return{browser:r||t||a||s||c||n||o||u||"Rest",device:f||l||p||b||T||d||"Desktop"}},es=(e=!1)=>{let t=["iPhone","iPad","iPod"].includes(me().device);if(!e)return t;let{userAgent:n,maxTouchPoints:o}=window.navigator;return!!(t||/macintosh/i.test(n)&&o>0)},rs=()=>{let{userAgent:e}=window.navigator,r=e.match(/Version\/(\d+(\.\d+)?)/i);if(!r)return null;let t=r[1],n=parseFloat(t);return isNaN(n)?null:n},ts=()=>me().device==="Android",ns=()=>["Mac","iPhone","iPad","iPod"].includes(me().device),os=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)};var is=(e,{start:r=0,factor:t=2,max:n=1/0,min:o=r,random:a=0}={})=>{let u=r;return u*=xt(t,e),u*=1+(Math.random()*a*2-a),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,o),u};var Je={};Ga(Je,{clear:()=>fs,get:()=>ss,has:()=>ls,isPersistent:()=>as,remove:()=>cs,set:()=>us});var O,G,Xe=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(G!==void 0)return G;try{localStorage.setItem(Xe,"test"),localStorage.removeItem(Xe),G=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Xe),G=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)G=2;else throw r}else throw e}return G===2&&(O=new Map),G},as=()=>Y()===0,ss=e=>{var t,n;let r=Y();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:L(r)}},us=(e,r)=>{let t=Y();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:L(t)}},ls=e=>{var t;let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return L(r),!1}},cs=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:L(r)}},fs=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:L(e)}};var ps=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Ze=(l=>(l.INVARIANT="Invariant quality",l.Q_144P="144p",l.Q_240P="240p",l.Q_360P="360p",l.Q_480P="480p",l.Q_720P="720p",l.Q_1080P="1080p",l.Q_1440P="1440p",l.Q_2160P="2160p",l.Q_4320P="4320p",l))(Ze||{});var w={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},vs=(e,r)=>w[e].height>w[r].height,bs=(e,r)=>w[e].height>=w[r].height,er=(e,r)=>w[e].height<w[r].height,ds=(e,r)=>w[e].height<=w[r].height,Ts=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:er(r,t)?1:-1)[0],qt=Object.keys(w).sort((e,r)=>er(e,r)?-1:1),ms=(e,r=.02)=>[...qt].find(n=>w[n].height*(1+r)>=e),ys=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return qt.find(o=>{let a=w[o];return a.width>=n&&a.height>=t})},hs=e=>w[e].height,rr=e=>e==="Invariant quality",gs=e=>e.every(r=>!rr(r));function Is(e){if(rr(e))throw new Error("Expected exact quality")}var Os=(e,r)=>{let t={};for(let n of Object.keys(r)){let o=r[n],a=e[n];Array.isArray(o)&&Array.isArray(a)?t[n]=a:typeof o=="object"&&typeof a=="object"?t[n]=Os(a,o):t[n]=n in e?a:o}return t};var lv=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function tr(e,r=0,t){let n,o,a,u,s,c,f=0,l=!1,p=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(l=!!t.leading,p="maxWait"in t,a=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):a,b="trailing"in t?!!t.trailing:b);function T(m){let q=n,F=o;return n=o=void 0,f=m,u=e.apply(F,q),u}function y(m,q){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(m)):setTimeout(m,q)}function I(m){if(d){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return f=m,s=y(pe,r),l?T(m):u}function g(m){let q=m-c,F=m-f,ht=r-q;return p?Math.min(ht,a-F):ht}function mt(m){let q=m-c,F=m-f;return c===void 0||q>=r||q<0||p&&F>=a}function pe(){let m=Date.now();if(mt(m))return yt(m);s=y(pe,g(m))}function yt(m){return s=void 0,b&&n?T(m):(n=o=void 0,u)}function La(){s!==void 0&&I(s),f=0,n=c=o=s=void 0}function Ca(){return s===void 0?u:yt(Date.now())}function Na(){return s!==void 0}function ve(...m){let q=Date.now(),F=mt(q);if(n=m,o=this,c=q,F){if(s===void 0)return h(c);if(p)return s=y(pe,r),T(c)}return s===void 0&&(s=y(pe,r)),u}return ve.cancel=La,ve.flush=Ca,ve.pending=Na,ve}var nr=(e,r=0,t)=>tr(e,r,de(z(z({},{leading:!0,trailing:!0}),t),{maxWait:r}));var ye=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let o=r(e[n],n,e,t);if(o!==void 0){t[n]=o;continue}}typeof e[n]=="object"?t[n]=ye(e[n],r):t[n]=e[n]}return t};var xs=e=>ye(e);var Es=300,ws=(e,r=Es)=>new v(t=>{let{width:n,height:o}=e.getBoundingClientRect();if(t.next({width:n,height:o}),!window.ResizeObserver)return;let a=new ResizeObserver(nr(u=>{let s=u[0];if(!s)return;let c,f;s.contentBoxSize&&s.contentBoxSize[0]?(f=s.contentBoxSize[0].blockSize,c=s.contentBoxSize[0].inlineSize):s.contentRect&&(c=s.contentRect.width,f=s.contentRect.height),K(c)&&K(f)&&t.next({width:c,height:f})},r));return a.observe(e),()=>a.disconnect()});var Ss=e=>{e.removeAttribute("src"),e.load()};var he=class extends k{constructor(t){super();this.value=t}next(t){super.next(this.value=t)}error(t){super.error(this.value=t)}getValue(){return this.value}_subscribe(t){let n=super._subscribe(t);return t.next(this.value),n}};function Rt(e){return new v(r=>{let t={},n=Object.keys(e).length,o=a=>u=>{a in t||n--,t[a]=u,n===0&&r.next(t)};return Object.entries(e).reduce((a,[u,s])=>a.add(s.subscribe(o(u))),new E)})}function Pt(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var qs=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var Rs=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Ps=e=>new v(r=>{e.forEach(t=>r.next(t))});var As=(e,r)=>new v(t=>{let n=o=>t.next(o);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function At(e){return r=>new v(t=>r.subscribe(new or(t,e)))}var or=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var _s={leading:!1,trailing:!0};function _t(e,r=_s){return t=>new v(n=>t.subscribe(new ir(n,e,r)))}var ir=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,K(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ls={leading:!0,trailing:!1};function Lt(e,r=Ls){return t=>new v(n=>t.subscribe(new ar(n,e,r)))}var ar=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,He(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Ct(e){return r=>new v(t=>r.subscribe(new sr(t,e)))}var sr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function jt(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new ur(t,e)))}var Nt={},ur=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Nt}next(r){let t;try{t=this.lastValue===Nt||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ge(e){return r=>new v(t=>r.subscribe(new lr(t,e)))}var lr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Mt(e){return ge(()=>e)}function kt(){return e=>new v(r=>{let t=!1,n=!1,o=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&o.unsubscribe()},a=>{var u;t=!0,(u=r.error)==null||u.call(r,a),n&&o.unsubscribe()});return n=!0,t&&o.unsubscribe(),o})}function Dt(){return e=>new v(r=>e.subscribe(new cr(r)))}var cr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Vt(e){return r=>new v(t=>r.subscribe(new fr(t,e)))}var fr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Cs=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(Cs||{});var Ie=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let o=0,a=n.length;o<a;o++)if(n[o].callback===t){n.splice(o,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let o=0,a=n.length;o<a;o++){let u=n[o];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},H=class extends Ie{constructor(){super(),this.listeners||Ie.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},te=class{constructor(){Object.defineProperty(this,"signal",{value:new H,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(o){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(o){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(te.prototype[Symbol.toStringTag]="AbortController",H.prototype[Symbol.toStringTag]="AbortSignal");function Oe(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function pr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=e;if(!Oe({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||o)&&(a=function(f,l){let p;l&&l.signal&&(p=l.signal,delete l.signal);let b=new t(f,l);return p&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:p}),b},a.prototype=t.prototype);let u=r;return{fetch:(c,f)=>{let l=a&&a.prototype.isPrototypeOf(c)?c.signal:f?f.signal:void 0;if(l){let p;try{p=new DOMException("Aborted","AbortError")}catch(d){p=new Error("Aborted"),p.name="AbortError"}if(l.aborted)return Promise.reject(p);let b=new Promise((d,T)=>{l.addEventListener("abort",()=>T(p),{once:!0})});return f&&f.signal&&delete f.signal,Promise.race([b,u(c,f)])}return u(c,f)},Request:a}}var ne=Oe({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Ft=ne?pr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Ut=ne?Ft.fetch:window.fetch,sd=ne?Ft.Request:window.Request,ud=ne?te:window.AbortController,ld=ne?H:window.AbortSignal;var _a=Qa(Aa(),1);var Sp=(p=>(p.Armenian="58",p.Azerbaijani="57",p.Belarusian="114",p.English="3",p.Kazakh="97",p.Portuguese="73",p.Russian="0",p.Spanish="4",p.Ukrainian="1",p.Uzbek="65",p.Vietnamese="75",p))(Sp||{}),qp="vk.com",rm=(e,r,t)=>Te(void 0,null,function*(){let n=new URL(`https://${qp}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=yield(yield Ut(n.toString())).json();return Rp(a,t)}),Rp=(e,r)=>(0,_a.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Pp(n)])),Pp=e=>Array.isArray(e)?e[0]:e;var Ap=(t=>(t.RU="ru",t.EN="en",t))(Ap||{});export{wt as CurrentClientBrowser,St as CurrentClientDevice,Cs as ErrorCategory,Ap as InterfaceLanguage,Ye as Logger,v as Observable,k as Subject,E as Subscription,$a as VERSION,Sp as VKNumericLanguage,he as ValueSubject,Ze as VideoQuality,Za as abortable,Xa as addScript,gs as areQualitiesExact,Ha as assertEmptyArray,L as assertNever,za as assertNonNullable,Ya as assertNotEmptyArray,Ka as assertNullable,Is as assertQualityIsExact,At as buffer,Wa as checkNever,Ss as clearVideoElement,xs as cloneDeep,ye as cloneDeepWith,Rt as combine,_t as debounce,tr as debounceFn,ps as detectEmbed,Os as fillWithDefault,Ct as filter,jt as filterChanged,As as fromEvent,me as getCurrentBrowser,is as getExponentialDelay,Ts as getHighestQuality,rs as getIOSVersion,Rs as interval,ts as isAndroid,vs as isHigher,bs as isHigherOrEqual,es as isIOS,rr as isInvariantQuality,er as isLower,ds as isLowerOrEqual,ns as isMacLike,os as isMobile,K as isNonNullable,He as isNullable,rm as loadVKLangPack,ge as map,Mt as mapTo,Pt as merge,U as noop,Ja as now,Ps as observableFrom,ws as observeElementSize,kt as once,Dt as pairwise,Je as safeStorage,Vt as tap,Lt as throttle,nr as throttleFn,lv as timeCodeToString,qs as timeout,ms as videoHeightToQuality,hs as videoQualityToHeight,ys as videoSizeToQuality};
6
+ var As=Object.create;var Te=Object.defineProperty,Cs=Object.defineProperties,Ls=Object.getOwnPropertyDescriptor,Ns=Object.getOwnPropertyDescriptors,js=Object.getOwnPropertyNames,ht=Object.getOwnPropertySymbols,Ms=Object.getPrototypeOf,gt=Object.prototype.hasOwnProperty,ks=Object.prototype.propertyIsEnumerable;var It=Math.pow,yt=(e,r,t)=>r in e?Te(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,$=(e,r)=>{for(var t in r||(r={}))gt.call(r,t)&&yt(e,t,r[t]);if(ht)for(var t of ht(r))ks.call(r,t)&&yt(e,t,r[t]);return e},me=(e,r)=>Cs(e,Ns(r));var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Vs=(e,r)=>{for(var t in r)Te(e,t,{get:r[t],enumerable:!0})},Ds=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of js(r))!gt.call(e,i)&&i!==t&&Te(e,i,{get:()=>r[i],enumerable:!(n=Ls(r,i))||n.enumerable});return e};var Fs=(e,r,t)=>(t=e!=null?As(Ms(e)):{},Ds(r||!e||!e.__esModule?Te(t,"default",{value:e,enumerable:!0}):t,e));var he=(e,r,t)=>new Promise((n,i)=>{var s=c=>{try{a(t.next(c))}catch(l){i(l)}},u=c=>{try{a(t.throw(c))}catch(l){i(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,u);a((t=t.apply(e,r)).next())});var _=o((rd,Dt)=>{"use strict";Dt.exports=function(e){try{return!!e()}catch(r){return!0}}});var ie=o((td,Ft)=>{"use strict";var Sa=_();Ft.exports=!Sa(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var L=o((nd,Bt)=>{"use strict";var Ut=ie(),Gt=Function.prototype,vr=Gt.call,qa=Ut&&Gt.bind.bind(vr,vr);Bt.exports=Ut?qa:function(e){return function(){return vr.apply(e,arguments)}}});var we=o((id,Wt)=>{"use strict";var Qt=L(),Ra=Qt({}.toString),Pa=Qt("".slice);Wt.exports=function(e){return Pa(Ra(e),8,-1)}});var zt=o((od,$t)=>{"use strict";var _a=L(),Aa=_(),Ca=we(),br=Object,La=_a("".split);$t.exports=Aa(function(){return!br("z").propertyIsEnumerable(0)})?function(e){return Ca(e)==="String"?La(e,""):br(e)}:br});var Ee=o((sd,Yt)=>{"use strict";Yt.exports=function(e){return e==null}});var Se=o((ad,Kt)=>{"use strict";var Na=Ee(),ja=TypeError;Kt.exports=function(e){if(Na(e))throw new ja("Can't call method on "+e);return e}});var H=o((ud,Ht)=>{"use strict";var Ma=zt(),ka=Se();Ht.exports=function(e){return Ma(ka(e))}});var Jt=o((ld,Xt)=>{"use strict";Xt.exports=function(){}});var B=o((cd,Zt)=>{"use strict";Zt.exports={}});var x=o((dr,en)=>{"use strict";var oe=function(e){return e&&e.Math===Math&&e};en.exports=oe(typeof globalThis=="object"&&globalThis)||oe(typeof window=="object"&&window)||oe(typeof self=="object"&&self)||oe(typeof global=="object"&&global)||oe(typeof dr=="object"&&dr)||function(){return this}()||Function("return this")()});var w=o((pd,rn)=>{"use strict";var Tr=typeof document=="object"&&document.all;rn.exports=typeof Tr=="undefined"&&Tr!==void 0?function(e){return typeof e=="function"||e===Tr}:function(e){return typeof e=="function"}});var on=o((fd,nn)=>{"use strict";var Va=x(),Da=w(),tn=Va.WeakMap;nn.exports=Da(tn)&&/native code/.test(String(tn))});var N=o((vd,sn)=>{"use strict";var Fa=w();sn.exports=function(e){return typeof e=="object"?e!==null:Fa(e)}});var A=o((bd,an)=>{"use strict";var Ua=_();an.exports=!Ua(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var hr=o((dd,ln)=>{"use strict";var Ga=x(),un=N(),mr=Ga.document,Ba=un(mr)&&un(mr.createElement);ln.exports=function(e){return Ba?mr.createElement(e):{}}});var yr=o((Td,cn)=>{"use strict";var Qa=A(),Wa=_(),$a=hr();cn.exports=!Qa&&!Wa(function(){return Object.defineProperty($a("div"),"a",{get:function(){return 7}}).a!==7})});var gr=o((md,pn)=>{"use strict";var za=A(),Ya=_();pn.exports=za&&Ya(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Q=o((hd,fn)=>{"use strict";var Ka=N(),Ha=String,Xa=TypeError;fn.exports=function(e){if(Ka(e))return e;throw new Xa(Ha(e)+" is not an object")}});var D=o((yd,vn)=>{"use strict";var Ja=ie(),qe=Function.prototype.call;vn.exports=Ja?qe.bind(qe):function(){return qe.apply(qe,arguments)}});var Re=o((gd,bn)=>{"use strict";bn.exports={}});var xr=o((Id,Tn)=>{"use strict";var Ir=Re(),Or=x(),Za=w(),dn=function(e){return Za(e)?e:void 0};Tn.exports=function(e,r){return arguments.length<2?dn(Ir[e])||dn(Or[e]):Ir[e]&&Ir[e][r]||Or[e]&&Or[e][r]}});var wr=o((Od,mn)=>{"use strict";var eu=L();mn.exports=eu({}.isPrototypeOf)});var In=o((xd,gn)=>{"use strict";var ru=x(),hn=ru.navigator,yn=hn&&hn.userAgent;gn.exports=yn?String(yn):""});var Rn=o((wd,qn)=>{"use strict";var Sn=x(),Er=In(),On=Sn.process,xn=Sn.Deno,wn=On&&On.versions||xn&&xn.version,En=wn&&wn.v8,R,Pe;En&&(R=En.split("."),Pe=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Pe&&Er&&(R=Er.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Er.match(/Chrome\/(\d+)/),R&&(Pe=+R[1])));qn.exports=Pe});var Sr=o((Ed,_n)=>{"use strict";var Pn=Rn(),tu=_(),nu=x(),iu=nu.String;_n.exports=!!Object.getOwnPropertySymbols&&!tu(function(){var e=Symbol("symbol detection");return!iu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Pn&&Pn<41})});var qr=o((Sd,An)=>{"use strict";var ou=Sr();An.exports=ou&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Rr=o((qd,Cn)=>{"use strict";var su=xr(),au=w(),uu=wr(),lu=qr(),cu=Object;Cn.exports=lu?function(e){return typeof e=="symbol"}:function(e){var r=su("Symbol");return au(r)&&uu(r.prototype,cu(e))}});var _e=o((Rd,Ln)=>{"use strict";var pu=String;Ln.exports=function(e){try{return pu(e)}catch(r){return"Object"}}});var se=o((Pd,Nn)=>{"use strict";var fu=w(),vu=_e(),bu=TypeError;Nn.exports=function(e){if(fu(e))return e;throw new bu(vu(e)+" is not a function")}});var Ae=o((_d,jn)=>{"use strict";var du=se(),Tu=Ee();jn.exports=function(e,r){var t=e[r];return Tu(t)?void 0:du(t)}});var kn=o((Ad,Mn)=>{"use strict";var Pr=D(),_r=w(),Ar=N(),mu=TypeError;Mn.exports=function(e,r){var t,n;if(r==="string"&&_r(t=e.toString)&&!Ar(n=Pr(t,e))||_r(t=e.valueOf)&&!Ar(n=Pr(t,e))||r!=="string"&&_r(t=e.toString)&&!Ar(n=Pr(t,e)))return n;throw new mu("Can't convert object to primitive value")}});var ae=o((Cd,Vn)=>{"use strict";Vn.exports=!0});var Un=o((Ld,Fn)=>{"use strict";var Dn=x(),hu=Object.defineProperty;Fn.exports=function(e,r){try{hu(Dn,e,{value:r,configurable:!0,writable:!0})}catch(t){Dn[e]=r}return r}});var Ce=o((Nd,Qn)=>{"use strict";var yu=ae(),gu=x(),Iu=Un(),Gn="__core-js_shared__",Bn=Qn.exports=gu[Gn]||Iu(Gn,{});(Bn.versions||(Bn.versions=[])).push({version:"3.38.0",mode:yu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Cr=o((jd,$n)=>{"use strict";var Wn=Ce();$n.exports=function(e,r){return Wn[e]||(Wn[e]=r||{})}});var Lr=o((Md,zn)=>{"use strict";var Ou=Se(),xu=Object;zn.exports=function(e){return xu(Ou(e))}});var j=o((kd,Yn)=>{"use strict";var wu=L(),Eu=Lr(),Su=wu({}.hasOwnProperty);Yn.exports=Object.hasOwn||function(r,t){return Su(Eu(r),t)}});var Nr=o((Vd,Kn)=>{"use strict";var qu=L(),Ru=0,Pu=Math.random(),_u=qu(1 .toString);Kn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+_u(++Ru+Pu,36)}});var M=o((Dd,Xn)=>{"use strict";var Au=x(),Cu=Cr(),Hn=j(),Lu=Nr(),Nu=Sr(),ju=qr(),X=Au.Symbol,jr=Cu("wks"),Mu=ju?X.for||X:X&&X.withoutSetter||Lu;Xn.exports=function(e){return Hn(jr,e)||(jr[e]=Nu&&Hn(X,e)?X[e]:Mu("Symbol."+e)),jr[e]}});var ri=o((Fd,ei)=>{"use strict";var ku=D(),Jn=N(),Zn=Rr(),Vu=Ae(),Du=kn(),Fu=M(),Uu=TypeError,Gu=Fu("toPrimitive");ei.exports=function(e,r){if(!Jn(e)||Zn(e))return e;var t=Vu(e,Gu),n;if(t){if(r===void 0&&(r="default"),n=ku(t,e,r),!Jn(n)||Zn(n))return n;throw new Uu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Du(e,r)}});var Mr=o((Ud,ti)=>{"use strict";var Bu=ri(),Qu=Rr();ti.exports=function(e){var r=Bu(e,"string");return Qu(r)?r:r+""}});var J=o(ii=>{"use strict";var Wu=A(),$u=yr(),zu=gr(),Le=Q(),ni=Mr(),Yu=TypeError,kr=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,Vr="enumerable",Dr="configurable",Fr="writable";ii.f=Wu?zu?function(r,t,n){if(Le(r),t=ni(t),Le(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Fr in n&&!n[Fr]){var i=Ku(r,t);i&&i[Fr]&&(r[t]=n.value,n={configurable:Dr in n?n[Dr]:i[Dr],enumerable:Vr in n?n[Vr]:i[Vr],writable:!1})}return kr(r,t,n)}:kr:function(r,t,n){if(Le(r),t=ni(t),Le(n),$u)try{return kr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Yu("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ue=o((Bd,oi)=>{"use strict";oi.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Z=o((Qd,si)=>{"use strict";var Hu=A(),Xu=J(),Ju=ue();si.exports=Hu?function(e,r,t){return Xu.f(e,r,Ju(1,t))}:function(e,r,t){return e[r]=t,e}});var Ne=o((Wd,ui)=>{"use strict";var Zu=Cr(),el=Nr(),ai=Zu("keys");ui.exports=function(e){return ai[e]||(ai[e]=el(e))}});var je=o(($d,li)=>{"use strict";li.exports={}});var vi=o((zd,fi)=>{"use strict";var rl=on(),pi=x(),tl=N(),nl=Z(),Ur=j(),Gr=Ce(),il=Ne(),ol=je(),ci="Object already initialized",Br=pi.TypeError,sl=pi.WeakMap,Me,le,ke,al=function(e){return ke(e)?le(e):Me(e,{})},ul=function(e){return function(r){var t;if(!tl(r)||(t=le(r)).type!==e)throw new Br("Incompatible receiver, "+e+" required");return t}};rl||Gr.state?(P=Gr.state||(Gr.state=new sl),P.get=P.get,P.has=P.has,P.set=P.set,Me=function(e,r){if(P.has(e))throw new Br(ci);return r.facade=e,P.set(e,r),r},le=function(e){return P.get(e)||{}},ke=function(e){return P.has(e)}):(W=il("state"),ol[W]=!0,Me=function(e,r){if(Ur(e,W))throw new Br(ci);return r.facade=e,nl(e,W,r),r},le=function(e){return Ur(e,W)?e[W]:{}},ke=function(e){return Ur(e,W)});var P,W;fi.exports={set:Me,get:le,has:ke,enforce:al,getterFor:ul}});var hi=o((Yd,mi)=>{"use strict";var ll=ie(),Ti=Function.prototype,bi=Ti.apply,di=Ti.call;mi.exports=typeof Reflect=="object"&&Reflect.apply||(ll?di.bind(bi):function(){return di.apply(bi,arguments)})});var Qr=o((Kd,yi)=>{"use strict";var cl=we(),pl=L();yi.exports=function(e){if(cl(e)==="Function")return pl(e)}});var xi=o(Oi=>{"use strict";var gi={}.propertyIsEnumerable,Ii=Object.getOwnPropertyDescriptor,fl=Ii&&!gi.call({1:2},1);Oi.f=fl?function(r){var t=Ii(this,r);return!!t&&t.enumerable}:gi});var Si=o(Ei=>{"use strict";var vl=A(),bl=D(),dl=xi(),Tl=ue(),ml=H(),hl=Mr(),yl=j(),gl=yr(),wi=Object.getOwnPropertyDescriptor;Ei.f=vl?wi:function(r,t){if(r=ml(r),t=hl(t),gl)try{return wi(r,t)}catch(n){}if(yl(r,t))return Tl(!bl(dl.f,r,t),r[t])}});var Ri=o((Jd,qi)=>{"use strict";var Il=_(),Ol=w(),xl=/#|\.prototype\./,ce=function(e,r){var t=El[wl(e)];return t===ql?!0:t===Sl?!1:Ol(r)?Il(r):!!r},wl=ce.normalize=function(e){return String(e).replace(xl,".").toLowerCase()},El=ce.data={},Sl=ce.NATIVE="N",ql=ce.POLYFILL="P";qi.exports=ce});var Wr=o((Zd,_i)=>{"use strict";var Pi=Qr(),Rl=se(),Pl=ie(),_l=Pi(Pi.bind);_i.exports=function(e,r){return Rl(e),r===void 0?e:Pl?_l(e,r):function(){return e.apply(r,arguments)}}});var $r=o((eT,Ci)=>{"use strict";var pe=x(),Al=hi(),Cl=Qr(),Ll=w(),Nl=Si().f,jl=Ri(),ee=Re(),Ml=Wr(),re=Z(),Ai=j();Ce();var kl=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Al(e,this,arguments)};return r.prototype=e.prototype,r};Ci.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,s=e.proto,u=n?pe:i?pe[t]:pe[t]&&pe[t].prototype,a=n?ee:ee[t]||re(ee,t,{})[t],c=a.prototype,l,p,f,b,d,m,h,I,y;for(b in r)l=jl(n?b:t+(i?".":"#")+b,e.forced),p=!l&&u&&Ai(u,b),m=a[b],p&&(e.dontCallGetSet?(y=Nl(u,b),h=y&&y.value):h=u[b]),d=p&&h?h:r[b],!(!l&&!s&&typeof m==typeof d)&&(e.bind&&p?I=Ml(d,pe):e.wrap&&p?I=kl(d):s&&Ll(d)?I=Cl(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&re(I,"sham",!0),re(a,b,I),s&&(f=t+"Prototype",Ai(ee,f)||re(ee,f,{}),re(ee[f],b,d),e.real&&c&&(l||!c[b])&&re(c,b,d)))}});var ji=o((rT,Ni)=>{"use strict";var zr=A(),Vl=j(),Li=Function.prototype,Dl=zr&&Object.getOwnPropertyDescriptor,Yr=Vl(Li,"name"),Fl=Yr&&function(){}.name==="something",Ul=Yr&&(!zr||zr&&Dl(Li,"name").configurable);Ni.exports={EXISTS:Yr,PROPER:Fl,CONFIGURABLE:Ul}});var ki=o((tT,Mi)=>{"use strict";var Gl=Math.ceil,Bl=Math.floor;Mi.exports=Math.trunc||function(r){var t=+r;return(t>0?Bl:Gl)(t)}});var Kr=o((nT,Vi)=>{"use strict";var Ql=ki();Vi.exports=function(e){var r=+e;return r!==r||r===0?0:Ql(r)}});var Fi=o((iT,Di)=>{"use strict";var Wl=Kr(),$l=Math.max,zl=Math.min;Di.exports=function(e,r){var t=Wl(e);return t<0?$l(t+r,0):zl(t,r)}});var Gi=o((oT,Ui)=>{"use strict";var Yl=Kr(),Kl=Math.min;Ui.exports=function(e){var r=Yl(e);return r>0?Kl(r,9007199254740991):0}});var Hr=o((sT,Bi)=>{"use strict";var Hl=Gi();Bi.exports=function(e){return Hl(e.length)}});var $i=o((aT,Wi)=>{"use strict";var Xl=H(),Jl=Fi(),Zl=Hr(),Qi=function(e){return function(r,t,n){var i=Xl(r),s=Zl(i);if(s===0)return!e&&-1;var u=Jl(n,s),a;if(e&&t!==t){for(;s>u;)if(a=i[u++],a!==a)return!0}else for(;s>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Wi.exports={includes:Qi(!0),indexOf:Qi(!1)}});var Ki=o((uT,Yi)=>{"use strict";var ec=L(),Xr=j(),rc=H(),tc=$i().indexOf,nc=je(),zi=ec([].push);Yi.exports=function(e,r){var t=rc(e),n=0,i=[],s;for(s in t)!Xr(nc,s)&&Xr(t,s)&&zi(i,s);for(;r.length>n;)Xr(t,s=r[n++])&&(~tc(i,s)||zi(i,s));return i}});var Jr=o((lT,Hi)=>{"use strict";Hi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Ji=o((cT,Xi)=>{"use strict";var ic=Ki(),oc=Jr();Xi.exports=Object.keys||function(r){return ic(r,oc)}});var eo=o(Zi=>{"use strict";var sc=A(),ac=gr(),uc=J(),lc=Q(),cc=H(),pc=Ji();Zi.f=sc&&!ac?Object.defineProperties:function(r,t){lc(r);for(var n=cc(t),i=pc(t),s=i.length,u=0,a;s>u;)uc.f(r,a=i[u++],n[a]);return r}});var to=o((fT,ro)=>{"use strict";var fc=xr();ro.exports=fc("document","documentElement")});var tt=o((vT,lo)=>{"use strict";var vc=Q(),bc=eo(),no=Jr(),dc=je(),Tc=to(),mc=hr(),hc=Ne(),io=">",oo="<",et="prototype",rt="script",ao=hc("IE_PROTO"),Zr=function(){},uo=function(e){return oo+rt+io+e+oo+"/"+rt+io},so=function(e){e.write(uo("")),e.close();var r=e.parentWindow.Object;return e=null,r},yc=function(){var e=mc("iframe"),r="java"+rt+":",t;return e.style.display="none",Tc.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(uo("document.F=Object")),t.close(),t.F},Ve,De=function(){try{Ve=new ActiveXObject("htmlfile")}catch(r){}De=typeof document!="undefined"?document.domain&&Ve?so(Ve):yc():so(Ve);for(var e=no.length;e--;)delete De[et][no[e]];return De()};dc[ao]=!0;lo.exports=Object.create||function(r,t){var n;return r!==null?(Zr[et]=vc(r),n=new Zr,Zr[et]=null,n[ao]=r):n=De(),t===void 0?n:bc.f(n,t)}});var po=o((bT,co)=>{"use strict";var gc=_();co.exports=!gc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var it=o((dT,vo)=>{"use strict";var Ic=j(),Oc=w(),xc=Lr(),wc=Ne(),Ec=po(),fo=wc("IE_PROTO"),nt=Object,Sc=nt.prototype;vo.exports=Ec?nt.getPrototypeOf:function(e){var r=xc(e);if(Ic(r,fo))return r[fo];var t=r.constructor;return Oc(t)&&r instanceof t?t.prototype:r instanceof nt?Sc:null}});var ot=o((TT,bo)=>{"use strict";var qc=Z();bo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:qc(e,r,t),e}});var lt=o((mT,ho)=>{"use strict";var Rc=_(),Pc=w(),_c=N(),Ac=tt(),To=it(),Cc=ot(),Lc=M(),Nc=ae(),ut=Lc("iterator"),mo=!1,k,st,at;[].keys&&(at=[].keys(),"next"in at?(st=To(To(at)),st!==Object.prototype&&(k=st)):mo=!0);var jc=!_c(k)||Rc(function(){var e={};return k[ut].call(e)!==e});jc?k={}:Nc&&(k=Ac(k));Pc(k[ut])||Cc(k,ut,function(){return this});ho.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:mo}});var Fe=o((hT,go)=>{"use strict";var Mc=M(),kc=Mc("toStringTag"),yo={};yo[kc]="z";go.exports=String(yo)==="[object z]"});var ct=o((yT,Io)=>{"use strict";var Vc=Fe(),Dc=w(),Ue=we(),Fc=M(),Uc=Fc("toStringTag"),Gc=Object,Bc=Ue(function(){return arguments}())==="Arguments",Qc=function(e,r){try{return e[r]}catch(t){}};Io.exports=Vc?Ue:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Qc(r=Gc(e),Uc))=="string"?t:Bc?Ue(r):(n=Ue(r))==="Object"&&Dc(r.callee)?"Arguments":n}});var xo=o((gT,Oo)=>{"use strict";var Wc=Fe(),$c=ct();Oo.exports=Wc?{}.toString:function(){return"[object "+$c(this)+"]"}});var Ge=o((IT,Eo)=>{"use strict";var zc=Fe(),Yc=J().f,Kc=Z(),Hc=j(),Xc=xo(),Jc=M(),wo=Jc("toStringTag");Eo.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Hc(i,wo)||Yc(i,wo,{configurable:!0,value:r}),n&&!zc&&Kc(i,"toString",Xc))}});var qo=o((OT,So)=>{"use strict";var Zc=lt().IteratorPrototype,ep=tt(),rp=ue(),tp=Ge(),np=B(),ip=function(){return this};So.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=ep(Zc,{next:rp(+!n,t)}),tp(e,i,!1,!0),np[i]=ip,e}});var Po=o((xT,Ro)=>{"use strict";var op=L(),sp=se();Ro.exports=function(e,r,t){try{return op(sp(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Ao=o((wT,_o)=>{"use strict";var ap=N();_o.exports=function(e){return ap(e)||e===null}});var Lo=o((ET,Co)=>{"use strict";var up=Ao(),lp=String,cp=TypeError;Co.exports=function(e){if(up(e))return e;throw new cp("Can't set "+lp(e)+" as a prototype")}});var jo=o((ST,No)=>{"use strict";var pp=Po(),fp=N(),vp=Se(),bp=Lo();No.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=pp(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,s){return vp(i),bp(s),fp(i)&&(e?t(i,s):i.__proto__=s),i}}():void 0)});var $o=o((qT,Wo)=>{"use strict";var dp=$r(),Tp=D(),Be=ae(),Bo=ji(),mp=w(),hp=qo(),Mo=it(),ko=jo(),yp=Ge(),gp=Z(),pt=ot(),Ip=M(),Vo=B(),Qo=lt(),Op=Bo.PROPER,xp=Bo.CONFIGURABLE,Do=Qo.IteratorPrototype,Qe=Qo.BUGGY_SAFARI_ITERATORS,fe=Ip("iterator"),Fo="keys",ve="values",Uo="entries",Go=function(){return this};Wo.exports=function(e,r,t,n,i,s,u){hp(t,r,n);var a=function(y){if(y===i&&b)return b;if(!Qe&&y&&y in p)return p[y];switch(y){case Fo:return function(){return new t(this,y)};case ve:return function(){return new t(this,y)};case Uo:return function(){return new t(this,y)}}return function(){return new t(this)}},c=r+" Iterator",l=!1,p=e.prototype,f=p[fe]||p["@@iterator"]||i&&p[i],b=!Qe&&f||a(i),d=r==="Array"&&p.entries||f,m,h,I;if(d&&(m=Mo(d.call(new e)),m!==Object.prototype&&m.next&&(!Be&&Mo(m)!==Do&&(ko?ko(m,Do):mp(m[fe])||pt(m,fe,Go)),yp(m,c,!0,!0),Be&&(Vo[c]=Go))),Op&&i===ve&&f&&f.name!==ve&&(!Be&&xp?gp(p,"name",ve):(l=!0,b=function(){return Tp(f,this)})),i)if(h={values:a(ve),keys:s?b:a(Fo),entries:a(Uo)},u)for(I in h)(Qe||l||!(I in p))&&pt(p,I,h[I]);else dp({target:r,proto:!0,forced:Qe||l},h);return(!Be||u)&&p[fe]!==b&&pt(p,fe,b,{name:i}),Vo[r]=b,h}});var Yo=o((RT,zo)=>{"use strict";zo.exports=function(e,r){return{value:e,done:r}}});var vt=o((PT,Zo)=>{"use strict";var wp=H(),ft=Jt(),Ko=B(),Xo=vi(),Ep=J().f,Sp=$o(),We=Yo(),qp=ae(),Rp=A(),Jo="Array Iterator",Pp=Xo.set,_p=Xo.getterFor(Jo);Zo.exports=Sp(Array,"Array",function(e,r){Pp(this,{type:Jo,target:wp(e),index:0,kind:r})},function(){var e=_p(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,We(void 0,!0);switch(e.kind){case"keys":return We(t,!1);case"values":return We(r[t],!1)}return We([t,r[t]],!1)},"values");var Ho=Ko.Arguments=Ko.Array;ft("keys");ft("values");ft("entries");if(!qp&&Rp&&Ho.name!=="values")try{Ep(Ho,"name",{value:"values"})}catch(e){}});var rs=o((_T,es)=>{"use strict";var Ap=M(),Cp=B(),Lp=Ap("iterator"),Np=Array.prototype;es.exports=function(e){return e!==void 0&&(Cp.Array===e||Np[Lp]===e)}});var bt=o((AT,ns)=>{"use strict";var jp=ct(),ts=Ae(),Mp=Ee(),kp=B(),Vp=M(),Dp=Vp("iterator");ns.exports=function(e){if(!Mp(e))return ts(e,Dp)||ts(e,"@@iterator")||kp[jp(e)]}});var os=o((CT,is)=>{"use strict";var Fp=D(),Up=se(),Gp=Q(),Bp=_e(),Qp=bt(),Wp=TypeError;is.exports=function(e,r){var t=arguments.length<2?Qp(e):r;if(Up(t))return Gp(Fp(t,e));throw new Wp(Bp(e)+" is not iterable")}});var us=o((LT,as)=>{"use strict";var $p=D(),ss=Q(),zp=Ae();as.exports=function(e,r,t){var n,i;ss(e);try{if(n=zp(e,"return"),!n){if(r==="throw")throw t;return t}n=$p(n,e)}catch(s){i=!0,n=s}if(r==="throw")throw t;if(i)throw n;return ss(n),t}});var vs=o((NT,fs)=>{"use strict";var Yp=Wr(),Kp=D(),Hp=Q(),Xp=_e(),Jp=rs(),Zp=Hr(),ls=wr(),ef=os(),rf=bt(),cs=us(),tf=TypeError,$e=function(e,r){this.stopped=e,this.result=r},ps=$e.prototype;fs.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),s=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),c=Yp(r,n),l,p,f,b,d,m,h,I=function(g){return l&&cs(l,"normal",g),new $e(!0,g)},y=function(g){return i?(Hp(g),a?c(g[0],g[1],I):c(g[0],g[1])):a?c(g,I):c(g)};if(s)l=e.iterator;else if(u)l=e;else{if(p=rf(e),!p)throw new tf(Xp(e)+" is not iterable");if(Jp(p)){for(f=0,b=Zp(e);b>f;f++)if(d=y(e[f]),d&&ls(ps,d))return d;return new $e(!1)}l=ef(e,p)}for(m=s?e.next:l.next;!(h=Kp(m,l)).done;){try{d=y(h.value)}catch(g){cs(l,"throw",g)}if(typeof d=="object"&&d&&ls(ps,d))return d}return new $e(!1)}});var ds=o((jT,bs)=>{"use strict";var nf=A(),of=J(),sf=ue();bs.exports=function(e,r,t){nf?of.f(e,r,sf(0,t)):e[r]=t}});var Ts=o(()=>{"use strict";var af=$r(),uf=vs(),lf=ds();af({target:"Object",stat:!0},{fromEntries:function(r){var t={};return uf(r,function(n,i){lf(t,n,i)},{AS_ENTRIES:!0}),t}})});var hs=o((VT,ms)=>{"use strict";vt();Ts();var cf=Re();ms.exports=cf.Object.fromEntries});var gs=o((DT,ys)=>{"use strict";ys.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Os=o(()=>{"use strict";vt();var pf=gs(),ff=x(),vf=Ge(),Is=B();for(ze in pf)vf(ff[ze],ze),Is[ze]=Is.Array;var ze});var ws=o((GT,xs)=>{"use strict";var bf=hs();Os();xs.exports=bf});var Ss=o((BT,Es)=>{"use strict";var df=ws();Es.exports=df});var Us="1.0.39-beta.0";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var C=e=>{throw new Error(`${e} is value of unexpected type`)},Gs=e=>{};var U=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:U}:n={next:a=>t.next(a),error:a=>{var c;return(c=t.error)==null?void 0:c.call(t,a)}}:n={next:U,error:U};let i=typeof r=="function"?{next:a=>{try{r(a)}catch(c){n.next(c)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},s;try{s=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new E().add(()=>{switch(i.next=U,i.error=U,typeof s){case"function":s();return;case"object":s.unsubscribe();return;case"undefined":return;default:return C(s)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var V=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var Ye=class{constructor(){this.log$=new V;this.logs=[];this.log=r=>{let t=me($({},r),{timestamp:Date.now()});this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>$({component:r},t))}};function Bs(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Qs(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function z(e){return typeof e!="undefined"&&e!==null}function Ke(e){return e==null}function Ws(e,r){if(!(e!=null&&e.length))throw new Error(r)}function $s(e,r){if(e!=null&&e.length)throw new Error(r)}var zs=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),l.remove()});let s=()=>{a(),i()},u=()=>{a(),n()},a=()=>{c&&clearTimeout(c),l.removeEventListener("load",u),l.removeEventListener("error",s)},c;t&&(c=window.setTimeout(s,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",s),l.src=e,document.head.appendChild(l)});var Ot,Ys=typeof((Ot=window.performance)==null?void 0:Ot.now)=="function"?()=>window.performance.now():()=>Date.now();var Ks=(e,r)=>(...t)=>he(void 0,null,function*(){var u;let n=r(...t),i=e.aborted,s;for(;!i&&!e.aborted;)try{let a=yield n.next(s);i=(u=a.done)!=null?u:!1,s=a.value}catch(a){yield n.throw(a)}return s});var xt=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},He=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(i){console.error(i)}try{this._isMobile=xt()}catch(i){console.error(i)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,i=/chrome|crios/i.test(r)?"Chrome":void 0,s=/chromium/i.test(r)?"Chromium":void 0,u=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,c=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||u||c||l||i||s||a||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,i=/ipad/i.test(r)?"iPad":void 0,s=/ipod/i.test(r)?"iPod":void 0,u=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||i||s||a||u||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],i=parseFloat(n);if(isNaN(i))return;this._iosVersion=i}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],i=parseInt(n,10);if(isNaN(i))return;this._macVersion=i}catch(r){console.error(r)}}},Hs=new He;var Xs=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:s=0}={})=>{let u=r;return u*=It(t,e),u*=1+(Math.random()*s*2-s),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Je={};Vs(Je,{clear:()=>na,get:()=>Zs,has:()=>ra,isPersistent:()=>Js,remove:()=>ta,set:()=>ea});var O,G,Xe=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(G!==void 0)return G;try{localStorage.setItem(Xe,"test"),localStorage.removeItem(Xe),G=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Xe),G=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)G=2;else throw r}else throw e}return G===2&&(O=new Map),G},Js=()=>Y()===0,Zs=e=>{var t,n;let r=Y();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:C(r)}},ea=(e,r)=>{let t=Y();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:C(t)}},ra=e=>{var t;let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return C(r),!1}},ta=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:C(r)}},na=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:C(e)}};var ia=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Ze=(p=>(p.INVARIANT="Invariant quality",p.Q_144P="144p",p.Q_240P="240p",p.Q_360P="360p",p.Q_480P="480p",p.Q_720P="720p",p.Q_1080P="1080p",p.Q_1440P="1440p",p.Q_2160P="2160p",p.Q_4320P="4320p",p))(Ze||{});var S={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},oa=(e,r)=>S[e].height>S[r].height,sa=(e,r)=>S[e].height>=S[r].height,er=(e,r)=>S[e].height<S[r].height,aa=(e,r)=>S[e].height<=S[r].height,ua=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:er(r,t)?1:-1)[0],wt=Object.keys(S).sort((e,r)=>er(e,r)?-1:1),la=(e,r=.02)=>[...wt].find(n=>S[n].height*(1+r)>=e),ca=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return wt.find(i=>{let s=S[i];return s.width>=n&&s.height>=t})},pa=e=>S[e].height,rr=e=>e==="Invariant quality",fa=e=>e.every(r=>!rr(r));function va(e){if(rr(e))throw new Error("Expected exact quality")}var ba=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],s=e[n];Array.isArray(i)&&Array.isArray(s)?t[n]=s:typeof i=="object"&&typeof s=="object"?t[n]=ba(s,i):t[n]=n in e?s:i}return t};var Zf=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function tr(e,r=0,t){let n,i,s,u,a,c,l=0,p=!1,f=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(p=!!t.leading,f="maxWait"in t,s=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):s,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,F=i;return n=i=void 0,l=T,u=e.apply(F,q),u}function h(T,q){return d?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(T)):setTimeout(T,q)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function y(T){return l=T,a=h(be,r),p?m(T):u}function g(T){let q=T-c,F=T-l,mt=r-q;return f?Math.min(mt,s-F):mt}function dt(T){let q=T-c,F=T-l;return c===void 0||q>=r||q<0||f&&F>=s}function be(){let T=Date.now();if(dt(T))return Tt(T);a=h(be,g(T))}function Tt(T){return a=void 0,b&&n?m(T):(n=i=void 0,u)}function Rs(){a!==void 0&&I(a),l=0,n=c=i=a=void 0}function Ps(){return a===void 0?u:Tt(Date.now())}function _s(){return a!==void 0}function de(...T){let q=Date.now(),F=dt(q);if(n=T,i=this,c=q,F){if(a===void 0)return y(c);if(f)return a=h(be,r),m(c)}return a===void 0&&(a=h(be,r)),u}return de.cancel=Rs,de.flush=Ps,de.pending=_s,de}var nr=(e,r=0,t)=>tr(e,r,me($($({},{leading:!0,trailing:!0}),t),{maxWait:r}));var ye=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=ye(e[n],r):t[n]=e[n]}return t};var da=e=>ye(e);var Ta=300,ma=(e,r=Ta)=>new v(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let s=new ResizeObserver(nr(u=>{let a=u[0];if(!a)return;let c,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,c=a.contentBoxSize[0].inlineSize):a.contentRect&&(c=a.contentRect.width,l=a.contentRect.height),z(c)&&z(l)&&t.next({width:c,height:l})},r));return s.observe(e),()=>s.disconnect()});var ha=e=>{e.removeAttribute("src"),e.load()};var ge=class extends V{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function Et(e){return new v(r=>{let t={},n=Object.keys(e).length,i=s=>u=>{s in t||n--,t[s]=u,n===0&&r.next(t)};return Object.entries(e).reduce((s,[u,a])=>s.add(a.subscribe(i(u))),new E)})}function St(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var ya=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var ga=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Ia=e=>new v(r=>{e.forEach(t=>r.next(t))});var Oa=(e,r)=>new v(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function qt(e){return r=>new v(t=>r.subscribe(new ir(t,e)))}var ir=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var xa={leading:!1,trailing:!0};function Rt(e,r=xa){return t=>new v(n=>t.subscribe(new or(n,e,r)))}var or=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,z(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var wa={leading:!0,trailing:!1};function Pt(e,r=wa){return t=>new v(n=>t.subscribe(new sr(n,e,r)))}var sr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Ke(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function _t(e){return r=>new v(t=>r.subscribe(new ar(t,e)))}var ar=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Ct(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new ur(t,e)))}var At={},ur=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=At}next(r){let t;try{t=this.lastValue===At||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Ie(e){return r=>new v(t=>r.subscribe(new lr(t,e)))}var lr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Lt(e){return Ie(()=>e)}function Nt(){return e=>new v(r=>{let t=!1,n=!1,i=e.subscribe(s=>{t||(t=!0,r.next(s)),n&&i.unsubscribe()},s=>{var u;t=!0,(u=r.error)==null||u.call(r,s),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function jt(){return e=>new v(r=>e.subscribe(new cr(r)))}var cr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Mt(e){return r=>new v(t=>r.subscribe(new pr(t,e)))}var pr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ea=(a=>(a.NETWORK="network",a.VIDEO_PIPELINE="video_pipeline",a.EXTERNAL_API="external_api",a.PARSER="parser",a.DOM="dom",a.WTF="wtf",a.FATAL="fatal",a))(Ea||{});var Oe=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,s=n.length;i<s;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,s=n.length;i<s;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},K=class extends Oe{constructor(){super(),this.listeners||Oe.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},te=class{constructor(){Object.defineProperty(this,"signal",{value:new K,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(te.prototype[Symbol.toStringTag]="AbortController",K.prototype[Symbol.toStringTag]="AbortSignal");function xe(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function fr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!xe({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:s};let s=t;(s&&!s.prototype.hasOwnProperty("signal")||i)&&(s=function(l,p){let f;p&&p.signal&&(f=p.signal,delete p.signal);let b=new t(l,p);return f&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),b},s.prototype=t.prototype);let u=r;return{fetch:(c,l)=>{let p=s&&s.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(p){let f;try{f=new DOMException("Aborted","AbortError")}catch(d){f=new Error("Aborted"),f.name="AbortError"}if(p.aborted)return Promise.reject(f);let b=new Promise((d,m)=>{p.addEventListener("abort",()=>m(f),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,u(c,l)])}return u(c,l)},Request:s}}var ne=xe({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),kt=ne?fr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Vt=ne?kt.fetch:window.fetch,Xb=ne?kt.Request:window.Request,Jb=ne?te:window.AbortController,Zb=ne?K:window.AbortSignal;var qs=Fs(Ss(),1);var Tf=(f=>(f.Armenian="58",f.Azerbaijani="57",f.Belarusian="114",f.English="3",f.Kazakh="97",f.Portuguese="73",f.Russian="0",f.Spanish="4",f.Ukrainian="1",f.Uzbek="65",f.Vietnamese="75",f))(Tf||{}),mf="vk.com",WT=(e,r,t)=>he(void 0,null,function*(){let n=new URL(`https://${mf}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let s=yield(yield Vt(n.toString())).json();return hf(s,t)}),hf=(e,r)=>(0,qs.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),yf(n)])),yf=e=>Array.isArray(e)?e[0]:e;var gf=(t=>(t.RU="ru",t.EN="en",t))(gf||{});export{Ea as ErrorCategory,gf as InterfaceLanguage,Ye as Logger,v as Observable,V as Subject,E as Subscription,Us as VERSION,Tf as VKNumericLanguage,ge as ValueSubject,Ze as VideoQuality,Ks as abortable,zs as addScript,fa as areQualitiesExact,$s as assertEmptyArray,C as assertNever,Bs as assertNonNullable,Ws as assertNotEmptyArray,Qs as assertNullable,va as assertQualityIsExact,qt as buffer,Gs as checkNever,ha as clearVideoElement,Hs as clientChecker,da as cloneDeep,ye as cloneDeepWith,Et as combine,Rt as debounce,tr as debounceFn,ia as detectEmbed,ba as fillWithDefault,_t as filter,Ct as filterChanged,Oa as fromEvent,Xs as getExponentialDelay,ua as getHighestQuality,ga as interval,oa as isHigher,sa as isHigherOrEqual,rr as isInvariantQuality,er as isLower,aa as isLowerOrEqual,xt as isMobile,z as isNonNullable,Ke as isNullable,WT as loadVKLangPack,Ie as map,Lt as mapTo,St as merge,U as noop,Ys as now,Ia as observableFrom,ma as observeElementSize,Nt as once,jt as pairwise,Je as safeStorage,Mt as tap,Pt as throttle,nr as throttleFn,Zf as timeCodeToString,ya as timeout,la as videoHeightToQuality,pa as videoQualityToHeight,ca as videoSizeToQuality};