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