@vkontakte/videoplayer-shared 1.0.53-dev.72066147.0 → 1.0.53-dev.7425c8f1.0

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