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