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