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