@vkontakte/videoplayer-shared 1.0.40-dev.e44f3731.0 → 1.0.40-dev.ebad2f59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +3 -3
- package/es2015.esm.js +3 -3
- package/es2018.cjs.js +3 -3
- package/es2018.esm.js +3 -3
- package/esnext.cjs.js +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +2 -1
- package/types/types/index.d.ts +3 -0
package/es2015.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-shared v1.0.40-dev.
|
|
3
|
-
* Mon, 02 Sep 2024
|
|
2
|
+
* @vkontakte/videoplayer-shared v1.0.40-dev.ebad2f59.0
|
|
3
|
+
* Mon, 02 Sep 2024 11:17:58 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-40/doc/
|
|
5
5
|
*/
|
|
6
|
-
var Os=Object.create;var Pe=Object.defineProperty,Ss=Object.defineProperties,ws=Object.getOwnPropertyDescriptor,Es=Object.getOwnPropertyDescriptors,_s=Object.getOwnPropertyNames,$t=Object.getOwnPropertySymbols,Rs=Object.getPrototypeOf,zt=Object.prototype.hasOwnProperty,Ps=Object.prototype.propertyIsEnumerable;var Ht=Math.pow,Yt=(e,r,t)=>r in e?Pe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,A=(e,r)=>{for(var t in r||(r={}))zt.call(r,t)&&Yt(e,t,r[t]);if($t)for(var t of $t(r))Ps.call(r,t)&&Yt(e,t,r[t]);return e},B=(e,r)=>Ss(e,Es(r));var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),qs=(e,r)=>{for(var t in r)Pe(e,t,{get:r[t],enumerable:!0})},As=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of _s(r))!zt.call(e,o)&&o!==t&&Pe(e,o,{get:()=>r[o],enumerable:!(n=ws(r,o))||n.enumerable});return e};var Cs=(e,r,t)=>(t=e!=null?Os(Rs(e)):{},As(r||!e||!e.__esModule?Pe(t,"default",{value:e,enumerable:!0}):t,e));var qe=(e,r,t)=>new Promise((n,o)=>{var i=c=>{try{a(t.next(c))}catch(l){o(l)}},s=c=>{try{a(t.throw(c))}catch(l){o(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);a((t=t.apply(e,r)).next())});var C=u((WT,Cn)=>{"use strict";Cn.exports=function(e){try{return!!e()}catch(r){return!0}}});var Te=u((KT,Nn)=>{"use strict";var Gu=C();Nn.exports=!Gu(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var V=u(($T,jn)=>{"use strict";var Ln=Te(),Mn=Function.prototype,Br=Mn.call,Bu=Ln&&Mn.bind.bind(Br,Br);jn.exports=Ln?Bu:function(e){return function(){return Br.apply(e,arguments)}}});var Be=u((YT,kn)=>{"use strict";var Vn=V(),Uu=Vn({}.toString),Qu=Vn("".slice);kn.exports=function(e){return Qu(Uu(e),8,-1)}});var Fn=u((zT,Dn)=>{"use strict";var Wu=V(),Ku=C(),$u=Be(),Ur=Object,Yu=Wu("".split);Dn.exports=Ku(function(){return!Ur("z").propertyIsEnumerable(0)})?function(e){return $u(e)==="String"?Yu(e,""):Ur(e)}:Ur});var Ue=u((HT,Gn)=>{"use strict";Gn.exports=function(e){return e==null}});var Qe=u((XT,Bn)=>{"use strict";var zu=Ue(),Hu=TypeError;Bn.exports=function(e){if(zu(e))throw new Hu("Can't call method on "+e);return e}});var ie=u((JT,Un)=>{"use strict";var Xu=Fn(),Ju=Qe();Un.exports=function(e){return Xu(Ju(e))}});var Wn=u((ZT,Qn)=>{"use strict";Qn.exports=function(){}});var z=u((eh,Kn)=>{"use strict";Kn.exports={}});var S=u((Qr,$n)=>{"use strict";var he=function(e){return e&&e.Math===Math&&e};$n.exports=he(typeof globalThis=="object"&&globalThis)||he(typeof window=="object"&&window)||he(typeof self=="object"&&self)||he(typeof global=="object"&&global)||he(typeof Qr=="object"&&Qr)||function(){return this}()||Function("return this")()});var w=u((rh,Yn)=>{"use strict";var Wr=typeof document=="object"&&document.all;Yn.exports=typeof Wr=="undefined"&&Wr!==void 0?function(e){return typeof e=="function"||e===Wr}:function(e){return typeof e=="function"}});var Xn=u((th,Hn)=>{"use strict";var Zu=S(),ec=w(),zn=Zu.WeakMap;Hn.exports=ec(zn)&&/native code/.test(String(zn))});var k=u((nh,Jn)=>{"use strict";var rc=w();Jn.exports=function(e){return typeof e=="object"?e!==null:rc(e)}});var N=u((oh,Zn)=>{"use strict";var tc=C();Zn.exports=!tc(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var $r=u((ih,ro)=>{"use strict";var nc=S(),eo=k(),Kr=nc.document,oc=eo(Kr)&&eo(Kr.createElement);ro.exports=function(e){return oc?Kr.createElement(e):{}}});var Yr=u((ah,to)=>{"use strict";var ic=N(),ac=C(),sc=$r();to.exports=!ic&&!ac(function(){return Object.defineProperty(sc("div"),"a",{get:function(){return 7}}).a!==7})});var zr=u((sh,no)=>{"use strict";var uc=N(),cc=C();no.exports=uc&&cc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var H=u((uh,oo)=>{"use strict";var lc=k(),pc=String,fc=TypeError;oo.exports=function(e){if(lc(e))return e;throw new fc(pc(e)+" is not an object")}});var W=u((ch,io)=>{"use strict";var vc=Te(),We=Function.prototype.call;io.exports=vc?We.bind(We):function(){return We.apply(We,arguments)}});var Ke=u((lh,ao)=>{"use strict";ao.exports={}});var Jr=u((ph,uo)=>{"use strict";var Hr=Ke(),Xr=S(),dc=w(),so=function(e){return dc(e)?e:void 0};uo.exports=function(e,r){return arguments.length<2?so(Hr[e])||so(Xr[e]):Hr[e]&&Hr[e][r]||Xr[e]&&Xr[e][r]}});var Zr=u((fh,co)=>{"use strict";var bc=V();co.exports=bc({}.isPrototypeOf)});var vo=u((vh,fo)=>{"use strict";var mc=S(),lo=mc.navigator,po=lo&&lo.userAgent;fo.exports=po?String(po):""});var xo=u((dh,go)=>{"use strict";var yo=S(),et=vo(),bo=yo.process,mo=yo.Deno,To=bo&&bo.versions||mo&&mo.version,ho=To&&To.v8,P,$e;ho&&(P=ho.split("."),$e=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!$e&&et&&(P=et.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=et.match(/Chrome\/(\d+)/),P&&($e=+P[1])));go.exports=$e});var rt=u((bh,Oo)=>{"use strict";var Io=xo(),Tc=C(),hc=S(),yc=hc.String;Oo.exports=!!Object.getOwnPropertySymbols&&!Tc(function(){var e=Symbol("symbol detection");return!yc(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Io&&Io<41})});var tt=u((mh,So)=>{"use strict";var gc=rt();So.exports=gc&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var nt=u((Th,wo)=>{"use strict";var xc=Jr(),Ic=w(),Oc=Zr(),Sc=tt(),wc=Object;wo.exports=Sc?function(e){return typeof e=="symbol"}:function(e){var r=xc("Symbol");return Ic(r)&&Oc(r.prototype,wc(e))}});var Ye=u((hh,Eo)=>{"use strict";var Ec=String;Eo.exports=function(e){try{return Ec(e)}catch(r){return"Object"}}});var ye=u((yh,_o)=>{"use strict";var _c=w(),Rc=Ye(),Pc=TypeError;_o.exports=function(e){if(_c(e))return e;throw new Pc(Rc(e)+" is not a function")}});var ze=u((gh,Ro)=>{"use strict";var qc=ye(),Ac=Ue();Ro.exports=function(e,r){var t=e[r];return Ac(t)?void 0:qc(t)}});var qo=u((xh,Po)=>{"use strict";var ot=W(),it=w(),at=k(),Cc=TypeError;Po.exports=function(e,r){var t,n;if(r==="string"&&it(t=e.toString)&&!at(n=ot(t,e))||it(t=e.valueOf)&&!at(n=ot(t,e))||r!=="string"&&it(t=e.toString)&&!at(n=ot(t,e)))return n;throw new Cc("Can't convert object to primitive value")}});var ge=u((Ih,Ao)=>{"use strict";Ao.exports=!0});var Lo=u((Oh,No)=>{"use strict";var Co=S(),Nc=Object.defineProperty;No.exports=function(e,r){try{Nc(Co,e,{value:r,configurable:!0,writable:!0})}catch(t){Co[e]=r}return r}});var He=u((Sh,Vo)=>{"use strict";var Lc=ge(),Mc=S(),jc=Lo(),Mo="__core-js_shared__",jo=Vo.exports=Mc[Mo]||jc(Mo,{});(jo.versions||(jo.versions=[])).push({version:"3.38.0",mode:Lc?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var st=u((wh,Do)=>{"use strict";var ko=He();Do.exports=function(e,r){return ko[e]||(ko[e]=r||{})}});var ut=u((Eh,Fo)=>{"use strict";var Vc=Qe(),kc=Object;Fo.exports=function(e){return kc(Vc(e))}});var D=u((_h,Go)=>{"use strict";var Dc=V(),Fc=ut(),Gc=Dc({}.hasOwnProperty);Go.exports=Object.hasOwn||function(r,t){return Gc(Fc(r),t)}});var ct=u((Rh,Bo)=>{"use strict";var Bc=V(),Uc=0,Qc=Math.random(),Wc=Bc(1 .toString);Bo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Wc(++Uc+Qc,36)}});var F=u((Ph,Qo)=>{"use strict";var Kc=S(),$c=st(),Uo=D(),Yc=ct(),zc=rt(),Hc=tt(),ae=Kc.Symbol,lt=$c("wks"),Xc=Hc?ae.for||ae:ae&&ae.withoutSetter||Yc;Qo.exports=function(e){return Uo(lt,e)||(lt[e]=zc&&Uo(ae,e)?ae[e]:Xc("Symbol."+e)),lt[e]}});var Yo=u((qh,$o)=>{"use strict";var Jc=W(),Wo=k(),Ko=nt(),Zc=ze(),el=qo(),rl=F(),tl=TypeError,nl=rl("toPrimitive");$o.exports=function(e,r){if(!Wo(e)||Ko(e))return e;var t=Zc(e,nl),n;if(t){if(r===void 0&&(r="default"),n=Jc(t,e,r),!Wo(n)||Ko(n))return n;throw new tl("Can't convert object to primitive value")}return r===void 0&&(r="number"),el(e,r)}});var pt=u((Ah,zo)=>{"use strict";var ol=Yo(),il=nt();zo.exports=function(e){var r=ol(e,"string");return il(r)?r:r+""}});var se=u(Xo=>{"use strict";var al=N(),sl=Yr(),ul=zr(),Xe=H(),Ho=pt(),cl=TypeError,ft=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,vt="enumerable",dt="configurable",bt="writable";Xo.f=al?ul?function(r,t,n){if(Xe(r),t=Ho(t),Xe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&bt in n&&!n[bt]){var o=ll(r,t);o&&o[bt]&&(r[t]=n.value,n={configurable:dt in n?n[dt]:o[dt],enumerable:vt in n?n[vt]:o[vt],writable:!1})}return ft(r,t,n)}:ft:function(r,t,n){if(Xe(r),t=Ho(t),Xe(n),sl)try{return ft(r,t,n)}catch(o){}if("get"in n||"set"in n)throw new cl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var xe=u((Nh,Jo)=>{"use strict";Jo.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var ue=u((Lh,Zo)=>{"use strict";var pl=N(),fl=se(),vl=xe();Zo.exports=pl?function(e,r,t){return fl.f(e,r,vl(1,t))}:function(e,r,t){return e[r]=t,e}});var Je=u((Mh,ri)=>{"use strict";var dl=st(),bl=ct(),ei=dl("keys");ri.exports=function(e){return ei[e]||(ei[e]=bl(e))}});var Ze=u((jh,ti)=>{"use strict";ti.exports={}});var ai=u((Vh,ii)=>{"use strict";var ml=Xn(),oi=S(),Tl=k(),hl=ue(),mt=D(),Tt=He(),yl=Je(),gl=Ze(),ni="Object already initialized",ht=oi.TypeError,xl=oi.WeakMap,er,Ie,rr,Il=function(e){return rr(e)?Ie(e):er(e,{})},Ol=function(e){return function(r){var t;if(!Tl(r)||(t=Ie(r)).type!==e)throw new ht("Incompatible receiver, "+e+" required");return t}};ml||Tt.state?(q=Tt.state||(Tt.state=new xl),q.get=q.get,q.has=q.has,q.set=q.set,er=function(e,r){if(q.has(e))throw new ht(ni);return r.facade=e,q.set(e,r),r},Ie=function(e){return q.get(e)||{}},rr=function(e){return q.has(e)}):(X=yl("state"),gl[X]=!0,er=function(e,r){if(mt(e,X))throw new ht(ni);return r.facade=e,hl(e,X,r),r},Ie=function(e){return mt(e,X)?e[X]:{}},rr=function(e){return mt(e,X)});var q,X;ii.exports={set:er,get:Ie,has:rr,enforce:Il,getterFor:Ol}});var pi=u((kh,li)=>{"use strict";var Sl=Te(),ci=Function.prototype,si=ci.apply,ui=ci.call;li.exports=typeof Reflect=="object"&&Reflect.apply||(Sl?ui.bind(si):function(){return ui.apply(si,arguments)})});var yt=u((Dh,fi)=>{"use strict";var wl=Be(),El=V();fi.exports=function(e){if(wl(e)==="Function")return El(e)}});var mi=u(bi=>{"use strict";var vi={}.propertyIsEnumerable,di=Object.getOwnPropertyDescriptor,_l=di&&!vi.call({1:2},1);bi.f=_l?function(r){var t=di(this,r);return!!t&&t.enumerable}:vi});var yi=u(hi=>{"use strict";var Rl=N(),Pl=W(),ql=mi(),Al=xe(),Cl=ie(),Nl=pt(),Ll=D(),Ml=Yr(),Ti=Object.getOwnPropertyDescriptor;hi.f=Rl?Ti:function(r,t){if(r=Cl(r),t=Nl(t),Ml)try{return Ti(r,t)}catch(n){}if(Ll(r,t))return Al(!Pl(ql.f,r,t),r[t])}});var xi=u((Bh,gi)=>{"use strict";var jl=C(),Vl=w(),kl=/#|\.prototype\./,Oe=function(e,r){var t=Fl[Dl(e)];return t===Bl?!0:t===Gl?!1:Vl(r)?jl(r):!!r},Dl=Oe.normalize=function(e){return String(e).replace(kl,".").toLowerCase()},Fl=Oe.data={},Gl=Oe.NATIVE="N",Bl=Oe.POLYFILL="P";gi.exports=Oe});var gt=u((Uh,Oi)=>{"use strict";var Ii=yt(),Ul=ye(),Ql=Te(),Wl=Ii(Ii.bind);Oi.exports=function(e,r){return Ul(e),r===void 0?e:Ql?Wl(e,r):function(){return e.apply(r,arguments)}}});var xt=u((Qh,wi)=>{"use strict";var Se=S(),Kl=pi(),$l=yt(),Yl=w(),zl=yi().f,Hl=xi(),ce=Ke(),Xl=gt(),le=ue(),Si=D();He();var Jl=function(e){var r=function(t,n,o){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,o)}return Kl(e,this,arguments)};return r.prototype=e.prototype,r};wi.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,i=e.proto,s=n?Se:o?Se[t]:Se[t]&&Se[t].prototype,a=n?ce:ce[t]||le(ce,t,{})[t],c=a.prototype,l,p,f,d,b,T,h,x,y;for(d in r)l=Hl(n?d:t+(o?".":"#")+d,e.forced),p=!l&&s&&Si(s,d),T=a[d],p&&(e.dontCallGetSet?(y=zl(s,d),h=y&&y.value):h=s[d]),b=p&&h?h:r[d],!(!l&&!i&&typeof T==typeof b)&&(e.bind&&p?x=Xl(b,Se):e.wrap&&p?x=Jl(b):i&&Yl(b)?x=$l(b):x=b,(e.sham||b&&b.sham||T&&T.sham)&&le(x,"sham",!0),le(a,d,x),i&&(f=t+"Prototype",Si(ce,f)||le(ce,f,{}),le(ce[f],d,b),e.real&&c&&(l||!c[d])&&le(c,d,b)))}});var Ri=u((Wh,_i)=>{"use strict";var It=N(),Zl=D(),Ei=Function.prototype,ep=It&&Object.getOwnPropertyDescriptor,Ot=Zl(Ei,"name"),rp=Ot&&function(){}.name==="something",tp=Ot&&(!It||It&&ep(Ei,"name").configurable);_i.exports={EXISTS:Ot,PROPER:rp,CONFIGURABLE:tp}});var qi=u((Kh,Pi)=>{"use strict";var np=Math.ceil,op=Math.floor;Pi.exports=Math.trunc||function(r){var t=+r;return(t>0?op:np)(t)}});var St=u(($h,Ai)=>{"use strict";var ip=qi();Ai.exports=function(e){var r=+e;return r!==r||r===0?0:ip(r)}});var Ni=u((Yh,Ci)=>{"use strict";var ap=St(),sp=Math.max,up=Math.min;Ci.exports=function(e,r){var t=ap(e);return t<0?sp(t+r,0):up(t,r)}});var Mi=u((zh,Li)=>{"use strict";var cp=St(),lp=Math.min;Li.exports=function(e){var r=cp(e);return r>0?lp(r,9007199254740991):0}});var wt=u((Hh,ji)=>{"use strict";var pp=Mi();ji.exports=function(e){return pp(e.length)}});var Di=u((Xh,ki)=>{"use strict";var fp=ie(),vp=Ni(),dp=wt(),Vi=function(e){return function(r,t,n){var o=fp(r),i=dp(o);if(i===0)return!e&&-1;var s=vp(n,i),a;if(e&&t!==t){for(;i>s;)if(a=o[s++],a!==a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===t)return e||s||0;return!e&&-1}};ki.exports={includes:Vi(!0),indexOf:Vi(!1)}});var Bi=u((Jh,Gi)=>{"use strict";var bp=V(),Et=D(),mp=ie(),Tp=Di().indexOf,hp=Ze(),Fi=bp([].push);Gi.exports=function(e,r){var t=mp(e),n=0,o=[],i;for(i in t)!Et(hp,i)&&Et(t,i)&&Fi(o,i);for(;r.length>n;)Et(t,i=r[n++])&&(~Tp(o,i)||Fi(o,i));return o}});var _t=u((Zh,Ui)=>{"use strict";Ui.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Wi=u((ey,Qi)=>{"use strict";var yp=Bi(),gp=_t();Qi.exports=Object.keys||function(r){return yp(r,gp)}});var $i=u(Ki=>{"use strict";var xp=N(),Ip=zr(),Op=se(),Sp=H(),wp=ie(),Ep=Wi();Ki.f=xp&&!Ip?Object.defineProperties:function(r,t){Sp(r);for(var n=wp(t),o=Ep(t),i=o.length,s=0,a;i>s;)Op.f(r,a=o[s++],n[a]);return r}});var zi=u((ty,Yi)=>{"use strict";var _p=Jr();Yi.exports=_p("document","documentElement")});var At=u((ny,ta)=>{"use strict";var Rp=H(),Pp=$i(),Hi=_t(),qp=Ze(),Ap=zi(),Cp=$r(),Np=Je(),Xi=">",Ji="<",Pt="prototype",qt="script",ea=Np("IE_PROTO"),Rt=function(){},ra=function(e){return Ji+qt+Xi+e+Ji+"/"+qt+Xi},Zi=function(e){e.write(ra("")),e.close();var r=e.parentWindow.Object;return e=null,r},Lp=function(){var e=Cp("iframe"),r="java"+qt+":",t;return e.style.display="none",Ap.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(ra("document.F=Object")),t.close(),t.F},tr,nr=function(){try{tr=new ActiveXObject("htmlfile")}catch(r){}nr=typeof document!="undefined"?document.domain&&tr?Zi(tr):Lp():Zi(tr);for(var e=Hi.length;e--;)delete nr[Pt][Hi[e]];return nr()};qp[ea]=!0;ta.exports=Object.create||function(r,t){var n;return r!==null?(Rt[Pt]=Rp(r),n=new Rt,Rt[Pt]=null,n[ea]=r):n=nr(),t===void 0?n:Pp.f(n,t)}});var oa=u((oy,na)=>{"use strict";var Mp=C();na.exports=!Mp(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Nt=u((iy,aa)=>{"use strict";var jp=D(),Vp=w(),kp=ut(),Dp=Je(),Fp=oa(),ia=Dp("IE_PROTO"),Ct=Object,Gp=Ct.prototype;aa.exports=Fp?Ct.getPrototypeOf:function(e){var r=kp(e);if(jp(r,ia))return r[ia];var t=r.constructor;return Vp(t)&&r instanceof t?t.prototype:r instanceof Ct?Gp:null}});var Lt=u((ay,sa)=>{"use strict";var Bp=ue();sa.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Bp(e,r,t),e}});var kt=u((sy,la)=>{"use strict";var Up=C(),Qp=w(),Wp=k(),Kp=At(),ua=Nt(),$p=Lt(),Yp=F(),zp=ge(),Vt=Yp("iterator"),ca=!1,G,Mt,jt;[].keys&&(jt=[].keys(),"next"in jt?(Mt=ua(ua(jt)),Mt!==Object.prototype&&(G=Mt)):ca=!0);var Hp=!Wp(G)||Up(function(){var e={};return G[Vt].call(e)!==e});Hp?G={}:zp&&(G=Kp(G));Qp(G[Vt])||$p(G,Vt,function(){return this});la.exports={IteratorPrototype:G,BUGGY_SAFARI_ITERATORS:ca}});var or=u((uy,fa)=>{"use strict";var Xp=F(),Jp=Xp("toStringTag"),pa={};pa[Jp]="z";fa.exports=String(pa)==="[object z]"});var Dt=u((cy,va)=>{"use strict";var Zp=or(),ef=w(),ir=Be(),rf=F(),tf=rf("toStringTag"),nf=Object,of=ir(function(){return arguments}())==="Arguments",af=function(e,r){try{return e[r]}catch(t){}};va.exports=Zp?ir:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=af(r=nf(e),tf))=="string"?t:of?ir(r):(n=ir(r))==="Object"&&ef(r.callee)?"Arguments":n}});var ba=u((ly,da)=>{"use strict";var sf=or(),uf=Dt();da.exports=sf?{}.toString:function(){return"[object "+uf(this)+"]"}});var ar=u((py,Ta)=>{"use strict";var cf=or(),lf=se().f,pf=ue(),ff=D(),vf=ba(),df=F(),ma=df("toStringTag");Ta.exports=function(e,r,t,n){var o=t?e:e&&e.prototype;o&&(ff(o,ma)||lf(o,ma,{configurable:!0,value:r}),n&&!cf&&pf(o,"toString",vf))}});var ya=u((fy,ha)=>{"use strict";var bf=kt().IteratorPrototype,mf=At(),Tf=xe(),hf=ar(),yf=z(),gf=function(){return this};ha.exports=function(e,r,t,n){var o=r+" Iterator";return e.prototype=mf(bf,{next:Tf(+!n,t)}),hf(e,o,!1,!0),yf[o]=gf,e}});var xa=u((vy,ga)=>{"use strict";var xf=V(),If=ye();ga.exports=function(e,r,t){try{return xf(If(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Oa=u((dy,Ia)=>{"use strict";var Of=k();Ia.exports=function(e){return Of(e)||e===null}});var wa=u((by,Sa)=>{"use strict";var Sf=Oa(),wf=String,Ef=TypeError;Sa.exports=function(e){if(Sf(e))return e;throw new Ef("Can't set "+wf(e)+" as a prototype")}});var _a=u((my,Ea)=>{"use strict";var _f=xa(),Rf=k(),Pf=Qe(),qf=wa();Ea.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=_f(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(o,i){return Pf(o),qf(i),Rf(o)&&(e?t(o,i):o.__proto__=i),o}}():void 0)});var ka=u((Ty,Va)=>{"use strict";var Af=xt(),Cf=W(),sr=ge(),Ma=Ri(),Nf=w(),Lf=ya(),Ra=Nt(),Pa=_a(),Mf=ar(),jf=ue(),Ft=Lt(),Vf=F(),qa=z(),ja=kt(),kf=Ma.PROPER,Df=Ma.CONFIGURABLE,Aa=ja.IteratorPrototype,ur=ja.BUGGY_SAFARI_ITERATORS,we=Vf("iterator"),Ca="keys",Ee="values",Na="entries",La=function(){return this};Va.exports=function(e,r,t,n,o,i,s){Lf(t,r,n);var a=function(y){if(y===o&&d)return d;if(!ur&&y&&y in p)return p[y];switch(y){case Ca:return function(){return new t(this,y)};case Ee:return function(){return new t(this,y)};case Na:return function(){return new t(this,y)}}return function(){return new t(this)}},c=r+" Iterator",l=!1,p=e.prototype,f=p[we]||p["@@iterator"]||o&&p[o],d=!ur&&f||a(o),b=r==="Array"&&p.entries||f,T,h,x;if(b&&(T=Ra(b.call(new e)),T!==Object.prototype&&T.next&&(!sr&&Ra(T)!==Aa&&(Pa?Pa(T,Aa):Nf(T[we])||Ft(T,we,La)),Mf(T,c,!0,!0),sr&&(qa[c]=La))),kf&&o===Ee&&f&&f.name!==Ee&&(!sr&&Df?jf(p,"name",Ee):(l=!0,d=function(){return Cf(f,this)})),o)if(h={values:a(Ee),keys:i?d:a(Ca),entries:a(Na)},s)for(x in h)(ur||l||!(x in p))&&Ft(p,x,h[x]);else Af({target:r,proto:!0,forced:ur||l},h);return(!sr||s)&&p[we]!==d&&Ft(p,we,d,{name:o}),qa[r]=d,h}});var Fa=u((hy,Da)=>{"use strict";Da.exports=function(e,r){return{value:e,done:r}}});var Bt=u((yy,Wa)=>{"use strict";var Ff=ie(),Gt=Wn(),Ga=z(),Ua=ai(),Gf=se().f,Bf=ka(),cr=Fa(),Uf=ge(),Qf=N(),Qa="Array Iterator",Wf=Ua.set,Kf=Ua.getterFor(Qa);Wa.exports=Bf(Array,"Array",function(e,r){Wf(this,{type:Qa,target:Ff(e),index:0,kind:r})},function(){var e=Kf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,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 Ba=Ga.Arguments=Ga.Array;Gt("keys");Gt("values");Gt("entries");if(!Uf&&Qf&&Ba.name!=="values")try{Gf(Ba,"name",{value:"values"})}catch(e){}});var $a=u((gy,Ka)=>{"use strict";var $f=F(),Yf=z(),zf=$f("iterator"),Hf=Array.prototype;Ka.exports=function(e){return e!==void 0&&(Yf.Array===e||Hf[zf]===e)}});var Ut=u((xy,za)=>{"use strict";var Xf=Dt(),Ya=ze(),Jf=Ue(),Zf=z(),ev=F(),rv=ev("iterator");za.exports=function(e){if(!Jf(e))return Ya(e,rv)||Ya(e,"@@iterator")||Zf[Xf(e)]}});var Xa=u((Iy,Ha)=>{"use strict";var tv=W(),nv=ye(),ov=H(),iv=Ye(),av=Ut(),sv=TypeError;Ha.exports=function(e,r){var t=arguments.length<2?av(e):r;if(nv(t))return ov(tv(t,e));throw new sv(iv(e)+" is not iterable")}});var es=u((Oy,Za)=>{"use strict";var uv=W(),Ja=H(),cv=ze();Za.exports=function(e,r,t){var n,o;Ja(e);try{if(n=cv(e,"return"),!n){if(r==="throw")throw t;return t}n=uv(n,e)}catch(i){o=!0,n=i}if(r==="throw")throw t;if(o)throw n;return Ja(n),t}});var is=u((Sy,os)=>{"use strict";var lv=gt(),pv=W(),fv=H(),vv=Ye(),dv=$a(),bv=wt(),rs=Zr(),mv=Xa(),Tv=Ut(),ts=es(),hv=TypeError,lr=function(e,r){this.stopped=e,this.result=r},ns=lr.prototype;os.exports=function(e,r,t){var n=t&&t.that,o=!!(t&&t.AS_ENTRIES),i=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),c=lv(r,n),l,p,f,d,b,T,h,x=function(g){return l&&ts(l,"normal",g),new lr(!0,g)},y=function(g){return o?(fv(g),a?c(g[0],g[1],x):c(g[0],g[1])):a?c(g,x):c(g)};if(i)l=e.iterator;else if(s)l=e;else{if(p=Tv(e),!p)throw new hv(vv(e)+" is not iterable");if(dv(p)){for(f=0,d=bv(e);d>f;f++)if(b=y(e[f]),b&&rs(ns,b))return b;return new lr(!1)}l=mv(e,p)}for(T=i?e.next:l.next;!(h=pv(T,l)).done;){try{b=y(h.value)}catch(g){ts(l,"throw",g)}if(typeof b=="object"&&b&&rs(ns,b))return b}return new lr(!1)}});var ss=u((wy,as)=>{"use strict";var yv=N(),gv=se(),xv=xe();as.exports=function(e,r,t){yv?gv.f(e,r,xv(0,t)):e[r]=t}});var us=u(()=>{"use strict";var Iv=xt(),Ov=is(),Sv=ss();Iv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Ov(r,function(n,o){Sv(t,n,o)},{AS_ENTRIES:!0}),t}})});var ls=u((Ry,cs)=>{"use strict";Bt();us();var wv=Ke();cs.exports=wv.Object.fromEntries});var fs=u((Py,ps)=>{"use strict";ps.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 ds=u(()=>{"use strict";Bt();var Ev=fs(),_v=S(),Rv=ar(),vs=z();for(pr in Ev)Rv(_v[pr],pr),vs[pr]=vs.Array;var pr});var ms=u((Cy,bs)=>{"use strict";var Pv=ls();ds();bs.exports=Pv});var hs=u((Ny,Ts)=>{"use strict";var qv=ms();Ts.exports=qv});var Ns="1.0.40-dev.e44f3731.0";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var L=e=>{throw new Error(`${e} is value of unexpected type`)},Ls=e=>{};var $=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var s;let n;t?typeof t=="function"?n={next:t,error:$}:n={next:a=>t.next(a),error:a=>{var c;return(c=t.error)==null?void 0:c.call(t,a)}}:n={next:$,error:$};let o=typeof r=="function"?{next:a=>{try{r(a)}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)},i;try{i=this._subscribe(o)}catch(a){(s=o.error)==null||s.call(o,a)}return new E().add(()=>{switch(o.next=$,o.error=$,typeof i){case"function":i();return;case"object":i.unsubscribe();return;case"undefined":return;default:return L(i)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var U=class extends v{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 o;return(o=n.error)==null?void 0:o.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var fr=class{constructor(){this.log$=new U;this.logs=[];this.log=r=>{let t=B(A({},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(o){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>A({component:r},t))}};var Xt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};var M="1.8.0";var Jt=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Ms(e){var r=new Set([e]),t=new Set,n=e.match(Jt);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(c){return c===e};function i(a){return t.add(a),!1}function s(a){return r.add(a),!0}return function(c){if(r.has(c))return!0;if(t.has(c))return!1;var l=c.match(Jt);if(!l)return i(c);var p={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return p.prerelease!=null||o.major!==p.major?i(c):o.major===0?o.minor===p.minor&&o.patch<=p.patch?s(c):i(c):o.minor<=p.minor?s(c):i(c)}}var Zt=Ms(M);var js=M.split(".")[0],pe=Symbol.for("opentelemetry.js.api."+js),fe=Xt;function J(e,r,t,n){var o;n===void 0&&(n=!1);var i=fe[pe]=(o=fe[pe])!==null&&o!==void 0?o:{version:M};if(!n&&i[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return t.error(s.stack||s.message),!1}if(i.version!==M){var s=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+M);return t.error(s.stack||s.message),!1}return i[e]=r,t.debug("@opentelemetry/api: Registered a global for "+e+" v"+M+"."),!0}function j(e){var r,t,n=(r=fe[pe])===null||r===void 0?void 0:r.version;if(!(!n||!Zt(n)))return(t=fe[pe])===null||t===void 0?void 0:t[e]}function Z(e,r){r.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+M+".");var t=fe[pe];t&&delete t[e]}var Vs=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},ks=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},en=function(){function e(r){this._namespace=r.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("debug",this._namespace,r)},e.prototype.error=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("error",this._namespace,r)},e.prototype.info=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("info",this._namespace,r)},e.prototype.warn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("warn",this._namespace,r)},e.prototype.verbose=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("verbose",this._namespace,r)},e}();function ve(e,r,t){var n=j("diag");if(n)return t.unshift(r),n[e].apply(n,ks([],Vs(t),!1))}var O;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(O||(O={}));function rn(e,r){e<O.NONE?e=O.NONE:e>O.ALL&&(e=O.ALL),r=r||{};function t(n,o){var i=r[n];return typeof i=="function"&&e>=o?i.bind(r):function(){}}return{error:t("error",O.ERROR),warn:t("warn",O.WARN),info:t("info",O.INFO),debug:t("debug",O.DEBUG),verbose:t("verbose",O.VERBOSE)}}var Ds=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Fs=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},Gs="diag",ee=function(){function e(){function r(o){return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=j("diag");if(a)return a[o].apply(a,Fs([],Ds(i),!1))}}var t=this,n=function(o,i){var s,a,c;if(i===void 0&&(i={logLevel:O.INFO}),o===t){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error((s=l.stack)!==null&&s!==void 0?s:l.message),!1}typeof i=="number"&&(i={logLevel:i});var p=j("diag"),f=rn((a=i.logLevel)!==null&&a!==void 0?a:O.INFO,o);if(p&&!i.suppressOverrideMessage){var d=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";p.warn("Current logger will be overwritten from "+d),f.warn("Current logger will overwrite one already registered from "+d)}return J("diag",f,t,!0)};t.setLogger=n,t.disable=function(){Z(Gs,t)},t.createComponentLogger=function(o){return new en(o)},t.verbose=r("verbose"),t.debug=r("debug"),t.info=r("info"),t.warn=r("warn"),t.error=r("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}();function tn(e){return Symbol.for(e)}var Bs=function(){function e(r){var t=this;t._currentContext=r?new Map(r):new Map,t.getValue=function(n){return t._currentContext.get(n)},t.setValue=function(n,o){var i=new e(t._currentContext);return i._currentContext.set(n,o),i},t.deleteValue=function(n){var o=new e(t._currentContext);return o._currentContext.delete(n),o}}return e}(),nn=new Bs;var Us=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Qs=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},on=function(){function e(){}return e.prototype.active=function(){return nn},e.prototype.with=function(r,t,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return t.call.apply(t,Qs([n],Us(o),!1))},e.prototype.bind=function(r,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}();var Ws=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Ks=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},vr="context",$s=new on,re=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(r){return J(vr,r,ee.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(r,t,n){for(var o,i=[],s=3;s<arguments.length;s++)i[s-3]=arguments[s];return(o=this._getContextManager()).with.apply(o,Ks([r,t,n],Ws(i),!1))},e.prototype.bind=function(r,t){return this._getContextManager().bind(r,t)},e.prototype._getContextManager=function(){return j(vr)||$s},e.prototype.disable=function(){this._getContextManager().disable(),Z(vr,ee.instance())},e}();var Ae;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Ae||(Ae={}));var dr="0000000000000000",br="00000000000000000000000000000000",an={traceId:br,spanId:dr,traceFlags:Ae.NONE};var Q=function(){function e(r){r===void 0&&(r=an),this._spanContext=r}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(r,t){return this},e.prototype.setAttributes=function(r){return this},e.prototype.addEvent=function(r,t){return this},e.prototype.setStatus=function(r){return this},e.prototype.updateName=function(r){return this},e.prototype.end=function(r){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(r,t){},e}();var mr=tn("OpenTelemetry Context Key SPAN");function Ce(e){return e.getValue(mr)||void 0}function sn(){return Ce(re.getInstance().active())}function de(e,r){return e.setValue(mr,r)}function un(e){return e.deleteValue(mr)}function cn(e,r){return de(e,new Q(r))}function Ne(e){var r;return(r=Ce(e))===null||r===void 0?void 0:r.spanContext()}var Ys=/^([0-9a-f]{32})$/i,zs=/^[0-9a-f]{16}$/i;function Hs(e){return Ys.test(e)&&e!==br}function Xs(e){return zs.test(e)&&e!==dr}function Le(e){return Hs(e.traceId)&&Xs(e.spanId)}function ln(e){return new Q(e)}var Tr=re.getInstance(),Me=function(){function e(){}return e.prototype.startSpan=function(r,t,n){n===void 0&&(n=Tr.active());var o=!!(t!=null&&t.root);if(o)return new Q;var i=n&&Ne(n);return Js(i)&&Le(i)?new Q(i):new Q},e.prototype.startActiveSpan=function(r,t,n,o){var i,s,a;if(!(arguments.length<2)){arguments.length===2?a=t:arguments.length===3?(i=t,a=n):(i=t,s=n,a=o);var c=s!=null?s:Tr.active(),l=this.startSpan(r,i,c),p=de(c,l);return Tr.with(p,a,void 0,l)}},e}();function Js(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Zs=new Me,pn=function(){function e(r,t,n,o){this._provider=r,this.name=t,this.version=n,this.options=o}return e.prototype.startSpan=function(r,t,n){return this._getTracer().startSpan(r,t,n)},e.prototype.startActiveSpan=function(r,t,n,o){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):Zs},e}();var fn=function(){function e(){}return e.prototype.getTracer=function(r,t,n){return new Me},e}();var eu=new fn,hr=function(){function e(){}return e.prototype.getTracer=function(r,t,n){var o;return(o=this.getDelegateTracer(r,t,n))!==null&&o!==void 0?o:new pn(this,r,t,n)},e.prototype.getDelegate=function(){var r;return(r=this._delegate)!==null&&r!==void 0?r:eu},e.prototype.setDelegate=function(r){this._delegate=r},e.prototype.getDelegateTracer=function(r,t,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(r,t,n)},e}();var yr=re.getInstance();var gr="trace",vn=function(){function e(){this._proxyTracerProvider=new hr,this.wrapSpanContext=ln,this.isSpanContextValid=Le,this.deleteSpan=un,this.getSpan=Ce,this.getActiveSpan=sn,this.getSpanContext=Ne,this.setSpan=de,this.setSpanContext=cn}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(r){var t=J(gr,this._proxyTracerProvider,ee.instance());return t&&this._proxyTracerProvider.setDelegate(r),t},e.prototype.getTracerProvider=function(){return j(gr)||this._proxyTracerProvider},e.prototype.getTracer=function(r,t){return this.getTracerProvider().getTracer(r,t)},e.prototype.disable=function(){Z(gr,ee.instance()),this._proxyTracerProvider=new hr},e}();var xr=vn.getInstance();import{TracerAllSpansProcessor as ru,TracerMemorySpanExporter as dn,initTracerOpenTelemetry as tu}from"@tracer/opentelemetry";var Ir=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},Or=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let o=!n;if(o){let s=tu({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),a=new dn,c=new dn;this.spanExporter=a,s.addSpanProcessor(new ru({startedSpansExporter:a,endedSpansExporter:c})),this.tracer=s.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:o},t),this.context=xr.setSpan(yr.active(),this.span)}log(r,t){this.span.addEvent(r,B(A({},t),{type:"log"}))}error(r,t){this.span.addEvent(r,B(A({},t),{type:"error"}))}critical(r,t){this.span.addEvent(r,B(A({},t),{type:"critical"}))}static createRootTracer(r=!1){return r?new e({name:"Root"}):new Ir({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){var r;return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function nu(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function ou(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function te(e){return typeof e!="undefined"&&e!==null}function Sr(e){return e==null}function iu(e,r){if(!(e!=null&&e.length))throw new Error(r)}function au(e,r){if(e!=null&&e.length)throw new Error(r)}var su=(e,r,t)=>new Promise((n,o)=>{r.addEventListener("abort",()=>{a(),l.remove()});let i=()=>{a(),o()},s=()=>{a(),n()},a=()=>{c&&clearTimeout(c),l.removeEventListener("load",s),l.removeEventListener("error",i)},c;t&&(c=window.setTimeout(i,t));let l=document.createElement("script");l.addEventListener("load",s),l.addEventListener("error",i),l.src=e,document.head.appendChild(l)});var bn,uu=typeof((bn=window.performance)==null?void 0:bn.now)=="function"?()=>window.performance.now():()=>Date.now();var cu=(e,r)=>(...t)=>qe(void 0,null,function*(){var s;let n=r(...t),o=e.aborted,i;for(;!o&&!e.aborted;)try{let a=yield n.next(i);o=(s=a.done)!=null?s:!1,i=a.value}catch(a){yield n.throw(a)}return i});var mn=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},wr=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(o){console.error(o)}try{this._isMobile=mn()}catch(o){console.error(o)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,o=/chrome|crios/i.test(r)?"Chrome":void 0,i=/chromium/i.test(r)?"Chromium":void 0,s=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,c=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||s||c||l||o||i||a||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,o=/ipad/i.test(r)?"iPad":void 0,i=/ipod/i.test(r)?"iPod":void 0,s=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||o||i||a||s||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],o=parseFloat(n);if(isNaN(o))return;this._iosVersion=o}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],o=parseInt(n,10);if(isNaN(o))return;this._macVersion=o}catch(r){console.error(r)}}},lu=new wr;var pu=(e,{start:r=0,factor:t=2,max:n=1/0,min:o=r,random:i=0}={})=>{let s=r;return s*=Ht(t,e),s*=1+(Math.random()*i*2-i),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,o),s};var _r={};qs(_r,{clear:()=>Tu,get:()=>vu,has:()=>bu,isPersistent:()=>fu,remove:()=>mu,set:()=>du});var I,Y,Er=`vk-videoplayer-dummy-key-${Math.random()}`,ne=()=>{if(Y!==void 0)return Y;try{localStorage.setItem(Er,"test"),localStorage.removeItem(Er),Y=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Er),Y=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Y=2;else throw r}else throw e}return Y===2&&(I=new Map),Y},fu=()=>ne()===0,vu=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 I==null?void 0:I.get(e);default:L(r)}},du=(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:return void(I==null?void 0:I.set(e,r));default:L(t)}},bu=e=>{var t;let r=ne();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=I==null?void 0:I.has(e))!=null?t:!1;default:return L(r),!1}},mu=e=>{let r=ne();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(I==null?void 0:I.delete(e));default:L(r)}},Tu=()=>{let e=ne();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return I==null?void 0:I.clear();default:L(e)}};var hu=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Rr=(p=>(p.INVARIANT="Invariant quality",p.Q_144P="144p",p.Q_240P="240p",p.Q_360P="360p",p.Q_480P="480p",p.Q_720P="720p",p.Q_1080P="1080p",p.Q_1440P="1440p",p.Q_2160P="2160p",p.Q_4320P="4320p",p))(Rr||{});var _={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"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}},yu=(e,r)=>_[e].height>_[r].height,gu=(e,r)=>_[e].height>=_[r].height,Pr=(e,r)=>_[e].height<_[r].height,xu=(e,r)=>_[e].height<=_[r].height,Iu=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Pr(r,t)?1:-1)[0],Tn=Object.keys(_).sort((e,r)=>Pr(e,r)?-1:1),Ou=(e,r=.02)=>[...Tn].find(n=>_[n].height*(1+r)>=e),Su=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Tn.find(o=>{let i=_[o];return i.width>=n&&i.height>=t})},wu=e=>_[e].height,qr=e=>e==="Invariant quality",Eu=e=>e.every(r=>!qr(r));function _u(e){if(qr(e))throw new Error("Expected exact quality")}var Ru=(e,r)=>{let t={};for(let n of Object.keys(r)){let o=r[n],i=e[n];Array.isArray(o)&&Array.isArray(i)?t[n]=i:typeof o=="object"&&typeof i=="object"?t[n]=Ru(i,o):t[n]=n in e?i:o}return t};var Lb=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 Ar(e,r=0,t){let n,o,i,s,a,c,l=0,p=!1,f=!1,d=!0,b=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(p=!!t.leading,f="maxWait"in t,i=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):i,d="trailing"in t?!!t.trailing:d);function T(m){let R=n,K=o;return n=o=void 0,l=m,s=e.apply(K,R),s}function h(m,R){return b?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,R)}function x(m){if(b){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,a=h(_e,r),p?T(m):s}function g(m){let R=m-c,K=m-l,Kt=r-R;return f?Math.min(Kt,i-K):Kt}function Qt(m){let R=m-c,K=m-l;return c===void 0||R>=r||R<0||f&&K>=i}function _e(){let m=Date.now();if(Qt(m))return Wt(m);a=h(_e,g(m))}function Wt(m){return a=void 0,d&&n?T(m):(n=o=void 0,s)}function gs(){a!==void 0&&x(a),l=0,n=c=o=a=void 0}function xs(){return a===void 0?s:Wt(Date.now())}function Is(){return a!==void 0}function Re(...m){let R=Date.now(),K=Qt(R);if(n=m,o=this,c=R,K){if(a===void 0)return y(c);if(f)return a=h(_e,r),T(c)}return a===void 0&&(a=h(_e,r)),s}return Re.cancel=gs,Re.flush=xs,Re.pending=Is,Re}var Cr=(e,r=0,t)=>Ar(e,r,B(A(A({},{leading:!0,trailing:!0}),t),{maxWait:r}));var je=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let o=r(e[n],n,e,t);if(o!==void 0){t[n]=o;continue}}typeof e[n]=="object"?t[n]=je(e[n],r):t[n]=e[n]}return t};var Pu=e=>je(e);var qu=300,Au=(e,r=qu)=>new v(t=>{let{width:n,height:o}=e.getBoundingClientRect();if(t.next({width:n,height:o}),!window.ResizeObserver)return;let i=new ResizeObserver(Cr(s=>{let a=s[0];if(!a)return;let c,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,c=a.contentBoxSize[0].inlineSize):a.contentRect&&(c=a.contentRect.width,l=a.contentRect.height),te(c)&&te(l)&&t.next({width:c,height:l})},r));return i.observe(e),()=>i.disconnect()});var Ve=(e,r=".")=>{let t={};for(let n in e)if(e.hasOwnProperty(n))if(typeof e[n]=="object"&&e[n]!==null){let o=Ve(e[n]);for(let i in o)o.hasOwnProperty(i)&&(t[n+r+i]=o[i])}else t[n]=e[n];return t};var Cu=e=>{e.removeAttribute("src"),e.load()};var Nu=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?Ve(t):{value:t})};var ke=class extends U{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function hn(e){return new v(r=>{let t={},n=Object.keys(e).length,o=i=>s=>{i in t||n--,t[i]=s,n===0&&r.next(t)};return Object.entries(e).reduce((i,[s,a])=>i.add(a.subscribe(o(s))),new E)})}function yn(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var Lu=e=>new v(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 Mu=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var ju=e=>new v(r=>{e.forEach(t=>r.next(t))});var Vu=(e,r)=>new v(t=>{let n=o=>t.next(o);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function gn(e){return r=>new v(t=>r.subscribe(new Nr(t,e)))}var Nr=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 ku={leading:!1,trailing:!0};function xn(e,r=ku){return t=>new v(n=>t.subscribe(new Lr(n,e,r)))}var Lr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,te(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 Du={leading:!0,trailing:!1};function In(e,r=Du){return t=>new v(n=>t.subscribe(new Mr(n,e,r)))}var Mr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Sr(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 On(e){return r=>new v(t=>r.subscribe(new jr(t,e)))}var jr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function wn(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new Vr(t,e)))}var Sn={},Vr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Sn}next(r){let t;try{t=this.lastValue===Sn||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function De(e){return r=>new v(t=>r.subscribe(new kr(t,e)))}var kr=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 En(e){return De(()=>e)}function _n(){return e=>new v(r=>{let t=!1,n=!1,o=e.subscribe(i=>{t||(t=!0,r.next(i)),n&&o.unsubscribe()},i=>{var s;t=!0,(s=r.error)==null||s.call(r,i),n&&o.unsubscribe()});return n=!0,t&&o.unsubscribe(),o})}function Rn(){return e=>new v(r=>e.subscribe(new Dr(r)))}var Dr=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 Pn(e){return r=>new v(t=>r.subscribe(new Fr(t,e)))}var Fr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Fu=(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))(Fu||{});var Fe=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 o=0,i=n.length;o<i;o++)if(n[o].callback===t){n.splice(o,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let o=0,i=n.length;o<i;o++){let s=n[o];try{s.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},oe=class extends Fe{constructor(){super(),this.listeners||Fe.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},be=class{constructor(){Object.defineProperty(this,"signal",{value:new oe,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(o){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(o){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(be.prototype[Symbol.toStringTag]="AbortController",oe.prototype[Symbol.toStringTag]="AbortSignal");function Ge(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Gr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=e;if(!Ge({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:r,Request:i};let i=t;(i&&!i.prototype.hasOwnProperty("signal")||o)&&(i=function(l,p){let f;p&&p.signal&&(f=p.signal,delete p.signal);let d=new t(l,p);return f&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),d},i.prototype=t.prototype);let s=r;return{fetch:(c,l)=>{let p=i&&i.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(p){let f;try{f=new DOMException("Aborted","AbortError")}catch(b){f=new Error("Aborted"),f.name="AbortError"}if(p.aborted)return Promise.reject(f);let d=new Promise((b,T)=>{p.addEventListener("abort",()=>T(f),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([d,s(c,l)])}return s(c,l)},Request:i}}var me=Ge({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),qn=me?Gr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,An=me?qn.fetch:window.fetch,GT=me?qn.Request:window.Request,BT=me?be:window.AbortController,UT=me?oe:window.AbortSignal;var ys=Cs(hs(),1);var Av=(f=>(f.Armenian="58",f.Azerbaijani="57",f.Belarusian="114",f.English="3",f.Kazakh="97",f.Portuguese="73",f.Russian="0",f.Spanish="4",f.Ukrainian="1",f.Uzbek="65",f.Vietnamese="75",f))(Av||{}),Cv="vk.com",My=(e,r,t)=>qe(void 0,null,function*(){let n=new URL(`https://${Cv}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let i=yield(yield An(n.toString())).json();return Nv(i,t)}),Nv=(e,r)=>(0,ys.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Lv(n)])),Lv=e=>Array.isArray(e)?e[0]:e;var Mv=(t=>(t.RU="ru",t.EN="en",t))(Mv||{});export{Fu as ErrorCategory,Mv as InterfaceLanguage,fr as Logger,v as Observable,U as Subject,E as Subscription,Or as Tracer,Ns as VERSION,Av as VKNumericLanguage,ke as ValueSubject,Rr as VideoQuality,cu as abortable,su as addScript,Eu as areQualitiesExact,au as assertEmptyArray,L as assertNever,nu as assertNonNullable,iu as assertNotEmptyArray,ou as assertNullable,_u as assertQualityIsExact,gn as buffer,Ls as checkNever,Cu as clearVideoElement,lu as clientChecker,Pu as cloneDeep,je as cloneDeepWith,hn as combine,xn as debounce,Ar as debounceFn,hu as detectEmbed,Ru as fillWithDefault,On as filter,wn as filterChanged,Ve as flattenObject,Vu as fromEvent,pu as getExponentialDelay,Iu as getHighestQuality,Nu as getTraceSubscriptionMethod,Mu as interval,yu as isHigher,gu as isHigherOrEqual,qr as isInvariantQuality,Pr as isLower,xu as isLowerOrEqual,mn as isMobile,te as isNonNullable,Sr as isNullable,My as loadVKLangPack,De as map,En as mapTo,yn as merge,$ as noop,uu as now,ju as observableFrom,Au as observeElementSize,_n as once,Rn as pairwise,_r as safeStorage,Pn as tap,In as throttle,Cr as throttleFn,Lb as timeCodeToString,Lu as timeout,Ou as videoHeightToQuality,wu as videoQualityToHeight,Su as videoSizeToQuality};
|
|
6
|
+
var Os=Object.create;var Pe=Object.defineProperty,Ss=Object.defineProperties,ws=Object.getOwnPropertyDescriptor,Es=Object.getOwnPropertyDescriptors,Rs=Object.getOwnPropertyNames,$t=Object.getOwnPropertySymbols,_s=Object.getPrototypeOf,zt=Object.prototype.hasOwnProperty,Ps=Object.prototype.propertyIsEnumerable;var Ht=Math.pow,Yt=(e,r,t)=>r in e?Pe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,A=(e,r)=>{for(var t in r||(r={}))zt.call(r,t)&&Yt(e,t,r[t]);if($t)for(var t of $t(r))Ps.call(r,t)&&Yt(e,t,r[t]);return e},B=(e,r)=>Ss(e,Es(r));var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),qs=(e,r)=>{for(var t in r)Pe(e,t,{get:r[t],enumerable:!0})},As=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Rs(r))!zt.call(e,o)&&o!==t&&Pe(e,o,{get:()=>r[o],enumerable:!(n=ws(r,o))||n.enumerable});return e};var Cs=(e,r,t)=>(t=e!=null?Os(_s(e)):{},As(r||!e||!e.__esModule?Pe(t,"default",{value:e,enumerable:!0}):t,e));var qe=(e,r,t)=>new Promise((n,o)=>{var i=c=>{try{a(t.next(c))}catch(l){o(l)}},s=c=>{try{a(t.throw(c))}catch(l){o(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);a((t=t.apply(e,r)).next())});var C=u((WT,Cn)=>{"use strict";Cn.exports=function(e){try{return!!e()}catch(r){return!0}}});var Te=u((KT,Nn)=>{"use strict";var Gu=C();Nn.exports=!Gu(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var k=u(($T,jn)=>{"use strict";var Ln=Te(),Mn=Function.prototype,Br=Mn.call,Bu=Ln&&Mn.bind.bind(Br,Br);jn.exports=Ln?Bu:function(e){return function(){return Br.apply(e,arguments)}}});var Be=u((YT,Vn)=>{"use strict";var kn=k(),Uu=kn({}.toString),Qu=kn("".slice);Vn.exports=function(e){return Qu(Uu(e),8,-1)}});var Fn=u((zT,Dn)=>{"use strict";var Wu=k(),Ku=C(),$u=Be(),Ur=Object,Yu=Wu("".split);Dn.exports=Ku(function(){return!Ur("z").propertyIsEnumerable(0)})?function(e){return $u(e)==="String"?Yu(e,""):Ur(e)}:Ur});var Ue=u((HT,Gn)=>{"use strict";Gn.exports=function(e){return e==null}});var Qe=u((XT,Bn)=>{"use strict";var zu=Ue(),Hu=TypeError;Bn.exports=function(e){if(zu(e))throw new Hu("Can't call method on "+e);return e}});var ie=u((JT,Un)=>{"use strict";var Xu=Fn(),Ju=Qe();Un.exports=function(e){return Xu(Ju(e))}});var Wn=u((ZT,Qn)=>{"use strict";Qn.exports=function(){}});var z=u((eh,Kn)=>{"use strict";Kn.exports={}});var S=u((Qr,$n)=>{"use strict";var he=function(e){return e&&e.Math===Math&&e};$n.exports=he(typeof globalThis=="object"&&globalThis)||he(typeof window=="object"&&window)||he(typeof self=="object"&&self)||he(typeof global=="object"&&global)||he(typeof Qr=="object"&&Qr)||function(){return this}()||Function("return this")()});var w=u((rh,Yn)=>{"use strict";var Wr=typeof document=="object"&&document.all;Yn.exports=typeof Wr=="undefined"&&Wr!==void 0?function(e){return typeof e=="function"||e===Wr}:function(e){return typeof e=="function"}});var Xn=u((th,Hn)=>{"use strict";var Zu=S(),ec=w(),zn=Zu.WeakMap;Hn.exports=ec(zn)&&/native code/.test(String(zn))});var V=u((nh,Jn)=>{"use strict";var rc=w();Jn.exports=function(e){return typeof e=="object"?e!==null:rc(e)}});var N=u((oh,Zn)=>{"use strict";var tc=C();Zn.exports=!tc(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var $r=u((ih,ro)=>{"use strict";var nc=S(),eo=V(),Kr=nc.document,oc=eo(Kr)&&eo(Kr.createElement);ro.exports=function(e){return oc?Kr.createElement(e):{}}});var Yr=u((ah,to)=>{"use strict";var ic=N(),ac=C(),sc=$r();to.exports=!ic&&!ac(function(){return Object.defineProperty(sc("div"),"a",{get:function(){return 7}}).a!==7})});var zr=u((sh,no)=>{"use strict";var uc=N(),cc=C();no.exports=uc&&cc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var H=u((uh,oo)=>{"use strict";var lc=V(),pc=String,fc=TypeError;oo.exports=function(e){if(lc(e))return e;throw new fc(pc(e)+" is not an object")}});var W=u((ch,io)=>{"use strict";var vc=Te(),We=Function.prototype.call;io.exports=vc?We.bind(We):function(){return We.apply(We,arguments)}});var Ke=u((lh,ao)=>{"use strict";ao.exports={}});var Jr=u((ph,uo)=>{"use strict";var Hr=Ke(),Xr=S(),dc=w(),so=function(e){return dc(e)?e:void 0};uo.exports=function(e,r){return arguments.length<2?so(Hr[e])||so(Xr[e]):Hr[e]&&Hr[e][r]||Xr[e]&&Xr[e][r]}});var Zr=u((fh,co)=>{"use strict";var bc=k();co.exports=bc({}.isPrototypeOf)});var vo=u((vh,fo)=>{"use strict";var mc=S(),lo=mc.navigator,po=lo&&lo.userAgent;fo.exports=po?String(po):""});var xo=u((dh,go)=>{"use strict";var yo=S(),et=vo(),bo=yo.process,mo=yo.Deno,To=bo&&bo.versions||mo&&mo.version,ho=To&&To.v8,P,$e;ho&&(P=ho.split("."),$e=P[0]>0&&P[0]<4?1:+(P[0]+P[1]));!$e&&et&&(P=et.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=et.match(/Chrome\/(\d+)/),P&&($e=+P[1])));go.exports=$e});var rt=u((bh,Oo)=>{"use strict";var Io=xo(),Tc=C(),hc=S(),yc=hc.String;Oo.exports=!!Object.getOwnPropertySymbols&&!Tc(function(){var e=Symbol("symbol detection");return!yc(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Io&&Io<41})});var tt=u((mh,So)=>{"use strict";var gc=rt();So.exports=gc&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var nt=u((Th,wo)=>{"use strict";var xc=Jr(),Ic=w(),Oc=Zr(),Sc=tt(),wc=Object;wo.exports=Sc?function(e){return typeof e=="symbol"}:function(e){var r=xc("Symbol");return Ic(r)&&Oc(r.prototype,wc(e))}});var Ye=u((hh,Eo)=>{"use strict";var Ec=String;Eo.exports=function(e){try{return Ec(e)}catch(r){return"Object"}}});var ye=u((yh,Ro)=>{"use strict";var Rc=w(),_c=Ye(),Pc=TypeError;Ro.exports=function(e){if(Rc(e))return e;throw new Pc(_c(e)+" is not a function")}});var ze=u((gh,_o)=>{"use strict";var qc=ye(),Ac=Ue();_o.exports=function(e,r){var t=e[r];return Ac(t)?void 0:qc(t)}});var qo=u((xh,Po)=>{"use strict";var ot=W(),it=w(),at=V(),Cc=TypeError;Po.exports=function(e,r){var t,n;if(r==="string"&&it(t=e.toString)&&!at(n=ot(t,e))||it(t=e.valueOf)&&!at(n=ot(t,e))||r!=="string"&&it(t=e.toString)&&!at(n=ot(t,e)))return n;throw new Cc("Can't convert object to primitive value")}});var ge=u((Ih,Ao)=>{"use strict";Ao.exports=!0});var Lo=u((Oh,No)=>{"use strict";var Co=S(),Nc=Object.defineProperty;No.exports=function(e,r){try{Nc(Co,e,{value:r,configurable:!0,writable:!0})}catch(t){Co[e]=r}return r}});var He=u((Sh,ko)=>{"use strict";var Lc=ge(),Mc=S(),jc=Lo(),Mo="__core-js_shared__",jo=ko.exports=Mc[Mo]||jc(Mo,{});(jo.versions||(jo.versions=[])).push({version:"3.38.0",mode:Lc?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var st=u((wh,Do)=>{"use strict";var Vo=He();Do.exports=function(e,r){return Vo[e]||(Vo[e]=r||{})}});var ut=u((Eh,Fo)=>{"use strict";var kc=Qe(),Vc=Object;Fo.exports=function(e){return Vc(kc(e))}});var D=u((Rh,Go)=>{"use strict";var Dc=k(),Fc=ut(),Gc=Dc({}.hasOwnProperty);Go.exports=Object.hasOwn||function(r,t){return Gc(Fc(r),t)}});var ct=u((_h,Bo)=>{"use strict";var Bc=k(),Uc=0,Qc=Math.random(),Wc=Bc(1 .toString);Bo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Wc(++Uc+Qc,36)}});var F=u((Ph,Qo)=>{"use strict";var Kc=S(),$c=st(),Uo=D(),Yc=ct(),zc=rt(),Hc=tt(),ae=Kc.Symbol,lt=$c("wks"),Xc=Hc?ae.for||ae:ae&&ae.withoutSetter||Yc;Qo.exports=function(e){return Uo(lt,e)||(lt[e]=zc&&Uo(ae,e)?ae[e]:Xc("Symbol."+e)),lt[e]}});var Yo=u((qh,$o)=>{"use strict";var Jc=W(),Wo=V(),Ko=nt(),Zc=ze(),el=qo(),rl=F(),tl=TypeError,nl=rl("toPrimitive");$o.exports=function(e,r){if(!Wo(e)||Ko(e))return e;var t=Zc(e,nl),n;if(t){if(r===void 0&&(r="default"),n=Jc(t,e,r),!Wo(n)||Ko(n))return n;throw new tl("Can't convert object to primitive value")}return r===void 0&&(r="number"),el(e,r)}});var pt=u((Ah,zo)=>{"use strict";var ol=Yo(),il=nt();zo.exports=function(e){var r=ol(e,"string");return il(r)?r:r+""}});var se=u(Xo=>{"use strict";var al=N(),sl=Yr(),ul=zr(),Xe=H(),Ho=pt(),cl=TypeError,ft=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,vt="enumerable",dt="configurable",bt="writable";Xo.f=al?ul?function(r,t,n){if(Xe(r),t=Ho(t),Xe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&bt in n&&!n[bt]){var o=ll(r,t);o&&o[bt]&&(r[t]=n.value,n={configurable:dt in n?n[dt]:o[dt],enumerable:vt in n?n[vt]:o[vt],writable:!1})}return ft(r,t,n)}:ft:function(r,t,n){if(Xe(r),t=Ho(t),Xe(n),sl)try{return ft(r,t,n)}catch(o){}if("get"in n||"set"in n)throw new cl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var xe=u((Nh,Jo)=>{"use strict";Jo.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var ue=u((Lh,Zo)=>{"use strict";var pl=N(),fl=se(),vl=xe();Zo.exports=pl?function(e,r,t){return fl.f(e,r,vl(1,t))}:function(e,r,t){return e[r]=t,e}});var Je=u((Mh,ri)=>{"use strict";var dl=st(),bl=ct(),ei=dl("keys");ri.exports=function(e){return ei[e]||(ei[e]=bl(e))}});var Ze=u((jh,ti)=>{"use strict";ti.exports={}});var ai=u((kh,ii)=>{"use strict";var ml=Xn(),oi=S(),Tl=V(),hl=ue(),mt=D(),Tt=He(),yl=Je(),gl=Ze(),ni="Object already initialized",ht=oi.TypeError,xl=oi.WeakMap,er,Ie,rr,Il=function(e){return rr(e)?Ie(e):er(e,{})},Ol=function(e){return function(r){var t;if(!Tl(r)||(t=Ie(r)).type!==e)throw new ht("Incompatible receiver, "+e+" required");return t}};ml||Tt.state?(q=Tt.state||(Tt.state=new xl),q.get=q.get,q.has=q.has,q.set=q.set,er=function(e,r){if(q.has(e))throw new ht(ni);return r.facade=e,q.set(e,r),r},Ie=function(e){return q.get(e)||{}},rr=function(e){return q.has(e)}):(X=yl("state"),gl[X]=!0,er=function(e,r){if(mt(e,X))throw new ht(ni);return r.facade=e,hl(e,X,r),r},Ie=function(e){return mt(e,X)?e[X]:{}},rr=function(e){return mt(e,X)});var q,X;ii.exports={set:er,get:Ie,has:rr,enforce:Il,getterFor:Ol}});var pi=u((Vh,li)=>{"use strict";var Sl=Te(),ci=Function.prototype,si=ci.apply,ui=ci.call;li.exports=typeof Reflect=="object"&&Reflect.apply||(Sl?ui.bind(si):function(){return ui.apply(si,arguments)})});var yt=u((Dh,fi)=>{"use strict";var wl=Be(),El=k();fi.exports=function(e){if(wl(e)==="Function")return El(e)}});var mi=u(bi=>{"use strict";var vi={}.propertyIsEnumerable,di=Object.getOwnPropertyDescriptor,Rl=di&&!vi.call({1:2},1);bi.f=Rl?function(r){var t=di(this,r);return!!t&&t.enumerable}:vi});var yi=u(hi=>{"use strict";var _l=N(),Pl=W(),ql=mi(),Al=xe(),Cl=ie(),Nl=pt(),Ll=D(),Ml=Yr(),Ti=Object.getOwnPropertyDescriptor;hi.f=_l?Ti:function(r,t){if(r=Cl(r),t=Nl(t),Ml)try{return Ti(r,t)}catch(n){}if(Ll(r,t))return Al(!Pl(ql.f,r,t),r[t])}});var xi=u((Bh,gi)=>{"use strict";var jl=C(),kl=w(),Vl=/#|\.prototype\./,Oe=function(e,r){var t=Fl[Dl(e)];return t===Bl?!0:t===Gl?!1:kl(r)?jl(r):!!r},Dl=Oe.normalize=function(e){return String(e).replace(Vl,".").toLowerCase()},Fl=Oe.data={},Gl=Oe.NATIVE="N",Bl=Oe.POLYFILL="P";gi.exports=Oe});var gt=u((Uh,Oi)=>{"use strict";var Ii=yt(),Ul=ye(),Ql=Te(),Wl=Ii(Ii.bind);Oi.exports=function(e,r){return Ul(e),r===void 0?e:Ql?Wl(e,r):function(){return e.apply(r,arguments)}}});var xt=u((Qh,wi)=>{"use strict";var Se=S(),Kl=pi(),$l=yt(),Yl=w(),zl=yi().f,Hl=xi(),ce=Ke(),Xl=gt(),le=ue(),Si=D();He();var Jl=function(e){var r=function(t,n,o){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,o)}return Kl(e,this,arguments)};return r.prototype=e.prototype,r};wi.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,i=e.proto,s=n?Se:o?Se[t]:Se[t]&&Se[t].prototype,a=n?ce:ce[t]||le(ce,t,{})[t],c=a.prototype,l,p,f,d,b,T,h,x,y;for(d in r)l=Hl(n?d:t+(o?".":"#")+d,e.forced),p=!l&&s&&Si(s,d),T=a[d],p&&(e.dontCallGetSet?(y=zl(s,d),h=y&&y.value):h=s[d]),b=p&&h?h:r[d],!(!l&&!i&&typeof T==typeof b)&&(e.bind&&p?x=Xl(b,Se):e.wrap&&p?x=Jl(b):i&&Yl(b)?x=$l(b):x=b,(e.sham||b&&b.sham||T&&T.sham)&&le(x,"sham",!0),le(a,d,x),i&&(f=t+"Prototype",Si(ce,f)||le(ce,f,{}),le(ce[f],d,b),e.real&&c&&(l||!c[d])&&le(c,d,b)))}});var _i=u((Wh,Ri)=>{"use strict";var It=N(),Zl=D(),Ei=Function.prototype,ep=It&&Object.getOwnPropertyDescriptor,Ot=Zl(Ei,"name"),rp=Ot&&function(){}.name==="something",tp=Ot&&(!It||It&&ep(Ei,"name").configurable);Ri.exports={EXISTS:Ot,PROPER:rp,CONFIGURABLE:tp}});var qi=u((Kh,Pi)=>{"use strict";var np=Math.ceil,op=Math.floor;Pi.exports=Math.trunc||function(r){var t=+r;return(t>0?op:np)(t)}});var St=u(($h,Ai)=>{"use strict";var ip=qi();Ai.exports=function(e){var r=+e;return r!==r||r===0?0:ip(r)}});var Ni=u((Yh,Ci)=>{"use strict";var ap=St(),sp=Math.max,up=Math.min;Ci.exports=function(e,r){var t=ap(e);return t<0?sp(t+r,0):up(t,r)}});var Mi=u((zh,Li)=>{"use strict";var cp=St(),lp=Math.min;Li.exports=function(e){var r=cp(e);return r>0?lp(r,9007199254740991):0}});var wt=u((Hh,ji)=>{"use strict";var pp=Mi();ji.exports=function(e){return pp(e.length)}});var Di=u((Xh,Vi)=>{"use strict";var fp=ie(),vp=Ni(),dp=wt(),ki=function(e){return function(r,t,n){var o=fp(r),i=dp(o);if(i===0)return!e&&-1;var s=vp(n,i),a;if(e&&t!==t){for(;i>s;)if(a=o[s++],a!==a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===t)return e||s||0;return!e&&-1}};Vi.exports={includes:ki(!0),indexOf:ki(!1)}});var Bi=u((Jh,Gi)=>{"use strict";var bp=k(),Et=D(),mp=ie(),Tp=Di().indexOf,hp=Ze(),Fi=bp([].push);Gi.exports=function(e,r){var t=mp(e),n=0,o=[],i;for(i in t)!Et(hp,i)&&Et(t,i)&&Fi(o,i);for(;r.length>n;)Et(t,i=r[n++])&&(~Tp(o,i)||Fi(o,i));return o}});var Rt=u((Zh,Ui)=>{"use strict";Ui.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Wi=u((ey,Qi)=>{"use strict";var yp=Bi(),gp=Rt();Qi.exports=Object.keys||function(r){return yp(r,gp)}});var $i=u(Ki=>{"use strict";var xp=N(),Ip=zr(),Op=se(),Sp=H(),wp=ie(),Ep=Wi();Ki.f=xp&&!Ip?Object.defineProperties:function(r,t){Sp(r);for(var n=wp(t),o=Ep(t),i=o.length,s=0,a;i>s;)Op.f(r,a=o[s++],n[a]);return r}});var zi=u((ty,Yi)=>{"use strict";var Rp=Jr();Yi.exports=Rp("document","documentElement")});var At=u((ny,ta)=>{"use strict";var _p=H(),Pp=$i(),Hi=Rt(),qp=Ze(),Ap=zi(),Cp=$r(),Np=Je(),Xi=">",Ji="<",Pt="prototype",qt="script",ea=Np("IE_PROTO"),_t=function(){},ra=function(e){return Ji+qt+Xi+e+Ji+"/"+qt+Xi},Zi=function(e){e.write(ra("")),e.close();var r=e.parentWindow.Object;return e=null,r},Lp=function(){var e=Cp("iframe"),r="java"+qt+":",t;return e.style.display="none",Ap.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(ra("document.F=Object")),t.close(),t.F},tr,nr=function(){try{tr=new ActiveXObject("htmlfile")}catch(r){}nr=typeof document!="undefined"?document.domain&&tr?Zi(tr):Lp():Zi(tr);for(var e=Hi.length;e--;)delete nr[Pt][Hi[e]];return nr()};qp[ea]=!0;ta.exports=Object.create||function(r,t){var n;return r!==null?(_t[Pt]=_p(r),n=new _t,_t[Pt]=null,n[ea]=r):n=nr(),t===void 0?n:Pp.f(n,t)}});var oa=u((oy,na)=>{"use strict";var Mp=C();na.exports=!Mp(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Nt=u((iy,aa)=>{"use strict";var jp=D(),kp=w(),Vp=ut(),Dp=Je(),Fp=oa(),ia=Dp("IE_PROTO"),Ct=Object,Gp=Ct.prototype;aa.exports=Fp?Ct.getPrototypeOf:function(e){var r=Vp(e);if(jp(r,ia))return r[ia];var t=r.constructor;return kp(t)&&r instanceof t?t.prototype:r instanceof Ct?Gp:null}});var Lt=u((ay,sa)=>{"use strict";var Bp=ue();sa.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Bp(e,r,t),e}});var Vt=u((sy,la)=>{"use strict";var Up=C(),Qp=w(),Wp=V(),Kp=At(),ua=Nt(),$p=Lt(),Yp=F(),zp=ge(),kt=Yp("iterator"),ca=!1,G,Mt,jt;[].keys&&(jt=[].keys(),"next"in jt?(Mt=ua(ua(jt)),Mt!==Object.prototype&&(G=Mt)):ca=!0);var Hp=!Wp(G)||Up(function(){var e={};return G[kt].call(e)!==e});Hp?G={}:zp&&(G=Kp(G));Qp(G[kt])||$p(G,kt,function(){return this});la.exports={IteratorPrototype:G,BUGGY_SAFARI_ITERATORS:ca}});var or=u((uy,fa)=>{"use strict";var Xp=F(),Jp=Xp("toStringTag"),pa={};pa[Jp]="z";fa.exports=String(pa)==="[object z]"});var Dt=u((cy,va)=>{"use strict";var Zp=or(),ef=w(),ir=Be(),rf=F(),tf=rf("toStringTag"),nf=Object,of=ir(function(){return arguments}())==="Arguments",af=function(e,r){try{return e[r]}catch(t){}};va.exports=Zp?ir:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=af(r=nf(e),tf))=="string"?t:of?ir(r):(n=ir(r))==="Object"&&ef(r.callee)?"Arguments":n}});var ba=u((ly,da)=>{"use strict";var sf=or(),uf=Dt();da.exports=sf?{}.toString:function(){return"[object "+uf(this)+"]"}});var ar=u((py,Ta)=>{"use strict";var cf=or(),lf=se().f,pf=ue(),ff=D(),vf=ba(),df=F(),ma=df("toStringTag");Ta.exports=function(e,r,t,n){var o=t?e:e&&e.prototype;o&&(ff(o,ma)||lf(o,ma,{configurable:!0,value:r}),n&&!cf&&pf(o,"toString",vf))}});var ya=u((fy,ha)=>{"use strict";var bf=Vt().IteratorPrototype,mf=At(),Tf=xe(),hf=ar(),yf=z(),gf=function(){return this};ha.exports=function(e,r,t,n){var o=r+" Iterator";return e.prototype=mf(bf,{next:Tf(+!n,t)}),hf(e,o,!1,!0),yf[o]=gf,e}});var xa=u((vy,ga)=>{"use strict";var xf=k(),If=ye();ga.exports=function(e,r,t){try{return xf(If(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Oa=u((dy,Ia)=>{"use strict";var Of=V();Ia.exports=function(e){return Of(e)||e===null}});var wa=u((by,Sa)=>{"use strict";var Sf=Oa(),wf=String,Ef=TypeError;Sa.exports=function(e){if(Sf(e))return e;throw new Ef("Can't set "+wf(e)+" as a prototype")}});var Ra=u((my,Ea)=>{"use strict";var Rf=xa(),_f=V(),Pf=Qe(),qf=wa();Ea.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Rf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(o,i){return Pf(o),qf(i),_f(o)&&(e?t(o,i):o.__proto__=i),o}}():void 0)});var Va=u((Ty,ka)=>{"use strict";var Af=xt(),Cf=W(),sr=ge(),Ma=_i(),Nf=w(),Lf=ya(),_a=Nt(),Pa=Ra(),Mf=ar(),jf=ue(),Ft=Lt(),kf=F(),qa=z(),ja=Vt(),Vf=Ma.PROPER,Df=Ma.CONFIGURABLE,Aa=ja.IteratorPrototype,ur=ja.BUGGY_SAFARI_ITERATORS,we=kf("iterator"),Ca="keys",Ee="values",Na="entries",La=function(){return this};ka.exports=function(e,r,t,n,o,i,s){Lf(t,r,n);var a=function(y){if(y===o&&d)return d;if(!ur&&y&&y in p)return p[y];switch(y){case Ca:return function(){return new t(this,y)};case Ee:return function(){return new t(this,y)};case Na:return function(){return new t(this,y)}}return function(){return new t(this)}},c=r+" Iterator",l=!1,p=e.prototype,f=p[we]||p["@@iterator"]||o&&p[o],d=!ur&&f||a(o),b=r==="Array"&&p.entries||f,T,h,x;if(b&&(T=_a(b.call(new e)),T!==Object.prototype&&T.next&&(!sr&&_a(T)!==Aa&&(Pa?Pa(T,Aa):Nf(T[we])||Ft(T,we,La)),Mf(T,c,!0,!0),sr&&(qa[c]=La))),Vf&&o===Ee&&f&&f.name!==Ee&&(!sr&&Df?jf(p,"name",Ee):(l=!0,d=function(){return Cf(f,this)})),o)if(h={values:a(Ee),keys:i?d:a(Ca),entries:a(Na)},s)for(x in h)(ur||l||!(x in p))&&Ft(p,x,h[x]);else Af({target:r,proto:!0,forced:ur||l},h);return(!sr||s)&&p[we]!==d&&Ft(p,we,d,{name:o}),qa[r]=d,h}});var Fa=u((hy,Da)=>{"use strict";Da.exports=function(e,r){return{value:e,done:r}}});var Bt=u((yy,Wa)=>{"use strict";var Ff=ie(),Gt=Wn(),Ga=z(),Ua=ai(),Gf=se().f,Bf=Va(),cr=Fa(),Uf=ge(),Qf=N(),Qa="Array Iterator",Wf=Ua.set,Kf=Ua.getterFor(Qa);Wa.exports=Bf(Array,"Array",function(e,r){Wf(this,{type:Qa,target:Ff(e),index:0,kind:r})},function(){var e=Kf(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=void 0,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 Ba=Ga.Arguments=Ga.Array;Gt("keys");Gt("values");Gt("entries");if(!Uf&&Qf&&Ba.name!=="values")try{Gf(Ba,"name",{value:"values"})}catch(e){}});var $a=u((gy,Ka)=>{"use strict";var $f=F(),Yf=z(),zf=$f("iterator"),Hf=Array.prototype;Ka.exports=function(e){return e!==void 0&&(Yf.Array===e||Hf[zf]===e)}});var Ut=u((xy,za)=>{"use strict";var Xf=Dt(),Ya=ze(),Jf=Ue(),Zf=z(),ev=F(),rv=ev("iterator");za.exports=function(e){if(!Jf(e))return Ya(e,rv)||Ya(e,"@@iterator")||Zf[Xf(e)]}});var Xa=u((Iy,Ha)=>{"use strict";var tv=W(),nv=ye(),ov=H(),iv=Ye(),av=Ut(),sv=TypeError;Ha.exports=function(e,r){var t=arguments.length<2?av(e):r;if(nv(t))return ov(tv(t,e));throw new sv(iv(e)+" is not iterable")}});var es=u((Oy,Za)=>{"use strict";var uv=W(),Ja=H(),cv=ze();Za.exports=function(e,r,t){var n,o;Ja(e);try{if(n=cv(e,"return"),!n){if(r==="throw")throw t;return t}n=uv(n,e)}catch(i){o=!0,n=i}if(r==="throw")throw t;if(o)throw n;return Ja(n),t}});var is=u((Sy,os)=>{"use strict";var lv=gt(),pv=W(),fv=H(),vv=Ye(),dv=$a(),bv=wt(),rs=Zr(),mv=Xa(),Tv=Ut(),ts=es(),hv=TypeError,lr=function(e,r){this.stopped=e,this.result=r},ns=lr.prototype;os.exports=function(e,r,t){var n=t&&t.that,o=!!(t&&t.AS_ENTRIES),i=!!(t&&t.IS_RECORD),s=!!(t&&t.IS_ITERATOR),a=!!(t&&t.INTERRUPTED),c=lv(r,n),l,p,f,d,b,T,h,x=function(g){return l&&ts(l,"normal",g),new lr(!0,g)},y=function(g){return o?(fv(g),a?c(g[0],g[1],x):c(g[0],g[1])):a?c(g,x):c(g)};if(i)l=e.iterator;else if(s)l=e;else{if(p=Tv(e),!p)throw new hv(vv(e)+" is not iterable");if(dv(p)){for(f=0,d=bv(e);d>f;f++)if(b=y(e[f]),b&&rs(ns,b))return b;return new lr(!1)}l=mv(e,p)}for(T=i?e.next:l.next;!(h=pv(T,l)).done;){try{b=y(h.value)}catch(g){ts(l,"throw",g)}if(typeof b=="object"&&b&&rs(ns,b))return b}return new lr(!1)}});var ss=u((wy,as)=>{"use strict";var yv=N(),gv=se(),xv=xe();as.exports=function(e,r,t){yv?gv.f(e,r,xv(0,t)):e[r]=t}});var us=u(()=>{"use strict";var Iv=xt(),Ov=is(),Sv=ss();Iv({target:"Object",stat:!0},{fromEntries:function(r){var t={};return Ov(r,function(n,o){Sv(t,n,o)},{AS_ENTRIES:!0}),t}})});var ls=u((_y,cs)=>{"use strict";Bt();us();var wv=Ke();cs.exports=wv.Object.fromEntries});var fs=u((Py,ps)=>{"use strict";ps.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 ds=u(()=>{"use strict";Bt();var Ev=fs(),Rv=S(),_v=ar(),vs=z();for(pr in Ev)_v(Rv[pr],pr),vs[pr]=vs.Array;var pr});var ms=u((Cy,bs)=>{"use strict";var Pv=ls();ds();bs.exports=Pv});var hs=u((Ny,Ts)=>{"use strict";var qv=ms();Ts.exports=qv});var Ns="1.0.40-dev.ebad2f59.0";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var L=e=>{throw new Error(`${e} is value of unexpected type`)},Ls=e=>{};var $=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var s;let n;t?typeof t=="function"?n={next:t,error:$}:n={next:a=>t.next(a),error:a=>{var c;return(c=t.error)==null?void 0:c.call(t,a)}}:n={next:$,error:$};let o=typeof r=="function"?{next:a=>{try{r(a)}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)},i;try{i=this._subscribe(o)}catch(a){(s=o.error)==null||s.call(o,a)}return new E().add(()=>{switch(o.next=$,o.error=$,typeof i){case"function":i();return;case"object":i.unsubscribe();return;case"undefined":return;default:return L(i)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var U=class extends v{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 o;return(o=n.error)==null?void 0:o.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var fr=class{constructor(){this.log$=new U;this.logs=[];this.log=r=>{let t=B(A({},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(o){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>A({component:r},t))}};var Xt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{};var M="1.8.0";var Jt=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function Ms(e){var r=new Set([e]),t=new Set,n=e.match(Jt);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(c){return c===e};function i(a){return t.add(a),!1}function s(a){return r.add(a),!0}return function(c){if(r.has(c))return!0;if(t.has(c))return!1;var l=c.match(Jt);if(!l)return i(c);var p={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return p.prerelease!=null||o.major!==p.major?i(c):o.major===0?o.minor===p.minor&&o.patch<=p.patch?s(c):i(c):o.minor<=p.minor?s(c):i(c)}}var Zt=Ms(M);var js=M.split(".")[0],pe=Symbol.for("opentelemetry.js.api."+js),fe=Xt;function J(e,r,t,n){var o;n===void 0&&(n=!1);var i=fe[pe]=(o=fe[pe])!==null&&o!==void 0?o:{version:M};if(!n&&i[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return t.error(s.stack||s.message),!1}if(i.version!==M){var s=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+M);return t.error(s.stack||s.message),!1}return i[e]=r,t.debug("@opentelemetry/api: Registered a global for "+e+" v"+M+"."),!0}function j(e){var r,t,n=(r=fe[pe])===null||r===void 0?void 0:r.version;if(!(!n||!Zt(n)))return(t=fe[pe])===null||t===void 0?void 0:t[e]}function Z(e,r){r.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+M+".");var t=fe[pe];t&&delete t[e]}var ks=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Vs=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},en=function(){function e(r){this._namespace=r.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("debug",this._namespace,r)},e.prototype.error=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("error",this._namespace,r)},e.prototype.info=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("info",this._namespace,r)},e.prototype.warn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("warn",this._namespace,r)},e.prototype.verbose=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ve("verbose",this._namespace,r)},e}();function ve(e,r,t){var n=j("diag");if(n)return t.unshift(r),n[e].apply(n,Vs([],ks(t),!1))}var O;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(O||(O={}));function rn(e,r){e<O.NONE?e=O.NONE:e>O.ALL&&(e=O.ALL),r=r||{};function t(n,o){var i=r[n];return typeof i=="function"&&e>=o?i.bind(r):function(){}}return{error:t("error",O.ERROR),warn:t("warn",O.WARN),info:t("info",O.INFO),debug:t("debug",O.DEBUG),verbose:t("verbose",O.VERBOSE)}}var Ds=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Fs=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},Gs="diag",ee=function(){function e(){function r(o){return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=j("diag");if(a)return a[o].apply(a,Fs([],Ds(i),!1))}}var t=this,n=function(o,i){var s,a,c;if(i===void 0&&(i={logLevel:O.INFO}),o===t){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error((s=l.stack)!==null&&s!==void 0?s:l.message),!1}typeof i=="number"&&(i={logLevel:i});var p=j("diag"),f=rn((a=i.logLevel)!==null&&a!==void 0?a:O.INFO,o);if(p&&!i.suppressOverrideMessage){var d=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";p.warn("Current logger will be overwritten from "+d),f.warn("Current logger will overwrite one already registered from "+d)}return J("diag",f,t,!0)};t.setLogger=n,t.disable=function(){Z(Gs,t)},t.createComponentLogger=function(o){return new en(o)},t.verbose=r("verbose"),t.debug=r("debug"),t.info=r("info"),t.warn=r("warn"),t.error=r("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}();function tn(e){return Symbol.for(e)}var Bs=function(){function e(r){var t=this;t._currentContext=r?new Map(r):new Map,t.getValue=function(n){return t._currentContext.get(n)},t.setValue=function(n,o){var i=new e(t._currentContext);return i._currentContext.set(n,o),i},t.deleteValue=function(n){var o=new e(t._currentContext);return o._currentContext.delete(n),o}}return e}(),nn=new Bs;var Us=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Qs=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},on=function(){function e(){}return e.prototype.active=function(){return nn},e.prototype.with=function(r,t,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return t.call.apply(t,Qs([n],Us(o),!1))},e.prototype.bind=function(r,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}();var Ws=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],s;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},Ks=function(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))},vr="context",$s=new on,re=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(r){return J(vr,r,ee.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(r,t,n){for(var o,i=[],s=3;s<arguments.length;s++)i[s-3]=arguments[s];return(o=this._getContextManager()).with.apply(o,Ks([r,t,n],Ws(i),!1))},e.prototype.bind=function(r,t){return this._getContextManager().bind(r,t)},e.prototype._getContextManager=function(){return j(vr)||$s},e.prototype.disable=function(){this._getContextManager().disable(),Z(vr,ee.instance())},e}();var Ae;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Ae||(Ae={}));var dr="0000000000000000",br="00000000000000000000000000000000",an={traceId:br,spanId:dr,traceFlags:Ae.NONE};var Q=function(){function e(r){r===void 0&&(r=an),this._spanContext=r}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(r,t){return this},e.prototype.setAttributes=function(r){return this},e.prototype.addEvent=function(r,t){return this},e.prototype.setStatus=function(r){return this},e.prototype.updateName=function(r){return this},e.prototype.end=function(r){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(r,t){},e}();var mr=tn("OpenTelemetry Context Key SPAN");function Ce(e){return e.getValue(mr)||void 0}function sn(){return Ce(re.getInstance().active())}function de(e,r){return e.setValue(mr,r)}function un(e){return e.deleteValue(mr)}function cn(e,r){return de(e,new Q(r))}function Ne(e){var r;return(r=Ce(e))===null||r===void 0?void 0:r.spanContext()}var Ys=/^([0-9a-f]{32})$/i,zs=/^[0-9a-f]{16}$/i;function Hs(e){return Ys.test(e)&&e!==br}function Xs(e){return zs.test(e)&&e!==dr}function Le(e){return Hs(e.traceId)&&Xs(e.spanId)}function ln(e){return new Q(e)}var Tr=re.getInstance(),Me=function(){function e(){}return e.prototype.startSpan=function(r,t,n){n===void 0&&(n=Tr.active());var o=!!(t!=null&&t.root);if(o)return new Q;var i=n&&Ne(n);return Js(i)&&Le(i)?new Q(i):new Q},e.prototype.startActiveSpan=function(r,t,n,o){var i,s,a;if(!(arguments.length<2)){arguments.length===2?a=t:arguments.length===3?(i=t,a=n):(i=t,s=n,a=o);var c=s!=null?s:Tr.active(),l=this.startSpan(r,i,c),p=de(c,l);return Tr.with(p,a,void 0,l)}},e}();function Js(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Zs=new Me,pn=function(){function e(r,t,n,o){this._provider=r,this.name=t,this.version=n,this.options=o}return e.prototype.startSpan=function(r,t,n){return this._getTracer().startSpan(r,t,n)},e.prototype.startActiveSpan=function(r,t,n,o){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var r=this._provider.getDelegateTracer(this.name,this.version,this.options);return r?(this._delegate=r,this._delegate):Zs},e}();var fn=function(){function e(){}return e.prototype.getTracer=function(r,t,n){return new Me},e}();var eu=new fn,hr=function(){function e(){}return e.prototype.getTracer=function(r,t,n){var o;return(o=this.getDelegateTracer(r,t,n))!==null&&o!==void 0?o:new pn(this,r,t,n)},e.prototype.getDelegate=function(){var r;return(r=this._delegate)!==null&&r!==void 0?r:eu},e.prototype.setDelegate=function(r){this._delegate=r},e.prototype.getDelegateTracer=function(r,t,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(r,t,n)},e}();var yr=re.getInstance();var gr="trace",vn=function(){function e(){this._proxyTracerProvider=new hr,this.wrapSpanContext=ln,this.isSpanContextValid=Le,this.deleteSpan=un,this.getSpan=Ce,this.getActiveSpan=sn,this.getSpanContext=Ne,this.setSpan=de,this.setSpanContext=cn}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(r){var t=J(gr,this._proxyTracerProvider,ee.instance());return t&&this._proxyTracerProvider.setDelegate(r),t},e.prototype.getTracerProvider=function(){return j(gr)||this._proxyTracerProvider},e.prototype.getTracer=function(r,t){return this.getTracerProvider().getTracer(r,t)},e.prototype.disable=function(){Z(gr,ee.instance()),this._proxyTracerProvider=new hr},e}();var xr=vn.getInstance();import{TracerAllSpansProcessor as ru,TracerMemorySpanExporter as dn,initTracerOpenTelemetry as tu}from"@tracer/opentelemetry";var Ir=class e{constructor({name:r}){}log(r,t){}error(r,t){}critical(r,t){}createComponentTracer(r){return new e({name:r})}end(){}getFinishedSpans(){}getTraceId(){return this.fakeTraceId}},Or=class e{constructor({name:r,parentContext:t,tracer:n}){this.childTracers=[];let o=!n;if(o){let s=tu({serviceName:"videoplayer-sdk-web",appToken:"L9SBoka6ZWk4xPjaK7tmfSfYvMhcge7nvGDjpdMmscb",spanLimits:{attributeCountLimit:1/0,eventCountLimit:1/0,attributePerEventCountLimit:1/0}}).getProvider(),a=new dn,c=new dn;this.spanExporter=a,s.addSpanProcessor(new ru({startedSpansExporter:a,endedSpansExporter:c})),this.tracer=s.getTracer("sdk-videoplayer-tracer")}else this.tracer=n;this.span=this.tracer.startSpan(r,{root:o},t),this.context=xr.setSpan(yr.active(),this.span)}log(r,t){this.span.addEvent(r,B(A({},t),{type:"log"}))}error(r,t){this.span.addEvent(r,B(A({},t),{type:"error"}))}critical(r,t){this.span.addEvent(r,B(A({},t),{type:"critical"}))}static createRootTracer(r=!1){return r?new e({name:"Root"}):new Ir({name:"Root"})}createComponentTracer(r){let t=new e({name:r,parentContext:this.context,tracer:this.tracer});return this.childTracers.push(t),t}end(){this.childTracers.forEach(r=>r.end()),this.span.end()}getFinishedSpans(){var r;return(r=this.spanExporter)==null?void 0:r.getJsonData()}getTraceId(){return this.span.spanContext().traceId}};function nu(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function ou(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function te(e){return typeof e!="undefined"&&e!==null}function Sr(e){return e==null}function iu(e,r){if(!(e!=null&&e.length))throw new Error(r)}function au(e,r){if(e!=null&&e.length)throw new Error(r)}var su=(e,r,t)=>new Promise((n,o)=>{r.addEventListener("abort",()=>{a(),l.remove()});let i=()=>{a(),o()},s=()=>{a(),n()},a=()=>{c&&clearTimeout(c),l.removeEventListener("load",s),l.removeEventListener("error",i)},c;t&&(c=window.setTimeout(i,t));let l=document.createElement("script");l.addEventListener("load",s),l.addEventListener("error",i),l.src=e,document.head.appendChild(l)});var bn,uu=typeof((bn=window.performance)==null?void 0:bn.now)=="function"?()=>window.performance.now():()=>Date.now();var cu=(e,r)=>(...t)=>qe(void 0,null,function*(){var s;let n=r(...t),o=e.aborted,i;for(;!o&&!e.aborted;)try{let a=yield n.next(i);o=(s=a.done)!=null?s:!1,i=a.value}catch(a){yield n.throw(a)}return i});var mn=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)},wr=class{constructor(){this.detect()}get browser(){return this._currentBrowser}get device(){return this._currentDevice}get isTouch(){return this._maxTouchPoints>0}get isIOS(){return["iPhone","iPad","iPod"].includes(this.device)}get isMac(){return this.device==="Mac"}get isApple(){return this.isIOS||this.isMac}get isIphoneOrOldIpad(){if(!this.isApple||!this.isTouch)return!1;let r=this.device==="iPad"||(window==null?void 0:window.screen.width)>700,t=this._iosVersion;return!r||r&&!!t&&t<16}get isAndroid(){return this.device==="Android"}get isMobile(){return this._isMobile}get iOSVersion(){return this._iosVersion}get macVersion(){return this._macVersion}get isYandex(){return this.browser==="Yandex"}get isSafari(){return this.browser==="Safari"}get isSamsungBrowser(){return this.browser==="SamsungBrowser"}get isHDR(){return this._isHdr}detect(){var n;let{userAgent:r,maxTouchPoints:t}=navigator;try{this._maxTouchPoints=t,this._isHdr=!!((n=matchMedia("(dynamic-range: high)"))!=null&&n.matches)}catch(o){console.error(o)}try{this._isMobile=mn()}catch(o){console.error(o)}this.detectBrowser(r),this.detectDevice(r),this.isIOS&&this.detectIOSVersion(),this.isMac&&this.detectMacVersion()}detectBrowser(r){try{let t=/yabrowser/i.test(r)?"Yandex":void 0,n=/samsungbrowser/i.test(r)?"SamsungBrowser":void 0,o=/chrome|crios/i.test(r)?"Chrome":void 0,i=/chromium/i.test(r)?"Chromium":void 0,s=/firefox|fxios/i.test(r)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(r)?"Safari":void 0,c=/opr\//i.test(r)?"Opera":void 0,l=/edg/i.test(r)?"Edge":void 0;this._currentBrowser=t||n||s||c||l||o||i||a||"Rest"}catch(t){console.error(t)}}detectDevice(r){try{let t=/android/i.test(r)?"Android":void 0,n=/iphone/i.test(r)?"iPhone":void 0,o=/ipad/i.test(r)?"iPad":void 0,i=/ipod/i.test(r)?"iPod":void 0,s=/mac/i.test(r)?"Mac":void 0,a=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(r)?"RestMobile":void 0;this._currentDevice=t||n||o||i||a||s||"Desktop"}catch(t){console.error(t)}}detectIOSVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+(\.\d+)?)/i);if(!t)return;let n=t[1],o=parseFloat(n);if(isNaN(o))return;this._iosVersion=o}catch(r){console.error(r)}}detectMacVersion(){try{let{userAgent:r}=window.navigator,t=r.match(/Version\/(\d+)/);if(!t)return;let n=t[1],o=parseInt(n,10);if(isNaN(o))return;this._macVersion=o}catch(r){console.error(r)}}},lu=new wr;var pu=(e,{start:r=0,factor:t=2,max:n=1/0,min:o=r,random:i=0}={})=>{let s=r;return s*=Ht(t,e),s*=1+(Math.random()*i*2-i),s=Math.round(s),s=Math.min(s,n),s=Math.max(s,o),s};var Rr={};qs(Rr,{clear:()=>Tu,get:()=>vu,has:()=>bu,isPersistent:()=>fu,remove:()=>mu,set:()=>du});var I,Y,Er=`vk-videoplayer-dummy-key-${Math.random()}`,ne=()=>{if(Y!==void 0)return Y;try{localStorage.setItem(Er,"test"),localStorage.removeItem(Er),Y=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Er),Y=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Y=2;else throw r}else throw e}return Y===2&&(I=new Map),Y},fu=()=>ne()===0,vu=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 I==null?void 0:I.get(e);default:L(r)}},du=(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:return void(I==null?void 0:I.set(e,r));default:L(t)}},bu=e=>{var t;let r=ne();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=I==null?void 0:I.has(e))!=null?t:!1;default:return L(r),!1}},mu=e=>{let r=ne();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(I==null?void 0:I.delete(e));default:L(r)}},Tu=()=>{let e=ne();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return I==null?void 0:I.clear();default:L(e)}};var hu=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var _r=(p=>(p.INVARIANT="Invariant quality",p.Q_144P="144p",p.Q_240P="240p",p.Q_360P="360p",p.Q_480P="480p",p.Q_720P="720p",p.Q_1080P="1080p",p.Q_1440P="1440p",p.Q_2160P="2160p",p.Q_4320P="4320p",p))(_r||{});var R={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"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}},yu=(e,r)=>R[e].height>R[r].height,gu=(e,r)=>R[e].height>=R[r].height,Pr=(e,r)=>R[e].height<R[r].height,xu=(e,r)=>R[e].height<=R[r].height,Iu=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:Pr(r,t)?1:-1)[0],Tn=Object.keys(R).sort((e,r)=>Pr(e,r)?-1:1),Ou=(e,r=.02)=>[...Tn].find(n=>R[n].height*(1+r)>=e),Su=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return Tn.find(o=>{let i=R[o];return i.width>=n&&i.height>=t})},wu=e=>R[e].height,qr=e=>e==="Invariant quality",Eu=e=>e.every(r=>!qr(r));function Ru(e){if(qr(e))throw new Error("Expected exact quality")}var _u=(e,r)=>{let t={};for(let n of Object.keys(r)){let o=r[n],i=e[n];Array.isArray(o)&&Array.isArray(i)?t[n]=i:typeof o=="object"&&typeof i=="object"?t[n]=_u(i,o):t[n]=n in e?i:o}return t};var Lb=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 Ar(e,r=0,t){let n,o,i,s,a,c,l=0,p=!1,f=!1,d=!0,b=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(p=!!t.leading,f="maxWait"in t,i=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):i,d="trailing"in t?!!t.trailing:d);function T(m){let _=n,K=o;return n=o=void 0,l=m,s=e.apply(K,_),s}function h(m,_){return b?(a&&window.cancelAnimationFrame(a),window.requestAnimationFrame(m)):setTimeout(m,_)}function x(m){if(b){window.cancelAnimationFrame(m);return}clearTimeout(m)}function y(m){return l=m,a=h(Re,r),p?T(m):s}function g(m){let _=m-c,K=m-l,Kt=r-_;return f?Math.min(Kt,i-K):Kt}function Qt(m){let _=m-c,K=m-l;return c===void 0||_>=r||_<0||f&&K>=i}function Re(){let m=Date.now();if(Qt(m))return Wt(m);a=h(Re,g(m))}function Wt(m){return a=void 0,d&&n?T(m):(n=o=void 0,s)}function gs(){a!==void 0&&x(a),l=0,n=c=o=a=void 0}function xs(){return a===void 0?s:Wt(Date.now())}function Is(){return a!==void 0}function _e(...m){let _=Date.now(),K=Qt(_);if(n=m,o=this,c=_,K){if(a===void 0)return y(c);if(f)return a=h(Re,r),T(c)}return a===void 0&&(a=h(Re,r)),s}return _e.cancel=gs,_e.flush=xs,_e.pending=Is,_e}var Cr=(e,r=0,t)=>Ar(e,r,B(A(A({},{leading:!0,trailing:!0}),t),{maxWait:r}));var je=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let o=r(e[n],n,e,t);if(o!==void 0){t[n]=o;continue}}typeof e[n]=="object"?t[n]=je(e[n],r):t[n]=e[n]}return t};var Pu=e=>je(e);var qu=300,Au=(e,r=qu)=>new v(t=>{let{width:n,height:o}=e.getBoundingClientRect();if(t.next({width:n,height:o}),!window.ResizeObserver)return;let i=new ResizeObserver(Cr(s=>{let a=s[0];if(!a)return;let c,l;a.contentBoxSize&&a.contentBoxSize[0]?(l=a.contentBoxSize[0].blockSize,c=a.contentBoxSize[0].inlineSize):a.contentRect&&(c=a.contentRect.width,l=a.contentRect.height),te(c)&&te(l)&&t.next({width:c,height:l})},r));return i.observe(e),()=>i.disconnect()});var ke=(e,r=".")=>{let t={};for(let n in e)if(e.hasOwnProperty(n))if(typeof e[n]=="object"&&e[n]!==null){let o=ke(e[n]);for(let i in o)o.hasOwnProperty(i)&&(t[n+r+i]=o[i])}else t[n]=e[n];return t};var Cu=e=>{e.removeAttribute("src"),e.load()};var Nu=e=>r=>t=>{let n=typeof t=="object";t==null||n&&!Object.keys(t).length||e(r,n?ke(t):{value:t})};var Ve=class extends U{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){let t=super._subscribe(r);return r.next(this.value),t}};function hn(e){return new v(r=>{let t={},n=Object.keys(e).length,o=i=>s=>{i in t||n--,t[i]=s,n===0&&r.next(t)};return Object.entries(e).reduce((i,[s,a])=>i.add(a.subscribe(o(s))),new E)})}function yn(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var Lu=e=>new v(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 Mu=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var ju=e=>new v(r=>{e.forEach(t=>r.next(t))});var ku=(e,r)=>new v(t=>{let n=o=>t.next(o);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function gn(e){return r=>new v(t=>r.subscribe(new Nr(t,e)))}var Nr=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 Vu={leading:!1,trailing:!0};function xn(e,r=Vu){return t=>new v(n=>t.subscribe(new Lr(n,e,r)))}var Lr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,te(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 Du={leading:!0,trailing:!1};function In(e,r=Du){return t=>new v(n=>t.subscribe(new Mr(n,e,r)))}var Mr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Sr(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 On(e){return r=>new v(t=>r.subscribe(new jr(t,e)))}var jr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function wn(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new kr(t,e)))}var Sn={},kr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Sn}next(r){let t;try{t=this.lastValue===Sn||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function De(e){return r=>new v(t=>r.subscribe(new Vr(t,e)))}var Vr=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 En(e){return De(()=>e)}function Rn(){return e=>new v(r=>{let t=!1,n=!1,o=e.subscribe(i=>{t||(t=!0,r.next(i)),n&&o.unsubscribe()},i=>{var s;t=!0,(s=r.error)==null||s.call(r,i),n&&o.unsubscribe()});return n=!0,t&&o.unsubscribe(),o})}function _n(){return e=>new v(r=>e.subscribe(new Dr(r)))}var Dr=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 Pn(e){return r=>new v(t=>r.subscribe(new Fr(t,e)))}var Fr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Fu=(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))(Fu||{});var Fe=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 o=0,i=n.length;o<i;o++)if(n[o].callback===t){n.splice(o,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let o=0,i=n.length;o<i;o++){let s=n[o];try{s.callback.call(this,r)}catch(a){Promise.resolve().then(()=>{throw a})}s.options&&s.options.once&&this.removeEventListener(r.type,s.callback)}return!r.defaultPrevented}},oe=class extends Fe{constructor(){super(),this.listeners||Fe.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},be=class{constructor(){Object.defineProperty(this,"signal",{value:new oe,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(o){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(o){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(be.prototype[Symbol.toStringTag]="AbortController",oe.prototype[Symbol.toStringTag]="AbortSignal");function Ge(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Gr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=e;if(!Ge({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:r,Request:i};let i=t;(i&&!i.prototype.hasOwnProperty("signal")||o)&&(i=function(l,p){let f;p&&p.signal&&(f=p.signal,delete p.signal);let d=new t(l,p);return f&&Object.defineProperty(d,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),d},i.prototype=t.prototype);let s=r;return{fetch:(c,l)=>{let p=i&&i.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(p){let f;try{f=new DOMException("Aborted","AbortError")}catch(b){f=new Error("Aborted"),f.name="AbortError"}if(p.aborted)return Promise.reject(f);let d=new Promise((b,T)=>{p.addEventListener("abort",()=>T(f),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([d,s(c,l)])}return s(c,l)},Request:i}}var me=Ge({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),qn=me?Gr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,An=me?qn.fetch:window.fetch,GT=me?qn.Request:window.Request,BT=me?be:window.AbortController,UT=me?oe:window.AbortSignal;var ys=Cs(hs(),1);var Av=(f=>(f.Armenian="58",f.Azerbaijani="57",f.Belarusian="114",f.English="3",f.Kazakh="97",f.Portuguese="73",f.Russian="0",f.Spanish="4",f.Ukrainian="1",f.Uzbek="65",f.Vietnamese="75",f))(Av||{}),Cv="vk.com",My=(e,r,t)=>qe(void 0,null,function*(){let n=new URL(`https://${Cv}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let i=yield(yield An(n.toString())).json();return Nv(i,t)}),Nv=(e,r)=>(0,ys.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Lv(n)])),Lv=e=>Array.isArray(e)?e[0]:e;var Mv=(t=>(t.RU="ru",t.EN="en",t))(Mv||{});export{Fu as ErrorCategory,Mv as InterfaceLanguage,fr as Logger,v as Observable,U as Subject,E as Subscription,Or as Tracer,Ns as VERSION,Av as VKNumericLanguage,Ve as ValueSubject,_r as VideoQuality,cu as abortable,su as addScript,Eu as areQualitiesExact,au as assertEmptyArray,L as assertNever,nu as assertNonNullable,iu as assertNotEmptyArray,ou as assertNullable,Ru as assertQualityIsExact,gn as buffer,Ls as checkNever,Cu as clearVideoElement,lu as clientChecker,Pu as cloneDeep,je as cloneDeepWith,hn as combine,xn as debounce,Ar as debounceFn,hu as detectEmbed,_u as fillWithDefault,On as filter,wn as filterChanged,ke as flattenObject,ku as fromEvent,pu as getExponentialDelay,Iu as getHighestQuality,Nu as getTraceSubscriptionMethod,Mu as interval,yu as isHigher,gu as isHigherOrEqual,qr as isInvariantQuality,Pr as isLower,xu as isLowerOrEqual,mn as isMobile,te as isNonNullable,Sr as isNullable,My as loadVKLangPack,De as map,En as mapTo,yn as merge,$ as noop,uu as now,ju as observableFrom,Au as observeElementSize,Rn as once,_n as pairwise,Rr as safeStorage,Pn as tap,In as throttle,Cr as throttleFn,Lb as timeCodeToString,Lu as timeout,Ou as videoHeightToQuality,wu as videoQualityToHeight,Su as videoSizeToQuality};
|