@vkontakte/videoplayer-shared 1.0.52-dev.7c065070.0 → 1.0.52-dev.efc0bd7d.0

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