@vkontakte/videoplayer-statistics 1.0.52 → 1.0.53-dev.07a23d13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +4 -4
- package/es2015.esm.js +4 -4
- package/es2018.cjs.js +4 -4
- package/es2018.esm.js +4 -4
- package/esnext.cjs.js +4 -4
- package/esnext.esm.js +4 -4
- package/evergreen.esm.js +4 -4
- package/package.json +3 -3
- package/types/Api.d.ts +1 -1
- package/types/OneStat.d.ts +3 -1
- package/types/types.d.ts +1 -0
- package/types/utils/mappers.d.ts +1 -1
package/es2018.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer-statistics v1.0.
|
|
3
|
-
*
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-
|
|
2
|
+
* @vkontakte/videoplayer-statistics v1.0.53-dev.07a23d13.0
|
|
3
|
+
* Fri, 23 Aug 2024 12:58:39 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-0-53/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var cl=Object.create;var Be=Object.defineProperty;var ll=Object.getOwnPropertyDescriptor;var fl=Object.getOwnPropertyNames;var dl=Object.getPrototypeOf,pl=Object.prototype.hasOwnProperty;var n=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),vl=(r,e)=>{for(var t in e)Be(r,t,{get:e[t],enumerable:!0})},Bi=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of fl(e))!pl.call(r,o)&&o!==t&&Be(r,o,{get:()=>e[o],enumerable:!(i=ll(e,o))||i.enumerable});return r};var jr=(r,e,t)=>(t=r!=null?cl(dl(r)):{},Bi(e||!r||!r.__esModule?Be(t,"default",{value:r,enumerable:!0}):t,r)),hl=r=>Bi(Be({},"__esModule",{value:!0}),r);var Ui=n(()=>{"use strict"});var Vi=n(()=>{"use strict"});var P=n((Ki,Gi)=>{"use strict";var Ue=function(r){return r&&r.Math==Math&&r};Gi.exports=Ue(typeof globalThis=="object"&&globalThis)||Ue(typeof window=="object"&&window)||Ue(typeof self=="object"&&self)||Ue(typeof global=="object"&&global)||function(){return this}()||Ki||Function("return this")()});var x=n((mb,Wi)=>{"use strict";Wi.exports=function(r){try{return!!r()}catch(e){return!0}}});var be=n((bb,Hi)=>{"use strict";var gl=x();Hi.exports=!gl(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})});var Fr=n((yb,Ji)=>{"use strict";var ml=be(),Yi=Function.prototype,zi=Yi.apply,Qi=Yi.call;Ji.exports=typeof Reflect=="object"&&Reflect.apply||(ml?Qi.bind(zi):function(){return Qi.apply(zi,arguments)})});var O=n((Sb,eo)=>{"use strict";var Xi=be(),Zi=Function.prototype,Br=Zi.call,bl=Xi&&Zi.bind.bind(Br,Br);eo.exports=Xi?bl:function(r){return function(){return Br.apply(r,arguments)}}});var ee=n((Ib,to)=>{"use strict";var ro=O(),yl=ro({}.toString),Sl=ro("".slice);to.exports=function(r){return Sl(yl(r),8,-1)}});var Ur=n((Eb,io)=>{"use strict";var Il=ee(),El=O();io.exports=function(r){if(Il(r)==="Function")return El(r)}});var Kr=n((qb,oo)=>{"use strict";var Vr=typeof document=="object"&&document.all,ql=typeof Vr=="undefined"&&Vr!==void 0;oo.exports={all:Vr,IS_HTMLDDA:ql}});var I=n((Pb,ao)=>{"use strict";var no=Kr(),Pl=no.all;ao.exports=no.IS_HTMLDDA?function(r){return typeof r=="function"||r===Pl}:function(r){return typeof r=="function"}});var M=n((Tb,so)=>{"use strict";var Tl=x();so.exports=!Tl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var _=n((Ob,uo)=>{"use strict";var Ol=be(),Ve=Function.prototype.call;uo.exports=Ol?Ve.bind(Ve):function(){return Ve.apply(Ve,arguments)}});var po=n(fo=>{"use strict";var co={}.propertyIsEnumerable,lo=Object.getOwnPropertyDescriptor,_l=lo&&!co.call({1:2},1);fo.f=_l?function(e){var t=lo(this,e);return!!t&&t.enumerable}:co});var ye=n((xb,vo)=>{"use strict";vo.exports=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}});var go=n((Rb,ho)=>{"use strict";var xl=O(),Rl=x(),wl=ee(),Gr=Object,Al=xl("".split);ho.exports=Rl(function(){return!Gr("z").propertyIsEnumerable(0)})?function(r){return wl(r)=="String"?Al(r,""):Gr(r)}:Gr});var re=n((wb,mo)=>{"use strict";mo.exports=function(r){return r==null}});var Ke=n((Ab,bo)=>{"use strict";var Cl=re(),Nl=TypeError;bo.exports=function(r){if(Cl(r))throw Nl("Can't call method on "+r);return r}});var te=n((Cb,yo)=>{"use strict";var Ll=go(),kl=Ke();yo.exports=function(r){return Ll(kl(r))}});var j=n((Nb,Eo)=>{"use strict";var So=I(),Io=Kr(),Dl=Io.all;Eo.exports=Io.IS_HTMLDDA?function(r){return typeof r=="object"?r!==null:So(r)||r===Dl}:function(r){return typeof r=="object"?r!==null:So(r)}});var Ge=n((Lb,qo)=>{"use strict";qo.exports={}});var F=n((kb,To)=>{"use strict";var Wr=Ge(),Hr=P(),$l=I(),Po=function(r){return $l(r)?r:void 0};To.exports=function(r,e){return arguments.length<2?Po(Wr[r])||Po(Hr[r]):Wr[r]&&Wr[r][e]||Hr[r]&&Hr[r][e]}});var Se=n((Db,Oo)=>{"use strict";var Ml=O();Oo.exports=Ml({}.isPrototypeOf)});var Ie=n(($b,_o)=>{"use strict";_o.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var Qr=n((Mb,No)=>{"use strict";var Co=P(),zr=Ie(),xo=Co.process,Ro=Co.Deno,wo=xo&&xo.versions||Ro&&Ro.version,Ao=wo&&wo.v8,A,We;Ao&&(A=Ao.split("."),We=A[0]>0&&A[0]<4?1:+(A[0]+A[1]));!We&&zr&&(A=zr.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=zr.match(/Chrome\/(\d+)/),A&&(We=+A[1])));No.exports=We});var Yr=n((jb,ko)=>{"use strict";var Lo=Qr(),jl=x(),Fl=P(),Bl=Fl.String;ko.exports=!!Object.getOwnPropertySymbols&&!jl(function(){var r=Symbol();return!Bl(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&Lo&&Lo<41})});var Jr=n((Fb,Do)=>{"use strict";var Ul=Yr();Do.exports=Ul&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Xr=n((Bb,$o)=>{"use strict";var Vl=F(),Kl=I(),Gl=Se(),Wl=Jr(),Hl=Object;$o.exports=Wl?function(r){return typeof r=="symbol"}:function(r){var e=Vl("Symbol");return Kl(e)&&Gl(e.prototype,Hl(r))}});var Ee=n((Ub,Mo)=>{"use strict";var zl=String;Mo.exports=function(r){try{return zl(r)}catch(e){return"Object"}}});var B=n((Vb,jo)=>{"use strict";var Ql=I(),Yl=Ee(),Jl=TypeError;jo.exports=function(r){if(Ql(r))return r;throw Jl(Yl(r)+" is not a function")}});var qe=n((Kb,Fo)=>{"use strict";var Xl=B(),Zl=re();Fo.exports=function(r,e){var t=r[e];return Zl(t)?void 0:Xl(t)}});var Uo=n((Gb,Bo)=>{"use strict";var Zr=_(),et=I(),rt=j(),ef=TypeError;Bo.exports=function(r,e){var t,i;if(e==="string"&&et(t=r.toString)&&!rt(i=Zr(t,r))||et(t=r.valueOf)&&!rt(i=Zr(t,r))||e!=="string"&&et(t=r.toString)&&!rt(i=Zr(t,r)))return i;throw ef("Can't convert object to primitive value")}});var C=n((Wb,Vo)=>{"use strict";Vo.exports=!0});var Wo=n((Hb,Go)=>{"use strict";var Ko=P(),rf=Object.defineProperty;Go.exports=function(r,e){try{rf(Ko,r,{value:e,configurable:!0,writable:!0})}catch(t){Ko[r]=e}return e}});var He=n((zb,zo)=>{"use strict";var tf=P(),of=Wo(),Ho="__core-js_shared__",nf=tf[Ho]||of(Ho,{});zo.exports=nf});var tt=n((Qb,Yo)=>{"use strict";var af=C(),Qo=He();(Yo.exports=function(r,e){return Qo[r]||(Qo[r]=e!==void 0?e:{})})("versions",[]).push({version:"3.31.0",mode:af?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var ze=n((Yb,Jo)=>{"use strict";var sf=Ke(),uf=Object;Jo.exports=function(r){return uf(sf(r))}});var N=n((Jb,Xo)=>{"use strict";var cf=O(),lf=ze(),ff=cf({}.hasOwnProperty);Xo.exports=Object.hasOwn||function(e,t){return ff(lf(e),t)}});var it=n((Xb,Zo)=>{"use strict";var df=O(),pf=0,vf=Math.random(),hf=df(1 .toString);Zo.exports=function(r){return"Symbol("+(r===void 0?"":r)+")_"+hf(++pf+vf,36)}});var T=n((Zb,rn)=>{"use strict";var gf=P(),mf=tt(),en=N(),bf=it(),yf=Yr(),Sf=Jr(),ie=gf.Symbol,ot=mf("wks"),If=Sf?ie.for||ie:ie&&ie.withoutSetter||bf;rn.exports=function(r){return en(ot,r)||(ot[r]=yf&&en(ie,r)?ie[r]:If("Symbol."+r)),ot[r]}});var an=n((ey,nn)=>{"use strict";var Ef=_(),tn=j(),on=Xr(),qf=qe(),Pf=Uo(),Tf=T(),Of=TypeError,_f=Tf("toPrimitive");nn.exports=function(r,e){if(!tn(r)||on(r))return r;var t=qf(r,_f),i;if(t){if(e===void 0&&(e="default"),i=Ef(t,r,e),!tn(i)||on(i))return i;throw Of("Can't convert object to primitive value")}return e===void 0&&(e="number"),Pf(r,e)}});var Qe=n((ry,sn)=>{"use strict";var xf=an(),Rf=Xr();sn.exports=function(r){var e=xf(r,"string");return Rf(e)?e:e+""}});var Ye=n((ty,cn)=>{"use strict";var wf=P(),un=j(),nt=wf.document,Af=un(nt)&&un(nt.createElement);cn.exports=function(r){return Af?nt.createElement(r):{}}});var at=n((iy,ln)=>{"use strict";var Cf=M(),Nf=x(),Lf=Ye();ln.exports=!Cf&&!Nf(function(){return Object.defineProperty(Lf("div"),"a",{get:function(){return 7}}).a!=7})});var st=n(dn=>{"use strict";var kf=M(),Df=_(),$f=po(),Mf=ye(),jf=te(),Ff=Qe(),Bf=N(),Uf=at(),fn=Object.getOwnPropertyDescriptor;dn.f=kf?fn:function(e,t){if(e=jf(e),t=Ff(t),Uf)try{return fn(e,t)}catch(i){}if(Bf(e,t))return Mf(!Df($f.f,e,t),e[t])}});var ut=n((ny,pn)=>{"use strict";var Vf=x(),Kf=I(),Gf=/#|\.prototype\./,Pe=function(r,e){var t=Hf[Wf(r)];return t==Qf?!0:t==zf?!1:Kf(e)?Vf(e):!!e},Wf=Pe.normalize=function(r){return String(r).replace(Gf,".").toLowerCase()},Hf=Pe.data={},zf=Pe.NATIVE="N",Qf=Pe.POLYFILL="P";pn.exports=Pe});var Te=n((ay,hn)=>{"use strict";var vn=Ur(),Yf=B(),Jf=be(),Xf=vn(vn.bind);hn.exports=function(r,e){return Yf(r),e===void 0?r:Jf?Xf(r,e):function(){return r.apply(e,arguments)}}});var ct=n((sy,gn)=>{"use strict";var Zf=M(),ed=x();gn.exports=Zf&&ed(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var L=n((uy,mn)=>{"use strict";var rd=j(),td=String,id=TypeError;mn.exports=function(r){if(rd(r))return r;throw id(td(r)+" is not an object")}});var W=n(yn=>{"use strict";var od=M(),nd=at(),ad=ct(),Je=L(),bn=Qe(),sd=TypeError,lt=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,ft="enumerable",dt="configurable",pt="writable";yn.f=od?ad?function(e,t,i){if(Je(e),t=bn(t),Je(i),typeof e=="function"&&t==="prototype"&&"value"in i&&pt in i&&!i[pt]){var o=ud(e,t);o&&o[pt]&&(e[t]=i.value,i={configurable:dt in i?i[dt]:o[dt],enumerable:ft in i?i[ft]:o[ft],writable:!1})}return lt(e,t,i)}:lt:function(e,t,i){if(Je(e),t=bn(t),Je(i),nd)try{return lt(e,t,i)}catch(o){}if("get"in i||"set"in i)throw sd("Accessors not supported");return"value"in i&&(e[t]=i.value),e}});var H=n((ly,Sn)=>{"use strict";var cd=M(),ld=W(),fd=ye();Sn.exports=cd?function(r,e,t){return ld.f(r,e,fd(1,t))}:function(r,e,t){return r[e]=t,r}});var k=n((fy,En)=>{"use strict";var Xe=P(),dd=Fr(),pd=Ur(),vd=I(),hd=st().f,gd=ut(),oe=Ge(),md=Te(),ne=H(),In=N(),bd=function(r){var e=function(t,i,o){if(this instanceof e){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,i)}return new r(t,i,o)}return dd(r,this,arguments)};return e.prototype=r.prototype,e};En.exports=function(r,e){var t=r.target,i=r.global,o=r.stat,a=r.proto,u=i?Xe:o?Xe[t]:(Xe[t]||{}).prototype,d=i?oe:oe[t]||ne(oe,t,{})[t],p=d.prototype,l,f,v,s,c,g,b,E,S;for(s in e)l=gd(i?s:t+(o?".":"#")+s,r.forced),f=!l&&u&&In(u,s),g=d[s],f&&(r.dontCallGetSet?(S=hd(u,s),b=S&&S.value):b=u[s]),c=f&&b?b:e[s],!(f&&typeof g==typeof c)&&(r.bind&&f?E=md(c,Xe):r.wrap&&f?E=bd(c):a&&vd(c)?E=pd(c):E=c,(r.sham||c&&c.sham||g&&g.sham)&&ne(E,"sham",!0),ne(d,s,E),a&&(v=t+"Prototype",In(oe,v)||ne(oe,v,{}),ne(oe[v],s,c),r.real&&p&&(l||!p[s])&&ne(p,s,c)))}});var Pn=n((dy,qn)=>{"use strict";var yd=j(),Sd=ee(),Id=T(),Ed=Id("match");qn.exports=function(r){var e;return yd(r)&&((e=r[Ed])!==void 0?!!e:Sd(r)=="RegExp")}});var Ze=n((py,On)=>{"use strict";var qd=T(),Pd=qd("toStringTag"),Tn={};Tn[Pd]="z";On.exports=String(Tn)==="[object z]"});var ae=n((vy,_n)=>{"use strict";var Td=Ze(),Od=I(),er=ee(),_d=T(),xd=_d("toStringTag"),Rd=Object,wd=er(function(){return arguments}())=="Arguments",Ad=function(r,e){try{return r[e]}catch(t){}};_n.exports=Td?er:function(r){var e,t,i;return r===void 0?"Undefined":r===null?"Null":typeof(t=Ad(e=Rd(r),xd))=="string"?t:wd?er(e):(i=er(e))=="Object"&&Od(e.callee)?"Arguments":i}});var Rn=n((hy,xn)=>{"use strict";var Cd=ae(),Nd=String;xn.exports=function(r){if(Cd(r)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Nd(r)}});var An=n((gy,wn)=>{"use strict";var Ld=L();wn.exports=function(){var r=Ld(this),e="";return r.hasIndices&&(e+="d"),r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.unicodeSets&&(e+="v"),r.sticky&&(e+="y"),e}});var Ln=n((my,Nn)=>{"use strict";var kd=_(),Dd=N(),$d=Se(),Md=An(),Cn=RegExp.prototype;Nn.exports=function(r){var e=r.flags;return e===void 0&&!("flags"in Cn)&&!Dd(r,"flags")&&$d(Cn,r)?kd(Md,r):e}});var Dn=n((by,kn)=>{"use strict";var gt=O(),jd=ze(),Fd=Math.floor,vt=gt("".charAt),Bd=gt("".replace),ht=gt("".slice),Ud=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vd=/\$([$&'`]|\d{1,2})/g;kn.exports=function(r,e,t,i,o,a){var u=t+r.length,d=i.length,p=Vd;return o!==void 0&&(o=jd(o),p=Ud),Bd(a,p,function(l,f){var v;switch(vt(f,0)){case"$":return"$";case"&":return r;case"`":return ht(e,0,t);case"'":return ht(e,u);case"<":v=o[ht(f,1,-1)];break;default:var s=+f;if(s===0)return l;if(s>d){var c=Fd(s/10);return c===0?l:c<=d?i[c-1]===void 0?vt(f,1):i[c-1]+vt(f,1):l}v=i[s-1]}return v===void 0?"":v})}});var Bn=n(()=>{"use strict";var Kd=k(),Gd=_(),mt=O(),$n=Ke(),Wd=I(),Hd=re(),zd=Pn(),se=Rn(),Qd=qe(),Yd=Ln(),Jd=Dn(),Xd=T(),Zd=C(),ep=Xd("replace"),rp=TypeError,Fn=mt("".indexOf),tp=mt("".replace),Mn=mt("".slice),ip=Math.max,jn=function(r,e,t){return t>r.length?-1:e===""?t:Fn(r,e,t)};Kd({target:"String",proto:!0},{replaceAll:function(e,t){var i=$n(this),o,a,u,d,p,l,f,v,s,c=0,g=0,b="";if(!Hd(e)){if(o=zd(e),o&&(a=se($n(Yd(e))),!~Fn(a,"g")))throw rp("`.replaceAll` does not allow non-global regexes");if(u=Qd(e,ep),u)return Gd(u,e,i,t);if(Zd&&o)return tp(se(i),e,t)}for(d=se(i),p=se(e),l=Wd(t),l||(t=se(t)),f=p.length,v=ip(1,f),c=jn(d,p,0);c!==-1;)s=l?se(t(p,c,d)):Jd(p,d,c,[],void 0,t),b+=Mn(d,g,c)+s,g=c+f,c=jn(d,p,c+v);return g<d.length&&(b+=Mn(d,g)),b}})});var bt=n((Iy,Un)=>{"use strict";var op=F();Un.exports=op});var Kn=n((Ey,Vn)=>{"use strict";Ui();Vi();Bn();var np=bt();Vn.exports=np("String","replaceAll")});var Wn=n((qy,Gn)=>{"use strict";var ap=Kn();Gn.exports=ap});var zn=n((Py,Hn)=>{"use strict";var sp=Wn();Hn.exports=sp});var ra=n(()=>{"use strict"});var Oe=n((Ny,ta)=>{"use strict";var cp=ee();ta.exports=typeof process!="undefined"&&cp(process)=="process"});var ce=n((Ly,ia)=>{"use strict";var lp=H();ia.exports=function(r,e,t,i){return i&&i.enumerable?r[e]=t:lp(r,e,t),r}});var na=n((ky,oa)=>{"use strict";var fp=O(),dp=B();oa.exports=function(r,e,t){try{return fp(dp(Object.getOwnPropertyDescriptor(r,e)[t]))}catch(i){}}});var sa=n((Dy,aa)=>{"use strict";var pp=I(),vp=String,hp=TypeError;aa.exports=function(r){if(typeof r=="object"||pp(r))return r;throw hp("Can't set "+vp(r)+" as a prototype")}});var It=n(($y,ua)=>{"use strict";var gp=na(),mp=L(),bp=sa();ua.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=gp(Object.prototype,"__proto__","set"),t(e,[]),r=e instanceof Array}catch(i){}return function(o,a){return mp(o),bp(a),r?t(o,a):o.__proto__=a,o}}():void 0)});var la=n((My,ca)=>{"use strict";var yp=Ze(),Sp=ae();ca.exports=yp?{}.toString:function(){return"[object "+Sp(this)+"]"}});var nr=n((jy,da)=>{"use strict";var Ip=Ze(),Ep=W().f,qp=H(),Pp=N(),Tp=la(),Op=T(),fa=Op("toStringTag");da.exports=function(r,e,t,i){if(r){var o=t?r:r.prototype;Pp(o,fa)||Ep(o,fa,{configurable:!0,value:e}),i&&!Ip&&qp(o,"toString",Tp)}}});var va=n((Fy,pa)=>{"use strict";var _p=W();pa.exports=function(r,e,t){return _p.f(r,e,t)}});var ma=n((By,ga)=>{"use strict";var xp=F(),Rp=va(),wp=T(),Ap=M(),ha=wp("species");ga.exports=function(r){var e=xp(r);Ap&&e&&!e[ha]&&Rp(e,ha,{configurable:!0,get:function(){return this}})}});var ya=n((Uy,ba)=>{"use strict";var Cp=Se(),Np=TypeError;ba.exports=function(r,e){if(Cp(e,r))return r;throw Np("Incorrect invocation")}});var qt=n((Vy,Sa)=>{"use strict";var Lp=O(),kp=I(),Et=He(),Dp=Lp(Function.toString);kp(Et.inspectSource)||(Et.inspectSource=function(r){return Dp(r)});Sa.exports=Et.inspectSource});var Oa=n((Ky,Ta)=>{"use strict";var $p=O(),Mp=x(),Ia=I(),jp=ae(),Fp=F(),Bp=qt(),Ea=function(){},Up=[],qa=Fp("Reflect","construct"),Pt=/^\s*(?:class|function)\b/,Vp=$p(Pt.exec),Kp=!Pt.exec(Ea),_e=function(e){if(!Ia(e))return!1;try{return qa(Ea,Up,e),!0}catch(t){return!1}},Pa=function(e){if(!Ia(e))return!1;switch(jp(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Kp||!!Vp(Pt,Bp(e))}catch(t){return!0}};Pa.sham=!0;Ta.exports=!qa||Mp(function(){var r;return _e(_e.call)||!_e(Object)||!_e(function(){r=!0})||r})?Pa:_e});var xa=n((Gy,_a)=>{"use strict";var Gp=Oa(),Wp=Ee(),Hp=TypeError;_a.exports=function(r){if(Gp(r))return r;throw Hp(Wp(r)+" is not a constructor")}});var Tt=n((Wy,wa)=>{"use strict";var Ra=L(),zp=xa(),Qp=re(),Yp=T(),Jp=Yp("species");wa.exports=function(r,e){var t=Ra(r).constructor,i;return t===void 0||Qp(i=Ra(t)[Jp])?e:zp(i)}});var Ot=n((Hy,Aa)=>{"use strict";var Xp=F();Aa.exports=Xp("document","documentElement")});var Na=n((zy,Ca)=>{"use strict";var Zp=O();Ca.exports=Zp([].slice)});var ka=n((Qy,La)=>{"use strict";var ev=TypeError;La.exports=function(r,e){if(r<e)throw ev("Not enough arguments");return r}});var _t=n((Yy,Da)=>{"use strict";var rv=Ie();Da.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(rv)});var Dt=n((Jy,Ga)=>{"use strict";var R=P(),tv=Fr(),iv=Te(),$a=I(),ov=N(),Ka=x(),Ma=Ot(),nv=Na(),ja=Ye(),av=ka(),sv=_t(),uv=Oe(),Nt=R.setImmediate,Lt=R.clearImmediate,cv=R.process,xt=R.Dispatch,lv=R.Function,Fa=R.MessageChannel,fv=R.String,Rt=0,xe={},Ba="onreadystatechange",Re,z,wt,At;Ka(function(){Re=R.location});var kt=function(r){if(ov(xe,r)){var e=xe[r];delete xe[r],e()}},Ct=function(r){return function(){kt(r)}},Ua=function(r){kt(r.data)},Va=function(r){R.postMessage(fv(r),Re.protocol+"//"+Re.host)};(!Nt||!Lt)&&(Nt=function(e){av(arguments.length,1);var t=$a(e)?e:lv(e),i=nv(arguments,1);return xe[++Rt]=function(){tv(t,void 0,i)},z(Rt),Rt},Lt=function(e){delete xe[e]},uv?z=function(r){cv.nextTick(Ct(r))}:xt&&xt.now?z=function(r){xt.now(Ct(r))}:Fa&&!sv?(wt=new Fa,At=wt.port2,wt.port1.onmessage=Ua,z=iv(At.postMessage,At)):R.addEventListener&&$a(R.postMessage)&&!R.importScripts&&Re&&Re.protocol!=="file:"&&!Ka(Va)?(z=Va,R.addEventListener("message",Ua,!1)):Ba in ja("script")?z=function(r){Ma.appendChild(ja("script"))[Ba]=function(){Ma.removeChild(this),kt(r)}}:z=function(r){setTimeout(Ct(r),0)});Ga.exports={set:Nt,clear:Lt}});var $t=n((Xy,Ha)=>{"use strict";var Wa=function(){this.head=null,this.tail=null};Wa.prototype={add:function(r){var e={item:r,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var r=this.head;if(r){var e=this.head=r.next;return e===null&&(this.tail=null),r.item}}};Ha.exports=Wa});var Qa=n((Zy,za)=>{"use strict";var dv=Ie();za.exports=/ipad|iphone|ipod/i.test(dv)&&typeof Pebble!="undefined"});var Ja=n((eS,Ya)=>{"use strict";var pv=Ie();Ya.exports=/web0s(?!.*chrome)/i.test(pv)});var ns=n((rS,os)=>{"use strict";var Q=P(),Xa=Te(),vv=st().f,Mt=Dt().set,hv=$t(),gv=_t(),mv=Qa(),bv=Ja(),jt=Oe(),Za=Q.MutationObserver||Q.WebKitMutationObserver,es=Q.document,rs=Q.process,ar=Q.Promise,ts=vv(Q,"queueMicrotask"),Ut=ts&&ts.value,le,Ft,Bt,sr,is;Ut||(we=new hv,Ae=function(){var r,e;for(jt&&(r=rs.domain)&&r.exit();e=we.get();)try{e()}catch(t){throw we.head&&le(),t}r&&r.enter()},!gv&&!jt&&!bv&&Za&&es?(Ft=!0,Bt=es.createTextNode(""),new Za(Ae).observe(Bt,{characterData:!0}),le=function(){Bt.data=Ft=!Ft}):!mv&&ar&&ar.resolve?(sr=ar.resolve(void 0),sr.constructor=ar,is=Xa(sr.then,sr),le=function(){is(Ae)}):jt?le=function(){rs.nextTick(Ae)}:(Mt=Xa(Mt,Q),le=function(){Mt(Ae)}),Ut=function(r){we.head||le(),we.add(r)});var we,Ae;os.exports=Ut});var ss=n((tS,as)=>{"use strict";as.exports=function(r,e){try{arguments.length==1?console.error(r):console.error(r,e)}catch(t){}}});var ur=n((iS,us)=>{"use strict";us.exports=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}}});var fs=n((oS,ls)=>{"use strict";var yv=P(),Sv=I(),cs=yv.WeakMap;ls.exports=Sv(cs)&&/native code/.test(String(cs))});var cr=n((nS,ps)=>{"use strict";var Iv=tt(),Ev=it(),ds=Iv("keys");ps.exports=function(r){return ds[r]||(ds[r]=Ev(r))}});var lr=n((aS,vs)=>{"use strict";vs.exports={}});var Wt=n((sS,ms)=>{"use strict";var qv=fs(),gs=P(),Pv=j(),Tv=H(),Vt=N(),Kt=He(),Ov=cr(),_v=lr(),hs="Object already initialized",Gt=gs.TypeError,xv=gs.WeakMap,fr,Ce,dr,Rv=function(r){return dr(r)?Ce(r):fr(r,{})},wv=function(r){return function(e){var t;if(!Pv(e)||(t=Ce(e)).type!==r)throw Gt("Incompatible receiver, "+r+" required");return t}};qv||Kt.state?(D=Kt.state||(Kt.state=new xv),D.get=D.get,D.has=D.has,D.set=D.set,fr=function(r,e){if(D.has(r))throw Gt(hs);return e.facade=r,D.set(r,e),e},Ce=function(r){return D.get(r)||{}},dr=function(r){return D.has(r)}):(Y=Ov("state"),_v[Y]=!0,fr=function(r,e){if(Vt(r,Y))throw Gt(hs);return e.facade=r,Tv(r,Y,e),e},Ce=function(r){return Vt(r,Y)?r[Y]:{}},dr=function(r){return Vt(r,Y)});var D,Y;ms.exports={set:fr,get:Ce,has:dr,enforce:Rv,getterFor:wv}});var J=n((uS,bs)=>{"use strict";var Av=P();bs.exports=Av.Promise});var Ht=n((cS,ys)=>{"use strict";ys.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"});var Is=n((lS,Ss)=>{"use strict";var Cv=Ht(),Nv=Oe();Ss.exports=!Cv&&!Nv&&typeof window=="object"&&typeof document=="object"});var fe=n((fS,Ps)=>{"use strict";var Lv=P(),Ne=J(),kv=I(),Dv=ut(),$v=qt(),Mv=T(),jv=Is(),Fv=Ht(),Bv=C(),zt=Qr(),Es=Ne&&Ne.prototype,Uv=Mv("species"),Qt=!1,qs=kv(Lv.PromiseRejectionEvent),Vv=Dv("Promise",function(){var r=$v(Ne),e=r!==String(Ne);if(!e&&zt===66||Bv&&!(Es.catch&&Es.finally))return!0;if(!zt||zt<51||!/native code/.test(r)){var t=new Ne(function(a){a(1)}),i=function(a){a(function(){},function(){})},o=t.constructor={};if(o[Uv]=i,Qt=t.then(function(){})instanceof i,!Qt)return!0}return!e&&(jv||Fv)&&!qs});Ps.exports={CONSTRUCTOR:Vv,REJECTION_EVENT:qs,SUBCLASSING:Qt}});var de=n((dS,Os)=>{"use strict";var Ts=B(),Kv=TypeError,Gv=function(r){var e,t;this.promise=new r(function(i,o){if(e!==void 0||t!==void 0)throw Kv("Bad Promise constructor");e=i,t=o}),this.resolve=Ts(e),this.reject=Ts(t)};Os.exports.f=function(r){return new Gv(r)}});var Gs=n(()=>{"use strict";var Wv=k(),Hv=C(),gr=Oe(),G=P(),ge=_(),_s=ce(),xs=It(),zv=nr(),Qv=ma(),Yv=B(),hr=I(),Jv=j(),Xv=ya(),Zv=Tt(),Ns=Dt().set,ei=ns(),eh=ss(),rh=ur(),th=$t(),Ls=Wt(),mr=J(),ri=fe(),ks=de(),br="Promise",Ds=ri.CONSTRUCTOR,ih=ri.REJECTION_EVENT,oh=ri.SUBCLASSING,Yt=Ls.getterFor(br),nh=Ls.set,pe=mr&&mr.prototype,X=mr,pr=pe,$s=G.TypeError,Jt=G.document,ti=G.process,Xt=ks.f,ah=Xt,sh=!!(Jt&&Jt.createEvent&&G.dispatchEvent),Ms="unhandledrejection",uh="rejectionhandled",Rs=0,js=1,ch=2,ii=1,Fs=2,vr,ws,lh,As,Bs=function(r){var e;return Jv(r)&&hr(e=r.then)?e:!1},Us=function(r,e){var t=e.value,i=e.state==js,o=i?r.ok:r.fail,a=r.resolve,u=r.reject,d=r.domain,p,l,f;try{o?(i||(e.rejection===Fs&&dh(e),e.rejection=ii),o===!0?p=t:(d&&d.enter(),p=o(t),d&&(d.exit(),f=!0)),p===r.promise?u($s("Promise-chain cycle")):(l=Bs(p))?ge(l,p,a,u):a(p)):u(t)}catch(v){d&&!f&&d.exit(),u(v)}},Vs=function(r,e){r.notified||(r.notified=!0,ei(function(){for(var t=r.reactions,i;i=t.get();)Us(i,r);r.notified=!1,e&&!r.rejection&&fh(r)}))},Ks=function(r,e,t){var i,o;sh?(i=Jt.createEvent("Event"),i.promise=e,i.reason=t,i.initEvent(r,!1,!0),G.dispatchEvent(i)):i={promise:e,reason:t},!ih&&(o=G["on"+r])?o(i):r===Ms&&eh("Unhandled promise rejection",t)},fh=function(r){ge(Ns,G,function(){var e=r.facade,t=r.value,i=Cs(r),o;if(i&&(o=rh(function(){gr?ti.emit("unhandledRejection",t,e):Ks(Ms,e,t)}),r.rejection=gr||Cs(r)?Fs:ii,o.error))throw o.value})},Cs=function(r){return r.rejection!==ii&&!r.parent},dh=function(r){ge(Ns,G,function(){var e=r.facade;gr?ti.emit("rejectionHandled",e):Ks(uh,e,r.value)})},ve=function(r,e,t){return function(i){r(e,i,t)}},he=function(r,e,t){r.done||(r.done=!0,t&&(r=t),r.value=e,r.state=ch,Vs(r,!0))},Zt=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw $s("Promise can't be resolved itself");var i=Bs(e);i?ei(function(){var o={done:!1};try{ge(i,e,ve(Zt,o,r),ve(he,o,r))}catch(a){he(o,a,r)}}):(r.value=e,r.state=js,Vs(r,!1))}catch(o){he({done:!1},o,r)}}};if(Ds&&(X=function(e){Xv(this,pr),Yv(e),ge(vr,this);var t=Yt(this);try{e(ve(Zt,t),ve(he,t))}catch(i){he(t,i)}},pr=X.prototype,vr=function(e){nh(this,{type:br,done:!1,notified:!1,parent:!1,reactions:new th,rejection:!1,state:Rs,value:void 0})},vr.prototype=_s(pr,"then",function(e,t){var i=Yt(this),o=Xt(Zv(this,X));return i.parent=!0,o.ok=hr(e)?e:!0,o.fail=hr(t)&&t,o.domain=gr?ti.domain:void 0,i.state==Rs?i.reactions.add(o):ei(function(){Us(o,i)}),o.promise}),ws=function(){var r=new vr,e=Yt(r);this.promise=r,this.resolve=ve(Zt,e),this.reject=ve(he,e)},ks.f=Xt=function(r){return r===X||r===lh?new ws(r):ah(r)},!Hv&&hr(mr)&&pe!==Object.prototype)){As=pe.then,oh||_s(pe,"then",function(e,t){var i=this;return new X(function(o,a){ge(As,i,o,a)}).then(e,t)},{unsafe:!0});try{delete pe.constructor}catch(r){}xs&&xs(pe,pr)}Wv({global:!0,constructor:!0,wrap:!0,forced:Ds},{Promise:X});zv(X,br,!1,!0);Qv(br)});var Z=n((hS,Ws)=>{"use strict";Ws.exports={}});var zs=n((gS,Hs)=>{"use strict";var ph=T(),vh=Z(),hh=ph("iterator"),gh=Array.prototype;Hs.exports=function(r){return r!==void 0&&(vh.Array===r||gh[hh]===r)}});var Ys=n((mS,Qs)=>{"use strict";var mh=Math.ceil,bh=Math.floor;Qs.exports=Math.trunc||function(e){var t=+e;return(t>0?bh:mh)(t)}});var oi=n((bS,Js)=>{"use strict";var yh=Ys();Js.exports=function(r){var e=+r;return e!==e||e===0?0:yh(e)}});var Zs=n((yS,Xs)=>{"use strict";var Sh=oi(),Ih=Math.min;Xs.exports=function(r){return r>0?Ih(Sh(r),9007199254740991):0}});var ni=n((SS,eu)=>{"use strict";var Eh=Zs();eu.exports=function(r){return Eh(r.length)}});var ai=n((IS,tu)=>{"use strict";var qh=ae(),ru=qe(),Ph=re(),Th=Z(),Oh=T(),_h=Oh("iterator");tu.exports=function(r){if(!Ph(r))return ru(r,_h)||ru(r,"@@iterator")||Th[qh(r)]}});var ou=n((ES,iu)=>{"use strict";var xh=_(),Rh=B(),wh=L(),Ah=Ee(),Ch=ai(),Nh=TypeError;iu.exports=function(r,e){var t=arguments.length<2?Ch(r):e;if(Rh(t))return wh(xh(t,r));throw Nh(Ah(r)+" is not iterable")}});var su=n((qS,au)=>{"use strict";var Lh=_(),nu=L(),kh=qe();au.exports=function(r,e,t){var i,o;nu(r);try{if(i=kh(r,"return"),!i){if(e==="throw")throw t;return t}i=Lh(i,r)}catch(a){o=!0,i=a}if(e==="throw")throw t;if(o)throw i;return nu(i),t}});var Sr=n((PS,fu)=>{"use strict";var Dh=Te(),$h=_(),Mh=L(),jh=Ee(),Fh=zs(),Bh=ni(),uu=Se(),Uh=ou(),Vh=ai(),cu=su(),Kh=TypeError,yr=function(r,e){this.stopped=r,this.result=e},lu=yr.prototype;fu.exports=function(r,e,t){var i=t&&t.that,o=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),d=!!(t&&t.INTERRUPTED),p=Dh(e,i),l,f,v,s,c,g,b,E=function(q){return l&&cu(l,"normal",q),new yr(!0,q)},S=function(q){return o?(Mh(q),d?p(q[0],q[1],E):p(q[0],q[1])):d?p(q,E):p(q)};if(a)l=r.iterator;else if(u)l=r;else{if(f=Vh(r),!f)throw Kh(jh(r)+" is not iterable");if(Fh(f)){for(v=0,s=Bh(r);s>v;v++)if(c=S(r[v]),c&&uu(lu,c))return c;return new yr(!1)}l=Uh(r,f)}for(g=a?r.next:l.next;!(b=$h(g,l)).done;){try{c=S(b.value)}catch(q){cu(l,"throw",q)}if(typeof c=="object"&&c&&uu(lu,c))return c}return new yr(!1)}});var gu=n((TS,hu)=>{"use strict";var Gh=T(),pu=Gh("iterator"),vu=!1;try{du=0,si={next:function(){return{done:!!du++}},return:function(){vu=!0}},si[pu]=function(){return this},Array.from(si,function(){throw 2})}catch(r){}var du,si;hu.exports=function(r,e){if(!e&&!vu)return!1;var t=!1;try{var i={};i[pu]=function(){return{next:function(){return{done:t=!0}}}},r(i)}catch(o){}return t}});var ui=n((OS,mu)=>{"use strict";var Wh=J(),Hh=gu(),zh=fe().CONSTRUCTOR;mu.exports=zh||!Hh(function(r){Wh.all(r).then(void 0,function(){})})});var bu=n(()=>{"use strict";var Qh=k(),Yh=_(),Jh=B(),Xh=de(),Zh=ur(),eg=Sr(),rg=ui();Qh({target:"Promise",stat:!0,forced:rg},{all:function(e){var t=this,i=Xh.f(t),o=i.resolve,a=i.reject,u=Zh(function(){var d=Jh(t.resolve),p=[],l=0,f=1;eg(e,function(v){var s=l++,c=!1;f++,Yh(d,t,v).then(function(g){c||(c=!0,p[s]=g,--f||o(p))},a)}),--f||o(p)});return u.error&&a(u.value),i.promise}})});var Su=n(()=>{"use strict";var tg=k(),ig=C(),og=fe().CONSTRUCTOR,li=J(),ng=F(),ag=I(),sg=ce(),yu=li&&li.prototype;tg({target:"Promise",proto:!0,forced:og,real:!0},{catch:function(r){return this.then(void 0,r)}});!ig&&ag(li)&&(ci=ng("Promise").prototype.catch,yu.catch!==ci&&sg(yu,"catch",ci,{unsafe:!0}));var ci});var Iu=n(()=>{"use strict";var ug=k(),cg=_(),lg=B(),fg=de(),dg=ur(),pg=Sr(),vg=ui();ug({target:"Promise",stat:!0,forced:vg},{race:function(e){var t=this,i=fg.f(t),o=i.reject,a=dg(function(){var u=lg(t.resolve);pg(e,function(d){cg(u,t,d).then(i.resolve,o)})});return a.error&&o(a.value),i.promise}})});var Eu=n(()=>{"use strict";var hg=k(),gg=_(),mg=de(),bg=fe().CONSTRUCTOR;hg({target:"Promise",stat:!0,forced:bg},{reject:function(e){var t=mg.f(this);return gg(t.reject,void 0,e),t.promise}})});var fi=n((kS,qu)=>{"use strict";var yg=L(),Sg=j(),Ig=de();qu.exports=function(r,e){if(yg(r),Sg(e)&&e.constructor===r)return e;var t=Ig.f(r),i=t.resolve;return i(e),t.promise}});var Ou=n(()=>{"use strict";var Eg=k(),qg=F(),Pu=C(),Pg=J(),Tu=fe().CONSTRUCTOR,Tg=fi(),Og=qg("Promise"),_g=Pu&&!Tu;Eg({target:"Promise",stat:!0,forced:Pu||Tu},{resolve:function(e){return Tg(_g&&this===Og?Pg:this,e)}})});var _u=n(()=>{"use strict";Gs();bu();Su();Iu();Eu();Ou()});var Au=n(()=>{"use strict";var xg=k(),Rg=C(),Ir=J(),wg=x(),Ru=F(),wu=I(),Ag=Tt(),xu=fi(),Cg=ce(),pi=Ir&&Ir.prototype,Ng=!!Ir&&wg(function(){pi.finally.call({then:function(){}},function(){})});xg({target:"Promise",proto:!0,real:!0,forced:Ng},{finally:function(r){var e=Ag(this,Ru("Promise")),t=wu(r);return this.then(t?function(i){return xu(e,r()).then(function(){return i})}:r,t?function(i){return xu(e,r()).then(function(){throw i})}:r)}});!Rg&&wu(Ir)&&(di=Ru("Promise").prototype.finally,pi.finally!==di&&Cg(pi,"finally",di,{unsafe:!0}));var di});var Nu=n((US,Cu)=>{"use strict";ra();_u();Au();var Lg=bt();Cu.exports=Lg("Promise","finally")});var ku=n((VS,Lu)=>{"use strict";var kg=Nu();Lu.exports=kg});var $u=n((KS,Du)=>{"use strict";var Dg=ku();Du.exports=Dg});var ju=n((GS,Mu)=>{"use strict";Mu.exports=function(){}});var Uu=n((WS,Bu)=>{"use strict";var vi=M(),$g=N(),Fu=Function.prototype,Mg=vi&&Object.getOwnPropertyDescriptor,hi=$g(Fu,"name"),jg=hi&&function(){}.name==="something",Fg=hi&&(!vi||vi&&Mg(Fu,"name").configurable);Bu.exports={EXISTS:hi,PROPER:jg,CONFIGURABLE:Fg}});var Ku=n((HS,Vu)=>{"use strict";var Bg=oi(),Ug=Math.max,Vg=Math.min;Vu.exports=function(r,e){var t=Bg(r);return t<0?Ug(t+e,0):Vg(t,e)}});var Hu=n((zS,Wu)=>{"use strict";var Kg=te(),Gg=Ku(),Wg=ni(),Gu=function(r){return function(e,t,i){var o=Kg(e),a=Wg(o),u=Gg(i,a),d;if(r&&t!=t){for(;a>u;)if(d=o[u++],d!=d)return!0}else for(;a>u;u++)if((r||u in o)&&o[u]===t)return r||u||0;return!r&&-1}};Wu.exports={includes:Gu(!0),indexOf:Gu(!1)}});var Yu=n((QS,Qu)=>{"use strict";var Hg=O(),gi=N(),zg=te(),Qg=Hu().indexOf,Yg=lr(),zu=Hg([].push);Qu.exports=function(r,e){var t=zg(r),i=0,o=[],a;for(a in t)!gi(Yg,a)&&gi(t,a)&&zu(o,a);for(;e.length>i;)gi(t,a=e[i++])&&(~Qg(o,a)||zu(o,a));return o}});var mi=n((YS,Ju)=>{"use strict";Ju.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Zu=n((JS,Xu)=>{"use strict";var Jg=Yu(),Xg=mi();Xu.exports=Object.keys||function(e){return Jg(e,Xg)}});var rc=n(ec=>{"use strict";var Zg=M(),em=ct(),rm=W(),tm=L(),im=te(),om=Zu();ec.f=Zg&&!em?Object.defineProperties:function(e,t){tm(e);for(var i=im(t),o=om(t),a=o.length,u=0,d;a>u;)rm.f(e,d=o[u++],i[d]);return e}});var Ii=n((ZS,uc)=>{"use strict";var nm=L(),am=rc(),tc=mi(),sm=lr(),um=Ot(),cm=Ye(),lm=cr(),ic=">",oc="<",yi="prototype",Si="script",ac=lm("IE_PROTO"),bi=function(){},sc=function(r){return oc+Si+ic+r+oc+"/"+Si+ic},nc=function(r){r.write(sc("")),r.close();var e=r.parentWindow.Object;return r=null,e},fm=function(){var r=cm("iframe"),e="java"+Si+":",t;return r.style.display="none",um.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(sc("document.F=Object")),t.close(),t.F},Er,qr=function(){try{Er=new ActiveXObject("htmlfile")}catch(e){}qr=typeof document!="undefined"?document.domain&&Er?nc(Er):fm():nc(Er);for(var r=tc.length;r--;)delete qr[yi][tc[r]];return qr()};sm[ac]=!0;uc.exports=Object.create||function(e,t){var i;return e!==null?(bi[yi]=nm(e),i=new bi,bi[yi]=null,i[ac]=e):i=qr(),t===void 0?i:am.f(i,t)}});var lc=n((eI,cc)=>{"use strict";var dm=x();cc.exports=!dm(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})});var qi=n((rI,dc)=>{"use strict";var pm=N(),vm=I(),hm=ze(),gm=cr(),mm=lc(),fc=gm("IE_PROTO"),Ei=Object,bm=Ei.prototype;dc.exports=mm?Ei.getPrototypeOf:function(r){var e=hm(r);if(pm(e,fc))return e[fc];var t=e.constructor;return vm(t)&&e instanceof t?t.prototype:e instanceof Ei?bm:null}});var _i=n((tI,hc)=>{"use strict";var ym=x(),Sm=I(),Im=j(),Em=Ii(),pc=qi(),qm=ce(),Pm=T(),Tm=C(),Oi=Pm("iterator"),vc=!1,U,Pi,Ti;[].keys&&(Ti=[].keys(),"next"in Ti?(Pi=pc(pc(Ti)),Pi!==Object.prototype&&(U=Pi)):vc=!0);var Om=!Im(U)||ym(function(){var r={};return U[Oi].call(r)!==r});Om?U={}:Tm&&(U=Em(U));Sm(U[Oi])||qm(U,Oi,function(){return this});hc.exports={IteratorPrototype:U,BUGGY_SAFARI_ITERATORS:vc}});var mc=n((iI,gc)=>{"use strict";var _m=_i().IteratorPrototype,xm=Ii(),Rm=ye(),wm=nr(),Am=Z(),Cm=function(){return this};gc.exports=function(r,e,t,i){var o=e+" Iterator";return r.prototype=xm(_m,{next:Rm(+!i,t)}),wm(r,o,!1,!0),Am[o]=Cm,r}});var xc=n((oI,_c)=>{"use strict";var Nm=k(),Lm=_(),Pr=C(),Tc=Uu(),km=I(),Dm=mc(),bc=qi(),yc=It(),$m=nr(),Mm=H(),xi=ce(),jm=T(),Sc=Z(),Oc=_i(),Fm=Tc.PROPER,Bm=Tc.CONFIGURABLE,Ic=Oc.IteratorPrototype,Tr=Oc.BUGGY_SAFARI_ITERATORS,Le=jm("iterator"),Ec="keys",ke="values",qc="entries",Pc=function(){return this};_c.exports=function(r,e,t,i,o,a,u){Dm(t,e,i);var d=function(S){if(S===o&&s)return s;if(!Tr&&S in f)return f[S];switch(S){case Ec:return function(){return new t(this,S)};case ke:return function(){return new t(this,S)};case qc:return function(){return new t(this,S)}}return function(){return new t(this)}},p=e+" Iterator",l=!1,f=r.prototype,v=f[Le]||f["@@iterator"]||o&&f[o],s=!Tr&&v||d(o),c=e=="Array"&&f.entries||v,g,b,E;if(c&&(g=bc(c.call(new r)),g!==Object.prototype&&g.next&&(!Pr&&bc(g)!==Ic&&(yc?yc(g,Ic):km(g[Le])||xi(g,Le,Pc)),$m(g,p,!0,!0),Pr&&(Sc[p]=Pc))),Fm&&o==ke&&v&&v.name!==ke&&(!Pr&&Bm?Mm(f,"name",ke):(l=!0,s=function(){return Lm(v,this)})),o)if(b={values:d(ke),keys:a?s:d(Ec),entries:d(qc)},u)for(E in b)(Tr||l||!(E in f))&&xi(f,E,b[E]);else Nm({target:e,proto:!0,forced:Tr||l},b);return(!Pr||u)&&f[Le]!==s&&xi(f,Le,s,{name:o}),Sc[e]=s,b}});var wc=n((nI,Rc)=>{"use strict";Rc.exports=function(r,e){return{value:r,done:e}}});var wi=n((aI,kc)=>{"use strict";var Um=te(),Ri=ju(),Ac=Z(),Nc=Wt(),Vm=W().f,Km=xc(),Or=wc(),Gm=C(),Wm=M(),Lc="Array Iterator",Hm=Nc.set,zm=Nc.getterFor(Lc);kc.exports=Km(Array,"Array",function(r,e){Hm(this,{type:Lc,target:Um(r),index:0,kind:e})},function(){var r=zm(this),e=r.target,t=r.kind,i=r.index++;return!e||i>=e.length?(r.target=void 0,Or(void 0,!0)):t=="keys"?Or(i,!1):t=="values"?Or(e[i],!1):Or([i,e[i]],!1)},"values");var Cc=Ac.Arguments=Ac.Array;Ri("keys");Ri("values");Ri("entries");if(!Gm&&Wm&&Cc.name!=="values")try{Vm(Cc,"name",{value:"values"})}catch(r){}});var $c=n((sI,Dc)=>{"use strict";var Qm=Qe(),Ym=W(),Jm=ye();Dc.exports=function(r,e,t){var i=Qm(e);i in r?Ym.f(r,i,Jm(0,t)):r[i]=t}});var Mc=n(()=>{"use strict";var Xm=k(),Zm=Sr(),eb=$c();Xm({target:"Object",stat:!0},{fromEntries:function(e){var t={};return Zm(e,function(i,o){eb(t,i,o)},{AS_ENTRIES:!0}),t}})});var Fc=n((lI,jc)=>{"use strict";wi();Mc();var rb=Ge();jc.exports=rb.Object.fromEntries});var Uc=n((fI,Bc)=>{"use strict";Bc.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 Gc=n(()=>{"use strict";wi();var tb=Uc(),ib=P(),ob=ae(),nb=H(),Vc=Z(),ab=T(),Kc=ab("toStringTag");for(_r in tb)Ai=ib[_r],xr=Ai&&Ai.prototype,xr&&ob(xr)!==Kc&&nb(xr,Kc,_r),Vc[_r]=Vc.Array;var Ai,xr,_r});var Hc=n((vI,Wc)=>{"use strict";var sb=Fc();Gc();Wc.exports=sb});var Qc=n((hI,zc)=>{"use strict";var ub=Hc();zc.exports=ub});var fb={};vl(fb,{ApiEnv:()=>ue,ConnectionType:()=>ir,ContentType:()=>tr,InteractiveInterfaceClick:()=>yt,OneStat:()=>Dr,Quality:()=>rr,SeekAction:()=>or,VERSION:()=>De});module.exports=hl(fb);var al=jr(zn(),1);var ue=(u=>(u.PROD="prod",u.VK_ALIAS="vk_alias",u.VIDEOTEST="videotest",u.TEST="test",u.OKCDN="okcdn",u.AUTO="auto",u))(ue||{}),rr=(l=>(l.Q144P="mobile",l.Q240P="lowest",l.Q360P="low",l.Q480P="medium",l.Q720P="high",l.Q1080P="fullhd",l.Q1440P="quadhd",l.Q2160P="ultrahd",l.UNKNOWN="unknown",l))(rr||{}),tr=(c=>(c.MP4="mp4",c.DASH="dash",c.DASH_SEP="dash_sep",c.ONDEMAND_DASH="ondemand_dash",c.HLS="hls",c.ONDEMAND_HLS="ondemand_hls",c.WEBM="webm",c.AV1="av1",c.ONDEMAND_DASH_LIVE="ondemand_dash_live",c.ONDEMAND_HLS_LIVE="ondemand_hls_live",c.WEBRTC="webrtc",c.UNKNOWN="unknown",c.RTMP="rtmp",c))(tr||{});var ir=(i=>(i.HTTP1="http1",i.HTTP2="http2",i.HTTP3="http3",i))(ir||{});var or=(d=>(d.SLIDER="slider",d.DOUBLE_TAP="double_tap",d.TIME_CODE="time_code",d.EPISODE="episode",d.REWIND="rewind",d.LIVE="live",d.UNKNOWN="unknown",d))(or||{}),yt=(a=>(a.GRAPH_SHOW="iGraphShow",a.GRAPH_HIDE="iGraphHide",a.NEXT_AREA="iNextChapterArea",a.NEXT_BUTTON="iNextChapterBtn",a.WATCH_AGAIN="iWatchAgainBtn",a))(yt||{}),Qn={action_play:"ap",action_play_interactive:"api",first_bytes:"fb",player_ready:"pr",first_frame:"ff",seek:"sk",watch_coverage_record:"wr",watch_coverage_live:"wl",empty_buffer:"eb",action_stop:"as",close_at_empty_buffer:"cb",content_error:"er",player_interface_click:"pc",next_movie:"nm",track_switch:"ts",failover:"fo"},Yn={vsid:"si",isid:"is",vid:"vi",place:"pl",quality:"qt",cdn_host:"ch",stat_type:"st",param:"pm",vk_app_id:"va",track_code:"tc",connection_type:"cnt",connection_reused:"cr",cached_data:"cd",live:"lv",muted:"mu",mode:"mo",subtitles:"sb",failover:"fo",download_speed:"ds",manual_quality:"mq",ref_domain:"rd",direct_url:"du"},Jn={unknown:"un",mobile:"m",lowest:"ls",low:"l",medium:"md",high:"h",fullhd:"f",quadhd:"q",ultrahd:"u"},Xn={pip:"pi",fullscreen:"fs",external:"ex",prefetch:"pr",airplay:"ap",chromecast:"cc",invisible:"iv"};var Zn=require("@vkontakte/videoplayer-shared"),up={apiEnv:"vk_alias",requestRetryCount:1,firstFlushTime:5e3,flushDebounceTime:1e4,flushMaxWait:6e4,storageExpiration:36*60*60*1e3,watchCoverageInterval:15e3,disabledOperations:[],disabledCustomFields:[],shorten:!0,maxLoops:100,embedUrlParams:[],useBeacon:!0,synchronizeTime:!0,debugLog:!1,backoff:{start:1e3,factor:1.5,max:5*60*1e3,random:.1}},ea=r=>(0,Zn.fillWithDefault)(r,up);function St(){let r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),e=new Array(36),t=0,i,o;for(o=0;o<36;o++)o===8||o===13||o===18||o===23?e[o]="-":o===14?e[o]="4":(t<=2&&(t=33554432+Math.random()*16777216|0),i=t&15,t=t>>4,e[o]=r[o===19?i&3|8:i]);return e.join("")}var h=require("@vkontakte/videoplayer-shared"),$r=require("@vkontakte/videoplayer-shared");var Rr=jr($u(),1);var Yc=jr(Qc(),1);var Jc=r=>{var o;let{operation:e,custom:t}=r,i=(0,Yc.default)(Object.entries(t).map(([a,u])=>{var l,f,v;let d=(l=Yn[a])!=null?l:a,p=u;return u&&(a==="mode"?p=(f=Xn[u])!=null?f:u:a==="quality"&&(p=(v=Jn[u])!=null?v:u)),[d,p]}));return{...r,operation:(o=Qn[e])!=null?o:e,custom:i}};var De="1.0.52",Xc="CIOPGQJGDIHBABABA",Ci={prod:"https://api.ok.ru",vk_alias:"https://api.mycdn.me",videotest:"https://videotestapi.ok.ru/api",test:"https://apitest.ok.ru",okcdn:"https://api.okcdn.ru",auto:""};var $=require("@vkontakte/videoplayer-shared");var $e=class{constructor(e){this.consequentAuthErrors=0;this.authorized$=new $.ValueSubject(!1);this.params=e}async authorize(e){return this.authToken=e!=null?e:await this.refreshAuthToken(),this._authorizeWithBackoff()}logBeacon(e){let t="log.externalLog",i=this.createLogParams(e),o=this.sessionKey;if(!o)return;this.params.apiTransport.sendBeacon(t,i,o)||this.logRequest(e)}async logRequest(e){var u;let t="log.externalLog",i=this.createLogParams(e),o=(u=this.sessionKey)!=null?u:await this._authorizeWithBackoff();if(!o)return;let a=async(d,p=this.params.config.requestRetryCount)=>{try{return await this.params.apiTransport.sendRequest(t,i,o)}catch(l){if(!l||!("error_code"in l)){this.params.error$.next({id:"logRequestUnknown",category:$.ErrorCategory.NETWORK,message:`Unknown ${t} error`,thrown:l});return}let f=l==null?void 0:l.error_code;switch(f){case 102:case 103:case 104:return this.authorized$.next(!1),this.sessionKey=await this._authorizeWithBackoff(),p>0?a(d,p-1):void 0;case 401:return this.authorized$.next(!1),this.authToken=await this.refreshAuthToken(),this.sessionKey=await this._authorizeWithBackoff(),p>0?a(d,p-1):void 0;default:{this.params.error$.next({id:`LogRequest#${f}`,category:$.ErrorCategory.EXTERNAL_API,message:`${t} error`,data:l});return}}}};return a(e)}destroy(){window.clearTimeout(this.backoffTimeoutId),this.backoffTimeoutId=0}async refreshAuthToken(){if(this.params.refreshAuthToken)return this.refreshAuthTokenPromise||(this.refreshAuthTokenPromise=(0,Rr.default)(this.params.refreshAuthToken(),()=>{this.refreshAuthTokenPromise=void 0})),this.refreshAuthTokenPromise}createLogParams(e){return{collector:"ok.mobile.apps.video",data:JSON.stringify({application:`@vkontakte/videoplayer-statistics:${De}`,platform:this.params.mobile?"M_WEB":"WEB",items:this.params.config.shorten?e.map(Jc):e})}}_authorizeWithBackoff(){if(!this.consequentAuthErrors)return this._authorize();let e=(0,$.getExponentialDelay)(this.consequentAuthErrors,this.params.config.backoff);return new Promise(t=>{this.backoffTimeoutId||(this.backoffTimeoutId=window.setTimeout(()=>{(0,Rr.default)(this._authorize().then(t).catch(i=>this.params.error$.next({id:"AuthorizeBackoff",category:$.ErrorCategory.NETWORK,message:"Otherwise unhandled error in authorization",thrown:i})),()=>this.backoffTimeoutId=0)},e))})}async _authorize(){if(this.authorizePromise)return this.authorizePromise;this.sessionKey=void 0,this.authorized$.next(!1);let e="auth.anonymLogin",t={session_data:{version:2,device_id:this.params.uuid,client_version:De.split("-")[0],client_type:"SDK_JS"}};return this.authToken!==void 0&&(t.session_data.auth_token=this.authToken,t.session_data.version=3),this.authorizePromise=(0,Rr.default)(this.params.apiTransport.sendRequest(e,t).then(i=>{var o;return(!i||!i.session_key)&&this.params.error$.next({id:"AuthorizeFailed",category:$.ErrorCategory.EXTERNAL_API,message:"No session key",data:i}),this.sessionKey=(o=i==null?void 0:i.session_key)!=null?o:void 0,this.sessionKey}).catch(async i=>{this.sessionKey=void 0;let o=i==null?void 0:i.error_code;switch(o){case 401:return this.authToken=await this.refreshAuthToken(),this._authorizeWithBackoff()}o?this.params.error$.next({id:`Authorize#${o}`,category:$.ErrorCategory.EXTERNAL_API,message:"authorize error",data:i}):this.params.error$.next({id:"AuthorizeUnknown",category:$.ErrorCategory.NETWORK,message:"authorize error",thrown:i})}),()=>{this.authorizePromise=void 0,this.consequentAuthErrors=this.sessionKey?0:this.consequentAuthErrors+1,this.authorized$.next(this.sessionKey!==void 0)}),this.authorizePromise}};var wr=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(e,t,i){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:i})}removeEventListener(e,t){if(!(e in this.listeners))return;let i=this.listeners[e];for(let o=0,a=i.length;o<a;o++)if(i[o].callback===t){i.splice(o,1);return}}dispatchEvent(e){if(!(e.type in this.listeners))return;let i=this.listeners[e.type].slice();for(let o=0,a=i.length;o<a;o++){let u=i[o];try{u.callback.call(this,e)}catch(d){Promise.resolve().then(()=>{throw d})}u.options&&u.options.once&&this.removeEventListener(e.type,u.callback)}return!e.defaultPrevented}},me=class extends wr{constructor(){super(),this.listeners||wr.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(e){e.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,e)),super.dispatchEvent(e)}},Me=class{constructor(){Object.defineProperty(this,"signal",{value:new me,writable:!0,configurable:!0})}abort(e){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 i=e;if(i===void 0)if(typeof document=="undefined")i=new Error("This operation was aborted"),i.name="AbortError";else try{i=new DOMException("signal is aborted without reason")}catch(o){i=new Error("This operation was aborted"),i.name="AbortError"}this.signal.reason=i,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(Me.prototype[Symbol.toStringTag]="AbortController",me.prototype[Symbol.toStringTag]="AbortSignal");function Ar(r){return r.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof r.Request=="function"&&!r.Request.prototype.hasOwnProperty("signal")||!r.AbortController}function Ni(r){typeof r=="function"&&(r={fetch:r});let{fetch:e,Request:t=e.Request,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=r;if(!Ar({fetch:e,Request:t,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:e,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||o)&&(a=function(l,f){let v;f&&f.signal&&(v=f.signal,delete f.signal);let s=new t(l,f);return v&&Object.defineProperty(s,"signal",{writable:!1,enumerable:!1,configurable:!0,value:v}),s},a.prototype=t.prototype);let u=e;return{fetch:(p,l)=>{let f=a&&a.prototype.isPrototypeOf(p)?p.signal:l?l.signal:void 0;if(f){let v;try{v=new DOMException("Aborted","AbortError")}catch(c){v=new Error("Aborted"),v.name="AbortError"}if(f.aborted)return Promise.reject(v);let s=new Promise((c,g)=>{f.addEventListener("abort",()=>g(v),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([s,u(p,l)])}return u(p,l)},Request:a}}var je=Ar({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Zc=je?Ni({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Li=je?Zc.fetch:window.fetch,kI=je?Zc.Request:window.Request,DI=je?Me:window.AbortController,$I=je?me:window.AbortSignal;var V=require("@vkontakte/videoplayer-shared");var Fe=class{constructor(e){this.params=e,this.apiKey=e.apiKey,this.apiEnv=e.config.apiEnv,this.apiBaseUrl=Ci[this.apiEnv],this.timeSynchronisation=e.timeSynchronisation,this.isApiBaseUrlFetched=!1}async resolveApiBaseUrl(){var e;if(this.apiEnv!=="auto"||this.isApiBaseUrlFetched)return this.apiBaseUrl;try{let t=atob("aHR0cHM6Ly9kbnMuZ29vZ2xlL3Jlc29sdmU/bmFtZT12aWRlby5fZW5kcG9pbnQub2sucnUmdHlwZT1UWFQ="),o=await(await Li(t,{method:"GET",mode:"cors",cache:"no-cache"})).json(),a=(e=o==null?void 0:o.Answer[0])==null?void 0:e.data;if(!a)throw new Error("Wrong DNS response");return a}catch(t){return this.params.error$.next({id:"OneStat:ApiTransport:resolveApiBaseUrl",category:V.ErrorCategory.NETWORK,message:"Unhandled resolve api base url error",thrown:t}),Ci.vk_alias}finally{this.isApiBaseUrlFetched=!0}}sendBeacon(e,t,i){if(!window.Blob||!window.navigator.sendBeacon)return!1;let o=this._prepareQueryParams({method:e,queryParams:t,sessionKey:i}),a=new window.Blob([o.toString()],{type:"application/x-www-form-urlencoded"});try{return window.navigator.sendBeacon(`${this.apiBaseUrl}/fb.do`,a)}catch(u){this.params.error$.next({id:"OneStat:ApiTransport:sendBeacon",category:V.ErrorCategory.NETWORK,message:"Unhandled beacon error",thrown:u,data:{method:e,params:t}})}return!1}async sendRequest(e,t,i){let o=(0,V.now)(),a=u=>{if(u instanceof TypeError&&["Failed to fetch","NetworkError when attempting to fetch resource."].includes(u.message)){this.params.error$.next({id:"Network",category:V.ErrorCategory.NETWORK,message:"Request failed",thrown:u});return}this.params.error$.next({id:"OneStat:ApiTransport:sendRequest",category:V.ErrorCategory.NETWORK,message:"Unhandled request error",thrown:u,data:{method:e,params:t,sessionKey:i,time:(0,V.now)()-o}})};return this.apiBaseUrl=await this.resolveApiBaseUrl(),Li(`${this.apiBaseUrl}/fb.do`,{method:"post",headers:{"Content-type":"application/x-www-form-urlencoded"},body:this._prepareQueryParams({method:e,queryParams:t,sessionKey:i})}).then(u=>{var f,v;let d=Number(u.headers.get("content-length"))===0,p=new Date((f=u.headers.get("date"))!=null?f:"").getTime(),l=(0,V.now)()-o;if(isFinite(p)&&((v=this.timeSynchronisation)==null||v.addServerTime(p,l)),!d)return u.json().then(s=>Object.prototype.hasOwnProperty.call(s,"error_msg")?Promise.reject(s):s,a)},a)}_prepareQueryParams(e){let t=new URLSearchParams({format:"JSON",method:e.method,application_key:this.apiKey});return e.sessionKey!==void 0&&t.append("session_key",e.sessionKey),Object.entries(e.queryParams).forEach(([i,o])=>t.append(i,typeof o=="string"?o:JSON.stringify(o))),t}};var w=require("@vkontakte/videoplayer-shared"),Cr="onestat_events",ki=r=>e=>e.timestamp+r>=(0,w.now)(),Nr=class{constructor(e){this.unsaltedStorage=[];this.isPaused=!1;this.isUrgent=e=>{let{operation:t}=e;return["action_play","watch_coverage_record","watch_coverage_live"].includes(t)};this.params=e,this.api=e.api,this.error$=e.error$,this.userSalt=e.userSalt,this.loggerDebugLog=e.debugLogger.createComponentLog("stat logger"),this.firstFlush=(0,w.debounceFn)(()=>this.safeFlush(),this.params.config.firstFlushTime,{maxWait:this.params.config.firstFlushTime});let t=w.safeStorage.isPersistent()?this.params.config.flushMaxWait:0;this.debouncedFlush=(0,w.debounceFn)(()=>this.safeFlush(),this.params.config.flushDebounceTime,{maxWait:t}),this.subscription=this.api.authorized$.subscribe(i=>{i&&this.debouncedFlush()}),this.housekeepStorage()}safeFlush(){var e;try{this.flush()}catch(t){this.error$.next({id:"LoggerError",category:w.ErrorCategory.WTF,message:(e=String(t))!=null?e:"Unknown logger error",thrown:t})}}readFromStorage(){let e=w.safeStorage.get(Cr);try{return e?JSON.parse(e):{}}catch(t){}return{}}addToStorage(e){var a;if(!this.userSalt){this.unsaltedStorage.push(e);return}let t=this.readFromStorage(),o=((a=t[this.userSalt])!=null?a:[]).filter(ki(this.params.config.storageExpiration));w.safeStorage.set(Cr,JSON.stringify({...t,[this.userSalt]:[...o,e]}))}getFromStorage(){var i;return this.userSalt?((i=this.readFromStorage()[this.userSalt])!=null?i:[]).filter(ki(this.params.config.storageExpiration)):this.unsaltedStorage}markStorageSent(){if(!this.userSalt){this.unsaltedStorage=[];return}let e=this.readFromStorage();delete e[this.userSalt],w.safeStorage.set(Cr,JSON.stringify(e))}housekeepStorage(){let e=this.readFromStorage();for(let[t,i]of Object.entries(e)){let o=i.filter(ki(this.params.config.storageExpiration));o.length?e[t]=o:delete e[t],this.loggerDebugLog({message:`${i.length} retrieved from storage, ${o.length} of them actual`})}w.safeStorage.set(Cr,JSON.stringify(e))}log(e){this.addToStorage(e),!this.isPaused&&(this.isUrgent(e)?this.flush():this.lastVsid!==e.custom.vsid?this.firstFlush():this.debouncedFlush(),this.lastVsid=e.custom.vsid)}flush(e=!1){let t=this.getFromStorage();t.length!==0&&(this.api.authorized$.getValue()?(e&&this.params.config.useBeacon?(this.loggerDebugLog({message:`Flushing ${t.length} events through beacon`}),this.api.logBeacon(t)):(this.loggerDebugLog({message:`Flushing ${t.length} events`}),this.api.logRequest(t)),this.markStorageSent()):this.api.authorize(),this.firstFlush.cancel(),this.debouncedFlush.cancel())}pause(){this.isPaused=!0,this.debouncedFlush.cancel()}resume(){this.isPaused=!1,this.debouncedFlush()}destroy(){this.subscription.unsubscribe(),this.firstFlush.cancel(),this.debouncedFlush.cancel()}};var m=require("@vkontakte/videoplayer-core"),Di=require("@vkontakte/videoplayer-shared");var el=r=>r&&{[m.VideoQuality.INVARIANT]:"unknown",[m.VideoQuality.Q_144P]:"mobile",[m.VideoQuality.Q_240P]:"lowest",[m.VideoQuality.Q_360P]:"low",[m.VideoQuality.Q_480P]:"medium",[m.VideoQuality.Q_720P]:"high",[m.VideoQuality.Q_1080P]:"fullhd",[m.VideoQuality.Q_1440P]:"quadhd",[m.VideoQuality.Q_2160P]:"ultrahd",[m.VideoQuality.Q_4320P]:"unknown"}[r],$i=r=>r&&{[m.HttpConnectionType.HTTP1]:"http1",[m.HttpConnectionType.HTTP2]:"http2",[m.HttpConnectionType.QUIC]:"http3"}[r],rl=r=>{if(r!==void 0)switch(r){case m.VideoFormat.MPEG:return"mp4";case m.VideoFormat.DASH:case m.VideoFormat.DASH_LIVE:case m.VideoFormat.DASH_STREAMS:return"dash";case m.VideoFormat.DASH_SEP:return"dash_sep";case m.VideoFormat.DASH_ONDEMAND:return"ondemand_dash";case m.VideoFormat.DASH_WEBM:case m.VideoFormat.DASH_LIVE_WEBM:return"webm";case m.VideoFormat.DASH_WEBM_AV1:return"av1";case m.VideoFormat.DASH_LIVE_CMAF:return"ondemand_dash_live";case m.VideoFormat.HLS:case m.VideoFormat.HLS_LIVE:return"hls";case m.VideoFormat.HLS_ONDEMAND:return"ondemand_hls";case m.VideoFormat.HLS_LIVE_CMAF:return"ondemand_hls_live";case m.VideoFormat.WEB_RTC_LIVE:return"webrtc";default:return(0,Di.assertNever)(r)}},Lr=r=>{if(r!==void 0)switch(r){case m.Surface.NONE:case m.Surface.INLINE:return;case m.Surface.FULLSCREEN:return"fullscreen";case m.Surface.SECOND_SCREEN:return"chromecast";case m.Surface.PIP:return"pip";case m.Surface.INVISIBLE:return"invisible";default:return(0,Di.assertNever)(r)}},tl=r=>{switch(r){case"slow-2g":return"poor";case"2g":return"poor";case"3g":return"good";case"4g":return"excellent"}};var kr=class{constructor(e){this.offset=void 0;this.offset=e}getOffset(){var e;return(e=this.offset)!=null?e:0}setOffset(e){this.offset=e}now(){var e;return Date.now()+((e=this.offset)!=null?e:0)}date(e=new Date){var t;return e.setTime(e.getTime()+((t=this.offset)!=null?t:0)),e}addServerTime(e,t){let i=Date.now(),o=e-i-t/2;if(Math.abs(o)<1e3){this.offset=0;return}this.offset===void 0?this.offset=Math.round(o):this.offset=Math.round(.2*o+(1-.2)*this.offset)}};var il=()=>Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0"),ol=()=>Math.floor(Math.random()*18446744073709552e3).toString(36).padStart(13,"0");var Mi=require("@vkontakte/videoplayer-core"),y=require("@vkontakte/videoplayer-shared"),nl=(r,e)=>new y.Observable(t=>{let i=new y.Subscription,o=(0,y.merge)((0,y.fromEvent)(window,"beforeunload"),r.events.willDestruct$),a=new y.ValueSubject(void 0),u;i.add(r.info.isLive$.pipe((0,y.filterChanged)()).subscribe(K=>{u&&(u.unsubscribe(),a.next(void 0)),K?u=r.info.liveTime$.pipe((0,y.map)(Mr=>Mr&&Mr/1e3)).subscribe(a):u=r.info.position$.subscribe(a),i.add(u)}));let{playing$:d,paused$:p}=r.events,l=r.events.willSeek$.pipe((0,y.filter)(()=>r.info.playbackState$.getValue()===Mi.PlaybackState.PLAYING)),f=r.events.seeked$.pipe((0,y.filter)(()=>r.info.playbackState$.getValue()===Mi.PlaybackState.PLAYING)),v=!1,s=new y.Subject;i.add(l.subscribe(()=>{v||s.next(),v=!0})),i.add(f.subscribe(()=>v=!1));let c=new y.Subject,g=new y.Subject,b=(0,y.merge)(d,f,c),E=(0,y.merge)(p,s,o,r.events.looped$,g),S,q=()=>S=a.getValue(),sl=()=>{let K=a.getValue();(0,y.isNullable)(S)||S===K||(0,y.isNullable)(K)||(t.next({from:S,to:K}),S=void 0)},ul=()=>{g.next(),c.next()};if(i.add(b.subscribe(q)),i.add(E.subscribe(sl)),e.forceInterval&&isFinite(e.forceInterval)){let K=0;i.add(b.subscribe(()=>K=window.setTimeout(ul,e.forceInterval))),i.add(E.subscribe(()=>window.clearTimeout(K)))}return i});var lb="_one-stat_",ji=`${lb}uuid`,Fi=()=>{let r=new h.Subscription;return{subscription:r,subscribe:(e,t)=>{e&&r.add(e.subscribe(t))}}},Dr=class{constructor(e,t){this.subscription=new h.Subscription;this.debugLogger=new $r.Logger;this.oneStatDebugLog=this.debugLogger.createComponentLog("onestat");this.loopCounter=0;this.disabled=!1;this.vsid$=new h.ValueSubject(void 0);this.isid$=new h.ValueSubject(void 0);this.seekAction$=new h.ValueSubject("unknown");var p,l,f;this.statContext=e,this.config=ea((p=t.config)!=null?p:{}),(0,h.isNonNullable)(t.apiEnv)&&(this.config.apiEnv=t.apiEnv),this.config.synchronizeTime&&(this.timeSynchronisation=new kr);let i=new h.Subject;this.experimental={error$:i};let o=h.safeStorage.get(ji);o?o.startsWith('"')&&o.endsWith('"')?(this.uuid=(0,al.default)(o,'"',""),h.safeStorage.set(ji,this.uuid)):this.uuid=o:(this.uuid=St(),h.safeStorage.set(ji,this.uuid)),this.resetViewSession(),t.useIsid&&this.isid$.next((l=t.isid)!=null?l:ol());let a=new Fe({apiKey:Xc,config:this.config,error$:i,timeSynchronisation:this.timeSynchronisation});this.api=new $e({config:this.config,apiTransport:a,refreshAuthToken:t.refreshAuthToken,mobile:(f=this.statContext.mobile)!=null?f:!1,uuid:this.uuid,error$:i}),this.logger=new Nr({config:this.config,debugLogger:this.debugLogger,api:this.api,error$:i,userSalt:t.userSalt});let{isEmbed:u,host:d}=(0,$r.detectEmbed)();this.isEmbed=u,this.embedParent=d,this.subscribe()}updateContext(e){this.statContext={...this.statContext,...e}}attachTo(e){let t=new h.Subscription,i=(s,c)=>t.add(s.subscribe(c));i(e.events.willStart$,()=>{let s=e.info.position$.getValue();this.logActionPlay({position:s}),this.statContext.projectId&&this.logActionPlayInteractive()}),i(e.events.looped$,()=>{this.resetViewSession(),++this.loopCounter>this.config.maxLoops&&(this.disabled=!0),this.logActionPlay({position:e.info.position$.getValue()})}),i(e.events.seeked$,()=>{this.logSeek({action:this.seekAction$.getValue(),time:e.info.position$.getValue()}),this.seekAction$.next("unknown")}),i(e.events.paused$,()=>{this.logPause({position:e.info.position$.getValue()})}),i(e.events.willResume$,()=>{this.logPlay()}),i(e.events.started$,()=>{this.statContext.clip&&this.logWatchCoverageRecord({start:0,end:0})}),i(e.events.playing$,()=>{this.logPlaying()}),i(nl(e,{forceInterval:this.config.watchCoverageInterval}),s=>{let c=e.info.isLive$.getValue(),g={start:parseFloat(s.from.toFixed(3)),end:parseFloat(s.to.toFixed(3))};c?this.logWatchCoverageLive(g):this.logWatchCoverageRecord(g)});let o;i(e.info.isStalled$,s=>{s?o=(0,h.now)():((0,h.isNonNullable)(o)&&this.logEmptyBuffer({duration:(0,h.now)()-o}),o=void 0)});let a=!1;t.add(e.events.fatalError$.pipe((0,h.once)()).subscribe(()=>a=!0)),i(e.events.willStop$,()=>{if(e.info.isStalled$.getValue()){let c=(0,h.isNonNullable)(o)?(0,h.now)()-o:void 0;this.logCloseAtEmptyBuffer({duration:c!=null?c:0}),o=void 0}else a||this.logActionStop()}),i(e.events.managedError$,({id:s})=>{this.logError({fatal:!1,errorType:s})}),i(e.events.fatalError$,({id:s})=>{this.logError({fatal:!0,errorType:s})});let u,d,p=!1;i(e.events.firstBytes$,s=>{u=(0,h.now)(),this.logFirstBytes({time:s})}),i(e.events.willStart$,()=>d=(0,h.now)()),i(e.info.currentBuffer$,s=>{!p&&s&&s.end-s.start>0&&(0,h.isNonNullable)(u)&&(this.logPlayerReady({duration:(0,h.now)()-u}),p=!0)}),i(e.events.firstFrame$,()=>{(0,h.isNonNullable)(u)&&!p&&(this.logPlayerReady({duration:(0,h.now)()-u}),p=!0),(0,h.isNonNullable)(d)&&this.logFirstFrame({time:(0,h.now)()-d})});let l;i(e.info.currentVideoStream$,s=>{s&&(l&&s.id!==l&&this.logTrackSwitch(s),l=s.id)});let f;i(e.info.currentAudioStream$,s=>{s&&(f&&s.id!==f&&this.logTrackSwitch(s),f=s.id)}),i(e.info.atLiveEdge$,s=>this.updateContext({liveEdge:s})),i((0,h.combine)({muted:e.info.muted$,volume:e.info.volume$}),({muted:s,volume:c})=>this.updateContext({audible:!s&&c>0})),i(e.info.currentQuality$,s=>this.updateContext({quality:el(s)})),i(e.info.isAutoQualityEnabled$,s=>this.updateContext({autoQuality:s})),i(e.info.currentFormat$,s=>this.updateContext({contentType:rl(s)})),i(e.info.currentPlaybackRate$,s=>this.updateContext({rate:s})),i(e.info.is3DVideo$,s=>this.updateContext({is3d:s}));let v;return i(e.info.hostname$,s=>{let c=v!==void 0&&v!==s;this.updateContext({cdnHostname:s,failover:c}),c&&this.logFailover(s),v=s}),i(e.info.throughputEstimation$,s=>this.updateContext({downloadSpeed:s})),i(e.info.httpConnectionType$,s=>{this.statContext.firstConnectionType||this.updateContext({firstConnectionType:$i(s)}),this.updateContext({connectionType:$i(s)})}),i(e.info.httpConnectionReused$,s=>{(0,h.isNullable)(this.statContext.firstConnectionReused)&&this.updateContext({firstConnectionReused:s}),this.updateContext({connectionReused:s})}),i(e.info.surface$,s=>this.updateContext({mode:Lr(s)})),i((0,h.combine)({current:e.info.currentTextTrack$,available:e.info.availableTextTracks$}),({current:s,available:c})=>{let g=c.find(({id:E})=>E===s),b=g&&(g.isAuto?`${g.language}_auto`:g.language);this.updateContext({subtitles:b})}),this.player=e,this.uiEvents&&this.attachToUi(this.uiEvents),this.resubscribeBeforeunload(),this.subscription.add(t),t}attachToUi(e){this.uiEvents=e;let{subscription:t,subscribe:i}=Fi();return this.player&&(i(e.actionRewind$,()=>{this.player&&(this.resetViewSession(),this.logActionPlay({position:this.player.info.position$.getValue()}))}),i(e.actionSeek$,this.seekAction$),i(e.inPiP$,o=>{var u;let a=o?"pip":Lr((u=this.player)==null?void 0:u.info.surface$.getValue());this.updateContext({mode:a})}),i(e.inFullscreen$,o=>{var u;let a=o?"fullscreen":Lr((u=this.player)==null?void 0:u.info.surface$.getValue());this.updateContext({mode:a})}),i(e.actionSetSubtitle$,o=>this.updateContext({subtitles:o})),i(e.nextMovie$,o=>this.logNextMovie(o)),this.resubscribeBeforeunload(),this.subscription.add(t)),t}attachToAds(e){let{subscription:t,subscribe:i}=Fi();return i(e.slotRequested$,()=>this.logAdSlotRequest()),i(e.started$,o=>this.logAdStarted(o)),i(e.paused$,()=>this.logAdPaused()),i(e.resumed$,()=>this.logAdResumed()),i(e.ended$,()=>this.logAdEnded()),i(e.skipped$,()=>this.logAdSkipped()),i(e.clicked$,()=>this.logAdClicked()),this.resubscribeBeforeunload(),this.subscription.add(t),t}attachToInteractive(e){let{subscription:t,subscribe:i}=Fi();return i(e.click$,o=>this.logInterfaceClick(o)),i(e.nextMovie$,o=>this.logNextMovie(o)),this.resubscribeBeforeunload(),this.subscription.add(t),t}authorize(e){return this.api.authorize(e)}pause(){this.logger.pause(),this.oneStatDebugLog({message:"paused"})}resume(){this.logger.resume(),this.oneStatDebugLog({message:"resumed"})}destroy(){this.logger.flush(),this.subscription.unsubscribe(),this.api.destroy(),this.logger.destroy()}resetViewSession(){this.oneStatDebugLog({message:"VSID reset"}),this.vsid$.next(il())}getDeviceId(){return this.uuid}setFieldBlacklist(){}logInited(){}logReady(e){this.log({operation:"player_ready",param:String(e.time)})}logStarted(...e){this.logActionPlay(...e)}logPlay(){this.log({operation:"play_toggle"})}logPlaying(){this.log({operation:"playing"})}logPause(e){this.log({operation:"pause",param:String(Math.round(e.position))})}logSeek(e){this.log({operation:"seek",param:e.action,time:e.time})}logFirstBytes(e){this.log({operation:"first_bytes",param:String(e.time)})}logFirstFrame(e){this.log({operation:"first_frame",param:String(e.time)})}logError(e){this.log({operation:"content_error",param:`${e.fatal?"fatal":"recoverable"}_${e.errorType}`})}logWatchCoverageRecord(e){this.log({operation:"watch_coverage_record",param:`${e.start}-${e.end}`})}logWatchCoverageLive(e){var a,u;let t=(u=(a=this.timeSynchronisation)==null?void 0:a.getOffset())!=null?u:0,i=e.start+t,o=e.end+t;this.log({operation:"watch_coverage_live",param:`${i}-${o}`})}logEmptyBuffer(e){this.log({operation:"empty_buffer",param:String(e.duration)})}logDownloadSpeed(){}logAdSlotRequest(){this.log({operation:"adv",param:"slot_request"})}logAdStarted(e){this.log({operation:"adv",param:e})}logAdPaused(){this.log({operation:"adv",param:"pause"})}logAdResumed(){this.log({operation:"adv",param:"resume"})}logAdEnded(){this.log({operation:"adv",param:"ended"})}logAdSkipped(){this.log({operation:"adv",param:"skip"})}logAdClicked(){this.log({operation:"adv",param:"click"})}logInterfaceClick(e){this.log({operation:"player_interface_click",param:e})}logNextMovie(e){this.log({operation:"next_movie",param:String(e)})}subscribe(){this.resubscribeBeforeunload();let e=window.navigator.connection;e&&"onchange"in e&&"effectiveType"in e&&this.subscription.add((0,h.merge)((0,h.fromEvent)(e,"change"),(0,h.observableFrom)(["init"])).subscribe(()=>this.updateContext({network:tl(e.effectiveType)}))),this.config.debugLog&&this.debugLogger.log$.subscribe(t=>{console.debug("%c stat ","background:#fa6470;",`component: ${t.component}.`,t.message)})}resubscribeBeforeunload(){var e;(e=this.beforeunloadSubscription)==null||e.unsubscribe(),this.beforeunloadSubscription=(0,h.fromEvent)(window,"beforeunload").subscribe(()=>this.logger.flush(!0)),this.subscription.add(this.beforeunloadSubscription)}logPlayerReady(e){this.log({operation:"player_ready",param:String(Math.round(e.duration))})}logActionPlay(e){this.log({operation:"action_play",param:String(Math.round(e.position))})}logActionPlayInteractive(){this.statContext.projectId&&this.log({operation:"action_play_interactive",param:String(this.statContext.movieId)},{vid:this.statContext.projectId})}logFailover(e){this.log({operation:"failover",param:e})}logCloseAtEmptyBuffer(e){this.log({operation:"close_at_empty_buffer",param:String(Math.round(e.duration))})}logActionStop(){this.log({operation:"action_stop"})}logTrackSwitch(e){this.log({operation:"track_switch",param:e.id})}log(e,t={}){if(this.disabled){this.oneStatDebugLog({message:`operation ${e.operation} but statistics is disabled`});return}if(this.config.disabledOperations.includes(e.operation)){this.oneStatDebugLog({message:`operation ${e.operation} but it is disabled`});return}this.oneStatDebugLog({message:`operation ${e.operation} ${e.param}`});let i=this.createLogItem(e,t);this.logger.log(i)}createLogItem({operation:e,param:t,time:i},o={}){var c,g;let a=(g=(c=this.timeSynchronisation)==null?void 0:c.now())!=null?g:(0,h.now)(),u=this.vsid$.getValue();(0,h.assertNonNullable)(u);let d=this.isid$.getValue(),p=e==="empty_buffer"||e==="close_at_empty_buffer"?this.statContext.connectionType:this.statContext.firstConnectionType,l=this.statContext.firstConnectionReused,f,v;if(this.isEmbed){f=this.embedParent;let b=[...new URLSearchParams(location.search).entries()].filter(([E,S])=>this.config.embedUrlParams.includes(E));v=new URLSearchParams(b).toString()}else this.statContext.place==="direct"&&((this.statContext.refDomain||document.referrer)&&(f=new URL(this.statContext.refDomain||document.referrer).hostname),v=location.href.substring(0,1024));let s={vsid:u,isid:d,vid:this.statContext.movieId,ct:this.statContext.contentType,place:this.isEmbed?"embed":this.statContext.place,quality:this.statContext.quality,cdn_host:this.statContext.cdnHostname,stat_type:this.statContext.autoplay===!0?"auto":this.statContext.autoplay===!1?"":void 0,param:t,vk_app_id:this.statContext.vkAppId,track_code:this.statContext.trackCode,connection_type:p,connection_reused:l===!0?1:l===!1?0:void 0,cached_data:this.statContext.cached===!0?1:this.statContext.cached===!1?0:void 0,live:this.statContext.liveEdge?1:void 0,muted:this.statContext.audible===!1?1:void 0,mode:this.statContext.mode,subtitles:this.statContext.subtitles,download_speed:this.statContext.downloadSpeed,manual_quality:this.statContext.autoQuality?void 0:1,ref_domain:f,direct_url:v,rate:this.statContext.rate===1||(0,h.isNullable)(this.statContext.rate)?void 0:this.statContext.rate.toFixed(2),view_360:this.statContext.is3d?1:void 0,aid:this.statContext.albumId,vk_playlist_id:this.statContext.vkPlaylistId,...o};for(let b of this.config.disabledCustomFields)delete s[b];return{operation:e,type:1,time:i,network:this.statContext.network,timestamp:a,custom:s}}};
|
|
6
|
+
"use strict";var kc=Object.create;var Be=Object.defineProperty;var Dc=Object.getOwnPropertyDescriptor;var $c=Object.getOwnPropertyNames;var Mc=Object.getPrototypeOf,jc=Object.prototype.hasOwnProperty;var n=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Fc=(r,e)=>{for(var t in e)Be(r,t,{get:e[t],enumerable:!0})},Ai=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of $c(e))!jc.call(r,o)&&o!==t&&Be(r,o,{get:()=>e[o],enumerable:!(i=Dc(e,o))||i.enumerable});return r};var Ni=(r,e,t)=>(t=r!=null?kc(Mc(r)):{},Ai(e||!r||!r.__esModule?Be(t,"default",{value:r,enumerable:!0}):t,r)),Bc=r=>Ai(Be({},"__esModule",{value:!0}),r);var Fi=n(()=>{"use strict"});var E=n((jr,Bi)=>{"use strict";var he=function(r){return r&&r.Math===Math&&r};Bi.exports=he(typeof globalThis=="object"&&globalThis)||he(typeof window=="object"&&window)||he(typeof self=="object"&&self)||he(typeof global=="object"&&global)||he(typeof jr=="object"&&jr)||function(){return this}()||Function("return this")()});var q=n((cm,Ui)=>{"use strict";Ui.exports=function(r){try{return!!r()}catch(e){return!0}}});var ge=n((lm,Vi)=>{"use strict";var Vc=q();Vi.exports=!Vc(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})});var Fr=n((fm,Hi)=>{"use strict";var Gc=ge(),Wi=Function.prototype,Gi=Wi.apply,Ki=Wi.call;Hi.exports=typeof Reflect=="object"&&Reflect.apply||(Gc?Ki.bind(Gi):function(){return Ki.apply(Gi,arguments)})});var R=n((dm,Yi)=>{"use strict";var zi=ge(),Qi=Function.prototype,Br=Qi.call,Kc=zi&&Qi.bind.bind(Br,Br);Yi.exports=zi?Kc:function(r){return function(){return Br.apply(r,arguments)}}});var me=n((pm,Xi)=>{"use strict";var Ji=R(),Wc=Ji({}.toString),Hc=Ji("".slice);Xi.exports=function(r){return Hc(Wc(r),8,-1)}});var Ur=n((vm,Zi)=>{"use strict";var zc=me(),Qc=R();Zi.exports=function(r){if(zc(r)==="Function")return Qc(r)}});var P=n((hm,eo)=>{"use strict";var Vr=typeof document=="object"&&document.all;eo.exports=typeof Vr=="undefined"&&Vr!==void 0?function(r){return typeof r=="function"||r===Vr}:function(r){return typeof r=="function"}});var x=n((gm,ro)=>{"use strict";var Yc=q();ro.exports=!Yc(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var C=n((mm,to)=>{"use strict";var Jc=ge(),We=Function.prototype.call;to.exports=Jc?We.bind(We):function(){return We.apply(We,arguments)}});var ao=n(no=>{"use strict";var io={}.propertyIsEnumerable,oo=Object.getOwnPropertyDescriptor,Xc=oo&&!io.call({1:2},1);no.f=Xc?function(e){var t=oo(this,e);return!!t&&t.enumerable}:io});var be=n((ym,so)=>{"use strict";so.exports=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}});var co=n((Im,uo)=>{"use strict";var Zc=R(),el=q(),rl=me(),Gr=Object,tl=Zc("".split);uo.exports=el(function(){return!Gr("z").propertyIsEnumerable(0)})?function(r){return rl(r)==="String"?tl(r,""):Gr(r)}:Gr});var ye=n((Sm,lo)=>{"use strict";lo.exports=function(r){return r==null}});var He=n((Em,fo)=>{"use strict";var il=ye(),ol=TypeError;fo.exports=function(r){if(il(r))throw new ol("Can't call method on "+r);return r}});var Z=n((Pm,po)=>{"use strict";var nl=co(),al=He();po.exports=function(r){return nl(al(r))}});var A=n((Tm,vo)=>{"use strict";var sl=P();vo.exports=function(r){return typeof r=="object"?r!==null:sl(r)}});var ze=n((qm,ho)=>{"use strict";ho.exports={}});var j=n((Om,mo)=>{"use strict";var Kr=ze(),Wr=E(),ul=P(),go=function(r){return ul(r)?r:void 0};mo.exports=function(r,e){return arguments.length<2?go(Kr[r])||go(Wr[r]):Kr[r]&&Kr[r][e]||Wr[r]&&Wr[r][e]}});var Qe=n((_m,bo)=>{"use strict";var cl=R();bo.exports=cl({}.isPrototypeOf)});var ee=n((wm,So)=>{"use strict";var ll=E(),yo=ll.navigator,Io=yo&&yo.userAgent;So.exports=Io?String(Io):""});var zr=n((Rm,_o)=>{"use strict";var Oo=E(),Hr=ee(),Eo=Oo.process,Po=Oo.Deno,To=Eo&&Eo.versions||Po&&Po.version,qo=To&&To.v8,N,Ye;qo&&(N=qo.split("."),Ye=N[0]>0&&N[0]<4?1:+(N[0]+N[1]));!Ye&&Hr&&(N=Hr.match(/Edge\/(\d+)/),(!N||N[1]>=74)&&(N=Hr.match(/Chrome\/(\d+)/),N&&(Ye=+N[1])));_o.exports=Ye});var Qr=n((xm,Ro)=>{"use strict";var wo=zr(),fl=q(),dl=E(),pl=dl.String;Ro.exports=!!Object.getOwnPropertySymbols&&!fl(function(){var r=Symbol("symbol detection");return!pl(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&wo&&wo<41})});var Yr=n((Cm,xo)=>{"use strict";var vl=Qr();xo.exports=vl&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Jr=n((Am,Co)=>{"use strict";var hl=j(),gl=P(),ml=Qe(),bl=Yr(),yl=Object;Co.exports=bl?function(r){return typeof r=="symbol"}:function(r){var e=hl("Symbol");return gl(e)&&ml(e.prototype,yl(r))}});var Ie=n((Nm,Ao)=>{"use strict";var Il=String;Ao.exports=function(r){try{return Il(r)}catch(e){return"Object"}}});var F=n((Lm,No)=>{"use strict";var Sl=P(),El=Ie(),Pl=TypeError;No.exports=function(r){if(Sl(r))return r;throw new Pl(El(r)+" is not a function")}});var Je=n((km,Lo)=>{"use strict";var Tl=F(),ql=ye();Lo.exports=function(r,e){var t=r[e];return ql(t)?void 0:Tl(t)}});var Do=n((Dm,ko)=>{"use strict";var Xr=C(),Zr=P(),et=A(),Ol=TypeError;ko.exports=function(r,e){var t,i;if(e==="string"&&Zr(t=r.toString)&&!et(i=Xr(t,r))||Zr(t=r.valueOf)&&!et(i=Xr(t,r))||e!=="string"&&Zr(t=r.toString)&&!et(i=Xr(t,r)))return i;throw new Ol("Can't convert object to primitive value")}});var D=n(($m,$o)=>{"use strict";$o.exports=!0});var Fo=n((Mm,jo)=>{"use strict";var Mo=E(),_l=Object.defineProperty;jo.exports=function(r,e){try{_l(Mo,r,{value:e,configurable:!0,writable:!0})}catch(t){Mo[r]=e}return e}});var Se=n((jm,Vo)=>{"use strict";var wl=D(),Rl=E(),xl=Fo(),Bo="__core-js_shared__",Uo=Vo.exports=Rl[Bo]||xl(Bo,{});(Uo.versions||(Uo.versions=[])).push({version:"3.38.0",mode:wl?"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 rt=n((Fm,Ko)=>{"use strict";var Go=Se();Ko.exports=function(r,e){return Go[r]||(Go[r]=e||{})}});var tt=n((Bm,Wo)=>{"use strict";var Cl=He(),Al=Object;Wo.exports=function(r){return Al(Cl(r))}});var $=n((Um,Ho)=>{"use strict";var Nl=R(),Ll=tt(),kl=Nl({}.hasOwnProperty);Ho.exports=Object.hasOwn||function(e,t){return kl(Ll(e),t)}});var it=n((Vm,zo)=>{"use strict";var Dl=R(),$l=0,Ml=Math.random(),jl=Dl(1 .toString);zo.exports=function(r){return"Symbol("+(r===void 0?"":r)+")_"+jl(++$l+Ml,36)}});var O=n((Gm,Yo)=>{"use strict";var Fl=E(),Bl=rt(),Qo=$(),Ul=it(),Vl=Qr(),Gl=Yr(),re=Fl.Symbol,ot=Bl("wks"),Kl=Gl?re.for||re:re&&re.withoutSetter||Ul;Yo.exports=function(r){return Qo(ot,r)||(ot[r]=Vl&&Qo(re,r)?re[r]:Kl("Symbol."+r)),ot[r]}});var en=n((Km,Zo)=>{"use strict";var Wl=C(),Jo=A(),Xo=Jr(),Hl=Je(),zl=Do(),Ql=O(),Yl=TypeError,Jl=Ql("toPrimitive");Zo.exports=function(r,e){if(!Jo(r)||Xo(r))return r;var t=Hl(r,Jl),i;if(t){if(e===void 0&&(e="default"),i=Wl(t,r,e),!Jo(i)||Xo(i))return i;throw new Yl("Can't convert object to primitive value")}return e===void 0&&(e="number"),zl(r,e)}});var nt=n((Wm,rn)=>{"use strict";var Xl=en(),Zl=Jr();rn.exports=function(r){var e=Xl(r,"string");return Zl(e)?e:e+""}});var Xe=n((Hm,on)=>{"use strict";var ef=E(),tn=A(),at=ef.document,rf=tn(at)&&tn(at.createElement);on.exports=function(r){return rf?at.createElement(r):{}}});var st=n((zm,nn)=>{"use strict";var tf=x(),of=q(),nf=Xe();nn.exports=!tf&&!of(function(){return Object.defineProperty(nf("div"),"a",{get:function(){return 7}}).a!==7})});var un=n(sn=>{"use strict";var af=x(),sf=C(),uf=ao(),cf=be(),lf=Z(),ff=nt(),df=$(),pf=st(),an=Object.getOwnPropertyDescriptor;sn.f=af?an:function(e,t){if(e=lf(e),t=ff(t),pf)try{return an(e,t)}catch(i){}if(df(e,t))return cf(!sf(uf.f,e,t),e[t])}});var ut=n((Ym,cn)=>{"use strict";var vf=q(),hf=P(),gf=/#|\.prototype\./,Ee=function(r,e){var t=bf[mf(r)];return t===If?!0:t===yf?!1:hf(e)?vf(e):!!e},mf=Ee.normalize=function(r){return String(r).replace(gf,".").toLowerCase()},bf=Ee.data={},yf=Ee.NATIVE="N",If=Ee.POLYFILL="P";cn.exports=Ee});var Pe=n((Jm,fn)=>{"use strict";var ln=Ur(),Sf=F(),Ef=ge(),Pf=ln(ln.bind);fn.exports=function(r,e){return Sf(r),e===void 0?r:Ef?Pf(r,e):function(){return r.apply(e,arguments)}}});var ct=n((Xm,dn)=>{"use strict";var Tf=x(),qf=q();dn.exports=Tf&&qf(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var B=n((Zm,pn)=>{"use strict";var Of=A(),_f=String,wf=TypeError;pn.exports=function(r){if(Of(r))return r;throw new wf(_f(r)+" is not an object")}});var W=n(hn=>{"use strict";var Rf=x(),xf=st(),Cf=ct(),Ze=B(),vn=nt(),Af=TypeError,lt=Object.defineProperty,Nf=Object.getOwnPropertyDescriptor,ft="enumerable",dt="configurable",pt="writable";hn.f=Rf?Cf?function(e,t,i){if(Ze(e),t=vn(t),Ze(i),typeof e=="function"&&t==="prototype"&&"value"in i&&pt in i&&!i[pt]){var o=Nf(e,t);o&&o[pt]&&(e[t]=i.value,i={configurable:dt in i?i[dt]:o[dt],enumerable:ft in i?i[ft]:o[ft],writable:!1})}return lt(e,t,i)}:lt:function(e,t,i){if(Ze(e),t=vn(t),Ze(i),xf)try{return lt(e,t,i)}catch(o){}if("get"in i||"set"in i)throw new Af("Accessors not supported");return"value"in i&&(e[t]=i.value),e}});var te=n((rb,gn)=>{"use strict";var Lf=x(),kf=W(),Df=be();gn.exports=Lf?function(r,e,t){return kf.f(r,e,Df(1,t))}:function(r,e,t){return r[e]=t,r}});var M=n((tb,bn)=>{"use strict";var Te=E(),$f=Fr(),Mf=Ur(),jf=P(),Ff=un().f,Bf=ut(),ie=ze(),Uf=Pe(),oe=te(),mn=$();Se();var Vf=function(r){var e=function(t,i,o){if(this instanceof e){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,i)}return new r(t,i,o)}return $f(r,this,arguments)};return e.prototype=r.prototype,e};bn.exports=function(r,e){var t=r.target,i=r.global,o=r.stat,a=r.proto,u=i?Te:o?Te[t]:Te[t]&&Te[t].prototype,d=i?ie:ie[t]||oe(ie,t,{})[t],p=d.prototype,c,f,v,s,l,m,I,S,y;for(s in e)c=Bf(i?s:t+(o?".":"#")+s,r.forced),f=!c&&u&&mn(u,s),m=d[s],f&&(r.dontCallGetSet?(y=Ff(u,s),I=y&&y.value):I=u[s]),l=f&&I?I:e[s],!(!c&&!a&&typeof m==typeof l)&&(r.bind&&f?S=Uf(l,Te):r.wrap&&f?S=Vf(l):a&&jf(l)?S=Mf(l):S=l,(r.sham||l&&l.sham||m&&m.sham)&&oe(S,"sham",!0),oe(d,s,S),a&&(v=t+"Prototype",mn(ie,v)||oe(ie,v,{}),oe(ie[v],s,l),r.real&&p&&(c||!p[s])&&oe(p,s,l)))}});var vt=n((ib,yn)=>{"use strict";var qe=E(),Gf=ee(),Kf=me(),er=function(r){return Gf.slice(0,r.length)===r};yn.exports=function(){return er("Bun/")?"BUN":er("Cloudflare-Workers")?"CLOUDFLARE":er("Deno/")?"DENO":er("Node.js/")?"NODE":qe.Bun&&typeof Bun.version=="string"?"BUN":qe.Deno&&typeof Deno.version=="object"?"DENO":Kf(qe.process)==="process"?"NODE":qe.window&&qe.document?"BROWSER":"REST"}()});var rr=n((ob,In)=>{"use strict";var Wf=vt();In.exports=Wf==="NODE"});var ne=n((nb,Sn)=>{"use strict";var Hf=te();Sn.exports=function(r,e,t,i){return i&&i.enumerable?r[e]=t:Hf(r,e,t),r}});var Pn=n((ab,En)=>{"use strict";var zf=R(),Qf=F();En.exports=function(r,e,t){try{return zf(Qf(Object.getOwnPropertyDescriptor(r,e)[t]))}catch(i){}}});var qn=n((sb,Tn)=>{"use strict";var Yf=A();Tn.exports=function(r){return Yf(r)||r===null}});var _n=n((ub,On)=>{"use strict";var Jf=qn(),Xf=String,Zf=TypeError;On.exports=function(r){if(Jf(r))return r;throw new Zf("Can't set "+Xf(r)+" as a prototype")}});var ht=n((cb,wn)=>{"use strict";var ed=Pn(),rd=A(),td=He(),id=_n();wn.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=ed(Object.prototype,"__proto__","set"),t(e,[]),r=e instanceof Array}catch(i){}return function(o,a){return td(o),id(a),rd(o)&&(r?t(o,a):o.__proto__=a),o}}():void 0)});var tr=n((lb,xn)=>{"use strict";var od=O(),nd=od("toStringTag"),Rn={};Rn[nd]="z";xn.exports=String(Rn)==="[object z]"});var or=n((fb,Cn)=>{"use strict";var ad=tr(),sd=P(),ir=me(),ud=O(),cd=ud("toStringTag"),ld=Object,fd=ir(function(){return arguments}())==="Arguments",dd=function(r,e){try{return r[e]}catch(t){}};Cn.exports=ad?ir:function(r){var e,t,i;return r===void 0?"Undefined":r===null?"Null":typeof(t=dd(e=ld(r),cd))=="string"?t:fd?ir(e):(i=ir(e))==="Object"&&sd(e.callee)?"Arguments":i}});var Nn=n((db,An)=>{"use strict";var pd=tr(),vd=or();An.exports=pd?{}.toString:function(){return"[object "+vd(this)+"]"}});var Oe=n((pb,kn)=>{"use strict";var hd=tr(),gd=W().f,md=te(),bd=$(),yd=Nn(),Id=O(),Ln=Id("toStringTag");kn.exports=function(r,e,t,i){var o=t?r:r&&r.prototype;o&&(bd(o,Ln)||gd(o,Ln,{configurable:!0,value:e}),i&&!hd&&md(o,"toString",yd))}});var $n=n((vb,Dn)=>{"use strict";var Sd=W();Dn.exports=function(r,e,t){return Sd.f(r,e,t)}});var Fn=n((hb,jn)=>{"use strict";var Ed=j(),Pd=$n(),Td=O(),qd=x(),Mn=Td("species");jn.exports=function(r){var e=Ed(r);qd&&e&&!e[Mn]&&Pd(e,Mn,{configurable:!0,get:function(){return this}})}});var Un=n((gb,Bn)=>{"use strict";var Od=Qe(),_d=TypeError;Bn.exports=function(r,e){if(Od(e,r))return r;throw new _d("Incorrect invocation")}});var mt=n((mb,Vn)=>{"use strict";var wd=R(),Rd=P(),gt=Se(),xd=wd(Function.toString);Rd(gt.inspectSource)||(gt.inspectSource=function(r){return xd(r)});Vn.exports=gt.inspectSource});var Qn=n((bb,zn)=>{"use strict";var Cd=R(),Ad=q(),Gn=P(),Nd=or(),Ld=j(),kd=mt(),Kn=function(){},Wn=Ld("Reflect","construct"),bt=/^\s*(?:class|function)\b/,Dd=Cd(bt.exec),$d=!bt.test(Kn),_e=function(e){if(!Gn(e))return!1;try{return Wn(Kn,[],e),!0}catch(t){return!1}},Hn=function(e){if(!Gn(e))return!1;switch(Nd(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $d||!!Dd(bt,kd(e))}catch(t){return!0}};Hn.sham=!0;zn.exports=!Wn||Ad(function(){var r;return _e(_e.call)||!_e(Object)||!_e(function(){r=!0})||r})?Hn:_e});var Jn=n((yb,Yn)=>{"use strict";var Md=Qn(),jd=Ie(),Fd=TypeError;Yn.exports=function(r){if(Md(r))return r;throw new Fd(jd(r)+" is not a constructor")}});var yt=n((Ib,Zn)=>{"use strict";var Xn=B(),Bd=Jn(),Ud=ye(),Vd=O(),Gd=Vd("species");Zn.exports=function(r,e){var t=Xn(r).constructor,i;return t===void 0||Ud(i=Xn(t)[Gd])?e:Bd(i)}});var It=n((Sb,ea)=>{"use strict";var Kd=j();ea.exports=Kd("document","documentElement")});var ta=n((Eb,ra)=>{"use strict";var Wd=R();ra.exports=Wd([].slice)});var oa=n((Pb,ia)=>{"use strict";var Hd=TypeError;ia.exports=function(r,e){if(r<e)throw new Hd("Not enough arguments");return r}});var St=n((Tb,na)=>{"use strict";var zd=ee();na.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(zd)});var xt=n((qb,va)=>{"use strict";var _=E(),Qd=Fr(),Yd=Pe(),aa=P(),Jd=$(),pa=q(),sa=It(),Xd=ta(),ua=Xe(),Zd=oa(),ep=St(),rp=rr(),_t=_.setImmediate,wt=_.clearImmediate,tp=_.process,Et=_.Dispatch,ip=_.Function,ca=_.MessageChannel,op=_.String,Pt=0,we={},la="onreadystatechange",Re,H,Tt,qt;pa(function(){Re=_.location});var Rt=function(r){if(Jd(we,r)){var e=we[r];delete we[r],e()}},Ot=function(r){return function(){Rt(r)}},fa=function(r){Rt(r.data)},da=function(r){_.postMessage(op(r),Re.protocol+"//"+Re.host)};(!_t||!wt)&&(_t=function(e){Zd(arguments.length,1);var t=aa(e)?e:ip(e),i=Xd(arguments,1);return we[++Pt]=function(){Qd(t,void 0,i)},H(Pt),Pt},wt=function(e){delete we[e]},rp?H=function(r){tp.nextTick(Ot(r))}:Et&&Et.now?H=function(r){Et.now(Ot(r))}:ca&&!ep?(Tt=new ca,qt=Tt.port2,Tt.port1.onmessage=fa,H=Yd(qt.postMessage,qt)):_.addEventListener&&aa(_.postMessage)&&!_.importScripts&&Re&&Re.protocol!=="file:"&&!pa(da)?(H=da,_.addEventListener("message",fa,!1)):la in ua("script")?H=function(r){sa.appendChild(ua("script"))[la]=function(){sa.removeChild(this),Rt(r)}}:H=function(r){setTimeout(Ot(r),0)});va.exports={set:_t,clear:wt}});var ma=n((Ob,ga)=>{"use strict";var ha=E(),np=x(),ap=Object.getOwnPropertyDescriptor;ga.exports=function(r){if(!np)return ha[r];var e=ap(ha,r);return e&&e.value}});var Ct=n((_b,ya)=>{"use strict";var ba=function(){this.head=null,this.tail=null};ba.prototype={add:function(r){var e={item:r,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var r=this.head;if(r){var e=this.head=r.next;return e===null&&(this.tail=null),r.item}}};ya.exports=ba});var Sa=n((wb,Ia)=>{"use strict";var sp=ee();Ia.exports=/ipad|iphone|ipod/i.test(sp)&&typeof Pebble!="undefined"});var Pa=n((Rb,Ea)=>{"use strict";var up=ee();Ea.exports=/web0s(?!.*chrome)/i.test(up)});var xa=n((xb,Ra)=>{"use strict";var se=E(),cp=ma(),Ta=Pe(),At=xt().set,lp=Ct(),fp=St(),dp=Sa(),pp=Pa(),Nt=rr(),qa=se.MutationObserver||se.WebKitMutationObserver,Oa=se.document,_a=se.process,nr=se.Promise,Dt=cp("queueMicrotask"),ae,Lt,kt,ar,wa;Dt||(xe=new lp,Ce=function(){var r,e;for(Nt&&(r=_a.domain)&&r.exit();e=xe.get();)try{e()}catch(t){throw xe.head&&ae(),t}r&&r.enter()},!fp&&!Nt&&!pp&&qa&&Oa?(Lt=!0,kt=Oa.createTextNode(""),new qa(Ce).observe(kt,{characterData:!0}),ae=function(){kt.data=Lt=!Lt}):!dp&&nr&&nr.resolve?(ar=nr.resolve(void 0),ar.constructor=nr,wa=Ta(ar.then,ar),ae=function(){wa(Ce)}):Nt?ae=function(){_a.nextTick(Ce)}:(At=Ta(At,se),ae=function(){At(Ce)}),Dt=function(r){xe.head||ae(),xe.add(r)});var xe,Ce;Ra.exports=Dt});var Aa=n((Cb,Ca)=>{"use strict";Ca.exports=function(r,e){try{arguments.length===1?console.error(r):console.error(r,e)}catch(t){}}});var sr=n((Ab,Na)=>{"use strict";Na.exports=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}}});var Da=n((Nb,ka)=>{"use strict";var vp=E(),hp=P(),La=vp.WeakMap;ka.exports=hp(La)&&/native code/.test(String(La))});var ur=n((Lb,Ma)=>{"use strict";var gp=rt(),mp=it(),$a=gp("keys");Ma.exports=function(r){return $a[r]||($a[r]=mp(r))}});var cr=n((kb,ja)=>{"use strict";ja.exports={}});var Ft=n((Db,Ua)=>{"use strict";var bp=Da(),Ba=E(),yp=A(),Ip=te(),$t=$(),Mt=Se(),Sp=ur(),Ep=cr(),Fa="Object already initialized",jt=Ba.TypeError,Pp=Ba.WeakMap,lr,Ae,fr,Tp=function(r){return fr(r)?Ae(r):lr(r,{})},qp=function(r){return function(e){var t;if(!yp(e)||(t=Ae(e)).type!==r)throw new jt("Incompatible receiver, "+r+" required");return t}};bp||Mt.state?(L=Mt.state||(Mt.state=new Pp),L.get=L.get,L.has=L.has,L.set=L.set,lr=function(r,e){if(L.has(r))throw new jt(Fa);return e.facade=r,L.set(r,e),e},Ae=function(r){return L.get(r)||{}},fr=function(r){return L.has(r)}):(z=Sp("state"),Ep[z]=!0,lr=function(r,e){if($t(r,z))throw new jt(Fa);return e.facade=r,Ip(r,z,e),e},Ae=function(r){return $t(r,z)?r[z]:{}},fr=function(r){return $t(r,z)});var L,z;Ua.exports={set:lr,get:Ae,has:fr,enforce:Tp,getterFor:qp}});var Q=n(($b,Va)=>{"use strict";var Op=E();Va.exports=Op.Promise});var ue=n((Mb,Ha)=>{"use strict";var _p=E(),Ne=Q(),wp=P(),Rp=ut(),xp=mt(),Cp=O(),Ga=vt(),Ap=D(),Bt=zr(),Ka=Ne&&Ne.prototype,Np=Cp("species"),Ut=!1,Wa=wp(_p.PromiseRejectionEvent),Lp=Rp("Promise",function(){var r=xp(Ne),e=r!==String(Ne);if(!e&&Bt===66||Ap&&!(Ka.catch&&Ka.finally))return!0;if(!Bt||Bt<51||!/native code/.test(r)){var t=new Ne(function(a){a(1)}),i=function(a){a(function(){},function(){})},o=t.constructor={};if(o[Np]=i,Ut=t.then(function(){})instanceof i,!Ut)return!0}return!e&&(Ga==="BROWSER"||Ga==="DENO")&&!Wa});Ha.exports={CONSTRUCTOR:Lp,REJECTION_EVENT:Wa,SUBCLASSING:Ut}});var ce=n((jb,Qa)=>{"use strict";var za=F(),kp=TypeError,Dp=function(r){var e,t;this.promise=new r(function(i,o){if(e!==void 0||t!==void 0)throw new kp("Bad Promise constructor");e=i,t=o}),this.resolve=za(e),this.reject=za(t)};Qa.exports.f=function(r){return new Dp(r)}});var vs=n(()=>{"use strict";var $p=M(),Mp=D(),hr=rr(),K=E(),pe=C(),Ya=ne(),Ja=ht(),jp=Oe(),Fp=Fn(),Bp=F(),vr=P(),Up=A(),Vp=Un(),Gp=yt(),ts=xt().set,Ht=xa(),Kp=Aa(),Wp=sr(),Hp=Ct(),is=Ft(),gr=Q(),zt=ue(),os=ce(),mr="Promise",ns=zt.CONSTRUCTOR,zp=zt.REJECTION_EVENT,Qp=zt.SUBCLASSING,Vt=is.getterFor(mr),Yp=is.set,le=gr&&gr.prototype,Y=gr,dr=le,as=K.TypeError,Gt=K.document,Qt=K.process,Kt=os.f,Jp=Kt,Xp=!!(Gt&&Gt.createEvent&&K.dispatchEvent),ss="unhandledrejection",Zp="rejectionhandled",Xa=0,us=1,ev=2,Yt=1,cs=2,pr,Za,rv,es,ls=function(r){var e;return Up(r)&&vr(e=r.then)?e:!1},fs=function(r,e){var t=e.value,i=e.state===us,o=i?r.ok:r.fail,a=r.resolve,u=r.reject,d=r.domain,p,c,f;try{o?(i||(e.rejection===cs&&iv(e),e.rejection=Yt),o===!0?p=t:(d&&d.enter(),p=o(t),d&&(d.exit(),f=!0)),p===r.promise?u(new as("Promise-chain cycle")):(c=ls(p))?pe(c,p,a,u):a(p)):u(t)}catch(v){d&&!f&&d.exit(),u(v)}},ds=function(r,e){r.notified||(r.notified=!0,Ht(function(){for(var t=r.reactions,i;i=t.get();)fs(i,r);r.notified=!1,e&&!r.rejection&&tv(r)}))},ps=function(r,e,t){var i,o;Xp?(i=Gt.createEvent("Event"),i.promise=e,i.reason=t,i.initEvent(r,!1,!0),K.dispatchEvent(i)):i={promise:e,reason:t},!zp&&(o=K["on"+r])?o(i):r===ss&&Kp("Unhandled promise rejection",t)},tv=function(r){pe(ts,K,function(){var e=r.facade,t=r.value,i=rs(r),o;if(i&&(o=Wp(function(){hr?Qt.emit("unhandledRejection",t,e):ps(ss,e,t)}),r.rejection=hr||rs(r)?cs:Yt,o.error))throw o.value})},rs=function(r){return r.rejection!==Yt&&!r.parent},iv=function(r){pe(ts,K,function(){var e=r.facade;hr?Qt.emit("rejectionHandled",e):ps(Zp,e,r.value)})},fe=function(r,e,t){return function(i){r(e,i,t)}},de=function(r,e,t){r.done||(r.done=!0,t&&(r=t),r.value=e,r.state=ev,ds(r,!0))},Wt=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw new as("Promise can't be resolved itself");var i=ls(e);i?Ht(function(){var o={done:!1};try{pe(i,e,fe(Wt,o,r),fe(de,o,r))}catch(a){de(o,a,r)}}):(r.value=e,r.state=us,ds(r,!1))}catch(o){de({done:!1},o,r)}}};if(ns&&(Y=function(e){Vp(this,dr),Bp(e),pe(pr,this);var t=Vt(this);try{e(fe(Wt,t),fe(de,t))}catch(i){de(t,i)}},dr=Y.prototype,pr=function(e){Yp(this,{type:mr,done:!1,notified:!1,parent:!1,reactions:new Hp,rejection:!1,state:Xa,value:void 0})},pr.prototype=Ya(dr,"then",function(e,t){var i=Vt(this),o=Kt(Gp(this,Y));return i.parent=!0,o.ok=vr(e)?e:!0,o.fail=vr(t)&&t,o.domain=hr?Qt.domain:void 0,i.state===Xa?i.reactions.add(o):Ht(function(){fs(o,i)}),o.promise}),Za=function(){var r=new pr,e=Vt(r);this.promise=r,this.resolve=fe(Wt,e),this.reject=fe(de,e)},os.f=Kt=function(r){return r===Y||r===rv?new Za(r):Jp(r)},!Mp&&vr(gr)&&le!==Object.prototype)){es=le.then,Qp||Ya(le,"then",function(e,t){var i=this;return new Y(function(o,a){pe(es,i,o,a)}).then(e,t)},{unsafe:!0});try{delete le.constructor}catch(r){}Ja&&Ja(le,dr)}$p({global:!0,constructor:!0,wrap:!0,forced:ns},{Promise:Y});jp(Y,mr,!1,!0);Fp(mr)});var J=n((Ub,hs)=>{"use strict";hs.exports={}});var ms=n((Vb,gs)=>{"use strict";var ov=O(),nv=J(),av=ov("iterator"),sv=Array.prototype;gs.exports=function(r){return r!==void 0&&(nv.Array===r||sv[av]===r)}});var ys=n((Gb,bs)=>{"use strict";var uv=Math.ceil,cv=Math.floor;bs.exports=Math.trunc||function(e){var t=+e;return(t>0?cv:uv)(t)}});var Jt=n((Kb,Is)=>{"use strict";var lv=ys();Is.exports=function(r){var e=+r;return e!==e||e===0?0:lv(e)}});var Es=n((Wb,Ss)=>{"use strict";var fv=Jt(),dv=Math.min;Ss.exports=function(r){var e=fv(r);return e>0?dv(e,9007199254740991):0}});var Xt=n((Hb,Ps)=>{"use strict";var pv=Es();Ps.exports=function(r){return pv(r.length)}});var Zt=n((zb,qs)=>{"use strict";var vv=or(),Ts=Je(),hv=ye(),gv=J(),mv=O(),bv=mv("iterator");qs.exports=function(r){if(!hv(r))return Ts(r,bv)||Ts(r,"@@iterator")||gv[vv(r)]}});var _s=n((Qb,Os)=>{"use strict";var yv=C(),Iv=F(),Sv=B(),Ev=Ie(),Pv=Zt(),Tv=TypeError;Os.exports=function(r,e){var t=arguments.length<2?Pv(r):e;if(Iv(t))return Sv(yv(t,r));throw new Tv(Ev(r)+" is not iterable")}});var xs=n((Yb,Rs)=>{"use strict";var qv=C(),ws=B(),Ov=Je();Rs.exports=function(r,e,t){var i,o;ws(r);try{if(i=Ov(r,"return"),!i){if(e==="throw")throw t;return t}i=qv(i,r)}catch(a){o=!0,i=a}if(e==="throw")throw t;if(o)throw i;return ws(i),t}});var yr=n((Jb,Ls)=>{"use strict";var _v=Pe(),wv=C(),Rv=B(),xv=Ie(),Cv=ms(),Av=Xt(),Cs=Qe(),Nv=_s(),Lv=Zt(),As=xs(),kv=TypeError,br=function(r,e){this.stopped=r,this.result=e},Ns=br.prototype;Ls.exports=function(r,e,t){var i=t&&t.that,o=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),d=!!(t&&t.INTERRUPTED),p=_v(e,i),c,f,v,s,l,m,I,S=function(T){return c&&As(c,"normal",T),new br(!0,T)},y=function(T){return o?(Rv(T),d?p(T[0],T[1],S):p(T[0],T[1])):d?p(T,S):p(T)};if(a)c=r.iterator;else if(u)c=r;else{if(f=Lv(r),!f)throw new kv(xv(r)+" is not iterable");if(Cv(f)){for(v=0,s=Av(r);s>v;v++)if(l=y(r[v]),l&&Cs(Ns,l))return l;return new br(!1)}c=Nv(r,f)}for(m=a?r.next:c.next;!(I=wv(m,c)).done;){try{l=y(I.value)}catch(T){As(c,"throw",T)}if(typeof l=="object"&&l&&Cs(Ns,l))return l}return new br(!1)}});var js=n((Xb,Ms)=>{"use strict";var Dv=O(),Ds=Dv("iterator"),$s=!1;try{ks=0,ei={next:function(){return{done:!!ks++}},return:function(){$s=!0}},ei[Ds]=function(){return this},Array.from(ei,function(){throw 2})}catch(r){}var ks,ei;Ms.exports=function(r,e){try{if(!e&&!$s)return!1}catch(o){return!1}var t=!1;try{var i={};i[Ds]=function(){return{next:function(){return{done:t=!0}}}},r(i)}catch(o){}return t}});var ri=n((Zb,Fs)=>{"use strict";var $v=Q(),Mv=js(),jv=ue().CONSTRUCTOR;Fs.exports=jv||!Mv(function(r){$v.all(r).then(void 0,function(){})})});var Bs=n(()=>{"use strict";var Fv=M(),Bv=C(),Uv=F(),Vv=ce(),Gv=sr(),Kv=yr(),Wv=ri();Fv({target:"Promise",stat:!0,forced:Wv},{all:function(e){var t=this,i=Vv.f(t),o=i.resolve,a=i.reject,u=Gv(function(){var d=Uv(t.resolve),p=[],c=0,f=1;Kv(e,function(v){var s=c++,l=!1;f++,Bv(d,t,v).then(function(m){l||(l=!0,p[s]=m,--f||o(p))},a)}),--f||o(p)});return u.error&&a(u.value),i.promise}})});var Vs=n(()=>{"use strict";var Hv=M(),zv=D(),Qv=ue().CONSTRUCTOR,ii=Q(),Yv=j(),Jv=P(),Xv=ne(),Us=ii&&ii.prototype;Hv({target:"Promise",proto:!0,forced:Qv,real:!0},{catch:function(r){return this.then(void 0,r)}});!zv&&Jv(ii)&&(ti=Yv("Promise").prototype.catch,Us.catch!==ti&&Xv(Us,"catch",ti,{unsafe:!0}));var ti});var Gs=n(()=>{"use strict";var Zv=M(),eh=C(),rh=F(),th=ce(),ih=sr(),oh=yr(),nh=ri();Zv({target:"Promise",stat:!0,forced:nh},{race:function(e){var t=this,i=th.f(t),o=i.reject,a=ih(function(){var u=rh(t.resolve);oh(e,function(d){eh(u,t,d).then(i.resolve,o)})});return a.error&&o(a.value),i.promise}})});var Ks=n(()=>{"use strict";var ah=M(),sh=ce(),uh=ue().CONSTRUCTOR;ah({target:"Promise",stat:!0,forced:uh},{reject:function(e){var t=sh.f(this),i=t.reject;return i(e),t.promise}})});var oi=n((uy,Ws)=>{"use strict";var ch=B(),lh=A(),fh=ce();Ws.exports=function(r,e){if(ch(r),lh(e)&&e.constructor===r)return e;var t=fh.f(r),i=t.resolve;return i(e),t.promise}});var Qs=n(()=>{"use strict";var dh=M(),ph=j(),Hs=D(),vh=Q(),zs=ue().CONSTRUCTOR,hh=oi(),gh=ph("Promise"),mh=Hs&&!zs;dh({target:"Promise",stat:!0,forced:Hs||zs},{resolve:function(e){return hh(mh&&this===gh?vh:this,e)}})});var Ys=n(()=>{"use strict";vs();Bs();Vs();Gs();Ks();Qs()});var eu=n(()=>{"use strict";var bh=M(),yh=D(),Ir=Q(),Ih=q(),Xs=j(),Zs=P(),Sh=yt(),Js=oi(),Eh=ne(),ai=Ir&&Ir.prototype,Ph=!!Ir&&Ih(function(){ai.finally.call({then:function(){}},function(){})});bh({target:"Promise",proto:!0,real:!0,forced:Ph},{finally:function(r){var e=Sh(this,Xs("Promise")),t=Zs(r);return this.then(t?function(i){return Js(e,r()).then(function(){return i})}:r,t?function(i){return Js(e,r()).then(function(){throw i})}:r)}});!yh&&Zs(Ir)&&(ni=Xs("Promise").prototype.finally,ai.finally!==ni&&Eh(ai,"finally",ni,{unsafe:!0}));var ni});var tu=n((hy,ru)=>{"use strict";var Th=j();ru.exports=Th});var ou=n((gy,iu)=>{"use strict";Fi();Ys();eu();var qh=tu();iu.exports=qh("Promise","finally")});var au=n((my,nu)=>{"use strict";var Oh=ou();nu.exports=Oh});var uu=n((by,su)=>{"use strict";var _h=au();su.exports=_h});var lu=n((yy,cu)=>{"use strict";cu.exports=function(){}});var pu=n((Iy,du)=>{"use strict";var si=x(),wh=$(),fu=Function.prototype,Rh=si&&Object.getOwnPropertyDescriptor,ui=wh(fu,"name"),xh=ui&&function(){}.name==="something",Ch=ui&&(!si||si&&Rh(fu,"name").configurable);du.exports={EXISTS:ui,PROPER:xh,CONFIGURABLE:Ch}});var hu=n((Sy,vu)=>{"use strict";var Ah=Jt(),Nh=Math.max,Lh=Math.min;vu.exports=function(r,e){var t=Ah(r);return t<0?Nh(t+e,0):Lh(t,e)}});var bu=n((Ey,mu)=>{"use strict";var kh=Z(),Dh=hu(),$h=Xt(),gu=function(r){return function(e,t,i){var o=kh(e),a=$h(o);if(a===0)return!r&&-1;var u=Dh(i,a),d;if(r&&t!==t){for(;a>u;)if(d=o[u++],d!==d)return!0}else for(;a>u;u++)if((r||u in o)&&o[u]===t)return r||u||0;return!r&&-1}};mu.exports={includes:gu(!0),indexOf:gu(!1)}});var Su=n((Py,Iu)=>{"use strict";var Mh=R(),ci=$(),jh=Z(),Fh=bu().indexOf,Bh=cr(),yu=Mh([].push);Iu.exports=function(r,e){var t=jh(r),i=0,o=[],a;for(a in t)!ci(Bh,a)&&ci(t,a)&&yu(o,a);for(;e.length>i;)ci(t,a=e[i++])&&(~Fh(o,a)||yu(o,a));return o}});var li=n((Ty,Eu)=>{"use strict";Eu.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Tu=n((qy,Pu)=>{"use strict";var Uh=Su(),Vh=li();Pu.exports=Object.keys||function(e){return Uh(e,Vh)}});var Ou=n(qu=>{"use strict";var Gh=x(),Kh=ct(),Wh=W(),Hh=B(),zh=Z(),Qh=Tu();qu.f=Gh&&!Kh?Object.defineProperties:function(e,t){Hh(e);for(var i=zh(t),o=Qh(t),a=o.length,u=0,d;a>u;)Wh.f(e,d=o[u++],i[d]);return e}});var vi=n((_y,Nu)=>{"use strict";var Yh=B(),Jh=Ou(),_u=li(),Xh=cr(),Zh=It(),eg=Xe(),rg=ur(),wu=">",Ru="<",di="prototype",pi="script",Cu=rg("IE_PROTO"),fi=function(){},Au=function(r){return Ru+pi+wu+r+Ru+"/"+pi+wu},xu=function(r){r.write(Au("")),r.close();var e=r.parentWindow.Object;return r=null,e},tg=function(){var r=eg("iframe"),e="java"+pi+":",t;return r.style.display="none",Zh.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(Au("document.F=Object")),t.close(),t.F},Sr,Er=function(){try{Sr=new ActiveXObject("htmlfile")}catch(e){}Er=typeof document!="undefined"?document.domain&&Sr?xu(Sr):tg():xu(Sr);for(var r=_u.length;r--;)delete Er[di][_u[r]];return Er()};Xh[Cu]=!0;Nu.exports=Object.create||function(e,t){var i;return e!==null?(fi[di]=Yh(e),i=new fi,fi[di]=null,i[Cu]=e):i=Er(),t===void 0?i:Jh.f(i,t)}});var ku=n((wy,Lu)=>{"use strict";var ig=q();Lu.exports=!ig(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})});var gi=n((Ry,$u)=>{"use strict";var og=$(),ng=P(),ag=tt(),sg=ur(),ug=ku(),Du=sg("IE_PROTO"),hi=Object,cg=hi.prototype;$u.exports=ug?hi.getPrototypeOf:function(r){var e=ag(r);if(og(e,Du))return e[Du];var t=e.constructor;return ng(t)&&e instanceof t?t.prototype:e instanceof hi?cg:null}});var Ii=n((xy,Fu)=>{"use strict";var lg=q(),fg=P(),dg=A(),pg=vi(),Mu=gi(),vg=ne(),hg=O(),gg=D(),yi=hg("iterator"),ju=!1,U,mi,bi;[].keys&&(bi=[].keys(),"next"in bi?(mi=Mu(Mu(bi)),mi!==Object.prototype&&(U=mi)):ju=!0);var mg=!dg(U)||lg(function(){var r={};return U[yi].call(r)!==r});mg?U={}:gg&&(U=pg(U));fg(U[yi])||vg(U,yi,function(){return this});Fu.exports={IteratorPrototype:U,BUGGY_SAFARI_ITERATORS:ju}});var Uu=n((Cy,Bu)=>{"use strict";var bg=Ii().IteratorPrototype,yg=vi(),Ig=be(),Sg=Oe(),Eg=J(),Pg=function(){return this};Bu.exports=function(r,e,t,i){var o=e+" Iterator";return r.prototype=yg(bg,{next:Ig(+!i,t)}),Sg(r,o,!1,!0),Eg[o]=Pg,r}});var Zu=n((Ay,Xu)=>{"use strict";var Tg=M(),qg=C(),Pr=D(),Yu=pu(),Og=P(),_g=Uu(),Vu=gi(),Gu=ht(),wg=Oe(),Rg=te(),Si=ne(),xg=O(),Ku=J(),Ju=Ii(),Cg=Yu.PROPER,Ag=Yu.CONFIGURABLE,Wu=Ju.IteratorPrototype,Tr=Ju.BUGGY_SAFARI_ITERATORS,Le=xg("iterator"),Hu="keys",ke="values",zu="entries",Qu=function(){return this};Xu.exports=function(r,e,t,i,o,a,u){_g(t,e,i);var d=function(y){if(y===o&&s)return s;if(!Tr&&y&&y in f)return f[y];switch(y){case Hu:return function(){return new t(this,y)};case ke:return function(){return new t(this,y)};case zu:return function(){return new t(this,y)}}return function(){return new t(this)}},p=e+" Iterator",c=!1,f=r.prototype,v=f[Le]||f["@@iterator"]||o&&f[o],s=!Tr&&v||d(o),l=e==="Array"&&f.entries||v,m,I,S;if(l&&(m=Vu(l.call(new r)),m!==Object.prototype&&m.next&&(!Pr&&Vu(m)!==Wu&&(Gu?Gu(m,Wu):Og(m[Le])||Si(m,Le,Qu)),wg(m,p,!0,!0),Pr&&(Ku[p]=Qu))),Cg&&o===ke&&v&&v.name!==ke&&(!Pr&&Ag?Rg(f,"name",ke):(c=!0,s=function(){return qg(v,this)})),o)if(I={values:d(ke),keys:a?s:d(Hu),entries:d(zu)},u)for(S in I)(Tr||c||!(S in f))&&Si(f,S,I[S]);else Tg({target:e,proto:!0,forced:Tr||c},I);return(!Pr||u)&&f[Le]!==s&&Si(f,Le,s,{name:o}),Ku[e]=s,I}});var rc=n((Ny,ec)=>{"use strict";ec.exports=function(r,e){return{value:r,done:e}}});var Pi=n((Ly,ac)=>{"use strict";var Ng=Z(),Ei=lu(),tc=J(),oc=Ft(),Lg=W().f,kg=Zu(),qr=rc(),Dg=D(),$g=x(),nc="Array Iterator",Mg=oc.set,jg=oc.getterFor(nc);ac.exports=kg(Array,"Array",function(r,e){Mg(this,{type:nc,target:Ng(r),index:0,kind:e})},function(){var r=jg(this),e=r.target,t=r.index++;if(!e||t>=e.length)return r.target=void 0,qr(void 0,!0);switch(r.kind){case"keys":return qr(t,!1);case"values":return qr(e[t],!1)}return qr([t,e[t]],!1)},"values");var ic=tc.Arguments=tc.Array;Ei("keys");Ei("values");Ei("entries");if(!Dg&&$g&&ic.name!=="values")try{Lg(ic,"name",{value:"values"})}catch(r){}});var uc=n((ky,sc)=>{"use strict";var Fg=x(),Bg=W(),Ug=be();sc.exports=function(r,e,t){Fg?Bg.f(r,e,Ug(0,t)):r[e]=t}});var cc=n(()=>{"use strict";var Vg=M(),Gg=yr(),Kg=uc();Vg({target:"Object",stat:!0},{fromEntries:function(e){var t={};return Gg(e,function(i,o){Kg(t,i,o)},{AS_ENTRIES:!0}),t}})});var fc=n((My,lc)=>{"use strict";Pi();cc();var Wg=ze();lc.exports=Wg.Object.fromEntries});var pc=n((jy,dc)=>{"use strict";dc.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 hc=n(()=>{"use strict";Pi();var Hg=pc(),zg=E(),Qg=Oe(),vc=J();for(Or in Hg)Qg(zg[Or],Or),vc[Or]=vc.Array;var Or});var mc=n((Uy,gc)=>{"use strict";var Yg=fc();hc();gc.exports=Yg});var yc=n((Vy,bc)=>{"use strict";var Jg=mc();bc.exports=Jg});var Zg={};Fc(Zg,{ApiEnv:()=>X,ConnectionType:()=>Ge,ContentType:()=>Ve,InteractiveInterfaceClick:()=>$r,OneStat:()=>Lr,Quality:()=>Ue,SeekAction:()=>Ke,VERSION:()=>De});module.exports=Bc(Zg);var X=(u=>(u.PROD="prod",u.VK_ALIAS="vk_alias",u.VIDEOTEST="videotest",u.TEST="test",u.OKCDN="okcdn",u.AUTO="auto",u))(X||{}),Ue=(c=>(c.Q144P="mobile",c.Q240P="lowest",c.Q360P="low",c.Q480P="medium",c.Q720P="high",c.Q1080P="fullhd",c.Q1440P="quadhd",c.Q2160P="ultrahd",c.UNKNOWN="unknown",c))(Ue||{}),Ve=(l=>(l.MP4="mp4",l.DASH="dash",l.DASH_SEP="dash_sep",l.ONDEMAND_DASH="ondemand_dash",l.HLS="hls",l.ONDEMAND_HLS="ondemand_hls",l.WEBM="webm",l.AV1="av1",l.ONDEMAND_DASH_LIVE="ondemand_dash_live",l.ONDEMAND_HLS_LIVE="ondemand_hls_live",l.WEBRTC="webrtc",l.UNKNOWN="unknown",l.RTMP="rtmp",l))(Ve||{});var Ge=(i=>(i.HTTP1="http1",i.HTTP2="http2",i.HTTP3="http3",i))(Ge||{});var Ke=(d=>(d.SLIDER="slider",d.DOUBLE_TAP="double_tap",d.TIME_CODE="time_code",d.EPISODE="episode",d.REWIND="rewind",d.LIVE="live",d.UNKNOWN="unknown",d))(Ke||{}),$r=(a=>(a.GRAPH_SHOW="iGraphShow",a.GRAPH_HIDE="iGraphHide",a.NEXT_AREA="iNextChapterArea",a.NEXT_BUTTON="iNextChapterBtn",a.WATCH_AGAIN="iWatchAgainBtn",a))($r||{}),Li={action_play:"ap",action_play_interactive:"api",first_bytes:"fb",player_ready:"pr",first_frame:"ff",seek:"sk",watch_coverage_record:"wr",watch_coverage_live:"wl",empty_buffer:"eb",action_stop:"as",close_at_empty_buffer:"cb",content_error:"er",player_interface_click:"pc",next_movie:"nm",track_switch:"ts",failover:"fo"},ki={vsid:"si",isid:"is",vid:"vi",place:"pl",quality:"qt",cdn_host:"ch",stat_type:"st",param:"pm",vk_app_id:"va",track_code:"tc",connection_type:"cnt",connection_reused:"cr",cached_data:"cd",live:"lv",muted:"mu",mode:"mo",subtitles:"sb",failover:"fo",download_speed:"ds",manual_quality:"mq",ref_domain:"rd",direct_url:"du"},Di={unknown:"un",mobile:"m",lowest:"ls",low:"l",medium:"md",high:"h",fullhd:"f",quadhd:"q",ultrahd:"u"},$i={pip:"pi",fullscreen:"fs",external:"ex",prefetch:"pr",airplay:"ap",chromecast:"cc",invisible:"iv"};var Mi=require("@vkontakte/videoplayer-shared"),Uc={apiEnv:"vk_alias",requestRetryCount:1,firstFlushTime:5e3,flushDebounceTime:1e4,flushMaxWait:6e4,storageExpiration:36*60*60*1e3,watchCoverageInterval:15e3,disabledOperations:[],disabledCustomFields:[],shorten:!0,maxLoops:100,embedUrlParams:[],useBeacon:!0,synchronizeTime:!0,debugLog:!1,backoff:{start:1e3,factor:1.5,max:5*60*1e3,random:.1}},ji=r=>(0,Mi.fillWithDefault)(r,Uc);function Mr(){let r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),e=new Array(36),t=0,i,o;for(o=0;o<36;o++)o===8||o===13||o===18||o===23?e[o]="-":o===14?e[o]="4":(t<=2&&(t=33554432+Math.random()*16777216|0),i=t&15,t=t>>4,e[o]=r[o===19?i&3|8:i]);return e.join("")}var h=require("@vkontakte/videoplayer-shared"),kr=require("@vkontakte/videoplayer-shared");var _r=Ni(uu(),1);var Ic=Ni(yc(),1);var Sc=r=>{var o;let{operation:e,custom:t}=r,i=(0,Ic.default)(Object.entries(t).map(([a,u])=>{var c,f,v;let d=(c=ki[a])!=null?c:a,p=u;return u&&(a==="mode"?p=(f=$i[u])!=null?f:u:a==="quality"&&(p=(v=Di[u])!=null?v:u)),[d,p]}));return{...r,operation:(o=Li[e])!=null?o:e,custom:i}};var De="1.0.53-dev.07a23d13.0",Ec="CIOPGQJGDIHBABABA",Ti={prod:"https://api.ok.ru",vk_alias:"https://api.mycdn.me",videotest:"https://videotestapi.ok.ru/api",test:"https://apitest.ok.ru",okcdn:"https://api.okcdn.ru",auto:""};var k=require("@vkontakte/videoplayer-shared");var $e=class{constructor(e){this.consequentAuthErrors=0;this.authorized$=new k.ValueSubject(!1);this.params=e}async authorize(e){return this.authToken=e!=null?e:await this.refreshAuthToken(),this._authorizeWithBackoff()}logBeacon(e){let t="log.externalLog",i=this.createLogParams(e),o=this.sessionKey;if(!o)return;this.params.apiTransport.sendBeacon(t,i,o)||this.logRequest(e)}async logRequest(e){var u;let t="log.externalLog",i=this.createLogParams(e),o=(u=this.sessionKey)!=null?u:await this._authorizeWithBackoff();if(!o)return;let a=async(d,p=this.params.config.requestRetryCount)=>{try{return await this.params.apiTransport.sendRequest(t,i,o)}catch(c){if(!c||!("error_code"in c)){this.params.error$.next({id:"logRequestUnknown",category:k.ErrorCategory.NETWORK,message:`Unknown ${t} error`,thrown:c});return}let f=c==null?void 0:c.error_code;switch(f){case 102:case 103:case 104:return this.authorized$.next(!1),this.sessionKey=await this._authorizeWithBackoff(),p>0?a(d,p-1):void 0;case 401:return this.authorized$.next(!1),this.authToken=await this.refreshAuthToken(),this.sessionKey=await this._authorizeWithBackoff(),p>0?a(d,p-1):void 0;default:{this.params.error$.next({id:`LogRequest#${f}`,category:k.ErrorCategory.EXTERNAL_API,message:`${t} error`,data:c});return}}}};return a(e)}destroy(){window.clearTimeout(this.backoffTimeoutId),this.backoffTimeoutId=0}async refreshAuthToken(){if(this.params.refreshAuthToken)return this.refreshAuthTokenPromise||(this.refreshAuthTokenPromise=(0,_r.default)(this.params.refreshAuthToken(),()=>{this.refreshAuthTokenPromise=void 0})),this.refreshAuthTokenPromise}createLogParams(e){return{collector:"ok.mobile.apps.video",data:JSON.stringify({application:`@vkontakte/videoplayer-statistics:${De}`,platform:this.params.mobile?"M_WEB":"WEB",items:this.params.config.shorten?e.map(Sc):e})}}_authorizeWithBackoff(){if(!this.consequentAuthErrors)return this._authorize();let e=(0,k.getExponentialDelay)(this.consequentAuthErrors,this.params.config.backoff);return new Promise(t=>{this.backoffTimeoutId||(this.backoffTimeoutId=window.setTimeout(()=>{(0,_r.default)(this._authorize().then(t).catch(i=>this.params.error$.next({id:"AuthorizeBackoff",category:k.ErrorCategory.NETWORK,message:"Otherwise unhandled error in authorization",thrown:i})),()=>this.backoffTimeoutId=0)},e))})}async _authorize(){if(this.authorizePromise)return this.authorizePromise;this.sessionKey=void 0,this.authorized$.next(!1);let e="auth.anonymLogin",t={session_data:{version:2,device_id:this.params.deviceId,client_version:De.split("-")[0],client_type:"SDK_JS"}};return this.authToken!==void 0&&(t.session_data.auth_token=this.authToken,t.session_data.version=3),this.authorizePromise=(0,_r.default)(this.params.apiTransport.sendRequest(e,t).then(i=>{var o;return(!i||!i.session_key)&&this.params.error$.next({id:"AuthorizeFailed",category:k.ErrorCategory.EXTERNAL_API,message:"No session key",data:i}),this.sessionKey=(o=i==null?void 0:i.session_key)!=null?o:void 0,this.sessionKey}).catch(async i=>{this.sessionKey=void 0;let o=i==null?void 0:i.error_code;switch(o){case 401:return this.authToken=await this.refreshAuthToken(),this._authorizeWithBackoff()}o?this.params.error$.next({id:`Authorize#${o}`,category:k.ErrorCategory.EXTERNAL_API,message:"authorize error",data:i}):this.params.error$.next({id:"AuthorizeUnknown",category:k.ErrorCategory.NETWORK,message:"authorize error",thrown:i})}),()=>{this.authorizePromise=void 0,this.consequentAuthErrors=this.sessionKey?0:this.consequentAuthErrors+1,this.authorized$.next(this.sessionKey!==void 0)}),this.authorizePromise}};var wr=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(e,t,i){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:i})}removeEventListener(e,t){if(!(e in this.listeners))return;let i=this.listeners[e];for(let o=0,a=i.length;o<a;o++)if(i[o].callback===t){i.splice(o,1);return}}dispatchEvent(e){if(!(e.type in this.listeners))return;let i=this.listeners[e.type].slice();for(let o=0,a=i.length;o<a;o++){let u=i[o];try{u.callback.call(this,e)}catch(d){Promise.resolve().then(()=>{throw d})}u.options&&u.options.once&&this.removeEventListener(e.type,u.callback)}return!e.defaultPrevented}},ve=class extends wr{constructor(){super(),this.listeners||wr.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(e){e.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,e)),super.dispatchEvent(e)}},Me=class{constructor(){Object.defineProperty(this,"signal",{value:new ve,writable:!0,configurable:!0})}abort(e){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 i=e;if(i===void 0)if(typeof document=="undefined")i=new Error("This operation was aborted"),i.name="AbortError";else try{i=new DOMException("signal is aborted without reason")}catch(o){i=new Error("This operation was aborted"),i.name="AbortError"}this.signal.reason=i,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(Me.prototype[Symbol.toStringTag]="AbortController",ve.prototype[Symbol.toStringTag]="AbortSignal");function Rr(r){return r.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof r.Request=="function"&&!r.Request.prototype.hasOwnProperty("signal")||!r.AbortController}function qi(r){typeof r=="function"&&(r={fetch:r});let{fetch:e,Request:t=e.Request,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=r;if(!Rr({fetch:e,Request:t,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:e,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||o)&&(a=function(c,f){let v;f&&f.signal&&(v=f.signal,delete f.signal);let s=new t(c,f);return v&&Object.defineProperty(s,"signal",{writable:!1,enumerable:!1,configurable:!0,value:v}),s},a.prototype=t.prototype);let u=e;return{fetch:(p,c)=>{let f=a&&a.prototype.isPrototypeOf(p)?p.signal:c?c.signal:void 0;if(f){let v;try{v=new DOMException("Aborted","AbortError")}catch(l){v=new Error("Aborted"),v.name="AbortError"}if(f.aborted)return Promise.reject(v);let s=new Promise((l,m)=>{f.addEventListener("abort",()=>m(v),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([s,u(p,c)])}return u(p,c)},Request:a}}var je=Rr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Pc=je?qi({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Oi=je?Pc.fetch:window.fetch,cI=je?Pc.Request:window.Request,lI=je?Me:window.AbortController,fI=je?ve:window.AbortSignal;var V=require("@vkontakte/videoplayer-shared");var Fe=class{constructor(e){this.params=e,this.apiKey=e.apiKey,this.apiEnv=e.config.apiEnv,this.apiBaseUrl=Ti[this.apiEnv],this.timeSynchronisation=e.timeSynchronisation,this.isApiBaseUrlFetched=!1}async resolveApiBaseUrl(){var e;if(this.apiEnv!=="auto"||this.isApiBaseUrlFetched)return this.apiBaseUrl;try{let t=atob("aHR0cHM6Ly9kbnMuZ29vZ2xlL3Jlc29sdmU/bmFtZT12aWRlby5fZW5kcG9pbnQub2sucnUmdHlwZT1UWFQ="),o=await(await Oi(t,{method:"GET",mode:"cors",cache:"no-cache"})).json(),a=(e=o==null?void 0:o.Answer[0])==null?void 0:e.data;if(!a)throw new Error("Wrong DNS response");return a}catch(t){return this.params.error$.next({id:"OneStat:ApiTransport:resolveApiBaseUrl",category:V.ErrorCategory.NETWORK,message:"Unhandled resolve api base url error",thrown:t}),Ti.vk_alias}finally{this.isApiBaseUrlFetched=!0}}sendBeacon(e,t,i){if(!window.Blob||!window.navigator.sendBeacon)return!1;let o=this._prepareQueryParams({method:e,queryParams:t,sessionKey:i}),a=new window.Blob([o.toString()],{type:"application/x-www-form-urlencoded"});try{return window.navigator.sendBeacon(`${this.apiBaseUrl}/fb.do`,a)}catch(u){this.params.error$.next({id:"OneStat:ApiTransport:sendBeacon",category:V.ErrorCategory.NETWORK,message:"Unhandled beacon error",thrown:u,data:{method:e,params:t}})}return!1}async sendRequest(e,t,i){let o=(0,V.now)(),a=u=>{if(u instanceof TypeError&&["Failed to fetch","NetworkError when attempting to fetch resource."].includes(u.message)){this.params.error$.next({id:"Network",category:V.ErrorCategory.NETWORK,message:"Request failed",thrown:u});return}this.params.error$.next({id:"OneStat:ApiTransport:sendRequest",category:V.ErrorCategory.NETWORK,message:"Unhandled request error",thrown:u,data:{method:e,params:t,sessionKey:i,time:(0,V.now)()-o}})};return this.apiBaseUrl=await this.resolveApiBaseUrl(),Oi(`${this.apiBaseUrl}/fb.do`,{method:"post",headers:{"Content-type":"application/x-www-form-urlencoded"},body:this._prepareQueryParams({method:e,queryParams:t,sessionKey:i})}).then(u=>{var f,v;let d=Number(u.headers.get("content-length"))===0,p=new Date((f=u.headers.get("date"))!=null?f:"").getTime(),c=(0,V.now)()-o;if(isFinite(p)&&((v=this.timeSynchronisation)==null||v.addServerTime(p,c)),!d)return u.json().then(s=>Object.prototype.hasOwnProperty.call(s,"error_msg")?Promise.reject(s):s,a)},a)}_prepareQueryParams(e){let t=new URLSearchParams({format:"JSON",method:e.method,application_key:this.apiKey});return e.sessionKey!==void 0&&t.append("session_key",e.sessionKey),Object.entries(e.queryParams).forEach(([i,o])=>t.append(i,typeof o=="string"?o:JSON.stringify(o))),t}};var w=require("@vkontakte/videoplayer-shared"),xr="onestat_events",_i=r=>e=>e.timestamp+r>=(0,w.now)(),Cr=class{constructor(e){this.unsaltedStorage=[];this.isPaused=!1;this.isUrgent=e=>{let{operation:t}=e;return["action_play","watch_coverage_record","watch_coverage_live"].includes(t)};this.params=e,this.api=e.api,this.error$=e.error$,this.userSalt=e.userSalt,this.loggerDebugLog=e.debugLogger.createComponentLog("stat logger"),this.firstFlush=(0,w.debounceFn)(()=>this.safeFlush(),this.params.config.firstFlushTime,{maxWait:this.params.config.firstFlushTime});let t=w.safeStorage.isPersistent()?this.params.config.flushMaxWait:0;this.debouncedFlush=(0,w.debounceFn)(()=>this.safeFlush(),this.params.config.flushDebounceTime,{maxWait:t}),this.subscription=this.api.authorized$.subscribe(i=>{i&&this.debouncedFlush()}),this.housekeepStorage()}safeFlush(){var e;try{this.flush()}catch(t){this.error$.next({id:"LoggerError",category:w.ErrorCategory.WTF,message:(e=String(t))!=null?e:"Unknown logger error",thrown:t})}}readFromStorage(){let e=w.safeStorage.get(xr);try{return e?JSON.parse(e):{}}catch(t){}return{}}addToStorage(e){var a;if(!this.userSalt){this.unsaltedStorage.push(e);return}let t=this.readFromStorage(),o=((a=t[this.userSalt])!=null?a:[]).filter(_i(this.params.config.storageExpiration));w.safeStorage.set(xr,JSON.stringify({...t,[this.userSalt]:[...o,e]}))}getFromStorage(){var i;return this.userSalt?((i=this.readFromStorage()[this.userSalt])!=null?i:[]).filter(_i(this.params.config.storageExpiration)):this.unsaltedStorage}markStorageSent(){if(!this.userSalt){this.unsaltedStorage=[];return}let e=this.readFromStorage();delete e[this.userSalt],w.safeStorage.set(xr,JSON.stringify(e))}housekeepStorage(){let e=this.readFromStorage();for(let[t,i]of Object.entries(e)){let o=i.filter(_i(this.params.config.storageExpiration));o.length?e[t]=o:delete e[t],this.loggerDebugLog({message:`${i.length} retrieved from storage, ${o.length} of them actual`})}w.safeStorage.set(xr,JSON.stringify(e))}log(e){this.addToStorage(e),!this.isPaused&&(this.isUrgent(e)?this.flush():this.lastVsid!==e.custom.vsid?this.firstFlush():this.debouncedFlush(),this.lastVsid=e.custom.vsid)}flush(e=!1){let t=this.getFromStorage();t.length!==0&&(this.api.authorized$.getValue()?(e&&this.params.config.useBeacon?(this.loggerDebugLog({message:`Flushing ${t.length} events through beacon`}),this.api.logBeacon(t)):(this.loggerDebugLog({message:`Flushing ${t.length} events`}),this.api.logRequest(t)),this.markStorageSent()):this.api.authorize(),this.firstFlush.cancel(),this.debouncedFlush.cancel())}pause(){this.isPaused=!0,this.debouncedFlush.cancel()}resume(){this.isPaused=!1,this.debouncedFlush()}destroy(){this.subscription.unsubscribe(),this.firstFlush.cancel(),this.debouncedFlush.cancel()}};var g=require("@vkontakte/videoplayer-core"),wi=require("@vkontakte/videoplayer-shared");var Tc=r=>r&&{[g.VideoQuality.INVARIANT]:"unknown",[g.VideoQuality.Q_144P]:"mobile",[g.VideoQuality.Q_240P]:"lowest",[g.VideoQuality.Q_360P]:"low",[g.VideoQuality.Q_480P]:"medium",[g.VideoQuality.Q_720P]:"high",[g.VideoQuality.Q_1080P]:"fullhd",[g.VideoQuality.Q_1440P]:"quadhd",[g.VideoQuality.Q_2160P]:"ultrahd",[g.VideoQuality.Q_4320P]:"unknown"}[r],Ri=r=>r&&{[g.HttpConnectionType.HTTP1]:"http1",[g.HttpConnectionType.HTTP2]:"http2",[g.HttpConnectionType.QUIC]:"http3"}[r],qc=r=>{if(r!==void 0)switch(r){case g.VideoFormat.MPEG:return"mp4";case g.VideoFormat.DASH:case g.VideoFormat.DASH_LIVE:case g.VideoFormat.DASH_STREAMS:return"dash";case g.VideoFormat.DASH_SEP:return"dash_sep";case g.VideoFormat.DASH_ONDEMAND:return"ondemand_dash";case g.VideoFormat.DASH_WEBM:case g.VideoFormat.DASH_LIVE_WEBM:return"webm";case g.VideoFormat.DASH_WEBM_AV1:return"av1";case g.VideoFormat.DASH_LIVE_CMAF:return"ondemand_dash_live";case g.VideoFormat.HLS:case g.VideoFormat.HLS_LIVE:return"hls";case g.VideoFormat.HLS_ONDEMAND:return"ondemand_hls";case g.VideoFormat.HLS_LIVE_CMAF:return"ondemand_hls_live";case g.VideoFormat.WEB_RTC_LIVE:return"webrtc";default:return(0,wi.assertNever)(r)}},Ar=r=>{if(r!==void 0)switch(r){case g.Surface.NONE:case g.Surface.INLINE:return;case g.Surface.FULLSCREEN:return"fullscreen";case g.Surface.SECOND_SCREEN:return"chromecast";case g.Surface.PIP:return"pip";case g.Surface.INVISIBLE:return"invisible";default:return(0,wi.assertNever)(r)}},Oc=r=>{switch(r){case"slow-2g":return"poor";case"2g":return"poor";case"3g":return"good";case"4g":return"excellent"}};var Nr=class{constructor(e){this.offset=void 0;this.offset=e}getOffset(){var e;return(e=this.offset)!=null?e:0}setOffset(e){this.offset=e}now(){var e;return Date.now()+((e=this.offset)!=null?e:0)}date(e=new Date){var t;return e.setTime(e.getTime()+((t=this.offset)!=null?t:0)),e}addServerTime(e,t){let i=Date.now(),o=e-i-t/2;if(Math.abs(o)<1e3){this.offset=0;return}this.offset===void 0?this.offset=Math.round(o):this.offset=Math.round(.2*o+(1-.2)*this.offset)}};var _c=()=>Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0"),wc=()=>Math.floor(Math.random()*18446744073709552e3).toString(36).padStart(13,"0");var xi=require("@vkontakte/videoplayer-core"),b=require("@vkontakte/videoplayer-shared"),Rc=(r,e)=>new b.Observable(t=>{let i=new b.Subscription,o=(0,b.merge)((0,b.fromEvent)(window,"beforeunload"),r.events.willDestruct$),a=new b.ValueSubject(void 0),u;i.add(r.info.isLive$.pipe((0,b.filterChanged)()).subscribe(G=>{u&&(u.unsubscribe(),a.next(void 0)),G?u=r.info.liveTime$.pipe((0,b.map)(Dr=>Dr&&Dr/1e3)).subscribe(a):u=r.info.position$.subscribe(a),i.add(u)}));let{playing$:d,paused$:p}=r.events,c=r.events.willSeek$.pipe((0,b.filter)(()=>r.info.playbackState$.getValue()===xi.PlaybackState.PLAYING)),f=r.events.seeked$.pipe((0,b.filter)(()=>r.info.playbackState$.getValue()===xi.PlaybackState.PLAYING)),v=!1,s=new b.Subject;i.add(c.subscribe(()=>{v||s.next(),v=!0})),i.add(f.subscribe(()=>v=!1));let l=new b.Subject,m=new b.Subject,I=(0,b.merge)(d,f,l),S=(0,b.merge)(p,s,o,r.events.looped$,m),y,T=()=>y=a.getValue(),Nc=()=>{let G=a.getValue();(0,b.isNullable)(y)||y===G||(0,b.isNullable)(G)||(t.next({from:y,to:G}),y=void 0)},Lc=()=>{m.next(),l.next()};if(i.add(I.subscribe(T)),i.add(S.subscribe(Nc)),e.forceInterval&&isFinite(e.forceInterval)){let G=0;i.add(I.subscribe(()=>G=window.setTimeout(Lc,e.forceInterval))),i.add(S.subscribe(()=>window.clearTimeout(G)))}return i});var Ac="_one-stat_",xc=`${Ac}uuid`,Cc=`${Ac}deviceId`,Ci=()=>{let r=new h.Subscription;return{subscription:r,subscribe:(e,t)=>{e&&r.add(e.subscribe(t))}}},Lr=class{constructor(e,t){this.subscription=new h.Subscription;this.debugLogger=new kr.Logger;this.oneStatDebugLog=this.debugLogger.createComponentLog("onestat");this.loopCounter=0;this.disabled=!1;this.vsid$=new h.ValueSubject(void 0);this.isid$=new h.ValueSubject(void 0);this.seekAction$=new h.ValueSubject("unknown");var c,f,v;this.statContext=e,this.config=ji((c=t.config)!=null?c:{}),(0,h.isNonNullable)(t.apiEnv)&&(this.config.apiEnv=t.apiEnv),this.config.synchronizeTime&&(this.timeSynchronisation=new Nr);let i=new h.Subject;this.experimental={error$:i},h.safeStorage.get(xc)&&h.safeStorage.remove(xc);let a=h.safeStorage.get(Cc);this.statContext.deviceId?this.deviceId=this.statContext.deviceId:a?this.deviceId=a:(this.deviceId=Mr(),h.safeStorage.set(Cc,this.deviceId)),this.resetViewSession(),t.useIsid&&this.isid$.next((f=t.isid)!=null?f:wc());let u=new Fe({apiKey:Ec,config:this.config,error$:i,timeSynchronisation:this.timeSynchronisation});this.api=new $e({config:this.config,apiTransport:u,refreshAuthToken:t.refreshAuthToken,mobile:(v=this.statContext.mobile)!=null?v:!1,deviceId:this.deviceId,error$:i}),this.logger=new Cr({config:this.config,debugLogger:this.debugLogger,api:this.api,error$:i,userSalt:t.userSalt});let{isEmbed:d,host:p}=(0,kr.detectEmbed)();this.isEmbed=d,this.embedParent=p,this.subscribe()}updateContext(e){this.statContext={...this.statContext,...e}}attachTo(e){let t=new h.Subscription,i=(s,l)=>t.add(s.subscribe(l));i(e.events.willStart$,()=>{let s=e.info.position$.getValue();this.logActionPlay({position:s}),this.statContext.projectId&&this.logActionPlayInteractive()}),i(e.events.looped$,()=>{this.resetViewSession(),++this.loopCounter>this.config.maxLoops&&(this.disabled=!0),this.logActionPlay({position:e.info.position$.getValue()})}),i(e.events.seeked$,()=>{this.logSeek({action:this.seekAction$.getValue(),time:e.info.position$.getValue()}),this.seekAction$.next("unknown")}),i(e.events.paused$,()=>{this.logPause({position:e.info.position$.getValue()})}),i(e.events.willResume$,()=>{this.logPlay()}),i(e.events.started$,()=>{this.statContext.clip&&this.logWatchCoverageRecord({start:0,end:0})}),i(e.events.playing$,()=>{this.logPlaying()}),i(Rc(e,{forceInterval:this.config.watchCoverageInterval}),s=>{let l=e.info.isLive$.getValue(),m={start:parseFloat(s.from.toFixed(3)),end:parseFloat(s.to.toFixed(3))};l?this.logWatchCoverageLive(m):this.logWatchCoverageRecord(m)});let o;i(e.info.isStalled$,s=>{s?o=(0,h.now)():((0,h.isNonNullable)(o)&&this.logEmptyBuffer({duration:(0,h.now)()-o}),o=void 0)});let a=!1;t.add(e.events.fatalError$.pipe((0,h.once)()).subscribe(()=>a=!0)),i(e.events.willStop$,()=>{if(e.info.isStalled$.getValue()){let l=(0,h.isNonNullable)(o)?(0,h.now)()-o:void 0;this.logCloseAtEmptyBuffer({duration:l!=null?l:0}),o=void 0}else a||this.logActionStop()}),i(e.events.managedError$,({id:s})=>{this.logError({fatal:!1,errorType:s})}),i(e.events.fatalError$,({id:s})=>{this.logError({fatal:!0,errorType:s})});let u,d,p=!1;i(e.events.firstBytes$,s=>{u=(0,h.now)(),this.logFirstBytes({time:s})}),i(e.events.willStart$,()=>d=(0,h.now)()),i(e.info.currentBuffer$,s=>{!p&&s&&s.end-s.start>0&&(0,h.isNonNullable)(u)&&(this.logPlayerReady({duration:(0,h.now)()-u}),p=!0)}),i(e.events.firstFrame$,()=>{(0,h.isNonNullable)(u)&&!p&&(this.logPlayerReady({duration:(0,h.now)()-u}),p=!0),(0,h.isNonNullable)(d)&&this.logFirstFrame({time:(0,h.now)()-d})});let c;i(e.info.currentVideoStream$,s=>{s&&(c&&s.id!==c&&this.logTrackSwitch(s),c=s.id)});let f;i(e.info.currentAudioStream$,s=>{s&&(f&&s.id!==f&&this.logTrackSwitch(s),f=s.id)}),i(e.info.atLiveEdge$,s=>this.updateContext({liveEdge:s})),i((0,h.combine)({muted:e.info.muted$,volume:e.info.volume$}),({muted:s,volume:l})=>this.updateContext({audible:!s&&l>0})),i(e.info.currentQuality$,s=>this.updateContext({quality:Tc(s)})),i(e.info.isAutoQualityEnabled$,s=>this.updateContext({autoQuality:s})),i(e.info.currentFormat$,s=>this.updateContext({contentType:qc(s)})),i(e.info.currentPlaybackRate$,s=>this.updateContext({rate:s})),i(e.info.is3DVideo$,s=>this.updateContext({is3d:s}));let v;return i(e.info.hostname$,s=>{let l=v!==void 0&&v!==s;this.updateContext({cdnHostname:s,failover:l}),l&&this.logFailover(s),v=s}),i(e.info.throughputEstimation$,s=>this.updateContext({downloadSpeed:s})),i(e.info.httpConnectionType$,s=>{this.statContext.firstConnectionType||this.updateContext({firstConnectionType:Ri(s)}),this.updateContext({connectionType:Ri(s)})}),i(e.info.httpConnectionReused$,s=>{(0,h.isNullable)(this.statContext.firstConnectionReused)&&this.updateContext({firstConnectionReused:s}),this.updateContext({connectionReused:s})}),i(e.info.surface$,s=>this.updateContext({mode:Ar(s)})),i((0,h.combine)({current:e.info.currentTextTrack$,available:e.info.availableTextTracks$}),({current:s,available:l})=>{let m=l.find(({id:S})=>S===s),I=m&&(m.isAuto?`${m.language}_auto`:m.language);this.updateContext({subtitles:I})}),this.player=e,this.uiEvents&&this.attachToUi(this.uiEvents),this.resubscribeBeforeunload(),this.subscription.add(t),t}attachToUi(e){this.uiEvents=e;let{subscription:t,subscribe:i}=Ci();return this.player&&(i(e.actionRewind$,()=>{this.player&&(this.resetViewSession(),this.logActionPlay({position:this.player.info.position$.getValue()}))}),i(e.actionSeek$,this.seekAction$),i(e.inPiP$,o=>{var u;let a=o?"pip":Ar((u=this.player)==null?void 0:u.info.surface$.getValue());this.updateContext({mode:a})}),i(e.inFullscreen$,o=>{var u;let a=o?"fullscreen":Ar((u=this.player)==null?void 0:u.info.surface$.getValue());this.updateContext({mode:a})}),i(e.actionSetSubtitle$,o=>this.updateContext({subtitles:o})),i(e.nextMovie$,o=>this.logNextMovie(o)),this.resubscribeBeforeunload(),this.subscription.add(t)),t}attachToAds(e){let{subscription:t,subscribe:i}=Ci();return i(e.slotRequested$,()=>this.logAdSlotRequest()),i(e.started$,o=>this.logAdStarted(o)),i(e.paused$,()=>this.logAdPaused()),i(e.resumed$,()=>this.logAdResumed()),i(e.ended$,()=>this.logAdEnded()),i(e.skipped$,()=>this.logAdSkipped()),i(e.clicked$,()=>this.logAdClicked()),this.resubscribeBeforeunload(),this.subscription.add(t),t}attachToInteractive(e){let{subscription:t,subscribe:i}=Ci();return i(e.click$,o=>this.logInterfaceClick(o)),i(e.nextMovie$,o=>this.logNextMovie(o)),this.resubscribeBeforeunload(),this.subscription.add(t),t}authorize(e){return this.api.authorize(e)}pause(){this.logger.pause(),this.oneStatDebugLog({message:"paused"})}resume(){this.logger.resume(),this.oneStatDebugLog({message:"resumed"})}destroy(){this.logger.flush(),this.subscription.unsubscribe(),this.api.destroy(),this.logger.destroy()}resetViewSession(){this.oneStatDebugLog({message:"VSID reset"}),this.vsid$.next(_c())}getDeviceId(){return this.deviceId}setFieldBlacklist(){}logInited(){}logReady(e){this.log({operation:"player_ready",param:String(e.time)})}logStarted(...e){this.logActionPlay(...e)}logPlay(){this.log({operation:"play_toggle"})}logPlaying(){this.log({operation:"playing"})}logPause(e){this.log({operation:"pause",param:String(Math.round(e.position))})}logSeek(e){this.log({operation:"seek",param:e.action,time:e.time})}logFirstBytes(e){this.log({operation:"first_bytes",param:String(e.time)})}logFirstFrame(e){this.log({operation:"first_frame",param:String(e.time)})}logError(e){this.log({operation:"content_error",param:`${e.fatal?"fatal":"recoverable"}_${e.errorType}`})}logWatchCoverageRecord(e){this.log({operation:"watch_coverage_record",param:`${e.start}-${e.end}`},{in_history:this.statContext.inHistory?1:void 0})}logWatchCoverageLive(e){var a,u;let t=(u=(a=this.timeSynchronisation)==null?void 0:a.getOffset())!=null?u:0,i=e.start+t,o=e.end+t;this.log({operation:"watch_coverage_live",param:`${i}-${o}`},{in_history:this.statContext.inHistory?1:void 0})}logEmptyBuffer(e){this.log({operation:"empty_buffer",param:String(e.duration)})}logDownloadSpeed(){}logAdSlotRequest(){this.log({operation:"adv",param:"slot_request"})}logAdStarted(e){this.log({operation:"adv",param:e})}logAdPaused(){this.log({operation:"adv",param:"pause"})}logAdResumed(){this.log({operation:"adv",param:"resume"})}logAdEnded(){this.log({operation:"adv",param:"ended"})}logAdSkipped(){this.log({operation:"adv",param:"skip"})}logAdClicked(){this.log({operation:"adv",param:"click"})}logInterfaceClick(e){this.log({operation:"player_interface_click",param:e})}logNextMovie(e){this.log({operation:"next_movie",param:String(e)})}subscribe(){this.resubscribeBeforeunload();let e=window.navigator.connection;e&&"onchange"in e&&"effectiveType"in e&&this.subscription.add((0,h.merge)((0,h.fromEvent)(e,"change"),(0,h.observableFrom)(["init"])).subscribe(()=>this.updateContext({network:Oc(e.effectiveType)}))),this.config.debugLog&&this.debugLogger.log$.subscribe(t=>{console.debug("%c stat ","background:#fa6470;",`component: ${t.component}.`,t.message)})}resubscribeBeforeunload(){var e;(e=this.beforeunloadSubscription)==null||e.unsubscribe(),this.beforeunloadSubscription=(0,h.fromEvent)(window,"beforeunload").subscribe(()=>this.logger.flush(!0)),this.subscription.add(this.beforeunloadSubscription)}logPlayerReady(e){this.log({operation:"player_ready",param:String(Math.round(e.duration))})}logActionPlay(e){this.log({operation:"action_play",param:String(Math.round(e.position))})}logActionPlayInteractive(){this.statContext.projectId&&this.log({operation:"action_play_interactive",param:String(this.statContext.movieId)},{vid:this.statContext.projectId})}logFailover(e){this.log({operation:"failover",param:e})}logCloseAtEmptyBuffer(e){this.log({operation:"close_at_empty_buffer",param:String(Math.round(e.duration))})}logActionStop(){this.log({operation:"action_stop"})}logTrackSwitch(e){this.log({operation:"track_switch",param:e.id})}log(e,t={}){if(this.disabled){this.oneStatDebugLog({message:`operation ${e.operation} but statistics is disabled`});return}if(this.config.disabledOperations.includes(e.operation)){this.oneStatDebugLog({message:`operation ${e.operation} but it is disabled`});return}this.oneStatDebugLog({message:`operation ${e.operation} ${e.param}`});let i=this.createLogItem(e,t);this.logger.log(i)}createLogItem({operation:e,param:t,time:i},o={}){var l,m;let a=(m=(l=this.timeSynchronisation)==null?void 0:l.now())!=null?m:(0,h.now)(),u=this.vsid$.getValue();(0,h.assertNonNullable)(u);let d=this.isid$.getValue(),p=e==="empty_buffer"||e==="close_at_empty_buffer"?this.statContext.connectionType:this.statContext.firstConnectionType,c=this.statContext.firstConnectionReused,f,v;if(this.isEmbed){f=this.embedParent;let I=[...new URLSearchParams(location.search).entries()].filter(([S,y])=>this.config.embedUrlParams.includes(S));v=new URLSearchParams(I).toString()}else this.statContext.place==="direct"&&((this.statContext.refDomain||document.referrer)&&(f=new URL(this.statContext.refDomain||document.referrer).hostname),v=location.href.substring(0,1024));let s={vsid:u,isid:d,vid:this.statContext.movieId,ct:this.statContext.contentType,place:this.isEmbed?"embed":this.statContext.place,quality:this.statContext.quality,cdn_host:this.statContext.cdnHostname,stat_type:this.statContext.autoplay===!0?"auto":this.statContext.autoplay===!1?"":void 0,param:t,vk_app_id:this.statContext.vkAppId,track_code:this.statContext.trackCode,connection_type:p,connection_reused:c===!0?1:c===!1?0:void 0,cached_data:this.statContext.cached===!0?1:this.statContext.cached===!1?0:void 0,live:this.statContext.liveEdge?1:void 0,muted:this.statContext.audible===!1?1:void 0,mode:this.statContext.mode,subtitles:this.statContext.subtitles,download_speed:this.statContext.downloadSpeed,manual_quality:this.statContext.autoQuality?void 0:1,ref_domain:f,direct_url:v,rate:this.statContext.rate===1||(0,h.isNullable)(this.statContext.rate)?void 0:this.statContext.rate.toFixed(2),view_360:this.statContext.is3d?1:void 0,aid:this.statContext.albumId,vk_playlist_id:this.statContext.vkPlaylistId,...o};for(let I of this.config.disabledCustomFields)delete s[I];return{operation:e,type:1,time:i,network:this.statContext.network,timestamp:a,custom:s}}};
|