@vkontakte/videoplayer-shared 1.0.65-dev.2c9dce48.0 → 1.0.65-dev.40acdd71.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/es2018.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.65-dev.2c9dce48.0
3
- * Wed, 06 Aug 2025 15:12:55 GMT
2
+ * @vkontakte/videoplayer-shared v1.0.65-dev.40acdd71.0
3
+ * Wed, 06 Aug 2025 14:34:23 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-65/doc/
5
5
  */
6
- "use strict";var ru=Object.create;var Re=Object.defineProperty;var tu=Object.getOwnPropertyDescriptor;var nu=Object.getOwnPropertyNames;var iu=Object.getPrototypeOf,ou=Object.prototype.hasOwnProperty;var s=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Tr=(e,r)=>{for(var t in r)Re(e,t,{get:r[t],enumerable:!0})},Yt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of nu(r))!ou.call(e,i)&&i!==t&&Re(e,i,{get:()=>r[i],enumerable:!(n=tu(r,i))||n.enumerable});return e};var D=(e,r,t)=>(t=e!=null?ru(iu(e)):{},Yt(r||!e||!e.__esModule?Re(t,"default",{value:e,enumerable:!0}):t,e)),su=e=>Yt(Re({},"__esModule",{value:!0}),e);var w=s((gr,cn)=>{"use strict";var ue=function(e){return e&&e.Math===Math&&e};cn.exports=ue(typeof globalThis=="object"&&globalThis)||ue(typeof window=="object"&&window)||ue(typeof self=="object"&&self)||ue(typeof global=="object"&&global)||ue(typeof gr=="object"&&gr)||function(){return this}()||Function("return this")()});var q=s((Ed,ln)=>{"use strict";ln.exports=function(e){try{return!!e()}catch(r){return!0}}});var ce=s((wd,pn)=>{"use strict";var du=q();pn.exports=!du(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var mn=s((Sd,vn)=>{"use strict";var vu=ce(),dn=Function.prototype,fn=dn.apply,bn=dn.call;vn.exports=typeof Reflect=="object"&&Reflect.apply||(vu?bn.bind(fn):function(){return bn.apply(fn,arguments)})});var j=s((qd,hn)=>{"use strict";var yn=ce(),Tn=Function.prototype,Ir=Tn.call,mu=yn&&Tn.bind.bind(Ir,Ir);hn.exports=yn?mu:function(e){return function(){return Ir.apply(e,arguments)}}});var Ae=s((Rd,In)=>{"use strict";var gn=j(),yu=gn({}.toString),Tu=gn("".slice);In.exports=function(e){return Tu(yu(e),8,-1)}});var Or=s((Pd,On)=>{"use strict";var hu=Ae(),gu=j();On.exports=function(e){if(hu(e)==="Function")return gu(e)}});var S=s((_d,xn)=>{"use strict";var xr=typeof document=="object"&&document.all;xn.exports=typeof xr=="undefined"&&xr!==void 0?function(e){return typeof e=="function"||e===xr}:function(e){return typeof e=="function"}});var A=s((Ad,En)=>{"use strict";var Iu=q();En.exports=!Iu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var G=s((Ld,wn)=>{"use strict";var Ou=ce(),Le=Function.prototype.call;wn.exports=Ou?Le.bind(Le):function(){return Le.apply(Le,arguments)}});var Er=s(Rn=>{"use strict";var Sn={}.propertyIsEnumerable,qn=Object.getOwnPropertyDescriptor,xu=qn&&!Sn.call({1:2},1);Rn.f=xu?function(r){var t=qn(this,r);return!!t&&t.enumerable}:Sn});var le=s((Nd,Pn)=>{"use strict";Pn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var An=s((jd,_n)=>{"use strict";var Eu=j(),wu=q(),Su=Ae(),wr=Object,qu=Eu("".split);_n.exports=wu(function(){return!wr("z").propertyIsEnumerable(0)})?function(e){return Su(e)==="String"?qu(e,""):wr(e)}:wr});var Ce=s((kd,Ln)=>{"use strict";Ln.exports=function(e){return e==null}});var Ne=s((Md,Cn)=>{"use strict";var Ru=Ce(),Pu=TypeError;Cn.exports=function(e){if(Ru(e))throw new Pu("Can't call method on "+e);return e}});var W=s((Vd,Nn)=>{"use strict";var _u=An(),Au=Ne();Nn.exports=function(e){return _u(Au(e))}});var k=s((Fd,jn)=>{"use strict";var Lu=S();jn.exports=function(e){return typeof e=="object"?e!==null:Lu(e)}});var pe=s((Dd,kn)=>{"use strict";kn.exports={}});var je=s((Ud,Vn)=>{"use strict";var Sr=pe(),qr=w(),Cu=S(),Mn=function(e){return Cu(e)?e:void 0};Vn.exports=function(e,r){return arguments.length<2?Mn(Sr[e])||Mn(qr[e]):Sr[e]&&Sr[e][r]||qr[e]&&qr[e][r]}});var Rr=s((Gd,Fn)=>{"use strict";var Nu=j();Fn.exports=Nu({}.isPrototypeOf)});var Bn=s((Bd,Gn)=>{"use strict";var ju=w(),Dn=ju.navigator,Un=Dn&&Dn.userAgent;Gn.exports=Un?String(Un):""});var Hn=s((Qd,Yn)=>{"use strict";var $n=w(),Pr=Bn(),Qn=$n.process,zn=$n.Deno,Kn=Qn&&Qn.versions||zn&&zn.version,Wn=Kn&&Kn.v8,L,ke;Wn&&(L=Wn.split("."),ke=L[0]>0&&L[0]<4?1:+(L[0]+L[1]));!ke&&Pr&&(L=Pr.match(/Edge\/(\d+)/),(!L||L[1]>=74)&&(L=Pr.match(/Chrome\/(\d+)/),L&&(ke=+L[1])));Yn.exports=ke});var _r=s((zd,Jn)=>{"use strict";var Xn=Hn(),ku=q(),Mu=w(),Vu=Mu.String;Jn.exports=!!Object.getOwnPropertySymbols&&!ku(function(){var e=Symbol("symbol detection");return!Vu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Xn&&Xn<41})});var Ar=s((Kd,Zn)=>{"use strict";var Fu=_r();Zn.exports=Fu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Lr=s((Wd,ei)=>{"use strict";var Du=je(),Uu=S(),Gu=Rr(),Bu=Ar(),Qu=Object;ei.exports=Bu?function(e){return typeof e=="symbol"}:function(e){var r=Du("Symbol");return Uu(r)&&Gu(r.prototype,Qu(e))}});var Me=s(($d,ri)=>{"use strict";var zu=String;ri.exports=function(e){try{return zu(e)}catch(r){return"Object"}}});var fe=s((Yd,ti)=>{"use strict";var Ku=S(),Wu=Me(),$u=TypeError;ti.exports=function(e){if(Ku(e))return e;throw new $u(Wu(e)+" is not a function")}});var Ve=s((Hd,ni)=>{"use strict";var Yu=fe(),Hu=Ce();ni.exports=function(e,r){var t=e[r];return Hu(t)?void 0:Yu(t)}});var oi=s((Xd,ii)=>{"use strict";var Cr=G(),Nr=S(),jr=k(),Xu=TypeError;ii.exports=function(e,r){var t,n;if(r==="string"&&Nr(t=e.toString)&&!jr(n=Cr(t,e))||Nr(t=e.valueOf)&&!jr(n=Cr(t,e))||r!=="string"&&Nr(t=e.toString)&&!jr(n=Cr(t,e)))return n;throw new Xu("Can't convert object to primitive value")}});var be=s((Jd,si)=>{"use strict";si.exports=!0});var ci=s((Zd,ui)=>{"use strict";var ai=w(),Ju=Object.defineProperty;ui.exports=function(e,r){try{Ju(ai,e,{value:r,configurable:!0,writable:!0})}catch(t){ai[e]=r}return r}});var Fe=s((ev,fi)=>{"use strict";var Zu=be(),ec=w(),rc=ci(),li="__core-js_shared__",pi=fi.exports=ec[li]||rc(li,{});(pi.versions||(pi.versions=[])).push({version:"3.43.0",mode:Zu?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var kr=s((rv,di)=>{"use strict";var bi=Fe();di.exports=function(e,r){return bi[e]||(bi[e]=r||{})}});var De=s((tv,vi)=>{"use strict";var tc=Ne(),nc=Object;vi.exports=function(e){return nc(tc(e))}});var M=s((nv,mi)=>{"use strict";var ic=j(),oc=De(),sc=ic({}.hasOwnProperty);mi.exports=Object.hasOwn||function(r,t){return sc(oc(r),t)}});var Mr=s((iv,yi)=>{"use strict";var ac=j(),uc=0,cc=Math.random(),lc=ac(1.1.toString);yi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+lc(++uc+cc,36)}});var V=s((ov,hi)=>{"use strict";var pc=w(),fc=kr(),Ti=M(),bc=Mr(),dc=_r(),vc=Ar(),re=pc.Symbol,Vr=fc("wks"),mc=vc?re.for||re:re&&re.withoutSetter||bc;hi.exports=function(e){return Ti(Vr,e)||(Vr[e]=dc&&Ti(re,e)?re[e]:mc("Symbol."+e)),Vr[e]}});var xi=s((sv,Oi)=>{"use strict";var yc=G(),gi=k(),Ii=Lr(),Tc=Ve(),hc=oi(),gc=V(),Ic=TypeError,Oc=gc("toPrimitive");Oi.exports=function(e,r){if(!gi(e)||Ii(e))return e;var t=Tc(e,Oc),n;if(t){if(r===void 0&&(r="default"),n=yc(t,e,r),!gi(n)||Ii(n))return n;throw new Ic("Can't convert object to primitive value")}return r===void 0&&(r="number"),hc(e,r)}});var Fr=s((av,Ei)=>{"use strict";var xc=xi(),Ec=Lr();Ei.exports=function(e){var r=xc(e,"string");return Ec(r)?r:r+""}});var Ur=s((uv,Si)=>{"use strict";var wc=w(),wi=k(),Dr=wc.document,Sc=wi(Dr)&&wi(Dr.createElement);Si.exports=function(e){return Sc?Dr.createElement(e):{}}});var Gr=s((cv,qi)=>{"use strict";var qc=A(),Rc=q(),Pc=Ur();qi.exports=!qc&&!Rc(function(){return Object.defineProperty(Pc("div"),"a",{get:function(){return 7}}).a!==7})});var _i=s(Pi=>{"use strict";var _c=A(),Ac=G(),Lc=Er(),Cc=le(),Nc=W(),jc=Fr(),kc=M(),Mc=Gr(),Ri=Object.getOwnPropertyDescriptor;Pi.f=_c?Ri:function(r,t){if(r=Nc(r),t=jc(t),Mc)try{return Ri(r,t)}catch(n){}if(kc(r,t))return Cc(!Ac(Lc.f,r,t),r[t])}});var Li=s((pv,Ai)=>{"use strict";var Vc=q(),Fc=S(),Dc=/#|\.prototype\./,de=function(e,r){var t=Gc[Uc(e)];return t===Qc?!0:t===Bc?!1:Fc(r)?Vc(r):!!r},Uc=de.normalize=function(e){return String(e).replace(Dc,".").toLowerCase()},Gc=de.data={},Bc=de.NATIVE="N",Qc=de.POLYFILL="P";Ai.exports=de});var Br=s((fv,Ni)=>{"use strict";var Ci=Or(),zc=fe(),Kc=ce(),Wc=Ci(Ci.bind);Ni.exports=function(e,r){return zc(e),r===void 0?e:Kc?Wc(e,r):function(){return e.apply(r,arguments)}}});var Qr=s((bv,ji)=>{"use strict";var $c=A(),Yc=q();ji.exports=$c&&Yc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var $=s((dv,ki)=>{"use strict";var Hc=k(),Xc=String,Jc=TypeError;ki.exports=function(e){if(Hc(e))return e;throw new Jc(Xc(e)+" is not an object")}});var te=s(Vi=>{"use strict";var Zc=A(),el=Gr(),rl=Qr(),Ue=$(),Mi=Fr(),tl=TypeError,zr=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,Kr="enumerable",Wr="configurable",$r="writable";Vi.f=Zc?rl?function(r,t,n){if(Ue(r),t=Mi(t),Ue(n),typeof r=="function"&&t==="prototype"&&"value"in n&&$r in n&&!n[$r]){var i=nl(r,t);i&&i[$r]&&(r[t]=n.value,n={configurable:Wr in n?n[Wr]:i[Wr],enumerable:Kr in n?n[Kr]:i[Kr],writable:!1})}return zr(r,t,n)}:zr:function(r,t,n){if(Ue(r),t=Mi(t),Ue(n),el)try{return zr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new tl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ne=s((mv,Fi)=>{"use strict";var il=A(),ol=te(),sl=le();Fi.exports=il?function(e,r,t){return ol.f(e,r,sl(1,t))}:function(e,r,t){return e[r]=t,e}});var se=s((yv,Ui)=>{"use strict";var ve=w(),al=mn(),ul=Or(),cl=S(),ll=_i().f,pl=Li(),ie=pe(),fl=Br(),oe=ne(),Di=M();Fe();var bl=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return al(e,this,arguments)};return r.prototype=e.prototype,r};Ui.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?ve:i?ve[t]:ve[t]&&ve[t].prototype,a=n?ie:ie[t]||oe(ie,t,{})[t],l=a.prototype,p,b,c,d,v,y,T,O,h;for(d in r)p=pl(n?d:t+(i?".":"#")+d,e.forced),b=!p&&u&&Di(u,d),y=a[d],b&&(e.dontCallGetSet?(h=ll(u,d),T=h&&h.value):T=u[d]),v=b&&T?T:r[d],!(!p&&!o&&typeof y==typeof v)&&(e.bind&&b?O=fl(v,ve):e.wrap&&b?O=bl(v):o&&cl(v)?O=ul(v):O=v,(e.sham||v&&v.sham||y&&y.sham)&&oe(O,"sham",!0),oe(a,d,O),o&&(c=t+"Prototype",Di(ie,c)||oe(ie,c,{}),oe(ie[c],d,v),e.real&&l&&(p||!l[d])&&oe(l,d,v)))}});var Bi=s((Tv,Gi)=>{"use strict";var dl=Math.ceil,vl=Math.floor;Gi.exports=Math.trunc||function(r){var t=+r;return(t>0?vl:dl)(t)}});var Ge=s((hv,Qi)=>{"use strict";var ml=Bi();Qi.exports=function(e){var r=+e;return r!==r||r===0?0:ml(r)}});var Ki=s((gv,zi)=>{"use strict";var yl=Ge(),Tl=Math.min;zi.exports=function(e){var r=yl(e);return r>0?Tl(r,9007199254740991):0}});var Be=s((Iv,Wi)=>{"use strict";var hl=Ki();Wi.exports=function(e){return hl(e.length)}});var Qe=s((Ov,$i)=>{"use strict";$i.exports=function(){}});var Yi=s(()=>{"use strict";var gl=se(),Il=De(),Ol=Be(),xl=Ge(),El=Qe();gl({target:"Array",proto:!0},{at:function(r){var t=Il(this),n=Ol(t),i=xl(r),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}});El("at")});var Yr=s((wv,Hi)=>{"use strict";var wl=je();Hi.exports=wl});var Ji=s((Sv,Xi)=>{"use strict";Yi();var Sl=Yr();Xi.exports=Sl("Array","at")});var eo=s((qv,Zi)=>{"use strict";var ql=Ji();Zi.exports=ql});var to=s((Rv,ro)=>{"use strict";var Rl=eo();ro.exports=Rl});var er=s((iy,Oo)=>{"use strict";var Cl=kr(),Nl=Mr(),Io=Cl("keys");Oo.exports=function(e){return Io[e]||(Io[e]=Nl(e))}});var Eo=s((oy,xo)=>{"use strict";var jl=q();xo.exports=!jl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var rr=s((sy,So)=>{"use strict";var kl=M(),Ml=S(),Vl=De(),Fl=er(),Dl=Eo(),wo=Fl("IE_PROTO"),Xr=Object,Ul=Xr.prototype;So.exports=Dl?Xr.getPrototypeOf:function(e){var r=Vl(e);if(kl(r,wo))return r[wo];var t=r.constructor;return Ml(t)&&r instanceof t?t.prototype:r instanceof Xr?Ul:null}});var Ro=s((ay,qo)=>{"use strict";var Gl=Ge(),Bl=Math.max,Ql=Math.min;qo.exports=function(e,r){var t=Gl(e);return t<0?Bl(t+r,0):Ql(t,r)}});var Jr=s((uy,_o)=>{"use strict";var zl=W(),Kl=Ro(),Wl=Be(),Po=function(e){return function(r,t,n){var i=zl(r),o=Wl(i);if(o===0)return!e&&-1;var u=Kl(n,o),a;if(e&&t!==t){for(;o>u;)if(a=i[u++],a!==a)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};_o.exports={includes:Po(!0),indexOf:Po(!1)}});var tr=s((cy,Ao)=>{"use strict";Ao.exports={}});var No=s((ly,Co)=>{"use strict";var $l=j(),Zr=M(),Yl=W(),Hl=Jr().indexOf,Xl=tr(),Lo=$l([].push);Co.exports=function(e,r){var t=Yl(e),n=0,i=[],o;for(o in t)!Zr(Xl,o)&&Zr(t,o)&&Lo(i,o);for(;r.length>n;)Zr(t,o=r[n++])&&(~Hl(i,o)||Lo(i,o));return i}});var et=s((py,jo)=>{"use strict";jo.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var rt=s((fy,ko)=>{"use strict";var Jl=No(),Zl=et();ko.exports=Object.keys||function(r){return Jl(r,Zl)}});var Go=s((by,Uo)=>{"use strict";var Vo=A(),ep=q(),Fo=j(),rp=rr(),tp=rt(),np=W(),ip=Er().f,Do=Fo(ip),op=Fo([].push),sp=Vo&&ep(function(){var e=Object.create(null);return e[2]=2,!Do(e,2)}),Mo=function(e){return function(r){for(var t=np(r),n=tp(t),i=sp&&rp(t)===null,o=n.length,u=0,a=[],l;o>u;)l=n[u++],(!Vo||(i?l in t:Do(t,l)))&&op(a,e?[l,t[l]]:t[l]);return a}};Uo.exports={entries:Mo(!0),values:Mo(!1)}});var Bo=s(()=>{"use strict";var ap=se(),up=Go().entries;ap({target:"Object",stat:!0},{entries:function(r){return up(r)}})});var zo=s((my,Qo)=>{"use strict";Bo();var cp=pe();Qo.exports=cp.Object.entries});var Wo=s((yy,Ko)=>{"use strict";var lp=zo();Ko.exports=lp});var tt=s((Ty,$o)=>{"use strict";var pp=Wo();$o.exports=pp});var es=s(()=>{"use strict";var dp=se(),vp=Jr().includes,mp=q(),yp=Qe(),Tp=mp(function(){return!Array(1).includes()});dp({target:"Array",proto:!0,forced:Tp},{includes:function(r){return vp(this,r,arguments.length>1?arguments[1]:void 0)}});yp("includes")});var ts=s((Wy,rs)=>{"use strict";es();var hp=Yr();rs.exports=hp("Array","includes")});var is=s(($y,ns)=>{"use strict";var gp=ts();ns.exports=gp});var ss=s((Yy,os)=>{"use strict";var Ip=is();os.exports=Ip});var X=s((th,ds)=>{"use strict";ds.exports={}});var ys=s((nh,ms)=>{"use strict";var wp=w(),Sp=S(),vs=wp.WeakMap;ms.exports=Sp(vs)&&/native code/.test(String(vs))});var Is=s((ih,gs)=>{"use strict";var qp=ys(),hs=w(),Rp=k(),Pp=ne(),St=M(),qt=Fe(),_p=er(),Ap=tr(),Ts="Object already initialized",Rt=hs.TypeError,Lp=hs.WeakMap,or,Oe,sr,Cp=function(e){return sr(e)?Oe(e):or(e,{})},Np=function(e){return function(r){var t;if(!Rp(r)||(t=Oe(r)).type!==e)throw new Rt("Incompatible receiver, "+e+" required");return t}};qp||qt.state?(C=qt.state||(qt.state=new Lp),C.get=C.get,C.has=C.has,C.set=C.set,or=function(e,r){if(C.has(e))throw new Rt(Ts);return r.facade=e,C.set(e,r),r},Oe=function(e){return C.get(e)||{}},sr=function(e){return C.has(e)}):(J=_p("state"),Ap[J]=!0,or=function(e,r){if(St(e,J))throw new Rt(Ts);return r.facade=e,Pp(e,J,r),r},Oe=function(e){return St(e,J)?e[J]:{}},sr=function(e){return St(e,J)});var C,J;gs.exports={set:or,get:Oe,has:sr,enforce:Cp,getterFor:Np}});var Es=s((oh,xs)=>{"use strict";var Pt=A(),jp=M(),Os=Function.prototype,kp=Pt&&Object.getOwnPropertyDescriptor,_t=jp(Os,"name"),Mp=_t&&function(){}.name==="something",Vp=_t&&(!Pt||Pt&&kp(Os,"name").configurable);xs.exports={EXISTS:_t,PROPER:Mp,CONFIGURABLE:Vp}});var Ss=s(ws=>{"use strict";var Fp=A(),Dp=Qr(),Up=te(),Gp=$(),Bp=W(),Qp=rt();ws.f=Fp&&!Dp?Object.defineProperties:function(r,t){Gp(r);for(var n=Bp(t),i=Qp(t),o=i.length,u=0,a;o>u;)Up.f(r,a=i[u++],n[a]);return r}});var Rs=s((ah,qs)=>{"use strict";var zp=je();qs.exports=zp("document","documentElement")});var Nt=s((uh,js)=>{"use strict";var Kp=$(),Wp=Ss(),Ps=et(),$p=tr(),Yp=Rs(),Hp=Ur(),Xp=er(),_s=">",As="<",Lt="prototype",Ct="script",Cs=Xp("IE_PROTO"),At=function(){},Ns=function(e){return As+Ct+_s+e+As+"/"+Ct+_s},Ls=function(e){e.write(Ns("")),e.close();var r=e.parentWindow.Object;return e=null,r},Jp=function(){var e=Hp("iframe"),r="java"+Ct+":",t;return e.style.display="none",Yp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Ns("document.F=Object")),t.close(),t.F},ar,ur=function(){try{ar=new ActiveXObject("htmlfile")}catch(r){}ur=typeof document!="undefined"?document.domain&&ar?Ls(ar):Jp():Ls(ar);for(var e=Ps.length;e--;)delete ur[Lt][Ps[e]];return ur()};$p[Cs]=!0;js.exports=Object.create||function(r,t){var n;return r!==null?(At[Lt]=Kp(r),n=new At,At[Lt]=null,n[Cs]=r):n=ur(),t===void 0?n:Wp.f(n,t)}});var jt=s((ch,ks)=>{"use strict";var Zp=ne();ks.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Zp(e,r,t),e}});var Ft=s((lh,Fs)=>{"use strict";var ef=q(),rf=S(),tf=k(),nf=Nt(),Ms=rr(),of=jt(),sf=V(),af=be(),Vt=sf("iterator"),Vs=!1,F,kt,Mt;[].keys&&(Mt=[].keys(),"next"in Mt?(kt=Ms(Ms(Mt)),kt!==Object.prototype&&(F=kt)):Vs=!0);var uf=!tf(F)||ef(function(){var e={};return F[Vt].call(e)!==e});uf?F={}:af&&(F=nf(F));rf(F[Vt])||of(F,Vt,function(){return this});Fs.exports={IteratorPrototype:F,BUGGY_SAFARI_ITERATORS:Vs}});var cr=s((ph,Us)=>{"use strict";var cf=V(),lf=cf("toStringTag"),Ds={};Ds[lf]="z";Us.exports=String(Ds)==="[object z]"});var Dt=s((fh,Gs)=>{"use strict";var pf=cr(),ff=S(),lr=Ae(),bf=V(),df=bf("toStringTag"),vf=Object,mf=lr(function(){return arguments}())==="Arguments",yf=function(e,r){try{return e[r]}catch(t){}};Gs.exports=pf?lr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=yf(r=vf(e),df))=="string"?t:mf?lr(r):(n=lr(r))==="Object"&&ff(r.callee)?"Arguments":n}});var Qs=s((bh,Bs)=>{"use strict";var Tf=cr(),hf=Dt();Bs.exports=Tf?{}.toString:function(){return"[object "+hf(this)+"]"}});var pr=s((dh,Ks)=>{"use strict";var gf=cr(),If=te().f,Of=ne(),xf=M(),Ef=Qs(),wf=V(),zs=wf("toStringTag");Ks.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(xf(i,zs)||If(i,zs,{configurable:!0,value:r}),n&&!gf&&Of(i,"toString",Ef))}});var $s=s((vh,Ws)=>{"use strict";var Sf=Ft().IteratorPrototype,qf=Nt(),Rf=le(),Pf=pr(),_f=X(),Af=function(){return this};Ws.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=qf(Sf,{next:Rf(+!n,t)}),Pf(e,i,!1,!0),_f[i]=Af,e}});var Hs=s((mh,Ys)=>{"use strict";var Lf=j(),Cf=fe();Ys.exports=function(e,r,t){try{return Lf(Cf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Js=s((yh,Xs)=>{"use strict";var Nf=k();Xs.exports=function(e){return Nf(e)||e===null}});var ea=s((Th,Zs)=>{"use strict";var jf=Js(),kf=String,Mf=TypeError;Zs.exports=function(e){if(jf(e))return e;throw new Mf("Can't set "+kf(e)+" as a prototype")}});var ta=s((hh,ra)=>{"use strict";var Vf=Hs(),Ff=k(),Df=Ne(),Uf=ea();ra.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Vf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Df(i),Uf(o),Ff(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var ba=s((gh,fa)=>{"use strict";var Gf=se(),Bf=G(),fr=be(),la=Es(),Qf=S(),zf=$s(),na=rr(),ia=ta(),Kf=pr(),Wf=ne(),Ut=jt(),$f=V(),oa=X(),pa=Ft(),Yf=la.PROPER,Hf=la.CONFIGURABLE,sa=pa.IteratorPrototype,br=pa.BUGGY_SAFARI_ITERATORS,xe=$f("iterator"),aa="keys",Ee="values",ua="entries",ca=function(){return this};fa.exports=function(e,r,t,n,i,o,u){zf(t,r,n);var a=function(h){if(h===i&&d)return d;if(!br&&h&&h in b)return b[h];switch(h){case aa:return function(){return new t(this,h)};case Ee:return function(){return new t(this,h)};case ua:return function(){return new t(this,h)}}return function(){return new t(this)}},l=r+" Iterator",p=!1,b=e.prototype,c=b[xe]||b["@@iterator"]||i&&b[i],d=!br&&c||a(i),v=r==="Array"&&b.entries||c,y,T,O;if(v&&(y=na(v.call(new e)),y!==Object.prototype&&y.next&&(!fr&&na(y)!==sa&&(ia?ia(y,sa):Qf(y[xe])||Ut(y,xe,ca)),Kf(y,l,!0,!0),fr&&(oa[l]=ca))),Yf&&i===Ee&&c&&c.name!==Ee&&(!fr&&Hf?Wf(b,"name",Ee):(p=!0,d=function(){return Bf(c,this)})),i)if(T={values:a(Ee),keys:o?d:a(aa),entries:a(ua)},u)for(O in T)(br||p||!(O in b))&&Ut(b,O,T[O]);else Gf({target:r,proto:!0,forced:br||p},T);return(!fr||u)&&b[xe]!==d&&Ut(b,xe,d,{name:i}),oa[r]=d,T}});var va=s((Ih,da)=>{"use strict";da.exports=function(e,r){return{value:e,done:r}}});var Bt=s((Oh,ga)=>{"use strict";var Xf=W(),Gt=Qe(),ma=X(),Ta=Is(),Jf=te().f,Zf=ba(),dr=va(),eb=be(),rb=A(),ha="Array Iterator",tb=Ta.set,nb=Ta.getterFor(ha);ga.exports=Zf(Array,"Array",function(e,r){tb(this,{type:ha,target:Xf(e),index:0,kind:r})},function(){var e=nb(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,dr(void 0,!0);switch(e.kind){case"keys":return dr(t,!1);case"values":return dr(r[t],!1)}return dr([t,r[t]],!1)},"values");var ya=ma.Arguments=ma.Array;Gt("keys");Gt("values");Gt("entries");if(!eb&&rb&&ya.name!=="values")try{Jf(ya,"name",{value:"values"})}catch(e){}});var Oa=s((xh,Ia)=>{"use strict";var ib=V(),ob=X(),sb=ib("iterator"),ab=Array.prototype;Ia.exports=function(e){return e!==void 0&&(ob.Array===e||ab[sb]===e)}});var Qt=s((Eh,Ea)=>{"use strict";var ub=Dt(),xa=Ve(),cb=Ce(),lb=X(),pb=V(),fb=pb("iterator");Ea.exports=function(e){if(!cb(e))return xa(e,fb)||xa(e,"@@iterator")||lb[ub(e)]}});var Sa=s((wh,wa)=>{"use strict";var bb=G(),db=fe(),vb=$(),mb=Me(),yb=Qt(),Tb=TypeError;wa.exports=function(e,r){var t=arguments.length<2?yb(e):r;if(db(t))return vb(bb(t,e));throw new Tb(mb(e)+" is not iterable")}});var Pa=s((Sh,Ra)=>{"use strict";var hb=G(),qa=$(),gb=Ve();Ra.exports=function(e,r,t){var n,i;qa(e);try{if(n=gb(e,"return"),!n){if(r==="throw")throw t;return t}n=hb(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return qa(n),t}});var Na=s((qh,Ca)=>{"use strict";var Ib=Br(),Ob=G(),xb=$(),Eb=Me(),wb=Oa(),Sb=Be(),_a=Rr(),qb=Sa(),Rb=Qt(),Aa=Pa(),Pb=TypeError,vr=function(e,r){this.stopped=e,this.result=r},La=vr.prototype;Ca.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),l=Ib(r,n),p,b,c,d,v,y,T,O=function(x){return p&&Aa(p,"normal"),new vr(!0,x)},h=function(x){return i?(xb(x),a?l(x[0],x[1],O):l(x[0],x[1])):a?l(x,O):l(x)};if(o)p=e.iterator;else if(u)p=e;else{if(b=Rb(e),!b)throw new Pb(Eb(e)+" is not iterable");if(wb(b)){for(c=0,d=Sb(e);d>c;c++)if(v=h(e[c]),v&&_a(La,v))return v;return new vr(!1)}p=qb(e,b)}for(y=o?e.next:p.next;!(T=Ob(y,p)).done;){try{v=h(T.value)}catch(x){Aa(p,"throw",x)}if(typeof v=="object"&&v&&_a(La,v))return v}return new vr(!1)}});var ka=s((Rh,ja)=>{"use strict";var _b=A(),Ab=te(),Lb=le();ja.exports=function(e,r,t){_b?Ab.f(e,r,Lb(0,t)):e[r]=t}});var Ma=s(()=>{"use strict";var Cb=se(),Nb=Na(),jb=ka();Cb({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Nb(r,function(n,i){jb(t,n,i)},{AS_ENTRIES:!0}),t}})});var Fa=s((Ah,Va)=>{"use strict";Bt();Ma();var kb=pe();Va.exports=kb.Object.fromEntries});var Ua=s((Lh,Da)=>{"use strict";Da.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Ba=s(()=>{"use strict";Bt();var Mb=Ua(),Vb=w(),Fb=pr(),Ga=X();for(mr in Mb)Fb(Vb[mr],mr),Ga[mr]=Ga.Array;var mr});var za=s((jh,Qa)=>{"use strict";var Db=Fa();Ba();Qa.exports=Db});var Wa=s((kh,Ka)=>{"use strict";var Ub=za();Ka.exports=Ub});var Jb={};Tr(Jb,{ErrorCategory:()=>cs,InterfaceLanguage:()=>Xa,InternalsExposure:()=>zt,Logger:()=>Pe,Observable:()=>f,ReplaySubject:()=>Y,Subject:()=>_,Subscription:()=>g,SubscriptionRemovable:()=>he,TracerFactory:()=>Ze,VERSION:()=>Ht,VKNumericLanguage:()=>Ha,ValueSubject:()=>Te,VideoQuality:()=>ze,abortable:()=>sn,addScript:()=>tn,areQualitiesExact:()=>fo,assertEmptyArray:()=>rn,assertNever:()=>N,assertNonNullable:()=>Jt,assertNotEmptyArray:()=>en,assertNullable:()=>Zt,assertQualityIsExact:()=>bo,buffer:()=>st,checkNever:()=>Xt,clearVideoElement:()=>To,cloneDeep:()=>mo,cloneDeepWith:()=>me,combine:()=>nt,createURL:()=>Ll,debounce:()=>ut,debounceFn:()=>$e,detectEmbed:()=>no,devNull:()=>yr,fillWithDefault:()=>vo,filter:()=>ft,filterChanged:()=>dt,flattenObject:()=>ye,fromEvent:()=>Zo,getExponentialDelay:()=>an,getHighestQuality:()=>ao,getTraceSubscriptionMethod:()=>go,interval:()=>Xo,isHigher:()=>io,isHigherOrEqual:()=>oo,isIntersecting:()=>ho,isInvariantQuality:()=>We,isLower:()=>Ke,isLowerOrEqual:()=>so,isNonNullable:()=>z,isNullable:()=>Z,isValidURL:()=>Al,loadVKLangPack:()=>Bb,map:()=>ge,mapTo:()=>mt,merge:()=>it,noop:()=>U,now:()=>on,observableFrom:()=>Jo,observeElementSize:()=>yo,once:()=>yt,pairwise:()=>ht,safeStorage:()=>_e,shareReplay:()=>Et,skip:()=>xt,tap:()=>It,throttle:()=>lt,throttleFn:()=>Ye,timeCodeToString:()=>Pl,timeout:()=>Ho,videoHeightToQuality:()=>co,videoQualityToHeight:()=>po,videoSizeToQuality:()=>lo});module.exports=su(Jb);var Ht="1.0.65-dev.2c9dce48.0";var g=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 N=e=>{throw new Error(`${e} is value of unexpected type`)},Xt=e=>{};var U=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:U}:n={next:a=>t.next(a),error:a=>{var l;return(l=t.error)==null?void 0:l.call(t,a)}}:n={next:U,error:U};let i=typeof r=="function"?{next:a=>{try{let l=r(a);l instanceof Promise&&l.catch(p=>n.next(p))}catch(l){n.next(l)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},o;try{o=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new g().add(()=>{switch(i.next=U,i.error=U,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return N(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var _=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=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new g().add(()=>this.subscribers.delete(n))}};var Pe=class{constructor(){this.log$=new _;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(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};function Jt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Zt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function z(e){return typeof e!="undefined"&&e!==null}function Z(e){return e==null}function en(e,r){if(!(e!=null&&e.length))throw new Error(r)}function rn(e,r){if(e!=null&&e.length)throw new Error(r)}var tn=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),p.remove()});let o=()=>{a(),i("error")},u=()=>{a(),n()},a=()=>{l&&clearTimeout(l),p.removeEventListener("load",u),p.removeEventListener("error",o)},l;t&&(l=window.setTimeout(()=>{a(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",o),p.src=e,document.head.appendChild(p)});var nn,on=typeof((nn=window.performance)==null?void 0:nn.now)=="function"?()=>window.performance.now():()=>Date.now();var sn=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let a=await n.next(o);i=(u=a.done)!=null?u:!1,o=a.value}catch(a){await n.throw(a)}return o};var an=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var _e={};Tr(_e,{clear:()=>fu,get:()=>uu,has:()=>lu,isPersistent:()=>au,remove:()=>pu,set:()=>cu});var E,K,hr=`vk-videoplayer-dummy-key-${Math.random()}`,ee=()=>{if(K!==void 0)return K;try{localStorage.setItem(hr,"test"),localStorage.removeItem(hr),K=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(hr),K=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)K=2;else throw r}else throw e}return K===2&&(E=new Map),K},au=()=>ee()===0,uu=e=>{var t,n;let r=ee();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return E==null?void 0:E.get(e);default:N(r)}},cu=(e,r)=>{let t=ee();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:E==null||E.set(e,r);return;default:N(t)}},lu=e=>{var t;let r=ee();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=E==null?void 0:E.has(e))!=null?t:!1;default:return N(r),!1}},pu=e=>{let r=ee();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:E==null||E.delete(e);return;default:N(r)}},fu=()=>{let e=ee();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return E==null?void 0:E.clear();default:N(e)}};var bu=(e,r,t)=>{if(typeof e.canParse=="function")return e.canParse(r,t);try{return new e(r,t),!0}catch(n){return!1}},un=bu;var Hr=D(to(),1),no=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return r=r.filter(t=>un(URL,t)),{isEmbed:e,origins:r,topOrigin:(0,Hr.default)(r,-1),immediateOrigin:(0,Hr.default)(r,0)}};var ze=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(ze||{});var R={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},io=(e,r)=>R[e].height>R[r].height,oo=(e,r)=>R[e].height>=R[r].height,Ke=(e,r)=>R[e].height<R[r].height,so=(e,r)=>R[e].height<=R[r].height,ao=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Ke(r,t)?1:-1)[0],uo=Object.keys(R).sort((e,r)=>Ke(e,r)?-1:1),co=(e,r=.02)=>[...uo].find(n=>R[n].height*(1+r)>=e),lo=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return uo.find(i=>{let o=R[i];return o.width>=n&&o.height>=t})},po=e=>R[e].height,We=e=>e==="Invariant quality",fo=e=>e.every(r=>!We(r));function bo(e){if(We(e))throw new Error("Expected exact quality")}var vo=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=vo(o,i):t[n]=n in e?o:i}return t};var Pl=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 $e(e,r=0,t){let n,i,o,u,a,l,p=0,b=!1,c=!1,d=!0,v=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(b=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,d="trailing"in t?!!t.trailing:d);function y(m){let P=n,Q=i;return n=i=void 0,p=m,u=e.apply(Q,P),u}function T(m,P){return v?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,P)}function O(m){if(v){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,a=T(Se,r),b?y(m):u}function x(m){let P=m-l,Q=m-p,$t=r-P;return c?Math.min($t,o-Q):$t}function Kt(m){let P=m-l,Q=m-p;return l===void 0||P>=r||P<0||c&&Q>=o}function Se(){let m=Date.now();if(Kt(m))return Wt(m);a=T(Se,x(m))}function Wt(m){return a=void 0,d&&n?y(m):(n=i=void 0,u)}function Ja(){a!==void 0&&O(a),p=0,n=l=i=a=void 0}function Za(){return a===void 0?u:Wt(Date.now())}function eu(){return a!==void 0}function qe(...m){let P=Date.now(),Q=Kt(P);if(n=m,i=this,l=P,Q){if(a===void 0)return h(l);if(c)return a=T(Se,r),y(l)}return a===void 0&&(a=T(Se,r)),u}return qe.cancel=Ja,qe.flush=Za,qe.pending=eu,qe}var Ye=(e,r=0,t)=>$e(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var me=(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]=me(e[n],r):t[n]=e[n]}return t};var mo=e=>me(e);var _l=300,yo=(e,r=_l)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Ye(u=>{let a=u[0];if(!a)return;let l,p;a.contentBoxSize&&a.contentBoxSize[0]?(p=a.contentBoxSize[0].blockSize,l=a.contentBoxSize[0].inlineSize):a.contentRect&&(l=a.contentRect.width,p=a.contentRect.height),z(l)&&z(p)&&t.next({width:l,height:p})},r));return o.observe(e),()=>o.disconnect()});var ye=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let o=ye(e[i],r-1);for(let u in o)o.hasOwnProperty(u)&&(n[i+t+u]=o[u])}else n[i]=e[i];return n};var To=e=>{e.removeAttribute("src"),e.load()};var Al=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var Ll=e=>{try{return new URL(e)}catch(r){return null}};var ho=(e,r)=>!(e.right<r.left||e.left>r.right||e.bottom<r.top||e.top>r.bottom);var go=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ye(t):{value:t})},He=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var I=class I{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];I.dynamicImportStatus==="not_started"&&(I.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=I.dynamicImportPromise.then(i=>{I.dynamicImportStatus==="completed"&&this.init({name:r,getParentContext:t},n)})}init({name:r,getParentContext:t},n){this.span=I.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=I.dynamicImports.opentelemetryApi.trace.setSpan(I.dynamicImports.opentelemetryApi.context.active(),this.span)}async loadOpentelemetry(){if(I.dynamicImportStatus==="not_started"){I.dynamicImportStatus="in_progress";try{let r=new Promise((u,a)=>setTimeout(a,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,o]=await Promise.race([t,r]);I.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:o},I.dynamicImportStatus="completed"}catch(r){I.dynamicImportStatus="failed"}}}isComponentTracerNotInitialized(){return Z(this.span)||I.dynamicImportStatus==="failed"}log(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...He(t),type:"log"},n)})}error(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...He(t),type:"error"},n)})}critical(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...He(t),type:"critical"},n)})}createComponentTracer(r){let t=new I({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.isComponentTracerNotInitialized()||(this.childTracers.forEach(t=>t.end()),this.span.end())})}};I.dynamicImportStatus="not_started";var B=I;var Xe=class extends B{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let o=B.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new B.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,o.addSpanProcessor(new B.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),B.rootTracer=o.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var Je=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var Ze=class{static createRootTracer(r=!1){return r?new Xe:new Je}};var Y=class extends _{constructor(t){super();this.buffer=[];this.cursorEnd=-1;this.cursorStart=0;this.bufferSize=t,this.buffer=Array(t)}next(t){this.cursorEnd+=1,this.cursorStart=this.cursorEnd>=this.bufferSize?this.cursorStart+1:0,this.buffer[this.cursorEnd%this.bufferSize]=t,this.subscribers.forEach(n=>n.next(t))}_subscribe(t){for(let i=this.cursorStart;i<=this.cursorEnd;i++)t.next(this.buffer[i%this.bufferSize]);let n=this.keyCounter++;return this.subscribers.set(n,t),new g().add(()=>this.subscribers.delete(n))}};var Te=class extends _{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}};var Yo=D(tt(),1);function nt(e){return new f(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return(0,Yo.default)(e).reduce((o,[u,a])=>o.add(a.subscribe(i(u))),new g)})}function it(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new g))}var Ho=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 Xo=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Jo=e=>new f(r=>{e.forEach(t=>r.next(t))});var Zo=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var he=class extends g{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function st(e){return r=>new f(t=>r.subscribe(new ot(t,e)))}var ot=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var fp={leading:!1,trailing:!0};function ut(e,r=fp){return t=>new f(n=>t.subscribe(new at(n,e,r)))}var at=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,z(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var bp={leading:!0,trailing:!1};function lt(e,r=bp){return t=>new f(n=>t.subscribe(new ct(n,e,r)))}var ct=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Z(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ft(e){return r=>new f(t=>r.subscribe(new pt(t,e)))}var pt=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var us=D(ss(),1);var Op=(e,r)=>{let t=(n,i)=>{let o=Object.keys(n);for(let u in i)if(!(0,us.default)(o,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},xp=(e,r)=>e instanceof Object&&r instanceof Object?Op(e,r):e===r;function dt(e=xp){return r=>new f(t=>r.subscribe(new bt(t,e)))}var as={},bt=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=as}next(r){let t;try{t=this.lastValue===as||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?{...r}:r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ge(e){return r=>new f(t=>r.subscribe(new vt(t,e)))}var vt=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function mt(e){return ge(()=>e)}function yt(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function ht(){return e=>new f(r=>e.subscribe(new Tt(r)))}var Tt=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function It(e){return r=>new f(t=>r.subscribe(new gt(t,e)))}var gt=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function xt(e){return r=>new f(t=>r.subscribe(new Ot(t,e)))}var Ot=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Et(e=0){return r=>{let t=0,n=new Y(e),i=r.subscribe(n),o=u=>()=>{u.unsubscribe(),t--,t===0&&i.unsubscribe()};return new f(u=>(t++,o(n.subscribe(u))))}}var cs=(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))(cs||{});var{NativeAbortSignal:UT,NativeAbortController:GT}=function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}}(typeof self!="undefined"?self:global);function ls(e){let r;try{r=new Event("abort")}catch(t){typeof document!="undefined"?document.createEvent?(r=document.createEvent("Event"),r.initEvent("abort",!1,!1)):(r=document.createEventObject(),r.type="abort"):r={type:"abort",bubbles:!1,cancelable:!1}}return r.reason=e,r}function ps(e){if(e===void 0)if(typeof document=="undefined")e=new Error("This operation was aborted"),e.name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(r){e=new Error("This operation was aborted"),e.name="AbortError"}return e}var nr=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,o=n.length;i<o;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,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},ae=class extends nr{constructor(){super(),this.listeners||nr.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)}throwIfAborted(){let{aborted:r,reason:t="Aborted"}=this;if(r)throw t}static timeout(r){let t=new H;return setTimeout(()=>t.abort(new DOMException(`This signal is timeout in ${r}ms`,"TimeoutError")),r),t.signal}static any(r){let t=new H;function n(){t.abort(this.reason),i()}function i(){for(let o of r)o.removeEventListener("abort",n)}for(let o of r)if(o.aborted){t.abort(o.reason);break}else o.addEventListener("abort",n);return t.signal}},H=class{constructor(){Object.defineProperty(this,"signal",{value:new ae,writable:!0,configurable:!0})}abort(r){let t=ps(r),n=ls(t);this.signal.reason=t,this.signal.dispatchEvent(n)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(H.prototype[Symbol.toStringTag]="AbortController",ae.prototype[Symbol.toStringTag]="AbortSignal");function ir(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 wt(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!ir({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(p,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let d=new t(p,b);return c&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),d},o.prototype=t.prototype);let u=r;return{fetch:(l,p)=>{let b=o&&o.prototype.isPrototypeOf(l)?l.signal:p?p.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(v){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let d=new Promise((v,y)=>{b.addEventListener("abort",()=>y(c),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([d,u(l,p)])}return u(l,p)},Request:o}}var Ep=()=>"fetch"in window,Ie=Ep()&&ir({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),fs=Ie?wt({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,bs=Ie?fs.fetch:window.fetch,JT=Ie?fs.Request:window.Request,ZT=Ie?H:window.AbortController,eh=Ie?ae:window.AbortSignal;var $a=D(tt(),1),Ya=D(Wa(),1),Ha=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(Ha||{}),Gb="vk.com",Bb=async(e,r,t)=>{let n=new URL(`https://${Gb}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=await(await bs(n.toString())).json();return Qb(o,t)},Qb=(e,r)=>(0,Ya.default)((0,$a.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),zb(n)])),zb=e=>Array.isArray(e)?e[0]:e;var Xa=(t=>(t.RU="ru",t.EN="en",t))(Xa||{});var Kb={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Wb=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),zt=class{constructor(r){this.id=Wb();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return Kb[r]}};var yr={};Tr(yr,{create:()=>$b,destroy:()=>Yb,push:()=>Hb,subscribe:()=>Xb});var we=new Map,$b=(e,r)=>we.set(e,r!=null?r:[]),Yb=e=>we.delete(e),Hb=(e,r)=>{let t=we.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Xb=(e,r)=>{let t=we.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);we.set(e,r)}};
6
+ "use strict";var ru=Object.create;var Re=Object.defineProperty;var tu=Object.getOwnPropertyDescriptor;var nu=Object.getOwnPropertyNames;var iu=Object.getPrototypeOf,ou=Object.prototype.hasOwnProperty;var s=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Tr=(e,r)=>{for(var t in r)Re(e,t,{get:r[t],enumerable:!0})},Yt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of nu(r))!ou.call(e,i)&&i!==t&&Re(e,i,{get:()=>r[i],enumerable:!(n=tu(r,i))||n.enumerable});return e};var D=(e,r,t)=>(t=e!=null?ru(iu(e)):{},Yt(r||!e||!e.__esModule?Re(t,"default",{value:e,enumerable:!0}):t,e)),su=e=>Yt(Re({},"__esModule",{value:!0}),e);var w=s((gr,cn)=>{"use strict";var ue=function(e){return e&&e.Math===Math&&e};cn.exports=ue(typeof globalThis=="object"&&globalThis)||ue(typeof window=="object"&&window)||ue(typeof self=="object"&&self)||ue(typeof global=="object"&&global)||ue(typeof gr=="object"&&gr)||function(){return this}()||Function("return this")()});var q=s((wd,ln)=>{"use strict";ln.exports=function(e){try{return!!e()}catch(r){return!0}}});var ce=s((Sd,pn)=>{"use strict";var vu=q();pn.exports=!vu(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var mn=s((qd,vn)=>{"use strict";var mu=ce(),dn=Function.prototype,fn=dn.apply,bn=dn.call;vn.exports=typeof Reflect=="object"&&Reflect.apply||(mu?bn.bind(fn):function(){return bn.apply(fn,arguments)})});var N=s((Rd,hn)=>{"use strict";var yn=ce(),Tn=Function.prototype,Ir=Tn.call,yu=yn&&Tn.bind.bind(Ir,Ir);hn.exports=yn?yu:function(e){return function(){return Ir.apply(e,arguments)}}});var Ae=s((Pd,In)=>{"use strict";var gn=N(),Tu=gn({}.toString),hu=gn("".slice);In.exports=function(e){return hu(Tu(e),8,-1)}});var Or=s((_d,On)=>{"use strict";var gu=Ae(),Iu=N();On.exports=function(e){if(gu(e)==="Function")return Iu(e)}});var S=s((Ad,xn)=>{"use strict";var xr=typeof document=="object"&&document.all;xn.exports=typeof xr=="undefined"&&xr!==void 0?function(e){return typeof e=="function"||e===xr}:function(e){return typeof e=="function"}});var A=s((Ld,En)=>{"use strict";var Ou=q();En.exports=!Ou(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var U=s((jd,wn)=>{"use strict";var xu=ce(),Le=Function.prototype.call;wn.exports=xu?Le.bind(Le):function(){return Le.apply(Le,arguments)}});var Er=s(Rn=>{"use strict";var Sn={}.propertyIsEnumerable,qn=Object.getOwnPropertyDescriptor,Eu=qn&&!Sn.call({1:2},1);Rn.f=Eu?function(r){var t=qn(this,r);return!!t&&t.enumerable}:Sn});var le=s((Nd,Pn)=>{"use strict";Pn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var An=s((kd,_n)=>{"use strict";var wu=N(),Su=q(),qu=Ae(),wr=Object,Ru=wu("".split);_n.exports=Su(function(){return!wr("z").propertyIsEnumerable(0)})?function(e){return qu(e)==="String"?Ru(e,""):wr(e)}:wr});var je=s((Md,Ln)=>{"use strict";Ln.exports=function(e){return e==null}});var Ce=s((Vd,jn)=>{"use strict";var Pu=je(),_u=TypeError;jn.exports=function(e){if(Pu(e))throw new _u("Can't call method on "+e);return e}});var W=s((Fd,Cn)=>{"use strict";var Au=An(),Lu=Ce();Cn.exports=function(e){return Au(Lu(e))}});var k=s((Dd,Nn)=>{"use strict";var ju=S();Nn.exports=function(e){return typeof e=="object"?e!==null:ju(e)}});var pe=s((Ud,kn)=>{"use strict";kn.exports={}});var Ne=s((Gd,Vn)=>{"use strict";var Sr=pe(),qr=w(),Cu=S(),Mn=function(e){return Cu(e)?e:void 0};Vn.exports=function(e,r){return arguments.length<2?Mn(Sr[e])||Mn(qr[e]):Sr[e]&&Sr[e][r]||qr[e]&&qr[e][r]}});var Rr=s((Bd,Fn)=>{"use strict";var Nu=N();Fn.exports=Nu({}.isPrototypeOf)});var Bn=s((Qd,Gn)=>{"use strict";var ku=w(),Dn=ku.navigator,Un=Dn&&Dn.userAgent;Gn.exports=Un?String(Un):""});var Hn=s((zd,Yn)=>{"use strict";var $n=w(),Pr=Bn(),Qn=$n.process,zn=$n.Deno,Kn=Qn&&Qn.versions||zn&&zn.version,Wn=Kn&&Kn.v8,L,ke;Wn&&(L=Wn.split("."),ke=L[0]>0&&L[0]<4?1:+(L[0]+L[1]));!ke&&Pr&&(L=Pr.match(/Edge\/(\d+)/),(!L||L[1]>=74)&&(L=Pr.match(/Chrome\/(\d+)/),L&&(ke=+L[1])));Yn.exports=ke});var _r=s((Kd,Jn)=>{"use strict";var Xn=Hn(),Mu=q(),Vu=w(),Fu=Vu.String;Jn.exports=!!Object.getOwnPropertySymbols&&!Mu(function(){var e=Symbol("symbol detection");return!Fu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Xn&&Xn<41})});var Ar=s((Wd,Zn)=>{"use strict";var Du=_r();Zn.exports=Du&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Lr=s(($d,ei)=>{"use strict";var Uu=Ne(),Gu=S(),Bu=Rr(),Qu=Ar(),zu=Object;ei.exports=Qu?function(e){return typeof e=="symbol"}:function(e){var r=Uu("Symbol");return Gu(r)&&Bu(r.prototype,zu(e))}});var Me=s((Yd,ri)=>{"use strict";var Ku=String;ri.exports=function(e){try{return Ku(e)}catch(r){return"Object"}}});var fe=s((Hd,ti)=>{"use strict";var Wu=S(),$u=Me(),Yu=TypeError;ti.exports=function(e){if(Wu(e))return e;throw new Yu($u(e)+" is not a function")}});var Ve=s((Xd,ni)=>{"use strict";var Hu=fe(),Xu=je();ni.exports=function(e,r){var t=e[r];return Xu(t)?void 0:Hu(t)}});var oi=s((Jd,ii)=>{"use strict";var jr=U(),Cr=S(),Nr=k(),Ju=TypeError;ii.exports=function(e,r){var t,n;if(r==="string"&&Cr(t=e.toString)&&!Nr(n=jr(t,e))||Cr(t=e.valueOf)&&!Nr(n=jr(t,e))||r!=="string"&&Cr(t=e.toString)&&!Nr(n=jr(t,e)))return n;throw new Ju("Can't convert object to primitive value")}});var be=s((Zd,si)=>{"use strict";si.exports=!0});var ci=s((ev,ui)=>{"use strict";var ai=w(),Zu=Object.defineProperty;ui.exports=function(e,r){try{Zu(ai,e,{value:r,configurable:!0,writable:!0})}catch(t){ai[e]=r}return r}});var Fe=s((rv,fi)=>{"use strict";var ec=be(),rc=w(),tc=ci(),li="__core-js_shared__",pi=fi.exports=rc[li]||tc(li,{});(pi.versions||(pi.versions=[])).push({version:"3.43.0",mode:ec?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var kr=s((tv,di)=>{"use strict";var bi=Fe();di.exports=function(e,r){return bi[e]||(bi[e]=r||{})}});var De=s((nv,vi)=>{"use strict";var nc=Ce(),ic=Object;vi.exports=function(e){return ic(nc(e))}});var M=s((iv,mi)=>{"use strict";var oc=N(),sc=De(),ac=oc({}.hasOwnProperty);mi.exports=Object.hasOwn||function(r,t){return ac(sc(r),t)}});var Mr=s((ov,yi)=>{"use strict";var uc=N(),cc=0,lc=Math.random(),pc=uc(1.1.toString);yi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+pc(++cc+lc,36)}});var V=s((sv,hi)=>{"use strict";var fc=w(),bc=kr(),Ti=M(),dc=Mr(),vc=_r(),mc=Ar(),re=fc.Symbol,Vr=bc("wks"),yc=mc?re.for||re:re&&re.withoutSetter||dc;hi.exports=function(e){return Ti(Vr,e)||(Vr[e]=vc&&Ti(re,e)?re[e]:yc("Symbol."+e)),Vr[e]}});var xi=s((av,Oi)=>{"use strict";var Tc=U(),gi=k(),Ii=Lr(),hc=Ve(),gc=oi(),Ic=V(),Oc=TypeError,xc=Ic("toPrimitive");Oi.exports=function(e,r){if(!gi(e)||Ii(e))return e;var t=hc(e,xc),n;if(t){if(r===void 0&&(r="default"),n=Tc(t,e,r),!gi(n)||Ii(n))return n;throw new Oc("Can't convert object to primitive value")}return r===void 0&&(r="number"),gc(e,r)}});var Fr=s((uv,Ei)=>{"use strict";var Ec=xi(),wc=Lr();Ei.exports=function(e){var r=Ec(e,"string");return wc(r)?r:r+""}});var Ur=s((cv,Si)=>{"use strict";var Sc=w(),wi=k(),Dr=Sc.document,qc=wi(Dr)&&wi(Dr.createElement);Si.exports=function(e){return qc?Dr.createElement(e):{}}});var Gr=s((lv,qi)=>{"use strict";var Rc=A(),Pc=q(),_c=Ur();qi.exports=!Rc&&!Pc(function(){return Object.defineProperty(_c("div"),"a",{get:function(){return 7}}).a!==7})});var _i=s(Pi=>{"use strict";var Ac=A(),Lc=U(),jc=Er(),Cc=le(),Nc=W(),kc=Fr(),Mc=M(),Vc=Gr(),Ri=Object.getOwnPropertyDescriptor;Pi.f=Ac?Ri:function(r,t){if(r=Nc(r),t=kc(t),Vc)try{return Ri(r,t)}catch(n){}if(Mc(r,t))return Cc(!Lc(jc.f,r,t),r[t])}});var Li=s((fv,Ai)=>{"use strict";var Fc=q(),Dc=S(),Uc=/#|\.prototype\./,de=function(e,r){var t=Bc[Gc(e)];return t===zc?!0:t===Qc?!1:Dc(r)?Fc(r):!!r},Gc=de.normalize=function(e){return String(e).replace(Uc,".").toLowerCase()},Bc=de.data={},Qc=de.NATIVE="N",zc=de.POLYFILL="P";Ai.exports=de});var Br=s((bv,Ci)=>{"use strict";var ji=Or(),Kc=fe(),Wc=ce(),$c=ji(ji.bind);Ci.exports=function(e,r){return Kc(e),r===void 0?e:Wc?$c(e,r):function(){return e.apply(r,arguments)}}});var Qr=s((dv,Ni)=>{"use strict";var Yc=A(),Hc=q();Ni.exports=Yc&&Hc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var $=s((vv,ki)=>{"use strict";var Xc=k(),Jc=String,Zc=TypeError;ki.exports=function(e){if(Xc(e))return e;throw new Zc(Jc(e)+" is not an object")}});var te=s(Vi=>{"use strict";var el=A(),rl=Gr(),tl=Qr(),Ue=$(),Mi=Fr(),nl=TypeError,zr=Object.defineProperty,il=Object.getOwnPropertyDescriptor,Kr="enumerable",Wr="configurable",$r="writable";Vi.f=el?tl?function(r,t,n){if(Ue(r),t=Mi(t),Ue(n),typeof r=="function"&&t==="prototype"&&"value"in n&&$r in n&&!n[$r]){var i=il(r,t);i&&i[$r]&&(r[t]=n.value,n={configurable:Wr in n?n[Wr]:i[Wr],enumerable:Kr in n?n[Kr]:i[Kr],writable:!1})}return zr(r,t,n)}:zr:function(r,t,n){if(Ue(r),t=Mi(t),Ue(n),rl)try{return zr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new nl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ne=s((yv,Fi)=>{"use strict";var ol=A(),sl=te(),al=le();Fi.exports=ol?function(e,r,t){return sl.f(e,r,al(1,t))}:function(e,r,t){return e[r]=t,e}});var se=s((Tv,Ui)=>{"use strict";var ve=w(),ul=mn(),cl=Or(),ll=S(),pl=_i().f,fl=Li(),ie=pe(),bl=Br(),oe=ne(),Di=M();Fe();var dl=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 ul(e,this,arguments)};return r.prototype=e.prototype,r};Ui.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?ve:i?ve[t]:ve[t]&&ve[t].prototype,a=n?ie:ie[t]||oe(ie,t,{})[t],l=a.prototype,p,b,c,d,v,y,T,O,h;for(d in r)p=fl(n?d:t+(i?".":"#")+d,e.forced),b=!p&&u&&Di(u,d),y=a[d],b&&(e.dontCallGetSet?(h=pl(u,d),T=h&&h.value):T=u[d]),v=b&&T?T:r[d],!(!p&&!o&&typeof y==typeof v)&&(e.bind&&b?O=bl(v,ve):e.wrap&&b?O=dl(v):o&&ll(v)?O=cl(v):O=v,(e.sham||v&&v.sham||y&&y.sham)&&oe(O,"sham",!0),oe(a,d,O),o&&(c=t+"Prototype",Di(ie,c)||oe(ie,c,{}),oe(ie[c],d,v),e.real&&l&&(p||!l[d])&&oe(l,d,v)))}});var Bi=s((hv,Gi)=>{"use strict";var vl=Math.ceil,ml=Math.floor;Gi.exports=Math.trunc||function(r){var t=+r;return(t>0?ml:vl)(t)}});var Ge=s((gv,Qi)=>{"use strict";var yl=Bi();Qi.exports=function(e){var r=+e;return r!==r||r===0?0:yl(r)}});var Ki=s((Iv,zi)=>{"use strict";var Tl=Ge(),hl=Math.min;zi.exports=function(e){var r=Tl(e);return r>0?hl(r,9007199254740991):0}});var Be=s((Ov,Wi)=>{"use strict";var gl=Ki();Wi.exports=function(e){return gl(e.length)}});var Qe=s((xv,$i)=>{"use strict";$i.exports=function(){}});var Yi=s(()=>{"use strict";var Il=se(),Ol=De(),xl=Be(),El=Ge(),wl=Qe();Il({target:"Array",proto:!0},{at:function(r){var t=Ol(this),n=xl(t),i=El(r),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}});wl("at")});var Yr=s((Sv,Hi)=>{"use strict";var Sl=Ne();Hi.exports=Sl});var Ji=s((qv,Xi)=>{"use strict";Yi();var ql=Yr();Xi.exports=ql("Array","at")});var eo=s((Rv,Zi)=>{"use strict";var Rl=Ji();Zi.exports=Rl});var to=s((Pv,ro)=>{"use strict";var Pl=eo();ro.exports=Pl});var er=s((oy,Oo)=>{"use strict";var Cl=kr(),Nl=Mr(),Io=Cl("keys");Oo.exports=function(e){return Io[e]||(Io[e]=Nl(e))}});var Eo=s((sy,xo)=>{"use strict";var kl=q();xo.exports=!kl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var rr=s((ay,So)=>{"use strict";var Ml=M(),Vl=S(),Fl=De(),Dl=er(),Ul=Eo(),wo=Dl("IE_PROTO"),Xr=Object,Gl=Xr.prototype;So.exports=Ul?Xr.getPrototypeOf:function(e){var r=Fl(e);if(Ml(r,wo))return r[wo];var t=r.constructor;return Vl(t)&&r instanceof t?t.prototype:r instanceof Xr?Gl:null}});var Ro=s((uy,qo)=>{"use strict";var Bl=Ge(),Ql=Math.max,zl=Math.min;qo.exports=function(e,r){var t=Bl(e);return t<0?Ql(t+r,0):zl(t,r)}});var Jr=s((cy,_o)=>{"use strict";var Kl=W(),Wl=Ro(),$l=Be(),Po=function(e){return function(r,t,n){var i=Kl(r),o=$l(i);if(o===0)return!e&&-1;var u=Wl(n,o),a;if(e&&t!==t){for(;o>u;)if(a=i[u++],a!==a)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};_o.exports={includes:Po(!0),indexOf:Po(!1)}});var tr=s((ly,Ao)=>{"use strict";Ao.exports={}});var Co=s((py,jo)=>{"use strict";var Yl=N(),Zr=M(),Hl=W(),Xl=Jr().indexOf,Jl=tr(),Lo=Yl([].push);jo.exports=function(e,r){var t=Hl(e),n=0,i=[],o;for(o in t)!Zr(Jl,o)&&Zr(t,o)&&Lo(i,o);for(;r.length>n;)Zr(t,o=r[n++])&&(~Xl(i,o)||Lo(i,o));return i}});var et=s((fy,No)=>{"use strict";No.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var rt=s((by,ko)=>{"use strict";var Zl=Co(),ep=et();ko.exports=Object.keys||function(r){return Zl(r,ep)}});var Go=s((dy,Uo)=>{"use strict";var Vo=A(),rp=q(),Fo=N(),tp=rr(),np=rt(),ip=W(),op=Er().f,Do=Fo(op),sp=Fo([].push),ap=Vo&&rp(function(){var e=Object.create(null);return e[2]=2,!Do(e,2)}),Mo=function(e){return function(r){for(var t=ip(r),n=np(t),i=ap&&tp(t)===null,o=n.length,u=0,a=[],l;o>u;)l=n[u++],(!Vo||(i?l in t:Do(t,l)))&&sp(a,e?[l,t[l]]:t[l]);return a}};Uo.exports={entries:Mo(!0),values:Mo(!1)}});var Bo=s(()=>{"use strict";var up=se(),cp=Go().entries;up({target:"Object",stat:!0},{entries:function(r){return cp(r)}})});var zo=s((yy,Qo)=>{"use strict";Bo();var lp=pe();Qo.exports=lp.Object.entries});var Wo=s((Ty,Ko)=>{"use strict";var pp=zo();Ko.exports=pp});var tt=s((hy,$o)=>{"use strict";var fp=Wo();$o.exports=fp});var es=s(()=>{"use strict";var vp=se(),mp=Jr().includes,yp=q(),Tp=Qe(),hp=yp(function(){return!Array(1).includes()});vp({target:"Array",proto:!0,forced:hp},{includes:function(r){return mp(this,r,arguments.length>1?arguments[1]:void 0)}});Tp("includes")});var ts=s(($y,rs)=>{"use strict";es();var gp=Yr();rs.exports=gp("Array","includes")});var is=s((Yy,ns)=>{"use strict";var Ip=ts();ns.exports=Ip});var ss=s((Hy,os)=>{"use strict";var Op=is();os.exports=Op});var X=s((nh,ds)=>{"use strict";ds.exports={}});var ys=s((ih,ms)=>{"use strict";var Sp=w(),qp=S(),vs=Sp.WeakMap;ms.exports=qp(vs)&&/native code/.test(String(vs))});var Is=s((oh,gs)=>{"use strict";var Rp=ys(),hs=w(),Pp=k(),_p=ne(),St=M(),qt=Fe(),Ap=er(),Lp=tr(),Ts="Object already initialized",Rt=hs.TypeError,jp=hs.WeakMap,or,Oe,sr,Cp=function(e){return sr(e)?Oe(e):or(e,{})},Np=function(e){return function(r){var t;if(!Pp(r)||(t=Oe(r)).type!==e)throw new Rt("Incompatible receiver, "+e+" required");return t}};Rp||qt.state?(j=qt.state||(qt.state=new jp),j.get=j.get,j.has=j.has,j.set=j.set,or=function(e,r){if(j.has(e))throw new Rt(Ts);return r.facade=e,j.set(e,r),r},Oe=function(e){return j.get(e)||{}},sr=function(e){return j.has(e)}):(J=Ap("state"),Lp[J]=!0,or=function(e,r){if(St(e,J))throw new Rt(Ts);return r.facade=e,_p(e,J,r),r},Oe=function(e){return St(e,J)?e[J]:{}},sr=function(e){return St(e,J)});var j,J;gs.exports={set:or,get:Oe,has:sr,enforce:Cp,getterFor:Np}});var Es=s((sh,xs)=>{"use strict";var Pt=A(),kp=M(),Os=Function.prototype,Mp=Pt&&Object.getOwnPropertyDescriptor,_t=kp(Os,"name"),Vp=_t&&function(){}.name==="something",Fp=_t&&(!Pt||Pt&&Mp(Os,"name").configurable);xs.exports={EXISTS:_t,PROPER:Vp,CONFIGURABLE:Fp}});var Ss=s(ws=>{"use strict";var Dp=A(),Up=Qr(),Gp=te(),Bp=$(),Qp=W(),zp=rt();ws.f=Dp&&!Up?Object.defineProperties:function(r,t){Bp(r);for(var n=Qp(t),i=zp(t),o=i.length,u=0,a;o>u;)Gp.f(r,a=i[u++],n[a]);return r}});var Rs=s((uh,qs)=>{"use strict";var Kp=Ne();qs.exports=Kp("document","documentElement")});var Ct=s((ch,Ns)=>{"use strict";var Wp=$(),$p=Ss(),Ps=et(),Yp=tr(),Hp=Rs(),Xp=Ur(),Jp=er(),_s=">",As="<",Lt="prototype",jt="script",js=Jp("IE_PROTO"),At=function(){},Cs=function(e){return As+jt+_s+e+As+"/"+jt+_s},Ls=function(e){e.write(Cs("")),e.close();var r=e.parentWindow.Object;return e=null,r},Zp=function(){var e=Xp("iframe"),r="java"+jt+":",t;return e.style.display="none",Hp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Cs("document.F=Object")),t.close(),t.F},ar,ur=function(){try{ar=new ActiveXObject("htmlfile")}catch(r){}ur=typeof document!="undefined"?document.domain&&ar?Ls(ar):Zp():Ls(ar);for(var e=Ps.length;e--;)delete ur[Lt][Ps[e]];return ur()};Yp[js]=!0;Ns.exports=Object.create||function(r,t){var n;return r!==null?(At[Lt]=Wp(r),n=new At,At[Lt]=null,n[js]=r):n=ur(),t===void 0?n:$p.f(n,t)}});var Nt=s((lh,ks)=>{"use strict";var ef=ne();ks.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:ef(e,r,t),e}});var Ft=s((ph,Fs)=>{"use strict";var rf=q(),tf=S(),nf=k(),of=Ct(),Ms=rr(),sf=Nt(),af=V(),uf=be(),Vt=af("iterator"),Vs=!1,F,kt,Mt;[].keys&&(Mt=[].keys(),"next"in Mt?(kt=Ms(Ms(Mt)),kt!==Object.prototype&&(F=kt)):Vs=!0);var cf=!nf(F)||rf(function(){var e={};return F[Vt].call(e)!==e});cf?F={}:uf&&(F=of(F));tf(F[Vt])||sf(F,Vt,function(){return this});Fs.exports={IteratorPrototype:F,BUGGY_SAFARI_ITERATORS:Vs}});var cr=s((fh,Us)=>{"use strict";var lf=V(),pf=lf("toStringTag"),Ds={};Ds[pf]="z";Us.exports=String(Ds)==="[object z]"});var Dt=s((bh,Gs)=>{"use strict";var ff=cr(),bf=S(),lr=Ae(),df=V(),vf=df("toStringTag"),mf=Object,yf=lr(function(){return arguments}())==="Arguments",Tf=function(e,r){try{return e[r]}catch(t){}};Gs.exports=ff?lr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Tf(r=mf(e),vf))=="string"?t:yf?lr(r):(n=lr(r))==="Object"&&bf(r.callee)?"Arguments":n}});var Qs=s((dh,Bs)=>{"use strict";var hf=cr(),gf=Dt();Bs.exports=hf?{}.toString:function(){return"[object "+gf(this)+"]"}});var pr=s((vh,Ks)=>{"use strict";var If=cr(),Of=te().f,xf=ne(),Ef=M(),wf=Qs(),Sf=V(),zs=Sf("toStringTag");Ks.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Ef(i,zs)||Of(i,zs,{configurable:!0,value:r}),n&&!If&&xf(i,"toString",wf))}});var $s=s((mh,Ws)=>{"use strict";var qf=Ft().IteratorPrototype,Rf=Ct(),Pf=le(),_f=pr(),Af=X(),Lf=function(){return this};Ws.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Rf(qf,{next:Pf(+!n,t)}),_f(e,i,!1,!0),Af[i]=Lf,e}});var Hs=s((yh,Ys)=>{"use strict";var jf=N(),Cf=fe();Ys.exports=function(e,r,t){try{return jf(Cf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Js=s((Th,Xs)=>{"use strict";var Nf=k();Xs.exports=function(e){return Nf(e)||e===null}});var ea=s((hh,Zs)=>{"use strict";var kf=Js(),Mf=String,Vf=TypeError;Zs.exports=function(e){if(kf(e))return e;throw new Vf("Can't set "+Mf(e)+" as a prototype")}});var ta=s((gh,ra)=>{"use strict";var Ff=Hs(),Df=k(),Uf=Ce(),Gf=ea();ra.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(n){}return function(i,o){return Uf(i),Gf(o),Df(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var ba=s((Ih,fa)=>{"use strict";var Bf=se(),Qf=U(),fr=be(),la=Es(),zf=S(),Kf=$s(),na=rr(),ia=ta(),Wf=pr(),$f=ne(),Ut=Nt(),Yf=V(),oa=X(),pa=Ft(),Hf=la.PROPER,Xf=la.CONFIGURABLE,sa=pa.IteratorPrototype,br=pa.BUGGY_SAFARI_ITERATORS,xe=Yf("iterator"),aa="keys",Ee="values",ua="entries",ca=function(){return this};fa.exports=function(e,r,t,n,i,o,u){Kf(t,r,n);var a=function(h){if(h===i&&d)return d;if(!br&&h&&h in b)return b[h];switch(h){case aa:return function(){return new t(this,h)};case Ee:return function(){return new t(this,h)};case ua:return function(){return new t(this,h)}}return function(){return new t(this)}},l=r+" Iterator",p=!1,b=e.prototype,c=b[xe]||b["@@iterator"]||i&&b[i],d=!br&&c||a(i),v=r==="Array"&&b.entries||c,y,T,O;if(v&&(y=na(v.call(new e)),y!==Object.prototype&&y.next&&(!fr&&na(y)!==sa&&(ia?ia(y,sa):zf(y[xe])||Ut(y,xe,ca)),Wf(y,l,!0,!0),fr&&(oa[l]=ca))),Hf&&i===Ee&&c&&c.name!==Ee&&(!fr&&Xf?$f(b,"name",Ee):(p=!0,d=function(){return Qf(c,this)})),i)if(T={values:a(Ee),keys:o?d:a(aa),entries:a(ua)},u)for(O in T)(br||p||!(O in b))&&Ut(b,O,T[O]);else Bf({target:r,proto:!0,forced:br||p},T);return(!fr||u)&&b[xe]!==d&&Ut(b,xe,d,{name:i}),oa[r]=d,T}});var va=s((Oh,da)=>{"use strict";da.exports=function(e,r){return{value:e,done:r}}});var Bt=s((xh,ga)=>{"use strict";var Jf=W(),Gt=Qe(),ma=X(),Ta=Is(),Zf=te().f,eb=ba(),dr=va(),rb=be(),tb=A(),ha="Array Iterator",nb=Ta.set,ib=Ta.getterFor(ha);ga.exports=eb(Array,"Array",function(e,r){nb(this,{type:ha,target:Jf(e),index:0,kind:r})},function(){var e=ib(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,dr(void 0,!0);switch(e.kind){case"keys":return dr(t,!1);case"values":return dr(r[t],!1)}return dr([t,r[t]],!1)},"values");var ya=ma.Arguments=ma.Array;Gt("keys");Gt("values");Gt("entries");if(!rb&&tb&&ya.name!=="values")try{Zf(ya,"name",{value:"values"})}catch(e){}});var Oa=s((Eh,Ia)=>{"use strict";var ob=V(),sb=X(),ab=ob("iterator"),ub=Array.prototype;Ia.exports=function(e){return e!==void 0&&(sb.Array===e||ub[ab]===e)}});var Qt=s((wh,Ea)=>{"use strict";var cb=Dt(),xa=Ve(),lb=je(),pb=X(),fb=V(),bb=fb("iterator");Ea.exports=function(e){if(!lb(e))return xa(e,bb)||xa(e,"@@iterator")||pb[cb(e)]}});var Sa=s((Sh,wa)=>{"use strict";var db=U(),vb=fe(),mb=$(),yb=Me(),Tb=Qt(),hb=TypeError;wa.exports=function(e,r){var t=arguments.length<2?Tb(e):r;if(vb(t))return mb(db(t,e));throw new hb(yb(e)+" is not iterable")}});var Pa=s((qh,Ra)=>{"use strict";var gb=U(),qa=$(),Ib=Ve();Ra.exports=function(e,r,t){var n,i;qa(e);try{if(n=Ib(e,"return"),!n){if(r==="throw")throw t;return t}n=gb(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return qa(n),t}});var Ca=s((Rh,ja)=>{"use strict";var Ob=Br(),xb=U(),Eb=$(),wb=Me(),Sb=Oa(),qb=Be(),_a=Rr(),Rb=Sa(),Pb=Qt(),Aa=Pa(),_b=TypeError,vr=function(e,r){this.stopped=e,this.result=r},La=vr.prototype;ja.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),l=Ob(r,n),p,b,c,d,v,y,T,O=function(x){return p&&Aa(p,"normal"),new vr(!0,x)},h=function(x){return i?(Eb(x),a?l(x[0],x[1],O):l(x[0],x[1])):a?l(x,O):l(x)};if(o)p=e.iterator;else if(u)p=e;else{if(b=Pb(e),!b)throw new _b(wb(e)+" is not iterable");if(Sb(b)){for(c=0,d=qb(e);d>c;c++)if(v=h(e[c]),v&&_a(La,v))return v;return new vr(!1)}p=Rb(e,b)}for(y=o?e.next:p.next;!(T=xb(y,p)).done;){try{v=h(T.value)}catch(x){Aa(p,"throw",x)}if(typeof v=="object"&&v&&_a(La,v))return v}return new vr(!1)}});var ka=s((Ph,Na)=>{"use strict";var Ab=A(),Lb=te(),jb=le();Na.exports=function(e,r,t){Ab?Lb.f(e,r,jb(0,t)):e[r]=t}});var Ma=s(()=>{"use strict";var Cb=se(),Nb=Ca(),kb=ka();Cb({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Nb(r,function(n,i){kb(t,n,i)},{AS_ENTRIES:!0}),t}})});var Fa=s((Lh,Va)=>{"use strict";Bt();Ma();var Mb=pe();Va.exports=Mb.Object.fromEntries});var Ua=s((jh,Da)=>{"use strict";Da.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Ba=s(()=>{"use strict";Bt();var Vb=Ua(),Fb=w(),Db=pr(),Ga=X();for(mr in Vb)Db(Fb[mr],mr),Ga[mr]=Ga.Array;var mr});var za=s((kh,Qa)=>{"use strict";var Ub=Fa();Ba();Qa.exports=Ub});var Wa=s((Mh,Ka)=>{"use strict";var Gb=za();Ka.exports=Gb});var Zb={};Tr(Zb,{ErrorCategory:()=>cs,InterfaceLanguage:()=>Xa,InternalsExposure:()=>zt,Logger:()=>Pe,Observable:()=>f,ReplaySubject:()=>Y,Subject:()=>_,Subscription:()=>g,SubscriptionRemovable:()=>he,TracerFactory:()=>Ze,VERSION:()=>Ht,VKNumericLanguage:()=>Ha,ValueSubject:()=>Te,VideoQuality:()=>ze,abortable:()=>sn,addScript:()=>tn,areQualitiesExact:()=>fo,assertEmptyArray:()=>rn,assertNever:()=>C,assertNonNullable:()=>Jt,assertNotEmptyArray:()=>en,assertNullable:()=>Zt,assertQualityIsExact:()=>bo,buffer:()=>st,checkNever:()=>Xt,clearVideoElement:()=>To,cloneDeep:()=>mo,cloneDeepWith:()=>me,combine:()=>nt,createURL:()=>jl,debounce:()=>ut,debounceFn:()=>$e,detectEmbed:()=>no,devNull:()=>yr,fillWithDefault:()=>vo,filter:()=>ft,filterChanged:()=>dt,flattenObject:()=>ye,fromEvent:()=>Zo,getExponentialDelay:()=>an,getHighestQuality:()=>ao,getTraceSubscriptionMethod:()=>go,interval:()=>Xo,isHigher:()=>io,isHigherOrEqual:()=>oo,isIntersecting:()=>ho,isInvariantQuality:()=>We,isLower:()=>Ke,isLowerOrEqual:()=>so,isNonNullable:()=>z,isNullable:()=>Z,isValidURL:()=>Ll,loadVKLangPack:()=>Qb,map:()=>ge,mapTo:()=>mt,merge:()=>it,noop:()=>Q,now:()=>on,observableFrom:()=>Jo,observeElementSize:()=>yo,once:()=>yt,pairwise:()=>ht,safeStorage:()=>_e,shareReplay:()=>Et,skip:()=>xt,tap:()=>It,throttle:()=>lt,throttleFn:()=>Ye,timeCodeToString:()=>_l,timeout:()=>Ho,videoHeightToQuality:()=>co,videoQualityToHeight:()=>po,videoSizeToQuality:()=>lo});module.exports=su(Zb);var Ht="1.0.65-dev.40acdd71.0";var g=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>{typeof t=="function"?t():t.unsubscribe()})}add(r){return this.subscriptions.push(r),this}};var C=e=>{throw new Error(`${e} is value of unexpected type`)},Xt=e=>{};var Q=()=>{};var au=e=>{throw console.error(e),e},f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:Q}:n={next:a=>t.next(a),error:a=>{var l;return(l=t.error)==null?void 0:l.call(t,a)}}:n={next:au,error:Q};let i=typeof r=="function"?{next:a=>{try{let l=r(a);l instanceof Promise&&l.catch(p=>n.next(p))}catch(l){n.next(l)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},o;try{o=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new g().add(()=>{switch(i.next=Q,i.error=Q,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return C(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var _=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=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new g().add(()=>this.subscribers.delete(n))}};var Pe=class{constructor(){this.log$=new _;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(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};function Jt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Zt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function z(e){return typeof e!="undefined"&&e!==null}function Z(e){return e==null}function en(e,r){if(!(e!=null&&e.length))throw new Error(r)}function rn(e,r){if(e!=null&&e.length)throw new Error(r)}var tn=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),p.remove()});let o=()=>{a(),i("error")},u=()=>{a(),n()},a=()=>{l&&clearTimeout(l),p.removeEventListener("load",u),p.removeEventListener("error",o)},l;t&&(l=window.setTimeout(()=>{a(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",o),p.src=e,document.head.appendChild(p)});var nn,on=typeof((nn=window.performance)==null?void 0:nn.now)=="function"?()=>window.performance.now():()=>Date.now();var sn=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let a=await n.next(o);i=(u=a.done)!=null?u:!1,o=a.value}catch(a){await n.throw(a)}return o};var an=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var _e={};Tr(_e,{clear:()=>bu,get:()=>cu,has:()=>pu,isPersistent:()=>uu,remove:()=>fu,set:()=>lu});var E,K,hr=`vk-videoplayer-dummy-key-${Math.random()}`,ee=()=>{if(K!==void 0)return K;try{localStorage.setItem(hr,"test"),localStorage.removeItem(hr),K=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(hr),K=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)K=2;else throw r}else throw e}return K===2&&(E=new Map),K},uu=()=>ee()===0,cu=e=>{var t,n;let r=ee();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return E==null?void 0:E.get(e);default:C(r)}},lu=(e,r)=>{let t=ee();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:E==null||E.set(e,r);return;default:C(t)}},pu=e=>{var t;let r=ee();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=E==null?void 0:E.has(e))!=null?t:!1;default:return C(r),!1}},fu=e=>{let r=ee();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:E==null||E.delete(e);return;default:C(r)}},bu=()=>{let e=ee();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return E==null?void 0:E.clear();default:C(e)}};var du=(e,r,t)=>{if(typeof e.canParse=="function")return e.canParse(r,t);try{return new e(r,t),!0}catch(n){return!1}},un=du;var Hr=D(to(),1),no=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return r=r.filter(t=>un(URL,t)),{isEmbed:e,origins:r,topOrigin:(0,Hr.default)(r,-1),immediateOrigin:(0,Hr.default)(r,0)}};var ze=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(ze||{});var R={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},io=(e,r)=>R[e].height>R[r].height,oo=(e,r)=>R[e].height>=R[r].height,Ke=(e,r)=>R[e].height<R[r].height,so=(e,r)=>R[e].height<=R[r].height,ao=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Ke(r,t)?1:-1)[0],uo=Object.keys(R).sort((e,r)=>Ke(e,r)?-1:1),co=(e,r=.02)=>[...uo].find(n=>R[n].height*(1+r)>=e),lo=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return uo.find(i=>{let o=R[i];return o.width>=n&&o.height>=t})},po=e=>R[e].height,We=e=>e==="Invariant quality",fo=e=>e.every(r=>!We(r));function bo(e){if(We(e))throw new Error("Expected exact quality")}var vo=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=vo(o,i):t[n]=n in e?o:i}return t};var _l=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 $e(e,r=0,t){let n,i,o,u,a,l,p=0,b=!1,c=!1,d=!0,v=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(b=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,d="trailing"in t?!!t.trailing:d);function y(m){let P=n,B=i;return n=i=void 0,p=m,u=e.apply(B,P),u}function T(m,P){return v?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,P)}function O(m){if(v){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,a=T(Se,r),b?y(m):u}function x(m){let P=m-l,B=m-p,$t=r-P;return c?Math.min($t,o-B):$t}function Kt(m){let P=m-l,B=m-p;return l===void 0||P>=r||P<0||c&&B>=o}function Se(){let m=Date.now();if(Kt(m))return Wt(m);a=T(Se,x(m))}function Wt(m){return a=void 0,d&&n?y(m):(n=i=void 0,u)}function Ja(){a!==void 0&&O(a),p=0,n=l=i=a=void 0}function Za(){return a===void 0?u:Wt(Date.now())}function eu(){return a!==void 0}function qe(...m){let P=Date.now(),B=Kt(P);if(n=m,i=this,l=P,B){if(a===void 0)return h(l);if(c)return a=T(Se,r),y(l)}return a===void 0&&(a=T(Se,r)),u}return qe.cancel=Ja,qe.flush=Za,qe.pending=eu,qe}var Ye=(e,r=0,t)=>$e(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var me=(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]=me(e[n],r):t[n]=e[n]}return t};var mo=e=>me(e);var Al=300,yo=(e,r=Al)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Ye(u=>{let a=u[0];if(!a)return;let l,p;a.contentBoxSize&&a.contentBoxSize[0]?(p=a.contentBoxSize[0].blockSize,l=a.contentBoxSize[0].inlineSize):a.contentRect&&(l=a.contentRect.width,p=a.contentRect.height),z(l)&&z(p)&&t.next({width:l,height:p})},r));return o.observe(e),()=>o.disconnect()});var ye=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let o=ye(e[i],r-1);for(let u in o)o.hasOwnProperty(u)&&(n[i+t+u]=o[u])}else n[i]=e[i];return n};var To=e=>{e.removeAttribute("src"),e.load()};var Ll=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var jl=e=>{try{return new URL(e)}catch(r){return null}};var ho=(e,r)=>!(e.right<r.left||e.left>r.right||e.bottom<r.top||e.top>r.bottom);var go=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ye(t):{value:t})},He=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var I=class I{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];I.dynamicImportStatus==="not_started"&&(I.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=I.dynamicImportPromise.then(i=>{I.dynamicImportStatus==="completed"&&this.init({name:r,getParentContext:t},n)})}init({name:r,getParentContext:t},n){this.span=I.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=I.dynamicImports.opentelemetryApi.trace.setSpan(I.dynamicImports.opentelemetryApi.context.active(),this.span)}async loadOpentelemetry(){if(I.dynamicImportStatus==="not_started"){I.dynamicImportStatus="in_progress";try{let r=new Promise((u,a)=>setTimeout(a,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,o]=await Promise.race([t,r]);I.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:o},I.dynamicImportStatus="completed"}catch(r){I.dynamicImportStatus="failed"}}}isComponentTracerNotInitialized(){return Z(this.span)||I.dynamicImportStatus==="failed"}log(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...He(t),type:"log"},n)})}error(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...He(t),type:"error"},n)})}critical(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...He(t),type:"critical"},n)})}createComponentTracer(r){let t=new I({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.isComponentTracerNotInitialized()||(this.childTracers.forEach(t=>t.end()),this.span.end())})}};I.dynamicImportStatus="not_started";var G=I;var Xe=class extends G{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let o=G.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new G.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,o.addSpanProcessor(new G.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),G.rootTracer=o.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var Je=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var Ze=class{static createRootTracer(r=!1){return r?new Xe:new Je}};var Y=class extends _{constructor(t){super();this.buffer=[];this.cursorEnd=-1;this.cursorStart=0;this.bufferSize=t,this.buffer=Array(t)}next(t){this.cursorEnd+=1,this.cursorStart=this.cursorEnd>=this.bufferSize?this.cursorStart+1:0,this.buffer[this.cursorEnd%this.bufferSize]=t,this.subscribers.forEach(n=>n.next(t))}_subscribe(t){for(let i=this.cursorStart;i<=this.cursorEnd;i++)t.next(this.buffer[i%this.bufferSize]);let n=this.keyCounter++;return this.subscribers.set(n,t),new g().add(()=>this.subscribers.delete(n))}};var Te=class extends _{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}};var Yo=D(tt(),1);function nt(e){return new f(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return(0,Yo.default)(e).reduce((o,[u,a])=>o.add(a.subscribe(i(u))),new g)})}function it(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new g))}var Ho=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 Xo=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Jo=e=>new f(r=>{e.forEach(t=>r.next(t))});var Zo=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var he=class extends g{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function st(e){return r=>new f(t=>r.subscribe(new ot(t,e)))}var ot=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var bp={leading:!1,trailing:!0};function ut(e,r=bp){return t=>new f(n=>t.subscribe(new at(n,e,r)))}var at=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,z(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var dp={leading:!0,trailing:!1};function lt(e,r=dp){return t=>new f(n=>t.subscribe(new ct(n,e,r)))}var ct=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Z(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ft(e){return r=>new f(t=>r.subscribe(new pt(t,e)))}var pt=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var us=D(ss(),1);var xp=(e,r)=>{let t=(n,i)=>{let o=Object.keys(n);for(let u in i)if(!(0,us.default)(o,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},Ep=(e,r)=>e instanceof Object&&r instanceof Object?xp(e,r):e===r;function dt(e=Ep){return r=>new f(t=>r.subscribe(new bt(t,e)))}var as={},bt=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=as}next(r){let t;try{t=this.lastValue===as||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?{...r}:r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ge(e){return r=>new f(t=>r.subscribe(new vt(t,e)))}var vt=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function mt(e){return ge(()=>e)}function yt(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function ht(){return e=>new f(r=>e.subscribe(new Tt(r)))}var Tt=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function It(e){return r=>new f(t=>r.subscribe(new gt(t,e)))}var gt=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function xt(e){return r=>new f(t=>r.subscribe(new Ot(t,e)))}var Ot=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Et(e=0){return r=>{let t=0,n=new Y(e),i=r.subscribe(n),o=u=>()=>{u.unsubscribe(),t--,t===0&&i.unsubscribe()};return new f(u=>(t++,o(n.subscribe(u))))}}var cs=(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))(cs||{});var{NativeAbortSignal:GT,NativeAbortController:BT}=function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}}(typeof self!="undefined"?self:global);function ls(e){let r;try{r=new Event("abort")}catch(t){typeof document!="undefined"?document.createEvent?(r=document.createEvent("Event"),r.initEvent("abort",!1,!1)):(r=document.createEventObject(),r.type="abort"):r={type:"abort",bubbles:!1,cancelable:!1}}return r.reason=e,r}function ps(e){if(e===void 0)if(typeof document=="undefined")e=new Error("This operation was aborted"),e.name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(r){e=new Error("This operation was aborted"),e.name="AbortError"}return e}var nr=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,o=n.length;i<o;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,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},ae=class extends nr{constructor(){super(),this.listeners||nr.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)}throwIfAborted(){let{aborted:r,reason:t="Aborted"}=this;if(r)throw t}static timeout(r){let t=new H;return setTimeout(()=>t.abort(new DOMException(`This signal is timeout in ${r}ms`,"TimeoutError")),r),t.signal}static any(r){let t=new H;function n(){t.abort(this.reason),i()}function i(){for(let o of r)o.removeEventListener("abort",n)}for(let o of r)if(o.aborted){t.abort(o.reason);break}else o.addEventListener("abort",n);return t.signal}},H=class{constructor(){Object.defineProperty(this,"signal",{value:new ae,writable:!0,configurable:!0})}abort(r){let t=ps(r),n=ls(t);this.signal.reason=t,this.signal.dispatchEvent(n)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(H.prototype[Symbol.toStringTag]="AbortController",ae.prototype[Symbol.toStringTag]="AbortSignal");function ir(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 wt(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!ir({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(p,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let d=new t(p,b);return c&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),d},o.prototype=t.prototype);let u=r;return{fetch:(l,p)=>{let b=o&&o.prototype.isPrototypeOf(l)?l.signal:p?p.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(v){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let d=new Promise((v,y)=>{b.addEventListener("abort",()=>y(c),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([d,u(l,p)])}return u(l,p)},Request:o}}var wp=()=>"fetch"in window,Ie=wp()&&ir({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),fs=Ie?wt({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,bs=Ie?fs.fetch:window.fetch,ZT=Ie?fs.Request:window.Request,eh=Ie?H:window.AbortController,rh=Ie?ae:window.AbortSignal;var $a=D(tt(),1),Ya=D(Wa(),1),Ha=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(Ha||{}),Bb="vk.com",Qb=async(e,r,t)=>{let n=new URL(`https://${Bb}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=await(await bs(n.toString())).json();return zb(o,t)},zb=(e,r)=>(0,Ya.default)((0,$a.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Kb(n)])),Kb=e=>Array.isArray(e)?e[0]:e;var Xa=(t=>(t.RU="ru",t.EN="en",t))(Xa||{});var Wb={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},$b=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),zt=class{constructor(r){this.id=$b();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return Wb[r]}};var yr={};Tr(yr,{create:()=>Yb,destroy:()=>Hb,push:()=>Xb,subscribe:()=>Jb});var we=new Map,Yb=(e,r)=>we.set(e,r!=null?r:[]),Hb=e=>we.delete(e),Xb=(e,r)=>{let t=we.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Jb=(e,r)=>{let t=we.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);we.set(e,r)}};
package/es2018.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.65-dev.2c9dce48.0
3
- * Wed, 06 Aug 2025 15:12:55 GMT
2
+ * @vkontakte/videoplayer-shared v1.0.65-dev.40acdd71.0
3
+ * Wed, 06 Aug 2025 14:34:23 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-65/doc/
5
5
  */
6
- var Ia=Object.create;var ur=Object.defineProperty;var Oa=Object.getOwnPropertyDescriptor;var xa=Object.getOwnPropertyNames;var Ea=Object.getPrototypeOf,wa=Object.prototype.hasOwnProperty;var s=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Nt=(e,r)=>{for(var t in r)ur(e,t,{get:r[t],enumerable:!0})},Sa=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of xa(r))!wa.call(e,i)&&i!==t&&ur(e,i,{get:()=>r[i],enumerable:!(n=Oa(r,i))||n.enumerable});return e};var se=(e,r,t)=>(t=e!=null?Ia(Ea(e)):{},Sa(r||!e||!e.__esModule?ur(t,"default",{value:e,enumerable:!0}):t,e));var w=s((fr,Mt)=>{"use strict";var ue=function(e){return e&&e.Math===Math&&e};Mt.exports=ue(typeof globalThis=="object"&&globalThis)||ue(typeof window=="object"&&window)||ue(typeof self=="object"&&self)||ue(typeof global=="object"&&global)||ue(typeof fr=="object"&&fr)||function(){return this}()||Function("return this")()});var q=s((Td,Vt)=>{"use strict";Vt.exports=function(e){try{return!!e()}catch(r){return!0}}});var ce=s((hd,Ft)=>{"use strict";var Qa=q();Ft.exports=!Qa(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Qt=s((gd,Bt)=>{"use strict";var za=ce(),Gt=Function.prototype,Dt=Gt.apply,Ut=Gt.call;Bt.exports=typeof Reflect=="object"&&Reflect.apply||(za?Ut.bind(Dt):function(){return Ut.apply(Dt,arguments)})});var N=s((Id,Wt)=>{"use strict";var zt=ce(),Kt=Function.prototype,br=Kt.call,Ka=zt&&Kt.bind.bind(br,br);Wt.exports=zt?Ka:function(e){return function(){return br.apply(e,arguments)}}});var xe=s((Od,Yt)=>{"use strict";var $t=N(),Wa=$t({}.toString),$a=$t("".slice);Yt.exports=function(e){return $a(Wa(e),8,-1)}});var dr=s((xd,Ht)=>{"use strict";var Ya=xe(),Ha=N();Ht.exports=function(e){if(Ya(e)==="Function")return Ha(e)}});var S=s((Ed,Xt)=>{"use strict";var vr=typeof document=="object"&&document.all;Xt.exports=typeof vr=="undefined"&&vr!==void 0?function(e){return typeof e=="function"||e===vr}:function(e){return typeof e=="function"}});var _=s((wd,Jt)=>{"use strict";var Xa=q();Jt.exports=!Xa(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var D=s((Sd,Zt)=>{"use strict";var Ja=ce(),Ee=Function.prototype.call;Zt.exports=Ja?Ee.bind(Ee):function(){return Ee.apply(Ee,arguments)}});var mr=s(tn=>{"use strict";var en={}.propertyIsEnumerable,rn=Object.getOwnPropertyDescriptor,Za=rn&&!en.call({1:2},1);tn.f=Za?function(r){var t=rn(this,r);return!!t&&t.enumerable}:en});var le=s((Rd,nn)=>{"use strict";nn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var sn=s((Pd,on)=>{"use strict";var eu=N(),ru=q(),tu=xe(),yr=Object,nu=eu("".split);on.exports=ru(function(){return!yr("z").propertyIsEnumerable(0)})?function(e){return tu(e)==="String"?nu(e,""):yr(e)}:yr});var we=s((_d,an)=>{"use strict";an.exports=function(e){return e==null}});var Se=s((Ad,un)=>{"use strict";var iu=we(),ou=TypeError;un.exports=function(e){if(iu(e))throw new ou("Can't call method on "+e);return e}});var z=s((Ld,cn)=>{"use strict";var su=sn(),au=Se();cn.exports=function(e){return su(au(e))}});var k=s((Cd,ln)=>{"use strict";var uu=S();ln.exports=function(e){return typeof e=="object"?e!==null:uu(e)}});var pe=s((Nd,pn)=>{"use strict";pn.exports={}});var qe=s((jd,bn)=>{"use strict";var Tr=pe(),hr=w(),cu=S(),fn=function(e){return cu(e)?e:void 0};bn.exports=function(e,r){return arguments.length<2?fn(Tr[e])||fn(hr[e]):Tr[e]&&Tr[e][r]||hr[e]&&hr[e][r]}});var gr=s((kd,dn)=>{"use strict";var lu=N();dn.exports=lu({}.isPrototypeOf)});var Tn=s((Md,yn)=>{"use strict";var pu=w(),vn=pu.navigator,mn=vn&&vn.userAgent;yn.exports=mn?String(mn):""});var wn=s((Vd,En)=>{"use strict";var xn=w(),Ir=Tn(),hn=xn.process,gn=xn.Deno,In=hn&&hn.versions||gn&&gn.version,On=In&&In.v8,A,Re;On&&(A=On.split("."),Re=A[0]>0&&A[0]<4?1:+(A[0]+A[1]));!Re&&Ir&&(A=Ir.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=Ir.match(/Chrome\/(\d+)/),A&&(Re=+A[1])));En.exports=Re});var Or=s((Fd,qn)=>{"use strict";var Sn=wn(),fu=q(),bu=w(),du=bu.String;qn.exports=!!Object.getOwnPropertySymbols&&!fu(function(){var e=Symbol("symbol detection");return!du(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Sn&&Sn<41})});var xr=s((Dd,Rn)=>{"use strict";var vu=Or();Rn.exports=vu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Er=s((Ud,Pn)=>{"use strict";var mu=qe(),yu=S(),Tu=gr(),hu=xr(),gu=Object;Pn.exports=hu?function(e){return typeof e=="symbol"}:function(e){var r=mu("Symbol");return yu(r)&&Tu(r.prototype,gu(e))}});var Pe=s((Gd,_n)=>{"use strict";var Iu=String;_n.exports=function(e){try{return Iu(e)}catch(r){return"Object"}}});var fe=s((Bd,An)=>{"use strict";var Ou=S(),xu=Pe(),Eu=TypeError;An.exports=function(e){if(Ou(e))return e;throw new Eu(xu(e)+" is not a function")}});var _e=s((Qd,Ln)=>{"use strict";var wu=fe(),Su=we();Ln.exports=function(e,r){var t=e[r];return Su(t)?void 0:wu(t)}});var Nn=s((zd,Cn)=>{"use strict";var wr=D(),Sr=S(),qr=k(),qu=TypeError;Cn.exports=function(e,r){var t,n;if(r==="string"&&Sr(t=e.toString)&&!qr(n=wr(t,e))||Sr(t=e.valueOf)&&!qr(n=wr(t,e))||r!=="string"&&Sr(t=e.toString)&&!qr(n=wr(t,e)))return n;throw new qu("Can't convert object to primitive value")}});var be=s((Kd,jn)=>{"use strict";jn.exports=!0});var Vn=s((Wd,Mn)=>{"use strict";var kn=w(),Ru=Object.defineProperty;Mn.exports=function(e,r){try{Ru(kn,e,{value:r,configurable:!0,writable:!0})}catch(t){kn[e]=r}return r}});var Ae=s(($d,Un)=>{"use strict";var Pu=be(),_u=w(),Au=Vn(),Fn="__core-js_shared__",Dn=Un.exports=_u[Fn]||Au(Fn,{});(Dn.versions||(Dn.versions=[])).push({version:"3.43.0",mode:Pu?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Rr=s((Yd,Bn)=>{"use strict";var Gn=Ae();Bn.exports=function(e,r){return Gn[e]||(Gn[e]=r||{})}});var Le=s((Hd,Qn)=>{"use strict";var Lu=Se(),Cu=Object;Qn.exports=function(e){return Cu(Lu(e))}});var M=s((Xd,zn)=>{"use strict";var Nu=N(),ju=Le(),ku=Nu({}.hasOwnProperty);zn.exports=Object.hasOwn||function(r,t){return ku(ju(r),t)}});var Pr=s((Jd,Kn)=>{"use strict";var Mu=N(),Vu=0,Fu=Math.random(),Du=Mu(1.1.toString);Kn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Du(++Vu+Fu,36)}});var V=s((Zd,$n)=>{"use strict";var Uu=w(),Gu=Rr(),Wn=M(),Bu=Pr(),Qu=Or(),zu=xr(),J=Uu.Symbol,_r=Gu("wks"),Ku=zu?J.for||J:J&&J.withoutSetter||Bu;$n.exports=function(e){return Wn(_r,e)||(_r[e]=Qu&&Wn(J,e)?J[e]:Ku("Symbol."+e)),_r[e]}});var Jn=s((ev,Xn)=>{"use strict";var Wu=D(),Yn=k(),Hn=Er(),$u=_e(),Yu=Nn(),Hu=V(),Xu=TypeError,Ju=Hu("toPrimitive");Xn.exports=function(e,r){if(!Yn(e)||Hn(e))return e;var t=$u(e,Ju),n;if(t){if(r===void 0&&(r="default"),n=Wu(t,e,r),!Yn(n)||Hn(n))return n;throw new Xu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Yu(e,r)}});var Ar=s((rv,Zn)=>{"use strict";var Zu=Jn(),ec=Er();Zn.exports=function(e){var r=Zu(e,"string");return ec(r)?r:r+""}});var Cr=s((tv,ri)=>{"use strict";var rc=w(),ei=k(),Lr=rc.document,tc=ei(Lr)&&ei(Lr.createElement);ri.exports=function(e){return tc?Lr.createElement(e):{}}});var Nr=s((nv,ti)=>{"use strict";var nc=_(),ic=q(),oc=Cr();ti.exports=!nc&&!ic(function(){return Object.defineProperty(oc("div"),"a",{get:function(){return 7}}).a!==7})});var oi=s(ii=>{"use strict";var sc=_(),ac=D(),uc=mr(),cc=le(),lc=z(),pc=Ar(),fc=M(),bc=Nr(),ni=Object.getOwnPropertyDescriptor;ii.f=sc?ni:function(r,t){if(r=lc(r),t=pc(t),bc)try{return ni(r,t)}catch(n){}if(fc(r,t))return cc(!ac(uc.f,r,t),r[t])}});var ai=s((ov,si)=>{"use strict";var dc=q(),vc=S(),mc=/#|\.prototype\./,de=function(e,r){var t=Tc[yc(e)];return t===gc?!0:t===hc?!1:vc(r)?dc(r):!!r},yc=de.normalize=function(e){return String(e).replace(mc,".").toLowerCase()},Tc=de.data={},hc=de.NATIVE="N",gc=de.POLYFILL="P";si.exports=de});var jr=s((sv,ci)=>{"use strict";var ui=dr(),Ic=fe(),Oc=ce(),xc=ui(ui.bind);ci.exports=function(e,r){return Ic(e),r===void 0?e:Oc?xc(e,r):function(){return e.apply(r,arguments)}}});var kr=s((av,li)=>{"use strict";var Ec=_(),wc=q();li.exports=Ec&&wc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var K=s((uv,pi)=>{"use strict";var Sc=k(),qc=String,Rc=TypeError;pi.exports=function(e){if(Sc(e))return e;throw new Rc(qc(e)+" is not an object")}});var Z=s(bi=>{"use strict";var Pc=_(),_c=Nr(),Ac=kr(),Ce=K(),fi=Ar(),Lc=TypeError,Mr=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,Vr="enumerable",Fr="configurable",Dr="writable";bi.f=Pc?Ac?function(r,t,n){if(Ce(r),t=fi(t),Ce(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Dr in n&&!n[Dr]){var i=Cc(r,t);i&&i[Dr]&&(r[t]=n.value,n={configurable:Fr in n?n[Fr]:i[Fr],enumerable:Vr in n?n[Vr]:i[Vr],writable:!1})}return Mr(r,t,n)}:Mr:function(r,t,n){if(Ce(r),t=fi(t),Ce(n),_c)try{return Mr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Lc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ee=s((lv,di)=>{"use strict";var Nc=_(),jc=Z(),kc=le();di.exports=Nc?function(e,r,t){return jc.f(e,r,kc(1,t))}:function(e,r,t){return e[r]=t,e}});var ne=s((pv,mi)=>{"use strict";var ve=w(),Mc=Qt(),Vc=dr(),Fc=S(),Dc=oi().f,Uc=ai(),re=pe(),Gc=jr(),te=ee(),vi=M();Ae();var Bc=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 Mc(e,this,arguments)};return r.prototype=e.prototype,r};mi.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?ve:i?ve[t]:ve[t]&&ve[t].prototype,a=n?re:re[t]||te(re,t,{})[t],l=a.prototype,p,b,c,d,v,y,T,I,h;for(d in r)p=Uc(n?d:t+(i?".":"#")+d,e.forced),b=!p&&u&&vi(u,d),y=a[d],b&&(e.dontCallGetSet?(h=Dc(u,d),T=h&&h.value):T=u[d]),v=b&&T?T:r[d],!(!p&&!o&&typeof y==typeof v)&&(e.bind&&b?I=Gc(v,ve):e.wrap&&b?I=Bc(v):o&&Fc(v)?I=Vc(v):I=v,(e.sham||v&&v.sham||y&&y.sham)&&te(I,"sham",!0),te(a,d,I),o&&(c=t+"Prototype",vi(re,c)||te(re,c,{}),te(re[c],d,v),e.real&&l&&(p||!l[d])&&te(l,d,v)))}});var Ti=s((fv,yi)=>{"use strict";var Qc=Math.ceil,zc=Math.floor;yi.exports=Math.trunc||function(r){var t=+r;return(t>0?zc:Qc)(t)}});var Ne=s((bv,hi)=>{"use strict";var Kc=Ti();hi.exports=function(e){var r=+e;return r!==r||r===0?0:Kc(r)}});var Ii=s((dv,gi)=>{"use strict";var Wc=Ne(),$c=Math.min;gi.exports=function(e){var r=Wc(e);return r>0?$c(r,9007199254740991):0}});var je=s((vv,Oi)=>{"use strict";var Yc=Ii();Oi.exports=function(e){return Yc(e.length)}});var ke=s((mv,xi)=>{"use strict";xi.exports=function(){}});var Ei=s(()=>{"use strict";var Hc=ne(),Xc=Le(),Jc=je(),Zc=Ne(),el=ke();Hc({target:"Array",proto:!0},{at:function(r){var t=Xc(this),n=Jc(t),i=Zc(r),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}});el("at")});var Ur=s((hv,wi)=>{"use strict";var rl=qe();wi.exports=rl});var qi=s((gv,Si)=>{"use strict";Ei();var tl=Ur();Si.exports=tl("Array","at")});var Pi=s((Iv,Ri)=>{"use strict";var nl=qi();Ri.exports=nl});var Ai=s((Ov,_i)=>{"use strict";var il=Pi();_i.exports=il});var Be=s((ry,Ni)=>{"use strict";var Ol=Rr(),xl=Pr(),Ci=Ol("keys");Ni.exports=function(e){return Ci[e]||(Ci[e]=xl(e))}});var ki=s((ty,ji)=>{"use strict";var El=q();ji.exports=!El(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Qe=s((ny,Vi)=>{"use strict";var wl=M(),Sl=S(),ql=Le(),Rl=Be(),Pl=ki(),Mi=Rl("IE_PROTO"),Yr=Object,_l=Yr.prototype;Vi.exports=Pl?Yr.getPrototypeOf:function(e){var r=ql(e);if(wl(r,Mi))return r[Mi];var t=r.constructor;return Sl(t)&&r instanceof t?t.prototype:r instanceof Yr?_l:null}});var Di=s((iy,Fi)=>{"use strict";var Al=Ne(),Ll=Math.max,Cl=Math.min;Fi.exports=function(e,r){var t=Al(e);return t<0?Ll(t+r,0):Cl(t,r)}});var Hr=s((oy,Gi)=>{"use strict";var Nl=z(),jl=Di(),kl=je(),Ui=function(e){return function(r,t,n){var i=Nl(r),o=kl(i);if(o===0)return!e&&-1;var u=jl(n,o),a;if(e&&t!==t){for(;o>u;)if(a=i[u++],a!==a)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Gi.exports={includes:Ui(!0),indexOf:Ui(!1)}});var ze=s((sy,Bi)=>{"use strict";Bi.exports={}});var Ki=s((ay,zi)=>{"use strict";var Ml=N(),Xr=M(),Vl=z(),Fl=Hr().indexOf,Dl=ze(),Qi=Ml([].push);zi.exports=function(e,r){var t=Vl(e),n=0,i=[],o;for(o in t)!Xr(Dl,o)&&Xr(t,o)&&Qi(i,o);for(;r.length>n;)Xr(t,o=r[n++])&&(~Fl(i,o)||Qi(i,o));return i}});var Jr=s((uy,Wi)=>{"use strict";Wi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Zr=s((cy,$i)=>{"use strict";var Ul=Ki(),Gl=Jr();$i.exports=Object.keys||function(r){return Ul(r,Gl)}});var eo=s((ly,Zi)=>{"use strict";var Hi=_(),Bl=q(),Xi=N(),Ql=Qe(),zl=Zr(),Kl=z(),Wl=mr().f,Ji=Xi(Wl),$l=Xi([].push),Yl=Hi&&Bl(function(){var e=Object.create(null);return e[2]=2,!Ji(e,2)}),Yi=function(e){return function(r){for(var t=Kl(r),n=zl(t),i=Yl&&Ql(t)===null,o=n.length,u=0,a=[],l;o>u;)l=n[u++],(!Hi||(i?l in t:Ji(t,l)))&&$l(a,e?[l,t[l]]:t[l]);return a}};Zi.exports={entries:Yi(!0),values:Yi(!1)}});var ro=s(()=>{"use strict";var Hl=ne(),Xl=eo().entries;Hl({target:"Object",stat:!0},{entries:function(r){return Xl(r)}})});var no=s((by,to)=>{"use strict";ro();var Jl=pe();to.exports=Jl.Object.entries});var oo=s((dy,io)=>{"use strict";var Zl=no();io.exports=Zl});var et=s((vy,so)=>{"use strict";var ep=oo();so.exports=ep});var vo=s(()=>{"use strict";var ap=ne(),up=Hr().includes,cp=q(),lp=ke(),pp=cp(function(){return!Array(1).includes()});ap({target:"Array",proto:!0,forced:pp},{includes:function(r){return up(this,r,arguments.length>1?arguments[1]:void 0)}});lp("includes")});var yo=s((Qy,mo)=>{"use strict";vo();var fp=Ur();mo.exports=fp("Array","includes")});var ho=s((zy,To)=>{"use strict";var bp=yo();To.exports=bp});var Io=s((Ky,go)=>{"use strict";var dp=ho();go.exports=dp});var $=s((ZT,jo)=>{"use strict";jo.exports={}});var Vo=s((eh,Mo)=>{"use strict";var hp=w(),gp=S(),ko=hp.WeakMap;Mo.exports=gp(ko)&&/native code/.test(String(ko))});var Go=s((rh,Uo)=>{"use strict";var Ip=Vo(),Do=w(),Op=k(),xp=ee(),pt=M(),ft=Ae(),Ep=Be(),wp=ze(),Fo="Object already initialized",bt=Do.TypeError,Sp=Do.WeakMap,He,ye,Xe,qp=function(e){return Xe(e)?ye(e):He(e,{})},Rp=function(e){return function(r){var t;if(!Op(r)||(t=ye(r)).type!==e)throw new bt("Incompatible receiver, "+e+" required");return t}};Ip||ft.state?(L=ft.state||(ft.state=new Sp),L.get=L.get,L.has=L.has,L.set=L.set,He=function(e,r){if(L.has(e))throw new bt(Fo);return r.facade=e,L.set(e,r),r},ye=function(e){return L.get(e)||{}},Xe=function(e){return L.has(e)}):(Y=Ep("state"),wp[Y]=!0,He=function(e,r){if(pt(e,Y))throw new bt(Fo);return r.facade=e,xp(e,Y,r),r},ye=function(e){return pt(e,Y)?e[Y]:{}},Xe=function(e){return pt(e,Y)});var L,Y;Uo.exports={set:He,get:ye,has:Xe,enforce:qp,getterFor:Rp}});var zo=s((th,Qo)=>{"use strict";var dt=_(),Pp=M(),Bo=Function.prototype,_p=dt&&Object.getOwnPropertyDescriptor,vt=Pp(Bo,"name"),Ap=vt&&function(){}.name==="something",Lp=vt&&(!dt||dt&&_p(Bo,"name").configurable);Qo.exports={EXISTS:vt,PROPER:Ap,CONFIGURABLE:Lp}});var Wo=s(Ko=>{"use strict";var Cp=_(),Np=kr(),jp=Z(),kp=K(),Mp=z(),Vp=Zr();Ko.f=Cp&&!Np?Object.defineProperties:function(r,t){kp(r);for(var n=Mp(t),i=Vp(t),o=i.length,u=0,a;o>u;)jp.f(r,a=i[u++],n[a]);return r}});var Yo=s((ih,$o)=>{"use strict";var Fp=qe();$o.exports=Fp("document","documentElement")});var ht=s((oh,ts)=>{"use strict";var Dp=K(),Up=Wo(),Ho=Jr(),Gp=ze(),Bp=Yo(),Qp=Cr(),zp=Be(),Xo=">",Jo="<",yt="prototype",Tt="script",es=zp("IE_PROTO"),mt=function(){},rs=function(e){return Jo+Tt+Xo+e+Jo+"/"+Tt+Xo},Zo=function(e){e.write(rs("")),e.close();var r=e.parentWindow.Object;return e=null,r},Kp=function(){var e=Qp("iframe"),r="java"+Tt+":",t;return e.style.display="none",Bp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(rs("document.F=Object")),t.close(),t.F},Je,Ze=function(){try{Je=new ActiveXObject("htmlfile")}catch(r){}Ze=typeof document!="undefined"?document.domain&&Je?Zo(Je):Kp():Zo(Je);for(var e=Ho.length;e--;)delete Ze[yt][Ho[e]];return Ze()};Gp[es]=!0;ts.exports=Object.create||function(r,t){var n;return r!==null?(mt[yt]=Dp(r),n=new mt,mt[yt]=null,n[es]=r):n=Ze(),t===void 0?n:Up.f(n,t)}});var gt=s((sh,ns)=>{"use strict";var Wp=ee();ns.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Wp(e,r,t),e}});var Et=s((ah,ss)=>{"use strict";var $p=q(),Yp=S(),Hp=k(),Xp=ht(),is=Qe(),Jp=gt(),Zp=V(),ef=be(),xt=Zp("iterator"),os=!1,F,It,Ot;[].keys&&(Ot=[].keys(),"next"in Ot?(It=is(is(Ot)),It!==Object.prototype&&(F=It)):os=!0);var rf=!Hp(F)||$p(function(){var e={};return F[xt].call(e)!==e});rf?F={}:ef&&(F=Xp(F));Yp(F[xt])||Jp(F,xt,function(){return this});ss.exports={IteratorPrototype:F,BUGGY_SAFARI_ITERATORS:os}});var er=s((uh,us)=>{"use strict";var tf=V(),nf=tf("toStringTag"),as={};as[nf]="z";us.exports=String(as)==="[object z]"});var wt=s((ch,cs)=>{"use strict";var of=er(),sf=S(),rr=xe(),af=V(),uf=af("toStringTag"),cf=Object,lf=rr(function(){return arguments}())==="Arguments",pf=function(e,r){try{return e[r]}catch(t){}};cs.exports=of?rr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=pf(r=cf(e),uf))=="string"?t:lf?rr(r):(n=rr(r))==="Object"&&sf(r.callee)?"Arguments":n}});var ps=s((lh,ls)=>{"use strict";var ff=er(),bf=wt();ls.exports=ff?{}.toString:function(){return"[object "+bf(this)+"]"}});var tr=s((ph,bs)=>{"use strict";var df=er(),vf=Z().f,mf=ee(),yf=M(),Tf=ps(),hf=V(),fs=hf("toStringTag");bs.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(yf(i,fs)||vf(i,fs,{configurable:!0,value:r}),n&&!df&&mf(i,"toString",Tf))}});var vs=s((fh,ds)=>{"use strict";var gf=Et().IteratorPrototype,If=ht(),Of=le(),xf=tr(),Ef=$(),wf=function(){return this};ds.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=If(gf,{next:Of(+!n,t)}),xf(e,i,!1,!0),Ef[i]=wf,e}});var ys=s((bh,ms)=>{"use strict";var Sf=N(),qf=fe();ms.exports=function(e,r,t){try{return Sf(qf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var hs=s((dh,Ts)=>{"use strict";var Rf=k();Ts.exports=function(e){return Rf(e)||e===null}});var Is=s((vh,gs)=>{"use strict";var Pf=hs(),_f=String,Af=TypeError;gs.exports=function(e){if(Pf(e))return e;throw new Af("Can't set "+_f(e)+" as a prototype")}});var xs=s((mh,Os)=>{"use strict";var Lf=ys(),Cf=k(),Nf=Se(),jf=Is();Os.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Lf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Nf(i),jf(o),Cf(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var Ns=s((yh,Cs)=>{"use strict";var kf=ne(),Mf=D(),nr=be(),As=zo(),Vf=S(),Ff=vs(),Es=Qe(),ws=xs(),Df=tr(),Uf=ee(),St=gt(),Gf=V(),Ss=$(),Ls=Et(),Bf=As.PROPER,Qf=As.CONFIGURABLE,qs=Ls.IteratorPrototype,ir=Ls.BUGGY_SAFARI_ITERATORS,Te=Gf("iterator"),Rs="keys",he="values",Ps="entries",_s=function(){return this};Cs.exports=function(e,r,t,n,i,o,u){Ff(t,r,n);var a=function(h){if(h===i&&d)return d;if(!ir&&h&&h in b)return b[h];switch(h){case Rs:return function(){return new t(this,h)};case he:return function(){return new t(this,h)};case Ps:return function(){return new t(this,h)}}return function(){return new t(this)}},l=r+" Iterator",p=!1,b=e.prototype,c=b[Te]||b["@@iterator"]||i&&b[i],d=!ir&&c||a(i),v=r==="Array"&&b.entries||c,y,T,I;if(v&&(y=Es(v.call(new e)),y!==Object.prototype&&y.next&&(!nr&&Es(y)!==qs&&(ws?ws(y,qs):Vf(y[Te])||St(y,Te,_s)),Df(y,l,!0,!0),nr&&(Ss[l]=_s))),Bf&&i===he&&c&&c.name!==he&&(!nr&&Qf?Uf(b,"name",he):(p=!0,d=function(){return Mf(c,this)})),i)if(T={values:a(he),keys:o?d:a(Rs),entries:a(Ps)},u)for(I in T)(ir||p||!(I in b))&&St(b,I,T[I]);else kf({target:r,proto:!0,forced:ir||p},T);return(!nr||u)&&b[Te]!==d&&St(b,Te,d,{name:i}),Ss[r]=d,T}});var ks=s((Th,js)=>{"use strict";js.exports=function(e,r){return{value:e,done:r}}});var Rt=s((hh,Us)=>{"use strict";var zf=z(),qt=ke(),Ms=$(),Fs=Go(),Kf=Z().f,Wf=Ns(),or=ks(),$f=be(),Yf=_(),Ds="Array Iterator",Hf=Fs.set,Xf=Fs.getterFor(Ds);Us.exports=Wf(Array,"Array",function(e,r){Hf(this,{type:Ds,target:zf(e),index:0,kind:r})},function(){var e=Xf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,or(void 0,!0);switch(e.kind){case"keys":return or(t,!1);case"values":return or(r[t],!1)}return or([t,r[t]],!1)},"values");var Vs=Ms.Arguments=Ms.Array;qt("keys");qt("values");qt("entries");if(!$f&&Yf&&Vs.name!=="values")try{Kf(Vs,"name",{value:"values"})}catch(e){}});var Bs=s((gh,Gs)=>{"use strict";var Jf=V(),Zf=$(),eb=Jf("iterator"),rb=Array.prototype;Gs.exports=function(e){return e!==void 0&&(Zf.Array===e||rb[eb]===e)}});var Pt=s((Ih,zs)=>{"use strict";var tb=wt(),Qs=_e(),nb=we(),ib=$(),ob=V(),sb=ob("iterator");zs.exports=function(e){if(!nb(e))return Qs(e,sb)||Qs(e,"@@iterator")||ib[tb(e)]}});var Ws=s((Oh,Ks)=>{"use strict";var ab=D(),ub=fe(),cb=K(),lb=Pe(),pb=Pt(),fb=TypeError;Ks.exports=function(e,r){var t=arguments.length<2?pb(e):r;if(ub(t))return cb(ab(t,e));throw new fb(lb(e)+" is not iterable")}});var Hs=s((xh,Ys)=>{"use strict";var bb=D(),$s=K(),db=_e();Ys.exports=function(e,r,t){var n,i;$s(e);try{if(n=db(e,"return"),!n){if(r==="throw")throw t;return t}n=bb(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return $s(n),t}});var ra=s((Eh,ea)=>{"use strict";var vb=jr(),mb=D(),yb=K(),Tb=Pe(),hb=Bs(),gb=je(),Xs=gr(),Ib=Ws(),Ob=Pt(),Js=Hs(),xb=TypeError,sr=function(e,r){this.stopped=e,this.result=r},Zs=sr.prototype;ea.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),l=vb(r,n),p,b,c,d,v,y,T,I=function(O){return p&&Js(p,"normal"),new sr(!0,O)},h=function(O){return i?(yb(O),a?l(O[0],O[1],I):l(O[0],O[1])):a?l(O,I):l(O)};if(o)p=e.iterator;else if(u)p=e;else{if(b=Ob(e),!b)throw new xb(Tb(e)+" is not iterable");if(hb(b)){for(c=0,d=gb(e);d>c;c++)if(v=h(e[c]),v&&Xs(Zs,v))return v;return new sr(!1)}p=Ib(e,b)}for(y=o?e.next:p.next;!(T=mb(y,p)).done;){try{v=h(T.value)}catch(O){Js(p,"throw",O)}if(typeof v=="object"&&v&&Xs(Zs,v))return v}return new sr(!1)}});var na=s((wh,ta)=>{"use strict";var Eb=_(),wb=Z(),Sb=le();ta.exports=function(e,r,t){Eb?wb.f(e,r,Sb(0,t)):e[r]=t}});var ia=s(()=>{"use strict";var qb=ne(),Rb=ra(),Pb=na();qb({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Rb(r,function(n,i){Pb(t,n,i)},{AS_ENTRIES:!0}),t}})});var sa=s((Rh,oa)=>{"use strict";Rt();ia();var _b=pe();oa.exports=_b.Object.fromEntries});var ua=s((Ph,aa)=>{"use strict";aa.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 la=s(()=>{"use strict";Rt();var Ab=ua(),Lb=w(),Cb=tr(),ca=$();for(ar in Ab)Cb(Lb[ar],ar),ca[ar]=ca.Array;var ar});var fa=s((Lh,pa)=>{"use strict";var Nb=sa();la();pa.exports=Nb});var da=s((Ch,ba)=>{"use strict";var jb=fa();ba.exports=jb});var qa="1.0.65-dev.2c9dce48.0";var x=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>{typeof t=="function"?t():t.unsubscribe()})}add(r){return this.subscriptions.push(r),this}};var j=e=>{throw new Error(`${e} is value of unexpected type`)},Ra=e=>{};var B=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:B}:n={next:a=>t.next(a),error:a=>{var l;return(l=t.error)==null?void 0:l.call(t,a)}}:n={next:B,error:B};let i=typeof r=="function"?{next:a=>{try{let l=r(a);l instanceof Promise&&l.catch(p=>n.next(p))}catch(l){n.next(l)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},o;try{o=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new x().add(()=>{switch(i.next=B,i.error=B,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return j(o)}})}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=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var cr=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(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};function Pa(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function _a(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function H(e){return typeof e!="undefined"&&e!==null}function ae(e){return e==null}function Aa(e,r){if(!(e!=null&&e.length))throw new Error(r)}function La(e,r){if(e!=null&&e.length)throw new Error(r)}var Ca=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),p.remove()});let o=()=>{a(),i("error")},u=()=>{a(),n()},a=()=>{l&&clearTimeout(l),p.removeEventListener("load",u),p.removeEventListener("error",o)},l;t&&(l=window.setTimeout(()=>{a(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",o),p.src=e,document.head.appendChild(p)});var jt,Na=typeof((jt=window.performance)==null?void 0:jt.now)=="function"?()=>window.performance.now():()=>Date.now();var ja=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let a=await n.next(o);i=(u=a.done)!=null?u:!1,o=a.value}catch(a){await n.throw(a)}return o};var ka=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var pr={};Nt(pr,{clear:()=>Ga,get:()=>Va,has:()=>Da,isPersistent:()=>Ma,remove:()=>Ua,set:()=>Fa});var E,Q,lr=`vk-videoplayer-dummy-key-${Math.random()}`,X=()=>{if(Q!==void 0)return Q;try{localStorage.setItem(lr,"test"),localStorage.removeItem(lr),Q=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(lr),Q=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Q=2;else throw r}else throw e}return Q===2&&(E=new Map),Q},Ma=()=>X()===0,Va=e=>{var t,n;let r=X();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return E==null?void 0:E.get(e);default:j(r)}},Fa=(e,r)=>{let t=X();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:E==null||E.set(e,r);return;default:j(t)}},Da=e=>{var t;let r=X();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=E==null?void 0:E.has(e))!=null?t:!1;default:return j(r),!1}},Ua=e=>{let r=X();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:E==null||E.delete(e);return;default:j(r)}},Ga=()=>{let e=X();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return E==null?void 0:E.clear();default:j(e)}};var Ba=(e,r,t)=>{if(typeof e.canParse=="function")return e.canParse(r,t);try{return new e(r,t),!0}catch(n){return!1}},kt=Ba;var Gr=se(Ai(),1),ol=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return r=r.filter(t=>kt(URL,t)),{isEmbed:e,origins:r,topOrigin:(0,Gr.default)(r,-1),immediateOrigin:(0,Gr.default)(r,0)}};var Br=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Br||{});var R={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},sl=(e,r)=>R[e].height>R[r].height,al=(e,r)=>R[e].height>=R[r].height,Qr=(e,r)=>R[e].height<R[r].height,ul=(e,r)=>R[e].height<=R[r].height,cl=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Qr(r,t)?1:-1)[0],Li=Object.keys(R).sort((e,r)=>Qr(e,r)?-1:1),ll=(e,r=.02)=>[...Li].find(n=>R[n].height*(1+r)>=e),pl=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Li.find(i=>{let o=R[i];return o.width>=n&&o.height>=t})},fl=e=>R[e].height,zr=e=>e==="Invariant quality",bl=e=>e.every(r=>!zr(r));function dl(e){if(zr(e))throw new Error("Expected exact quality")}var vl=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=vl(o,i):t[n]=n in e?o:i}return t};var Pv=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 Kr(e,r=0,t){let n,i,o,u,a,l,p=0,b=!1,c=!1,d=!0,v=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(b=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,d="trailing"in t?!!t.trailing:d);function y(m){let P=n,G=i;return n=i=void 0,p=m,u=e.apply(G,P),u}function T(m,P){return v?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,P)}function I(m){if(v){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,a=T(Ie,r),b?y(m):u}function O(m){let P=m-l,G=m-p,Ct=r-P;return c?Math.min(Ct,o-G):Ct}function At(m){let P=m-l,G=m-p;return l===void 0||P>=r||P<0||c&&G>=o}function Ie(){let m=Date.now();if(At(m))return Lt(m);a=T(Ie,O(m))}function Lt(m){return a=void 0,d&&n?y(m):(n=i=void 0,u)}function Ta(){a!==void 0&&I(a),p=0,n=l=i=a=void 0}function ha(){return a===void 0?u:Lt(Date.now())}function ga(){return a!==void 0}function Oe(...m){let P=Date.now(),G=At(P);if(n=m,i=this,l=P,G){if(a===void 0)return h(l);if(c)return a=T(Ie,r),y(l)}return a===void 0&&(a=T(Ie,r)),u}return Oe.cancel=Ta,Oe.flush=ha,Oe.pending=ga,Oe}var Wr=(e,r=0,t)=>Kr(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var Me=(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]=Me(e[n],r):t[n]=e[n]}return t};var ml=e=>Me(e);var yl=300,Tl=(e,r=yl)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Wr(u=>{let a=u[0];if(!a)return;let l,p;a.contentBoxSize&&a.contentBoxSize[0]?(p=a.contentBoxSize[0].blockSize,l=a.contentBoxSize[0].inlineSize):a.contentRect&&(l=a.contentRect.width,p=a.contentRect.height),H(l)&&H(p)&&t.next({width:l,height:p})},r));return o.observe(e),()=>o.disconnect()});var Ve=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let o=Ve(e[i],r-1);for(let u in o)o.hasOwnProperty(u)&&(n[i+t+u]=o[u])}else n[i]=e[i];return n};var hl=e=>{e.removeAttribute("src"),e.load()};var Gv=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var Qv=e=>{try{return new URL(e)}catch(r){return null}};var gl=(e,r)=>!(e.right<r.left||e.left>r.right||e.bottom<r.top||e.top>r.bottom);var Il=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Ve(t):{value:t})},Fe=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var g=class g{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];g.dynamicImportStatus==="not_started"&&(g.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=g.dynamicImportPromise.then(i=>{g.dynamicImportStatus==="completed"&&this.init({name:r,getParentContext:t},n)})}init({name:r,getParentContext:t},n){this.span=g.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=g.dynamicImports.opentelemetryApi.trace.setSpan(g.dynamicImports.opentelemetryApi.context.active(),this.span)}async loadOpentelemetry(){if(g.dynamicImportStatus==="not_started"){g.dynamicImportStatus="in_progress";try{let r=new Promise((u,a)=>setTimeout(a,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,o]=await Promise.race([t,r]);g.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:o},g.dynamicImportStatus="completed"}catch(r){g.dynamicImportStatus="failed"}}}isComponentTracerNotInitialized(){return ae(this.span)||g.dynamicImportStatus==="failed"}log(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...Fe(t),type:"log"},n)})}error(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...Fe(t),type:"error"},n)})}critical(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...Fe(t),type:"critical"},n)})}createComponentTracer(r){let t=new g({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.isComponentTracerNotInitialized()||(this.childTracers.forEach(t=>t.end()),this.span.end())})}};g.dynamicImportStatus="not_started";var U=g;var De=class extends U{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let o=U.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new U.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,o.addSpanProcessor(new U.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),U.rootTracer=o.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var Ue=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var $r=class{static createRootTracer(r=!1){return r?new De:new Ue}};var ie=class extends C{constructor(t){super();this.buffer=[];this.cursorEnd=-1;this.cursorStart=0;this.bufferSize=t,this.buffer=Array(t)}next(t){this.cursorEnd+=1,this.cursorStart=this.cursorEnd>=this.bufferSize?this.cursorStart+1:0,this.buffer[this.cursorEnd%this.bufferSize]=t,this.subscribers.forEach(n=>n.next(t))}_subscribe(t){for(let i=this.cursorStart;i<=this.cursorEnd;i++)t.next(this.buffer[i%this.bufferSize]);let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var Ge=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}};var ao=se(et(),1);function uo(e){return new f(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return(0,ao.default)(e).reduce((o,[u,a])=>o.add(a.subscribe(i(u))),new x)})}function co(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var rp=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 tp=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var np=e=>new f(r=>{e.forEach(t=>r.next(t))});var ip=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Ke=class extends x{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function lo(e){return r=>new f(t=>r.subscribe(new rt(t,e)))}var rt=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var op={leading:!1,trailing:!0};function po(e,r=op){return t=>new f(n=>t.subscribe(new tt(n,e,r)))}var tt=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,H(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var sp={leading:!0,trailing:!1};function fo(e,r=sp){return t=>new f(n=>t.subscribe(new nt(n,e,r)))}var nt=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,ae(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function bo(e){return r=>new f(t=>r.subscribe(new it(t,e)))}var it=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var xo=se(Io(),1);var vp=(e,r)=>{let t=(n,i)=>{let o=Object.keys(n);for(let u in i)if(!(0,xo.default)(o,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},mp=(e,r)=>e instanceof Object&&r instanceof Object?vp(e,r):e===r;function Eo(e=mp){return r=>new f(t=>r.subscribe(new ot(t,e)))}var Oo={},ot=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Oo}next(r){let t;try{t=this.lastValue===Oo||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?{...r}:r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function We(e){return r=>new f(t=>r.subscribe(new st(t,e)))}var st=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function wo(e){return We(()=>e)}function So(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function qo(){return e=>new f(r=>e.subscribe(new at(r)))}var at=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Ro(e){return r=>new f(t=>r.subscribe(new ut(t,e)))}var ut=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Po(e){return r=>new f(t=>r.subscribe(new ct(t,e)))}var ct=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function _o(e=0){return r=>{let t=0,n=new ie(e),i=r.subscribe(n),o=u=>()=>{u.unsubscribe(),t--,t===0&&i.unsubscribe()};return new f(u=>(t++,o(n.subscribe(u))))}}var yp=(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))(yp||{});var{NativeAbortSignal:VT,NativeAbortController:FT}=function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}}(typeof self!="undefined"?self:global);function Ao(e){let r;try{r=new Event("abort")}catch(t){typeof document!="undefined"?document.createEvent?(r=document.createEvent("Event"),r.initEvent("abort",!1,!1)):(r=document.createEventObject(),r.type="abort"):r={type:"abort",bubbles:!1,cancelable:!1}}return r.reason=e,r}function Lo(e){if(e===void 0)if(typeof document=="undefined")e=new Error("This operation was aborted"),e.name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(r){e=new Error("This operation was aborted"),e.name="AbortError"}return e}var $e=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,o=n.length;i<o;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,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},oe=class extends $e{constructor(){super(),this.listeners||$e.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}throwIfAborted(){let{aborted:r,reason:t="Aborted"}=this;if(r)throw t}static timeout(r){let t=new W;return setTimeout(()=>t.abort(new DOMException(`This signal is timeout in ${r}ms`,"TimeoutError")),r),t.signal}static any(r){let t=new W;function n(){t.abort(this.reason),i()}function i(){for(let o of r)o.removeEventListener("abort",n)}for(let o of r)if(o.aborted){t.abort(o.reason);break}else o.addEventListener("abort",n);return t.signal}},W=class{constructor(){Object.defineProperty(this,"signal",{value:new oe,writable:!0,configurable:!0})}abort(r){let t=Lo(r),n=Ao(t);this.signal.reason=t,this.signal.dispatchEvent(n)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(W.prototype[Symbol.toStringTag]="AbortController",oe.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 lt(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:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(p,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let d=new t(p,b);return c&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),d},o.prototype=t.prototype);let u=r;return{fetch:(l,p)=>{let b=o&&o.prototype.isPrototypeOf(l)?l.signal:p?p.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(v){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let d=new Promise((v,y)=>{b.addEventListener("abort",()=>y(c),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([d,u(l,p)])}return u(l,p)},Request:o}}var Tp=()=>"fetch"in window,me=Tp()&&Ye({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Co=me?lt({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,No=me?Co.fetch:window.fetch,YT=me?Co.Request:window.Request,HT=me?W:window.AbortController,XT=me?oe:window.AbortSignal;var va=se(et(),1),ma=se(da(),1),kb=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(kb||{}),Mb="vk.com",jh=async(e,r,t)=>{let n=new URL(`https://${Mb}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=await(await No(n.toString())).json();return Vb(o,t)},Vb=(e,r)=>(0,ma.default)((0,va.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Fb(n)])),Fb=e=>Array.isArray(e)?e[0]:e;var Db=(t=>(t.RU="ru",t.EN="en",t))(Db||{});var Ub={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Gb=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),ya=class{constructor(r){this.id=Gb();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return Ub[r]}};var _t={};Nt(_t,{create:()=>Bb,destroy:()=>Qb,push:()=>zb,subscribe:()=>Kb});var ge=new Map,Bb=(e,r)=>ge.set(e,r!=null?r:[]),Qb=e=>ge.delete(e),zb=(e,r)=>{let t=ge.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Kb=(e,r)=>{let t=ge.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);ge.set(e,r)}};export{yp as ErrorCategory,Db as InterfaceLanguage,ya as InternalsExposure,cr as Logger,f as Observable,ie as ReplaySubject,C as Subject,x as Subscription,Ke as SubscriptionRemovable,$r as TracerFactory,qa as VERSION,kb as VKNumericLanguage,Ge as ValueSubject,Br as VideoQuality,ja as abortable,Ca as addScript,bl as areQualitiesExact,La as assertEmptyArray,j as assertNever,Pa as assertNonNullable,Aa as assertNotEmptyArray,_a as assertNullable,dl as assertQualityIsExact,lo as buffer,Ra as checkNever,hl as clearVideoElement,ml as cloneDeep,Me as cloneDeepWith,uo as combine,Qv as createURL,po as debounce,Kr as debounceFn,ol as detectEmbed,_t as devNull,vl as fillWithDefault,bo as filter,Eo as filterChanged,Ve as flattenObject,ip as fromEvent,ka as getExponentialDelay,cl as getHighestQuality,Il as getTraceSubscriptionMethod,tp as interval,sl as isHigher,al as isHigherOrEqual,gl as isIntersecting,zr as isInvariantQuality,Qr as isLower,ul as isLowerOrEqual,H as isNonNullable,ae as isNullable,Gv as isValidURL,jh as loadVKLangPack,We as map,wo as mapTo,co as merge,B as noop,Na as now,np as observableFrom,Tl as observeElementSize,So as once,qo as pairwise,pr as safeStorage,_o as shareReplay,Po as skip,Ro as tap,fo as throttle,Wr as throttleFn,Pv as timeCodeToString,rp as timeout,ll as videoHeightToQuality,fl as videoQualityToHeight,pl as videoSizeToQuality};
6
+ var Ia=Object.create;var ur=Object.defineProperty;var Oa=Object.getOwnPropertyDescriptor;var xa=Object.getOwnPropertyNames;var Ea=Object.getPrototypeOf,wa=Object.prototype.hasOwnProperty;var s=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ct=(e,r)=>{for(var t in r)ur(e,t,{get:r[t],enumerable:!0})},Sa=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of xa(r))!wa.call(e,i)&&i!==t&&ur(e,i,{get:()=>r[i],enumerable:!(n=Oa(r,i))||n.enumerable});return e};var se=(e,r,t)=>(t=e!=null?Ia(Ea(e)):{},Sa(r||!e||!e.__esModule?ur(t,"default",{value:e,enumerable:!0}):t,e));var w=s((fr,Mt)=>{"use strict";var ue=function(e){return e&&e.Math===Math&&e};Mt.exports=ue(typeof globalThis=="object"&&globalThis)||ue(typeof window=="object"&&window)||ue(typeof self=="object"&&self)||ue(typeof global=="object"&&global)||ue(typeof fr=="object"&&fr)||function(){return this}()||Function("return this")()});var q=s((hd,Vt)=>{"use strict";Vt.exports=function(e){try{return!!e()}catch(r){return!0}}});var ce=s((gd,Ft)=>{"use strict";var za=q();Ft.exports=!za(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Qt=s((Id,Bt)=>{"use strict";var Ka=ce(),Gt=Function.prototype,Dt=Gt.apply,Ut=Gt.call;Bt.exports=typeof Reflect=="object"&&Reflect.apply||(Ka?Ut.bind(Dt):function(){return Ut.apply(Dt,arguments)})});var C=s((Od,Wt)=>{"use strict";var zt=ce(),Kt=Function.prototype,br=Kt.call,Wa=zt&&Kt.bind.bind(br,br);Wt.exports=zt?Wa:function(e){return function(){return br.apply(e,arguments)}}});var xe=s((xd,Yt)=>{"use strict";var $t=C(),$a=$t({}.toString),Ya=$t("".slice);Yt.exports=function(e){return Ya($a(e),8,-1)}});var dr=s((Ed,Ht)=>{"use strict";var Ha=xe(),Xa=C();Ht.exports=function(e){if(Ha(e)==="Function")return Xa(e)}});var S=s((wd,Xt)=>{"use strict";var vr=typeof document=="object"&&document.all;Xt.exports=typeof vr=="undefined"&&vr!==void 0?function(e){return typeof e=="function"||e===vr}:function(e){return typeof e=="function"}});var _=s((Sd,Jt)=>{"use strict";var Ja=q();Jt.exports=!Ja(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var D=s((qd,Zt)=>{"use strict";var Za=ce(),Ee=Function.prototype.call;Zt.exports=Za?Ee.bind(Ee):function(){return Ee.apply(Ee,arguments)}});var mr=s(tn=>{"use strict";var en={}.propertyIsEnumerable,rn=Object.getOwnPropertyDescriptor,eu=rn&&!en.call({1:2},1);tn.f=eu?function(r){var t=rn(this,r);return!!t&&t.enumerable}:en});var le=s((Pd,nn)=>{"use strict";nn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var sn=s((_d,on)=>{"use strict";var ru=C(),tu=q(),nu=xe(),yr=Object,iu=ru("".split);on.exports=tu(function(){return!yr("z").propertyIsEnumerable(0)})?function(e){return nu(e)==="String"?iu(e,""):yr(e)}:yr});var we=s((Ad,an)=>{"use strict";an.exports=function(e){return e==null}});var Se=s((Ld,un)=>{"use strict";var ou=we(),su=TypeError;un.exports=function(e){if(ou(e))throw new su("Can't call method on "+e);return e}});var Q=s((jd,cn)=>{"use strict";var au=sn(),uu=Se();cn.exports=function(e){return au(uu(e))}});var k=s((Cd,ln)=>{"use strict";var cu=S();ln.exports=function(e){return typeof e=="object"?e!==null:cu(e)}});var pe=s((Nd,pn)=>{"use strict";pn.exports={}});var qe=s((kd,bn)=>{"use strict";var Tr=pe(),hr=w(),lu=S(),fn=function(e){return lu(e)?e:void 0};bn.exports=function(e,r){return arguments.length<2?fn(Tr[e])||fn(hr[e]):Tr[e]&&Tr[e][r]||hr[e]&&hr[e][r]}});var gr=s((Md,dn)=>{"use strict";var pu=C();dn.exports=pu({}.isPrototypeOf)});var Tn=s((Vd,yn)=>{"use strict";var fu=w(),vn=fu.navigator,mn=vn&&vn.userAgent;yn.exports=mn?String(mn):""});var wn=s((Fd,En)=>{"use strict";var xn=w(),Ir=Tn(),hn=xn.process,gn=xn.Deno,In=hn&&hn.versions||gn&&gn.version,On=In&&In.v8,A,Re;On&&(A=On.split("."),Re=A[0]>0&&A[0]<4?1:+(A[0]+A[1]));!Re&&Ir&&(A=Ir.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=Ir.match(/Chrome\/(\d+)/),A&&(Re=+A[1])));En.exports=Re});var Or=s((Dd,qn)=>{"use strict";var Sn=wn(),bu=q(),du=w(),vu=du.String;qn.exports=!!Object.getOwnPropertySymbols&&!bu(function(){var e=Symbol("symbol detection");return!vu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Sn&&Sn<41})});var xr=s((Ud,Rn)=>{"use strict";var mu=Or();Rn.exports=mu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Er=s((Gd,Pn)=>{"use strict";var yu=qe(),Tu=S(),hu=gr(),gu=xr(),Iu=Object;Pn.exports=gu?function(e){return typeof e=="symbol"}:function(e){var r=yu("Symbol");return Tu(r)&&hu(r.prototype,Iu(e))}});var Pe=s((Bd,_n)=>{"use strict";var Ou=String;_n.exports=function(e){try{return Ou(e)}catch(r){return"Object"}}});var fe=s((Qd,An)=>{"use strict";var xu=S(),Eu=Pe(),wu=TypeError;An.exports=function(e){if(xu(e))return e;throw new wu(Eu(e)+" is not a function")}});var _e=s((zd,Ln)=>{"use strict";var Su=fe(),qu=we();Ln.exports=function(e,r){var t=e[r];return qu(t)?void 0:Su(t)}});var Cn=s((Kd,jn)=>{"use strict";var wr=D(),Sr=S(),qr=k(),Ru=TypeError;jn.exports=function(e,r){var t,n;if(r==="string"&&Sr(t=e.toString)&&!qr(n=wr(t,e))||Sr(t=e.valueOf)&&!qr(n=wr(t,e))||r!=="string"&&Sr(t=e.toString)&&!qr(n=wr(t,e)))return n;throw new Ru("Can't convert object to primitive value")}});var be=s((Wd,Nn)=>{"use strict";Nn.exports=!0});var Vn=s(($d,Mn)=>{"use strict";var kn=w(),Pu=Object.defineProperty;Mn.exports=function(e,r){try{Pu(kn,e,{value:r,configurable:!0,writable:!0})}catch(t){kn[e]=r}return r}});var Ae=s((Yd,Un)=>{"use strict";var _u=be(),Au=w(),Lu=Vn(),Fn="__core-js_shared__",Dn=Un.exports=Au[Fn]||Lu(Fn,{});(Dn.versions||(Dn.versions=[])).push({version:"3.43.0",mode:_u?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Rr=s((Hd,Bn)=>{"use strict";var Gn=Ae();Bn.exports=function(e,r){return Gn[e]||(Gn[e]=r||{})}});var Le=s((Xd,Qn)=>{"use strict";var ju=Se(),Cu=Object;Qn.exports=function(e){return Cu(ju(e))}});var M=s((Jd,zn)=>{"use strict";var Nu=C(),ku=Le(),Mu=Nu({}.hasOwnProperty);zn.exports=Object.hasOwn||function(r,t){return Mu(ku(r),t)}});var Pr=s((Zd,Kn)=>{"use strict";var Vu=C(),Fu=0,Du=Math.random(),Uu=Vu(1.1.toString);Kn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Uu(++Fu+Du,36)}});var V=s((ev,$n)=>{"use strict";var Gu=w(),Bu=Rr(),Wn=M(),Qu=Pr(),zu=Or(),Ku=xr(),J=Gu.Symbol,_r=Bu("wks"),Wu=Ku?J.for||J:J&&J.withoutSetter||Qu;$n.exports=function(e){return Wn(_r,e)||(_r[e]=zu&&Wn(J,e)?J[e]:Wu("Symbol."+e)),_r[e]}});var Jn=s((rv,Xn)=>{"use strict";var $u=D(),Yn=k(),Hn=Er(),Yu=_e(),Hu=Cn(),Xu=V(),Ju=TypeError,Zu=Xu("toPrimitive");Xn.exports=function(e,r){if(!Yn(e)||Hn(e))return e;var t=Yu(e,Zu),n;if(t){if(r===void 0&&(r="default"),n=$u(t,e,r),!Yn(n)||Hn(n))return n;throw new Ju("Can't convert object to primitive value")}return r===void 0&&(r="number"),Hu(e,r)}});var Ar=s((tv,Zn)=>{"use strict";var ec=Jn(),rc=Er();Zn.exports=function(e){var r=ec(e,"string");return rc(r)?r:r+""}});var jr=s((nv,ri)=>{"use strict";var tc=w(),ei=k(),Lr=tc.document,nc=ei(Lr)&&ei(Lr.createElement);ri.exports=function(e){return nc?Lr.createElement(e):{}}});var Cr=s((iv,ti)=>{"use strict";var ic=_(),oc=q(),sc=jr();ti.exports=!ic&&!oc(function(){return Object.defineProperty(sc("div"),"a",{get:function(){return 7}}).a!==7})});var oi=s(ii=>{"use strict";var ac=_(),uc=D(),cc=mr(),lc=le(),pc=Q(),fc=Ar(),bc=M(),dc=Cr(),ni=Object.getOwnPropertyDescriptor;ii.f=ac?ni:function(r,t){if(r=pc(r),t=fc(t),dc)try{return ni(r,t)}catch(n){}if(bc(r,t))return lc(!uc(cc.f,r,t),r[t])}});var ai=s((sv,si)=>{"use strict";var vc=q(),mc=S(),yc=/#|\.prototype\./,de=function(e,r){var t=hc[Tc(e)];return t===Ic?!0:t===gc?!1:mc(r)?vc(r):!!r},Tc=de.normalize=function(e){return String(e).replace(yc,".").toLowerCase()},hc=de.data={},gc=de.NATIVE="N",Ic=de.POLYFILL="P";si.exports=de});var Nr=s((av,ci)=>{"use strict";var ui=dr(),Oc=fe(),xc=ce(),Ec=ui(ui.bind);ci.exports=function(e,r){return Oc(e),r===void 0?e:xc?Ec(e,r):function(){return e.apply(r,arguments)}}});var kr=s((uv,li)=>{"use strict";var wc=_(),Sc=q();li.exports=wc&&Sc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var z=s((cv,pi)=>{"use strict";var qc=k(),Rc=String,Pc=TypeError;pi.exports=function(e){if(qc(e))return e;throw new Pc(Rc(e)+" is not an object")}});var Z=s(bi=>{"use strict";var _c=_(),Ac=Cr(),Lc=kr(),je=z(),fi=Ar(),jc=TypeError,Mr=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,Vr="enumerable",Fr="configurable",Dr="writable";bi.f=_c?Lc?function(r,t,n){if(je(r),t=fi(t),je(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Dr in n&&!n[Dr]){var i=Cc(r,t);i&&i[Dr]&&(r[t]=n.value,n={configurable:Fr in n?n[Fr]:i[Fr],enumerable:Vr in n?n[Vr]:i[Vr],writable:!1})}return Mr(r,t,n)}:Mr:function(r,t,n){if(je(r),t=fi(t),je(n),Ac)try{return Mr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new jc("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var ee=s((pv,di)=>{"use strict";var Nc=_(),kc=Z(),Mc=le();di.exports=Nc?function(e,r,t){return kc.f(e,r,Mc(1,t))}:function(e,r,t){return e[r]=t,e}});var ne=s((fv,mi)=>{"use strict";var ve=w(),Vc=Qt(),Fc=dr(),Dc=S(),Uc=oi().f,Gc=ai(),re=pe(),Bc=Nr(),te=ee(),vi=M();Ae();var Qc=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 Vc(e,this,arguments)};return r.prototype=e.prototype,r};mi.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,u=n?ve:i?ve[t]:ve[t]&&ve[t].prototype,a=n?re:re[t]||te(re,t,{})[t],l=a.prototype,p,b,c,d,v,y,T,I,h;for(d in r)p=Gc(n?d:t+(i?".":"#")+d,e.forced),b=!p&&u&&vi(u,d),y=a[d],b&&(e.dontCallGetSet?(h=Uc(u,d),T=h&&h.value):T=u[d]),v=b&&T?T:r[d],!(!p&&!o&&typeof y==typeof v)&&(e.bind&&b?I=Bc(v,ve):e.wrap&&b?I=Qc(v):o&&Dc(v)?I=Fc(v):I=v,(e.sham||v&&v.sham||y&&y.sham)&&te(I,"sham",!0),te(a,d,I),o&&(c=t+"Prototype",vi(re,c)||te(re,c,{}),te(re[c],d,v),e.real&&l&&(p||!l[d])&&te(l,d,v)))}});var Ti=s((bv,yi)=>{"use strict";var zc=Math.ceil,Kc=Math.floor;yi.exports=Math.trunc||function(r){var t=+r;return(t>0?Kc:zc)(t)}});var Ce=s((dv,hi)=>{"use strict";var Wc=Ti();hi.exports=function(e){var r=+e;return r!==r||r===0?0:Wc(r)}});var Ii=s((vv,gi)=>{"use strict";var $c=Ce(),Yc=Math.min;gi.exports=function(e){var r=$c(e);return r>0?Yc(r,9007199254740991):0}});var Ne=s((mv,Oi)=>{"use strict";var Hc=Ii();Oi.exports=function(e){return Hc(e.length)}});var ke=s((yv,xi)=>{"use strict";xi.exports=function(){}});var Ei=s(()=>{"use strict";var Xc=ne(),Jc=Le(),Zc=Ne(),el=Ce(),rl=ke();Xc({target:"Array",proto:!0},{at:function(r){var t=Jc(this),n=Zc(t),i=el(r),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}});rl("at")});var Ur=s((gv,wi)=>{"use strict";var tl=qe();wi.exports=tl});var qi=s((Iv,Si)=>{"use strict";Ei();var nl=Ur();Si.exports=nl("Array","at")});var Pi=s((Ov,Ri)=>{"use strict";var il=qi();Ri.exports=il});var Ai=s((xv,_i)=>{"use strict";var ol=Pi();_i.exports=ol});var Be=s((ty,Ci)=>{"use strict";var xl=Rr(),El=Pr(),ji=xl("keys");Ci.exports=function(e){return ji[e]||(ji[e]=El(e))}});var ki=s((ny,Ni)=>{"use strict";var wl=q();Ni.exports=!wl(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Qe=s((iy,Vi)=>{"use strict";var Sl=M(),ql=S(),Rl=Le(),Pl=Be(),_l=ki(),Mi=Pl("IE_PROTO"),Yr=Object,Al=Yr.prototype;Vi.exports=_l?Yr.getPrototypeOf:function(e){var r=Rl(e);if(Sl(r,Mi))return r[Mi];var t=r.constructor;return ql(t)&&r instanceof t?t.prototype:r instanceof Yr?Al:null}});var Di=s((oy,Fi)=>{"use strict";var Ll=Ce(),jl=Math.max,Cl=Math.min;Fi.exports=function(e,r){var t=Ll(e);return t<0?jl(t+r,0):Cl(t,r)}});var Hr=s((sy,Gi)=>{"use strict";var Nl=Q(),kl=Di(),Ml=Ne(),Ui=function(e){return function(r,t,n){var i=Nl(r),o=Ml(i);if(o===0)return!e&&-1;var u=kl(n,o),a;if(e&&t!==t){for(;o>u;)if(a=i[u++],a!==a)return!0}else for(;o>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Gi.exports={includes:Ui(!0),indexOf:Ui(!1)}});var ze=s((ay,Bi)=>{"use strict";Bi.exports={}});var Ki=s((uy,zi)=>{"use strict";var Vl=C(),Xr=M(),Fl=Q(),Dl=Hr().indexOf,Ul=ze(),Qi=Vl([].push);zi.exports=function(e,r){var t=Fl(e),n=0,i=[],o;for(o in t)!Xr(Ul,o)&&Xr(t,o)&&Qi(i,o);for(;r.length>n;)Xr(t,o=r[n++])&&(~Dl(i,o)||Qi(i,o));return i}});var Jr=s((cy,Wi)=>{"use strict";Wi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Zr=s((ly,$i)=>{"use strict";var Gl=Ki(),Bl=Jr();$i.exports=Object.keys||function(r){return Gl(r,Bl)}});var eo=s((py,Zi)=>{"use strict";var Hi=_(),Ql=q(),Xi=C(),zl=Qe(),Kl=Zr(),Wl=Q(),$l=mr().f,Ji=Xi($l),Yl=Xi([].push),Hl=Hi&&Ql(function(){var e=Object.create(null);return e[2]=2,!Ji(e,2)}),Yi=function(e){return function(r){for(var t=Wl(r),n=Kl(t),i=Hl&&zl(t)===null,o=n.length,u=0,a=[],l;o>u;)l=n[u++],(!Hi||(i?l in t:Ji(t,l)))&&Yl(a,e?[l,t[l]]:t[l]);return a}};Zi.exports={entries:Yi(!0),values:Yi(!1)}});var ro=s(()=>{"use strict";var Xl=ne(),Jl=eo().entries;Xl({target:"Object",stat:!0},{entries:function(r){return Jl(r)}})});var no=s((dy,to)=>{"use strict";ro();var Zl=pe();to.exports=Zl.Object.entries});var oo=s((vy,io)=>{"use strict";var ep=no();io.exports=ep});var et=s((my,so)=>{"use strict";var rp=oo();so.exports=rp});var vo=s(()=>{"use strict";var up=ne(),cp=Hr().includes,lp=q(),pp=ke(),fp=lp(function(){return!Array(1).includes()});up({target:"Array",proto:!0,forced:fp},{includes:function(r){return cp(this,r,arguments.length>1?arguments[1]:void 0)}});pp("includes")});var yo=s((zy,mo)=>{"use strict";vo();var bp=Ur();mo.exports=bp("Array","includes")});var ho=s((Ky,To)=>{"use strict";var dp=yo();To.exports=dp});var Io=s((Wy,go)=>{"use strict";var vp=ho();go.exports=vp});var W=s((eh,No)=>{"use strict";No.exports={}});var Vo=s((rh,Mo)=>{"use strict";var gp=w(),Ip=S(),ko=gp.WeakMap;Mo.exports=Ip(ko)&&/native code/.test(String(ko))});var Go=s((th,Uo)=>{"use strict";var Op=Vo(),Do=w(),xp=k(),Ep=ee(),pt=M(),ft=Ae(),wp=Be(),Sp=ze(),Fo="Object already initialized",bt=Do.TypeError,qp=Do.WeakMap,He,ye,Xe,Rp=function(e){return Xe(e)?ye(e):He(e,{})},Pp=function(e){return function(r){var t;if(!xp(r)||(t=ye(r)).type!==e)throw new bt("Incompatible receiver, "+e+" required");return t}};Op||ft.state?(L=ft.state||(ft.state=new qp),L.get=L.get,L.has=L.has,L.set=L.set,He=function(e,r){if(L.has(e))throw new bt(Fo);return r.facade=e,L.set(e,r),r},ye=function(e){return L.get(e)||{}},Xe=function(e){return L.has(e)}):($=wp("state"),Sp[$]=!0,He=function(e,r){if(pt(e,$))throw new bt(Fo);return r.facade=e,Ep(e,$,r),r},ye=function(e){return pt(e,$)?e[$]:{}},Xe=function(e){return pt(e,$)});var L,$;Uo.exports={set:He,get:ye,has:Xe,enforce:Rp,getterFor:Pp}});var zo=s((nh,Qo)=>{"use strict";var dt=_(),_p=M(),Bo=Function.prototype,Ap=dt&&Object.getOwnPropertyDescriptor,vt=_p(Bo,"name"),Lp=vt&&function(){}.name==="something",jp=vt&&(!dt||dt&&Ap(Bo,"name").configurable);Qo.exports={EXISTS:vt,PROPER:Lp,CONFIGURABLE:jp}});var Wo=s(Ko=>{"use strict";var Cp=_(),Np=kr(),kp=Z(),Mp=z(),Vp=Q(),Fp=Zr();Ko.f=Cp&&!Np?Object.defineProperties:function(r,t){Mp(r);for(var n=Vp(t),i=Fp(t),o=i.length,u=0,a;o>u;)kp.f(r,a=i[u++],n[a]);return r}});var Yo=s((oh,$o)=>{"use strict";var Dp=qe();$o.exports=Dp("document","documentElement")});var ht=s((sh,ts)=>{"use strict";var Up=z(),Gp=Wo(),Ho=Jr(),Bp=ze(),Qp=Yo(),zp=jr(),Kp=Be(),Xo=">",Jo="<",yt="prototype",Tt="script",es=Kp("IE_PROTO"),mt=function(){},rs=function(e){return Jo+Tt+Xo+e+Jo+"/"+Tt+Xo},Zo=function(e){e.write(rs("")),e.close();var r=e.parentWindow.Object;return e=null,r},Wp=function(){var e=zp("iframe"),r="java"+Tt+":",t;return e.style.display="none",Qp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(rs("document.F=Object")),t.close(),t.F},Je,Ze=function(){try{Je=new ActiveXObject("htmlfile")}catch(r){}Ze=typeof document!="undefined"?document.domain&&Je?Zo(Je):Wp():Zo(Je);for(var e=Ho.length;e--;)delete Ze[yt][Ho[e]];return Ze()};Bp[es]=!0;ts.exports=Object.create||function(r,t){var n;return r!==null?(mt[yt]=Up(r),n=new mt,mt[yt]=null,n[es]=r):n=Ze(),t===void 0?n:Gp.f(n,t)}});var gt=s((ah,ns)=>{"use strict";var $p=ee();ns.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:$p(e,r,t),e}});var Et=s((uh,ss)=>{"use strict";var Yp=q(),Hp=S(),Xp=k(),Jp=ht(),is=Qe(),Zp=gt(),ef=V(),rf=be(),xt=ef("iterator"),os=!1,F,It,Ot;[].keys&&(Ot=[].keys(),"next"in Ot?(It=is(is(Ot)),It!==Object.prototype&&(F=It)):os=!0);var tf=!Xp(F)||Yp(function(){var e={};return F[xt].call(e)!==e});tf?F={}:rf&&(F=Jp(F));Hp(F[xt])||Zp(F,xt,function(){return this});ss.exports={IteratorPrototype:F,BUGGY_SAFARI_ITERATORS:os}});var er=s((ch,us)=>{"use strict";var nf=V(),of=nf("toStringTag"),as={};as[of]="z";us.exports=String(as)==="[object z]"});var wt=s((lh,cs)=>{"use strict";var sf=er(),af=S(),rr=xe(),uf=V(),cf=uf("toStringTag"),lf=Object,pf=rr(function(){return arguments}())==="Arguments",ff=function(e,r){try{return e[r]}catch(t){}};cs.exports=sf?rr:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=ff(r=lf(e),cf))=="string"?t:pf?rr(r):(n=rr(r))==="Object"&&af(r.callee)?"Arguments":n}});var ps=s((ph,ls)=>{"use strict";var bf=er(),df=wt();ls.exports=bf?{}.toString:function(){return"[object "+df(this)+"]"}});var tr=s((fh,bs)=>{"use strict";var vf=er(),mf=Z().f,yf=ee(),Tf=M(),hf=ps(),gf=V(),fs=gf("toStringTag");bs.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(Tf(i,fs)||mf(i,fs,{configurable:!0,value:r}),n&&!vf&&yf(i,"toString",hf))}});var vs=s((bh,ds)=>{"use strict";var If=Et().IteratorPrototype,Of=ht(),xf=le(),Ef=tr(),wf=W(),Sf=function(){return this};ds.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Of(If,{next:xf(+!n,t)}),Ef(e,i,!1,!0),wf[i]=Sf,e}});var ys=s((dh,ms)=>{"use strict";var qf=C(),Rf=fe();ms.exports=function(e,r,t){try{return qf(Rf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var hs=s((vh,Ts)=>{"use strict";var Pf=k();Ts.exports=function(e){return Pf(e)||e===null}});var Is=s((mh,gs)=>{"use strict";var _f=hs(),Af=String,Lf=TypeError;gs.exports=function(e){if(_f(e))return e;throw new Lf("Can't set "+Af(e)+" as a prototype")}});var xs=s((yh,Os)=>{"use strict";var jf=ys(),Cf=k(),Nf=Se(),kf=Is();Os.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=jf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Nf(i),kf(o),Cf(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var Cs=s((Th,js)=>{"use strict";var Mf=ne(),Vf=D(),nr=be(),As=zo(),Ff=S(),Df=vs(),Es=Qe(),ws=xs(),Uf=tr(),Gf=ee(),St=gt(),Bf=V(),Ss=W(),Ls=Et(),Qf=As.PROPER,zf=As.CONFIGURABLE,qs=Ls.IteratorPrototype,ir=Ls.BUGGY_SAFARI_ITERATORS,Te=Bf("iterator"),Rs="keys",he="values",Ps="entries",_s=function(){return this};js.exports=function(e,r,t,n,i,o,u){Df(t,r,n);var a=function(h){if(h===i&&d)return d;if(!ir&&h&&h in b)return b[h];switch(h){case Rs:return function(){return new t(this,h)};case he:return function(){return new t(this,h)};case Ps:return function(){return new t(this,h)}}return function(){return new t(this)}},l=r+" Iterator",p=!1,b=e.prototype,c=b[Te]||b["@@iterator"]||i&&b[i],d=!ir&&c||a(i),v=r==="Array"&&b.entries||c,y,T,I;if(v&&(y=Es(v.call(new e)),y!==Object.prototype&&y.next&&(!nr&&Es(y)!==qs&&(ws?ws(y,qs):Ff(y[Te])||St(y,Te,_s)),Uf(y,l,!0,!0),nr&&(Ss[l]=_s))),Qf&&i===he&&c&&c.name!==he&&(!nr&&zf?Gf(b,"name",he):(p=!0,d=function(){return Vf(c,this)})),i)if(T={values:a(he),keys:o?d:a(Rs),entries:a(Ps)},u)for(I in T)(ir||p||!(I in b))&&St(b,I,T[I]);else Mf({target:r,proto:!0,forced:ir||p},T);return(!nr||u)&&b[Te]!==d&&St(b,Te,d,{name:i}),Ss[r]=d,T}});var ks=s((hh,Ns)=>{"use strict";Ns.exports=function(e,r){return{value:e,done:r}}});var Rt=s((gh,Us)=>{"use strict";var Kf=Q(),qt=ke(),Ms=W(),Fs=Go(),Wf=Z().f,$f=Cs(),or=ks(),Yf=be(),Hf=_(),Ds="Array Iterator",Xf=Fs.set,Jf=Fs.getterFor(Ds);Us.exports=$f(Array,"Array",function(e,r){Xf(this,{type:Ds,target:Kf(e),index:0,kind:r})},function(){var e=Jf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,or(void 0,!0);switch(e.kind){case"keys":return or(t,!1);case"values":return or(r[t],!1)}return or([t,r[t]],!1)},"values");var Vs=Ms.Arguments=Ms.Array;qt("keys");qt("values");qt("entries");if(!Yf&&Hf&&Vs.name!=="values")try{Wf(Vs,"name",{value:"values"})}catch(e){}});var Bs=s((Ih,Gs)=>{"use strict";var Zf=V(),eb=W(),rb=Zf("iterator"),tb=Array.prototype;Gs.exports=function(e){return e!==void 0&&(eb.Array===e||tb[rb]===e)}});var Pt=s((Oh,zs)=>{"use strict";var nb=wt(),Qs=_e(),ib=we(),ob=W(),sb=V(),ab=sb("iterator");zs.exports=function(e){if(!ib(e))return Qs(e,ab)||Qs(e,"@@iterator")||ob[nb(e)]}});var Ws=s((xh,Ks)=>{"use strict";var ub=D(),cb=fe(),lb=z(),pb=Pe(),fb=Pt(),bb=TypeError;Ks.exports=function(e,r){var t=arguments.length<2?fb(e):r;if(cb(t))return lb(ub(t,e));throw new bb(pb(e)+" is not iterable")}});var Hs=s((Eh,Ys)=>{"use strict";var db=D(),$s=z(),vb=_e();Ys.exports=function(e,r,t){var n,i;$s(e);try{if(n=vb(e,"return"),!n){if(r==="throw")throw t;return t}n=db(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return $s(n),t}});var ra=s((wh,ea)=>{"use strict";var mb=Nr(),yb=D(),Tb=z(),hb=Pe(),gb=Bs(),Ib=Ne(),Xs=gr(),Ob=Ws(),xb=Pt(),Js=Hs(),Eb=TypeError,sr=function(e,r){this.stopped=e,this.result=r},Zs=sr.prototype;ea.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),l=mb(r,n),p,b,c,d,v,y,T,I=function(O){return p&&Js(p,"normal"),new sr(!0,O)},h=function(O){return i?(Tb(O),a?l(O[0],O[1],I):l(O[0],O[1])):a?l(O,I):l(O)};if(o)p=e.iterator;else if(u)p=e;else{if(b=xb(e),!b)throw new Eb(hb(e)+" is not iterable");if(gb(b)){for(c=0,d=Ib(e);d>c;c++)if(v=h(e[c]),v&&Xs(Zs,v))return v;return new sr(!1)}p=Ob(e,b)}for(y=o?e.next:p.next;!(T=yb(y,p)).done;){try{v=h(T.value)}catch(O){Js(p,"throw",O)}if(typeof v=="object"&&v&&Xs(Zs,v))return v}return new sr(!1)}});var na=s((Sh,ta)=>{"use strict";var wb=_(),Sb=Z(),qb=le();ta.exports=function(e,r,t){wb?Sb.f(e,r,qb(0,t)):e[r]=t}});var ia=s(()=>{"use strict";var Rb=ne(),Pb=ra(),_b=na();Rb({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Pb(r,function(n,i){_b(t,n,i)},{AS_ENTRIES:!0}),t}})});var sa=s((Ph,oa)=>{"use strict";Rt();ia();var Ab=pe();oa.exports=Ab.Object.fromEntries});var ua=s((_h,aa)=>{"use strict";aa.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 la=s(()=>{"use strict";Rt();var Lb=ua(),jb=w(),Cb=tr(),ca=W();for(ar in Lb)Cb(jb[ar],ar),ca[ar]=ca.Array;var ar});var fa=s((jh,pa)=>{"use strict";var Nb=sa();la();pa.exports=Nb});var da=s((Ch,ba)=>{"use strict";var kb=fa();ba.exports=kb});var qa="1.0.65-dev.40acdd71.0";var x=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>{typeof t=="function"?t():t.unsubscribe()})}add(r){return this.subscriptions.push(r),this}};var N=e=>{throw new Error(`${e} is value of unexpected type`)},Ra=e=>{};var Y=()=>{};var Pa=e=>{throw console.error(e),e},f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:Y}:n={next:a=>t.next(a),error:a=>{var l;return(l=t.error)==null?void 0:l.call(t,a)}}:n={next:Pa,error:Y};let i=typeof r=="function"?{next:a=>{try{let l=r(a);l instanceof Promise&&l.catch(p=>n.next(p))}catch(l){n.next(l)}},error:a=>n.next(a)}:{next:a=>r.next(a),error:a=>r.error?r.error(a):n.next(a)},o;try{o=this._subscribe(i)}catch(a){(u=i.error)==null||u.call(i,a)}return new x().add(()=>{switch(i.next=Y,i.error=Y,typeof o){case"function":o();return;case"object":o.unsubscribe();return;case"undefined":return;default:return N(o)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var j=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=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var cr=class{constructor(){this.log$=new j;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(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};function _a(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Aa(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function H(e){return typeof e!="undefined"&&e!==null}function ae(e){return e==null}function La(e,r){if(!(e!=null&&e.length))throw new Error(r)}function ja(e,r){if(e!=null&&e.length)throw new Error(r)}var Ca=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{a(),p.remove()});let o=()=>{a(),i("error")},u=()=>{a(),n()},a=()=>{l&&clearTimeout(l),p.removeEventListener("load",u),p.removeEventListener("error",o)},l;t&&(l=window.setTimeout(()=>{a(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",o),p.src=e,document.head.appendChild(p)});var Nt,Na=typeof((Nt=window.performance)==null?void 0:Nt.now)=="function"?()=>window.performance.now():()=>Date.now();var ka=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,o;for(;!i&&!e.aborted;)try{let a=await n.next(o);i=(u=a.done)!=null?u:!1,o=a.value}catch(a){await n.throw(a)}return o};var Ma=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*o*2-o),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var pr={};Ct(pr,{clear:()=>Ba,get:()=>Fa,has:()=>Ua,isPersistent:()=>Va,remove:()=>Ga,set:()=>Da});var E,B,lr=`vk-videoplayer-dummy-key-${Math.random()}`,X=()=>{if(B!==void 0)return B;try{localStorage.setItem(lr,"test"),localStorage.removeItem(lr),B=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(lr),B=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)B=2;else throw r}else throw e}return B===2&&(E=new Map),B},Va=()=>X()===0,Fa=e=>{var t,n;let r=X();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return E==null?void 0:E.get(e);default:N(r)}},Da=(e,r)=>{let t=X();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:E==null||E.set(e,r);return;default:N(t)}},Ua=e=>{var t;let r=X();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=E==null?void 0:E.has(e))!=null?t:!1;default:return N(r),!1}},Ga=e=>{let r=X();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:E==null||E.delete(e);return;default:N(r)}},Ba=()=>{let e=X();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return E==null?void 0:E.clear();default:N(e)}};var Qa=(e,r,t)=>{if(typeof e.canParse=="function")return e.canParse(r,t);try{return new e(r,t),!0}catch(n){return!1}},kt=Qa;var Gr=se(Ai(),1),sl=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return r=r.filter(t=>kt(URL,t)),{isEmbed:e,origins:r,topOrigin:(0,Gr.default)(r,-1),immediateOrigin:(0,Gr.default)(r,0)}};var Br=(c=>(c.INVARIANT="Invariant quality",c.Q_144P="144p",c.Q_240P="240p",c.Q_360P="360p",c.Q_480P="480p",c.Q_576P="576p",c.Q_720P="720p",c.Q_1080P="1080p",c.Q_1440P="1440p",c.Q_2160P="2160p",c.Q_4320P="4320p",c))(Br||{});var R={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"576p":{width:1024,height:576},"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}},al=(e,r)=>R[e].height>R[r].height,ul=(e,r)=>R[e].height>=R[r].height,Qr=(e,r)=>R[e].height<R[r].height,cl=(e,r)=>R[e].height<=R[r].height,ll=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Qr(r,t)?1:-1)[0],Li=Object.keys(R).sort((e,r)=>Qr(e,r)?-1:1),pl=(e,r=.02)=>[...Li].find(n=>R[n].height*(1+r)>=e),fl=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Li.find(i=>{let o=R[i];return o.width>=n&&o.height>=t})},bl=e=>R[e].height,zr=e=>e==="Invariant quality",dl=e=>e.every(r=>!zr(r));function vl(e){if(zr(e))throw new Error("Expected exact quality")}var ml=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=ml(o,i):t[n]=n in e?o:i}return t};var _v=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 Kr(e,r=0,t){let n,i,o,u,a,l,p=0,b=!1,c=!1,d=!0,v=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(b=!!t.leading,c="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,d="trailing"in t?!!t.trailing:d);function y(m){let P=n,G=i;return n=i=void 0,p=m,u=e.apply(G,P),u}function T(m,P){return v?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,P)}function I(m){if(v){window.cancelAnimationFrame(m);return}clearTimeout(m)}function h(m){return p=m,a=T(Ie,r),b?y(m):u}function O(m){let P=m-l,G=m-p,jt=r-P;return c?Math.min(jt,o-G):jt}function At(m){let P=m-l,G=m-p;return l===void 0||P>=r||P<0||c&&G>=o}function Ie(){let m=Date.now();if(At(m))return Lt(m);a=T(Ie,O(m))}function Lt(m){return a=void 0,d&&n?y(m):(n=i=void 0,u)}function Ta(){a!==void 0&&I(a),p=0,n=l=i=a=void 0}function ha(){return a===void 0?u:Lt(Date.now())}function ga(){return a!==void 0}function Oe(...m){let P=Date.now(),G=At(P);if(n=m,i=this,l=P,G){if(a===void 0)return h(l);if(c)return a=T(Ie,r),y(l)}return a===void 0&&(a=T(Ie,r)),u}return Oe.cancel=Ta,Oe.flush=ha,Oe.pending=ga,Oe}var Wr=(e,r=0,t)=>Kr(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var Me=(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]=Me(e[n],r):t[n]=e[n]}return t};var yl=e=>Me(e);var Tl=300,hl=(e,r=Tl)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let o=new ResizeObserver(Wr(u=>{let a=u[0];if(!a)return;let l,p;a.contentBoxSize&&a.contentBoxSize[0]?(p=a.contentBoxSize[0].blockSize,l=a.contentBoxSize[0].inlineSize):a.contentRect&&(l=a.contentRect.width,p=a.contentRect.height),H(l)&&H(p)&&t.next({width:l,height:p})},r));return o.observe(e),()=>o.disconnect()});var Ve=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let o=Ve(e[i],r-1);for(let u in o)o.hasOwnProperty(u)&&(n[i+t+u]=o[u])}else n[i]=e[i];return n};var gl=e=>{e.removeAttribute("src"),e.load()};var Bv=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var zv=e=>{try{return new URL(e)}catch(r){return null}};var Il=(e,r)=>!(e.right<r.left||e.left>r.right||e.bottom<r.top||e.top>r.bottom);var Ol=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Ve(t):{value:t})},Fe=(e={})=>{let r=n=>{let i=n;return n===void 0?i="undefined":n===null?i="null":(typeof n=="number"||typeof n=="boolean")&&(i=n.toString()),i},t={};for(let n in e)Array.isArray(e[n])?t[n]=e[n].map(r):t[n]=r(e[n]);return t};var g=class g{constructor({name:r,getParentContext:t}){this.dynamicImportTimeout=5e3;this.childTracers=[];g.dynamicImportStatus==="not_started"&&(g.dynamicImportPromise=this.loadOpentelemetry());let n=Date.now();this.initPromise=g.dynamicImportPromise.then(i=>{g.dynamicImportStatus==="completed"&&this.init({name:r,getParentContext:t},n)})}init({name:r,getParentContext:t},n){this.span=g.rootTracer.startSpan(r,{startTime:n},t==null?void 0:t()),this.context=g.dynamicImports.opentelemetryApi.trace.setSpan(g.dynamicImports.opentelemetryApi.context.active(),this.span)}async loadOpentelemetry(){if(g.dynamicImportStatus==="not_started"){g.dynamicImportStatus="in_progress";try{let r=new Promise((u,a)=>setTimeout(a,this.dynamicImportTimeout)),t=Promise.all([import("@opentelemetry/api"),import("@opentelemetry/sdk-trace-web"),import("@tracer/opentelemetry")]),[n,i,o]=await Promise.race([t,r]);g.dynamicImports={opentelemetryApi:n,opentelemetrySdk:i,tracer:o},g.dynamicImportStatus="completed"}catch(r){g.dynamicImportStatus="failed"}}}isComponentTracerNotInitialized(){return ae(this.span)||g.dynamicImportStatus==="failed"}log(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...Fe(t),type:"log"},n)})}error(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...Fe(t),type:"error"},n)})}critical(r,t){let n=Date.now();this.initPromise.then(i=>{this.isComponentTracerNotInitialized()||this.span.addEvent(r,{...Fe(t),type:"critical"},n)})}createComponentTracer(r){let t=new g({name:r,getParentContext:()=>this.context});return this.childTracers.push(t),t}end(){this.initPromise.then(r=>{this.isComponentTracerNotInitialized()||(this.childTracers.forEach(t=>t.end()),this.span.end())})}};g.dynamicImportStatus="not_started";var U=g;var De=class extends U{constructor(){super({name:"Root"})}init({name:r,getParentContext:t},n){let o=U.dynamicImports.tracer.initTracerOpenTelemetry({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),u=new U.dynamicImports.tracer.TracerMemorySpanExporter;this.spanExporter=u,o.addSpanProcessor(new U.dynamicImports.tracer.TracerAllSpansProcessor({startedSpansExporter:u})),U.rootTracer=o.getTracer("sdk-videoplayer-tracer"),super.init({name:r,getParentContext:t},n)}getFinishedSpans(){var r;if(!this.isComponentTracerNotInitialized())return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.isComponentTracerNotInitialized()?"":this.span.spanContext().traceId}};var Ue=class e{constructor(r){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}};var $r=class{static createRootTracer(r=!1){return r?new De:new Ue}};var ie=class extends j{constructor(t){super();this.buffer=[];this.cursorEnd=-1;this.cursorStart=0;this.bufferSize=t,this.buffer=Array(t)}next(t){this.cursorEnd+=1,this.cursorStart=this.cursorEnd>=this.bufferSize?this.cursorStart+1:0,this.buffer[this.cursorEnd%this.bufferSize]=t,this.subscribers.forEach(n=>n.next(t))}_subscribe(t){for(let i=this.cursorStart;i<=this.cursorEnd;i++)t.next(this.buffer[i%this.bufferSize]);let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var Ge=class extends j{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}};var ao=se(et(),1);function uo(e){return new f(r=>{let t={},n=Object.keys(e).length,i=o=>u=>{o in t||n--,t[o]=u,n===0&&r.next(t)};return(0,ao.default)(e).reduce((o,[u,a])=>o.add(a.subscribe(i(u))),new x)})}function co(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var tp=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 np=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var ip=e=>new f(r=>{e.forEach(t=>r.next(t))});var op=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Ke=class extends x{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function lo(e){return r=>new f(t=>r.subscribe(new rt(t,e)))}var rt=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var sp={leading:!1,trailing:!0};function po(e,r=sp){return t=>new f(n=>t.subscribe(new tt(n,e,r)))}var tt=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,H(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ap={leading:!0,trailing:!1};function fo(e,r=ap){return t=>new f(n=>t.subscribe(new nt(n,e,r)))}var nt=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,ae(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function bo(e){return r=>new f(t=>r.subscribe(new it(t,e)))}var it=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var xo=se(Io(),1);var mp=(e,r)=>{let t=(n,i)=>{let o=Object.keys(n);for(let u in i)if(!(0,xo.default)(o,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},yp=(e,r)=>e instanceof Object&&r instanceof Object?mp(e,r):e===r;function Eo(e=yp){return r=>new f(t=>r.subscribe(new ot(t,e)))}var Oo={},ot=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Oo}next(r){let t;try{t=this.lastValue===Oo||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?{...r}:r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function We(e){return r=>new f(t=>r.subscribe(new st(t,e)))}var st=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function wo(e){return We(()=>e)}function So(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var u;t=!0,(u=r.error)==null||u.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function qo(){return e=>new f(r=>e.subscribe(new at(r)))}var at=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Ro(e){return r=>new f(t=>r.subscribe(new ut(t,e)))}var ut=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Po(e){return r=>new f(t=>r.subscribe(new ct(t,e)))}var ct=class{constructor(r,t){this.destination=r;this.count=t;var n,i;t<0&&((i=(n=this.destination).error)==null||i.call(n,new Error("Count can not be less than zero")))}next(r){this.count===0?this.destination.next(r):this.count--}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function _o(e=0){return r=>{let t=0,n=new ie(e),i=r.subscribe(n),o=u=>()=>{u.unsubscribe(),t--,t===0&&i.unsubscribe()};return new f(u=>(t++,o(n.subscribe(u))))}}var Tp=(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))(Tp||{});var{NativeAbortSignal:FT,NativeAbortController:DT}=function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}}(typeof self!="undefined"?self:global);function Ao(e){let r;try{r=new Event("abort")}catch(t){typeof document!="undefined"?document.createEvent?(r=document.createEvent("Event"),r.initEvent("abort",!1,!1)):(r=document.createEventObject(),r.type="abort"):r={type:"abort",bubbles:!1,cancelable:!1}}return r.reason=e,r}function Lo(e){if(e===void 0)if(typeof document=="undefined")e=new Error("This operation was aborted"),e.name="AbortError";else try{e=new DOMException("signal is aborted without reason"),Object.defineProperty(e,"name",{value:"AbortError"})}catch(r){e=new Error("This operation was aborted"),e.name="AbortError"}return e}var $e=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,o=n.length;i<o;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,o=n.length;i<o;i++){let u=n[i];try{u.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},oe=class extends $e{constructor(){super(),this.listeners||$e.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}throwIfAborted(){let{aborted:r,reason:t="Aborted"}=this;if(r)throw t}static timeout(r){let t=new K;return setTimeout(()=>t.abort(new DOMException(`This signal is timeout in ${r}ms`,"TimeoutError")),r),t.signal}static any(r){let t=new K;function n(){t.abort(this.reason),i()}function i(){for(let o of r)o.removeEventListener("abort",n)}for(let o of r)if(o.aborted){t.abort(o.reason);break}else o.addEventListener("abort",n);return t.signal}},K=class{constructor(){Object.defineProperty(this,"signal",{value:new oe,writable:!0,configurable:!0})}abort(r){let t=Lo(r),n=Ao(t);this.signal.reason=t,this.signal.dispatchEvent(n)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(K.prototype[Symbol.toStringTag]="AbortController",oe.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 lt(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:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(p,b){let c;b&&b.signal&&(c=b.signal,delete b.signal);let d=new t(p,b);return c&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:c}),d},o.prototype=t.prototype);let u=r;return{fetch:(l,p)=>{let b=o&&o.prototype.isPrototypeOf(l)?l.signal:p?p.signal:void 0;if(b){let c;try{c=new DOMException("Aborted","AbortError")}catch(v){c=new Error("Aborted"),c.name="AbortError"}if(b.aborted)return Promise.reject(c);let d=new Promise((v,y)=>{b.addEventListener("abort",()=>y(c),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([d,u(l,p)])}return u(l,p)},Request:o}}var hp=()=>"fetch"in window,me=hp()&&Ye({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),jo=me?lt({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Co=me?jo.fetch:window.fetch,HT=me?jo.Request:window.Request,XT=me?K:window.AbortController,JT=me?oe:window.AbortSignal;var va=se(et(),1),ma=se(da(),1),Mb=(c=>(c.Armenian="58",c.Azerbaijani="57",c.Belarusian="114",c.English="3",c.Kazakh="97",c.Portuguese="73",c.Russian="0",c.Spanish="4",c.Ukrainian="1",c.Uzbek="65",c.Vietnamese="75",c))(Mb||{}),Vb="vk.com",kh=async(e,r,t)=>{let n=new URL(`https://${Vb}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let o=await(await Co(n.toString())).json();return Fb(o,t)},Fb=(e,r)=>(0,ma.default)((0,va.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Db(n)])),Db=e=>Array.isArray(e)?e[0]:e;var Ub=(t=>(t.RU="ru",t.EN="en",t))(Ub||{});var Gb={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Bb=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),ya=class{constructor(r){this.id=Bb();this.type=r,this.initWindowObjects()}getWindowObject(){var t,n;let r=this.key();return(n=(t=window[r])==null?void 0:t[this.id])!=null?n:{}}initWindowObjects(){let r=this.key();window[r]||(window[r]={}),window[r][this.id]={}}expose(r){Object.assign(this.getWindowObject(),r)}destroy(){let r=this.key();window&&window[r]&&window[r][this.id]&&(delete window[r][this.id],Object.keys(window[r]).length||delete window[r])}key(){let{type:r}=this;return Gb[r]}};var _t={};Ct(_t,{create:()=>Qb,destroy:()=>zb,push:()=>Kb,subscribe:()=>Wb});var ge=new Map,Qb=(e,r)=>ge.set(e,r!=null?r:[]),zb=e=>ge.delete(e),Kb=(e,r)=>{let t=ge.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Wb=(e,r)=>{let t=ge.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);ge.set(e,r)}};export{Tp as ErrorCategory,Ub as InterfaceLanguage,ya as InternalsExposure,cr as Logger,f as Observable,ie as ReplaySubject,j as Subject,x as Subscription,Ke as SubscriptionRemovable,$r as TracerFactory,qa as VERSION,Mb as VKNumericLanguage,Ge as ValueSubject,Br as VideoQuality,ka as abortable,Ca as addScript,dl as areQualitiesExact,ja as assertEmptyArray,N as assertNever,_a as assertNonNullable,La as assertNotEmptyArray,Aa as assertNullable,vl as assertQualityIsExact,lo as buffer,Ra as checkNever,gl as clearVideoElement,yl as cloneDeep,Me as cloneDeepWith,uo as combine,zv as createURL,po as debounce,Kr as debounceFn,sl as detectEmbed,_t as devNull,ml as fillWithDefault,bo as filter,Eo as filterChanged,Ve as flattenObject,op as fromEvent,Ma as getExponentialDelay,ll as getHighestQuality,Ol as getTraceSubscriptionMethod,np as interval,al as isHigher,ul as isHigherOrEqual,Il as isIntersecting,zr as isInvariantQuality,Qr as isLower,cl as isLowerOrEqual,H as isNonNullable,ae as isNullable,Bv as isValidURL,kh as loadVKLangPack,We as map,wo as mapTo,co as merge,Y as noop,Na as now,ip as observableFrom,hl as observeElementSize,So as once,qo as pairwise,pr as safeStorage,_o as shareReplay,Po as skip,Ro as tap,fo as throttle,Wr as throttleFn,_v as timeCodeToString,tp as timeout,pl as videoHeightToQuality,bl as videoQualityToHeight,fl as videoSizeToQuality};