@vkontakte/videoplayer-shared 1.0.58-dev.eda65eb1.0 → 1.0.58-dev.ef87de0a.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 +3 -3
- package/es2015.esm.js +3 -3
- package/es2018.cjs.js +3 -3
- package/es2018.esm.js +3 -3
- package/es2024.cjs.js +3 -3
- package/es2024.esm.js +3 -3
- package/esnext.cjs.js +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +1 -1
- package/types/reactive/Subscription.d.ts +1 -1
- package/types/reactive/SubscriptionRemovable.d.ts +5 -0
- package/types/reactive/index.d.ts +1 -0
package/es2018.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.58-dev.
|
|
3
|
-
* Thu,
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.58-dev.ef87de0a.0
|
|
3
|
+
* Thu, 10 Apr 2025 14:06:51 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-58/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var $s=Object.create;var Ee=Object.defineProperty;var zs=Object.getOwnPropertyDescriptor;var Ys=Object.getOwnPropertyNames;var Hs=Object.getPrototypeOf,Xs=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),vr=(e,r)=>{for(var t in r)Ee(e,t,{get:r[t],enumerable:!0})},Bt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ys(r))!Xs.call(e,i)&&i!==t&&Ee(e,i,{get:()=>r[i],enumerable:!(n=zs(r,i))||n.enumerable});return e};var ne=(e,r,t)=>(t=e!=null?$s(Hs(e)):{},Bt(r||!e||!e.__esModule?Ee(t,"default",{value:e,enumerable:!0}):t,e)),Js=e=>Bt(Ee({},"__esModule",{value:!0}),e);var E=o((Tr,tn)=>{"use strict";var ie=function(e){return e&&e.Math===Math&&e};tn.exports=ie(typeof globalThis=="object"&&globalThis)||ie(typeof window=="object"&&window)||ie(typeof self=="object"&&self)||ie(typeof global=="object"&&global)||ie(typeof Tr=="object"&&Tr)||function(){return this}()||Function("return this")()});var S=o((Ib,nn)=>{"use strict";nn.exports=function(e){try{return!!e()}catch(r){return!0}}});var oe=o((Ob,on)=>{"use strict";var ou=S();on.exports=!ou(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var cn=o((xb,ln)=>{"use strict";var au=oe(),un=Function.prototype,an=un.apply,sn=un.call;ln.exports=typeof Reflect=="object"&&Reflect.apply||(au?sn.bind(an):function(){return sn.apply(an,arguments)})});var j=o((Eb,vn)=>{"use strict";var pn=oe(),fn=Function.prototype,mr=fn.call,su=pn&&fn.bind.bind(mr,mr);vn.exports=pn?su:function(e){return function(){return mr.apply(e,arguments)}}});var Ae=o((wb,dn)=>{"use strict";var bn=j(),uu=bn({}.toString),lu=bn("".slice);dn.exports=function(e){return lu(uu(e),8,-1)}});var yr=o((Sb,Tn)=>{"use strict";var cu=Ae(),pu=j();Tn.exports=function(e){if(cu(e)==="Function")return pu(e)}});var w=o((qb,mn)=>{"use strict";var hr=typeof document=="object"&&document.all;mn.exports=typeof hr=="undefined"&&hr!==void 0?function(e){return typeof e=="function"||e===hr}:function(e){return typeof e=="function"}});var P=o((Rb,yn)=>{"use strict";var fu=S();yn.exports=!fu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var D=o((Pb,hn)=>{"use strict";var vu=oe(),_e=Function.prototype.call;hn.exports=vu?_e.bind(_e):function(){return _e.apply(_e,arguments)}});var gr=o(On=>{"use strict";var gn={}.propertyIsEnumerable,In=Object.getOwnPropertyDescriptor,bu=In&&!gn.call({1:2},1);On.f=bu?function(r){var t=In(this,r);return!!t&&t.enumerable}:gn});var ae=o((_b,xn)=>{"use strict";xn.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var wn=o((Lb,En)=>{"use strict";var du=j(),Tu=S(),mu=Ae(),Ir=Object,yu=du("".split);En.exports=Tu(function(){return!Ir("z").propertyIsEnumerable(0)})?function(e){return mu(e)==="String"?yu(e,""):Ir(e)}:Ir});var Le=o((jb,Sn)=>{"use strict";Sn.exports=function(e){return e==null}});var je=o((Cb,qn)=>{"use strict";var hu=Le(),gu=TypeError;qn.exports=function(e){if(hu(e))throw new gu("Can't call method on "+e);return e}});var K=o((kb,Rn)=>{"use strict";var Iu=wn(),Ou=je();Rn.exports=function(e){return Iu(Ou(e))}});var k=o((Nb,Pn)=>{"use strict";var xu=w();Pn.exports=function(e){return typeof e=="object"?e!==null:xu(e)}});var se=o((Mb,An)=>{"use strict";An.exports={}});var Ce=o((Vb,Ln)=>{"use strict";var Or=se(),xr=E(),Eu=w(),_n=function(e){return Eu(e)?e:void 0};Ln.exports=function(e,r){return arguments.length<2?_n(Or[e])||_n(xr[e]):Or[e]&&Or[e][r]||xr[e]&&xr[e][r]}});var Er=o((Fb,jn)=>{"use strict";var wu=j();jn.exports=wu({}.isPrototypeOf)});var Mn=o((Db,Nn)=>{"use strict";var Su=E(),Cn=Su.navigator,kn=Cn&&Cn.userAgent;Nn.exports=kn?String(kn):""});var Bn=o((Ub,Qn)=>{"use strict";var Gn=E(),wr=Mn(),Vn=Gn.process,Fn=Gn.Deno,Dn=Vn&&Vn.versions||Fn&&Fn.version,Un=Dn&&Dn.v8,A,ke;Un&&(A=Un.split("."),ke=A[0]>0&&A[0]<4?1:+(A[0]+A[1]));!ke&&wr&&(A=wr.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=wr.match(/Chrome\/(\d+)/),A&&(ke=+A[1])));Qn.exports=ke});var Sr=o((Gb,Wn)=>{"use strict";var Kn=Bn(),qu=S(),Ru=E(),Pu=Ru.String;Wn.exports=!!Object.getOwnPropertySymbols&&!qu(function(){var e=Symbol("symbol detection");return!Pu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Kn&&Kn<41})});var qr=o((Qb,$n)=>{"use strict";var Au=Sr();$n.exports=Au&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Rr=o((Bb,zn)=>{"use strict";var _u=Ce(),Lu=w(),ju=Er(),Cu=qr(),ku=Object;zn.exports=Cu?function(e){return typeof e=="symbol"}:function(e){var r=_u("Symbol");return Lu(r)&&ju(r.prototype,ku(e))}});var Ne=o((Kb,Yn)=>{"use strict";var Nu=String;Yn.exports=function(e){try{return Nu(e)}catch(r){return"Object"}}});var ue=o((Wb,Hn)=>{"use strict";var Mu=w(),Vu=Ne(),Fu=TypeError;Hn.exports=function(e){if(Mu(e))return e;throw new Fu(Vu(e)+" is not a function")}});var Me=o(($b,Xn)=>{"use strict";var Du=ue(),Uu=Le();Xn.exports=function(e,r){var t=e[r];return Uu(t)?void 0:Du(t)}});var Zn=o((zb,Jn)=>{"use strict";var Pr=D(),Ar=w(),_r=k(),Gu=TypeError;Jn.exports=function(e,r){var t,n;if(r==="string"&&Ar(t=e.toString)&&!_r(n=Pr(t,e))||Ar(t=e.valueOf)&&!_r(n=Pr(t,e))||r!=="string"&&Ar(t=e.toString)&&!_r(n=Pr(t,e)))return n;throw new Gu("Can't convert object to primitive value")}});var le=o((Yb,ei)=>{"use strict";ei.exports=!0});var ni=o((Hb,ti)=>{"use strict";var ri=E(),Qu=Object.defineProperty;ti.exports=function(e,r){try{Qu(ri,e,{value:r,configurable:!0,writable:!0})}catch(t){ri[e]=r}return r}});var Ve=o((Xb,ai)=>{"use strict";var Bu=le(),Ku=E(),Wu=ni(),ii="__core-js_shared__",oi=ai.exports=Ku[ii]||Wu(ii,{});(oi.versions||(oi.versions=[])).push({version:"3.38.0",mode:Bu?"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 Lr=o((Jb,ui)=>{"use strict";var si=Ve();ui.exports=function(e,r){return si[e]||(si[e]=r||{})}});var Fe=o((Zb,li)=>{"use strict";var $u=je(),zu=Object;li.exports=function(e){return zu($u(e))}});var N=o((ed,ci)=>{"use strict";var Yu=j(),Hu=Fe(),Xu=Yu({}.hasOwnProperty);ci.exports=Object.hasOwn||function(r,t){return Xu(Hu(r),t)}});var jr=o((rd,pi)=>{"use strict";var Ju=j(),Zu=0,el=Math.random(),rl=Ju(1 .toString);pi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+rl(++Zu+el,36)}});var M=o((td,vi)=>{"use strict";var tl=E(),nl=Lr(),fi=N(),il=jr(),ol=Sr(),al=qr(),H=tl.Symbol,Cr=nl("wks"),sl=al?H.for||H:H&&H.withoutSetter||il;vi.exports=function(e){return fi(Cr,e)||(Cr[e]=ol&&fi(H,e)?H[e]:sl("Symbol."+e)),Cr[e]}});var mi=o((nd,Ti)=>{"use strict";var ul=D(),bi=k(),di=Rr(),ll=Me(),cl=Zn(),pl=M(),fl=TypeError,vl=pl("toPrimitive");Ti.exports=function(e,r){if(!bi(e)||di(e))return e;var t=ll(e,vl),n;if(t){if(r===void 0&&(r="default"),n=ul(t,e,r),!bi(n)||di(n))return n;throw new fl("Can't convert object to primitive value")}return r===void 0&&(r="number"),cl(e,r)}});var kr=o((id,yi)=>{"use strict";var bl=mi(),dl=Rr();yi.exports=function(e){var r=bl(e,"string");return dl(r)?r:r+""}});var Mr=o((od,gi)=>{"use strict";var Tl=E(),hi=k(),Nr=Tl.document,ml=hi(Nr)&&hi(Nr.createElement);gi.exports=function(e){return ml?Nr.createElement(e):{}}});var Vr=o((ad,Ii)=>{"use strict";var yl=P(),hl=S(),gl=Mr();Ii.exports=!yl&&!hl(function(){return Object.defineProperty(gl("div"),"a",{get:function(){return 7}}).a!==7})});var Ei=o(xi=>{"use strict";var Il=P(),Ol=D(),xl=gr(),El=ae(),wl=K(),Sl=kr(),ql=N(),Rl=Vr(),Oi=Object.getOwnPropertyDescriptor;xi.f=Il?Oi:function(r,t){if(r=wl(r),t=Sl(t),Rl)try{return Oi(r,t)}catch(n){}if(ql(r,t))return El(!Ol(xl.f,r,t),r[t])}});var Si=o((ud,wi)=>{"use strict";var Pl=S(),Al=w(),_l=/#|\.prototype\./,ce=function(e,r){var t=jl[Ll(e)];return t===kl?!0:t===Cl?!1:Al(r)?Pl(r):!!r},Ll=ce.normalize=function(e){return String(e).replace(_l,".").toLowerCase()},jl=ce.data={},Cl=ce.NATIVE="N",kl=ce.POLYFILL="P";wi.exports=ce});var Fr=o((ld,Ri)=>{"use strict";var qi=yr(),Nl=ue(),Ml=oe(),Vl=qi(qi.bind);Ri.exports=function(e,r){return Nl(e),r===void 0?e:Ml?Vl(e,r):function(){return e.apply(r,arguments)}}});var Dr=o((cd,Pi)=>{"use strict";var Fl=P(),Dl=S();Pi.exports=Fl&&Dl(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var W=o((pd,Ai)=>{"use strict";var Ul=k(),Gl=String,Ql=TypeError;Ai.exports=function(e){if(Ul(e))return e;throw new Ql(Gl(e)+" is not an object")}});var X=o(Li=>{"use strict";var Bl=P(),Kl=Vr(),Wl=Dr(),De=W(),_i=kr(),$l=TypeError,Ur=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Gr="enumerable",Qr="configurable",Br="writable";Li.f=Bl?Wl?function(r,t,n){if(De(r),t=_i(t),De(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Br in n&&!n[Br]){var i=zl(r,t);i&&i[Br]&&(r[t]=n.value,n={configurable:Qr in n?n[Qr]:i[Qr],enumerable:Gr in n?n[Gr]:i[Gr],writable:!1})}return Ur(r,t,n)}:Ur:function(r,t,n){if(De(r),t=_i(t),De(n),Kl)try{return Ur(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new $l("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var J=o((vd,ji)=>{"use strict";var Yl=P(),Hl=X(),Xl=ae();ji.exports=Yl?function(e,r,t){return Hl.f(e,r,Xl(1,t))}:function(e,r,t){return e[r]=t,e}});var re=o((bd,ki)=>{"use strict";var pe=E(),Jl=cn(),Zl=yr(),ec=w(),rc=Ei().f,tc=Si(),Z=se(),nc=Fr(),ee=J(),Ci=N();Ve();var ic=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Jl(e,this,arguments)};return r.prototype=e.prototype,r};ki.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,u=n?pe:i?pe[t]:pe[t]&&pe[t].prototype,s=n?Z:Z[t]||ee(Z,t,{})[t],c=s.prototype,p,v,l,b,d,m,y,I,h;for(b in r)p=tc(n?b:t+(i?".":"#")+b,e.forced),v=!p&&u&&Ci(u,b),m=s[b],v&&(e.dontCallGetSet?(h=rc(u,b),y=h&&h.value):y=u[b]),d=v&&y?y:r[b],!(!p&&!a&&typeof m==typeof d)&&(e.bind&&v?I=nc(d,pe):e.wrap&&v?I=ic(d):a&&ec(d)?I=Zl(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&ee(I,"sham",!0),ee(s,b,I),a&&(l=t+"Prototype",Ci(Z,l)||ee(Z,l,{}),ee(Z[l],b,d),e.real&&c&&(p||!c[b])&&ee(c,b,d)))}});var Mi=o((dd,Ni)=>{"use strict";var oc=Math.ceil,ac=Math.floor;Ni.exports=Math.trunc||function(r){var t=+r;return(t>0?ac:oc)(t)}});var Ue=o((Td,Vi)=>{"use strict";var sc=Mi();Vi.exports=function(e){var r=+e;return r!==r||r===0?0:sc(r)}});var Di=o((md,Fi)=>{"use strict";var uc=Ue(),lc=Math.min;Fi.exports=function(e){var r=uc(e);return r>0?lc(r,9007199254740991):0}});var Ge=o((yd,Ui)=>{"use strict";var cc=Di();Ui.exports=function(e){return cc(e.length)}});var Qe=o((hd,Gi)=>{"use strict";Gi.exports=function(){}});var Qi=o(()=>{"use strict";var pc=re(),fc=Fe(),vc=Ge(),bc=Ue(),dc=Qe();pc({target:"Array",proto:!0},{at:function(r){var t=fc(this),n=vc(t),i=bc(r),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}});dc("at")});var Kr=o((Od,Bi)=>{"use strict";var Tc=Ce();Bi.exports=Tc});var Wi=o((xd,Ki)=>{"use strict";Qi();var mc=Kr();Ki.exports=mc("Array","at")});var zi=o((Ed,$i)=>{"use strict";var yc=Wi();$i.exports=yc});var Hi=o((wd,Yi)=>{"use strict";var hc=zi();Yi.exports=hc});var Ye=o((AT,To)=>{"use strict";var Ec=Lr(),wc=jr(),bo=Ec("keys");To.exports=function(e){return bo[e]||(bo[e]=wc(e))}});var yo=o((_T,mo)=>{"use strict";var Sc=S();mo.exports=!Sc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var He=o((LT,go)=>{"use strict";var qc=N(),Rc=w(),Pc=Fe(),Ac=Ye(),_c=yo(),ho=Ac("IE_PROTO"),$r=Object,Lc=$r.prototype;go.exports=_c?$r.getPrototypeOf:function(e){var r=Pc(e);if(qc(r,ho))return r[ho];var t=r.constructor;return Rc(t)&&r instanceof t?t.prototype:r instanceof $r?Lc:null}});var Oo=o((jT,Io)=>{"use strict";var jc=Ue(),Cc=Math.max,kc=Math.min;Io.exports=function(e,r){var t=jc(e);return t<0?Cc(t+r,0):kc(t,r)}});var zr=o((CT,Eo)=>{"use strict";var Nc=K(),Mc=Oo(),Vc=Ge(),xo=function(e){return function(r,t,n){var i=Nc(r),a=Vc(i);if(a===0)return!e&&-1;var u=Mc(n,a),s;if(e&&t!==t){for(;a>u;)if(s=i[u++],s!==s)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Eo.exports={includes:xo(!0),indexOf:xo(!1)}});var Xe=o((kT,wo)=>{"use strict";wo.exports={}});var Ro=o((NT,qo)=>{"use strict";var Fc=j(),Yr=N(),Dc=K(),Uc=zr().indexOf,Gc=Xe(),So=Fc([].push);qo.exports=function(e,r){var t=Dc(e),n=0,i=[],a;for(a in t)!Yr(Gc,a)&&Yr(t,a)&&So(i,a);for(;r.length>n;)Yr(t,a=r[n++])&&(~Uc(i,a)||So(i,a));return i}});var Hr=o((MT,Po)=>{"use strict";Po.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Xr=o((VT,Ao)=>{"use strict";var Qc=Ro(),Bc=Hr();Ao.exports=Object.keys||function(r){return Qc(r,Bc)}});var No=o((FT,ko)=>{"use strict";var Lo=P(),Kc=S(),jo=j(),Wc=He(),$c=Xr(),zc=K(),Yc=gr().f,Co=jo(Yc),Hc=jo([].push),Xc=Lo&&Kc(function(){var e=Object.create(null);return e[2]=2,!Co(e,2)}),_o=function(e){return function(r){for(var t=zc(r),n=$c(t),i=Xc&&Wc(t)===null,a=n.length,u=0,s=[],c;a>u;)c=n[u++],(!Lo||(i?c in t:Co(t,c)))&&Hc(s,e?[c,t[c]]:t[c]);return s}};ko.exports={entries:_o(!0),values:_o(!1)}});var Mo=o(()=>{"use strict";var Jc=re(),Zc=No().entries;Jc({target:"Object",stat:!0},{entries:function(r){return Zc(r)}})});var Fo=o((GT,Vo)=>{"use strict";Mo();var ep=se();Vo.exports=ep.Object.entries});var Uo=o((QT,Do)=>{"use strict";var rp=Fo();Do.exports=rp});var Jr=o((BT,Go)=>{"use strict";var tp=Uo();Go.exports=tp});var zo=o(()=>{"use strict";var op=re(),ap=zr().includes,sp=S(),up=Qe(),lp=sp(function(){return!Array(1).includes()});op({target:"Array",proto:!0,forced:lp},{includes:function(r){return ap(this,r,arguments.length>1?arguments[1]:void 0)}});up("includes")});var Ho=o((mm,Yo)=>{"use strict";zo();var cp=Kr();Yo.exports=cp("Array","includes")});var Jo=o((ym,Xo)=>{"use strict";var pp=Ho();Xo.exports=pp});var ea=o((hm,Zo)=>{"use strict";var fp=Jo();Zo.exports=fp});var $=o((dy,aa)=>{"use strict";aa.exports={}});var la=o((Ty,ua)=>{"use strict";var dp=E(),Tp=w(),sa=dp.WeakMap;ua.exports=Tp(sa)&&/native code/.test(String(sa))});var va=o((my,fa)=>{"use strict";var mp=la(),pa=E(),yp=k(),hp=J(),It=N(),Ot=Ve(),gp=Ye(),Ip=Xe(),ca="Object already initialized",xt=pa.TypeError,Op=pa.WeakMap,er,ye,rr,xp=function(e){return rr(e)?ye(e):er(e,{})},Ep=function(e){return function(r){var t;if(!yp(r)||(t=ye(r)).type!==e)throw new xt("Incompatible receiver, "+e+" required");return t}};mp||Ot.state?(_=Ot.state||(Ot.state=new Op),_.get=_.get,_.has=_.has,_.set=_.set,er=function(e,r){if(_.has(e))throw new xt(ca);return r.facade=e,_.set(e,r),r},ye=function(e){return _.get(e)||{}},rr=function(e){return _.has(e)}):(z=gp("state"),Ip[z]=!0,er=function(e,r){if(It(e,z))throw new xt(ca);return r.facade=e,hp(e,z,r),r},ye=function(e){return It(e,z)?e[z]:{}},rr=function(e){return It(e,z)});var _,z;fa.exports={set:er,get:ye,has:rr,enforce:xp,getterFor:Ep}});var Ta=o((yy,da)=>{"use strict";var Et=P(),wp=N(),ba=Function.prototype,Sp=Et&&Object.getOwnPropertyDescriptor,wt=wp(ba,"name"),qp=wt&&function(){}.name==="something",Rp=wt&&(!Et||Et&&Sp(ba,"name").configurable);da.exports={EXISTS:wt,PROPER:qp,CONFIGURABLE:Rp}});var ya=o(ma=>{"use strict";var Pp=P(),Ap=Dr(),_p=X(),Lp=W(),jp=K(),Cp=Xr();ma.f=Pp&&!Ap?Object.defineProperties:function(r,t){Lp(r);for(var n=jp(t),i=Cp(t),a=i.length,u=0,s;a>u;)_p.f(r,s=i[u++],n[s]);return r}});var ga=o((gy,ha)=>{"use strict";var kp=Ce();ha.exports=kp("document","documentElement")});var Pt=o((Iy,qa)=>{"use strict";var Np=W(),Mp=ya(),Ia=Hr(),Vp=Xe(),Fp=ga(),Dp=Mr(),Up=Ye(),Oa=">",xa="<",qt="prototype",Rt="script",wa=Up("IE_PROTO"),St=function(){},Sa=function(e){return xa+Rt+Oa+e+xa+"/"+Rt+Oa},Ea=function(e){e.write(Sa("")),e.close();var r=e.parentWindow.Object;return e=null,r},Gp=function(){var e=Dp("iframe"),r="java"+Rt+":",t;return e.style.display="none",Fp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Sa("document.F=Object")),t.close(),t.F},tr,nr=function(){try{tr=new ActiveXObject("htmlfile")}catch(r){}nr=typeof document!="undefined"?document.domain&&tr?Ea(tr):Gp():Ea(tr);for(var e=Ia.length;e--;)delete nr[qt][Ia[e]];return nr()};Vp[wa]=!0;qa.exports=Object.create||function(r,t){var n;return r!==null?(St[qt]=Np(r),n=new St,St[qt]=null,n[wa]=r):n=nr(),t===void 0?n:Mp.f(n,t)}});var At=o((Oy,Ra)=>{"use strict";var Qp=J();Ra.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Qp(e,r,t),e}});var Ct=o((xy,_a)=>{"use strict";var Bp=S(),Kp=w(),Wp=k(),$p=Pt(),Pa=He(),zp=At(),Yp=M(),Hp=le(),jt=Yp("iterator"),Aa=!1,V,_t,Lt;[].keys&&(Lt=[].keys(),"next"in Lt?(_t=Pa(Pa(Lt)),_t!==Object.prototype&&(V=_t)):Aa=!0);var Xp=!Wp(V)||Bp(function(){var e={};return V[jt].call(e)!==e});Xp?V={}:Hp&&(V=$p(V));Kp(V[jt])||zp(V,jt,function(){return this});_a.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:Aa}});var ir=o((Ey,ja)=>{"use strict";var Jp=M(),Zp=Jp("toStringTag"),La={};La[Zp]="z";ja.exports=String(La)==="[object z]"});var kt=o((wy,Ca)=>{"use strict";var ef=ir(),rf=w(),or=Ae(),tf=M(),nf=tf("toStringTag"),of=Object,af=or(function(){return arguments}())==="Arguments",sf=function(e,r){try{return e[r]}catch(t){}};Ca.exports=ef?or:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=sf(r=of(e),nf))=="string"?t:af?or(r):(n=or(r))==="Object"&&rf(r.callee)?"Arguments":n}});var Na=o((Sy,ka)=>{"use strict";var uf=ir(),lf=kt();ka.exports=uf?{}.toString:function(){return"[object "+lf(this)+"]"}});var ar=o((qy,Va)=>{"use strict";var cf=ir(),pf=X().f,ff=J(),vf=N(),bf=Na(),df=M(),Ma=df("toStringTag");Va.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(vf(i,Ma)||pf(i,Ma,{configurable:!0,value:r}),n&&!cf&&ff(i,"toString",bf))}});var Da=o((Ry,Fa)=>{"use strict";var Tf=Ct().IteratorPrototype,mf=Pt(),yf=ae(),hf=ar(),gf=$(),If=function(){return this};Fa.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=mf(Tf,{next:yf(+!n,t)}),hf(e,i,!1,!0),gf[i]=If,e}});var Ga=o((Py,Ua)=>{"use strict";var Of=j(),xf=ue();Ua.exports=function(e,r,t){try{return Of(xf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Ba=o((Ay,Qa)=>{"use strict";var Ef=k();Qa.exports=function(e){return Ef(e)||e===null}});var Wa=o((_y,Ka)=>{"use strict";var wf=Ba(),Sf=String,qf=TypeError;Ka.exports=function(e){if(wf(e))return e;throw new qf("Can't set "+Sf(e)+" as a prototype")}});var za=o((Ly,$a)=>{"use strict";var Rf=Ga(),Pf=k(),Af=je(),_f=Wa();$a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Rf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,a){return Af(i),_f(a),Pf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var os=o((jy,is)=>{"use strict";var Lf=re(),jf=D(),sr=le(),ts=Ta(),Cf=w(),kf=Da(),Ya=He(),Ha=za(),Nf=ar(),Mf=J(),Nt=At(),Vf=M(),Xa=$(),ns=Ct(),Ff=ts.PROPER,Df=ts.CONFIGURABLE,Ja=ns.IteratorPrototype,ur=ns.BUGGY_SAFARI_ITERATORS,he=Vf("iterator"),Za="keys",ge="values",es="entries",rs=function(){return this};is.exports=function(e,r,t,n,i,a,u){kf(t,r,n);var s=function(h){if(h===i&&b)return b;if(!ur&&h&&h in v)return v[h];switch(h){case Za:return function(){return new t(this,h)};case ge:return function(){return new t(this,h)};case es:return function(){return new t(this,h)}}return function(){return new t(this)}},c=r+" Iterator",p=!1,v=e.prototype,l=v[he]||v["@@iterator"]||i&&v[i],b=!ur&&l||s(i),d=r==="Array"&&v.entries||l,m,y,I;if(d&&(m=Ya(d.call(new e)),m!==Object.prototype&&m.next&&(!sr&&Ya(m)!==Ja&&(Ha?Ha(m,Ja):Cf(m[he])||Nt(m,he,rs)),Nf(m,c,!0,!0),sr&&(Xa[c]=rs))),Ff&&i===ge&&l&&l.name!==ge&&(!sr&&Df?Mf(v,"name",ge):(p=!0,b=function(){return jf(l,this)})),i)if(y={values:s(ge),keys:a?b:s(Za),entries:s(es)},u)for(I in y)(ur||p||!(I in v))&&Nt(v,I,y[I]);else Lf({target:r,proto:!0,forced:ur||p},y);return(!sr||u)&&v[he]!==b&&Nt(v,he,b,{name:i}),Xa[r]=b,y}});var ss=o((Cy,as)=>{"use strict";as.exports=function(e,r){return{value:e,done:r}}});var Vt=o((ky,fs)=>{"use strict";var Uf=K(),Mt=Qe(),us=$(),cs=va(),Gf=X().f,Qf=os(),lr=ss(),Bf=le(),Kf=P(),ps="Array Iterator",Wf=cs.set,$f=cs.getterFor(ps);fs.exports=Qf(Array,"Array",function(e,r){Wf(this,{type:ps,target:Uf(e),index:0,kind:r})},function(){var e=$f(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,lr(void 0,!0);switch(e.kind){case"keys":return lr(t,!1);case"values":return lr(r[t],!1)}return lr([t,r[t]],!1)},"values");var ls=us.Arguments=us.Array;Mt("keys");Mt("values");Mt("entries");if(!Bf&&Kf&&ls.name!=="values")try{Gf(ls,"name",{value:"values"})}catch(e){}});var bs=o((Ny,vs)=>{"use strict";var zf=M(),Yf=$(),Hf=zf("iterator"),Xf=Array.prototype;vs.exports=function(e){return e!==void 0&&(Yf.Array===e||Xf[Hf]===e)}});var Ft=o((My,Ts)=>{"use strict";var Jf=kt(),ds=Me(),Zf=Le(),ev=$(),rv=M(),tv=rv("iterator");Ts.exports=function(e){if(!Zf(e))return ds(e,tv)||ds(e,"@@iterator")||ev[Jf(e)]}});var ys=o((Vy,ms)=>{"use strict";var nv=D(),iv=ue(),ov=W(),av=Ne(),sv=Ft(),uv=TypeError;ms.exports=function(e,r){var t=arguments.length<2?sv(e):r;if(iv(t))return ov(nv(t,e));throw new uv(av(e)+" is not iterable")}});var Is=o((Fy,gs)=>{"use strict";var lv=D(),hs=W(),cv=Me();gs.exports=function(e,r,t){var n,i;hs(e);try{if(n=cv(e,"return"),!n){if(r==="throw")throw t;return t}n=lv(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return hs(n),t}});var Ss=o((Dy,ws)=>{"use strict";var pv=Fr(),fv=D(),vv=W(),bv=Ne(),dv=bs(),Tv=Ge(),Os=Er(),mv=ys(),yv=Ft(),xs=Is(),hv=TypeError,cr=function(e,r){this.stopped=e,this.result=r},Es=cr.prototype;ws.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),c=pv(r,n),p,v,l,b,d,m,y,I=function(g){return p&&xs(p,"normal",g),new cr(!0,g)},h=function(g){return i?(vv(g),s?c(g[0],g[1],I):c(g[0],g[1])):s?c(g,I):c(g)};if(a)p=e.iterator;else if(u)p=e;else{if(v=yv(e),!v)throw new hv(bv(e)+" is not iterable");if(dv(v)){for(l=0,b=Tv(e);b>l;l++)if(d=h(e[l]),d&&Os(Es,d))return d;return new cr(!1)}p=mv(e,v)}for(m=a?e.next:p.next;!(y=fv(m,p)).done;){try{d=h(y.value)}catch(g){xs(p,"throw",g)}if(typeof d=="object"&&d&&Os(Es,d))return d}return new cr(!1)}});var Rs=o((Uy,qs)=>{"use strict";var gv=P(),Iv=X(),Ov=ae();qs.exports=function(e,r,t){gv?Iv.f(e,r,Ov(0,t)):e[r]=t}});var Ps=o(()=>{"use strict";var xv=re(),Ev=Ss(),wv=Rs();xv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Ev(r,function(n,i){wv(t,n,i)},{AS_ENTRIES:!0}),t}})});var _s=o((By,As)=>{"use strict";Vt();Ps();var Sv=se();As.exports=Sv.Object.fromEntries});var js=o((Ky,Ls)=>{"use strict";Ls.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 ks=o(()=>{"use strict";Vt();var qv=js(),Rv=E(),Pv=ar(),Cs=$();for(pr in qv)Pv(Rv[pr],pr),Cs[pr]=Cs.Array;var pr});var Ms=o((zy,Ns)=>{"use strict";var Av=_s();ks();Ns.exports=Av});var Fs=o((Yy,Vs)=>{"use strict";var _v=Ms();Vs.exports=_v});var Gv={};vr(Gv,{ErrorCategory:()=>na,InterfaceLanguage:()=>Qs,InternalsExposure:()=>Dt,Logger:()=>we,Observable:()=>f,Subject:()=>C,Subscription:()=>x,Tracer:()=>Se,VERSION:()=>Kt,VKNumericLanguage:()=>Gs,ValueSubject:()=>be,VideoQuality:()=>Be,abortable:()=>en,addScript:()=>Xt,areQualitiesExact:()=>ao,assertEmptyArray:()=>Ht,assertNever:()=>L,assertNonNullable:()=>$t,assertNotEmptyArray:()=>Yt,assertNullable:()=>zt,assertQualityIsExact:()=>so,binarySearch:()=>fo,buffer:()=>tt,checkNever:()=>Wt,clearVideoElement:()=>po,cloneDeep:()=>lo,cloneDeepWith:()=>fe,combine:()=>Zr,createURL:()=>xc,debounce:()=>it,debounceFn:()=>$e,detectEmbed:()=>Xi,devNull:()=>fr,fillWithDefault:()=>uo,filter:()=>ut,filterChanged:()=>ct,flattenObject:()=>ve,fromEvent:()=>$o,getExponentialDelay:()=>rn,getHighestQuality:()=>ro,getTraceSubscriptionMethod:()=>vo,interval:()=>Ko,isHigher:()=>Ji,isHigherOrEqual:()=>Zi,isInvariantQuality:()=>We,isLower:()=>Ke,isLowerOrEqual:()=>eo,isNonNullable:()=>Q,isNullable:()=>Re,isValidURL:()=>Oc,loadVKLangPack:()=>jv,map:()=>de,mapTo:()=>ft,merge:()=>et,noop:()=>F,now:()=>Zt,observableFrom:()=>Wo,observeElementSize:()=>co,once:()=>vt,pairwise:()=>dt,safeStorage:()=>Pe,skip:()=>ht,tap:()=>mt,throttle:()=>at,throttleFn:()=>ze,timeCodeToString:()=>gc,timeout:()=>Bo,videoHeightToQuality:()=>no,videoQualityToHeight:()=>oo,videoSizeToQuality:()=>io});module.exports=Js(Gv);var Kt="1.0.58-dev.eda65eb1.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`)},Wt=e=>{};var F=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:F}:n={next:s=>t.next(s),error:s=>{var c;return(c=t.error)==null?void 0:c.call(t,s)}}:n={next:F,error:F};let i=typeof r=="function"?{next:s=>{try{let c=r(s);c instanceof Promise&&c.catch(p=>n.next(p))}catch(c){n.next(c)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new x().add(()=>{switch(i.next=F,i.error=F,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return L(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var C=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var we=class{constructor(){this.log$=new C;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};var qe=require("@opentelemetry/api");var G=require("@tracer/opentelemetry"),br=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}},Se=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let u=(0,G.initTracerOpenTelemetry)({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),s=new G.TracerMemorySpanExporter,c=new G.TracerMemorySpanExporter;this.spanExporter=s,u.addSpanProcessor(new G.TracerAllSpansProcessor({startedSpansExporter:s,endedSpansExporter:c})),this.tracer=u.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=qe.trace.setSpan(qe.context.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new br({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 $t(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 Q(e){return typeof e!="undefined"&&e!==null}function Re(e){return e==null}function Yt(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Ht(e,r){if(e!=null&&e.length)throw new Error(r)}var Xt=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),p.remove()});let a=()=>{s(),i("error")},u=()=>{s(),n()},s=()=>{c&&clearTimeout(c),p.removeEventListener("load",u),p.removeEventListener("error",a)},c;t&&(c=window.setTimeout(()=>{s(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",a),p.src=e,document.head.appendChild(p)});var Jt,Zt=typeof((Jt=window.performance)==null?void 0:Jt.now)=="function"?()=>window.performance.now():()=>Date.now();var en=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=(u=s.done)!=null?u:!1,a=s.value}catch(s){await n.throw(s)}return a};var rn=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*a*2-a),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Pe={};vr(Pe,{clear:()=>iu,get:()=>eu,has:()=>tu,isPersistent:()=>Zs,remove:()=>nu,set:()=>ru});var O,B,dr=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(B!==void 0)return B;try{localStorage.setItem(dr,"test"),localStorage.removeItem(dr),B=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(dr),B=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)B=2;else throw r}else throw e}return B===2&&(O=new Map),B},Zs=()=>Y()===0,eu=e=>{var t,n;let r=Y();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:L(r)}},ru=(e,r)=>{let t=Y();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:O==null||O.set(e,r);return;default:L(t)}},tu=e=>{var t;let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return L(r),!1}},nu=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:O==null||O.delete(e);return;default:L(r)}},iu=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:L(e)}};var Wr=ne(Hi(),1),Xi=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,Wr.default)(r,-1),immediateOrigin:(0,Wr.default)(r,0)}};var Be=(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))(Be||{});var q={"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}},Ji=(e,r)=>q[e].height>q[r].height,Zi=(e,r)=>q[e].height>=q[r].height,Ke=(e,r)=>q[e].height<q[r].height,eo=(e,r)=>q[e].height<=q[r].height,ro=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Ke(r,t)?1:-1)[0],to=Object.keys(q).sort((e,r)=>Ke(e,r)?-1:1),no=(e,r=.02)=>[...to].find(n=>q[n].height*(1+r)>=e),io=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return to.find(i=>{let a=q[i];return a.width>=n&&a.height>=t})},oo=e=>q[e].height,We=e=>e==="Invariant quality",ao=e=>e.every(r=>!We(r));function so(e){if(We(e))throw new Error("Expected exact quality")}var uo=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=uo(a,i):t[n]=n in e?a:i}return t};var gc=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function $e(e,r=0,t){let n,i,a,u,s,c,p=0,v=!1,l=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,l="maxWait"in t,a=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):a,b="trailing"in t?!!t.trailing:b);function m(T){let R=n,U=i;return n=i=void 0,p=T,u=e.apply(U,R),u}function y(T,R){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(T)):setTimeout(T,R)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function h(T){return p=T,s=y(Oe,r),v?m(T):u}function g(T){let R=T-c,U=T-p,Qt=r-R;return l?Math.min(Qt,a-U):Qt}function Ut(T){let R=T-c,U=T-p;return c===void 0||R>=r||R<0||l&&U>=a}function Oe(){let T=Date.now();if(Ut(T))return Gt(T);s=y(Oe,g(T))}function Gt(T){return s=void 0,b&&n?m(T):(n=i=void 0,u)}function Bs(){s!==void 0&&I(s),p=0,n=c=i=s=void 0}function Ks(){return s===void 0?u:Gt(Date.now())}function Ws(){return s!==void 0}function xe(...T){let R=Date.now(),U=Ut(R);if(n=T,i=this,c=R,U){if(s===void 0)return h(c);if(l)return s=y(Oe,r),m(c)}return s===void 0&&(s=y(Oe,r)),u}return xe.cancel=Bs,xe.flush=Ks,xe.pending=Ws,xe}var ze=(e,r=0,t)=>$e(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var fe=(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]=fe(e[n],r):t[n]=e[n]}return t};var lo=e=>fe(e);var Ic=300,co=(e,r=Ic)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(ze(u=>{let s=u[0];if(!s)return;let c,p;s.contentBoxSize&&s.contentBoxSize[0]?(p=s.contentBoxSize[0].blockSize,c=s.contentBoxSize[0].inlineSize):s.contentRect&&(c=s.contentRect.width,p=s.contentRect.height),Q(c)&&Q(p)&&t.next({width:c,height:p})},r));return a.observe(e),()=>a.disconnect()});var ve=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let a=ve(e[i],r-1);for(let u in a)a.hasOwnProperty(u)&&(n[i+t+u]=a[u])}else n[i]=e[i];return n};var po=e=>{e.removeAttribute("src"),e.load()};var Oc=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var xc=e=>{try{return new URL(e)}catch(r){return null}};var fo=(e,r)=>{let t=0,n=e.length-1;for(;t<=n;){let i=Math.floor((t+n)/2),a=r(e[i]);if(a===0)return i;a<0?t=i+1:n=i-1}return-1};var vo=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ve(t):{value:t})};var be=class extends C{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};var Qo=ne(Jr(),1);function Zr(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>u=>{a in t||n--,t[a]=u,n===0&&r.next(t)};return(0,Qo.default)(e).reduce((a,[u,s])=>a.add(s.subscribe(i(u))),new x)})}function et(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var Bo=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 Ko=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Wo=e=>new f(r=>{e.forEach(t=>r.next(t))});var $o=(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 np={leading:!1,trailing:!0};function it(e,r=np){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,Q(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 ip={leading:!0,trailing:!1};function at(e,r=ip){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,Re(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 st(t,e)))}var st=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var ta=ne(ea(),1);var vp=(e,r)=>{let t=(n,i)=>{let a=Object.keys(n);for(let u in i)if(!(0,ta.default)(a,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},bp=(e,r)=>e instanceof Object&&r instanceof Object?vp(e,r):e===r;function ct(e=bp){return r=>new f(t=>r.subscribe(new lt(t,e)))}var ra={},lt=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=ra}next(r){let t;try{t=this.lastValue===ra||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function de(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 de(()=>e)}function vt(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{var u;t=!0,(u=r.error)==null||u.call(r,a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function dt(){return e=>new f(r=>e.subscribe(new bt(r)))}var bt=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function mt(e){return r=>new f(t=>r.subscribe(new Tt(t,e)))}var Tt=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 ht(e){return r=>new f(t=>r.subscribe(new yt(t,e)))}var yt=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 na=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(na||{});var Je=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,a=n.length;i<a;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,a=n.length;i<a;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},te=class extends Je{constructor(){super(),this.listeners||Je.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},Te=class{constructor(){Object.defineProperty(this,"signal",{value:new 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&&(Te.prototype[Symbol.toStringTag]="AbortController",te.prototype[Symbol.toStringTag]="AbortSignal");function Ze(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(!Ze({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(p,v){let l;v&&v.signal&&(l=v.signal,delete v.signal);let b=new t(p,v);return l&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:l}),b},a.prototype=t.prototype);let u=r;return{fetch:(c,p)=>{let v=a&&a.prototype.isPrototypeOf(c)?c.signal:p?p.signal:void 0;if(v){let l;try{l=new DOMException("Aborted","AbortError")}catch(d){l=new Error("Aborted"),l.name="AbortError"}if(v.aborted)return Promise.reject(l);let b=new Promise((d,m)=>{v.addEventListener("abort",()=>m(l),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([b,u(c,p)])}return u(c,p)},Request:a}}var me=Ze({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),ia=me?gt({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,oa=me?ia.fetch:window.fetch,py=me?ia.Request:window.Request,fy=me?Te:window.AbortController,vy=me?te:window.AbortSignal;var Ds=ne(Jr(),1),Us=ne(Fs(),1),Gs=(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))(Gs||{}),Lv="vk.com",jv=async(e,r,t)=>{let n=new URL(`https://${Lv}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=await(await oa(n.toString())).json();return Cv(a,t)},Cv=(e,r)=>(0,Us.default)((0,Ds.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),kv(n)])),kv=e=>Array.isArray(e)?e[0]:e;var Qs=(t=>(t.RU="ru",t.EN="en",t))(Qs||{});var Nv={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Mv=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),Dt=class{constructor(r){this.id=Mv();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 Nv[r]}};var fr={};vr(fr,{create:()=>Vv,destroy:()=>Fv,push:()=>Dv,subscribe:()=>Uv});var Ie=new Map,Vv=(e,r)=>Ie.set(e,r!=null?r:[]),Fv=e=>Ie.delete(e),Dv=(e,r)=>{let t=Ie.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Uv=(e,r)=>{let t=Ie.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Ie.set(e,r)}};
|
|
6
|
+
"use strict";var zs=Object.create;var we=Object.defineProperty;var Ys=Object.getOwnPropertyDescriptor;var Hs=Object.getOwnPropertyNames;var Xs=Object.getPrototypeOf,Js=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),br=(e,r)=>{for(var t in r)we(e,t,{get:r[t],enumerable:!0})},Kt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Hs(r))!Js.call(e,i)&&i!==t&&we(e,i,{get:()=>r[i],enumerable:!(n=Ys(r,i))||n.enumerable});return e};var ne=(e,r,t)=>(t=e!=null?zs(Xs(e)):{},Kt(r||!e||!e.__esModule?we(t,"default",{value:e,enumerable:!0}):t,e)),Zs=e=>Kt(we({},"__esModule",{value:!0}),e);var E=o((mr,nn)=>{"use strict";var ie=function(e){return e&&e.Math===Math&&e};nn.exports=ie(typeof globalThis=="object"&&globalThis)||ie(typeof window=="object"&&window)||ie(typeof self=="object"&&self)||ie(typeof global=="object"&&global)||ie(typeof mr=="object"&&mr)||function(){return this}()||Function("return this")()});var S=o((Ob,on)=>{"use strict";on.exports=function(e){try{return!!e()}catch(r){return!0}}});var oe=o((xb,an)=>{"use strict";var au=S();an.exports=!au(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var pn=o((Eb,cn)=>{"use strict";var su=oe(),ln=Function.prototype,sn=ln.apply,un=ln.call;cn.exports=typeof Reflect=="object"&&Reflect.apply||(su?un.bind(sn):function(){return un.apply(sn,arguments)})});var j=o((wb,bn)=>{"use strict";var fn=oe(),vn=Function.prototype,yr=vn.call,uu=fn&&vn.bind.bind(yr,yr);bn.exports=fn?uu:function(e){return function(){return yr.apply(e,arguments)}}});var _e=o((Sb,Tn)=>{"use strict";var dn=j(),lu=dn({}.toString),cu=dn("".slice);Tn.exports=function(e){return cu(lu(e),8,-1)}});var hr=o((qb,mn)=>{"use strict";var pu=_e(),fu=j();mn.exports=function(e){if(pu(e)==="Function")return fu(e)}});var w=o((Rb,yn)=>{"use strict";var gr=typeof document=="object"&&document.all;yn.exports=typeof gr=="undefined"&&gr!==void 0?function(e){return typeof e=="function"||e===gr}:function(e){return typeof e=="function"}});var P=o((Pb,hn)=>{"use strict";var vu=S();hn.exports=!vu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var D=o((Ab,gn)=>{"use strict";var bu=oe(),Le=Function.prototype.call;gn.exports=bu?Le.bind(Le):function(){return Le.apply(Le,arguments)}});var Ir=o(xn=>{"use strict";var In={}.propertyIsEnumerable,On=Object.getOwnPropertyDescriptor,du=On&&!In.call({1:2},1);xn.f=du?function(r){var t=On(this,r);return!!t&&t.enumerable}:In});var ae=o((Lb,En)=>{"use strict";En.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Sn=o((jb,wn)=>{"use strict";var Tu=j(),mu=S(),yu=_e(),Or=Object,hu=Tu("".split);wn.exports=mu(function(){return!Or("z").propertyIsEnumerable(0)})?function(e){return yu(e)==="String"?hu(e,""):Or(e)}:Or});var je=o((Cb,qn)=>{"use strict";qn.exports=function(e){return e==null}});var Ce=o((kb,Rn)=>{"use strict";var gu=je(),Iu=TypeError;Rn.exports=function(e){if(gu(e))throw new Iu("Can't call method on "+e);return e}});var K=o((Nb,Pn)=>{"use strict";var Ou=Sn(),xu=Ce();Pn.exports=function(e){return Ou(xu(e))}});var k=o((Mb,An)=>{"use strict";var Eu=w();An.exports=function(e){return typeof e=="object"?e!==null:Eu(e)}});var se=o((Vb,_n)=>{"use strict";_n.exports={}});var ke=o((Fb,jn)=>{"use strict";var xr=se(),Er=E(),wu=w(),Ln=function(e){return wu(e)?e:void 0};jn.exports=function(e,r){return arguments.length<2?Ln(xr[e])||Ln(Er[e]):xr[e]&&xr[e][r]||Er[e]&&Er[e][r]}});var wr=o((Db,Cn)=>{"use strict";var Su=j();Cn.exports=Su({}.isPrototypeOf)});var Vn=o((Ub,Mn)=>{"use strict";var qu=E(),kn=qu.navigator,Nn=kn&&kn.userAgent;Mn.exports=Nn?String(Nn):""});var Kn=o((Gb,Bn)=>{"use strict";var Qn=E(),Sr=Vn(),Fn=Qn.process,Dn=Qn.Deno,Un=Fn&&Fn.versions||Dn&&Dn.version,Gn=Un&&Un.v8,A,Ne;Gn&&(A=Gn.split("."),Ne=A[0]>0&&A[0]<4?1:+(A[0]+A[1]));!Ne&&Sr&&(A=Sr.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=Sr.match(/Chrome\/(\d+)/),A&&(Ne=+A[1])));Bn.exports=Ne});var qr=o((Qb,$n)=>{"use strict";var Wn=Kn(),Ru=S(),Pu=E(),Au=Pu.String;$n.exports=!!Object.getOwnPropertySymbols&&!Ru(function(){var e=Symbol("symbol detection");return!Au(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Wn&&Wn<41})});var Rr=o((Bb,zn)=>{"use strict";var _u=qr();zn.exports=_u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Pr=o((Kb,Yn)=>{"use strict";var Lu=ke(),ju=w(),Cu=wr(),ku=Rr(),Nu=Object;Yn.exports=ku?function(e){return typeof e=="symbol"}:function(e){var r=Lu("Symbol");return ju(r)&&Cu(r.prototype,Nu(e))}});var Me=o((Wb,Hn)=>{"use strict";var Mu=String;Hn.exports=function(e){try{return Mu(e)}catch(r){return"Object"}}});var ue=o(($b,Xn)=>{"use strict";var Vu=w(),Fu=Me(),Du=TypeError;Xn.exports=function(e){if(Vu(e))return e;throw new Du(Fu(e)+" is not a function")}});var Ve=o((zb,Jn)=>{"use strict";var Uu=ue(),Gu=je();Jn.exports=function(e,r){var t=e[r];return Gu(t)?void 0:Uu(t)}});var ei=o((Yb,Zn)=>{"use strict";var Ar=D(),_r=w(),Lr=k(),Qu=TypeError;Zn.exports=function(e,r){var t,n;if(r==="string"&&_r(t=e.toString)&&!Lr(n=Ar(t,e))||_r(t=e.valueOf)&&!Lr(n=Ar(t,e))||r!=="string"&&_r(t=e.toString)&&!Lr(n=Ar(t,e)))return n;throw new Qu("Can't convert object to primitive value")}});var le=o((Hb,ri)=>{"use strict";ri.exports=!0});var ii=o((Xb,ni)=>{"use strict";var ti=E(),Bu=Object.defineProperty;ni.exports=function(e,r){try{Bu(ti,e,{value:r,configurable:!0,writable:!0})}catch(t){ti[e]=r}return r}});var Fe=o((Jb,si)=>{"use strict";var Ku=le(),Wu=E(),$u=ii(),oi="__core-js_shared__",ai=si.exports=Wu[oi]||$u(oi,{});(ai.versions||(ai.versions=[])).push({version:"3.38.0",mode:Ku?"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 jr=o((Zb,li)=>{"use strict";var ui=Fe();li.exports=function(e,r){return ui[e]||(ui[e]=r||{})}});var De=o((ed,ci)=>{"use strict";var zu=Ce(),Yu=Object;ci.exports=function(e){return Yu(zu(e))}});var N=o((rd,pi)=>{"use strict";var Hu=j(),Xu=De(),Ju=Hu({}.hasOwnProperty);pi.exports=Object.hasOwn||function(r,t){return Ju(Xu(r),t)}});var Cr=o((td,fi)=>{"use strict";var Zu=j(),el=0,rl=Math.random(),tl=Zu(1 .toString);fi.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+tl(++el+rl,36)}});var M=o((nd,bi)=>{"use strict";var nl=E(),il=jr(),vi=N(),ol=Cr(),al=qr(),sl=Rr(),H=nl.Symbol,kr=il("wks"),ul=sl?H.for||H:H&&H.withoutSetter||ol;bi.exports=function(e){return vi(kr,e)||(kr[e]=al&&vi(H,e)?H[e]:ul("Symbol."+e)),kr[e]}});var yi=o((id,mi)=>{"use strict";var ll=D(),di=k(),Ti=Pr(),cl=Ve(),pl=ei(),fl=M(),vl=TypeError,bl=fl("toPrimitive");mi.exports=function(e,r){if(!di(e)||Ti(e))return e;var t=cl(e,bl),n;if(t){if(r===void 0&&(r="default"),n=ll(t,e,r),!di(n)||Ti(n))return n;throw new vl("Can't convert object to primitive value")}return r===void 0&&(r="number"),pl(e,r)}});var Nr=o((od,hi)=>{"use strict";var dl=yi(),Tl=Pr();hi.exports=function(e){var r=dl(e,"string");return Tl(r)?r:r+""}});var Vr=o((ad,Ii)=>{"use strict";var ml=E(),gi=k(),Mr=ml.document,yl=gi(Mr)&&gi(Mr.createElement);Ii.exports=function(e){return yl?Mr.createElement(e):{}}});var Fr=o((sd,Oi)=>{"use strict";var hl=P(),gl=S(),Il=Vr();Oi.exports=!hl&&!gl(function(){return Object.defineProperty(Il("div"),"a",{get:function(){return 7}}).a!==7})});var wi=o(Ei=>{"use strict";var Ol=P(),xl=D(),El=Ir(),wl=ae(),Sl=K(),ql=Nr(),Rl=N(),Pl=Fr(),xi=Object.getOwnPropertyDescriptor;Ei.f=Ol?xi:function(r,t){if(r=Sl(r),t=ql(t),Pl)try{return xi(r,t)}catch(n){}if(Rl(r,t))return wl(!xl(El.f,r,t),r[t])}});var qi=o((ld,Si)=>{"use strict";var Al=S(),_l=w(),Ll=/#|\.prototype\./,ce=function(e,r){var t=Cl[jl(e)];return t===Nl?!0:t===kl?!1:_l(r)?Al(r):!!r},jl=ce.normalize=function(e){return String(e).replace(Ll,".").toLowerCase()},Cl=ce.data={},kl=ce.NATIVE="N",Nl=ce.POLYFILL="P";Si.exports=ce});var Dr=o((cd,Pi)=>{"use strict";var Ri=hr(),Ml=ue(),Vl=oe(),Fl=Ri(Ri.bind);Pi.exports=function(e,r){return Ml(e),r===void 0?e:Vl?Fl(e,r):function(){return e.apply(r,arguments)}}});var Ur=o((pd,Ai)=>{"use strict";var Dl=P(),Ul=S();Ai.exports=Dl&&Ul(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var W=o((fd,_i)=>{"use strict";var Gl=k(),Ql=String,Bl=TypeError;_i.exports=function(e){if(Gl(e))return e;throw new Bl(Ql(e)+" is not an object")}});var X=o(ji=>{"use strict";var Kl=P(),Wl=Fr(),$l=Ur(),Ue=W(),Li=Nr(),zl=TypeError,Gr=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,Qr="enumerable",Br="configurable",Kr="writable";ji.f=Kl?$l?function(r,t,n){if(Ue(r),t=Li(t),Ue(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Kr in n&&!n[Kr]){var i=Yl(r,t);i&&i[Kr]&&(r[t]=n.value,n={configurable:Br in n?n[Br]:i[Br],enumerable:Qr in n?n[Qr]:i[Qr],writable:!1})}return Gr(r,t,n)}:Gr:function(r,t,n){if(Ue(r),t=Li(t),Ue(n),Wl)try{return Gr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new zl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var J=o((bd,Ci)=>{"use strict";var Hl=P(),Xl=X(),Jl=ae();Ci.exports=Hl?function(e,r,t){return Xl.f(e,r,Jl(1,t))}:function(e,r,t){return e[r]=t,e}});var re=o((dd,Ni)=>{"use strict";var pe=E(),Zl=pn(),ec=hr(),rc=w(),tc=wi().f,nc=qi(),Z=se(),ic=Dr(),ee=J(),ki=N();Fe();var oc=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 Zl(e,this,arguments)};return r.prototype=e.prototype,r};Ni.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,u=n?pe:i?pe[t]:pe[t]&&pe[t].prototype,s=n?Z:Z[t]||ee(Z,t,{})[t],c=s.prototype,p,v,l,b,d,m,y,I,h;for(b in r)p=nc(n?b:t+(i?".":"#")+b,e.forced),v=!p&&u&&ki(u,b),m=s[b],v&&(e.dontCallGetSet?(h=tc(u,b),y=h&&h.value):y=u[b]),d=v&&y?y:r[b],!(!p&&!a&&typeof m==typeof d)&&(e.bind&&v?I=ic(d,pe):e.wrap&&v?I=oc(d):a&&rc(d)?I=ec(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&ee(I,"sham",!0),ee(s,b,I),a&&(l=t+"Prototype",ki(Z,l)||ee(Z,l,{}),ee(Z[l],b,d),e.real&&c&&(p||!c[b])&&ee(c,b,d)))}});var Vi=o((Td,Mi)=>{"use strict";var ac=Math.ceil,sc=Math.floor;Mi.exports=Math.trunc||function(r){var t=+r;return(t>0?sc:ac)(t)}});var Ge=o((md,Fi)=>{"use strict";var uc=Vi();Fi.exports=function(e){var r=+e;return r!==r||r===0?0:uc(r)}});var Ui=o((yd,Di)=>{"use strict";var lc=Ge(),cc=Math.min;Di.exports=function(e){var r=lc(e);return r>0?cc(r,9007199254740991):0}});var Qe=o((hd,Gi)=>{"use strict";var pc=Ui();Gi.exports=function(e){return pc(e.length)}});var Be=o((gd,Qi)=>{"use strict";Qi.exports=function(){}});var Bi=o(()=>{"use strict";var fc=re(),vc=De(),bc=Qe(),dc=Ge(),Tc=Be();fc({target:"Array",proto:!0},{at:function(r){var t=vc(this),n=bc(t),i=dc(r),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}});Tc("at")});var Wr=o((xd,Ki)=>{"use strict";var mc=ke();Ki.exports=mc});var $i=o((Ed,Wi)=>{"use strict";Bi();var yc=Wr();Wi.exports=yc("Array","at")});var Yi=o((wd,zi)=>{"use strict";var hc=$i();zi.exports=hc});var Xi=o((Sd,Hi)=>{"use strict";var gc=Yi();Hi.exports=gc});var He=o((_T,mo)=>{"use strict";var wc=jr(),Sc=Cr(),To=wc("keys");mo.exports=function(e){return To[e]||(To[e]=Sc(e))}});var ho=o((LT,yo)=>{"use strict";var qc=S();yo.exports=!qc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Xe=o((jT,Io)=>{"use strict";var Rc=N(),Pc=w(),Ac=De(),_c=He(),Lc=ho(),go=_c("IE_PROTO"),zr=Object,jc=zr.prototype;Io.exports=Lc?zr.getPrototypeOf:function(e){var r=Ac(e);if(Rc(r,go))return r[go];var t=r.constructor;return Pc(t)&&r instanceof t?t.prototype:r instanceof zr?jc:null}});var xo=o((CT,Oo)=>{"use strict";var Cc=Ge(),kc=Math.max,Nc=Math.min;Oo.exports=function(e,r){var t=Cc(e);return t<0?kc(t+r,0):Nc(t,r)}});var Yr=o((kT,wo)=>{"use strict";var Mc=K(),Vc=xo(),Fc=Qe(),Eo=function(e){return function(r,t,n){var i=Mc(r),a=Fc(i);if(a===0)return!e&&-1;var u=Vc(n,a),s;if(e&&t!==t){for(;a>u;)if(s=i[u++],s!==s)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};wo.exports={includes:Eo(!0),indexOf:Eo(!1)}});var Je=o((NT,So)=>{"use strict";So.exports={}});var Po=o((MT,Ro)=>{"use strict";var Dc=j(),Hr=N(),Uc=K(),Gc=Yr().indexOf,Qc=Je(),qo=Dc([].push);Ro.exports=function(e,r){var t=Uc(e),n=0,i=[],a;for(a in t)!Hr(Qc,a)&&Hr(t,a)&&qo(i,a);for(;r.length>n;)Hr(t,a=r[n++])&&(~Gc(i,a)||qo(i,a));return i}});var Xr=o((VT,Ao)=>{"use strict";Ao.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Jr=o((FT,_o)=>{"use strict";var Bc=Po(),Kc=Xr();_o.exports=Object.keys||function(r){return Bc(r,Kc)}});var Mo=o((DT,No)=>{"use strict";var jo=P(),Wc=S(),Co=j(),$c=Xe(),zc=Jr(),Yc=K(),Hc=Ir().f,ko=Co(Hc),Xc=Co([].push),Jc=jo&&Wc(function(){var e=Object.create(null);return e[2]=2,!ko(e,2)}),Lo=function(e){return function(r){for(var t=Yc(r),n=zc(t),i=Jc&&$c(t)===null,a=n.length,u=0,s=[],c;a>u;)c=n[u++],(!jo||(i?c in t:ko(t,c)))&&Xc(s,e?[c,t[c]]:t[c]);return s}};No.exports={entries:Lo(!0),values:Lo(!1)}});var Vo=o(()=>{"use strict";var Zc=re(),ep=Mo().entries;Zc({target:"Object",stat:!0},{entries:function(r){return ep(r)}})});var Do=o((QT,Fo)=>{"use strict";Vo();var rp=se();Fo.exports=rp.Object.entries});var Go=o((BT,Uo)=>{"use strict";var tp=Do();Uo.exports=tp});var Zr=o((KT,Qo)=>{"use strict";var np=Go();Qo.exports=np});var Yo=o(()=>{"use strict";var ap=re(),sp=Yr().includes,up=S(),lp=Be(),cp=up(function(){return!Array(1).includes()});ap({target:"Array",proto:!0,forced:cp},{includes:function(r){return sp(this,r,arguments.length>1?arguments[1]:void 0)}});lp("includes")});var Xo=o((gm,Ho)=>{"use strict";Yo();var pp=Wr();Ho.exports=pp("Array","includes")});var Zo=o((Im,Jo)=>{"use strict";var fp=Xo();Jo.exports=fp});var ra=o((Om,ea)=>{"use strict";var vp=Zo();ea.exports=vp});var $=o((hy,sa)=>{"use strict";sa.exports={}});var ca=o((gy,la)=>{"use strict";var Tp=E(),mp=w(),ua=Tp.WeakMap;la.exports=mp(ua)&&/native code/.test(String(ua))});var ba=o((Iy,va)=>{"use strict";var yp=ca(),fa=E(),hp=k(),gp=J(),Ot=N(),xt=Fe(),Ip=He(),Op=Je(),pa="Object already initialized",Et=fa.TypeError,xp=fa.WeakMap,rr,he,tr,Ep=function(e){return tr(e)?he(e):rr(e,{})},wp=function(e){return function(r){var t;if(!hp(r)||(t=he(r)).type!==e)throw new Et("Incompatible receiver, "+e+" required");return t}};yp||xt.state?(_=xt.state||(xt.state=new xp),_.get=_.get,_.has=_.has,_.set=_.set,rr=function(e,r){if(_.has(e))throw new Et(pa);return r.facade=e,_.set(e,r),r},he=function(e){return _.get(e)||{}},tr=function(e){return _.has(e)}):(z=Ip("state"),Op[z]=!0,rr=function(e,r){if(Ot(e,z))throw new Et(pa);return r.facade=e,gp(e,z,r),r},he=function(e){return Ot(e,z)?e[z]:{}},tr=function(e){return Ot(e,z)});var _,z;va.exports={set:rr,get:he,has:tr,enforce:Ep,getterFor:wp}});var ma=o((Oy,Ta)=>{"use strict";var wt=P(),Sp=N(),da=Function.prototype,qp=wt&&Object.getOwnPropertyDescriptor,St=Sp(da,"name"),Rp=St&&function(){}.name==="something",Pp=St&&(!wt||wt&&qp(da,"name").configurable);Ta.exports={EXISTS:St,PROPER:Rp,CONFIGURABLE:Pp}});var ha=o(ya=>{"use strict";var Ap=P(),_p=Ur(),Lp=X(),jp=W(),Cp=K(),kp=Jr();ya.f=Ap&&!_p?Object.defineProperties:function(r,t){jp(r);for(var n=Cp(t),i=kp(t),a=i.length,u=0,s;a>u;)Lp.f(r,s=i[u++],n[s]);return r}});var Ia=o((Ey,ga)=>{"use strict";var Np=ke();ga.exports=Np("document","documentElement")});var At=o((wy,Ra)=>{"use strict";var Mp=W(),Vp=ha(),Oa=Xr(),Fp=Je(),Dp=Ia(),Up=Vr(),Gp=He(),xa=">",Ea="<",Rt="prototype",Pt="script",Sa=Gp("IE_PROTO"),qt=function(){},qa=function(e){return Ea+Pt+xa+e+Ea+"/"+Pt+xa},wa=function(e){e.write(qa("")),e.close();var r=e.parentWindow.Object;return e=null,r},Qp=function(){var e=Up("iframe"),r="java"+Pt+":",t;return e.style.display="none",Dp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(qa("document.F=Object")),t.close(),t.F},nr,ir=function(){try{nr=new ActiveXObject("htmlfile")}catch(r){}ir=typeof document!="undefined"?document.domain&&nr?wa(nr):Qp():wa(nr);for(var e=Oa.length;e--;)delete ir[Rt][Oa[e]];return ir()};Fp[Sa]=!0;Ra.exports=Object.create||function(r,t){var n;return r!==null?(qt[Rt]=Mp(r),n=new qt,qt[Rt]=null,n[Sa]=r):n=ir(),t===void 0?n:Vp.f(n,t)}});var _t=o((Sy,Pa)=>{"use strict";var Bp=J();Pa.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Bp(e,r,t),e}});var kt=o((qy,La)=>{"use strict";var Kp=S(),Wp=w(),$p=k(),zp=At(),Aa=Xe(),Yp=_t(),Hp=M(),Xp=le(),Ct=Hp("iterator"),_a=!1,V,Lt,jt;[].keys&&(jt=[].keys(),"next"in jt?(Lt=Aa(Aa(jt)),Lt!==Object.prototype&&(V=Lt)):_a=!0);var Jp=!$p(V)||Kp(function(){var e={};return V[Ct].call(e)!==e});Jp?V={}:Xp&&(V=zp(V));Wp(V[Ct])||Yp(V,Ct,function(){return this});La.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:_a}});var or=o((Ry,Ca)=>{"use strict";var Zp=M(),ef=Zp("toStringTag"),ja={};ja[ef]="z";Ca.exports=String(ja)==="[object z]"});var Nt=o((Py,ka)=>{"use strict";var rf=or(),tf=w(),ar=_e(),nf=M(),of=nf("toStringTag"),af=Object,sf=ar(function(){return arguments}())==="Arguments",uf=function(e,r){try{return e[r]}catch(t){}};ka.exports=rf?ar:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=uf(r=af(e),of))=="string"?t:sf?ar(r):(n=ar(r))==="Object"&&tf(r.callee)?"Arguments":n}});var Ma=o((Ay,Na)=>{"use strict";var lf=or(),cf=Nt();Na.exports=lf?{}.toString:function(){return"[object "+cf(this)+"]"}});var sr=o((_y,Fa)=>{"use strict";var pf=or(),ff=X().f,vf=J(),bf=N(),df=Ma(),Tf=M(),Va=Tf("toStringTag");Fa.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(bf(i,Va)||ff(i,Va,{configurable:!0,value:r}),n&&!pf&&vf(i,"toString",df))}});var Ua=o((Ly,Da)=>{"use strict";var mf=kt().IteratorPrototype,yf=At(),hf=ae(),gf=sr(),If=$(),Of=function(){return this};Da.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=yf(mf,{next:hf(+!n,t)}),gf(e,i,!1,!0),If[i]=Of,e}});var Qa=o((jy,Ga)=>{"use strict";var xf=j(),Ef=ue();Ga.exports=function(e,r,t){try{return xf(Ef(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Ka=o((Cy,Ba)=>{"use strict";var wf=k();Ba.exports=function(e){return wf(e)||e===null}});var $a=o((ky,Wa)=>{"use strict";var Sf=Ka(),qf=String,Rf=TypeError;Wa.exports=function(e){if(Sf(e))return e;throw new Rf("Can't set "+qf(e)+" as a prototype")}});var Ya=o((Ny,za)=>{"use strict";var Pf=Qa(),Af=k(),_f=Ce(),Lf=$a();za.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Pf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,a){return _f(i),Lf(a),Af(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var as=o((My,os)=>{"use strict";var jf=re(),Cf=D(),ur=le(),ns=ma(),kf=w(),Nf=Ua(),Ha=Xe(),Xa=Ya(),Mf=sr(),Vf=J(),Mt=_t(),Ff=M(),Ja=$(),is=kt(),Df=ns.PROPER,Uf=ns.CONFIGURABLE,Za=is.IteratorPrototype,lr=is.BUGGY_SAFARI_ITERATORS,ge=Ff("iterator"),es="keys",Ie="values",rs="entries",ts=function(){return this};os.exports=function(e,r,t,n,i,a,u){Nf(t,r,n);var s=function(h){if(h===i&&b)return b;if(!lr&&h&&h in v)return v[h];switch(h){case es:return function(){return new t(this,h)};case Ie:return function(){return new t(this,h)};case rs:return function(){return new t(this,h)}}return function(){return new t(this)}},c=r+" Iterator",p=!1,v=e.prototype,l=v[ge]||v["@@iterator"]||i&&v[i],b=!lr&&l||s(i),d=r==="Array"&&v.entries||l,m,y,I;if(d&&(m=Ha(d.call(new e)),m!==Object.prototype&&m.next&&(!ur&&Ha(m)!==Za&&(Xa?Xa(m,Za):kf(m[ge])||Mt(m,ge,ts)),Mf(m,c,!0,!0),ur&&(Ja[c]=ts))),Df&&i===Ie&&l&&l.name!==Ie&&(!ur&&Uf?Vf(v,"name",Ie):(p=!0,b=function(){return Cf(l,this)})),i)if(y={values:s(Ie),keys:a?b:s(es),entries:s(rs)},u)for(I in y)(lr||p||!(I in v))&&Mt(v,I,y[I]);else jf({target:r,proto:!0,forced:lr||p},y);return(!ur||u)&&v[ge]!==b&&Mt(v,ge,b,{name:i}),Ja[r]=b,y}});var us=o((Vy,ss)=>{"use strict";ss.exports=function(e,r){return{value:e,done:r}}});var Ft=o((Fy,vs)=>{"use strict";var Gf=K(),Vt=Be(),ls=$(),ps=ba(),Qf=X().f,Bf=as(),cr=us(),Kf=le(),Wf=P(),fs="Array Iterator",$f=ps.set,zf=ps.getterFor(fs);vs.exports=Bf(Array,"Array",function(e,r){$f(this,{type:fs,target:Gf(e),index:0,kind:r})},function(){var e=zf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,cr(void 0,!0);switch(e.kind){case"keys":return cr(t,!1);case"values":return cr(r[t],!1)}return cr([t,r[t]],!1)},"values");var cs=ls.Arguments=ls.Array;Vt("keys");Vt("values");Vt("entries");if(!Kf&&Wf&&cs.name!=="values")try{Qf(cs,"name",{value:"values"})}catch(e){}});var ds=o((Dy,bs)=>{"use strict";var Yf=M(),Hf=$(),Xf=Yf("iterator"),Jf=Array.prototype;bs.exports=function(e){return e!==void 0&&(Hf.Array===e||Jf[Xf]===e)}});var Dt=o((Uy,ms)=>{"use strict";var Zf=Nt(),Ts=Ve(),ev=je(),rv=$(),tv=M(),nv=tv("iterator");ms.exports=function(e){if(!ev(e))return Ts(e,nv)||Ts(e,"@@iterator")||rv[Zf(e)]}});var hs=o((Gy,ys)=>{"use strict";var iv=D(),ov=ue(),av=W(),sv=Me(),uv=Dt(),lv=TypeError;ys.exports=function(e,r){var t=arguments.length<2?uv(e):r;if(ov(t))return av(iv(t,e));throw new lv(sv(e)+" is not iterable")}});var Os=o((Qy,Is)=>{"use strict";var cv=D(),gs=W(),pv=Ve();Is.exports=function(e,r,t){var n,i;gs(e);try{if(n=pv(e,"return"),!n){if(r==="throw")throw t;return t}n=cv(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return gs(n),t}});var qs=o((By,Ss)=>{"use strict";var fv=Dr(),vv=D(),bv=W(),dv=Me(),Tv=ds(),mv=Qe(),xs=wr(),yv=hs(),hv=Dt(),Es=Os(),gv=TypeError,pr=function(e,r){this.stopped=e,this.result=r},ws=pr.prototype;Ss.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),c=fv(r,n),p,v,l,b,d,m,y,I=function(g){return p&&Es(p,"normal",g),new pr(!0,g)},h=function(g){return i?(bv(g),s?c(g[0],g[1],I):c(g[0],g[1])):s?c(g,I):c(g)};if(a)p=e.iterator;else if(u)p=e;else{if(v=hv(e),!v)throw new gv(dv(e)+" is not iterable");if(Tv(v)){for(l=0,b=mv(e);b>l;l++)if(d=h(e[l]),d&&xs(ws,d))return d;return new pr(!1)}p=yv(e,v)}for(m=a?e.next:p.next;!(y=vv(m,p)).done;){try{d=h(y.value)}catch(g){Es(p,"throw",g)}if(typeof d=="object"&&d&&xs(ws,d))return d}return new pr(!1)}});var Ps=o((Ky,Rs)=>{"use strict";var Iv=P(),Ov=X(),xv=ae();Rs.exports=function(e,r,t){Iv?Ov.f(e,r,xv(0,t)):e[r]=t}});var As=o(()=>{"use strict";var Ev=re(),wv=qs(),Sv=Ps();Ev({target:"Object",stat:!0},{fromEntries:function(r){var t={};return wv(r,function(n,i){Sv(t,n,i)},{AS_ENTRIES:!0}),t}})});var Ls=o((zy,_s)=>{"use strict";Ft();As();var qv=se();_s.exports=qv.Object.fromEntries});var Cs=o((Yy,js)=>{"use strict";js.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 Ns=o(()=>{"use strict";Ft();var Rv=Cs(),Pv=E(),Av=sr(),ks=$();for(fr in Rv)Av(Pv[fr],fr),ks[fr]=ks.Array;var fr});var Vs=o((Jy,Ms)=>{"use strict";var _v=Ls();Ns();Ms.exports=_v});var Ds=o((Zy,Fs)=>{"use strict";var Lv=Vs();Fs.exports=Lv});var Qv={};br(Qv,{ErrorCategory:()=>ia,InterfaceLanguage:()=>Bs,InternalsExposure:()=>Ut,Logger:()=>Se,Observable:()=>f,Subject:()=>C,Subscription:()=>x,SubscriptionRemovable:()=>de,Tracer:()=>qe,VERSION:()=>Wt,VKNumericLanguage:()=>Qs,ValueSubject:()=>be,VideoQuality:()=>Ke,abortable:()=>rn,addScript:()=>Jt,areQualitiesExact:()=>so,assertEmptyArray:()=>Xt,assertNever:()=>L,assertNonNullable:()=>zt,assertNotEmptyArray:()=>Ht,assertNullable:()=>Yt,assertQualityIsExact:()=>uo,binarySearch:()=>vo,buffer:()=>nt,checkNever:()=>$t,clearVideoElement:()=>fo,cloneDeep:()=>co,cloneDeepWith:()=>fe,combine:()=>et,createURL:()=>Ec,debounce:()=>ot,debounceFn:()=>ze,detectEmbed:()=>Ji,devNull:()=>vr,fillWithDefault:()=>lo,filter:()=>lt,filterChanged:()=>pt,flattenObject:()=>ve,fromEvent:()=>zo,getExponentialDelay:()=>tn,getHighestQuality:()=>to,getTraceSubscriptionMethod:()=>bo,interval:()=>Wo,isHigher:()=>Zi,isHigherOrEqual:()=>eo,isInvariantQuality:()=>$e,isLower:()=>We,isLowerOrEqual:()=>ro,isNonNullable:()=>Q,isNullable:()=>Pe,isValidURL:()=>xc,loadVKLangPack:()=>Cv,map:()=>Te,mapTo:()=>vt,merge:()=>rt,noop:()=>F,now:()=>en,observableFrom:()=>$o,observeElementSize:()=>po,once:()=>bt,pairwise:()=>Tt,safeStorage:()=>Ae,skip:()=>gt,tap:()=>yt,throttle:()=>st,throttleFn:()=>Ye,timeCodeToString:()=>Ic,timeout:()=>Ko,videoHeightToQuality:()=>io,videoQualityToHeight:()=>ao,videoSizeToQuality:()=>oo});module.exports=Zs(Qv);var Wt="1.0.58-dev.ef87de0a.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`)},$t=e=>{};var F=()=>{};var f=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:F}:n={next:s=>t.next(s),error:s=>{var c;return(c=t.error)==null?void 0:c.call(t,s)}}:n={next:F,error:F};let i=typeof r=="function"?{next:s=>{try{let c=r(s);c instanceof Promise&&c.catch(p=>n.next(p))}catch(c){n.next(c)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new x().add(()=>{switch(i.next=F,i.error=F,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return L(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var C=class extends f{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var i;return(i=n.error)==null?void 0:i.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new x().add(()=>this.subscribers.delete(n))}};var Se=class{constructor(){this.log$=new C;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};var Re=require("@opentelemetry/api");var G=require("@tracer/opentelemetry"),dr=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}},qe=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let u=(0,G.initTracerOpenTelemetry)({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),s=new G.TracerMemorySpanExporter,c=new G.TracerMemorySpanExporter;this.spanExporter=s,u.addSpanProcessor(new G.TracerAllSpansProcessor({startedSpansExporter:s,endedSpansExporter:c})),this.tracer=u.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=Re.trace.setSpan(Re.context.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new dr({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 zt(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Yt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function Q(e){return typeof e!="undefined"&&e!==null}function Pe(e){return e==null}function Ht(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Xt(e,r){if(e!=null&&e.length)throw new Error(r)}var Jt=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),p.remove()});let a=()=>{s(),i("error")},u=()=>{s(),n()},s=()=>{c&&clearTimeout(c),p.removeEventListener("load",u),p.removeEventListener("error",a)},c;t&&(c=window.setTimeout(()=>{s(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",a),p.src=e,document.head.appendChild(p)});var Zt,en=typeof((Zt=window.performance)==null?void 0:Zt.now)=="function"?()=>window.performance.now():()=>Date.now();var rn=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=(u=s.done)!=null?u:!1,a=s.value}catch(s){await n.throw(s)}return a};var tn=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*a*2-a),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var Ae={};br(Ae,{clear:()=>ou,get:()=>ru,has:()=>nu,isPersistent:()=>eu,remove:()=>iu,set:()=>tu});var O,B,Tr=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(B!==void 0)return B;try{localStorage.setItem(Tr,"test"),localStorage.removeItem(Tr),B=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Tr),B=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)B=2;else throw r}else throw e}return B===2&&(O=new Map),B},eu=()=>Y()===0,ru=e=>{var t,n;let r=Y();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:L(r)}},tu=(e,r)=>{let t=Y();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:O==null||O.set(e,r);return;default:L(t)}},nu=e=>{var t;let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return L(r),!1}},iu=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:O==null||O.delete(e);return;default:L(r)}},ou=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:L(e)}};var $r=ne(Xi(),1),Ji=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,$r.default)(r,-1),immediateOrigin:(0,$r.default)(r,0)}};var Ke=(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))(Ke||{});var q={"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}},Zi=(e,r)=>q[e].height>q[r].height,eo=(e,r)=>q[e].height>=q[r].height,We=(e,r)=>q[e].height<q[r].height,ro=(e,r)=>q[e].height<=q[r].height,to=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:We(r,t)?1:-1)[0],no=Object.keys(q).sort((e,r)=>We(e,r)?-1:1),io=(e,r=.02)=>[...no].find(n=>q[n].height*(1+r)>=e),oo=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return no.find(i=>{let a=q[i];return a.width>=n&&a.height>=t})},ao=e=>q[e].height,$e=e=>e==="Invariant quality",so=e=>e.every(r=>!$e(r));function uo(e){if($e(e))throw new Error("Expected exact quality")}var lo=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=lo(a,i):t[n]=n in e?a:i}return t};var Ic=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 ze(e,r=0,t){let n,i,a,u,s,c,p=0,v=!1,l=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,l="maxWait"in t,a=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):a,b="trailing"in t?!!t.trailing:b);function m(T){let R=n,U=i;return n=i=void 0,p=T,u=e.apply(U,R),u}function y(T,R){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(T)):setTimeout(T,R)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function h(T){return p=T,s=y(xe,r),v?m(T):u}function g(T){let R=T-c,U=T-p,Bt=r-R;return l?Math.min(Bt,a-U):Bt}function Gt(T){let R=T-c,U=T-p;return c===void 0||R>=r||R<0||l&&U>=a}function xe(){let T=Date.now();if(Gt(T))return Qt(T);s=y(xe,g(T))}function Qt(T){return s=void 0,b&&n?m(T):(n=i=void 0,u)}function Ks(){s!==void 0&&I(s),p=0,n=c=i=s=void 0}function Ws(){return s===void 0?u:Qt(Date.now())}function $s(){return s!==void 0}function Ee(...T){let R=Date.now(),U=Gt(R);if(n=T,i=this,c=R,U){if(s===void 0)return h(c);if(l)return s=y(xe,r),m(c)}return s===void 0&&(s=y(xe,r)),u}return Ee.cancel=Ks,Ee.flush=Ws,Ee.pending=$s,Ee}var Ye=(e,r=0,t)=>ze(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var fe=(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]=fe(e[n],r):t[n]=e[n]}return t};var co=e=>fe(e);var Oc=300,po=(e,r=Oc)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Ye(u=>{let s=u[0];if(!s)return;let c,p;s.contentBoxSize&&s.contentBoxSize[0]?(p=s.contentBoxSize[0].blockSize,c=s.contentBoxSize[0].inlineSize):s.contentRect&&(c=s.contentRect.width,p=s.contentRect.height),Q(c)&&Q(p)&&t.next({width:c,height:p})},r));return a.observe(e),()=>a.disconnect()});var ve=(e,r=6,t=".")=>{let n={};for(let i in e)if(!(!e.hasOwnProperty(i)||e[i]instanceof HTMLElement||!r))if(typeof e[i]=="object"&&e[i]!==null){let a=ve(e[i],r-1);for(let u in a)a.hasOwnProperty(u)&&(n[i+t+u]=a[u])}else n[i]=e[i];return n};var fo=e=>{e.removeAttribute("src"),e.load()};var xc=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var Ec=e=>{try{return new URL(e)}catch(r){return null}};var vo=(e,r)=>{let t=0,n=e.length-1;for(;t<=n;){let i=Math.floor((t+n)/2),a=r(e[i]);if(a===0)return i;a<0?t=i+1:n=i-1}return-1};var bo=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ve(t):{value:t})};var be=class extends C{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};var Bo=ne(Zr(),1);function et(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>u=>{a in t||n--,t[a]=u,n===0&&r.next(t)};return(0,Bo.default)(e).reduce((a,[u,s])=>a.add(s.subscribe(i(u))),new x)})}function rt(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var Ko=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 Wo=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var $o=e=>new f(r=>{e.forEach(t=>r.next(t))});var zo=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var de=class extends x{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function nt(e){return r=>new f(t=>r.subscribe(new tt(t,e)))}var tt=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 ot(e,r=ip){return t=>new f(n=>t.subscribe(new it(n,e,r)))}var it=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Q(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 at(n,e,r)))}var at=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Pe(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 lt(e){return r=>new f(t=>r.subscribe(new ut(t,e)))}var ut=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var na=ne(ra(),1);var bp=(e,r)=>{let t=(n,i)=>{let a=Object.keys(n);for(let u in i)if(!(0,na.default)(a,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},dp=(e,r)=>e instanceof Object&&r instanceof Object?bp(e,r):e===r;function pt(e=dp){return r=>new f(t=>r.subscribe(new ct(t,e)))}var ta={},ct=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=ta}next(r){let t;try{t=this.lastValue===ta||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?{...r}:r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Te(e){return r=>new f(t=>r.subscribe(new ft(t,e)))}var ft=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 vt(e){return Te(()=>e)}function bt(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{var u;t=!0,(u=r.error)==null||u.call(r,a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Tt(){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 yt(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 gt(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 ia=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(ia||{});var Ze=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,a=n.length;i<a;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,a=n.length;i<a;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},te=class extends Ze{constructor(){super(),this.listeners||Ze.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)}},me=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&&(me.prototype[Symbol.toStringTag]="AbortController",te.prototype[Symbol.toStringTag]="AbortSignal");function er(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 It(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!er({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(p,v){let l;v&&v.signal&&(l=v.signal,delete v.signal);let b=new t(p,v);return l&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:l}),b},a.prototype=t.prototype);let u=r;return{fetch:(c,p)=>{let v=a&&a.prototype.isPrototypeOf(c)?c.signal:p?p.signal:void 0;if(v){let l;try{l=new DOMException("Aborted","AbortError")}catch(d){l=new Error("Aborted"),l.name="AbortError"}if(v.aborted)return Promise.reject(l);let b=new Promise((d,m)=>{v.addEventListener("abort",()=>m(l),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([b,u(c,p)])}return u(c,p)},Request:a}}var ye=er({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),oa=ye?It({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,aa=ye?oa.fetch:window.fetch,dy=ye?oa.Request:window.Request,Ty=ye?me:window.AbortController,my=ye?te:window.AbortSignal;var Us=ne(Zr(),1),Gs=ne(Ds(),1),Qs=(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))(Qs||{}),jv="vk.com",Cv=async(e,r,t)=>{let n=new URL(`https://${jv}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=await(await aa(n.toString())).json();return kv(a,t)},kv=(e,r)=>(0,Gs.default)((0,Us.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Nv(n)])),Nv=e=>Array.isArray(e)?e[0]:e;var Bs=(t=>(t.RU="ru",t.EN="en",t))(Bs||{});var Mv={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Vv=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),Ut=class{constructor(r){this.id=Vv();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 Mv[r]}};var vr={};br(vr,{create:()=>Fv,destroy:()=>Dv,push:()=>Uv,subscribe:()=>Gv});var Oe=new Map,Fv=(e,r)=>Oe.set(e,r!=null?r:[]),Dv=e=>Oe.delete(e),Uv=(e,r)=>{let t=Oe.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Gv=(e,r)=>{let t=Oe.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Oe.set(e,r)}};
|
package/es2018.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.58-dev.
|
|
3
|
-
* Thu,
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.58-dev.ef87de0a.0
|
|
3
|
+
* Thu, 10 Apr 2025 14:06:51 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-58/doc/
|
|
5
5
|
*/
|
|
6
|
-
var fs=Object.create;var er=Object.defineProperty;var vs=Object.getOwnPropertyDescriptor;var bs=Object.getOwnPropertyNames;var ds=Object.getPrototypeOf,Ts=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Rt=(e,r)=>{for(var t in r)er(e,t,{get:r[t],enumerable:!0})},ms=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of bs(r))!Ts.call(e,i)&&i!==t&&er(e,i,{get:()=>r[i],enumerable:!(n=vs(r,i))||n.enumerable});return e};var te=(e,r,t)=>(t=e!=null?fs(ds(e)):{},ms(r||!e||!e.__esModule?er(t,"default",{value:e,enumerable:!0}):t,e));var x=o((sr,_t)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};_t.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof global=="object"&&global)||ne(typeof sr=="object"&&sr)||function(){return this}()||Function("return this")()});var S=o((gb,Lt)=>{"use strict";Lt.exports=function(e){try{return!!e()}catch(r){return!0}}});var ie=o((Ib,jt)=>{"use strict";var Vs=S();jt.exports=!Vs(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Vt=o((Ob,Mt)=>{"use strict";var Fs=ie(),Nt=Function.prototype,Ct=Nt.apply,kt=Nt.call;Mt.exports=typeof Reflect=="object"&&Reflect.apply||(Fs?kt.bind(Ct):function(){return kt.apply(Ct,arguments)})});var L=o((xb,Ut)=>{"use strict";var Ft=ie(),Dt=Function.prototype,ur=Dt.call,Ds=Ft&&Dt.bind.bind(ur,ur);Ut.exports=Ft?Ds:function(e){return function(){return ur.apply(e,arguments)}}});var he=o((Eb,Qt)=>{"use strict";var Gt=L(),Us=Gt({}.toString),Gs=Gt("".slice);Qt.exports=function(e){return Gs(Us(e),8,-1)}});var lr=o((wb,Bt)=>{"use strict";var Qs=he(),Bs=L();Bt.exports=function(e){if(Qs(e)==="Function")return Bs(e)}});var E=o((Sb,Kt)=>{"use strict";var cr=typeof document=="object"&&document.all;Kt.exports=typeof cr=="undefined"&&cr!==void 0?function(e){return typeof e=="function"||e===cr}:function(e){return typeof e=="function"}});var P=o((qb,Wt)=>{"use strict";var Ks=S();Wt.exports=!Ks(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var F=o((Rb,$t)=>{"use strict";var Ws=ie(),ge=Function.prototype.call;$t.exports=Ws?ge.bind(ge):function(){return ge.apply(ge,arguments)}});var pr=o(Ht=>{"use strict";var zt={}.propertyIsEnumerable,Yt=Object.getOwnPropertyDescriptor,$s=Yt&&!zt.call({1:2},1);Ht.f=$s?function(r){var t=Yt(this,r);return!!t&&t.enumerable}:zt});var oe=o((Ab,Xt)=>{"use strict";Xt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Zt=o((_b,Jt)=>{"use strict";var zs=L(),Ys=S(),Hs=he(),fr=Object,Xs=zs("".split);Jt.exports=Ys(function(){return!fr("z").propertyIsEnumerable(0)})?function(e){return Hs(e)==="String"?Xs(e,""):fr(e)}:fr});var Ie=o((Lb,en)=>{"use strict";en.exports=function(e){return e==null}});var Oe=o((jb,rn)=>{"use strict";var Js=Ie(),Zs=TypeError;rn.exports=function(e){if(Js(e))throw new Zs("Can't call method on "+e);return e}});var Q=o((Cb,tn)=>{"use strict";var eu=Zt(),ru=Oe();tn.exports=function(e){return eu(ru(e))}});var C=o((kb,nn)=>{"use strict";var tu=E();nn.exports=function(e){return typeof e=="object"?e!==null:tu(e)}});var ae=o((Nb,on)=>{"use strict";on.exports={}});var xe=o((Mb,sn)=>{"use strict";var vr=ae(),br=x(),nu=E(),an=function(e){return nu(e)?e:void 0};sn.exports=function(e,r){return arguments.length<2?an(vr[e])||an(br[e]):vr[e]&&vr[e][r]||br[e]&&br[e][r]}});var dr=o((Vb,un)=>{"use strict";var iu=L();un.exports=iu({}.isPrototypeOf)});var fn=o((Fb,pn)=>{"use strict";var ou=x(),ln=ou.navigator,cn=ln&&ln.userAgent;pn.exports=cn?String(cn):""});var hn=o((Db,yn)=>{"use strict";var mn=x(),Tr=fn(),vn=mn.process,bn=mn.Deno,dn=vn&&vn.versions||bn&&bn.version,Tn=dn&&dn.v8,A,Ee;Tn&&(A=Tn.split("."),Ee=A[0]>0&&A[0]<4?1:+(A[0]+A[1]));!Ee&&Tr&&(A=Tr.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=Tr.match(/Chrome\/(\d+)/),A&&(Ee=+A[1])));yn.exports=Ee});var mr=o((Ub,In)=>{"use strict";var gn=hn(),au=S(),su=x(),uu=su.String;In.exports=!!Object.getOwnPropertySymbols&&!au(function(){var e=Symbol("symbol detection");return!uu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gn&&gn<41})});var yr=o((Gb,On)=>{"use strict";var lu=mr();On.exports=lu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var hr=o((Qb,xn)=>{"use strict";var cu=xe(),pu=E(),fu=dr(),vu=yr(),bu=Object;xn.exports=vu?function(e){return typeof e=="symbol"}:function(e){var r=cu("Symbol");return pu(r)&&fu(r.prototype,bu(e))}});var we=o((Bb,En)=>{"use strict";var du=String;En.exports=function(e){try{return du(e)}catch(r){return"Object"}}});var se=o((Kb,wn)=>{"use strict";var Tu=E(),mu=we(),yu=TypeError;wn.exports=function(e){if(Tu(e))return e;throw new yu(mu(e)+" is not a function")}});var Se=o((Wb,Sn)=>{"use strict";var hu=se(),gu=Ie();Sn.exports=function(e,r){var t=e[r];return gu(t)?void 0:hu(t)}});var Rn=o(($b,qn)=>{"use strict";var gr=F(),Ir=E(),Or=C(),Iu=TypeError;qn.exports=function(e,r){var t,n;if(r==="string"&&Ir(t=e.toString)&&!Or(n=gr(t,e))||Ir(t=e.valueOf)&&!Or(n=gr(t,e))||r!=="string"&&Ir(t=e.toString)&&!Or(n=gr(t,e)))return n;throw new Iu("Can't convert object to primitive value")}});var ue=o((zb,Pn)=>{"use strict";Pn.exports=!0});var Ln=o((Yb,_n)=>{"use strict";var An=x(),Ou=Object.defineProperty;_n.exports=function(e,r){try{Ou(An,e,{value:r,configurable:!0,writable:!0})}catch(t){An[e]=r}return r}});var qe=o((Hb,kn)=>{"use strict";var xu=ue(),Eu=x(),wu=Ln(),jn="__core-js_shared__",Cn=kn.exports=Eu[jn]||wu(jn,{});(Cn.versions||(Cn.versions=[])).push({version:"3.38.0",mode:xu?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var xr=o((Xb,Mn)=>{"use strict";var Nn=qe();Mn.exports=function(e,r){return Nn[e]||(Nn[e]=r||{})}});var Re=o((Jb,Vn)=>{"use strict";var Su=Oe(),qu=Object;Vn.exports=function(e){return qu(Su(e))}});var k=o((Zb,Fn)=>{"use strict";var Ru=L(),Pu=Re(),Au=Ru({}.hasOwnProperty);Fn.exports=Object.hasOwn||function(r,t){return Au(Pu(r),t)}});var Er=o((ed,Dn)=>{"use strict";var _u=L(),Lu=0,ju=Math.random(),Cu=_u(1 .toString);Dn.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Cu(++Lu+ju,36)}});var N=o((rd,Gn)=>{"use strict";var ku=x(),Nu=xr(),Un=k(),Mu=Er(),Vu=mr(),Fu=yr(),Y=ku.Symbol,wr=Nu("wks"),Du=Fu?Y.for||Y:Y&&Y.withoutSetter||Mu;Gn.exports=function(e){return Un(wr,e)||(wr[e]=Vu&&Un(Y,e)?Y[e]:Du("Symbol."+e)),wr[e]}});var Wn=o((td,Kn)=>{"use strict";var Uu=F(),Qn=C(),Bn=hr(),Gu=Se(),Qu=Rn(),Bu=N(),Ku=TypeError,Wu=Bu("toPrimitive");Kn.exports=function(e,r){if(!Qn(e)||Bn(e))return e;var t=Gu(e,Wu),n;if(t){if(r===void 0&&(r="default"),n=Uu(t,e,r),!Qn(n)||Bn(n))return n;throw new Ku("Can't convert object to primitive value")}return r===void 0&&(r="number"),Qu(e,r)}});var Sr=o((nd,$n)=>{"use strict";var $u=Wn(),zu=hr();$n.exports=function(e){var r=$u(e,"string");return zu(r)?r:r+""}});var Rr=o((id,Yn)=>{"use strict";var Yu=x(),zn=C(),qr=Yu.document,Hu=zn(qr)&&zn(qr.createElement);Yn.exports=function(e){return Hu?qr.createElement(e):{}}});var Pr=o((od,Hn)=>{"use strict";var Xu=P(),Ju=S(),Zu=Rr();Hn.exports=!Xu&&!Ju(function(){return Object.defineProperty(Zu("div"),"a",{get:function(){return 7}}).a!==7})});var Zn=o(Jn=>{"use strict";var el=P(),rl=F(),tl=pr(),nl=oe(),il=Q(),ol=Sr(),al=k(),sl=Pr(),Xn=Object.getOwnPropertyDescriptor;Jn.f=el?Xn:function(r,t){if(r=il(r),t=ol(t),sl)try{return Xn(r,t)}catch(n){}if(al(r,t))return nl(!rl(tl.f,r,t),r[t])}});var ri=o((sd,ei)=>{"use strict";var ul=S(),ll=E(),cl=/#|\.prototype\./,le=function(e,r){var t=fl[pl(e)];return t===bl?!0:t===vl?!1:ll(r)?ul(r):!!r},pl=le.normalize=function(e){return String(e).replace(cl,".").toLowerCase()},fl=le.data={},vl=le.NATIVE="N",bl=le.POLYFILL="P";ei.exports=le});var Ar=o((ud,ni)=>{"use strict";var ti=lr(),dl=se(),Tl=ie(),ml=ti(ti.bind);ni.exports=function(e,r){return dl(e),r===void 0?e:Tl?ml(e,r):function(){return e.apply(r,arguments)}}});var _r=o((ld,ii)=>{"use strict";var yl=P(),hl=S();ii.exports=yl&&hl(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var B=o((cd,oi)=>{"use strict";var gl=C(),Il=String,Ol=TypeError;oi.exports=function(e){if(gl(e))return e;throw new Ol(Il(e)+" is not an object")}});var H=o(si=>{"use strict";var xl=P(),El=Pr(),wl=_r(),Pe=B(),ai=Sr(),Sl=TypeError,Lr=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,jr="enumerable",Cr="configurable",kr="writable";si.f=xl?wl?function(r,t,n){if(Pe(r),t=ai(t),Pe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&kr in n&&!n[kr]){var i=ql(r,t);i&&i[kr]&&(r[t]=n.value,n={configurable:Cr in n?n[Cr]:i[Cr],enumerable:jr in n?n[jr]:i[jr],writable:!1})}return Lr(r,t,n)}:Lr:function(r,t,n){if(Pe(r),t=ai(t),Pe(n),El)try{return Lr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new Sl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var X=o((fd,ui)=>{"use strict";var Rl=P(),Pl=H(),Al=oe();ui.exports=Rl?function(e,r,t){return Pl.f(e,r,Al(1,t))}:function(e,r,t){return e[r]=t,e}});var ee=o((vd,ci)=>{"use strict";var ce=x(),_l=Vt(),Ll=lr(),jl=E(),Cl=Zn().f,kl=ri(),J=ae(),Nl=Ar(),Z=X(),li=k();qe();var Ml=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 _l(e,this,arguments)};return r.prototype=e.prototype,r};ci.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,u=n?ce:i?ce[t]:ce[t]&&ce[t].prototype,s=n?J:J[t]||Z(J,t,{})[t],c=s.prototype,p,v,l,b,d,m,y,I,h;for(b in r)p=kl(n?b:t+(i?".":"#")+b,e.forced),v=!p&&u&&li(u,b),m=s[b],v&&(e.dontCallGetSet?(h=Cl(u,b),y=h&&h.value):y=u[b]),d=v&&y?y:r[b],!(!p&&!a&&typeof m==typeof d)&&(e.bind&&v?I=Nl(d,ce):e.wrap&&v?I=Ml(d):a&&jl(d)?I=Ll(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&Z(I,"sham",!0),Z(s,b,I),a&&(l=t+"Prototype",li(J,l)||Z(J,l,{}),Z(J[l],b,d),e.real&&c&&(p||!c[b])&&Z(c,b,d)))}});var fi=o((bd,pi)=>{"use strict";var Vl=Math.ceil,Fl=Math.floor;pi.exports=Math.trunc||function(r){var t=+r;return(t>0?Fl:Vl)(t)}});var Ae=o((dd,vi)=>{"use strict";var Dl=fi();vi.exports=function(e){var r=+e;return r!==r||r===0?0:Dl(r)}});var di=o((Td,bi)=>{"use strict";var Ul=Ae(),Gl=Math.min;bi.exports=function(e){var r=Ul(e);return r>0?Gl(r,9007199254740991):0}});var _e=o((md,Ti)=>{"use strict";var Ql=di();Ti.exports=function(e){return Ql(e.length)}});var Le=o((yd,mi)=>{"use strict";mi.exports=function(){}});var yi=o(()=>{"use strict";var Bl=ee(),Kl=Re(),Wl=_e(),$l=Ae(),zl=Le();Bl({target:"Array",proto:!0},{at:function(r){var t=Kl(this),n=Wl(t),i=$l(r),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}});zl("at")});var Nr=o((Id,hi)=>{"use strict";var Yl=xe();hi.exports=Yl});var Ii=o((Od,gi)=>{"use strict";yi();var Hl=Nr();gi.exports=Hl("Array","at")});var xi=o((xd,Oi)=>{"use strict";var Xl=Ii();Oi.exports=Xl});var wi=o((Ed,Ei)=>{"use strict";var Jl=xi();Ei.exports=Jl});var Ne=o((LT,Ri)=>{"use strict";var Tc=xr(),mc=Er(),qi=Tc("keys");Ri.exports=function(e){return qi[e]||(qi[e]=mc(e))}});var Ai=o((jT,Pi)=>{"use strict";var yc=S();Pi.exports=!yc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Me=o((CT,Li)=>{"use strict";var hc=k(),gc=E(),Ic=Re(),Oc=Ne(),xc=Ai(),_i=Oc("IE_PROTO"),Qr=Object,Ec=Qr.prototype;Li.exports=xc?Qr.getPrototypeOf:function(e){var r=Ic(e);if(hc(r,_i))return r[_i];var t=r.constructor;return gc(t)&&r instanceof t?t.prototype:r instanceof Qr?Ec:null}});var Ci=o((kT,ji)=>{"use strict";var wc=Ae(),Sc=Math.max,qc=Math.min;ji.exports=function(e,r){var t=wc(e);return t<0?Sc(t+r,0):qc(t,r)}});var Br=o((NT,Ni)=>{"use strict";var Rc=Q(),Pc=Ci(),Ac=_e(),ki=function(e){return function(r,t,n){var i=Rc(r),a=Ac(i);if(a===0)return!e&&-1;var u=Pc(n,a),s;if(e&&t!==t){for(;a>u;)if(s=i[u++],s!==s)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Ni.exports={includes:ki(!0),indexOf:ki(!1)}});var Ve=o((MT,Mi)=>{"use strict";Mi.exports={}});var Di=o((VT,Fi)=>{"use strict";var _c=L(),Kr=k(),Lc=Q(),jc=Br().indexOf,Cc=Ve(),Vi=_c([].push);Fi.exports=function(e,r){var t=Lc(e),n=0,i=[],a;for(a in t)!Kr(Cc,a)&&Kr(t,a)&&Vi(i,a);for(;r.length>n;)Kr(t,a=r[n++])&&(~jc(i,a)||Vi(i,a));return i}});var Wr=o((FT,Ui)=>{"use strict";Ui.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var $r=o((DT,Gi)=>{"use strict";var kc=Di(),Nc=Wr();Gi.exports=Object.keys||function(r){return kc(r,Nc)}});var zi=o((UT,$i)=>{"use strict";var Bi=P(),Mc=S(),Ki=L(),Vc=Me(),Fc=$r(),Dc=Q(),Uc=pr().f,Wi=Ki(Uc),Gc=Ki([].push),Qc=Bi&&Mc(function(){var e=Object.create(null);return e[2]=2,!Wi(e,2)}),Qi=function(e){return function(r){for(var t=Dc(r),n=Fc(t),i=Qc&&Vc(t)===null,a=n.length,u=0,s=[],c;a>u;)c=n[u++],(!Bi||(i?c in t:Wi(t,c)))&&Gc(s,e?[c,t[c]]:t[c]);return s}};$i.exports={entries:Qi(!0),values:Qi(!1)}});var Yi=o(()=>{"use strict";var Bc=ee(),Kc=zi().entries;Bc({target:"Object",stat:!0},{entries:function(r){return Kc(r)}})});var Xi=o((BT,Hi)=>{"use strict";Yi();var Wc=ae();Hi.exports=Wc.Object.entries});var Zi=o((KT,Ji)=>{"use strict";var $c=Xi();Ji.exports=$c});var zr=o((WT,eo)=>{"use strict";var zc=Zi();eo.exports=zc});var uo=o(()=>{"use strict";var rp=ee(),tp=Br().includes,np=S(),ip=Le(),op=np(function(){return!Array(1).includes()});rp({target:"Array",proto:!0,forced:op},{includes:function(r){return tp(this,r,arguments.length>1?arguments[1]:void 0)}});ip("includes")});var co=o((hm,lo)=>{"use strict";uo();var ap=Nr();lo.exports=ap("Array","includes")});var fo=o((gm,po)=>{"use strict";var sp=co();po.exports=sp});var bo=o((Im,vo)=>{"use strict";var up=fo();vo.exports=up});var K=o((my,So)=>{"use strict";So.exports={}});var Po=o((yy,Ro)=>{"use strict";var fp=x(),vp=E(),qo=fp.WeakMap;Ro.exports=vp(qo)&&/native code/.test(String(qo))});var jo=o((hy,Lo)=>{"use strict";var bp=Po(),_o=x(),dp=C(),Tp=X(),ot=k(),at=qe(),mp=Ne(),yp=Ve(),Ao="Object already initialized",st=_o.TypeError,hp=_o.WeakMap,Ge,ve,Qe,gp=function(e){return Qe(e)?ve(e):Ge(e,{})},Ip=function(e){return function(r){var t;if(!dp(r)||(t=ve(r)).type!==e)throw new st("Incompatible receiver, "+e+" required");return t}};bp||at.state?(_=at.state||(at.state=new hp),_.get=_.get,_.has=_.has,_.set=_.set,Ge=function(e,r){if(_.has(e))throw new st(Ao);return r.facade=e,_.set(e,r),r},ve=function(e){return _.get(e)||{}},Qe=function(e){return _.has(e)}):(W=mp("state"),yp[W]=!0,Ge=function(e,r){if(ot(e,W))throw new st(Ao);return r.facade=e,Tp(e,W,r),r},ve=function(e){return ot(e,W)?e[W]:{}},Qe=function(e){return ot(e,W)});var _,W;Lo.exports={set:Ge,get:ve,has:Qe,enforce:gp,getterFor:Ip}});var No=o((gy,ko)=>{"use strict";var ut=P(),Op=k(),Co=Function.prototype,xp=ut&&Object.getOwnPropertyDescriptor,lt=Op(Co,"name"),Ep=lt&&function(){}.name==="something",wp=lt&&(!ut||ut&&xp(Co,"name").configurable);ko.exports={EXISTS:lt,PROPER:Ep,CONFIGURABLE:wp}});var Vo=o(Mo=>{"use strict";var Sp=P(),qp=_r(),Rp=H(),Pp=B(),Ap=Q(),_p=$r();Mo.f=Sp&&!qp?Object.defineProperties:function(r,t){Pp(r);for(var n=Ap(t),i=_p(t),a=i.length,u=0,s;a>u;)Rp.f(r,s=i[u++],n[s]);return r}});var Do=o((Oy,Fo)=>{"use strict";var Lp=xe();Fo.exports=Lp("document","documentElement")});var vt=o((xy,$o)=>{"use strict";var jp=B(),Cp=Vo(),Uo=Wr(),kp=Ve(),Np=Do(),Mp=Rr(),Vp=Ne(),Go=">",Qo="<",pt="prototype",ft="script",Ko=Vp("IE_PROTO"),ct=function(){},Wo=function(e){return Qo+ft+Go+e+Qo+"/"+ft+Go},Bo=function(e){e.write(Wo("")),e.close();var r=e.parentWindow.Object;return e=null,r},Fp=function(){var e=Mp("iframe"),r="java"+ft+":",t;return e.style.display="none",Np.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Wo("document.F=Object")),t.close(),t.F},Be,Ke=function(){try{Be=new ActiveXObject("htmlfile")}catch(r){}Ke=typeof document!="undefined"?document.domain&&Be?Bo(Be):Fp():Bo(Be);for(var e=Uo.length;e--;)delete Ke[pt][Uo[e]];return Ke()};kp[Ko]=!0;$o.exports=Object.create||function(r,t){var n;return r!==null?(ct[pt]=jp(r),n=new ct,ct[pt]=null,n[Ko]=r):n=Ke(),t===void 0?n:Cp.f(n,t)}});var bt=o((Ey,zo)=>{"use strict";var Dp=X();zo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Dp(e,r,t),e}});var yt=o((wy,Xo)=>{"use strict";var Up=S(),Gp=E(),Qp=C(),Bp=vt(),Yo=Me(),Kp=bt(),Wp=N(),$p=ue(),mt=Wp("iterator"),Ho=!1,M,dt,Tt;[].keys&&(Tt=[].keys(),"next"in Tt?(dt=Yo(Yo(Tt)),dt!==Object.prototype&&(M=dt)):Ho=!0);var zp=!Qp(M)||Up(function(){var e={};return M[mt].call(e)!==e});zp?M={}:$p&&(M=Bp(M));Gp(M[mt])||Kp(M,mt,function(){return this});Xo.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:Ho}});var We=o((Sy,Zo)=>{"use strict";var Yp=N(),Hp=Yp("toStringTag"),Jo={};Jo[Hp]="z";Zo.exports=String(Jo)==="[object z]"});var ht=o((qy,ea)=>{"use strict";var Xp=We(),Jp=E(),$e=he(),Zp=N(),ef=Zp("toStringTag"),rf=Object,tf=$e(function(){return arguments}())==="Arguments",nf=function(e,r){try{return e[r]}catch(t){}};ea.exports=Xp?$e:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=nf(r=rf(e),ef))=="string"?t:tf?$e(r):(n=$e(r))==="Object"&&Jp(r.callee)?"Arguments":n}});var ta=o((Ry,ra)=>{"use strict";var of=We(),af=ht();ra.exports=of?{}.toString:function(){return"[object "+af(this)+"]"}});var ze=o((Py,ia)=>{"use strict";var sf=We(),uf=H().f,lf=X(),cf=k(),pf=ta(),ff=N(),na=ff("toStringTag");ia.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(cf(i,na)||uf(i,na,{configurable:!0,value:r}),n&&!sf&&lf(i,"toString",pf))}});var aa=o((Ay,oa)=>{"use strict";var vf=yt().IteratorPrototype,bf=vt(),df=oe(),Tf=ze(),mf=K(),yf=function(){return this};oa.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=bf(vf,{next:df(+!n,t)}),Tf(e,i,!1,!0),mf[i]=yf,e}});var ua=o((_y,sa)=>{"use strict";var hf=L(),gf=se();sa.exports=function(e,r,t){try{return hf(gf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ca=o((Ly,la)=>{"use strict";var If=C();la.exports=function(e){return If(e)||e===null}});var fa=o((jy,pa)=>{"use strict";var Of=ca(),xf=String,Ef=TypeError;pa.exports=function(e){if(Of(e))return e;throw new Ef("Can't set "+xf(e)+" as a prototype")}});var ba=o((Cy,va)=>{"use strict";var wf=ua(),Sf=C(),qf=Oe(),Rf=fa();va.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=wf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,a){return qf(i),Rf(a),Sf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var wa=o((ky,Ea)=>{"use strict";var Pf=ee(),Af=F(),Ye=ue(),Oa=No(),_f=E(),Lf=aa(),da=Me(),Ta=ba(),jf=ze(),Cf=X(),gt=bt(),kf=N(),ma=K(),xa=yt(),Nf=Oa.PROPER,Mf=Oa.CONFIGURABLE,ya=xa.IteratorPrototype,He=xa.BUGGY_SAFARI_ITERATORS,be=kf("iterator"),ha="keys",de="values",ga="entries",Ia=function(){return this};Ea.exports=function(e,r,t,n,i,a,u){Lf(t,r,n);var s=function(h){if(h===i&&b)return b;if(!He&&h&&h in v)return v[h];switch(h){case ha:return function(){return new t(this,h)};case de:return function(){return new t(this,h)};case ga:return function(){return new t(this,h)}}return function(){return new t(this)}},c=r+" Iterator",p=!1,v=e.prototype,l=v[be]||v["@@iterator"]||i&&v[i],b=!He&&l||s(i),d=r==="Array"&&v.entries||l,m,y,I;if(d&&(m=da(d.call(new e)),m!==Object.prototype&&m.next&&(!Ye&&da(m)!==ya&&(Ta?Ta(m,ya):_f(m[be])||gt(m,be,Ia)),jf(m,c,!0,!0),Ye&&(ma[c]=Ia))),Nf&&i===de&&l&&l.name!==de&&(!Ye&&Mf?Cf(v,"name",de):(p=!0,b=function(){return Af(l,this)})),i)if(y={values:s(de),keys:a?b:s(ha),entries:s(ga)},u)for(I in y)(He||p||!(I in v))&>(v,I,y[I]);else Pf({target:r,proto:!0,forced:He||p},y);return(!Ye||u)&&v[be]!==b&>(v,be,b,{name:i}),ma[r]=b,y}});var qa=o((Ny,Sa)=>{"use strict";Sa.exports=function(e,r){return{value:e,done:r}}});var Ot=o((My,La)=>{"use strict";var Vf=Q(),It=Le(),Ra=K(),Aa=jo(),Ff=H().f,Df=wa(),Xe=qa(),Uf=ue(),Gf=P(),_a="Array Iterator",Qf=Aa.set,Bf=Aa.getterFor(_a);La.exports=Df(Array,"Array",function(e,r){Qf(this,{type:_a,target:Vf(e),index:0,kind:r})},function(){var e=Bf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Xe(void 0,!0);switch(e.kind){case"keys":return Xe(t,!1);case"values":return Xe(r[t],!1)}return Xe([t,r[t]],!1)},"values");var Pa=Ra.Arguments=Ra.Array;It("keys");It("values");It("entries");if(!Uf&&Gf&&Pa.name!=="values")try{Ff(Pa,"name",{value:"values"})}catch(e){}});var Ca=o((Vy,ja)=>{"use strict";var Kf=N(),Wf=K(),$f=Kf("iterator"),zf=Array.prototype;ja.exports=function(e){return e!==void 0&&(Wf.Array===e||zf[$f]===e)}});var xt=o((Fy,Na)=>{"use strict";var Yf=ht(),ka=Se(),Hf=Ie(),Xf=K(),Jf=N(),Zf=Jf("iterator");Na.exports=function(e){if(!Hf(e))return ka(e,Zf)||ka(e,"@@iterator")||Xf[Yf(e)]}});var Va=o((Dy,Ma)=>{"use strict";var ev=F(),rv=se(),tv=B(),nv=we(),iv=xt(),ov=TypeError;Ma.exports=function(e,r){var t=arguments.length<2?iv(e):r;if(rv(t))return tv(ev(t,e));throw new ov(nv(e)+" is not iterable")}});var Ua=o((Uy,Da)=>{"use strict";var av=F(),Fa=B(),sv=Se();Da.exports=function(e,r,t){var n,i;Fa(e);try{if(n=sv(e,"return"),!n){if(r==="throw")throw t;return t}n=av(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return Fa(n),t}});var Wa=o((Gy,Ka)=>{"use strict";var uv=Ar(),lv=F(),cv=B(),pv=we(),fv=Ca(),vv=_e(),Ga=dr(),bv=Va(),dv=xt(),Qa=Ua(),Tv=TypeError,Je=function(e,r){this.stopped=e,this.result=r},Ba=Je.prototype;Ka.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),c=uv(r,n),p,v,l,b,d,m,y,I=function(g){return p&&Qa(p,"normal",g),new Je(!0,g)},h=function(g){return i?(cv(g),s?c(g[0],g[1],I):c(g[0],g[1])):s?c(g,I):c(g)};if(a)p=e.iterator;else if(u)p=e;else{if(v=dv(e),!v)throw new Tv(pv(e)+" is not iterable");if(fv(v)){for(l=0,b=vv(e);b>l;l++)if(d=h(e[l]),d&&Ga(Ba,d))return d;return new Je(!1)}p=bv(e,v)}for(m=a?e.next:p.next;!(y=lv(m,p)).done;){try{d=h(y.value)}catch(g){Qa(p,"throw",g)}if(typeof d=="object"&&d&&Ga(Ba,d))return d}return new Je(!1)}});var za=o((Qy,$a)=>{"use strict";var mv=P(),yv=H(),hv=oe();$a.exports=function(e,r,t){mv?yv.f(e,r,hv(0,t)):e[r]=t}});var Ya=o(()=>{"use strict";var gv=ee(),Iv=Wa(),Ov=za();gv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Iv(r,function(n,i){Ov(t,n,i)},{AS_ENTRIES:!0}),t}})});var Xa=o((Wy,Ha)=>{"use strict";Ot();Ya();var xv=ae();Ha.exports=xv.Object.fromEntries});var Za=o(($y,Ja)=>{"use strict";Ja.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 rs=o(()=>{"use strict";Ot();var Ev=Za(),wv=x(),Sv=ze(),es=K();for(Ze in Ev)Sv(wv[Ze],Ze),es[Ze]=es.Array;var Ze});var ns=o((Hy,ts)=>{"use strict";var qv=Xa();rs();ts.exports=qv});var os=o((Xy,is)=>{"use strict";var Rv=ns();is.exports=Rv});var ys="1.0.58-dev.eda65eb1.0";var w=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>{typeof t=="function"?t():t.unsubscribe()})}add(r){return this.subscriptions.push(r),this}};var j=e=>{throw new Error(`${e} is value of unexpected type`)},hs=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:s=>t.next(s),error:s=>{var c;return(c=t.error)==null?void 0:c.call(t,s)}}:n={next:U,error:U};let i=typeof r=="function"?{next:s=>{try{let c=r(s);c instanceof Promise&&c.catch(p=>n.next(p))}catch(c){n.next(c)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new w().add(()=>{switch(i.next=U,i.error=U,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return j(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var V=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 w().add(()=>this.subscribers.delete(n))}};var rr=class{constructor(){this.log$=new V;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};import{trace as gs,context as Is}from"@opentelemetry/api";import{TracerAllSpansProcessor as Os,TracerMemorySpanExporter as Pt,initTracerOpenTelemetry as xs}from"@tracer/opentelemetry";var tr=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}},nr=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let u=xs({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),s=new Pt,c=new Pt;this.spanExporter=s,u.addSpanProcessor(new Os({startedSpansExporter:s,endedSpansExporter:c})),this.tracer=u.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=gs.setSpan(Is.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new tr({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 Es(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function ws(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function $(e){return typeof e!="undefined"&&e!==null}function ir(e){return e==null}function Ss(e,r){if(!(e!=null&&e.length))throw new Error(r)}function qs(e,r){if(e!=null&&e.length)throw new Error(r)}var Rs=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),p.remove()});let a=()=>{s(),i("error")},u=()=>{s(),n()},s=()=>{c&&clearTimeout(c),p.removeEventListener("load",u),p.removeEventListener("error",a)},c;t&&(c=window.setTimeout(()=>{s(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",a),p.src=e,document.head.appendChild(p)});var At,Ps=typeof((At=window.performance)==null?void 0:At.now)=="function"?()=>window.performance.now():()=>Date.now();var As=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=(u=s.done)!=null?u:!1,a=s.value}catch(s){await n.throw(s)}return a};var _s=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*a*2-a),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var ar={};Rt(ar,{clear:()=>Ms,get:()=>js,has:()=>ks,isPersistent:()=>Ls,remove:()=>Ns,set:()=>Cs});var O,G,or=`vk-videoplayer-dummy-key-${Math.random()}`,z=()=>{if(G!==void 0)return G;try{localStorage.setItem(or,"test"),localStorage.removeItem(or),G=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(or),G=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)G=2;else throw r}else throw e}return G===2&&(O=new Map),G},Ls=()=>z()===0,js=e=>{var t,n;let r=z();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:j(r)}},Cs=(e,r)=>{let t=z();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:O==null||O.set(e,r);return;default:j(t)}},ks=e=>{var t;let r=z();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 j(r),!1}},Ns=e=>{let r=z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:O==null||O.delete(e);return;default:j(r)}},Ms=()=>{let e=z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:j(e)}};var Mr=te(wi(),1),Zl=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,Mr.default)(r,-1),immediateOrigin:(0,Mr.default)(r,0)}};var Vr=(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))(Vr||{});var q={"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}},ec=(e,r)=>q[e].height>q[r].height,rc=(e,r)=>q[e].height>=q[r].height,Fr=(e,r)=>q[e].height<q[r].height,tc=(e,r)=>q[e].height<=q[r].height,nc=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Fr(r,t)?1:-1)[0],Si=Object.keys(q).sort((e,r)=>Fr(e,r)?-1:1),ic=(e,r=.02)=>[...Si].find(n=>q[n].height*(1+r)>=e),oc=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Si.find(i=>{let a=q[i];return a.width>=n&&a.height>=t})},ac=e=>q[e].height,Dr=e=>e==="Invariant quality",sc=e=>e.every(r=>!Dr(r));function uc(e){if(Dr(e))throw new Error("Expected exact quality")}var lc=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=lc(a,i):t[n]=n in e?a:i}return t};var Ad=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 Ur(e,r=0,t){let n,i,a,u,s,c,p=0,v=!1,l=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,l="maxWait"in t,a=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):a,b="trailing"in t?!!t.trailing:b);function m(T){let R=n,D=i;return n=i=void 0,p=T,u=e.apply(D,R),u}function y(T,R){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(T)):setTimeout(T,R)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function h(T){return p=T,s=y(me,r),v?m(T):u}function g(T){let R=T-c,D=T-p,qt=r-R;return l?Math.min(qt,a-D):qt}function wt(T){let R=T-c,D=T-p;return c===void 0||R>=r||R<0||l&&D>=a}function me(){let T=Date.now();if(wt(T))return St(T);s=y(me,g(T))}function St(T){return s=void 0,b&&n?m(T):(n=i=void 0,u)}function ls(){s!==void 0&&I(s),p=0,n=c=i=s=void 0}function cs(){return s===void 0?u:St(Date.now())}function ps(){return s!==void 0}function ye(...T){let R=Date.now(),D=wt(R);if(n=T,i=this,c=R,D){if(s===void 0)return h(c);if(l)return s=y(me,r),m(c)}return s===void 0&&(s=y(me,r)),u}return ye.cancel=ls,ye.flush=cs,ye.pending=ps,ye}var Gr=(e,r=0,t)=>Ur(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var je=(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]=je(e[n],r):t[n]=e[n]}return t};var cc=e=>je(e);var pc=300,fc=(e,r=pc)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Gr(u=>{let s=u[0];if(!s)return;let c,p;s.contentBoxSize&&s.contentBoxSize[0]?(p=s.contentBoxSize[0].blockSize,c=s.contentBoxSize[0].inlineSize):s.contentRect&&(c=s.contentRect.width,p=s.contentRect.height),$(c)&&$(p)&&t.next({width:c,height:p})},r));return a.observe(e),()=>a.disconnect()});var Ce=(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 a=Ce(e[i],r-1);for(let u in a)a.hasOwnProperty(u)&&(n[i+t+u]=a[u])}else n[i]=e[i];return n};var vc=e=>{e.removeAttribute("src"),e.load()};var Qd=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var Kd=e=>{try{return new URL(e)}catch(r){return null}};var bc=(e,r)=>{let t=0,n=e.length-1;for(;t<=n;){let i=Math.floor((t+n)/2),a=r(e[i]);if(a===0)return i;a<0?t=i+1:n=i-1}return-1};var dc=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Ce(t):{value:t})};var ke=class extends V{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};var ro=te(zr(),1);function to(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>u=>{a in t||n--,t[a]=u,n===0&&r.next(t)};return(0,ro.default)(e).reduce((a,[u,s])=>a.add(s.subscribe(i(u))),new w)})}function no(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new w))}var Yc=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 Hc=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Xc=e=>new f(r=>{e.forEach(t=>r.next(t))});var Jc=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function io(e){return r=>new f(t=>r.subscribe(new Yr(t,e)))}var Yr=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 Zc={leading:!1,trailing:!0};function oo(e,r=Zc){return t=>new f(n=>t.subscribe(new Hr(n,e,r)))}var Hr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,$(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 ep={leading:!0,trailing:!1};function ao(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,ir(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 so(e){return r=>new f(t=>r.subscribe(new Jr(t,e)))}var Jr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var mo=te(bo(),1);var lp=(e,r)=>{let t=(n,i)=>{let a=Object.keys(n);for(let u in i)if(!(0,mo.default)(a,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},cp=(e,r)=>e instanceof Object&&r instanceof Object?lp(e,r):e===r;function yo(e=cp){return r=>new f(t=>r.subscribe(new Zr(t,e)))}var To={},Zr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=To}next(r){let t;try{t=this.lastValue===To||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Fe(e){return r=>new f(t=>r.subscribe(new et(t,e)))}var et=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 ho(e){return Fe(()=>e)}function go(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{var u;t=!0,(u=r.error)==null||u.call(r,a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Io(){return e=>new f(r=>e.subscribe(new rt(r)))}var rt=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 Oo(e){return r=>new f(t=>r.subscribe(new tt(t,e)))}var tt=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 xo(e){return r=>new f(t=>r.subscribe(new nt(t,e)))}var nt=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 pp=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(pp||{});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,a=n.length;i<a;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,a=n.length;i<a;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},re=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)}},pe=class{constructor(){Object.defineProperty(this,"signal",{value:new re,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&&(pe.prototype[Symbol.toStringTag]="AbortController",re.prototype[Symbol.toStringTag]="AbortSignal");function Ue(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 it(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!Ue({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(p,v){let l;v&&v.signal&&(l=v.signal,delete v.signal);let b=new t(p,v);return l&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:l}),b},a.prototype=t.prototype);let u=r;return{fetch:(c,p)=>{let v=a&&a.prototype.isPrototypeOf(c)?c.signal:p?p.signal:void 0;if(v){let l;try{l=new DOMException("Aborted","AbortError")}catch(d){l=new Error("Aborted"),l.name="AbortError"}if(v.aborted)return Promise.reject(l);let b=new Promise((d,m)=>{v.addEventListener("abort",()=>m(l),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([b,u(c,p)])}return u(c,p)},Request:a}}var fe=Ue({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Eo=fe?it({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,wo=fe?Eo.fetch:window.fetch,vy=fe?Eo.Request:window.Request,by=fe?pe:window.AbortController,dy=fe?re:window.AbortSignal;var as=te(zr(),1),ss=te(os(),1),Pv=(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))(Pv||{}),Av="vk.com",Zy=async(e,r,t)=>{let n=new URL(`https://${Av}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=await(await wo(n.toString())).json();return _v(a,t)},_v=(e,r)=>(0,ss.default)((0,as.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Lv(n)])),Lv=e=>Array.isArray(e)?e[0]:e;var jv=(t=>(t.RU="ru",t.EN="en",t))(jv||{});var Cv={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},kv=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),us=class{constructor(r){this.id=kv();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 Cv[r]}};var Et={};Rt(Et,{create:()=>Nv,destroy:()=>Mv,push:()=>Vv,subscribe:()=>Fv});var Te=new Map,Nv=(e,r)=>Te.set(e,r!=null?r:[]),Mv=e=>Te.delete(e),Vv=(e,r)=>{let t=Te.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Fv=(e,r)=>{let t=Te.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Te.set(e,r)}};export{pp as ErrorCategory,jv as InterfaceLanguage,us as InternalsExposure,rr as Logger,f as Observable,V as Subject,w as Subscription,nr as Tracer,ys as VERSION,Pv as VKNumericLanguage,ke as ValueSubject,Vr as VideoQuality,As as abortable,Rs as addScript,sc as areQualitiesExact,qs as assertEmptyArray,j as assertNever,Es as assertNonNullable,Ss as assertNotEmptyArray,ws as assertNullable,uc as assertQualityIsExact,bc as binarySearch,io as buffer,hs as checkNever,vc as clearVideoElement,cc as cloneDeep,je as cloneDeepWith,to as combine,Kd as createURL,oo as debounce,Ur as debounceFn,Zl as detectEmbed,Et as devNull,lc as fillWithDefault,so as filter,yo as filterChanged,Ce as flattenObject,Jc as fromEvent,_s as getExponentialDelay,nc as getHighestQuality,dc as getTraceSubscriptionMethod,Hc as interval,ec as isHigher,rc as isHigherOrEqual,Dr as isInvariantQuality,Fr as isLower,tc as isLowerOrEqual,$ as isNonNullable,ir as isNullable,Qd as isValidURL,Zy as loadVKLangPack,Fe as map,ho as mapTo,no as merge,U as noop,Ps as now,Xc as observableFrom,fc as observeElementSize,go as once,Io as pairwise,ar as safeStorage,xo as skip,Oo as tap,ao as throttle,Gr as throttleFn,Ad as timeCodeToString,Yc as timeout,ic as videoHeightToQuality,ac as videoQualityToHeight,oc as videoSizeToQuality};
|
|
6
|
+
var vs=Object.create;var rr=Object.defineProperty;var bs=Object.getOwnPropertyDescriptor;var ds=Object.getOwnPropertyNames;var Ts=Object.getPrototypeOf,ms=Object.prototype.hasOwnProperty;var o=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Pt=(e,r)=>{for(var t in r)rr(e,t,{get:r[t],enumerable:!0})},ys=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of ds(r))!ms.call(e,i)&&i!==t&&rr(e,i,{get:()=>r[i],enumerable:!(n=bs(r,i))||n.enumerable});return e};var te=(e,r,t)=>(t=e!=null?vs(Ts(e)):{},ys(r||!e||!e.__esModule?rr(t,"default",{value:e,enumerable:!0}):t,e));var E=o((ur,Lt)=>{"use strict";var ne=function(e){return e&&e.Math===Math&&e};Lt.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof global=="object"&&global)||ne(typeof ur=="object"&&ur)||function(){return this}()||Function("return this")()});var S=o((Ib,jt)=>{"use strict";jt.exports=function(e){try{return!!e()}catch(r){return!0}}});var ie=o((Ob,Ct)=>{"use strict";var Fs=S();Ct.exports=!Fs(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Ft=o((xb,Vt)=>{"use strict";var Ds=ie(),Mt=Function.prototype,kt=Mt.apply,Nt=Mt.call;Vt.exports=typeof Reflect=="object"&&Reflect.apply||(Ds?Nt.bind(kt):function(){return Nt.apply(kt,arguments)})});var L=o((Eb,Gt)=>{"use strict";var Dt=ie(),Ut=Function.prototype,lr=Ut.call,Us=Dt&&Ut.bind.bind(lr,lr);Gt.exports=Dt?Us:function(e){return function(){return lr.apply(e,arguments)}}});var he=o((wb,Bt)=>{"use strict";var Qt=L(),Gs=Qt({}.toString),Qs=Qt("".slice);Bt.exports=function(e){return Qs(Gs(e),8,-1)}});var cr=o((Sb,Kt)=>{"use strict";var Bs=he(),Ks=L();Kt.exports=function(e){if(Bs(e)==="Function")return Ks(e)}});var w=o((qb,Wt)=>{"use strict";var pr=typeof document=="object"&&document.all;Wt.exports=typeof pr=="undefined"&&pr!==void 0?function(e){return typeof e=="function"||e===pr}:function(e){return typeof e=="function"}});var P=o((Rb,$t)=>{"use strict";var Ws=S();$t.exports=!Ws(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var F=o((Pb,zt)=>{"use strict";var $s=ie(),ge=Function.prototype.call;zt.exports=$s?ge.bind(ge):function(){return ge.apply(ge,arguments)}});var fr=o(Xt=>{"use strict";var Yt={}.propertyIsEnumerable,Ht=Object.getOwnPropertyDescriptor,zs=Ht&&!Yt.call({1:2},1);Xt.f=zs?function(r){var t=Ht(this,r);return!!t&&t.enumerable}:Yt});var oe=o((_b,Jt)=>{"use strict";Jt.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var en=o((Lb,Zt)=>{"use strict";var Ys=L(),Hs=S(),Xs=he(),vr=Object,Js=Ys("".split);Zt.exports=Hs(function(){return!vr("z").propertyIsEnumerable(0)})?function(e){return Xs(e)==="String"?Js(e,""):vr(e)}:vr});var Ie=o((jb,rn)=>{"use strict";rn.exports=function(e){return e==null}});var Oe=o((Cb,tn)=>{"use strict";var Zs=Ie(),eu=TypeError;tn.exports=function(e){if(Zs(e))throw new eu("Can't call method on "+e);return e}});var Q=o((kb,nn)=>{"use strict";var ru=en(),tu=Oe();nn.exports=function(e){return ru(tu(e))}});var C=o((Nb,on)=>{"use strict";var nu=w();on.exports=function(e){return typeof e=="object"?e!==null:nu(e)}});var ae=o((Mb,an)=>{"use strict";an.exports={}});var xe=o((Vb,un)=>{"use strict";var br=ae(),dr=E(),iu=w(),sn=function(e){return iu(e)?e:void 0};un.exports=function(e,r){return arguments.length<2?sn(br[e])||sn(dr[e]):br[e]&&br[e][r]||dr[e]&&dr[e][r]}});var Tr=o((Fb,ln)=>{"use strict";var ou=L();ln.exports=ou({}.isPrototypeOf)});var vn=o((Db,fn)=>{"use strict";var au=E(),cn=au.navigator,pn=cn&&cn.userAgent;fn.exports=pn?String(pn):""});var gn=o((Ub,hn)=>{"use strict";var yn=E(),mr=vn(),bn=yn.process,dn=yn.Deno,Tn=bn&&bn.versions||dn&&dn.version,mn=Tn&&Tn.v8,A,Ee;mn&&(A=mn.split("."),Ee=A[0]>0&&A[0]<4?1:+(A[0]+A[1]));!Ee&&mr&&(A=mr.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=mr.match(/Chrome\/(\d+)/),A&&(Ee=+A[1])));hn.exports=Ee});var yr=o((Gb,On)=>{"use strict";var In=gn(),su=S(),uu=E(),lu=uu.String;On.exports=!!Object.getOwnPropertySymbols&&!su(function(){var e=Symbol("symbol detection");return!lu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&In&&In<41})});var hr=o((Qb,xn)=>{"use strict";var cu=yr();xn.exports=cu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var gr=o((Bb,En)=>{"use strict";var pu=xe(),fu=w(),vu=Tr(),bu=hr(),du=Object;En.exports=bu?function(e){return typeof e=="symbol"}:function(e){var r=pu("Symbol");return fu(r)&&vu(r.prototype,du(e))}});var we=o((Kb,wn)=>{"use strict";var Tu=String;wn.exports=function(e){try{return Tu(e)}catch(r){return"Object"}}});var se=o((Wb,Sn)=>{"use strict";var mu=w(),yu=we(),hu=TypeError;Sn.exports=function(e){if(mu(e))return e;throw new hu(yu(e)+" is not a function")}});var Se=o(($b,qn)=>{"use strict";var gu=se(),Iu=Ie();qn.exports=function(e,r){var t=e[r];return Iu(t)?void 0:gu(t)}});var Pn=o((zb,Rn)=>{"use strict";var Ir=F(),Or=w(),xr=C(),Ou=TypeError;Rn.exports=function(e,r){var t,n;if(r==="string"&&Or(t=e.toString)&&!xr(n=Ir(t,e))||Or(t=e.valueOf)&&!xr(n=Ir(t,e))||r!=="string"&&Or(t=e.toString)&&!xr(n=Ir(t,e)))return n;throw new Ou("Can't convert object to primitive value")}});var ue=o((Yb,An)=>{"use strict";An.exports=!0});var jn=o((Hb,Ln)=>{"use strict";var _n=E(),xu=Object.defineProperty;Ln.exports=function(e,r){try{xu(_n,e,{value:r,configurable:!0,writable:!0})}catch(t){_n[e]=r}return r}});var qe=o((Xb,Nn)=>{"use strict";var Eu=ue(),wu=E(),Su=jn(),Cn="__core-js_shared__",kn=Nn.exports=wu[Cn]||Su(Cn,{});(kn.versions||(kn.versions=[])).push({version:"3.38.0",mode:Eu?"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 Er=o((Jb,Vn)=>{"use strict";var Mn=qe();Vn.exports=function(e,r){return Mn[e]||(Mn[e]=r||{})}});var Re=o((Zb,Fn)=>{"use strict";var qu=Oe(),Ru=Object;Fn.exports=function(e){return Ru(qu(e))}});var k=o((ed,Dn)=>{"use strict";var Pu=L(),Au=Re(),_u=Pu({}.hasOwnProperty);Dn.exports=Object.hasOwn||function(r,t){return _u(Au(r),t)}});var wr=o((rd,Un)=>{"use strict";var Lu=L(),ju=0,Cu=Math.random(),ku=Lu(1 .toString);Un.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ku(++ju+Cu,36)}});var N=o((td,Qn)=>{"use strict";var Nu=E(),Mu=Er(),Gn=k(),Vu=wr(),Fu=yr(),Du=hr(),Y=Nu.Symbol,Sr=Mu("wks"),Uu=Du?Y.for||Y:Y&&Y.withoutSetter||Vu;Qn.exports=function(e){return Gn(Sr,e)||(Sr[e]=Fu&&Gn(Y,e)?Y[e]:Uu("Symbol."+e)),Sr[e]}});var $n=o((nd,Wn)=>{"use strict";var Gu=F(),Bn=C(),Kn=gr(),Qu=Se(),Bu=Pn(),Ku=N(),Wu=TypeError,$u=Ku("toPrimitive");Wn.exports=function(e,r){if(!Bn(e)||Kn(e))return e;var t=Qu(e,$u),n;if(t){if(r===void 0&&(r="default"),n=Gu(t,e,r),!Bn(n)||Kn(n))return n;throw new Wu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Bu(e,r)}});var qr=o((id,zn)=>{"use strict";var zu=$n(),Yu=gr();zn.exports=function(e){var r=zu(e,"string");return Yu(r)?r:r+""}});var Pr=o((od,Hn)=>{"use strict";var Hu=E(),Yn=C(),Rr=Hu.document,Xu=Yn(Rr)&&Yn(Rr.createElement);Hn.exports=function(e){return Xu?Rr.createElement(e):{}}});var Ar=o((ad,Xn)=>{"use strict";var Ju=P(),Zu=S(),el=Pr();Xn.exports=!Ju&&!Zu(function(){return Object.defineProperty(el("div"),"a",{get:function(){return 7}}).a!==7})});var ei=o(Zn=>{"use strict";var rl=P(),tl=F(),nl=fr(),il=oe(),ol=Q(),al=qr(),sl=k(),ul=Ar(),Jn=Object.getOwnPropertyDescriptor;Zn.f=rl?Jn:function(r,t){if(r=ol(r),t=al(t),ul)try{return Jn(r,t)}catch(n){}if(sl(r,t))return il(!tl(nl.f,r,t),r[t])}});var ti=o((ud,ri)=>{"use strict";var ll=S(),cl=w(),pl=/#|\.prototype\./,le=function(e,r){var t=vl[fl(e)];return t===dl?!0:t===bl?!1:cl(r)?ll(r):!!r},fl=le.normalize=function(e){return String(e).replace(pl,".").toLowerCase()},vl=le.data={},bl=le.NATIVE="N",dl=le.POLYFILL="P";ri.exports=le});var _r=o((ld,ii)=>{"use strict";var ni=cr(),Tl=se(),ml=ie(),yl=ni(ni.bind);ii.exports=function(e,r){return Tl(e),r===void 0?e:ml?yl(e,r):function(){return e.apply(r,arguments)}}});var Lr=o((cd,oi)=>{"use strict";var hl=P(),gl=S();oi.exports=hl&&gl(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var B=o((pd,ai)=>{"use strict";var Il=C(),Ol=String,xl=TypeError;ai.exports=function(e){if(Il(e))return e;throw new xl(Ol(e)+" is not an object")}});var H=o(ui=>{"use strict";var El=P(),wl=Ar(),Sl=Lr(),Pe=B(),si=qr(),ql=TypeError,jr=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,Cr="enumerable",kr="configurable",Nr="writable";ui.f=El?Sl?function(r,t,n){if(Pe(r),t=si(t),Pe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Nr in n&&!n[Nr]){var i=Rl(r,t);i&&i[Nr]&&(r[t]=n.value,n={configurable:kr in n?n[kr]:i[kr],enumerable:Cr in n?n[Cr]:i[Cr],writable:!1})}return jr(r,t,n)}:jr:function(r,t,n){if(Pe(r),t=si(t),Pe(n),wl)try{return jr(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new ql("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var X=o((vd,li)=>{"use strict";var Pl=P(),Al=H(),_l=oe();li.exports=Pl?function(e,r,t){return Al.f(e,r,_l(1,t))}:function(e,r,t){return e[r]=t,e}});var ee=o((bd,pi)=>{"use strict";var ce=E(),Ll=Ft(),jl=cr(),Cl=w(),kl=ei().f,Nl=ti(),J=ae(),Ml=_r(),Z=X(),ci=k();qe();var Vl=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 Ll(e,this,arguments)};return r.prototype=e.prototype,r};pi.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a=e.proto,u=n?ce:i?ce[t]:ce[t]&&ce[t].prototype,s=n?J:J[t]||Z(J,t,{})[t],c=s.prototype,p,v,l,b,d,m,y,I,h;for(b in r)p=Nl(n?b:t+(i?".":"#")+b,e.forced),v=!p&&u&&ci(u,b),m=s[b],v&&(e.dontCallGetSet?(h=kl(u,b),y=h&&h.value):y=u[b]),d=v&&y?y:r[b],!(!p&&!a&&typeof m==typeof d)&&(e.bind&&v?I=Ml(d,ce):e.wrap&&v?I=Vl(d):a&&Cl(d)?I=jl(d):I=d,(e.sham||d&&d.sham||m&&m.sham)&&Z(I,"sham",!0),Z(s,b,I),a&&(l=t+"Prototype",ci(J,l)||Z(J,l,{}),Z(J[l],b,d),e.real&&c&&(p||!c[b])&&Z(c,b,d)))}});var vi=o((dd,fi)=>{"use strict";var Fl=Math.ceil,Dl=Math.floor;fi.exports=Math.trunc||function(r){var t=+r;return(t>0?Dl:Fl)(t)}});var Ae=o((Td,bi)=>{"use strict";var Ul=vi();bi.exports=function(e){var r=+e;return r!==r||r===0?0:Ul(r)}});var Ti=o((md,di)=>{"use strict";var Gl=Ae(),Ql=Math.min;di.exports=function(e){var r=Gl(e);return r>0?Ql(r,9007199254740991):0}});var _e=o((yd,mi)=>{"use strict";var Bl=Ti();mi.exports=function(e){return Bl(e.length)}});var Le=o((hd,yi)=>{"use strict";yi.exports=function(){}});var hi=o(()=>{"use strict";var Kl=ee(),Wl=Re(),$l=_e(),zl=Ae(),Yl=Le();Kl({target:"Array",proto:!0},{at:function(r){var t=Wl(this),n=$l(t),i=zl(r),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}});Yl("at")});var Mr=o((Od,gi)=>{"use strict";var Hl=xe();gi.exports=Hl});var Oi=o((xd,Ii)=>{"use strict";hi();var Xl=Mr();Ii.exports=Xl("Array","at")});var Ei=o((Ed,xi)=>{"use strict";var Jl=Oi();xi.exports=Jl});var Si=o((wd,wi)=>{"use strict";var Zl=Ei();wi.exports=Zl});var Ne=o((jT,Pi)=>{"use strict";var mc=Er(),yc=wr(),Ri=mc("keys");Pi.exports=function(e){return Ri[e]||(Ri[e]=yc(e))}});var _i=o((CT,Ai)=>{"use strict";var hc=S();Ai.exports=!hc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Me=o((kT,ji)=>{"use strict";var gc=k(),Ic=w(),Oc=Re(),xc=Ne(),Ec=_i(),Li=xc("IE_PROTO"),Br=Object,wc=Br.prototype;ji.exports=Ec?Br.getPrototypeOf:function(e){var r=Oc(e);if(gc(r,Li))return r[Li];var t=r.constructor;return Ic(t)&&r instanceof t?t.prototype:r instanceof Br?wc:null}});var ki=o((NT,Ci)=>{"use strict";var Sc=Ae(),qc=Math.max,Rc=Math.min;Ci.exports=function(e,r){var t=Sc(e);return t<0?qc(t+r,0):Rc(t,r)}});var Kr=o((MT,Mi)=>{"use strict";var Pc=Q(),Ac=ki(),_c=_e(),Ni=function(e){return function(r,t,n){var i=Pc(r),a=_c(i);if(a===0)return!e&&-1;var u=Ac(n,a),s;if(e&&t!==t){for(;a>u;)if(s=i[u++],s!==s)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===t)return e||u||0;return!e&&-1}};Mi.exports={includes:Ni(!0),indexOf:Ni(!1)}});var Ve=o((VT,Vi)=>{"use strict";Vi.exports={}});var Ui=o((FT,Di)=>{"use strict";var Lc=L(),Wr=k(),jc=Q(),Cc=Kr().indexOf,kc=Ve(),Fi=Lc([].push);Di.exports=function(e,r){var t=jc(e),n=0,i=[],a;for(a in t)!Wr(kc,a)&&Wr(t,a)&&Fi(i,a);for(;r.length>n;)Wr(t,a=r[n++])&&(~Cc(i,a)||Fi(i,a));return i}});var $r=o((DT,Gi)=>{"use strict";Gi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var zr=o((UT,Qi)=>{"use strict";var Nc=Ui(),Mc=$r();Qi.exports=Object.keys||function(r){return Nc(r,Mc)}});var Yi=o((GT,zi)=>{"use strict";var Ki=P(),Vc=S(),Wi=L(),Fc=Me(),Dc=zr(),Uc=Q(),Gc=fr().f,$i=Wi(Gc),Qc=Wi([].push),Bc=Ki&&Vc(function(){var e=Object.create(null);return e[2]=2,!$i(e,2)}),Bi=function(e){return function(r){for(var t=Uc(r),n=Dc(t),i=Bc&&Fc(t)===null,a=n.length,u=0,s=[],c;a>u;)c=n[u++],(!Ki||(i?c in t:$i(t,c)))&&Qc(s,e?[c,t[c]]:t[c]);return s}};zi.exports={entries:Bi(!0),values:Bi(!1)}});var Hi=o(()=>{"use strict";var Kc=ee(),Wc=Yi().entries;Kc({target:"Object",stat:!0},{entries:function(r){return Wc(r)}})});var Ji=o((KT,Xi)=>{"use strict";Hi();var $c=ae();Xi.exports=$c.Object.entries});var eo=o((WT,Zi)=>{"use strict";var zc=Ji();Zi.exports=zc});var Yr=o(($T,ro)=>{"use strict";var Yc=eo();ro.exports=Yc});var lo=o(()=>{"use strict";var tp=ee(),np=Kr().includes,ip=S(),op=Le(),ap=ip(function(){return!Array(1).includes()});tp({target:"Array",proto:!0,forced:ap},{includes:function(r){return np(this,r,arguments.length>1?arguments[1]:void 0)}});op("includes")});var po=o((Om,co)=>{"use strict";lo();var sp=Mr();co.exports=sp("Array","includes")});var vo=o((xm,fo)=>{"use strict";var up=po();fo.exports=up});var To=o((Em,bo)=>{"use strict";var lp=vo();bo.exports=lp});var K=o((Iy,qo)=>{"use strict";qo.exports={}});var Ao=o((Oy,Po)=>{"use strict";var vp=E(),bp=w(),Ro=vp.WeakMap;Po.exports=bp(Ro)&&/native code/.test(String(Ro))});var Co=o((xy,jo)=>{"use strict";var dp=Ao(),Lo=E(),Tp=C(),mp=X(),at=k(),st=qe(),yp=Ne(),hp=Ve(),_o="Object already initialized",ut=Lo.TypeError,gp=Lo.WeakMap,Qe,ve,Be,Ip=function(e){return Be(e)?ve(e):Qe(e,{})},Op=function(e){return function(r){var t;if(!Tp(r)||(t=ve(r)).type!==e)throw new ut("Incompatible receiver, "+e+" required");return t}};dp||st.state?(_=st.state||(st.state=new gp),_.get=_.get,_.has=_.has,_.set=_.set,Qe=function(e,r){if(_.has(e))throw new ut(_o);return r.facade=e,_.set(e,r),r},ve=function(e){return _.get(e)||{}},Be=function(e){return _.has(e)}):(W=yp("state"),hp[W]=!0,Qe=function(e,r){if(at(e,W))throw new ut(_o);return r.facade=e,mp(e,W,r),r},ve=function(e){return at(e,W)?e[W]:{}},Be=function(e){return at(e,W)});var _,W;jo.exports={set:Qe,get:ve,has:Be,enforce:Ip,getterFor:Op}});var Mo=o((Ey,No)=>{"use strict";var lt=P(),xp=k(),ko=Function.prototype,Ep=lt&&Object.getOwnPropertyDescriptor,ct=xp(ko,"name"),wp=ct&&function(){}.name==="something",Sp=ct&&(!lt||lt&&Ep(ko,"name").configurable);No.exports={EXISTS:ct,PROPER:wp,CONFIGURABLE:Sp}});var Fo=o(Vo=>{"use strict";var qp=P(),Rp=Lr(),Pp=H(),Ap=B(),_p=Q(),Lp=zr();Vo.f=qp&&!Rp?Object.defineProperties:function(r,t){Ap(r);for(var n=_p(t),i=Lp(t),a=i.length,u=0,s;a>u;)Pp.f(r,s=i[u++],n[s]);return r}});var Uo=o((Sy,Do)=>{"use strict";var jp=xe();Do.exports=jp("document","documentElement")});var bt=o((qy,zo)=>{"use strict";var Cp=B(),kp=Fo(),Go=$r(),Np=Ve(),Mp=Uo(),Vp=Pr(),Fp=Ne(),Qo=">",Bo="<",ft="prototype",vt="script",Wo=Fp("IE_PROTO"),pt=function(){},$o=function(e){return Bo+vt+Qo+e+Bo+"/"+vt+Qo},Ko=function(e){e.write($o("")),e.close();var r=e.parentWindow.Object;return e=null,r},Dp=function(){var e=Vp("iframe"),r="java"+vt+":",t;return e.style.display="none",Mp.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write($o("document.F=Object")),t.close(),t.F},Ke,We=function(){try{Ke=new ActiveXObject("htmlfile")}catch(r){}We=typeof document!="undefined"?document.domain&&Ke?Ko(Ke):Dp():Ko(Ke);for(var e=Go.length;e--;)delete We[ft][Go[e]];return We()};Np[Wo]=!0;zo.exports=Object.create||function(r,t){var n;return r!==null?(pt[ft]=Cp(r),n=new pt,pt[ft]=null,n[Wo]=r):n=We(),t===void 0?n:kp.f(n,t)}});var dt=o((Ry,Yo)=>{"use strict";var Up=X();Yo.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Up(e,r,t),e}});var ht=o((Py,Jo)=>{"use strict";var Gp=S(),Qp=w(),Bp=C(),Kp=bt(),Ho=Me(),Wp=dt(),$p=N(),zp=ue(),yt=$p("iterator"),Xo=!1,M,Tt,mt;[].keys&&(mt=[].keys(),"next"in mt?(Tt=Ho(Ho(mt)),Tt!==Object.prototype&&(M=Tt)):Xo=!0);var Yp=!Bp(M)||Gp(function(){var e={};return M[yt].call(e)!==e});Yp?M={}:zp&&(M=Kp(M));Qp(M[yt])||Wp(M,yt,function(){return this});Jo.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:Xo}});var $e=o((Ay,ea)=>{"use strict";var Hp=N(),Xp=Hp("toStringTag"),Zo={};Zo[Xp]="z";ea.exports=String(Zo)==="[object z]"});var gt=o((_y,ra)=>{"use strict";var Jp=$e(),Zp=w(),ze=he(),ef=N(),rf=ef("toStringTag"),tf=Object,nf=ze(function(){return arguments}())==="Arguments",of=function(e,r){try{return e[r]}catch(t){}};ra.exports=Jp?ze:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=of(r=tf(e),rf))=="string"?t:nf?ze(r):(n=ze(r))==="Object"&&Zp(r.callee)?"Arguments":n}});var na=o((Ly,ta)=>{"use strict";var af=$e(),sf=gt();ta.exports=af?{}.toString:function(){return"[object "+sf(this)+"]"}});var Ye=o((jy,oa)=>{"use strict";var uf=$e(),lf=H().f,cf=X(),pf=k(),ff=na(),vf=N(),ia=vf("toStringTag");oa.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(pf(i,ia)||lf(i,ia,{configurable:!0,value:r}),n&&!uf&&cf(i,"toString",ff))}});var sa=o((Cy,aa)=>{"use strict";var bf=ht().IteratorPrototype,df=bt(),Tf=oe(),mf=Ye(),yf=K(),hf=function(){return this};aa.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=df(bf,{next:Tf(+!n,t)}),mf(e,i,!1,!0),yf[i]=hf,e}});var la=o((ky,ua)=>{"use strict";var gf=L(),If=se();ua.exports=function(e,r,t){try{return gf(If(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var pa=o((Ny,ca)=>{"use strict";var Of=C();ca.exports=function(e){return Of(e)||e===null}});var va=o((My,fa)=>{"use strict";var xf=pa(),Ef=String,wf=TypeError;fa.exports=function(e){if(xf(e))return e;throw new wf("Can't set "+Ef(e)+" as a prototype")}});var da=o((Vy,ba)=>{"use strict";var Sf=la(),qf=C(),Rf=Oe(),Pf=va();ba.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Sf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,a){return Rf(i),Pf(a),qf(i)&&(e?t(i,a):i.__proto__=a),i}}():void 0)});var Sa=o((Fy,wa)=>{"use strict";var Af=ee(),_f=F(),He=ue(),xa=Mo(),Lf=w(),jf=sa(),Ta=Me(),ma=da(),Cf=Ye(),kf=X(),It=dt(),Nf=N(),ya=K(),Ea=ht(),Mf=xa.PROPER,Vf=xa.CONFIGURABLE,ha=Ea.IteratorPrototype,Xe=Ea.BUGGY_SAFARI_ITERATORS,be=Nf("iterator"),ga="keys",de="values",Ia="entries",Oa=function(){return this};wa.exports=function(e,r,t,n,i,a,u){jf(t,r,n);var s=function(h){if(h===i&&b)return b;if(!Xe&&h&&h in v)return v[h];switch(h){case ga:return function(){return new t(this,h)};case de:return function(){return new t(this,h)};case Ia:return function(){return new t(this,h)}}return function(){return new t(this)}},c=r+" Iterator",p=!1,v=e.prototype,l=v[be]||v["@@iterator"]||i&&v[i],b=!Xe&&l||s(i),d=r==="Array"&&v.entries||l,m,y,I;if(d&&(m=Ta(d.call(new e)),m!==Object.prototype&&m.next&&(!He&&Ta(m)!==ha&&(ma?ma(m,ha):Lf(m[be])||It(m,be,Oa)),Cf(m,c,!0,!0),He&&(ya[c]=Oa))),Mf&&i===de&&l&&l.name!==de&&(!He&&Vf?kf(v,"name",de):(p=!0,b=function(){return _f(l,this)})),i)if(y={values:s(de),keys:a?b:s(ga),entries:s(Ia)},u)for(I in y)(Xe||p||!(I in v))&&It(v,I,y[I]);else Af({target:r,proto:!0,forced:Xe||p},y);return(!He||u)&&v[be]!==b&&It(v,be,b,{name:i}),ya[r]=b,y}});var Ra=o((Dy,qa)=>{"use strict";qa.exports=function(e,r){return{value:e,done:r}}});var xt=o((Uy,ja)=>{"use strict";var Ff=Q(),Ot=Le(),Pa=K(),_a=Co(),Df=H().f,Uf=Sa(),Je=Ra(),Gf=ue(),Qf=P(),La="Array Iterator",Bf=_a.set,Kf=_a.getterFor(La);ja.exports=Uf(Array,"Array",function(e,r){Bf(this,{type:La,target:Ff(e),index:0,kind:r})},function(){var e=Kf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,Je(void 0,!0);switch(e.kind){case"keys":return Je(t,!1);case"values":return Je(r[t],!1)}return Je([t,r[t]],!1)},"values");var Aa=Pa.Arguments=Pa.Array;Ot("keys");Ot("values");Ot("entries");if(!Gf&&Qf&&Aa.name!=="values")try{Df(Aa,"name",{value:"values"})}catch(e){}});var ka=o((Gy,Ca)=>{"use strict";var Wf=N(),$f=K(),zf=Wf("iterator"),Yf=Array.prototype;Ca.exports=function(e){return e!==void 0&&($f.Array===e||Yf[zf]===e)}});var Et=o((Qy,Ma)=>{"use strict";var Hf=gt(),Na=Se(),Xf=Ie(),Jf=K(),Zf=N(),ev=Zf("iterator");Ma.exports=function(e){if(!Xf(e))return Na(e,ev)||Na(e,"@@iterator")||Jf[Hf(e)]}});var Fa=o((By,Va)=>{"use strict";var rv=F(),tv=se(),nv=B(),iv=we(),ov=Et(),av=TypeError;Va.exports=function(e,r){var t=arguments.length<2?ov(e):r;if(tv(t))return nv(rv(t,e));throw new av(iv(e)+" is not iterable")}});var Ga=o((Ky,Ua)=>{"use strict";var sv=F(),Da=B(),uv=Se();Ua.exports=function(e,r,t){var n,i;Da(e);try{if(n=uv(e,"return"),!n){if(r==="throw")throw t;return t}n=sv(n,e)}catch(a){i=!0,n=a}if(r==="throw")throw t;if(i)throw n;return Da(n),t}});var $a=o((Wy,Wa)=>{"use strict";var lv=_r(),cv=F(),pv=B(),fv=we(),vv=ka(),bv=_e(),Qa=Tr(),dv=Fa(),Tv=Et(),Ba=Ga(),mv=TypeError,Ze=function(e,r){this.stopped=e,this.result=r},Ka=Ze.prototype;Wa.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),c=lv(r,n),p,v,l,b,d,m,y,I=function(g){return p&&Ba(p,"normal",g),new Ze(!0,g)},h=function(g){return i?(pv(g),s?c(g[0],g[1],I):c(g[0],g[1])):s?c(g,I):c(g)};if(a)p=e.iterator;else if(u)p=e;else{if(v=Tv(e),!v)throw new mv(fv(e)+" is not iterable");if(vv(v)){for(l=0,b=bv(e);b>l;l++)if(d=h(e[l]),d&&Qa(Ka,d))return d;return new Ze(!1)}p=dv(e,v)}for(m=a?e.next:p.next;!(y=cv(m,p)).done;){try{d=h(y.value)}catch(g){Ba(p,"throw",g)}if(typeof d=="object"&&d&&Qa(Ka,d))return d}return new Ze(!1)}});var Ya=o(($y,za)=>{"use strict";var yv=P(),hv=H(),gv=oe();za.exports=function(e,r,t){yv?hv.f(e,r,gv(0,t)):e[r]=t}});var Ha=o(()=>{"use strict";var Iv=ee(),Ov=$a(),xv=Ya();Iv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Ov(r,function(n,i){xv(t,n,i)},{AS_ENTRIES:!0}),t}})});var Ja=o((Hy,Xa)=>{"use strict";xt();Ha();var Ev=ae();Xa.exports=Ev.Object.fromEntries});var es=o((Xy,Za)=>{"use strict";Za.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 ts=o(()=>{"use strict";xt();var wv=es(),Sv=E(),qv=Ye(),rs=K();for(er in wv)qv(Sv[er],er),rs[er]=rs.Array;var er});var is=o((eh,ns)=>{"use strict";var Rv=Ja();ts();ns.exports=Rv});var as=o((rh,os)=>{"use strict";var Pv=is();os.exports=Pv});var hs="1.0.58-dev.ef87de0a.0";var x=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>{typeof t=="function"?t():t.unsubscribe()})}add(r){return this.subscriptions.push(r),this}};var j=e=>{throw new Error(`${e} is value of unexpected type`)},gs=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:s=>t.next(s),error:s=>{var c;return(c=t.error)==null?void 0:c.call(t,s)}}:n={next:U,error:U};let i=typeof r=="function"?{next:s=>{try{let c=r(s);c instanceof Promise&&c.catch(p=>n.next(p))}catch(c){n.next(c)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(i)}catch(s){(u=i.error)==null||u.call(i,s)}return new x().add(()=>{switch(i.next=U,i.error=U,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return j(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var V=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 tr=class{constructor(){this.log$=new V;this.logs=[];this.log=r=>{let t={...r,timestamp:Date.now()};this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>({component:r,...t}))}};import{trace as Is,context as Os}from"@opentelemetry/api";import{TracerAllSpansProcessor as xs,TracerMemorySpanExporter as At,initTracerOpenTelemetry as Es}from"@tracer/opentelemetry";var nr=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}},ir=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let i=!n;if(i){let u=Es({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),s=new At,c=new At;this.spanExporter=s,u.addSpanProcessor(new xs({startedSpansExporter:s,endedSpansExporter:c})),this.tracer=u.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:i},t),this.context=Is.setSpan(Os.active(),this.span)}log(r,t){this.span.addEvent(r,{...t,type:"log"})}error(r,t){this.span.addEvent(r,{...t,type:"error"})}critical(r,t){this.span.addEvent(r,{...t,type:"critical"})}static createRootTracer(r=!1){return r?new e({name:"Root"}):new nr({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 ws(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ss(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function $(e){return typeof e!="undefined"&&e!==null}function or(e){return e==null}function qs(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Rs(e,r){if(e!=null&&e.length)throw new Error(r)}var Ps=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),p.remove()});let a=()=>{s(),i("error")},u=()=>{s(),n()},s=()=>{c&&clearTimeout(c),p.removeEventListener("load",u),p.removeEventListener("error",a)},c;t&&(c=window.setTimeout(()=>{s(),i("timeout")},t));let p=document.createElement("script");p.addEventListener("load",u),p.addEventListener("error",a),p.src=e,document.head.appendChild(p)});var _t,As=typeof((_t=window.performance)==null?void 0:_t.now)=="function"?()=>window.performance.now():()=>Date.now();var _s=(e,r)=>async(...t)=>{var u;let n=r(...t),i=e.aborted,a;for(;!i&&!e.aborted;)try{let s=await n.next(a);i=(u=s.done)!=null?u:!1,a=s.value}catch(s){await n.throw(s)}return a};var Ls=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:a=0}={})=>{let u=r;return u*=t**e,u*=1+(Math.random()*a*2-a),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,i),u};var sr={};Pt(sr,{clear:()=>Vs,get:()=>Cs,has:()=>Ns,isPersistent:()=>js,remove:()=>Ms,set:()=>ks});var O,G,ar=`vk-videoplayer-dummy-key-${Math.random()}`,z=()=>{if(G!==void 0)return G;try{localStorage.setItem(ar,"test"),localStorage.removeItem(ar),G=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(ar),G=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)G=2;else throw r}else throw e}return G===2&&(O=new Map),G},js=()=>z()===0,Cs=e=>{var t,n;let r=z();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:j(r)}},ks=(e,r)=>{let t=z();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:O==null||O.set(e,r);return;default:j(t)}},Ns=e=>{var t;let r=z();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 j(r),!1}},Ms=e=>{let r=z();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:O==null||O.delete(e);return;default:j(r)}},Vs=()=>{let e=z();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:j(e)}};var Vr=te(Si(),1),ec=()=>{let e,r=[];try{e=window.self!==window.top}catch(t){t instanceof DOMException&&t.name==="SecurityError"?e=!0:(e=!1,console.error(t))}try{window.location.ancestorOrigins&&(r=[...window.location.ancestorOrigins])}catch(t){console.error(t)}try{!r.length&&document.referrer&&(r=[new URL(document.referrer).origin])}catch(t){console.error(t)}return{isEmbed:e,origins:r,topOrigin:(0,Vr.default)(r,-1),immediateOrigin:(0,Vr.default)(r,0)}};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 q={"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}},rc=(e,r)=>q[e].height>q[r].height,tc=(e,r)=>q[e].height>=q[r].height,Dr=(e,r)=>q[e].height<q[r].height,nc=(e,r)=>q[e].height<=q[r].height,ic=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Dr(r,t)?1:-1)[0],qi=Object.keys(q).sort((e,r)=>Dr(e,r)?-1:1),oc=(e,r=.02)=>[...qi].find(n=>q[n].height*(1+r)>=e),ac=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return qi.find(i=>{let a=q[i];return a.width>=n&&a.height>=t})},sc=e=>q[e].height,Ur=e=>e==="Invariant quality",uc=e=>e.every(r=>!Ur(r));function lc(e){if(Ur(e))throw new Error("Expected exact quality")}var cc=(e,r)=>{let t={};for(let n of Object.keys(r)){let i=r[n],a=e[n];Array.isArray(i)&&Array.isArray(a)?t[n]=a:typeof i=="object"&&typeof a=="object"?t[n]=cc(a,i):t[n]=n in e?a:i}return t};var _d=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 Gr(e,r=0,t){let n,i,a,u,s,c,p=0,v=!1,l=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(v=!!t.leading,l="maxWait"in t,a=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):a,b="trailing"in t?!!t.trailing:b);function m(T){let R=n,D=i;return n=i=void 0,p=T,u=e.apply(D,R),u}function y(T,R){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(T)):setTimeout(T,R)}function I(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function h(T){return p=T,s=y(me,r),v?m(T):u}function g(T){let R=T-c,D=T-p,Rt=r-R;return l?Math.min(Rt,a-D):Rt}function St(T){let R=T-c,D=T-p;return c===void 0||R>=r||R<0||l&&D>=a}function me(){let T=Date.now();if(St(T))return qt(T);s=y(me,g(T))}function qt(T){return s=void 0,b&&n?m(T):(n=i=void 0,u)}function cs(){s!==void 0&&I(s),p=0,n=c=i=s=void 0}function ps(){return s===void 0?u:qt(Date.now())}function fs(){return s!==void 0}function ye(...T){let R=Date.now(),D=St(R);if(n=T,i=this,c=R,D){if(s===void 0)return h(c);if(l)return s=y(me,r),m(c)}return s===void 0&&(s=y(me,r)),u}return ye.cancel=cs,ye.flush=ps,ye.pending=fs,ye}var Qr=(e,r=0,t)=>Gr(e,r,{...{leading:!0,trailing:!0},...t,maxWait:r});var je=(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]=je(e[n],r):t[n]=e[n]}return t};var pc=e=>je(e);var fc=300,vc=(e,r=fc)=>new f(t=>{let{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;let a=new ResizeObserver(Qr(u=>{let s=u[0];if(!s)return;let c,p;s.contentBoxSize&&s.contentBoxSize[0]?(p=s.contentBoxSize[0].blockSize,c=s.contentBoxSize[0].inlineSize):s.contentRect&&(c=s.contentRect.width,p=s.contentRect.height),$(c)&&$(p)&&t.next({width:c,height:p})},r));return a.observe(e),()=>a.disconnect()});var Ce=(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 a=Ce(e[i],r-1);for(let u in a)a.hasOwnProperty(u)&&(n[i+t+u]=a[u])}else n[i]=e[i];return n};var bc=e=>{e.removeAttribute("src"),e.load()};var Bd=e=>{let r;try{r=new URL(e)}catch(t){return!1}return r.protocol==="https:"};var Wd=e=>{try{return new URL(e)}catch(r){return null}};var dc=(e,r)=>{let t=0,n=e.length-1;for(;t<=n;){let i=Math.floor((t+n)/2),a=r(e[i]);if(a===0)return i;a<0?t=i+1:n=i-1}return-1};var Tc=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Ce(t):{value:t})};var ke=class extends V{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};var to=te(Yr(),1);function no(e){return new f(r=>{let t={},n=Object.keys(e).length,i=a=>u=>{a in t||n--,t[a]=u,n===0&&r.next(t)};return(0,to.default)(e).reduce((a,[u,s])=>a.add(s.subscribe(i(u))),new x)})}function io(...e){return new f(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new x))}var Hc=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 Xc=e=>new f(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Jc=e=>new f(r=>{e.forEach(t=>r.next(t))});var Zc=(e,r)=>new f(t=>{let n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});var Fe=class extends x{remove(r){this.subscriptions=this.subscriptions.filter(t=>t!==r)}};function oo(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 ao(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,$(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 so(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,or(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 uo(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)}};var yo=te(To(),1);var cp=(e,r)=>{let t=(n,i)=>{let a=Object.keys(n);for(let u in i)if(!(0,yo.default)(a,u)||i[u]!==n[u])return!1;return!0};return t(e,r)&&t(r,e)},pp=(e,r)=>e instanceof Object&&r instanceof Object?cp(e,r):e===r;function ho(e=pp){return r=>new f(t=>r.subscribe(new et(t,e)))}var mo={},et=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=mo}next(r){let t;try{t=this.lastValue===mo||!this.predicate(this.lastValue,r),this.lastValue=r instanceof Object?{...r}:r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function De(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 go(e){return De(()=>e)}function Io(){return e=>new f(r=>{let t=!1,n=!1,i=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&i.unsubscribe()},a=>{var u;t=!0,(u=r.error)==null||u.call(r,a),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Oo(){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 xo(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 Eo(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 fp=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(fp||{});var Ue=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let i=0,a=n.length;i<a;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let i=0,a=n.length;i<a;i++){let u=n[i];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},re=class extends Ue{constructor(){super(),this.listeners||Ue.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)}},pe=class{constructor(){Object.defineProperty(this,"signal",{value:new re,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&&(pe.prototype[Symbol.toStringTag]="AbortController",re.prototype[Symbol.toStringTag]="AbortSignal");function Ge(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(!Ge({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||i)&&(a=function(p,v){let l;v&&v.signal&&(l=v.signal,delete v.signal);let b=new t(p,v);return l&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:l}),b},a.prototype=t.prototype);let u=r;return{fetch:(c,p)=>{let v=a&&a.prototype.isPrototypeOf(c)?c.signal:p?p.signal:void 0;if(v){let l;try{l=new DOMException("Aborted","AbortError")}catch(d){l=new Error("Aborted"),l.name="AbortError"}if(v.aborted)return Promise.reject(l);let b=new Promise((d,m)=>{v.addEventListener("abort",()=>m(l),{once:!0})});return p&&p.signal&&delete p.signal,Promise.race([b,u(c,p)])}return u(c,p)},Request:a}}var fe=Ge({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),wo=fe?ot({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,So=fe?wo.fetch:window.fetch,my=fe?wo.Request:window.Request,yy=fe?pe:window.AbortController,hy=fe?re:window.AbortSignal;var ss=te(Yr(),1),us=te(as(),1),Av=(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))(Av||{}),_v="vk.com",nh=async(e,r,t)=>{let n=new URL(`https://${_v}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=await(await So(n.toString())).json();return Lv(a,t)},Lv=(e,r)=>(0,us.default)((0,ss.default)(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),jv(n)])),jv=e=>Array.isArray(e)?e[0]:e;var Cv=(t=>(t.RU="ru",t.EN="en",t))(Cv||{});var kv={UI:"__vkVideoPlayer",CORE:"__vkVideoCore"},Nv=(()=>{let e=0;return()=>{let r=e;return e=(e+1)%Number.MAX_SAFE_INTEGER,r}})(),ls=class{constructor(r){this.id=Nv();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 kv[r]}};var wt={};Pt(wt,{create:()=>Mv,destroy:()=>Vv,push:()=>Fv,subscribe:()=>Dv});var Te=new Map,Mv=(e,r)=>Te.set(e,r!=null?r:[]),Vv=e=>Te.delete(e),Fv=(e,r)=>{let t=Te.get(e);t&&(typeof t=="function"?t(r):t.push(r))},Dv=(e,r)=>{let t=Te.get(e);if(t){if(t&&Array.isArray(t))for(let n of t)r(n);Te.set(e,r)}};export{fp as ErrorCategory,Cv as InterfaceLanguage,ls as InternalsExposure,tr as Logger,f as Observable,V as Subject,x as Subscription,Fe as SubscriptionRemovable,ir as Tracer,hs as VERSION,Av as VKNumericLanguage,ke as ValueSubject,Fr as VideoQuality,_s as abortable,Ps as addScript,uc as areQualitiesExact,Rs as assertEmptyArray,j as assertNever,ws as assertNonNullable,qs as assertNotEmptyArray,Ss as assertNullable,lc as assertQualityIsExact,dc as binarySearch,oo as buffer,gs as checkNever,bc as clearVideoElement,pc as cloneDeep,je as cloneDeepWith,no as combine,Wd as createURL,ao as debounce,Gr as debounceFn,ec as detectEmbed,wt as devNull,cc as fillWithDefault,uo as filter,ho as filterChanged,Ce as flattenObject,Zc as fromEvent,Ls as getExponentialDelay,ic as getHighestQuality,Tc as getTraceSubscriptionMethod,Xc as interval,rc as isHigher,tc as isHigherOrEqual,Ur as isInvariantQuality,Dr as isLower,nc as isLowerOrEqual,$ as isNonNullable,or as isNullable,Bd as isValidURL,nh as loadVKLangPack,De as map,go as mapTo,io as merge,U as noop,As as now,Jc as observableFrom,vc as observeElementSize,Io as once,Oo as pairwise,sr as safeStorage,Eo as skip,xo as tap,so as throttle,Qr as throttleFn,_d as timeCodeToString,Hc as timeout,oc as videoHeightToQuality,sc as videoQualityToHeight,ac as videoSizeToQuality};
|