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