@byteplus/veplayer-plugin 2.3.1-rc.1 → 2.3.1-rc.3
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/esm/veplayer.plugin.drm.development.js +1577 -0
- package/esm/veplayer.plugin.drm.production.js +2 -0
- package/esm/veplayer.plugin.mp4.development.js +38039 -0
- package/esm/veplayer.plugin.mp4.production.js +2 -0
- package/esm/veplayer.plugin.rtm.development.js +5587 -0
- package/esm/veplayer.plugin.rtm.production.js +2 -0
- package/esm/veplayer.plugin.shaka.development.js +15973 -0
- package/esm/veplayer.plugin.shaka.production.js +20 -0
- package/esm/veplayer.plugin.time.shift.development.css +63 -0
- package/esm/veplayer.plugin.time.shift.development.js +339 -0
- package/esm/veplayer.plugin.time.shift.production.css +1 -0
- package/esm/veplayer.plugin.time.shift.production.js +2 -0
- package/esm/veplayer.plugin.xgvideo.development.js +19097 -0
- package/esm/veplayer.plugin.xgvideo.production.js +2 -0
- package/package.json +1 -1
- package/umd/veplayer.plugin.drm.development.js +1579 -0
- package/umd/veplayer.plugin.drm.production.js +1 -0
- package/umd/veplayer.plugin.mp4.development.js +38043 -0
- package/umd/veplayer.plugin.mp4.production.js +1 -0
- package/umd/veplayer.plugin.rtm.development.js +5589 -0
- package/umd/veplayer.plugin.rtm.production.js +1 -0
- package/umd/veplayer.plugin.shaka.development.js +15977 -0
- package/umd/veplayer.plugin.shaka.production.js +1 -0
- package/umd/veplayer.plugin.time.shift.development.css +63 -0
- package/umd/veplayer.plugin.time.shift.development.js +342 -0
- package/umd/veplayer.plugin.time.shift.production.css +1 -0
- package/umd/veplayer.plugin.time.shift.production.js +1 -0
- package/umd/veplayer.plugin.xgvideo.development.js +19099 -0
- package/umd/veplayer.plugin.xgvideo.production.js +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).__VEPLAYER_PLUGIN_RTM__={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math==Math&&e},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),i=function(e){try{return!!e()}catch(t){return!0}},a=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=a,s=Function.prototype,c=s.apply,l=s.call,f="object"==typeof Reflect&&Reflect.apply||(u?l.bind(c):function(){return l.apply(c,arguments)}),p=a,h=Function.prototype,d=h.call,v=p&&h.bind.bind(d,d),g=p?v:function(e){return function(){return d.apply(e,arguments)}},y=g,m=y({}.toString),_=y("".slice),b=function(e){return _(m(e),8,-1)},w=b,x=g,S=function(e){if("Function"===w(e))return x(e)},k="object"==typeof document&&document.all,T={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},O=T.all,E=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===O}:function(e){return"function"==typeof e},L={},R=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),P=a,C=Function.prototype.call,A=P?C.bind(C):function(){return C.apply(C,arguments)},j={},I={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,N=M&&!I.call({1:2},1);j.f=N?function(e){var t=M(this,e);return!!t&&t.enumerable}:I;var F,D,U=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B=i,H=b,z=Object,q=g("".split),G=B((function(){return!z("z").propertyIsEnumerable(0)}))?function(e){return"String"==H(e)?q(e,""):z(e)}:z,V=function(e){return null==e},$=V,Y=TypeError,W=function(e){if($(e))throw Y("Can't call method on "+e);return e},K=G,X=W,J=function(e){return K(X(e))},Q=E,Z=T.all,ee=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Q(e)||e===Z}:function(e){return"object"==typeof e?null!==e:Q(e)},te={},re=te,ne=o,oe=E,ie=function(e){return oe(e)?e:void 0},ae=function(e,t){return arguments.length<2?ie(re[e])||ie(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},ue=g({}.isPrototypeOf),se="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=o,le=se,fe=ce.process,pe=ce.Deno,he=fe&&fe.versions||pe&&pe.version,de=he&&he.v8;de&&(D=(F=de.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!D&&le&&(!(F=le.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=le.match(/Chrome\/(\d+)/))&&(D=+F[1]);var ve=D,ge=ve,ye=i,me=o.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})),be=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=ae,xe=E,Se=ue,ke=Object,Te=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return xe(t)&&Se(t.prototype,ke(e))},Oe=String,Ee=function(e){try{return Oe(e)}catch(t){return"Object"}},Le=E,Re=Ee,Pe=TypeError,Ce=function(e){if(Le(e))return e;throw Pe(Re(e)+" is not a function")},Ae=Ce,je=V,Ie=function(e,t){var r=e[t];return je(r)?void 0:Ae(r)},Me=A,Ne=E,Fe=ee,De=TypeError,Ue={exports:{}},Be=o,He=Object.defineProperty,ze=function(e,t){try{He(Be,e,{value:t,configurable:!0,writable:!0})}catch(r){Be[e]=t}return t},qe="__core-js_shared__",Ge=o[qe]||ze(qe,{}),Ve=Ge;(Ue.exports=function(e,t){return Ve[e]||(Ve[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var $e=Ue.exports,Ye=W,We=Object,Ke=function(e){return We(Ye(e))},Xe=Ke,Je=g({}.hasOwnProperty),Qe=Object.hasOwn||function(e,t){return Je(Xe(e),t)},Ze=g,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},ot=$e,it=Qe,at=nt,ut=_e,st=be,ct=o.Symbol,lt=ot("wks"),ft=st?ct.for||ct:ct&&ct.withoutSetter||at,pt=function(e){return it(lt,e)||(lt[e]=ut&&it(ct,e)?ct[e]:ft("Symbol."+e)),lt[e]},ht=A,dt=ee,vt=Te,gt=Ie,yt=function(e,t){var r,n;if("string"===t&&Ne(r=e.toString)&&!Fe(n=Me(r,e)))return n;if(Ne(r=e.valueOf)&&!Fe(n=Me(r,e)))return n;if("string"!==t&&Ne(r=e.toString)&&!Fe(n=Me(r,e)))return n;throw De("Can't convert object to primitive value")},mt=TypeError,_t=pt("toPrimitive"),bt=function(e,t){if(!dt(e)||vt(e))return e;var r,n=gt(e,_t);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!dt(r)||vt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},wt=Te,xt=function(e){var t=bt(e,"string");return wt(t)?t:t+""},St=ee,kt=o.document,Tt=St(kt)&&St(kt.createElement),Ot=function(e){return Tt?kt.createElement(e):{}},Et=Ot,Lt=!R&&!i((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),Rt=R,Pt=A,Ct=j,At=U,jt=J,It=xt,Mt=Qe,Nt=Lt,Ft=Object.getOwnPropertyDescriptor;L.f=Rt?Ft:function(e,t){if(e=jt(e),t=It(t),Nt)try{return Ft(e,t)}catch(r){}if(Mt(e,t))return At(!Pt(Ct.f,e,t),e[t])};var Dt=i,Ut=E,Bt=/#|\.prototype\./,Ht=function(e,t){var r=qt[zt(e)];return r==Vt||r!=Gt&&(Ut(t)?Dt(t):!!t)},zt=Ht.normalize=function(e){return String(e).replace(Bt,".").toLowerCase()},qt=Ht.data={},Gt=Ht.NATIVE="N",Vt=Ht.POLYFILL="P",$t=Ht,Yt=Ce,Wt=a,Kt=S(S.bind),Xt=function(e,t){return Yt(e),void 0===t?e:Wt?Kt(e,t):function(){return e.apply(t,arguments)}},Jt={},Qt=R&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=ee,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=R,or=Lt,ir=Qt,ar=rr,ur=xt,sr=TypeError,cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,fr="enumerable",pr="configurable",hr="writable";Jt.f=nr?ir?function(e,t,r){if(ar(e),t=ur(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&hr in r&&!r[hr]){var n=lr(e,t);n&&n[hr]&&(e[t]=r.value,r={configurable:pr in r?r[pr]:n[pr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return cr(e,t,r)}:cr:function(e,t,r){if(ar(e),t=ur(t),ar(r),or)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw sr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var dr=Jt,vr=U,gr=R?function(e,t,r){return dr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},yr=o,mr=f,_r=S,br=E,wr=L.f,xr=$t,Sr=te,kr=Xt,Tr=gr,Or=Qe,Er=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},Lr=function(e,t){var r,n,o,i,a,u,s,c,l,f=e.target,p=e.global,h=e.stat,d=e.proto,v=p?yr:h?yr[f]:(yr[f]||{}).prototype,g=p?Sr:Sr[f]||Tr(Sr,f,{})[f],y=g.prototype;for(i in t)n=!(r=xr(p?i:f+(h?".":"#")+i,e.forced))&&v&&Or(v,i),u=g[i],n&&(s=e.dontCallGetSet?(l=wr(v,i))&&l.value:v[i]),a=n&&s?s:t[i],n&&typeof u==typeof a||(c=e.bind&&n?kr(a,yr):e.wrap&&n?Er(a):d&&br(a)?_r(a):a,(e.sham||a&&a.sham||u&&u.sham)&&Tr(c,"sham",!0),Tr(g,i,c),d&&(Or(Sr,o=f+"Prototype")||Tr(Sr,o,{}),Tr(Sr[o],i,a),e.real&&y&&(r||!y[i])&&Tr(y,i,a)))},Rr=b,Pr=Array.isArray||function(e){return"Array"==Rr(e)},Cr=Math.ceil,Ar=Math.floor,jr=Math.trunc||function(e){var t=+e;return(t>0?Ar:Cr)(t)},Ir=function(e){var t=+e;return t!=t||0===t?0:jr(t)},Mr=Ir,Nr=Math.min,Fr=function(e){return e>0?Nr(Mr(e),9007199254740991):0},Dr=Fr,Ur=function(e){return Dr(e.length)},Br=TypeError,Hr=function(e){if(e>9007199254740991)throw Br("Maximum allowed index exceeded");return e},zr=xt,qr=Jt,Gr=U,Vr=function(e,t,r){var n=zr(t);n in e?qr.f(e,n,Gr(0,r)):e[n]=r},$r={};$r[pt("toStringTag")]="z";var Yr="[object z]"===String($r),Wr=Yr,Kr=E,Xr=b,Jr=pt("toStringTag"),Qr=Object,Zr="Arguments"==Xr(function(){return arguments}()),en=Wr?Xr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Qr(e),Jr))?r:Zr?Xr(t):"Object"==(n=Xr(t))&&Kr(t.callee)?"Arguments":n},tn=E,rn=Ge,nn=g(Function.toString);tn(rn.inspectSource)||(rn.inspectSource=function(e){return nn(e)});var on=rn.inspectSource,an=g,un=i,sn=E,cn=en,ln=on,fn=function(){},pn=[],hn=ae("Reflect","construct"),dn=/^\s*(?:class|function)\b/,vn=an(dn.exec),gn=!dn.exec(fn),yn=function(e){if(!sn(e))return!1;try{return hn(fn,pn,e),!0}catch(t){return!1}},mn=function(e){if(!sn(e))return!1;switch(cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gn||!!vn(dn,ln(e))}catch(t){return!0}};mn.sham=!0;var _n=!hn||un((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?mn:yn,bn=Pr,wn=_n,xn=ee,Sn=pt("species"),kn=Array,Tn=function(e){var t;return bn(e)&&(t=e.constructor,(wn(t)&&(t===kn||bn(t.prototype))||xn(t)&&null===(t=t[Sn]))&&(t=void 0)),void 0===t?kn:t},On=function(e,t){return new(Tn(e))(0===t?0:t)},En=i,Ln=ve,Rn=pt("species"),Pn=function(e){return Ln>=51||!En((function(){var t=[];return(t.constructor={})[Rn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Cn=Lr,An=i,jn=Pr,In=ee,Mn=Ke,Nn=Ur,Fn=Hr,Dn=Vr,Un=On,Bn=Pn,Hn=ve,zn=pt("isConcatSpreadable"),qn=Hn>=51||!An((function(){var e=[];return e[zn]=!1,e.concat()[0]!==e})),Gn=function(e){if(!In(e))return!1;var t=e[zn];return void 0!==t?!!t:jn(e)};Cn({target:"Array",proto:!0,arity:1,forced:!qn||!Bn("concat")},{concat:function(e){var t,r,n,o,i,a=Mn(this),u=Un(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Gn(i=-1===t?a:arguments[t]))for(o=Nn(i),Fn(s+o),r=0;r<o;r++,s++)r in i&&Dn(u,s,i[r]);else Fn(s+1),Dn(u,s++,i);return u.length=s,u}});var Vn=en,$n=String,Yn=function(e){if("Symbol"===Vn(e))throw TypeError("Cannot convert a Symbol value to a string");return $n(e)},Wn={},Kn=Ir,Xn=Math.max,Jn=Math.min,Qn=function(e,t){var r=Kn(e);return r<0?Xn(r+t,0):Jn(r,t)},Zn=J,eo=Qn,to=Ur,ro=function(e){return function(t,r,n){var o,i=Zn(t),a=to(i),u=eo(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},no={includes:ro(!0),indexOf:ro(!1)},oo={},io=Qe,ao=J,uo=no.indexOf,so=oo,co=g([].push),lo=function(e,t){var r,n=ao(e),o=0,i=[];for(r in n)!io(so,r)&&io(n,r)&&co(i,r);for(;t.length>o;)io(n,r=t[o++])&&(~uo(i,r)||co(i,r));return i},fo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],po=lo,ho=fo,vo=Object.keys||function(e){return po(e,ho)},go=R,yo=Qt,mo=Jt,_o=rr,bo=J,wo=vo;Wn.f=go&&!yo?Object.defineProperties:function(e,t){_o(e);for(var r,n=bo(t),o=wo(t),i=o.length,a=0;i>a;)mo.f(e,r=o[a++],n[r]);return e};var xo,So=ae("document","documentElement"),ko=nt,To=$e("keys"),Oo=function(e){return To[e]||(To[e]=ko(e))},Eo=rr,Lo=Wn,Ro=fo,Po=oo,Co=So,Ao=Ot,jo="prototype",Io="script",Mo=Oo("IE_PROTO"),No=function(){},Fo=function(e){return"<"+Io+">"+e+"</"+Io+">"},Do=function(e){e.write(Fo("")),e.close();var t=e.parentWindow.Object;return e=null,t},Uo=function(){try{xo=new ActiveXObject("htmlfile")}catch(o){}var e,t,r;Uo="undefined"!=typeof document?document.domain&&xo?Do(xo):(t=Ao("iframe"),r="java"+Io+":",t.style.display="none",Co.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Fo("document.F=Object")),e.close(),e.F):Do(xo);for(var n=Ro.length;n--;)delete Uo[jo][Ro[n]];return Uo()};Po[Mo]=!0;var Bo=Object.create||function(e,t){var r;return null!==e?(No[jo]=Eo(e),r=new No,No[jo]=null,r[Mo]=e):r=Uo(),void 0===t?r:Lo.f(r,t)},Ho={},zo=lo,qo=fo.concat("length","prototype");Ho.f=Object.getOwnPropertyNames||function(e){return zo(e,qo)};var Go={},Vo=Qn,$o=Ur,Yo=Vr,Wo=Array,Ko=Math.max,Xo=function(e,t,r){for(var n=$o(e),o=Vo(t,n),i=Vo(void 0===r?n:r,n),a=Wo(Ko(i-o,0)),u=0;o<i;o++,u++)Yo(a,u,e[o]);return a.length=u,a},Jo=b,Qo=J,Zo=Ho.f,ei=Xo,ti="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Go.f=function(e){return ti&&"Window"==Jo(e)?function(e){try{return Zo(e)}catch(t){return ei(ti)}}(e):Zo(Qo(e))};var ri={};ri.f=Object.getOwnPropertySymbols;var ni=gr,oi=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ni(e,t,r),e},ii=Jt,ai=function(e,t,r){return ii.f(e,t,r)},ui={},si=pt;ui.f=si;var ci,li,fi,pi=te,hi=Qe,di=ui,vi=Jt.f,gi=function(e){var t=pi.Symbol||(pi.Symbol={});hi(t,e)||vi(t,e,{value:di.f(e)})},yi=A,mi=ae,_i=pt,bi=oi,wi=function(){var e=mi("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=_i("toPrimitive");t&&!t[n]&&bi(t,n,(function(e){return yi(r,this)}),{arity:1})},xi=en,Si=Yr?{}.toString:function(){return"[object "+xi(this)+"]"},ki=Yr,Ti=Jt.f,Oi=gr,Ei=Qe,Li=Si,Ri=pt("toStringTag"),Pi=function(e,t,r,n){if(e){var o=r?e:e.prototype;Ei(o,Ri)||Ti(o,Ri,{configurable:!0,value:t}),n&&!ki&&Oi(o,"toString",Li)}},Ci=E,Ai=o.WeakMap,ji=Ci(Ai)&&/native code/.test(String(Ai)),Ii=o,Mi=ee,Ni=gr,Fi=Qe,Di=Ge,Ui=Oo,Bi=oo,Hi="Object already initialized",zi=Ii.TypeError,qi=Ii.WeakMap;if(ji||Di.state){var Gi=Di.state||(Di.state=new qi);Gi.get=Gi.get,Gi.has=Gi.has,Gi.set=Gi.set,ci=function(e,t){if(Gi.has(e))throw zi(Hi);return t.facade=e,Gi.set(e,t),t},li=function(e){return Gi.get(e)||{}},fi=function(e){return Gi.has(e)}}else{var Vi=Ui("state");Bi[Vi]=!0,ci=function(e,t){if(Fi(e,Vi))throw zi(Hi);return t.facade=e,Ni(e,Vi,t),t},li=function(e){return Fi(e,Vi)?e[Vi]:{}},fi=function(e){return Fi(e,Vi)}}var $i={set:ci,get:li,has:fi,enforce:function(e){return fi(e)?li(e):ci(e,{})},getterFor:function(e){return function(t){var r;if(!Mi(t)||(r=li(t)).type!==e)throw zi("Incompatible receiver, "+e+" required");return r}}},Yi=Xt,Wi=G,Ki=Ke,Xi=Ur,Ji=On,Qi=g([].push),Zi=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var p,h,d=Ki(s),v=Wi(d),g=Yi(c,l),y=Xi(v),m=0,_=f||Ji,b=t?_(s,y):r||a?_(s,0):void 0;y>m;m++)if((u||m in v)&&(h=g(p=v[m],m,d),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:Qi(b,p)}else switch(e){case 4:return!1;case 7:Qi(b,p)}return i?-1:n||o?o:b}},ea={forEach:Zi(0),map:Zi(1),filter:Zi(2),some:Zi(3),every:Zi(4),find:Zi(5),findIndex:Zi(6),filterReject:Zi(7)},ta=Lr,ra=o,na=A,oa=g,ia=R,aa=_e,ua=i,sa=Qe,ca=ue,la=rr,fa=J,pa=xt,ha=Yn,da=U,va=Bo,ga=vo,ya=Ho,ma=Go,_a=ri,ba=L,wa=Jt,xa=Wn,Sa=j,ka=oi,Ta=ai,Oa=$e,Ea=oo,La=nt,Ra=pt,Pa=ui,Ca=gi,Aa=wi,ja=Pi,Ia=$i,Ma=ea.forEach,Na=Oo("hidden"),Fa="Symbol",Da="prototype",Ua=Ia.set,Ba=Ia.getterFor(Fa),Ha=Object[Da],za=ra.Symbol,qa=za&&za[Da],Ga=ra.TypeError,Va=ra.QObject,$a=ba.f,Ya=wa.f,Wa=ma.f,Ka=Sa.f,Xa=oa([].push),Ja=Oa("symbols"),Qa=Oa("op-symbols"),Za=Oa("wks"),eu=!Va||!Va[Da]||!Va[Da].findChild,tu=ia&&ua((function(){return 7!=va(Ya({},"a",{get:function(){return Ya(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=$a(Ha,t);n&&delete Ha[t],Ya(e,t,r),n&&e!==Ha&&Ya(Ha,t,n)}:Ya,ru=function(e,t){var r=Ja[e]=va(qa);return Ua(r,{type:Fa,tag:e,description:t}),ia||(r.description=t),r},nu=function(e,t,r){e===Ha&&nu(Qa,t,r),la(e);var n=pa(t);return la(r),sa(Ja,n)?(r.enumerable?(sa(e,Na)&&e[Na][n]&&(e[Na][n]=!1),r=va(r,{enumerable:da(0,!1)})):(sa(e,Na)||Ya(e,Na,da(1,{})),e[Na][n]=!0),tu(e,n,r)):Ya(e,n,r)},ou=function(e,t){la(e);var r=fa(t),n=ga(r).concat(su(r));return Ma(n,(function(t){ia&&!na(iu,r,t)||nu(e,t,r[t])})),e},iu=function(e){var t=pa(e),r=na(Ka,this,t);return!(this===Ha&&sa(Ja,t)&&!sa(Qa,t))&&(!(r||!sa(this,t)||!sa(Ja,t)||sa(this,Na)&&this[Na][t])||r)},au=function(e,t){var r=fa(e),n=pa(t);if(r!==Ha||!sa(Ja,n)||sa(Qa,n)){var o=$a(r,n);return!o||!sa(Ja,n)||sa(r,Na)&&r[Na][n]||(o.enumerable=!0),o}},uu=function(e){var t=Wa(fa(e)),r=[];return Ma(t,(function(e){sa(Ja,e)||sa(Ea,e)||Xa(r,e)})),r},su=function(e){var t=e===Ha,r=Wa(t?Qa:fa(e)),n=[];return Ma(r,(function(e){!sa(Ja,e)||t&&!sa(Ha,e)||Xa(n,Ja[e])})),n};aa||(za=function(){if(ca(qa,this))throw Ga("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?ha(arguments[0]):void 0,t=La(e),r=function(e){this===Ha&&na(r,Qa,e),sa(this,Na)&&sa(this[Na],t)&&(this[Na][t]=!1),tu(this,t,da(1,e))};return ia&&eu&&tu(Ha,t,{configurable:!0,set:r}),ru(t,e)},ka(qa=za[Da],"toString",(function(){return Ba(this).tag})),ka(za,"withoutSetter",(function(e){return ru(La(e),e)})),Sa.f=iu,wa.f=nu,xa.f=ou,ba.f=au,ya.f=ma.f=uu,_a.f=su,Pa.f=function(e){return ru(Ra(e),e)},ia&&Ta(qa,"description",{configurable:!0,get:function(){return Ba(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:za}),Ma(ga(Za),(function(e){Ca(e)})),ta({target:Fa,stat:!0,forced:!aa},{useSetter:function(){eu=!0},useSimple:function(){eu=!1}}),ta({target:"Object",stat:!0,forced:!aa,sham:!ia},{create:function(e,t){return void 0===t?va(e):ou(va(e),t)},defineProperty:nu,defineProperties:ou,getOwnPropertyDescriptor:au}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:uu}),Aa(),ja(za,Fa),Ea[Na]=!0;var cu=_e&&!!Symbol.for&&!!Symbol.keyFor,lu=Lr,fu=ae,pu=Qe,hu=Yn,du=$e,vu=cu,gu=du("string-to-symbol-registry"),yu=du("symbol-to-string-registry");lu({target:"Symbol",stat:!0,forced:!vu},{for:function(e){var t=hu(e);if(pu(gu,t))return gu[t];var r=fu("Symbol")(t);return gu[t]=r,yu[r]=t,r}});var mu=Lr,_u=Qe,bu=Te,wu=Ee,xu=cu,Su=$e("symbol-to-string-registry");mu({target:"Symbol",stat:!0,forced:!xu},{keyFor:function(e){if(!bu(e))throw TypeError(wu(e)+" is not a symbol");if(_u(Su,e))return Su[e]}});var ku=g([].slice),Tu=Pr,Ou=E,Eu=b,Lu=Yn,Ru=g([].push),Pu=Lr,Cu=ae,Au=f,ju=A,Iu=g,Mu=i,Nu=E,Fu=Te,Du=ku,Uu=function(e){if(Ou(e))return e;if(Tu(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?Ru(r,o):"number"!=typeof o&&"Number"!=Eu(o)&&"String"!=Eu(o)||Ru(r,Lu(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Tu(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},Bu=_e,Hu=String,zu=Cu("JSON","stringify"),qu=Iu(/./.exec),Gu=Iu("".charAt),Vu=Iu("".charCodeAt),$u=Iu("".replace),Yu=Iu(1..toString),Wu=/[\uD800-\uDFFF]/g,Ku=/^[\uD800-\uDBFF]$/,Xu=/^[\uDC00-\uDFFF]$/,Ju=!Bu||Mu((function(){var e=Cu("Symbol")();return"[null]"!=zu([e])||"{}"!=zu({a:e})||"{}"!=zu(Object(e))})),Qu=Mu((function(){return'"\\udf06\\ud834"'!==zu("\udf06\ud834")||'"\\udead"'!==zu("\udead")})),Zu=function(e,t){var r=Du(arguments),n=Uu(t);if(Nu(n)||void 0!==e&&!Fu(e))return r[1]=function(e,t){if(Nu(n)&&(t=ju(n,this,Hu(e),t)),!Fu(t))return t},Au(zu,null,r)},es=function(e,t,r){var n=Gu(r,t-1),o=Gu(r,t+1);return qu(Ku,e)&&!qu(Xu,o)||qu(Xu,e)&&!qu(Ku,n)?"\\u"+Yu(Vu(e,0),16):e};zu&&Pu({target:"JSON",stat:!0,arity:3,forced:Ju||Qu},{stringify:function(e,t,r){var n=Du(arguments),o=Au(Ju?Zu:zu,null,n);return Qu&&"string"==typeof o?$u(o,Wu,es):o}});var ts=ri,rs=Ke;Lr({target:"Object",stat:!0,forced:!_e||i((function(){ts.f(1)}))},{getOwnPropertySymbols:function(e){var t=ts.f;return t?t(rs(e)):[]}}),gi("asyncIterator"),gi("hasInstance"),gi("isConcatSpreadable"),gi("iterator"),gi("match"),gi("matchAll"),gi("replace"),gi("search"),gi("species"),gi("split");var ns=wi;gi("toPrimitive"),ns();var os=ae,is=Pi;gi("toStringTag"),is(os("Symbol"),"Symbol"),gi("unscopables"),Pi(o.JSON,"JSON",!0);var as,us,ss,cs=te.Symbol,ls={},fs=R,ps=Qe,hs=Function.prototype,ds=fs&&Object.getOwnPropertyDescriptor,vs=ps(hs,"name"),gs={EXISTS:vs,PROPER:vs&&"something"===function(){}.name,CONFIGURABLE:vs&&(!fs||fs&&ds(hs,"name").configurable)},ys=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ms=Qe,_s=E,bs=Ke,ws=ys,xs=Oo("IE_PROTO"),Ss=Object,ks=Ss.prototype,Ts=ws?Ss.getPrototypeOf:function(e){var t=bs(e);if(ms(t,xs))return t[xs];var r=t.constructor;return _s(r)&&t instanceof r?r.prototype:t instanceof Ss?ks:null},Os=i,Es=E,Ls=ee,Rs=Bo,Ps=Ts,Cs=oi,As=pt("iterator"),js=!1;[].keys&&("next"in(ss=[].keys())?(us=Ps(Ps(ss)))!==Object.prototype&&(as=us):js=!0);var Is=!Ls(as)||Os((function(){var e={};return as[As].call(e)!==e}));Es((as=Is?{}:Rs(as))[As])||Cs(as,As,(function(){return this}));var Ms={IteratorPrototype:as,BUGGY_SAFARI_ITERATORS:js},Ns=Ms.IteratorPrototype,Fs=Bo,Ds=U,Us=Pi,Bs=ls,Hs=function(){return this},zs=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Fs(Ns,{next:Ds(+!n,r)}),Us(e,o,!1,!0),Bs[o]=Hs,e},qs=g,Gs=Ce,Vs=E,$s=String,Ys=TypeError,Ws=function(e,t,r){try{return qs(Gs(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Ks=rr,Xs=function(e){if("object"==typeof e||Vs(e))return e;throw Ys("Can't set "+$s(e)+" as a prototype")},Js=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ws(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Ks(r),Xs(n),t?e(r,n):r.__proto__=n,r}}():void 0),Qs=Lr,Zs=A,ec=gs,tc=zs,rc=Ts,nc=Pi,oc=oi,ic=ls,ac=Ms,uc=ec.PROPER,sc=ac.BUGGY_SAFARI_ITERATORS,cc=pt("iterator"),lc="keys",fc="values",pc="entries",hc=function(){return this},dc=function(e,t,r,n,o,i,a){tc(r,t,n);var u,s,c,l=function(e){if(e===o&&v)return v;if(!sc&&e in h)return h[e];switch(e){case lc:case fc:case pc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[cc]||h["@@iterator"]||o&&h[o],v=!sc&&d||l(o),g="Array"==t&&h.entries||d;if(g&&(u=rc(g.call(new e)))!==Object.prototype&&u.next&&(nc(u,f,!0,!0),ic[f]=hc),uc&&o==fc&&d&&d.name!==fc&&(p=!0,v=function(){return Zs(d,this)}),o)if(s={values:l(fc),keys:i?v:l(lc),entries:l(pc)},a)for(c in s)(sc||p||!(c in h))&&oc(h,c,s[c]);else Qs({target:t,proto:!0,forced:sc||p},s);return a&&h[cc]!==v&&oc(h,cc,v,{name:o}),ic[t]=v,s},vc=function(e,t){return{value:e,done:t}},gc=J,yc=ls,mc=$i;Jt.f;var _c=dc,bc=vc,wc="Array Iterator",xc=mc.set,Sc=mc.getterFor(wc);_c(Array,"Array",(function(e,t){xc(this,{type:wc,target:gc(e),index:0,kind:t})}),(function(){var e=Sc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,bc(void 0,!0)):bc("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),yc.Arguments=yc.Array;var kc={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},Tc=o,Oc=en,Ec=gr,Lc=ls,Rc=pt("toStringTag");for(var Pc in kc){var Cc=Tc[Pc],Ac=Cc&&Cc.prototype;Ac&&Oc(Ac)!==Rc&&Ec(Ac,Rc,Pc),Lc[Pc]=Lc.Array}var jc=cs;gi("dispose");var Ic=jc;gi("asyncDispose");var Mc=Lr,Nc=g,Fc=ae("Symbol"),Dc=Fc.keyFor,Uc=Nc(Fc.prototype.valueOf);Mc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Dc(Uc(e))}catch(t){return!1}}});for(var Bc=Lr,Hc=$e,zc=ae,qc=g,Gc=Te,Vc=pt,$c=zc("Symbol"),Yc=$c.isWellKnown,Wc=zc("Object","getOwnPropertyNames"),Kc=qc($c.prototype.valueOf),Xc=Hc("wks"),Jc=0,Qc=Wc($c),Zc=Qc.length;Jc<Zc;Jc++)try{var el=Qc[Jc];Gc($c[el])&&Vc(el)}catch(RC){}Bc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Yc&&Yc(e))return!0;try{for(var t=Kc(e),r=0,n=Wc(Xc),o=n.length;r<o;r++)if(Xc[n[r]]==t)return!0}catch(RC){}return!1}}),gi("matcher"),gi("metadataKey"),gi("observable"),gi("metadata"),gi("patternMatch"),gi("replaceAll");var tl=Ic,rl=r(tl),nl=g,ol=Ir,il=Yn,al=W,ul=nl("".charAt),sl=nl("".charCodeAt),cl=nl("".slice),ll=function(e){return function(t,r){var n,o,i=il(al(t)),a=ol(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=sl(i,a))<55296||n>56319||a+1===u||(o=sl(i,a+1))<56320||o>57343?e?ul(i,a):n:e?cl(i,a,a+2):o-56320+(n-55296<<10)+65536}},fl={codeAt:ll(!1),charAt:ll(!0)},pl=fl.charAt,hl=Yn,dl=$i,vl=dc,gl=vc,yl="String Iterator",ml=dl.set,_l=dl.getterFor(yl);vl(String,"String",(function(e){ml(this,{type:yl,string:hl(e),index:0})}),(function(){var e,t=_l(this),r=t.string,n=t.index;return n>=r.length?gl(void 0,!0):(e=pl(r,n),t.index+=e.length,gl(e,!1))}));var bl=ui.f("iterator"),wl=r(bl);function xl(e){return(xl="function"==typeof rl&&"symbol"==typeof wl?function(e){return typeof e}:function(e){return e&&"function"==typeof rl&&e.constructor===rl&&e!==rl.prototype?"symbol":typeof e})(e)}var Sl=Ke,kl=vo;Lr({target:"Object",stat:!0,forced:i((function(){kl(1)}))},{keys:function(e){return kl(Sl(e))}});var Tl=r(te.Object.keys),Ol=r(te.Object.getOwnPropertySymbols),El=ea.filter;Lr({target:"Array",proto:!0,forced:!Pn("filter")},{filter:function(e){return El(this,e,arguments.length>1?arguments[1]:void 0)}});var Ll=te,Rl=function(e){return Ll[e+"Prototype"]},Pl=Rl("Array").filter,Cl=ue,Al=Pl,jl=Array.prototype,Il=r((function(e){var t=e.filter;return e===jl||Cl(jl,e)&&t===jl.filter?Al:t})),Ml={exports:{}},Nl=Lr,Fl=i,Dl=J,Ul=L.f,Bl=R;Nl({target:"Object",stat:!0,forced:!Bl||Fl((function(){Ul(1)})),sham:!Bl},{getOwnPropertyDescriptor:function(e,t){return Ul(Dl(e),t)}});var Hl=te.Object,zl=Ml.exports=function(e,t){return Hl.getOwnPropertyDescriptor(e,t)};Hl.getOwnPropertyDescriptor.sham&&(zl.sham=!0);var ql=r(Ml.exports),Gl=i,Vl=function(e,t){var r=[][e];return!!r&&Gl((function(){r.call(null,t||function(){return 1},1)}))},$l=ea.forEach,Yl=Vl("forEach")?[].forEach:function(e){return $l(this,e,arguments.length>1?arguments[1]:void 0)};Lr({target:"Array",proto:!0,forced:[].forEach!=Yl},{forEach:Yl});var Wl=Rl("Array").forEach,Kl=en,Xl=Qe,Jl=ue,Ql=Wl,Zl=Array.prototype,ef={DOMTokenList:!0,NodeList:!0},tf=r((function(e){var t=e.forEach;return e===Zl||Jl(Zl,e)&&t===Zl.forEach||Xl(ef,Kl(e))?Ql:t})),rf=ae,nf=Ho,of=ri,af=rr,uf=g([].concat),sf=rf("Reflect","ownKeys")||function(e){var t=nf.f(af(e)),r=of.f;return r?uf(t,r(e)):t},cf=sf,lf=J,ff=L,pf=Vr;Lr({target:"Object",stat:!0,sham:!R},{getOwnPropertyDescriptors:function(e){for(var t,r,n=lf(e),o=ff.f,i=cf(n),a={},u=0;i.length>u;)void 0!==(r=o(n,t=i[u++]))&&pf(a,t,r);return a}});var hf=r(te.Object.getOwnPropertyDescriptors),df={exports:{}},vf=Lr,gf=R,yf=Wn.f;vf({target:"Object",stat:!0,forced:Object.defineProperties!==yf,sham:!gf},{defineProperties:yf});var mf=te.Object,_f=df.exports=function(e,t){return mf.defineProperties(e,t)};mf.defineProperties.sham&&(_f.sham=!0);var bf=r(df.exports),wf={exports:{}},xf=Lr,Sf=R,kf=Jt.f;xf({target:"Object",stat:!0,forced:Object.defineProperty!==kf,sham:!Sf},{defineProperty:kf});var Tf=te.Object,Of=wf.exports=function(e,t,r){return Tf.defineProperty(e,t,r)};Tf.defineProperty.sham&&(Of.sham=!0);var Ef=r(wf.exports),Lf=r(tl);Lr({target:"Object",stat:!0,sham:!R},{create:Bo});var Rf=te.Object,Pf=r((function(e,t){return Rf.create(e,t)})),Cf=Ke,Af=Ts,jf=ys;Lr({target:"Object",stat:!0,forced:i((function(){Af(1)})),sham:!jf},{getPrototypeOf:function(e){return Af(Cf(e))}});var If=r(te.Object.getPrototypeOf);Lr({target:"Object",stat:!0},{setPrototypeOf:Js});var Mf=r(te.Object.setPrototypeOf),Nf=Qe,Ff=sf,Df=L,Uf=Jt,Bf=ee,Hf=gr,zf=Error,qf=g("".replace),Gf=String(zf("zxcasd").stack),Vf=/\n\s*at [^:]*:[^\n]*/,$f=Vf.test(Gf),Yf=U,Wf=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Yf(1,7)),7!==e.stack)})),Kf=gr,Xf=function(e,t){if($f&&"string"==typeof e&&!zf.prepareStackTrace)for(;t--;)e=qf(e,Vf,"");return e},Jf=Wf,Qf=Error.captureStackTrace,Zf=ls,ep=pt("iterator"),tp=Array.prototype,rp=function(e){return void 0!==e&&(Zf.Array===e||tp[ep]===e)},np=en,op=Ie,ip=V,ap=ls,up=pt("iterator"),sp=function(e){if(!ip(e))return op(e,up)||op(e,"@@iterator")||ap[np(e)]},cp=A,lp=Ce,fp=rr,pp=Ee,hp=sp,dp=TypeError,vp=function(e,t){var r=arguments.length<2?hp(e):t;if(lp(r))return fp(cp(r,e));throw dp(pp(e)+" is not iterable")},gp=A,yp=rr,mp=Ie,_p=function(e,t,r){var n,o;yp(e);try{if(!(n=mp(e,"return"))){if("throw"===t)throw r;return r}n=gp(n,e)}catch(RC){o=!0,n=RC}if("throw"===t)throw r;if(o)throw n;return yp(n),r},bp=Xt,wp=A,xp=rr,Sp=Ee,kp=rp,Tp=Ur,Op=ue,Ep=vp,Lp=sp,Rp=_p,Pp=TypeError,Cp=function(e,t){this.stopped=e,this.result=t},Ap=Cp.prototype,jp=function(e,t,r){var n,o,i,a,u,s,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=bp(t,l),g=function(e){return n&&Rp(n,"normal",e),new Cp(!0,e)},y=function(e){return f?(xp(e),d?v(e[0],e[1],g):v(e[0],e[1])):d?v(e,g):v(e)};if(p)n=e.iterator;else if(h)n=e;else{if(!(o=Lp(e)))throw Pp(Sp(e)+" is not iterable");if(kp(o)){for(i=0,a=Tp(e);a>i;i++)if((u=y(e[i]))&&Op(Ap,u))return u;return new Cp(!1)}n=Ep(e,o)}for(s=p?e.next:n.next;!(c=wp(s,n)).done;){try{u=y(c.value)}catch(RC){Rp(n,"throw",RC)}if("object"==typeof u&&u&&Op(Ap,u))return u}return new Cp(!1)},Ip=Yn,Mp=Lr,Np=ue,Fp=Ts,Dp=Js,Up=function(e,t,r){for(var n=Ff(t),o=Uf.f,i=Df.f,a=0;a<n.length;a++){var u=n[a];Nf(e,u)||r&&Nf(r,u)||o(e,u,i(t,u))}},Bp=Bo,Hp=gr,zp=U,qp=function(e,t){Bf(t)&&"cause"in t&&Hf(e,"cause",t.cause)},Gp=function(e,t,r,n){Jf&&(Qf?Qf(e,t):Kf(e,"stack",Xf(r,n)))},Vp=jp,$p=function(e,t){return void 0===e?arguments.length<2?"":t:Ip(e)},Yp=pt("toStringTag"),Wp=Error,Kp=[].push,Xp=function(e,t){var r,n=Np(Jp,this);Dp?r=Dp(Wp(),n?Fp(this):Jp):(r=n?this:Bp(Jp),Hp(r,Yp,"Error")),void 0!==t&&Hp(r,"message",$p(t)),Gp(r,Xp,r.stack,1),arguments.length>2&&qp(r,arguments[2]);var o=[];return Vp(e,Kp,{that:o}),Hp(r,"errors",o),r};Dp?Dp(Xp,Wp):Up(Xp,Wp,{name:!0});var Jp=Xp.prototype=Bp(Wp.prototype,{constructor:zp(1,Xp),message:zp(1,""),name:zp(1,"AggregateError")});Mp({global:!0,constructor:!0,arity:2},{AggregateError:Xp});var Qp,Zp,eh,th,rh="undefined"!=typeof process&&"process"==b(process),nh=ae,oh=ai,ih=R,ah=pt("species"),uh=function(e){var t=nh(e);ih&&t&&!t[ah]&&oh(t,ah,{configurable:!0,get:function(){return this}})},sh=ue,ch=TypeError,lh=function(e,t){if(sh(t,e))return e;throw ch("Incorrect invocation")},fh=_n,ph=Ee,hh=TypeError,dh=function(e){if(fh(e))return e;throw hh(ph(e)+" is not a constructor")},vh=rr,gh=dh,yh=V,mh=pt("species"),_h=function(e,t){var r,n=vh(e).constructor;return void 0===n||yh(r=vh(n)[mh])?t:gh(r)},bh=TypeError,wh=function(e,t){if(e<t)throw bh("Not enough arguments");return e},xh=/(?:ipad|iphone|ipod).*applewebkit/i.test(se),Sh=o,kh=f,Th=Xt,Oh=E,Eh=Qe,Lh=i,Rh=So,Ph=ku,Ch=Ot,Ah=wh,jh=xh,Ih=rh,Mh=Sh.setImmediate,Nh=Sh.clearImmediate,Fh=Sh.process,Dh=Sh.Dispatch,Uh=Sh.Function,Bh=Sh.MessageChannel,Hh=Sh.String,zh=0,qh={},Gh="onreadystatechange";Lh((function(){Qp=Sh.location}));var Vh=function(e){if(Eh(qh,e)){var t=qh[e];delete qh[e],t()}},$h=function(e){return function(){Vh(e)}},Yh=function(e){Vh(e.data)},Wh=function(e){Sh.postMessage(Hh(e),Qp.protocol+"//"+Qp.host)};Mh&&Nh||(Mh=function(e){Ah(arguments.length,1);var t=Oh(e)?e:Uh(e),r=Ph(arguments,1);return qh[++zh]=function(){kh(t,void 0,r)},Zp(zh),zh},Nh=function(e){delete qh[e]},Ih?Zp=function(e){Fh.nextTick($h(e))}:Dh&&Dh.now?Zp=function(e){Dh.now($h(e))}:Bh&&!jh?(th=(eh=new Bh).port2,eh.port1.onmessage=Yh,Zp=Th(th.postMessage,th)):Sh.addEventListener&&Oh(Sh.postMessage)&&!Sh.importScripts&&Qp&&"file:"!==Qp.protocol&&!Lh(Wh)?(Zp=Wh,Sh.addEventListener("message",Yh,!1)):Zp=Gh in Ch("script")?function(e){Rh.appendChild(Ch("script"))[Gh]=function(){Rh.removeChild(this),Vh(e)}}:function(e){setTimeout($h(e),0)});var Kh={set:Mh,clear:Nh},Xh=function(){this.head=null,this.tail=null};Xh.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Jh,Qh,Zh,ed,td,rd=Xh,nd=/ipad|iphone|ipod/i.test(se)&&"undefined"!=typeof Pebble,od=/web0s(?!.*chrome)/i.test(se),id=o,ad=Xt,ud=L.f,sd=Kh.set,cd=rd,ld=xh,fd=nd,pd=od,hd=rh,dd=id.MutationObserver||id.WebKitMutationObserver,vd=id.document,gd=id.process,yd=id.Promise,md=ud(id,"queueMicrotask"),_d=md&&md.value;if(!_d){var bd=new cd,wd=function(){var e,t;for(hd&&(e=gd.domain)&&e.exit();t=bd.get();)try{t()}catch(RC){throw bd.head&&Jh(),RC}e&&e.enter()};ld||hd||pd||!dd||!vd?!fd&&yd&&yd.resolve?((ed=yd.resolve(void 0)).constructor=yd,td=ad(ed.then,ed),Jh=function(){td(wd)}):hd?Jh=function(){gd.nextTick(wd)}:(sd=ad(sd,id),Jh=function(){sd(wd)}):(Qh=!0,Zh=vd.createTextNode(""),new dd(wd).observe(Zh,{characterData:!0}),Jh=function(){Zh.data=Qh=!Qh}),_d=function(e){bd.head||Jh(),bd.add(e)}}var xd=_d,Sd=function(e){try{return{error:!1,value:e()}}catch(RC){return{error:!0,value:RC}}},kd=o.Promise,Td="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Od=!Td&&!rh&&"object"==typeof window&&"object"==typeof document,Ed=o,Ld=kd,Rd=E,Pd=$t,Cd=on,Ad=pt,jd=Od,Id=Td,Md=ve,Nd=Ld&&Ld.prototype,Fd=Ad("species"),Dd=!1,Ud=Rd(Ed.PromiseRejectionEvent),Bd={CONSTRUCTOR:Pd("Promise",(function(){var e=Cd(Ld),t=e!==String(Ld);if(!t&&66===Md)return!0;if(!Nd.catch||!Nd.finally)return!0;if(!Md||Md<51||!/native code/.test(e)){var r=new Ld((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Fd]=n,!(Dd=r.then((function(){}))instanceof n))return!0}return!t&&(jd||Id)&&!Ud})),REJECTION_EVENT:Ud,SUBCLASSING:Dd},Hd={},zd=Ce,qd=TypeError,Gd=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw qd("Bad Promise constructor");t=e,r=n})),this.resolve=zd(t),this.reject=zd(r)};Hd.f=function(e){return new Gd(e)};var Vd,$d,Yd=Lr,Wd=rh,Kd=o,Xd=A,Jd=oi,Qd=Pi,Zd=uh,ev=Ce,tv=E,rv=ee,nv=lh,ov=_h,iv=Kh.set,av=xd,uv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(RC){}},sv=Sd,cv=rd,lv=$i,fv=kd,pv=Bd,hv=Hd,dv="Promise",vv=pv.CONSTRUCTOR,gv=pv.REJECTION_EVENT,yv=lv.getterFor(dv),mv=lv.set,_v=fv&&fv.prototype,bv=fv,wv=_v,xv=Kd.TypeError,Sv=Kd.document,kv=Kd.process,Tv=hv.f,Ov=Tv,Ev=!!(Sv&&Sv.createEvent&&Kd.dispatchEvent),Lv="unhandledrejection",Rv=function(e){var t;return!(!rv(e)||!tv(t=e.then))&&t},Pv=function(e,t){var r,n,o,i=t.value,a=1==t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&Mv(t),t.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===e.promise?c(xv("Promise-chain cycle")):(n=Rv(r))?Xd(n,r,s,c):s(r)):c(i)}catch(RC){l&&!o&&l.exit(),c(RC)}},Cv=function(e,t){e.notified||(e.notified=!0,av((function(){for(var r,n=e.reactions;r=n.get();)Pv(r,e);e.notified=!1,t&&!e.rejection&&jv(e)})))},Av=function(e,t,r){var n,o;Ev?((n=Sv.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Kd.dispatchEvent(n)):n={promise:t,reason:r},!gv&&(o=Kd["on"+e])?o(n):e===Lv&&uv("Unhandled promise rejection",r)},jv=function(e){Xd(iv,Kd,(function(){var t,r=e.facade,n=e.value;if(Iv(e)&&(t=sv((function(){Wd?kv.emit("unhandledRejection",n,r):Av(Lv,r,n)})),e.rejection=Wd||Iv(e)?2:1,t.error))throw t.value}))},Iv=function(e){return 1!==e.rejection&&!e.parent},Mv=function(e){Xd(iv,Kd,(function(){var t=e.facade;Wd?kv.emit("rejectionHandled",t):Av("rejectionhandled",t,e.value)}))},Nv=function(e,t,r){return function(n){e(t,n,r)}},Fv=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Cv(e,!0))},Dv=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw xv("Promise can't be resolved itself");var n=Rv(t);n?av((function(){var r={done:!1};try{Xd(n,t,Nv(Dv,r,e),Nv(Fv,r,e))}catch(RC){Fv(r,RC,e)}})):(e.value=t,e.state=1,Cv(e,!1))}catch(RC){Fv({done:!1},RC,e)}}};vv&&(wv=(bv=function(e){nv(this,wv),ev(e),Xd(Vd,this);var t=yv(this);try{e(Nv(Dv,t),Nv(Fv,t))}catch(RC){Fv(t,RC)}}).prototype,(Vd=function(e){mv(this,{type:dv,done:!1,notified:!1,parent:!1,reactions:new cv,rejection:!1,state:0,value:void 0})}).prototype=Jd(wv,"then",(function(e,t){var r=yv(this),n=Tv(ov(this,bv));return r.parent=!0,n.ok=!tv(e)||e,n.fail=tv(t)&&t,n.domain=Wd?kv.domain:void 0,0==r.state?r.reactions.add(n):av((function(){Pv(n,r)})),n.promise})),$d=function(){var e=new Vd,t=yv(e);this.promise=e,this.resolve=Nv(Dv,t),this.reject=Nv(Fv,t)},hv.f=Tv=function(e){return e===bv||undefined===e?new $d(e):Ov(e)}),Yd({global:!0,constructor:!0,wrap:!0,forced:vv},{Promise:bv}),Qd(bv,dv,!1,!0),Zd(dv);var Uv=pt("iterator"),Bv=!1;try{var Hv=0,zv={next:function(){return{done:!!Hv++}},return:function(){Bv=!0}};zv[Uv]=function(){return this},Array.from(zv,(function(){throw 2}))}catch(RC){}var qv=function(e,t){if(!t&&!Bv)return!1;var r=!1;try{var n={};n[Uv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(RC){}return r},Gv=kd,Vv=Bd.CONSTRUCTOR||!qv((function(e){Gv.all(e).then(void 0,(function(){}))})),$v=A,Yv=Ce,Wv=Hd,Kv=Sd,Xv=jp;Lr({target:"Promise",stat:!0,forced:Vv},{all:function(e){var t=this,r=Wv.f(t),n=r.resolve,o=r.reject,i=Kv((function(){var r=Yv(t.resolve),i=[],a=0,u=1;Xv(e,(function(e){var s=a++,c=!1;u++,$v(r,t,e).then((function(e){c||(c=!0,i[s]=e,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise}});var Jv=Lr,Qv=Bd.CONSTRUCTOR;kd&&kd.prototype,Jv({target:"Promise",proto:!0,forced:Qv,real:!0},{catch:function(e){return this.then(void 0,e)}});var Zv=A,eg=Ce,tg=Hd,rg=Sd,ng=jp;Lr({target:"Promise",stat:!0,forced:Vv},{race:function(e){var t=this,r=tg.f(t),n=r.reject,o=rg((function(){var o=eg(t.resolve);ng(e,(function(e){Zv(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var og=A,ig=Hd;Lr({target:"Promise",stat:!0,forced:Bd.CONSTRUCTOR},{reject:function(e){var t=ig.f(this);return og(t.reject,void 0,e),t.promise}});var ag=rr,ug=ee,sg=Hd,cg=function(e,t){if(ag(e),ug(t)&&t.constructor===e)return t;var r=sg.f(e);return(0,r.resolve)(t),r.promise},lg=Lr,fg=kd,pg=Bd.CONSTRUCTOR,hg=cg,dg=ae("Promise"),vg=!pg;lg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return hg(vg&&this===dg?fg:this,e)}});var gg=A,yg=Ce,mg=Hd,_g=Sd,bg=jp;Lr({target:"Promise",stat:!0,forced:Vv},{allSettled:function(e){var t=this,r=mg.f(t),n=r.resolve,o=r.reject,i=_g((function(){var r=yg(t.resolve),o=[],i=0,a=1;bg(e,(function(e){var u=i++,s=!1;a++,gg(r,t,e).then((function(e){s||(s=!0,o[u]={status:"fulfilled",value:e},--a||n(o))}),(function(e){s||(s=!0,o[u]={status:"rejected",reason:e},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var wg=A,xg=Ce,Sg=ae,kg=Hd,Tg=Sd,Og=jp,Eg="No one promise resolved";Lr({target:"Promise",stat:!0,forced:Vv},{any:function(e){var t=this,r=Sg("AggregateError"),n=kg.f(t),o=n.resolve,i=n.reject,a=Tg((function(){var n=xg(t.resolve),a=[],u=0,s=1,c=!1;Og(e,(function(e){var l=u++,f=!1;s++,wg(n,t,e).then((function(e){f||c||(c=!0,o(e))}),(function(e){f||c||(f=!0,a[l]=e,--s||i(new r(a,Eg)))}))})),--s||i(new r(a,Eg))}));return a.error&&i(a.value),n.promise}});var Lg=Lr,Rg=kd,Pg=i,Cg=ae,Ag=E,jg=_h,Ig=cg,Mg=Rg&&Rg.prototype;Lg({target:"Promise",proto:!0,real:!0,forced:!!Rg&&Pg((function(){Mg.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=jg(this,Cg("Promise")),r=Ag(e);return this.then(r?function(r){return Ig(t,e()).then((function(){return r}))}:e,r?function(r){return Ig(t,e()).then((function(){throw r}))}:e)}});var Ng=te.Promise,Fg=Hd,Dg=Sd;Lr({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Fg.f(this),r=Dg(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Ug=r(Ng),Bg=Lr,Hg=Pr,zg=g([].reverse),qg=[1,2];Bg({target:"Array",proto:!0,forced:String(qg)===String(qg.reverse())},{reverse:function(){return Hg(this)&&(this.length=this.length),zg(this)}});var Gg=Rl("Array").reverse,Vg=ue,$g=Gg,Yg=Array.prototype,Wg=r((function(e){var t=e.reverse;return e===Yg||Vg(Yg,e)&&t===Yg.reverse?$g:t})),Kg=Lr,Xg=Pr,Jg=_n,Qg=ee,Zg=Qn,ey=Ur,ty=J,ry=Vr,ny=pt,oy=ku,iy=Pn("slice"),ay=ny("species"),uy=Array,sy=Math.max;Kg({target:"Array",proto:!0,forced:!iy},{slice:function(e,t){var r,n,o,i=ty(this),a=ey(i),u=Zg(e,a),s=Zg(void 0===t?a:t,a);if(Xg(i)&&(r=i.constructor,(Jg(r)&&(r===uy||Xg(r.prototype))||Qg(r)&&null===(r=r[ay]))&&(r=void 0),r===uy||void 0===r))return oy(i,u,s);for(n=new(void 0===r?uy:r)(sy(s-u,0)),o=0;u<s;u++,o++)u in i&&ry(n,o,i[u]);return n.length=o,n}});var cy=Rl("Array").slice,ly=ue,fy=cy,py=Array.prototype,hy=r((function(e){var t=e.slice;return e===py||ly(py,e)&&t===py.slice?fy:t})),dy=g,vy=Ce,gy=ee,yy=Qe,my=ku,_y=a,by=Function,wy=dy([].concat),xy=dy([].join),Sy={},ky=_y?by.bind:function(e){var t=vy(this),r=t.prototype,n=my(arguments,1),o=function(){var r=wy(n,my(arguments));return this instanceof o?function(e,t,r){if(!yy(Sy,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";Sy[t]=by("C,a","return new C("+xy(n,",")+")")}return Sy[t](e,r)}(t,r.length,r):t.apply(e,r)};return gy(r)&&(o.prototype=r),o},Ty=ky;Lr({target:"Function",proto:!0,forced:Function.bind!==Ty},{bind:Ty});var Oy=Rl("Function").bind,Ey=ue,Ly=Oy,Ry=Function.prototype,Py=r((function(e){var t=e.bind;return e===Ry||Ey(Ry,e)&&t===Ry.bind?Ly:t})),Cy=Lr,Ay=f,jy=ky,Iy=dh,My=rr,Ny=ee,Fy=Bo,Dy=i,Uy=ae("Reflect","construct"),By=Object.prototype,Hy=[].push,zy=Dy((function(){function e(){}return!(Uy((function(){}),[],e)instanceof e)})),qy=!Dy((function(){Uy((function(){}))})),Gy=zy||qy;Cy({target:"Reflect",stat:!0,forced:Gy,sham:Gy},{construct:function(e,t){Iy(e),My(t);var r=arguments.length<3?e:Iy(arguments[2]);if(qy&&!zy)return Uy(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return Ay(Hy,n,t),new(Ay(jy,e,n))}var o=r.prototype,i=Fy(Ny(o)?o:By),a=Ay(e,i,t);return Ny(a)?a:i}});var Vy=r(te.Reflect.construct),$y=r(ui.f("toPrimitive"));function Yy(e,t){var r=Tl(e);if(Ol){var n=Ol(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wy(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=Yy(Object(o),!0)).call(r,(function(t){tm(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=Yy(Object(o))).call(n,(function(t){Ef(e,t,ql(o,t))}))}return e}function Ky(){Ky=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Ef||function(e,t,r){e[t]=r.value},o="function"==typeof Lf?Lf:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,r){return Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Pf(i.prototype),u=new k(o||[]);return n(a,"_invoke",{value:b(e,r,u)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(E){return{type:"throw",arg:E}}}e.wrap=c;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,(function(){return this}));var g=If&&If(If(T([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=d.prototype=p.prototype=Pf(v);function m(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,u){var s=l(e[n],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==xl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,u)}))}u(s.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,x,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=s(d,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Mf?Mf(e,d):(e.__proto__=d,s(e,u,"GeneratorFunction")),e.prototype=Pf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Ug);var a=new _(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),s(y,u,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Wg(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,k.prototype={constructor:k,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,tf(t=this.tryEntries).call(t,S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+hy(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function Xy(e,t,r,n,o,i,a){try{var u=e[i](a),s=u.value}catch(RC){return void r(RC)}u.done?t(s):Ug.resolve(s).then(n,o)}function Jy(e){return function(){var t=this,r=arguments;return new Ug((function(n,o){var i=e.apply(t,r);function a(e){Xy(i,n,o,a,u,"next",e)}function u(e){Xy(i,n,o,a,u,"throw",e)}a(void 0)}))}}function Qy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Ef(e,um(n.key),n)}}function em(e,t,r){return t&&Zy(e.prototype,t),r&&Zy(e,r),Ef(e,"prototype",{writable:!1}),e}function tm(e,t,r){return(t=um(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Pf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Ef(e,"prototype",{writable:!1}),t&&om(e,t)}function nm(e){var t;return(nm=Mf?Py(t=If).call(t):function(e){return e.__proto__||If(e)})(e)}function om(e,t){var r;return(om=Mf?Py(r=Mf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function im(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function am(e){var t=function(){if("undefined"==typeof Reflect||!Vy)return!1;if(Vy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Vy(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=nm(e);if(t){var o=nm(this).constructor;r=Vy(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===xl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return im(e)}(this,r)}}function um(e){var t=function(e,t){if("object"!==xl(e)||null===e)return e;var r=e[$y];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xl(t)?t:String(t)}var sm=Rl("Array").concat,cm=ue,lm=sm,fm=Array.prototype,pm=r((function(e){var t=e.concat;return e===fm||cm(fm,e)&&t===fm.concat?lm:t})),hm=i,dm=pt("iterator"),vm=!hm((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!e.toJSON||!t.size&&true||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[dm]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),gm=R,ym=g,mm=A,_m=i,bm=vo,wm=ri,xm=j,Sm=Ke,km=G,Tm=Object.assign,Om=Object.defineProperty,Em=ym([].concat),Lm=!Tm||_m((function(){if(gm&&1!==Tm({b:1},Tm(Om({},"a",{enumerable:!0,get:function(){Om(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Tm({},e)[r]||bm(Tm({},t)).join("")!=n}))?function(e,t){for(var r=Sm(e),n=arguments.length,o=1,i=wm.f,a=xm.f;n>o;)for(var u,s=km(arguments[o++]),c=i?Em(bm(s),i(s)):bm(s),l=c.length,f=0;l>f;)u=c[f++],gm&&!mm(a,s,u)||(r[u]=s[u]);return r}:Tm,Rm=rr,Pm=_p,Cm=Xt,Am=A,jm=Ke,Im=function(e,t,r,n){try{return n?t(Rm(r)[0],r[1]):t(r)}catch(RC){Pm(e,"throw",RC)}},Mm=rp,Nm=_n,Fm=Ur,Dm=Vr,Um=vp,Bm=sp,Hm=Array,zm=function(e){var t=jm(e),r=Nm(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Cm(o,n>2?arguments[2]:void 0));var a,u,s,c,l,f,p=Bm(t),h=0;if(!p||this===Hm&&Mm(p))for(a=Fm(t),u=r?new this(a):Hm(a);a>h;h++)f=i?o(t[h],h):t[h],Dm(u,h,f);else for(l=(c=Um(t,p)).next,u=r?new this:[];!(s=Am(l,c)).done;h++)f=i?Im(c,o,[s.value,h],!0):s.value,Dm(u,h,f);return u.length=h,u},qm=g,Gm=2147483647,Vm=/[^\0-\u007E]/,$m=/[.\u3002\uFF0E\uFF61]/g,Ym="Overflow: input needs wider integers to process",Wm=RangeError,Km=qm($m.exec),Xm=Math.floor,Jm=String.fromCharCode,Qm=qm("".charCodeAt),Zm=qm([].join),e_=qm([].push),t_=qm("".replace),r_=qm("".split),n_=qm("".toLowerCase),o_=function(e){return e+22+75*(e<26)},i_=function(e,t,r){var n=0;for(e=r?Xm(e/700):e>>1,e+=Xm(e/t);e>455;)e=Xm(e/35),n+=36;return Xm(n+36*e/(e+38))},a_=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=Qm(e,r++);if(o>=55296&&o<=56319&&r<n){var i=Qm(e,r++);56320==(64512&i)?e_(t,((1023&o)<<10)+(1023&i)+65536):(e_(t,o),r--)}else e_(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,u=72;for(r=0;r<e.length;r++)(n=e[r])<128&&e_(t,Jm(n));var s=t.length,c=s;for(s&&e_(t,"-");c<o;){var l=Gm;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<l&&(l=n);var f=c+1;if(l-i>Xm((Gm-a)/f))throw Wm(Ym);for(a+=(l-i)*f,i=l,r=0;r<e.length;r++){if((n=e[r])<i&&++a>Gm)throw Wm(Ym);if(n==i){for(var p=a,h=36;;){var d=h<=u?1:h>=u+26?26:h-u;if(p<d)break;var v=p-d,g=36-d;e_(t,Jm(o_(d+v%g))),p=Xm(v/g),h+=36}e_(t,Jm(o_(p))),u=i_(a,f,c==s),a=0,c++}}a++,i++}return Zm(t,"")},u_=oi,s_=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:u_(e,n,t[n],r);return e},c_=Xo,l_=Math.floor,f_=function(e,t){var r=e.length,n=l_(r/2);return r<8?p_(e,t):h_(e,f_(c_(e,0,n),t),f_(c_(e,n),t),t)},p_=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},h_=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,u=0;a<o||u<i;)e[a+u]=a<o&&u<i?n(t[a],r[u])<=0?t[a++]:r[u++]:a<o?t[a++]:r[u++];return e},d_=f_,v_=Lr,g_=o,y_=A,m_=g,__=R,b_=vm,w_=oi,x_=ai,S_=s_,k_=Pi,T_=zs,O_=$i,E_=lh,L_=E,R_=Qe,P_=Xt,C_=en,A_=rr,j_=ee,I_=Yn,M_=Bo,N_=U,F_=vp,D_=sp,U_=wh,B_=d_,H_=pt("iterator"),z_="URLSearchParams",q_=z_+"Iterator",G_=O_.set,V_=O_.getterFor(z_),$_=O_.getterFor(q_),Y_=Object.getOwnPropertyDescriptor,W_=function(e){if(!__)return g_[e];var t=Y_(g_,e);return t&&t.value},K_=W_("fetch"),X_=W_("Request"),J_=W_("Headers"),Q_=X_&&X_.prototype,Z_=J_&&J_.prototype,eb=g_.RegExp,tb=g_.TypeError,rb=g_.decodeURIComponent,nb=g_.encodeURIComponent,ob=m_("".charAt),ib=m_([].join),ab=m_([].push),ub=m_("".replace),sb=m_([].shift),cb=m_([].splice),lb=m_("".split),fb=m_("".slice),pb=/\+/g,hb=Array(4),db=function(e){return hb[e-1]||(hb[e-1]=eb("((?:%[\\da-f]{2}){"+e+"})","gi"))},vb=function(e){try{return rb(e)}catch(RC){return e}},gb=function(e){var t=ub(e,pb," "),r=4;try{return rb(t)}catch(RC){for(;r;)t=ub(t,db(r--),vb);return t}},yb=/[!'()~]|%20/g,mb={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_b=function(e){return mb[e]},bb=function(e){return ub(nb(e),yb,_b)},wb=T_((function(e,t){G_(this,{type:q_,iterator:F_(V_(e).entries),kind:t})}),"Iterator",(function(){var e=$_(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),xb=function(e){this.entries=[],this.url=null,void 0!==e&&(j_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===ob(e,0)?fb(e,1):e:I_(e)))};xb.prototype={type:z_,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,u,s=D_(e);if(s)for(r=(t=F_(e,s)).next;!(n=y_(r,t)).done;){if(i=(o=F_(A_(n.value))).next,(a=y_(i,o)).done||(u=y_(i,o)).done||!y_(i,o).done)throw tb("Expected sequence with length 2");ab(this.entries,{key:I_(a.value),value:I_(u.value)})}else for(var c in e)R_(e,c)&&ab(this.entries,{key:c,value:I_(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=lb(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=lb(t,"="),ab(this.entries,{key:gb(sb(r)),value:gb(ib(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],ab(r,bb(e.key)+"="+bb(e.value));return ib(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Sb=function(){E_(this,kb);var e=G_(this,new xb(arguments.length>0?arguments[0]:void 0));__||(this.length=e.entries.length)},kb=Sb.prototype;if(S_(kb,{append:function(e,t){U_(arguments.length,2);var r=V_(this);ab(r.entries,{key:I_(e),value:I_(t)}),__||this.length++,r.updateURL()},delete:function(e){U_(arguments.length,1);for(var t=V_(this),r=t.entries,n=I_(e),o=0;o<r.length;)r[o].key===n?cb(r,o,1):o++;__||(this.length=r.length),t.updateURL()},get:function(e){U_(arguments.length,1);for(var t=V_(this).entries,r=I_(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){U_(arguments.length,1);for(var t=V_(this).entries,r=I_(e),n=[],o=0;o<t.length;o++)t[o].key===r&&ab(n,t[o].value);return n},has:function(e){U_(arguments.length,1);for(var t=V_(this).entries,r=I_(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){U_(arguments.length,1);for(var r,n=V_(this),o=n.entries,i=!1,a=I_(e),u=I_(t),s=0;s<o.length;s++)(r=o[s]).key===a&&(i?cb(o,s--,1):(i=!0,r.value=u));i||ab(o,{key:a,value:u}),__||(this.length=o.length),n.updateURL()},sort:function(){var e=V_(this);B_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=V_(this).entries,n=P_(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new wb(this,"keys")},values:function(){return new wb(this,"values")},entries:function(){return new wb(this,"entries")}},{enumerable:!0}),w_(kb,H_,kb.entries,{name:"entries"}),w_(kb,"toString",(function(){return V_(this).serialize()}),{enumerable:!0}),__&&x_(kb,"size",{get:function(){return V_(this).entries.length},configurable:!0,enumerable:!0}),k_(Sb,z_),v_({global:!0,constructor:!0,forced:!b_},{URLSearchParams:Sb}),!b_&&L_(J_)){var Tb=m_(Z_.has),Ob=m_(Z_.set),Eb=function(e){if(j_(e)){var t,r=e.body;if(C_(r)===z_)return t=e.headers?new J_(e.headers):new J_,Tb(t,"content-type")||Ob(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),M_(e,{body:N_(0,I_(r)),headers:N_(0,t)})}return e};if(L_(K_)&&v_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return K_(e,arguments.length>1?Eb(arguments[1]):{})}}),L_(X_)){var Lb=function(e){return E_(this,Q_),new X_(e,arguments.length>1?Eb(arguments[1]):{})};Q_.constructor=Lb,Lb.prototype=Q_,v_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Lb})}}var Rb,Pb=Lr,Cb=R,Ab=vm,jb=o,Ib=Xt,Mb=g,Nb=oi,Fb=ai,Db=lh,Ub=Qe,Bb=Lm,Hb=zm,zb=Xo,qb=fl.codeAt,Gb=function(e){var t,r,n=[],o=r_(t_(n_(e),$m,"."),".");for(t=0;t<o.length;t++)r=o[t],e_(n,Km(Vm,r)?"xn--"+a_(r):r);return Zm(n,".")},Vb=Yn,$b=Pi,Yb=wh,Wb={URLSearchParams:Sb,getState:V_},Kb=$i,Xb=Kb.set,Jb=Kb.getterFor("URL"),Qb=Wb.URLSearchParams,Zb=Wb.getState,ew=jb.URL,tw=jb.TypeError,rw=jb.parseInt,nw=Math.floor,ow=Math.pow,iw=Mb("".charAt),aw=Mb(/./.exec),uw=Mb([].join),sw=Mb(1..toString),cw=Mb([].pop),lw=Mb([].push),fw=Mb("".replace),pw=Mb([].shift),hw=Mb("".split),dw=Mb("".slice),vw=Mb("".toLowerCase),gw=Mb([].unshift),yw="Invalid scheme",mw="Invalid host",_w="Invalid port",bw=/[a-z]/i,ww=/[\d+-.a-z]/i,xw=/\d/,Sw=/^0x/i,kw=/^[0-7]+$/,Tw=/^\d+$/,Ow=/^[\da-f]+$/i,Ew=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Lw=/[\0\t\n\r #/:<>?@[\\\]^|]/,Rw=/^[\u0000-\u0020]+/,Pw=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Cw=/[\t\n\r]/g,Aw=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)gw(t,e%256),e=nw(e/256);return uw(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=sw(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},jw={},Iw=Bb({},jw,{" ":1,'"':1,"<":1,">":1,"`":1}),Mw=Bb({},Iw,{"#":1,"?":1,"{":1,"}":1}),Nw=Bb({},Mw,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Fw=function(e,t){var r=qb(e,0);return r>32&&r<127&&!Ub(t,e)?e:encodeURIComponent(e)},Dw={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Uw=function(e,t){var r;return 2==e.length&&aw(bw,iw(e,0))&&(":"==(r=iw(e,1))||!t&&"|"==r)},Bw=function(e){var t;return e.length>1&&Uw(dw(e,0,2))&&(2==e.length||"/"===(t=iw(e,2))||"\\"===t||"?"===t||"#"===t)},Hw=function(e){return"."===e||"%2e"===vw(e)},zw={},qw={},Gw={},Vw={},$w={},Yw={},Ww={},Kw={},Xw={},Jw={},Qw={},Zw={},ex={},tx={},rx={},nx={},ox={},ix={},ax={},ux={},sx={},cx=function(e,t,r){var n,o,i,a=Vb(e);if(t){if(o=this.parse(a))throw tw(o);this.searchParams=null}else{if(void 0!==r&&(n=new cx(r,!0)),o=this.parse(a,null,n))throw tw(o);(i=Zb(new Qb)).bindURL(this),this.searchParams=i}};cx.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,u,s=this,c=t||zw,l=0,f="",p=!1,h=!1,d=!1;for(e=Vb(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=fw(e,Rw,""),e=fw(e,Pw,"$1")),e=fw(e,Cw,""),n=Hb(e);l<=n.length;){switch(o=n[l],c){case zw:if(!o||!aw(bw,o)){if(t)return yw;c=Gw;continue}f+=vw(o),c=qw;break;case qw:if(o&&(aw(ww,o)||"+"==o||"-"==o||"."==o))f+=vw(o);else{if(":"!=o){if(t)return yw;f="",c=Gw,l=0;continue}if(t&&(s.isSpecial()!=Ub(Dw,f)||"file"==f&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=f,t)return void(s.isSpecial()&&Dw[s.scheme]==s.port&&(s.port=null));f="","file"==s.scheme?c=tx:s.isSpecial()&&r&&r.scheme==s.scheme?c=Vw:s.isSpecial()?c=Kw:"/"==n[l+1]?(c=$w,l++):(s.cannotBeABaseURL=!0,lw(s.path,""),c=ax)}break;case Gw:if(!r||r.cannotBeABaseURL&&"#"!=o)return yw;if(r.cannotBeABaseURL&&"#"==o){s.scheme=r.scheme,s.path=zb(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=sx;break}c="file"==r.scheme?tx:Yw;continue;case Vw:if("/"!=o||"/"!=n[l+1]){c=Yw;continue}c=Xw,l++;break;case $w:if("/"==o){c=Jw;break}c=ix;continue;case Yw:if(s.scheme=r.scheme,o==Rb)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=zb(r.path),s.query=r.query;else if("/"==o||"\\"==o&&s.isSpecial())c=Ww;else if("?"==o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=zb(r.path),s.query="",c=ux;else{if("#"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=zb(r.path),s.path.length--,c=ix;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=zb(r.path),s.query=r.query,s.fragment="",c=sx}break;case Ww:if(!s.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=ix;continue}c=Jw}else c=Xw;break;case Kw:if(c=Xw,"/"!=o||"/"!=iw(f,l+1))continue;l++;break;case Xw:if("/"!=o&&"\\"!=o){c=Jw;continue}break;case Jw:if("@"==o){p&&(f="%40"+f),p=!0,i=Hb(f);for(var v=0;v<i.length;v++){var g=i[v];if(":"!=g||d){var y=Fw(g,Nw);d?s.password+=y:s.username+=y}else d=!0}f=""}else if(o==Rb||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(p&&""==f)return"Invalid authority";l-=Hb(f).length+1,f="",c=Qw}else f+=o;break;case Qw:case Zw:if(t&&"file"==s.scheme){c=nx;continue}if(":"!=o||h){if(o==Rb||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()){if(s.isSpecial()&&""==f)return mw;if(t&&""==f&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(f))return a;if(f="",c=ox,t)return;continue}"["==o?h=!0:"]"==o&&(h=!1),f+=o}else{if(""==f)return mw;if(a=s.parseHost(f))return a;if(f="",c=ex,t==Zw)return}break;case ex:if(!aw(xw,o)){if(o==Rb||"/"==o||"?"==o||"#"==o||"\\"==o&&s.isSpecial()||t){if(""!=f){var m=rw(f,10);if(m>65535)return _w;s.port=s.isSpecial()&&m===Dw[s.scheme]?null:m,f=""}if(t)return;c=ox;continue}return _w}f+=o;break;case tx:if(s.scheme="file","/"==o||"\\"==o)c=rx;else{if(!r||"file"!=r.scheme){c=ix;continue}if(o==Rb)s.host=r.host,s.path=zb(r.path),s.query=r.query;else if("?"==o)s.host=r.host,s.path=zb(r.path),s.query="",c=ux;else{if("#"!=o){Bw(uw(zb(n,l),""))||(s.host=r.host,s.path=zb(r.path),s.shortenPath()),c=ix;continue}s.host=r.host,s.path=zb(r.path),s.query=r.query,s.fragment="",c=sx}}break;case rx:if("/"==o||"\\"==o){c=nx;break}r&&"file"==r.scheme&&!Bw(uw(zb(n,l),""))&&(Uw(r.path[0],!0)?lw(s.path,r.path[0]):s.host=r.host),c=ix;continue;case nx:if(o==Rb||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&Uw(f))c=ix;else if(""==f){if(s.host="",t)return;c=ox}else{if(a=s.parseHost(f))return a;if("localhost"==s.host&&(s.host=""),t)return;f="",c=ox}continue}f+=o;break;case ox:if(s.isSpecial()){if(c=ix,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=Rb&&(c=ix,"/"!=o))continue}else s.fragment="",c=sx;else s.query="",c=ux;break;case ix:if(o==Rb||"/"==o||"\\"==o&&s.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(u=vw(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"==o||"\\"==o&&s.isSpecial()||lw(s.path,"")):Hw(f)?"/"==o||"\\"==o&&s.isSpecial()||lw(s.path,""):("file"==s.scheme&&!s.path.length&&Uw(f)&&(s.host&&(s.host=""),f=iw(f,0)+":"),lw(s.path,f)),f="","file"==s.scheme&&(o==Rb||"?"==o||"#"==o))for(;s.path.length>1&&""===s.path[0];)pw(s.path);"?"==o?(s.query="",c=ux):"#"==o&&(s.fragment="",c=sx)}else f+=Fw(o,Mw);break;case ax:"?"==o?(s.query="",c=ux):"#"==o?(s.fragment="",c=sx):o!=Rb&&(s.path[0]+=Fw(o,jw));break;case ux:t||"#"!=o?o!=Rb&&("'"==o&&s.isSpecial()?s.query+="%27":s.query+="#"==o?"%23":Fw(o,jw)):(s.fragment="",c=sx);break;case sx:o!=Rb&&(s.fragment+=Fw(o,Iw))}l++}},parseHost:function(e){var t,r,n;if("["==iw(e,0)){if("]"!=iw(e,e.length-1))return mw;if(t=function(e){var t,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,p=function(){return iw(e,f)};if(":"==p()){if(":"!=iw(e,1))return;f+=2,l=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=r=0;r<4&&aw(Ow,p());)t=16*t+rw(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,c>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;f++}if(!aw(xw,p()))return;for(;aw(xw,p());){if(i=rw(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}s[c]=256*s[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;s[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[l+a-1],s[l+--a]=u;else if(8!=c)return;return s}(dw(e,1,-1)),!t)return mw;this.host=t}else if(this.isSpecial()){if(e=Gb(e),aw(Ew,e))return mw;if(t=function(e){var t,r,n,o,i,a,u,s=hw(e,".");if(s.length&&""==s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=s[n]))return e;if(i=10,o.length>1&&"0"==iw(o,0)&&(i=aw(Sw,o)?16:8,o=dw(o,8==i?1:2)),""===o)a=0;else{if(!aw(10==i?Tw:8==i?kw:Ow,o))return e;a=rw(o,i)}lw(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=ow(256,5-t))return null}else if(a>255)return null;for(u=cw(r),n=0;n<r.length;n++)u+=r[n]*ow(256,3-n);return u}(e),null===t)return mw;this.host=t}else{if(aw(Lw,e))return mw;for(t="",r=Hb(e),n=0;n<r.length;n++)t+=Fw(r[n],jw);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Ub(Dw,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Uw(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,u=e.query,s=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Aw(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+uw(a,"/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},setHref:function(e){var t=this.parse(e);if(t)throw tw(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new lx(e.path[0]).origin}catch(RC){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Aw(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Vb(e)+":",zw)},getUsername:function(){return this.username},setUsername:function(e){var t=Hb(Vb(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Fw(t[r],Nw)}},getPassword:function(){return this.password},setPassword:function(e){var t=Hb(Vb(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Fw(t[r],Nw)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Aw(e):Aw(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Qw)},getHostname:function(){var e=this.host;return null===e?"":Aw(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Zw)},getPort:function(){var e=this.port;return null===e?"":Vb(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Vb(e))?this.port=null:this.parse(e,ex))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+uw(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,ox))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Vb(e))?this.query=null:("?"==iw(e,0)&&(e=dw(e,1)),this.query="",this.parse(e,ux)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Vb(e))?("#"==iw(e,0)&&(e=dw(e,1)),this.fragment="",this.parse(e,sx)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var lx=function(e){var t=Db(this,fx),r=Yb(arguments.length,1)>1?arguments[1]:void 0,n=Xb(t,new cx(e,!1,r));Cb||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},fx=lx.prototype,px=function(e,t){return{get:function(){return Jb(this)[e]()},set:t&&function(e){return Jb(this)[t](e)},configurable:!0,enumerable:!0}};if(Cb&&(Fb(fx,"href",px("serialize","setHref")),Fb(fx,"origin",px("getOrigin")),Fb(fx,"protocol",px("getProtocol","setProtocol")),Fb(fx,"username",px("getUsername","setUsername")),Fb(fx,"password",px("getPassword","setPassword")),Fb(fx,"host",px("getHost","setHost")),Fb(fx,"hostname",px("getHostname","setHostname")),Fb(fx,"port",px("getPort","setPort")),Fb(fx,"pathname",px("getPathname","setPathname")),Fb(fx,"search",px("getSearch","setSearch")),Fb(fx,"searchParams",px("getSearchParams")),Fb(fx,"hash",px("getHash","setHash"))),Nb(fx,"toJSON",(function(){return Jb(this).serialize()}),{enumerable:!0}),Nb(fx,"toString",(function(){return Jb(this).serialize()}),{enumerable:!0}),ew){var hx=ew.createObjectURL,dx=ew.revokeObjectURL;hx&&Nb(lx,"createObjectURL",Ib(hx,ew)),dx&&Nb(lx,"revokeObjectURL",Ib(dx,ew))}$b(lx,"URL"),Pb({global:!0,constructor:!0,forced:!Ab,sham:!Cb},{URL:lx});var vx=Lr,gx=i,yx=wh,mx=Yn,_x=vm,bx=ae("URL");vx({target:"URL",stat:!0,forced:!(_x&&gx((function(){bx.canParse()})))},{canParse:function(e){var t=yx(arguments.length,1),r=mx(e),n=t<2||void 0===arguments[1]?void 0:mx(arguments[1]);try{return!!new bx(r,n)}catch(RC){return!1}}});var wx=r(te.URL),xx=Lr,Sx=no.indexOf,kx=Vl,Tx=S([].indexOf),Ox=!!Tx&&1/Tx([1],1,-0)<0;xx({target:"Array",proto:!0,forced:Ox||!kx("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Ox?Tx(this,e,t)||0:Sx(this,e,t)}});var Ex=Rl("Array").indexOf,Lx=ue,Rx=Ex,Px=Array.prototype,Cx=r((function(e){var t=e.indexOf;return e===Px||Lx(Px,e)&&t===Px.indexOf?Rx:t})),Ax=R,jx=Pr,Ix=TypeError,Mx=Object.getOwnPropertyDescriptor,Nx=Ax&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(RC){return RC instanceof TypeError}}(),Fx=Ee,Dx=TypeError,Ux=function(e,t){if(!delete e[t])throw Dx("Cannot delete property "+Fx(t)+" of "+Fx(e))},Bx=Lr,Hx=Ke,zx=Qn,qx=Ir,Gx=Ur,Vx=Nx?function(e,t){if(jx(e)&&!Mx(e,"length").writable)throw Ix("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},$x=Hr,Yx=On,Wx=Vr,Kx=Ux,Xx=Pn("splice"),Jx=Math.max,Qx=Math.min;Bx({target:"Array",proto:!0,forced:!Xx},{splice:function(e,t){var r,n,o,i,a,u,s=Hx(this),c=Gx(s),l=zx(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=Qx(Jx(qx(t),0),c-l)),$x(c+r-n),o=Yx(s,n),i=0;i<n;i++)(a=l+i)in s&&Wx(o,i,s[a]);if(o.length=n,r<n){for(i=l;i<c-n;i++)u=i+r,(a=i+n)in s?s[u]=s[a]:Kx(s,u);for(i=c;i>c-n+r;i--)Kx(s,i-1)}else if(r>n)for(i=c-n;i>l;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:Kx(s,u);for(i=0;i<r;i++)s[i+l]=arguments[i+2];return Vx(s,c-n+r),o}});var Zx=Rl("Array").splice,eS=ue,tS=Zx,rS=Array.prototype,nS=r((function(e){var t=e.splice;return e===rS||eS(rS,e)&&t===rS.splice?tS:t}));Lr({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var oS=r(te.Number.isNaN),iS="\t\n\v\f\r \u2028\u2029\ufeff",aS=W,uS=Yn,sS=iS,cS=g("".replace),lS=RegExp("^["+sS+"]+"),fS=RegExp("(^|[^"+sS+"])["+sS+"]+$"),pS=function(e){return function(t){var r=uS(aS(t));return 1&e&&(r=cS(r,lS,"")),2&e&&(r=cS(r,fS,"$1")),r}},hS={start:pS(1),end:pS(2),trim:pS(3)},dS=o,vS=i,gS=g,yS=Yn,mS=hS.trim,_S=iS,bS=dS.parseInt,wS=dS.Symbol,xS=wS&&wS.iterator,SS=/^[+-]?0x/i,kS=gS(SS.exec),TS=8!==bS(_S+"08")||22!==bS(_S+"0x16")||xS&&!vS((function(){bS(Object(xS))}))?function(e,t){var r=mS(yS(e));return bS(r,t>>>0||(kS(SS,r)?16:10))}:bS;Lr({global:!0,forced:parseInt!=TS},{parseInt:TS});var OS=r(te.parseInt),ES=ea.map;Lr({target:"Array",proto:!0,forced:!Pn("map")},{map:function(e){return ES(this,e,arguments.length>1?arguments[1]:void 0)}});var LS=Rl("Array").map,RS=ue,PS=LS,CS=Array.prototype,AS=r((function(e){var t=e.map;return e===CS||RS(CS,e)&&t===CS.map?PS:t}));Lr({target:"Array",stat:!0},{isArray:Pr});var jS=r(te.Array.isArray),IS=r(bl),MS=Qe,NS=A,FS=ee,DS=rr,US=function(e){return void 0!==e&&(MS(e,"value")||MS(e,"writable"))},BS=L,HS=Ts;Lr({target:"Reflect",stat:!0},{get:function e(t,r){var n,o,i=arguments.length<3?t:arguments[2];return DS(t)===i?t[r]:(n=BS.f(t,r))?US(n)?n.value:void 0===n.get?void 0:NS(n.get,i):FS(o=HS(t))?e(o,r,i):void 0}});var zS=r(te.Reflect.get),qS=r(sp),GS=zm;Lr({target:"Array",stat:!0,forced:!qv((function(e){Array.from(e)}))},{from:GS});var VS=r(te.Array.from);function $S(e,t){var r=Tl(e);if(Ol){var n=Ol(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function YS(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=$S(Object(o),!0)).call(r,(function(t){QS(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=$S(Object(o))).call(n,(function(t){Ef(e,t,ql(o,t))}))}return e}function WS(e){return(WS="function"==typeof Lf&&"symbol"==typeof IS?function(e){return typeof e}:function(e){return e&&"function"==typeof Lf&&e.constructor===Lf&&e!==Lf.prototype?"symbol":typeof e})(e)}function KS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Ef(e,tk(n.key),n)}}function JS(e,t,r){return t&&XS(e.prototype,t),r&&XS(e,r),Ef(e,"prototype",{writable:!1}),e}function QS(e,t,r){return(t=tk(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZS(e){return function(e){if(jS(e))return ek(e)}(e)||function(e){if(void 0!==Lf&&null!=qS(e)||null!=e["@@iterator"])return VS(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return ek(e,t);var n=hy(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return VS(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ek(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ek(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tk(e){var t=function(e,t){if("object"!==xl(e)||null===e)return e;var r=e[$y];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xl(t)?t:String(t)}var rk=Lm;Lr({target:"Object",stat:!0,arity:2,forced:Object.assign!==rk},{assign:rk});var nk=r(te.Object.assign),ok={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new o(n,i||e,a),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],u]:e._events[s].push(u):(e._events[s]=u,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function u(){this._events=new n,this._eventsCount=0}Pf&&(n.prototype=Pf(null),(new n).__proto__||(r=!1)),u.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?hy(n).call(n,1):n);return Ol?pm(o).call(o,Ol(e)):o},u.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},u.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,o,i,a){var u=r?r+e:e;if(!this._events[u])return!1;var s,c,l=this._events[u],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,o),!0;case 5:return l.fn.call(l.context,t,n,o,i),!0;case 6:return l.fn.call(l.context,t,n,o,i,a),!0}for(c=1,s=new Array(f-1);c<f;c++)s[c-1]=arguments[c];l.fn.apply(l.context,s)}else{var p,h=l.length;for(c=0;c<h;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,o);break;default:if(!s)for(p=1,s=new Array(f-1);p<f;p++)s[p-1]=arguments[p];l[c].fn.apply(l[c].context,s)}}return!0},u.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},u.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},u.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var u=this._events[i];if(u.fn)u.fn!==t||o&&!u.once||n&&u.context!==n||a(this,i);else{for(var s=0,c=[],l=u.length;s<l;s++)(u[s].fn!==t||o&&!u[s].once||n&&u[s].context!==n)&&c.push(u[s]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(ok);var ik=r(ok.exports),ak=ea.some;Lr({target:"Array",proto:!0,forced:!Vl("some")},{some:function(e){return ak(this,e,arguments.length>1?arguments[1]:void 0)}});var uk=Rl("Array").some,sk=ue,ck=uk,lk=Array.prototype,fk=r((function(e){var t=e.some;return e===lk||sk(lk,e)&&t===lk.some?ck:t})),pk=Ir,hk=Yn,dk=W,vk=RangeError,gk=g,yk=Fr,mk=Yn,_k=W,bk=gk((function(e){var t=hk(dk(this)),r="",n=pk(e);if(n<0||n==1/0)throw vk("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),wk=gk("".slice),xk=Math.ceil,Sk=function(e){return function(t,r,n){var o,i,a=mk(_k(t)),u=yk(r),s=a.length,c=void 0===n?" ":mk(n);return u<=s||""==c?a:((i=bk(c,xk((o=u-s)/c.length))).length>o&&(i=wk(i,0,o)),e?a+i:i+a)}},kk={start:Sk(!1),end:Sk(!0)},Tk=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(se),Ok=kk.start;Lr({target:"String",proto:!0,forced:Tk},{padStart:function(e){return Ok(this,e,arguments.length>1?arguments[1]:void 0)}});var Ek,Lk=Rl("String").padStart,Rk=ue,Pk=Lk,Ck=String.prototype,Ak=r((function(e){var t=e.padStart;return"string"==typeof e||e===Ck||Rk(Ck,e)&&t===Ck.padStart?Pk:t})),jk="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Ik=o,Mk=f,Nk=E,Fk=jk,Dk=se,Uk=ku,Bk=wh,Hk=Ik.Function,zk=/MSIE .\./.test(Dk)||Fk&&((Ek=Ik.Bun.version.split(".")).length<3||0==Ek[0]&&(Ek[1]<3||3==Ek[1]&&0==Ek[2])),qk=function(e,t){var r=t?2:1;return zk?function(n,o){var i=Bk(arguments.length,1)>r,a=Nk(n)?n:Hk(n),u=i?Uk(arguments,r):[],s=i?function(){Mk(a,this,u)}:a;return t?e(s,o):e(s)}:e},Gk=Lr,Vk=o,$k=qk(Vk.setInterval,!0);Gk({global:!0,bind:!0,forced:Vk.setInterval!==$k},{setInterval:$k});var Yk=Lr,Wk=o,Kk=qk(Wk.setTimeout,!0);Yk({global:!0,bind:!0,forced:Wk.setTimeout!==Kk},{setTimeout:Kk});var Xk=r(te.setInterval),Jk=r(te.setTimeout),Qk=ea.every;Lr({target:"Array",proto:!0,forced:!Vl("every")},{every:function(e){return Qk(this,e,arguments.length>1?arguments[1]:void 0)}});var Zk=Rl("Array").every,eT=ue,tT=Zk,rT=Array.prototype,nT=r((function(e){var t=e.every;return e===rT||eT(rT,e)&&t===rT.every?tT:t})),oT=o,iT=i,aT=Yn,uT=hS.trim,sT=iS,cT=g("".charAt),lT=oT.parseFloat,fT=oT.Symbol,pT=fT&&fT.iterator,hT=1/lT(sT+"-0")!=-1/0||pT&&!iT((function(){lT(Object(pT))}))?function(e){var t=uT(aT(e)),r=lT(t);return 0===r&&"-"==cT(t,0)?-0:r}:lT;Lr({global:!0,forced:parseFloat!=hT},{parseFloat:hT});var dT=r(te.parseFloat),vT=gs.PROPER,gT=i,yT=iS,mT=hS.trim;Lr({target:"String",proto:!0,forced:function(e){return gT((function(){return!!yT[e]()||"
"!=="
"[e]()||vT&&yT[e].name!==e}))}("trim")},{trim:function(){return mT(this)}});var _T=Rl("String").trim,bT=ue,wT=_T,xT=String.prototype,ST=r((function(e){var t=e.trim;return"string"==typeof e||e===xT||bT(xT,e)&&t===xT.trim?wT:t})),kT=se.match(/firefox\/(\d+)/i),TT=!!kT&&+kT[1],OT=/MSIE|Trident/.test(se),ET=se.match(/AppleWebKit\/(\d+)\./),LT=!!ET&&+ET[1],RT=Lr,PT=g,CT=Ce,AT=Ke,jT=Ur,IT=Ux,MT=Yn,NT=i,FT=d_,DT=Vl,UT=TT,BT=OT,HT=ve,zT=LT,qT=[],GT=PT(qT.sort),VT=PT(qT.push),$T=NT((function(){qT.sort(void 0)})),YT=NT((function(){qT.sort(null)})),WT=DT("sort"),KT=!NT((function(){if(HT)return HT<70;if(!(UT&&UT>3)){if(BT)return!0;if(zT)return zT<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)qT.push({k:t+n,v:r})}for(qT.sort((function(e,t){return t.v-e.v})),n=0;n<qT.length;n++)t=qT[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));RT({target:"Array",proto:!0,forced:$T||!YT||!WT||!KT},{sort:function(e){void 0!==e&&CT(e);var t=AT(this);if(KT)return void 0===e?GT(t):GT(t,e);var r,n,o=[],i=jT(t);for(n=0;n<i;n++)n in t&&VT(o,t[n]);for(FT(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:MT(t)>MT(r)?1:-1}}(e)),r=jT(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)IT(t,n++);return t}});var XT=Rl("Array").sort,JT=ue,QT=XT,ZT=Array.prototype,eO=r((function(e){var t=e.sort;return e===ZT||JT(ZT,e)&&t===ZT.sort?QT:t})),tO=Lr,rO=Date,nO=g(rO.prototype.getTime);tO({target:"Date",stat:!0},{now:function(){return nO(new rO)}});var oO,iO=r(te.Date.now),aO="undefined"!=typeof window&&window.location&&Cx(oO=window.location.href).call(oO,"xgplayerdebugger=1")>-1,uO="color: #525252; background-color: #90ee90;",sO="color: #525252; background-color: red;",cO="color: #525252; background-color: yellow; ",lO="%c[xgplayer]",fO={config:{debug:aO?3:0},logInfo:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=3&&(r=console).log.apply(r,pm(t=[lO,uO,e]).call(t,o))},logWarn:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=1&&(r=console).warn.apply(r,pm(t=[lO,cO,e]).call(t,o))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];(r=console)[n].apply(r,pm(t=[lO,sO,e]).call(t,i))}}},pO=function(){function e(t){KS(this,e),this.bufferedList=t}return JS(e,[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}]),e}(),hO={};hO.createDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(t);return i.className=o,i.innerHTML=r,tf(e=Tl(n)).call(e,(function(e){var r=e,o=n[e];"video"===t||"audio"===t||"live-video"===t?o&&i.setAttribute(r,o):i.setAttribute(r,o)})),i},hO.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var n=document.createElement("div");n.innerHTML=e;var o=n.children;if(n=null,o.length>0){var i;if(o=o[0],r&&hO.addClass(o,r),t)tf(i=Tl(t)).call(i,(function(e){o.setAttribute(e,t[e])}));return o}return null}catch(a){return fO.logError("util.createDomFromHtml",a),null}},hO.hasClass=function(e,t){if(!e||!t)return!1;try{return fk(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===WS(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},hO.addClass=function(e,t){if(e&&t)try{var r;tf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(n){hO.hasClass(e,t)||(e.className&&"object"===WS(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},hO.removeClass=function(e,t){if(e&&t)try{var r;tf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(o){var n;if(hO.hasClass(e,t))tf(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===WS(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},hO.toggleClass=function(e,t){var r;e&&tf(r=t.split(/\s+/g)).call(r,(function(t){hO.hasClass(e,t)?hO.removeClass(e,t):hO.addClass(e,t)}))},hO.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===hO.typeOf(e[r]))t.push(e[r]);else if("Object"===hO.typeOf(e[r])){var n;AS(n=Tl(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},hO.findDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,r=arguments.length>1?arguments[1]:void 0;try{e=t.querySelector(r)}catch(n){fO.logError("util.findDom",n),0===Cx(r).call(r,"#")&&(e=t.getElementById(hy(r).call(r,1)))}return e},hO.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},hO.padStart=function(e,t,r){for(var n=String(r),o=t>>0,i=Math.ceil(o/n.length),a=[],u=String(e);i--;)a.push(n);return a.join("").substring(0,o-u.length)+u},hO.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=Ak(hO).call(hO,Math.floor(e/3600),2,0),r=Ak(hO).call(hO,Math.floor((e-3600*t)/60),2,0),n=Ak(hO).call(hO,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},hO.event=function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},hO.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},hO.deepCopy=function(e,t){var r;if("Object"===hO.typeOf(t)&&"Object"===hO.typeOf(e))return tf(r=Tl(t)).call(r,(function(r){if("Object"!==hO.typeOf(t[r])||t[r]instanceof Node)if("Array"===hO.typeOf(t[r])){var n;e[r]="Array"===hO.typeOf(e[r])?pm(n=e[r]).call(n,t[r]):t[r]}else e[r]=t[r];else void 0===e[r]||void 0===e[r]?e[r]=t[r]:hO.deepCopy(e[r],t[r])})),e},hO.deepMerge=function(e,t){var r;return AS(r=Tl(t)).call(r,(function(r){var n;"Array"===hO.typeOf(t[r])&&"Array"===hO.typeOf(e[r])?"Array"===hO.typeOf(e[r])&&(n=e[r]).push.apply(n,ZS(t[r])):hO.typeOf(e[r])!==hO.typeOf(t[r])||null===e[r]||"Object"!==hO.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):hO.deepMerge(e[r],t[r])})),e},hO.getBgImage=function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var r=document.createElement("a");return r.href=t.replace(/url\("|"\)/g,""),r.href},hO.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return tf(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},hO.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=Xk(Py(r).call(r,e),n))},hO.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},hO.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=Jk((function(){t(),hO.clearTimeout(e,n)}),r);return e._timers.push(n),n},hO.clearTimeout=function(e,t){var r=e._timers;if("Array"===hO.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){nS(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},hO.clearAllTimers=function(e){var t=e._timers;"Array"===hO.typeOf(t)&&(AS(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},hO.createImgBtn=function(e,t,r,n){var o,i,a,u,s,c,l,f,p,h,d,v,g=hO.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(nT(o=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(o,(function(e){var t,o;return!(Cx(r).call(r,e)>-1&&Cx(n).call(n,e)>-1)||(l=dT(ST(t=hy(r).call(r,0,Cx(r).call(r,e))).call(t)),f=dT(ST(o=hy(n).call(n,0,Cx(n).call(n,e))).call(o)),p=e,!1)})),g.style.width=pm(i="".concat(l)).call(i,p),g.style.height=pm(a="".concat(f)).call(a,p),g.style.backgroundSize=pm(u=pm(s=pm(c="".concat(l)).call(c,p," ")).call(s,f)).call(u,p),g.style.margin="start"===e?pm(h=pm(d=pm(v="-".concat(f/2)).call(v,p," auto auto -")).call(d,l/2)).call(h,p):"auto 5px auto 5px");return g},hO.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var o="#";e.replace(/[0-9A-F]/gi,(function(e){o+=e+e})),e=o}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(OS(e,16))})),pm(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},hO.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},hO.checkIsFunction=function(e){return e&&"function"==typeof e},hO.checkIsObject=function(e){return null!==e&&"object"===WS(e)},hO.hide=function(e){e.style.display="none"},hO.show=function(e,t){e.style.display=t||"block"},hO.isUndefined=function(e){if(null==e)return!0},hO.isNotNull=function(e){return!(null==e)},hO.setStyleFromCsstext=function(e,t){if(t)if("String"===hO.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");AS(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;AS(n=Tl(t)).call(n,(function(r){e.style[r]=t[r]}))}},hO.filterStyleFromText=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var o=n.replace(/\s+/g,"").split(";"),i={},a={};return AS(o).call(o,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var r=0,n=t.length;r<n;r++)if(Cx(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:i[t[0]]=t[1])}})),e.setAttribute("style",""),AS(t=Tl(a)).call(t,(function(t){e.style[t]=a[t]})),i},hO.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return AS(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},hO.preloadImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){var n=new window.Image;n.onload=function(e){n=null,t&&t(e)},n.onerror=function(e){n=null,r&&r(e)},n.src=e}},hO.stopPropagation=function(e){e&&e.stopPropagation()},hO.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},hO.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},hO.checkTouchSupport=function(){return"ontouchstart"in window},hO.getBuffered2=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=[],n=0;n<e.length;n++)r.push({start:e.start(n)<.5?0:e.start(n),end:e.end(n)});eO(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var o=[];if(t)for(var i=0;i<r.length;i++){var a=o.length;if(a){var u=o[a-1].end;r[i].start-u<t?r[i].end>u&&(o[a-1].end=r[i].end):o.push(r[i])}else o.push(r[i])}else o=r;return new pO(o)},hO.getEventPos=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.touches&&e.touches.length>0&&(e=e.touches[0]),{x:e.x/t,y:e.y/t,clientX:e.clientX/t,clientY:e.clientY/t,offsetX:e.offsetX/t,offsetY:e.offsetY/t,pageX:e.pageX/t,pageY:e.pageY/t}},hO.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},hO.getHostFromUrl=function(e){if("String"!==hO.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},hO.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},hO.isMSE=function(e){return!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},hO.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},hO.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=OS(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=OS(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:3&r|8).toString(16)}))},hO.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},hO.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},hO.createPositionBar=function(e,t){var r=hO.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},hO.getTransformStyle=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={scale:"".concat(t.scale||1),translate:pm(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},o=Tl(n);return tf(o).call(o,(function(e){var t,o=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),i=pm(t="".concat(e,"(")).call(t,n[e],")");o.test(r)?(o.lastIndex=-1,r=r.replace(o,i)):r+="".concat(i," ")})),r},hO.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},hO.getIndexByTime=function(e,t){var r=t.length,n=-1;if(r<1)return n;if(e<=t[0].end||r<2)n=0;else if(e>t[r-1].end)n=r-1;else for(var o=1;o<r;o++)if(e>t[o-1].end&&e<=t[o].end){n=o;break}return n},hO.getOffsetCurrentTime=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=-1;if((n=r>=0&&r<t.length?r:hO.getIndexByTime(e,t))<0)return-1;var o=t.length,i=t[n],a=i.start,u=i.end,s=i.cTime,c=i.offset;return e<a?s:e>=a&&e<=u?e-c:e>u&&n>=o-1?u:-1},hO.getCurrentTimeByOffset=function(e,t){var r=-1;if(!t||t.length<0)return e;for(var n=0;n<t.length;n++)if(e<=t[n].duration){r=n;break}if(-1!==r){var o=t[r].start;return r-1<0?o+e:o+(e-t[r-1].duration)}return e};var dO="3.0.12",vO={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},gO=JS((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};KS(this,e);var n=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var o,i=r.mediaError?r.mediaError:t.media.error||{},a=t.duration,u=t.currentTime,s=t.ended,c=t.src,l=t.currentSrc,f=t.media,p=f.readyState,h=f.networkState,d=r.errorCode||i.code;vO[d]&&(d=vO[d]);var v={playerVersion:dO,currentTime:u,duration:a,ended:s,readyState:p,networkState:h,src:c||l,errorType:r.errorType,errorCode:d,message:r.errorMessage||i.message,mediaError:i,originError:r.originError?r.originError.stack:"",host:hO.getHostFromUrl(c||l)};return r.ext&&AS(o=Tl(r.ext)).call(o,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var g={playerVersion:dO,domain:document.domain},y=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],m=0;m<arguments.length;m++)g[y[m]]=arguments[m];return g.ex=n?(n[arguments[0]]||{}).msg:"",g}}));function yO(e,t,r){for(var n,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var u,s=t.call.apply(t,pm(n=[e]).call(n,i));r&&"function"==typeof r&&(s&&s.then?s.then((function(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r.call.apply(r,pm(t=[e]).call(t,o))})):r.call.apply(r,pm(u=[e]).call(u,i)))}function mO(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[e]&&(this.__hooks[e]=null),Py(r=function(){var r,o=arguments,i=this;if(n.pre)try{var a,u;(u=n.pre).call.apply(u,pm(a=[this]).call(a,hy(Array.prototype).call(arguments)))}catch(y){var s,c;throw y.message=pm(s=pm(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(s,y.message),y}if(this.__hooks&&this.__hooks[e])try{var l,f,p,h=(f=this.__hooks[e]).call.apply(f,pm(l=[this,this]).call(l,hy(Array.prototype).call(arguments)));if(h)if(h.then)h.then((function(e){var r;!1!==e&&yO.apply(void 0,pm(r=[i,t,n.next]).call(r,ZS(o)))})).catch((function(e){throw e}));else yO.apply(void 0,pm(p=[this,t,n.next]).call(p,hy(Array.prototype).call(arguments)));else if(void 0===h){var d;yO.apply(void 0,pm(d=[this,t,n.next]).call(d,hy(Array.prototype).call(arguments)))}}catch(y){var v,g;throw y.message=pm(v=pm(g="[pluginName: ".concat(this.pluginName,":")).call(g,e,"] >> ")).call(v,y.message),y}else yO.apply(void 0,pm(r=[this,t,n.next]).call(r,hy(Array.prototype).call(arguments)))}).call(r,this)}function _O(e,t){var r=this.__hooks;if(r)return r.hasOwnProperty(e)?(r&&(r[e]=t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function bO(e,t){var r=this.__hooks;r&&delete r[e]}function wO(e,t){var r;fO.logError(pm(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var xO=function(){function e(t){KS(this,e),hO.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&AS(t).call(t,(function(t){e.__hooks[t]=null})),Ef(e,"hooks",{get:function(){var t;return e.__hooks&&AS(t=Tl(e.__hooks)).call(t,(function(t){if(e.__hooks[t])return t}))}})}(this),this.__args=t,this.__events={},this.__onceEvents={},this.config=t.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(t)}return JS(e,[{key:"beforeCreate",value:function(e){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(e){this.player=e.player,this.playerConfig=e.player&&e.player.config,this.pluginName=e.pluginName?e.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=e.player&&e.player.logger}},{key:"updateLang",value:function(e){e||(e=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var e=hO.checkTouchSupport()?"touch":"mouse";return!this.playerConfig||"touch"!==this.playerConfig.domEventType&&"mouse"!==this.playerConfig.domEventType||(e=this.playerConfig.domEventType),e}},{key:"on",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__events[e]=t,this.player.on(e,t)):jS(e)&&tf(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):wO(this.pluginName,"plugin.on(event, callback)")}},{key:"once",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__onceEvents[e]=t,this.player.once(e,t)):jS(e)&&tf(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):wO(this.pluginName,"plugin.once(event, callback)")}},{key:"off",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(delete this.__events[e],this.player.off(e,t)):jS(e)&&tf(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):wO(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e,t=this;tf(e=["__events","__onceEvents"]).call(e,(function(e){var r;tf(r=Tl(t[e])).call(r,(function(r){t[e][r]&&t.off(r,t[e][r]),r&&delete t[e][r]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t,r;if(this.player){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(r=this.player).emit.apply(r,pm(t=[e]).call(t,o))}}},{key:"emitUserAction",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=YS(YS({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return mO.call.apply(mO,pm(r=[this]).call(r,hy(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var r,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return _O.call.apply(_O,pm(r=[this]).call(r,hy(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var r,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return bO.call.apply(bO,pm(r=[this]).call(r,hy(Array.prototype).call(arguments)))}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.player)return r&&(t.pluginName=r),this.player.registerPlugin({plugin:e,options:t})}},{key:"getPlugin",value:function(e){return this.player?this.player.getPlugin(e):null}},{key:"__destroy",value:function(){var e,t=this,r=this.player,n=this.pluginName;this.offAll(),hO.clearAllTimers(this),hO.checkIsFunction(this.destroy)&&this.destroy(),AS(e=["player","playerConfig","pluginName","logger","__args","__hooks"]).call(e,(function(e){t[e]=null})),r.unRegisterPlugin(n),this.__hooks=null}}],[{key:"defineGetterOrSetter",value:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&Ef(e,r,t[r])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),SO=te,kO=f;SO.JSON||(SO.JSON={stringify:JSON.stringify});var TO=function(e,t,r){return kO(SO.JSON.stringify,null,arguments)},OO=r(TO),EO=ee,LO=b,RO=pt("match"),PO=function(e){var t;return EO(e)&&(void 0!==(t=e[RO])?!!t:"RegExp"==LO(e))},CO=TypeError,AO=pt("match"),jO=no.includes;Lr({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return jO(this,e,arguments.length>1?arguments[1]:void 0)}});var IO=Rl("Array").includes,MO=Lr,NO=function(e){if(PO(e))throw CO("The method doesn't accept regular expressions");return e},FO=W,DO=Yn,UO=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[AO]=!1,"/./"[e](t)}catch(n){}}return!1},BO=g("".indexOf);MO({target:"String",proto:!0,forced:!UO("includes")},{includes:function(e){return!!~BO(DO(FO(this)),DO(NO(e)),arguments.length>1?arguments[1]:void 0)}});var HO=Rl("String").includes,zO=ue,qO=IO,GO=HO,VO=Array.prototype,$O=String.prototype,YO=r((function(e){var t=e.includes;return e===VO||zO(VO,e)&&t===VO.includes?qO:"string"==typeof e||e===$O||zO($O,e)&&t===$O.includes?GO:t})),WO={exports:{}},KO=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),XO=i,JO=ee,QO=b,ZO=KO,eE=Object.isExtensible,tE=XO((function(){eE(1)}))||ZO?function(e){return!!JO(e)&&((!ZO||"ArrayBuffer"!=QO(e))&&(!eE||eE(e)))}:eE,rE=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),nE=Lr,oE=g,iE=oo,aE=ee,uE=Qe,sE=Jt.f,cE=Ho,lE=Go,fE=tE,pE=rE,hE=!1,dE=nt("meta"),vE=0,gE=function(e){sE(e,dE,{value:{objectID:"O"+vE++,weakData:{}}})},yE=WO.exports={enable:function(){yE.enable=function(){},hE=!0;var e=cE.f,t=oE([].splice),r={};r[dE]=1,e(r).length&&(cE.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===dE){t(n,o,1);break}return n},nE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:lE.f}))},fastKey:function(e,t){if(!aE(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!uE(e,dE)){if(!fE(e))return"F";if(!t)return"E";gE(e)}return e[dE].objectID},getWeakData:function(e,t){if(!uE(e,dE)){if(!fE(e))return!0;if(!t)return!1;gE(e)}return e[dE].weakData},onFreeze:function(e){return pE&&hE&&fE(e)&&!uE(e,dE)&&gE(e),e}};iE[dE]=!0;var mE=WO.exports,_E=Lr,bE=o,wE=mE,xE=i,SE=gr,kE=jp,TE=lh,OE=E,EE=ee,LE=Pi,RE=Jt.f,PE=ea.forEach,CE=R,AE=$i.set,jE=$i.getterFor,IE=Bo,ME=ai,NE=s_,FE=Xt,DE=lh,UE=V,BE=jp,HE=dc,zE=vc,qE=uh,GE=R,VE=mE.fastKey,$E=$i.set,YE=$i.getterFor,WE={getConstructor:function(e,t,r,n){var o=e((function(e,o){DE(e,i),$E(e,{type:t,index:IE(null),first:void 0,last:void 0,size:0}),GE||(e.size=0),UE(o)||BE(o,e[n],{that:e,AS_ENTRIES:r})})),i=o.prototype,a=YE(t),u=function(e,t,r){var n,o,i=a(e),u=s(e,t);return u?u.value=r:(i.last=u={index:o=VE(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),GE?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var r,n=a(e),o=VE(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return NE(i,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,GE?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=s(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),GE?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=FE(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),NE(i,r?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),GE&&ME(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=YE(t),i=YE(n);HE(e,t,(function(e,t){$E(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?zE("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,zE(void 0,!0))}),r?"entries":"values",!r,!0),qE(t)}};(function(e,t,r){var n,o=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=o?"set":"add",u=bE[e],s=u&&u.prototype,c={};if(CE&&OE(u)&&(i||s.forEach&&!xE((function(){(new u).entries().next()})))){var l=(n=t((function(t,r){AE(TE(t,l),{type:e,collection:new u}),null!=r&&kE(r,t[a],{that:t,AS_ENTRIES:o})}))).prototype,f=jE(e);PE(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in s)||i&&"clear"==e||SE(l,e,(function(r,n){var o=f(this).collection;if(!t&&i&&!EE(r))return"get"==e&&void 0;var a=o[e](0===r?0:r,n);return t?this:a}))})),i||RE(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,o,a),wE.enable();LE(n,e,!1,!0),c[e]=n,_E({global:!0,forced:!0},c),i||r.setStrong(n,e,o)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),WE);var KE=te.Map,XE=Xt,JE=A,QE=Ce,ZE=dh,eL=V,tL=jp,rL=[].push,nL=function(e){var t,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return ZE(this),(t=void 0!==a)&&QE(a),eL(e)?new this:(r=[],t?(n=0,o=XE(a,i>2?arguments[2]:void 0),tL(e,(function(e){JE(rL,r,o(e,n++))}))):tL(e,rL,{that:r}),new this(r))};Lr({target:"Map",stat:!0,forced:!0},{from:nL});var oL=ku,iL=function(){return new this(oL(arguments))};Lr({target:"Map",stat:!0,forced:!0},{of:iL});var aL=Ee,uL=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(aL(e)+" is not a map")},sL=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},cL=ae("Map"),lL={Map:cL,set:sL("set",2),get:sL("get",1),has:sL("has",1),remove:sL("delete",1),proto:cL.prototype},fL=uL,pL=lL.remove;Lr({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=fL(this),r=!0,n=0,o=arguments.length;n<o;n++)e=pL(t,arguments[n]),r=r&&e;return!!r}});var hL=uL,dL=lL.get,vL=lL.has,gL=lL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,o=hL(this);return vL(o,e)?(r=dL(o,e),"update"in t&&(r=t.update(r,e,o),gL(o,e,r)),r):(n=t.insert(e,o),gL(o,e,n),n)}});var yL=A,mL=function(e,t,r){for(var n,o,i=r||e.next;!(n=yL(i,e)).done;)if(void 0!==(o=t(n.value)))return o},_L=function(e,t,r){return r?mL(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},bL=Xt,wL=uL,xL=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=wL(this),r=bL(e,arguments.length>1?arguments[1]:void 0);return!1!==xL(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var SL=Xt,kL=uL,TL=_L,OL=lL.Map,EL=lL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=kL(this),r=SL(e,arguments.length>1?arguments[1]:void 0),n=new OL;return TL(t,(function(e,o){r(e,o,t)&&EL(n,o,e)})),n}});var LL=Xt,RL=uL,PL=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=RL(this),r=LL(e,arguments.length>1?arguments[1]:void 0),n=PL(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var CL=Xt,AL=uL,jL=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=AL(this),r=CL(e,arguments.length>1?arguments[1]:void 0),n=jL(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var IL=Lr,ML=A,NL=E,FL=Ce,DL=jp,UL=lL.Map,BL=g([].push);IL({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(NL(this)?this:UL);FL(t);var n=FL(r.has),o=FL(r.get),i=FL(r.set);return DL(e,(function(e){var a=t(e);ML(n,r,a)?BL(ML(o,r,a),e):ML(i,r,a,[e])})),r}});var HL=function(e,t){return e===t||e!=e&&t!=t},zL=uL,qL=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===qL(zL(this),(function(t){if(HL(t,e))return!0}),!0)}});var GL=A,VL=jp,$L=E,YL=Ce,WL=lL.Map;Lr({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new($L(this)?this:WL);YL(t);var n=YL(r.set);return VL(e,(function(e){GL(n,r,t(e),e)})),r}});var KL=uL,XL=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=XL(KL(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var JL=Xt,QL=uL,ZL=_L,eR=lL.Map,tR=lL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=QL(this),r=JL(e,arguments.length>1?arguments[1]:void 0),n=new eR;return ZL(t,(function(e,o){tR(n,r(e,o,t),e)})),n}});var rR=Xt,nR=uL,oR=_L,iR=lL.Map,aR=lL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=nR(this),r=rR(e,arguments.length>1?arguments[1]:void 0),n=new iR;return oR(t,(function(e,o){aR(n,o,r(e,o,t))})),n}});var uR=uL,sR=jp,cR=lL.set;Lr({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=uR(this),r=arguments.length,n=0;n<r;)sR(arguments[n++],(function(e,r){cR(t,e,r)}),{AS_ENTRIES:!0});return t}});var lR=Ce,fR=uL,pR=_L,hR=TypeError;Lr({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=fR(this),r=arguments.length<2,n=r?void 0:arguments[1];if(lR(e),pR(t,(function(o,i){r?(r=!1,n=o):n=e(n,o,i,t)})),r)throw hR("Reduce of empty map with no initial value");return n}});var dR=Xt,vR=uL,gR=_L;Lr({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=vR(this),r=dR(e,arguments.length>1?arguments[1]:void 0);return!0===gR(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var yR=Ce,mR=uL,_R=TypeError,bR=lL.get,wR=lL.has,xR=lL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=mR(this),n=arguments.length;yR(t);var o=wR(r,e);if(!o&&n<3)throw _R("Updating absent value");var i=o?bR(r,e):yR(n>2?arguments[2]:void 0)(e,r);return xR(r,e,t(i,e,r)),r}});var SR=A,kR=Ce,TR=E,OR=rr,ER=TypeError,LR=function(e,t){var r,n=OR(this),o=kR(n.get),i=kR(n.has),a=kR(n.set),u=arguments.length>2?arguments[2]:void 0;if(!TR(t)&&!TR(u))throw ER("At least one callback required");return SR(i,n,e)?(r=SR(o,n,e),TR(t)&&(r=t(r),SR(a,n,e,r))):TR(u)&&(r=u(),SR(a,n,e,r)),r};Lr({target:"Map",proto:!0,real:!0,forced:!0},{upsert:LR}),Lr({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:LR});var RR=r(KE);function PR(e,t){var r=Tl(e);if(Ol){var n=Ol(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function CR(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=PR(Object(o),!0)).call(r,(function(t){UR(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=PR(Object(o))).call(n,(function(t){Ef(e,t,ql(o,t))}))}return e}function AR(){AR=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Ef||function(e,t,r){e[t]=r.value},o="function"==typeof Lf?Lf:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,r){return Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Pf(i.prototype),u=new k(o||[]);return n(a,"_invoke",{value:b(e,r,u)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(E){return{type:"throw",arg:E}}}e.wrap=c;var f={};function p(){}function h(){}function d(){}var v={};s(v,i,(function(){return this}));var g=If&&If(If(T([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=d.prototype=p.prototype=Pf(v);function m(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,u){var s=l(e[n],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==xl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,u)}),(function(e){o("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,u)}))}u(s.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,x,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=s(d,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Mf?Mf(e,d):(e.__proto__=d,s(e,u,"GeneratorFunction")),e.prototype=Pf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Ug);var a=new _(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),s(y,u,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Wg(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,k.prototype={constructor:k,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,tf(t=this.tryEntries).call(t,S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+hy(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function jR(e){return(jR="function"==typeof Lf&&"symbol"==typeof IS?function(e){return typeof e}:function(e){return e&&"function"==typeof Lf&&e.constructor===Lf&&e!==Lf.prototype?"symbol":typeof e})(e)}function IR(e,t,r,n,o,i,a){try{var u=e[i](a),s=u.value}catch(RC){return void r(RC)}u.done?t(s):Ug.resolve(s).then(n,o)}function MR(e){return function(){var t=this,r=arguments;return new Ug((function(n,o){var i=e.apply(t,r);function a(e){IR(i,n,o,a,u,"next",e)}function u(e){IR(i,n,o,a,u,"throw",e)}a(void 0)}))}}function NR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Ef(e,QR(n.key),n)}}function DR(e,t,r){return t&&FR(e.prototype,t),r&&FR(e,r),Ef(e,"prototype",{writable:!1}),e}function UR(e,t,r){return(t=QR(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BR(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Pf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Ef(e,"prototype",{writable:!1}),t&&zR(e,t)}function HR(e){var t;return(HR=Mf?Py(t=If).call(t):function(e){return e.__proto__||If(e)})(e)}function zR(e,t){var r;return(zR=Mf?Py(r=Mf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function qR(){if("undefined"==typeof Reflect||!Vy)return!1;if(Vy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Vy(Boolean,[],(function(){}))),!0}catch(e){return!1}}function GR(e,t,r){var n;qR()?GR=Py(n=Vy).call(n):GR=function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Py(Function).apply(e,n));return r&&zR(o,r.prototype),o};return GR.apply(null,arguments)}function VR(e){var t="function"==typeof RR?new RR:void 0;return VR=function(e){if(null===e||(r=e,-1===Cx(n=Function.toString.call(r)).call(n,"[native code]")))return e;var r,n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return GR(e,arguments,HR(this).constructor)}return o.prototype=Pf(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),zR(o,e)},VR(e)}function $R(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Tl(e);for(n=0;n<i.length;n++)r=i[n],Cx(t).call(t,r)>=0||(o[r]=e[r]);return o}(e,t);if(Ol){var i=Ol(e);for(n=0;n<i.length;n++)r=i[n],Cx(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function YR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WR(e){var t=qR();return function(){var r,n=HR(e);if(t){var o=HR(this).constructor;r=Vy(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===xl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YR(e)}(this,r)}}function KR(){var e;"undefined"!=typeof Reflect&&zS?KR=Py(e=zS).call(e):KR=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=HR(e)););return e}(e,t);if(n){var o=ql(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}};return KR.apply(this,arguments)}function XR(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JR(e,t){var r=void 0!==Lf&&qS(e)||e["@@iterator"];if(!r){if(jS(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return XR(e,t);var n=hy(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?VS(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XR(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function QR(e){var t=function(e,t){if("object"!==xl(e)||null===e)return e;var r=e[$y];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xl(t)?t:String(t)}var ZR=Ce,eP=Ke,tP=G,rP=Ur,nP=TypeError,oP=function(e){return function(t,r,n,o){ZR(r);var i=eP(t),a=tP(i),u=rP(i),s=e?u-1:0,c=e?-1:1;if(n<2)for(;;){if(s in a){o=a[s],s+=c;break}if(s+=c,e?s<0:u<=s)throw nP("Reduce of empty array with no initial value")}for(;e?s>=0:u>s;s+=c)s in a&&(o=r(o,a[s],s,i));return o}},iP={left:oP(!1),right:oP(!0)}.left;Lr({target:"Array",proto:!0,forced:!rh&&ve>79&&ve<83||!Vl("reduce")},{reduce:function(e){var t=arguments.length;return iP(this,e,t,t>1?arguments[1]:void 0)}});var aP,uP=Rl("Array").reduce,sP=ue,cP=uP,lP=Array.prototype,fP=r((function(e){var t=e.reduce;return e===lP||sP(lP,e)&&t===lP.reduce?cP:t})),pP="network",hP="network_timeout",dP="network_forbidden",vP="network_notfound",gP="network_range_not_satisfiable",yP="demux",mP="remux",_P="media",bP="drm",wP="other",xP="runtime",SP=(UR(aP={},"manifest",{HLS:1100,DASH:1200}),UR(aP,pP,2100),UR(aP,hP,2101),UR(aP,dP,2103),UR(aP,vP,2104),UR(aP,gP,2116),UR(aP,yP,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),UR(aP,mP,{FMP4:4100,MP4:4200}),UR(aP,_P,{MEDIA_ERR_ABORTED:5101,MEDIA_ERR_NETWORK:5102,MEDIA_ERR_DECODE:5103,MEDIA_ERR_SRC_NOT_SUPPORTED:5104,MEDIA_ERR_CODEC_NOT_SUPPORTED:5105,MEDIA_ERR_URL_EMPTY:5106,MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203,MSE_HIJACK:5204,EME_HIJACK:5301}),UR(aP,bP,{LICENSE:7100,CUSTOM_LICENSE:7200}),UR(aP,wP,8e3),UR(aP,xP,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),aP),kP=function(e){BR(r,e);var t=WR(r);function r(e,n,o,i,a){var u;return NR(this,r),(u=t.call(this,a||(null==o?void 0:o.message))).errorType=e===hP?pP:e,u.originError=o,u.ext=i,u.errorCode=SP[e][n]||SP[e],u.errorMessage=u.message,u.errorCode||(u.errorType=wP,u.errorCode=SP[u.errorType]),u}return DR(r,null,[{key:"create",value:function(e,t,n,o,i){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=wP),new r(e,t,n,o,i))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?hP:pP,null,e instanceof Error?e:null,{url:null==e?void 0:e.url,response:null==e?void 0:e.response,httpCode:null==e||null===(t=e.response)||void 0===t?void 0:t.status})}}]),r}(VR(Error)),TP=1,OP=2,EP=3,LP=4,RP=["Boolean","Number","String","Undefined","Null","Date","Object"],PP=function(){function e(t,r){NR(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=(null==r?void 0:r.disabled)||!0,this.logCacheLevel=(null==r?void 0:r.logCacheLevel)||3,this.logMaxSize=(null==r?void 0:r.logMaxSize)||204800,this.logSize=0,this.logTextArray=[]}return DR(e,[{key:"debug",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[TP]).call(t,i)),e.disabled||(n=console).debug.apply(n,pm(r=[this._prefix,CP()]).call(r,i))}},{key:"log",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[OP]).call(t,i)),e.disabled||(n=console).log.apply(n,pm(r=[this._prefix,CP()]).call(r,i))}},{key:"warn",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[EP]).call(t,i)),e.disabled||(n=console).warn.apply(n,pm(r=[this._prefix,CP()]).call(r,i))}},{key:"error",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[LP]).call(t,i)),e.disabled||(n=console).error.apply(n,pm(r=[this._prefix,CP()]).call(r,i))}},{key:"logCache",value:function(e){if(!(e<this.logCacheLevel)){var t="";try{for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i=AS(n).call(n,(function(e){return jP(e)}));t=this._prefix+CP()+OO(i)}catch(u){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var a=this.logTextArray.shift();this.logSize-=a.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function CP(){return(new Date).toLocaleString()}function AP(e){var t;if("object"!==jR(e))return e;var r=hy(t=Object.prototype.toString.call(e)).call(t,8,-1);switch(r){case"Array":case"Uint8Array":case"ArrayBuffer":return r+"["+e.length+"]";case"Object":return"{}";default:return r}}function jP(e,t,r){var n;r||(r=1),t||(t=2);var o={};if(!e||"object"!==jR(e))return e;var i=hy(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!YO(RP).call(RP,i))return i;if(!(r>t)){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r===t?o[a]=AP(e[a]):"object"===jR(e[a])?o[a]=jP(e[a],t,r+1):o[a]=e[a]);return o}}UR(PP,"disabled",!0);var IP="fetch",MP="xhr",NP="arraybuffer",FP="text",DP="json",UP=function(e){BR(r,e);var t=WR(r);function r(e,n,o,i){var a;return NR(this,r),UR(YR(a=t.call(this,i)),"retryCount",0),UR(YR(a),"isTimeout",!1),UR(YR(a),"loaderType",IP),UR(YR(a),"startTime",0),UR(YR(a),"endTime",0),UR(YR(a),"options",{}),a.url=e,a.request=n,a.response=o,a}return DR(r)}(VR(Error)),BP=Object.prototype.toString;function HP(e){if("[object Object]"!==BP.call(e))return!1;var t=If(e);return null===t||t===Object.prototype}function zP(e){if(e&&null!==e[0]&&void 0!==e[0]&&(0!==e[0]||null!==e[1]&&void 0!==e[1])){var t="bytes="+e[0]+"-";return e[1]&&(t+=e[1]),t}}function qP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GP(e,t){var r,n;if(e){if(!t)return e;var o,i=Il(r=AS(n=Tl(t)).call(n,(function(e){if(null!=(o=t[e]))return jS(o)?e+="[]":o=[o],AS(o).call(o,(function(t){var r,n;return n=t,"[object Date]"===BP.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===jR(e)}(t)&&(t=OO(t)),pm(r="".concat(qP(e),"=")).call(r,qP(t))})).join("&")}))).call(r,Boolean).join("&");if(i){var a=Cx(e).call(e,"#");-1!==a&&(e=hy(e).call(e,0,a)),e+=(-1===Cx(e).call(e,"?")?"?":"&")+i}return e}}function VP(e,t,r,n,o,i,a,u,s,c,l){return o=null!=o?dT(o):null,n=OS(n||"0",10),oS(n)&&(n=0),{data:e,done:t,options:{range:s,vid:c,index:u,contentLength:n,age:o,startTime:i,firstByteTime:a,endTime:iO(),priOptions:l},response:r}}function $P(e,t){return Math.round(8*e*1e3/t/1024)}var YP="error",WP="core.ttfb",KP="core.loadstart",XP="core.loadresponseheaders",JP="core.loadcomplete",QP="core.loadretry",ZP="core.metadataparsed",eC="real_time_speed",tC=2097152,rC=function(e){BR(n,e);var t,r=WR(n);function n(){var e;return NR(this,n),UR(YR(e=r.call(this)),"_abortController",null),UR(YR(e),"_timeoutTimer",null),UR(YR(e),"_reader",null),UR(YR(e),"_response",null),UR(YR(e),"_aborted",!1),UR(YR(e),"_index",-1),UR(YR(e),"_range",null),UR(YR(e),"_receivedLength",0),UR(YR(e),"_running",!1),UR(YR(e),"_logger",null),UR(YR(e),"_vid",""),UR(YR(e),"_onProcessMinLen",0),UR(YR(e),"_onCancel",null),UR(YR(e),"_priOptions",null),e}return DR(n,[{key:"load",value:function(e){var t,r=this,n=e.url,o=e.vid,i=e.timeout,a=e.responseType,u=e.onProgress,s=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,p=e.transformResponse,h=e.request,d=e.params,v=e.logger,g=e.method,y=e.headers,m=e.body,_=e.mode,b=e.credentials,w=e.cache,x=e.redirect,S=e.referrer,k=e.referrerPolicy,T=e.onProcessMinLen,O=e.priOptions;this._logger=v,this._aborted=!1,this._onProcessMinLen=T,this._onCancel=l,this._abortController="undefined"!=typeof AbortController&&new AbortController,this._running=!0,this._index=s,this._range=f||[0,0],this._vid=o||n,this._priOptions=O||{};var E={method:g,headers:y,body:m,mode:_,credentials:b,cache:w,redirect:x,referrer:S,referrerPolicy:k,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},L=!1;clearTimeout(this._timeoutTimer),n=GP(n,d);var R=zP(f);R&&(y=h?h.headers:E.headers=E.headers||(Headers?new Headers:{}),Headers&&y instanceof Headers?y.append("Range",R):y.Range=R),i&&(this._timeoutTimer=Jk((function(){if(L=!0,r.cancel(),c){var e=new UP(n,E,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),i));var P=iO();return this._logger.debug("[fetch load start], index,",s,",range,",f),new Ug((function(e,t){fetch(h||n,h?void 0:E).then(function(){var o=MR(AR().mark((function o(i){var c,l,h,d;return AR().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=i,!r._aborted&&r._running){o.next=4;break}return o.abrupt("return");case 4:if(p&&(i=p(i,n)||i),i.ok){o.next=7;break}throw new UP(n,E,i,"bad network response");case 7:if(c=iO(),a!==FP){o.next=15;break}return o.next=11,i.text();case 11:l=o.sent,r._running=!1,o.next=37;break;case 15:if(a!==DP){o.next=22;break}return o.next=18,i.json();case 18:l=o.sent,r._running=!1,o.next=37;break;case 22:if(!u){o.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(i,u,P,c),o.abrupt("return");case 29:return o.next=31,i.arrayBuffer();case 31:l=o.sent,l=new Uint8Array(l),r._running=!1,h=iO()-P,d=$P(l.byteLength,h),r.emit(eC,{speed:d,len:l.byteLength,time:h,vid:r._vid,index:r._index,range:r._range,priOptions:r._priOptions});case 37:r._logger.debug("[fetch load end], index,",s,",range,",f),e(VP(l,!0,i,i.headers.get("Content-Length"),i.headers.get("age"),P,c,s,f,r._vid,r._priOptions));case 39:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}()).catch((function(e){var o;clearTimeout(r._timeoutTimer),r._running=!1,r._aborted&&!L||((e=e instanceof UP?e:new UP(n,E,null,null===(o=e)||void 0===o?void 0:o.message)).startTime=P,e.endTime=iO(),e.isTimeout=L,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=MR(AR().mark((function e(){return AR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._aborted){e.next=2;break}return e.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){e.next=14;break}if(e.prev=5,!this._reader){e.next=9;break}return e.next=9,this._reader.cancel();case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(5);case 13:this._response=this._reader=null;case 14:if(this._abortController){try{this._abortController.abort()}catch(RC){}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(){return t.apply(this,arguments)})},{key:"_loadChunk",value:function(e,t,r,n){var o=this;if(!e.body||!e.body.getReader){this._running=!1;var i=new UP(e.url,"",e,"onProgress of bad response.body.getReader");return i.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},void this.reject(i)}this._onProcessMinLen>0&&(this._cache=new Uint8Array(tC),this._writeIdx=0);var a,u,s,c=this._reader=e.body.getReader(),l=function(){var i=MR(AR().mark((function i(){var f,p,h,d,v,g,y,m;return AR().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return u=iO(),i.prev=1,i.next=4,c.read();case 4:a=i.sent,s=iO(),i.next=13;break;case 8:return i.prev=8,i.t0=i.catch(1),s=iO(),o._aborted||(o._running=!1,i.t0.options={index:o._index,range:o._range,vid:o._vid,priOptions:o._priOptions},o.reject(i.t0)),i.abrupt("return");case 13:if(p=(null===(f=o._range)||void 0===f?void 0:f.length)>0?o._range[0]:0,h=p+o._receivedLength,!o._aborted){i.next=19;break}return o._running=!1,t(void 0,!1,{range:[h,h],vid:o._vid,index:o._index,startTime:u,endTime:s,st:r,firstByteTime:n,priOptions:o._priOptions},e),i.abrupt("return");case 19:var _;if(d=a.value?a.value.byteLength:0,o._receivedLength+=d,o._logger.debug("【fetchLoader,onProgress call】,task,",o._range,", start,",h,", end,",p+o._receivedLength,", done,",a.done),o._onProcessMinLen>0){if(o._writeIdx+d>=o._onProcessMinLen||a.done)(v=new Uint8Array(o._writeIdx+d)).set(hy(_=o._cache).call(_,0,o._writeIdx),0),d>0&&v.set(a.value,o._writeIdx),o._writeIdx=0,o._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",v.byteLength,", writeIdx,",o._writeIdx);else if(d>0&&o._writeIdx+d<tC)o._cache.set(a.value,o._writeIdx),o._writeIdx+=d,o._logger.debug("【fetchLoader,onProgress cache】,len,",d,", writeIdx,",o._writeIdx);else if(d>0){var b;g=new Uint8Array(o._writeIdx+d+2048),o._logger.debug("【fetchLoader,onProgress extra start】,size,",o._writeIdx+d+2048,", datalen,",d,", writeIdx,",o._writeIdx),g.set(hy(b=o._cache).call(b,0,o._writeIdx),0),d>0&&g.set(a.value,o._writeIdx),o._writeIdx+=d,delete o._cache,o._cache=g,o._logger.debug("【fetchLoader,onProgress extra end】,len,",d,", writeIdx,",o._writeIdx)}}else v=a.value;(v&&v.byteLength>0||a.done)&&t(v,a.done,{range:[o._range[0]+o._receivedLength-(v?v.byteLength:0),o._range[0]+o._receivedLength],vid:o._vid,index:o._index,startTime:u,endTime:s,st:r,firstByteTime:n,priOptions:o._priOptions},e),a.done?(y=iO()-r,m=$P(o._receivedLength,y),o.emit(eC,{speed:m,len:o._receivedLength,time:y,vid:o._vid,index:o._index,range:o._range,priOptions:o._priOptions}),o._running=!1,o._logger.debug("[fetchLoader onProgress end],task,",o._range,",done,",a.done),o.resolve(VP(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),r,n,o._index,o._range,o._vid,o._priOptions))):l();case 25:case"end":return i.stop()}}),i,null,[[1,8]])})));return function(){return i.apply(this,arguments)}}();l()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}}],[{key:"isSupported",value:function(){return!("undefined"==typeof fetch)}}]),n}(ik);var nC=function(e){BR(r,e);var t=WR(r);function r(){var e;return NR(this,r),UR(YR(e=t.call(this)),"_xhr",null),UR(YR(e),"_aborted",!1),UR(YR(e),"_timeoutTimer",null),UR(YR(e),"_range",null),UR(YR(e),"_receivedLength",0),UR(YR(e),"_url",null),UR(YR(e),"_onProgress",null),UR(YR(e),"_index",-1),UR(YR(e),"_headers",null),UR(YR(e),"_currentChunkSizeKB",384),UR(YR(e),"_timeout",null),UR(YR(e),"_xhr",null),UR(YR(e),"_withCredentials",null),UR(YR(e),"_startTime",-1),UR(YR(e),"_loadCompleteResolve",null),UR(YR(e),"_loadCompleteReject",null),UR(YR(e),"_runing",!1),UR(YR(e),"_logger",!1),UR(YR(e),"_vid",""),UR(YR(e),"_responseType",void 0),UR(YR(e),"_credentials",void 0),UR(YR(e),"_method",void 0),UR(YR(e),"_transformResponse",void 0),UR(YR(e),"_firstRtt",void 0),UR(YR(e),"_onCancel",null),UR(YR(e),"_priOptions",null),e}return DR(r,[{key:"load",value:function(e){var t=this;clearTimeout(this._timeoutTimer),this._logger=e.logger,this._range=e.range,this._onProgress=e.onProgress,this._index=e.index,this._headers=e.headers,this._withCredentials="include"===e.credentials||"same-origin"===e.credentials,this._body=e.body||null,e.method&&(this._method=e.method),this._timeout=e.timeout||null,this._runing=!0,this._vid=e.vid||e.url,this._responseType=e.responseType,this._firstRtt=-1,this._onTimeout=e.onTimeout,this._onCancel=e.onCancel,this._request=e.request,this._priOptions=e.priOptions||{},this._logger.debug("【xhrLoader task】, range",this._range),this._url=GP(e.url,e.params);var r=iO();return new Ug((function(e,r){t._loadCompleteResolve=e,t._loadCompleteReject=r,t._startLoad()})).catch((function(e){if(clearTimeout(t._timeoutTimer),t._runing=!1,!t._aborted)throw(e=e instanceof UP?e:new UP(t._url,t._request)).startTime=r,e.endTime=iO(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===NP&&this._range&&this._range.length>1)if(this._onProgress){this._firstRtt=-1;var t=1024*this._currentChunkSizeKB,r=this._range[0]+this._receivedLength,n=this._range[1];t<this._range[1]-r&&(n=r+t),e=[r,n],this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",e)}else e=this._range,this._logger.debug("[xhr_loader->],tast :",this._range,", allRange, ",e);this._internalOpen(e)}},{key:"_internalOpen",value:function(e){var t=this;try{var r,n;this._startTime=iO();var o=this._xhr=new XMLHttpRequest;o.open(this._method||"GET",this._url,!0),o.responseType=this._responseType,this._timeout&&(o.timeout=this._timeout),o.withCredentials=this._withCredentials,o.onload=Py(r=this._onLoad).call(r,this),o.onreadystatechange=Py(n=this._onReadyStatechange).call(n,this),o.onerror=function(e){var r,n,o;t._running=!1;var i=new UP(t._url,t._request,null==e||null===(r=e.currentTarget)||void 0===r?void 0:r.response,"xhr.onerror.status:"+(null==e||null===(n=e.currentTarget)||void 0===n?void 0:n.status)+",statusText,"+(null==e||null===(o=e.currentTarget)||void 0===o?void 0:o.statusText));i.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(i)},o.ontimeout=function(e){t.cancel();var r=new UP(t._url,t._request,{status:408},"timeout");t._onTimeout&&(r.isTimeout=!0,t._onTimeout(r,{index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions})),r.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(r)};var i,a=this._headers||{},u=zP(e);if(u&&(a.Range=u),a)tf(i=Tl(a)).call(i,(function(e){o.setRequestHeader(e,a[e])}));this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),o.send(this._body)}catch(s){s.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(s)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=iO())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new UP(this._url,null,CR(CR({},e.target.response),{},{status:r}),"bad response,status:"+r);return n.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(n)}var o,i=null,a=!1,u=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===NP){var s,c=new Uint8Array(e.target.response);if(o=u+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=iO()-this._startTime,f=$P(this._receivedLength,l);this.emit(eC,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[o,u+this._receivedLength],priOptions:this._priOptions})}i=c,a=!((null===(s=this._range)||void 0===s?void 0:s.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",o,"end ",u+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,i=e.target.response;var p={ok:r>=200&&r<300,status:r,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._transformResponse&&(p=this._transformResponse(p,this._url)||p),this._onProgress&&this._onProgress(i,a,{index:this._index,vid:this._vid,range:[o,u+this._receivedLength],startTime:this._startTime,endTime:iO(),priOptions:this._priOptions},p),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(VP(this._onProgress?null:i,a,p,p.headers["content-length"],p.headers.age,this._startTime,this._firstRtt,this._index,this._range,this._vid,this._priOptions))):this._startLoad()}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,KR(HR(r.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}},{key:"_getHeaders",value:function(e){var t,r,n={},o=JR(ST(t=e.getAllResponseHeaders()).call(t).split("\r\n"));try{for(o.s();!(r=o.n()).done;){var i=r.value.split(": ");n[i[0].toLowerCase()]=hy(i).call(i,1).join(": ")}}catch(a){o.e(a)}finally{o.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(ik),oC=["retry","retryDelay","onRetryError","transformError"],iC=function(){function e(t,r){var n,o,i;NR(this,e),this.promise=((i=new Ug((function(e,t){n=e,o=t}))).used=!1,i.resolve=function(){return i.used=!0,n.apply(void 0,arguments)},i.reject=function(){return i.used=!0,o.apply(void 0,arguments)},i),this.alive=!!r.onProgress,!r.logger&&(r.logger=new PP("Loader")),this._loaderType=t,this._loader=t===IP&&window.fetch?new rC:new nC,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return DR(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,o=t.onRetryError,i=t.transformError,a=$R(t,oC),u=function(){var t=MR(AR().mark((function t(){var s,c,l;return AR().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:s=t.sent,e.promise.resolve(s),t.next=27;break;case 7:if(t.prev=7,t.t0=t.catch(0),e._loader.running=!1,e._logger.debug("[task request catch err]",t.t0),!e._canceled){t.next=13;break}return t.abrupt("return");case 13:if(t.t0.loaderType=e._loaderType,t.t0.retryCount=e._retryCount,c=t.t0,i&&(c=i(c)||c),o&&e._retryCount>0&&o(c,e._retryCount,{index:a.index,vid:a.vid,range:a.range,priOptions:a.priOptions}),e._retryCount++,l=!0,e._retryCheckFunc&&(l=e._retryCheckFunc(t.t0)),!(l&&e._retryCount<=r)){t.next=26;break}return clearTimeout(e._retryTimer),e._logger.debug("[task request setTimeout],retry",e._retryCount,",retry range,",a.range),e._retryTimer=Jk(u,n),t.abrupt("return");case 26:e.promise.reject(c);case 27:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();return u(),this.promise}},{key:"cancel",value:(t=MR(AR().mark((function e(){return AR().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,e.abrupt("return",this._loader.cancel());case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),e}();function aC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Ug((function(t){return Jk(t,e)}))}var uC,sC=function(e){BR(n,e);var t,r=WR(n);function n(e){var t;return NR(this,n),UR(YR(t=r.call(this,e)),"type",IP),UR(YR(t),"_queue",[]),UR(YR(t),"_alive",[]),UR(YR(t),"_currentTask",null),UR(YR(t),"_config",void 0),t._config=function(e){return CR({loaderType:IP,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:FP,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0},e)}(e),t._config.loaderType!==MP&&rC.isSupported()||(t.type=MP),t.log=e.logger,t}return DR(n,[{key:"isFetch",value:function(){return this.type===IP}},{key:"load",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof e&&e?r=e:r.url=e||r.url||this._config.url,(r=nk({},this._config,r)).params&&(r.params=nk({},r.params)),r.headers&&HP(r.headers)&&(r.headers=nk({},r.headers)),r.body&&HP(r.body)&&(r.body=nk({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new iC(this.type,r);return n.loader.on(eC,(function(e){t.emit(eC,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=MR(AR().mark((function e(){var t;return AR().wrap((function(e){for(var r,n,o;;)switch(e.prev=e.next){case 0:return t=pm(r=AS(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,AS(o=this._alive).call(o,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Ug.all(t);case 6:return e.next=8,aC();case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_processTask",value:function(){var e=this;if(this._currentTask=this._queue.shift(),this._currentTask){this._currentTask.alive&&this._alive.push(this._currentTask);var t=this._currentTask.exec().catch((function(e){}));t&&"function"==typeof t.finally&&t.finally((function(){var t,r,n;null!==(t=e._currentTask)&&void 0!==t&&t.alive&&(null===(r=e._alive)||void 0===r?void 0:r.length)>0&&(e._alive=Il(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return rC.isSupported()}}]),n}(ik),cC="core.rtcstatechange",lC={},fC={},pC={exports:{}},hC=pC.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};tf(uC=Tl(hC)).call(uC,(function(e){var t=hC[e];tf(t).call(t,(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}));var dC=pC.exports;!function(e,t){var r=function(e){return String(Number(e))===e?Number(e):e},n=function(e,t,n){var o=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:o&&!t[e.name]&&(t[e.name]={});var i=e.push?{}:o?t[e.name]:t;!function(e,t,n,o){if(o&&!n)t[o]=r(e[1]);else for(var i=0;i<n.length;i+=1)null!=e[i+1]&&(t[n[i]]=r(e[i+1]))}(n.match(e.reg),i,e.names,e.name),e.push&&t[e.push].push(i)},o=dC,i=Py(t=RegExp.prototype.test).call(t,/^([a-z])=(.*)/);e.parse=function(e){var t,r,a={},u=[],s=a;return tf(t=Il(r=e.split(/(\r\n|\r|\n)/)).call(r,i)).call(t,(function(e){var t=e[0],r=hy(e).call(e,2);"m"===t&&(u.push({rtp:[],fmtp:[]}),s=u[u.length-1]);for(var i=0;i<(o[t]||[]).length;i+=1){var a=o[t][i];if(a.reg.test(r))return n(a,s,r)}})),a.media=u,a};var a=function(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=r(n[1]):1===n.length&&t.length>1&&(e[n[0]]=void 0),e};e.parseParams=function(e){var t;return fP(t=e.split(/;\s?/)).call(t,a,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){var t;return AS(t=e.toString().split(" ")).call(t,Number)},e.parseRemoteCandidates=function(e){for(var t,n=[],o=AS(t=e.split(" ")).call(t,r),i=0;i<o.length;i+=3)n.push({component:o[i],ip:o[i+1],port:o[i+2]});return n},e.parseImageAttributes=function(e){var t;return AS(t=e.split(" ")).call(t,(function(e){var t;return fP(t=e.substring(1,e.length-1).split(",")).call(t,a,{})}))},e.parseSimulcastStreamList=function(e){var t;return AS(t=e.split(";")).call(t,(function(e){var t;return AS(t=e.split(",")).call(t,(function(e){var t,n=!1;return"~"!==e[0]?t=r(e):(t=r(e.substring(1,e.length)),n=!0),{scid:t,paused:n}}))}))}}(fC);var vC=dC,gC=/%[sdv%]/g,yC=function(e){var t=1,r=arguments,n=r.length;return e.replace(gC,(function(e){if(t>=n)return e;var o=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(o);case"%d":return Number(o);case"%v":return""}}))},mC=function(e,t,r){var n=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var o=0;o<t.names.length;o+=1){var i=t.names[o];t.name?n.push(r[t.name][i]):n.push(r[t.names[o]])}else n.push(r[t.name]);return yC.apply(null,n)},_C=["v","o","s","i","u","e","p","c","b","t","r","z","a"],bC=["i","c","b","a"],wC=fC,xC=function(e,t){var r,n;t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),tf(r=e.media).call(r,(function(e){null==e.payloads&&(e.payloads="")}));var o=t.outerOrder||_C,i=t.innerOrder||bC,a=[];return tf(o).call(o,(function(t){var r;tf(r=vC[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(mC(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;tf(n=e[r.push]).call(n,(function(e){a.push(mC(t,r,e))}))}}))})),tf(n=e.media).call(n,(function(e){a.push(mC("m",vC.m[0],e)),tf(i).call(i,(function(t){var r;tf(r=vC[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(mC(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;tf(n=e[r.push]).call(n,(function(e){a.push(mC(t,r,e))}))}}))}))})),a.join("\r\n")+"\r\n"};function SC(e){return new Ug((function(t){var r;null===(r=e.getStats(null))||void 0===r||r.then((function(e){var r,n;t((n=[],tf(r=e).call(r,(function(e){"inbound-rtp"===e.type&&n.push(e)})),AS(n).call(n,(function(e){var t=r.get(e.codecId),n=r.get(e.trackId);return{type:e.mediaType,inboundRtp:e,codec:t,track:n}}))))}))})).catch((function(){}))}lC.write=xC,lC.parse=wC.parse,lC.parseParams=wC.parseParams,lC.parseFmtpConfig=wC.parseFmtpConfig,lC.parsePayloads=wC.parsePayloads,lC.parseRemoteCandidates=wC.parseRemoteCandidates,lC.parseImageAttributes=wC.parseImageAttributes,lC.parseSimulcastStreamList=wC.parseSimulcastStreamList;var kC=new PP("rts"),TC=function(e){rm(o,e);var t,r,n=am(o);function o(e){var t;return Qy(this,o),tm(im(t=n.call(this)),"_url",""),tm(im(t),"_pc",null),tm(im(t),"_audioTransceicer",null),tm(im(t),"_videoTransceicer",null),tm(im(t),"_mediaStream",null),tm(im(t),"_media",null),tm(im(t),"_opts",null),tm(im(t),"_loader",null),tm(im(t),"_retry",0),tm(im(t),"_waitingTimer",0),tm(im(t),"_rctConnectStartTs",0),tm(im(t),"_onTrack",(function(e){if(kC.log("addTrack: ",e.track,e.streams),t["_".concat(e.track.kind)]=e.track,!t._mediaStream){t._mediaStream=new MediaStream,t._media.srcObject=t._mediaStream;var r=t._media.play();r&&r.catch&&r.catch((function(e){}))}t._mediaStream.addTrack(e.track)})),tm(im(t),"_mockWaitingByTimeupdate",(function(){var e,r;"connected"!==(null===(e=t._pc)||void 0===e?void 0:e.connectionState)&&"connected"!==(null===(r=t._pc)||void 0===r?void 0:r.iceConnectionState)||(clearTimeout(t._waitingTimer),t._waitingTimer=Jk((function(){var e;null!==(e=t._media)&&void 0!==e&&e.paused||t.emit("waiting")}),t._opts.stallInterval))})),tm(im(t),"_onLoadedData",(function(){kC.log("loadeddata emit"),t.getStatsSnapshoot().then((function(e){t.emit(ZP,{type:"video",elapsed:iO()-t._rctConnectStartTs,meta:e.video}),t.emit(ZP,{type:"audio",elapsed:iO()-t._rctConnectStartTs,meta:e.audio})}))})),tm(im(t),"_onLoaderRetry",(function(e,r){t.emit(QP,{error:kP.network(e),retryTime:r})})),t._opts=function(e){return Wy({retryCount:0,retryDelay:1e3,loadTimeout:5e3,stallInterval:400,delayHint:0},e)}(e),t._media=t._opts.media,t._loader=new sC(Wy(Wy({},e.fetchOptions),{},{responseType:"json",method:"POST",retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onLoaderRetry,logger:kC})),t._retry=t._opts.retryCount,t._bindMediaEvent(),t}return em(o,[{key:"pc",get:function(){return this._pc}},{key:"audioTrack",get:function(){return this._audio}},{key:"videoTack",get:function(){return this._video}},{key:"loader",get:function(){return this._loader}},{key:"getStats",value:function(){return SC(this._pc)}},{key:"getStatsSnapshoot",value:function(){return this.getStats().then((function(e){return function(e){var t,r,n,o,i,a,u,s,c,l,f,p,h,d,v,g,y,m,_,b,w,x,S,k,T,O,E,L,R,P=null==e?void 0:Il(e).call(e,(function(e){return"video"===e.type}))[0],C=null==e?void 0:Il(e).call(e,(function(e){return"audio"===e.type}))[0];return{video:P?{codec:null===(t=P.codec)||void 0===t?void 0:t.mimeType,payloadType:null===(r=P.codec)||void 0===r?void 0:r.payloadType,sdpFmtpLine:null===(n=P.codec)||void 0===n?void 0:n.sdpFmtpLine,bytesReceived:null===(o=P.inboundRtp)||void 0===o?void 0:o.bytesReceived,firCount:null===(i=P.inboundRtp)||void 0===i?void 0:i.firCount,pliCount:null===(a=P.inboundRtp)||void 0===a?void 0:a.pliCount,frameHeight:null===(u=P.inboundRtp)||void 0===u?void 0:u.frameHeight,frameWidth:null===(s=P.inboundRtp)||void 0===s?void 0:s.frameWidth,framesDecoded:null===(c=P.inboundRtp)||void 0===c?void 0:c.framesDecoded,framesDropped:null===(l=P.inboundRtp)||void 0===l?void 0:l.framesDropped,framesPerSecond:null===(f=P.inboundRtp)||void 0===f?void 0:f.framesPerSecond,framesReceived:null===(p=P.inboundRtp)||void 0===p?void 0:p.framesReceived,jitter:null===(h=P.inboundRtp)||void 0===h?void 0:h.jitter,jitterBufferDelay:null===(d=P.inboundRtp)||void 0===d?void 0:d.jitterBufferDelay,keyFramesDecoded:null===(v=P.inboundRtp)||void 0===v?void 0:v.keyFramesDecoded,nackCount:null===(g=P.inboundRtp)||void 0===g?void 0:g.nackCount,packetsLost:null===(y=P.inboundRtp)||void 0===y?void 0:y.packetsLost,packetsReceived:null===(m=P.inboundRtp)||void 0===m?void 0:m.packetsReceived}:void 0,audio:C?{codec:null===(_=C.codec)||void 0===_?void 0:_.mimeType,payloadType:null===(b=C.codec)||void 0===b?void 0:b.payloadType,sdpFmtpLine:null===(w=C.codec)||void 0===w?void 0:w.sdpFmtpLine,bytesReceived:null===(x=C.inboundRtp)||void 0===x?void 0:x.bytesReceived,audioLevel:null===(S=C.inboundRtp)||void 0===S?void 0:S.audioLevel,jitter:null===(k=C.inboundRtp)||void 0===k?void 0:k.jitter,jitterBufferDelay:null===(T=C.inboundRtp)||void 0===T?void 0:T.jitterBufferDelay,packetsLost:null===(O=C.inboundRtp)||void 0===O?void 0:O.packetsLost,packetsReceived:null===(E=C.inboundRtp)||void 0===E?void 0:E.packetsReceived,totalSamplesDuration:null===(L=C.inboundRtp)||void 0===L?void 0:L.totalSamplesDuration,totalSamplesReceived:null===(R=C.inboundRtp)||void 0===R?void 0:R.totalSamplesReceived}:void 0}}(e)}))}},{key:"load",value:(r=Jy(Ky().mark((function e(t){var r,n=this;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._disconnect(),this._url=t,this._retry=this._opts.retryCount,(r=this._pc)&&r.close(),e.prev=5,this._pc=new RTCPeerConnection,this._bindRTCEvents(),e.next=10,this._connect(t);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),Jk((function(){return n._emitError(kP.create(wP,null,e.t0))}));case 15:case"end":return e.stop()}}),e,this,[[5,12]])}))),function(e){return r.apply(this,arguments)})},{key:"switchURL",value:function(e){this.load(e||this._url)}},{key:"_bindRTCEvents",value:function(){var e=this,t=this._pc;t.addEventListener("track",this._onTrack),t.addEventListener("connectionstatechange",(function(){if(kC.warn("onconnectionstatechange:",t.connectionState),e.emit(cC,{state:t.connectionState,url:e._url}),"disconnected"!==t.connectionState&&"failed"!==t.connectionState||e.emit("waiting"),"failed"===t.connectionState){if(0===e._retry)return void e._emitError(kP.network(new Error("rtc connect failed")));e._retry--,e.load(e._url)}"connected"===t.connectionState&&e.emit(WP,{url:e._url,responseUrl:e._url,elapsed:iO()-e._rctConnectStartTs})}))}},{key:"_bindMediaEvent",value:function(){this._media.addEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media.addEventListener("loadeddata",this._onLoadedData)}},{key:"_connect",value:(t=Jy(Ky().mark((function e(){var t,r,n,o,i,a,u,s,c,l,f,p,h,d;return Ky().wrap((function(e){for(var v,g,y,m;;)switch(e.prev=e.next){case 0:if(!(t=this._pc).addTransceiver){e.next=11;break}return this._audioTransceicer=t.addTransceiver("audio",{direction:"recvonly"}),this._videoTransceicer=t.addTransceiver("video",{direction:"recvonly"}),(n=this._opts.delayHint)&&(this._audioTransceicer.receiver.playoutDelayHint=n,this._audioTransceicer.receiver.jitterBufferDelayHint=n,this._videoTransceicer.receiver.playoutDelayHint=n,this._videoTransceicer.receiver.jitterBufferDelayHint=n),e.next=8,t.createOffer();case 8:r=e.sent,e.next=14;break;case 11:return e.next=13,t.createOffer({iceRestart:!0,offerToReceiveAudio:!0,offerToReceiveVideo:!0});case 13:r=e.sent;case 14:return kC.log("local offer"),kC.log(r.sdp),o=lC.parse(r.sdp),tf(v=Il(g=o.media).call(g,(function(e){return"audio"===e.type}))).call(v,(function(e){var t,r,n,o=null===(n=Il(t=e.rtp).call(t,(function(e){return"opus"===e.codec}))[0])||void 0===n?void 0:n.payload;o&&tf(r=e.fmtp).call(r,(function(e){e.payload===o&&(e.config="minptime=10;stereo=1;useinbandfec=1")}))})),r.sdp=lC.write(o),kC.log("local offer modified:\n",r.sdp),e.next=22,t.setLocalDescription(r);case 22:return i=this._url,e.prev=23,this._opts.preProcessUrl&&(i=this._opts.preProcessUrl(i).url),this._loader.finnalUrl=i,s=/_?session_id=([^&$]+)/.exec(i),c=s?s[1]:iO()+"666",this.emit(KP,{url:i,offersdp:r.sdp,sessionId:c}),l=iO(),e.next=32,this._loader.load(i,{body:OO({sessionId:c,version:"1.0-html",localSdp:r})});case 32:if(f=e.sent,this.emit(XP,{headers:f.response.headers}),404!==(null==(p=null==f?void 0:f.data)?void 0:p.code)&&403!==(null==p?void 0:p.code)){e.next=40;break}return(h=kP.create(404===p.code?vP:dP,null,p)).errorType=pP,this._emitError(h),e.abrupt("return");case 40:if(200===(null==p?void 0:p.code)){e.next=42;break}throw new Error(pm(y="code: ".concat(null==p?void 0:p.code,", message:")).call(y,null==p?void 0:p.message));case 42:return kC.log("answer:"),kC.log(null===(a=p.remoteSdp)||void 0===a?void 0:a.sdp),this.emit(JP,{url:i,elapsed:iO()-l,answersdp:null===(u=p.remoteSdp)||void 0===u?void 0:u.sdp}),d=lC.parse(p.remoteSdp.sdp),tf(m=d.media).call(m,(function(e){e.fingerprint.hash=e.fingerprint.hash.toUpperCase()})),p.remoteSdp.sdp=lC.write(d),kC.log("answer modified:\n",p.remoteSdp.sdp),this._rctConnectStartTs=iO(),e.next=52,this._pc.setRemoteDescription(p.remoteSdp);case 52:e.next=57;break;case 54:e.prev=54,e.t0=e.catch(23),this._emitError(kP.network(e.t0));case 57:case"end":return e.stop()}}),e,this,[[23,54]])}))),function(){return t.apply(this,arguments)})},{key:"_disconnect",value:function(){var e;null===(e=this._loader)||void 0===e||e.cancel(),this._audioTransceicer=null,this._videoTransceicer=null,this._mediaStream=null}},{key:"_emitError",value:function(e){this.emit(YP,e)}},{key:"destroy",value:function(){var e;this._disconnect(),null===(e=this._media)||void 0===e||e.removeEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media&&(this._media.srcObject=null),this._pc&&this._pc.close(),this._loader=null,this._media=null,this._pc=null}}],[{key:"enableLogger",value:function(){PP.enable()}},{key:"disableLogger",value:function(){PP.disable()}}]),o}(ik);try{localStorage.getItem("xgd")?TC.enableLogger():TC.disableLogger()}catch(RC){}function OC(){return!(!window.RTCPeerConnection||!window.RTCPeerConnection.prototype.addTransceiver)}var EC=function(e){rm(n,e);var t,r=am(n);function n(){var e,t;Qy(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return tm(im(t=r.call.apply(r,pm(e=[this]).call(e,i))),"_rts",null),tm(im(t),"_rtsOpts",null),tm(im(t),"_init",(function(){var e;null===(e=t._rts)||void 0===e||e.destroy();var r=t.player.config,n=r.rts||{};t._rtsOpts=n,t._rts=new TC(Wy({media:t.player.video,preProcessUrl:function(e,r){var n,o;return(null===(n=(o=t.player).preProcessUrl)||void 0===n?void 0:n.call(o,e,r))||{url:e,ext:r}}},n)),t._rts.load(r.url)})),tm(im(t),"_onSwitchURL",(function(e){t._rts&&(t.player.config.url=e,t._rts.switchURL(e))})),t}return em(n,[{key:"pc",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.pc}},{key:"videoTrack",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.videoTack}},{key:"audioTrack",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.audioTrack}},{key:"core",get:function(){return this._rts}},{key:"loader",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.loader}},{key:"version",get:function(){return"0.2.0-alpha.5"}},{key:"beforePlayerInit",value:function(){var e,t=this;this._init(),this.player.switchURL=this._onSwitchURL,null===(e=this.player)||void 0===e||e.useHooks("replay",(function(){var e;return null===(e=t._rts)||void 0===e?void 0:e.switchURL()})),this.on("urlchange",this._onSwitchURL),this.on("destroy",this.destroy),this._transErrorEvent(),this._transCoreEvent(KP),this._transCoreEvent(JP),this._transCoreEvent(WP),this._transCoreEvent(XP),this._transCoreEvent(QP),this._transCoreEvent(ZP),this._transCoreEvent(cC);try{xO.defineGetterOrSetter(this.player,{__url:{get:function(){try{return wx.createObjectURL(new MediaSource)}catch(n){var e,r;null!==(e=t.player)&&void 0!==e&&null!==(r=e.video)&&void 0!==r&&r.srcObject||(t.player.video.srcObject=new MediaStream)}}}})}catch(r){}}},{key:"getStats",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStats()}},{key:"getStatsSnapshoot",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStatsSnapshoot()}},{key:"_transErrorEvent",value:function(){var e=this;this._rts.on(YP,(function(t){if(e.player){var r=new gO(e.player,t),n=e._rtsOpts,o=n.backupConstruct,i=n.backupURL;if(i){var a,u=e.player;u.emit("core_event",Wy(Wy({},{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),{},{eventName:"core.degrade"})),u.emit("degrade",{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),u.unRegisterPlugin("rts"),e._rts=null,u.rts=null,null!==(a=u.video)&&void 0!==a&&a.srcObject&&(u.video.srcObject=null),u.config.url=i,o?u.registerPlugin(o).beforePlayerInit():u.video.src=i}else e.player.emit("error",r)}})),this._rts.on("waiting",(function(){var t;null===(t=e.player)||void 0===t||t.emit("waiting")}))}},{key:"_transCoreEvent",value:function(e){var t=this;this._rts.on(e,(function(r){t.player&&t.player.emit("core_event",Wy(Wy({},r),{},{eventName:e}))}))}},{key:"destroy",value:function(){var e;null===(e=this._rts)||void 0===e||e.destroy()}}],[{key:"pluginName",get:function(){return"rts"}},{key:"isSupported",value:function(){return OC()}},{key:"getCapacity",value:function(){return function(){if(!OC())return Ug.reject("RTCPeerConnection no support");var e;try{(e=new RTCPeerConnection).addTransceiver("video",{direction:"recvonly"}),e.addTransceiver("audio",{direction:"recvonly"})}catch(t){return Ug.reject(null==t?void 0:t.message)}return e.createOffer().then((function(t){var r,n,o,i;kC.log(t.sdp);var a=lC.parse(t.sdp),u=null===(r=a.media)||void 0===r?void 0:Il(r).call(r,(function(e){return"video"===e.type}))[0],s=null===(n=a.media)||void 0===n?void 0:Il(n).call(n,(function(e){return"audio"===e.type}))[0],c=null==u||null===(o=u.rtp)||void 0===o?void 0:Il(o).call(o,(function(e){return"VP8"===e.codec||"VP9"===e.codec||"H264"===e.codec})),l=null==s||null===(i=s.rtp)||void 0===i?void 0:Il(i).call(i,(function(e){return"opus"===e.codec})),f=null==u?void 0:u.fmtp,p=null==s?void 0:s.fmtp;return f&&AS(c).call(c,(function(e){var t;e.config=null===(t=Il(f).call(f,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),p&&AS(l).call(l,(function(e){var t;e.config=null===(t=Il(p).call(p,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),e.close(),{video:c,audio:l}}))}()}},{key:"isSupportedH264",value:(t=Jy(Ky().mark((function e(t){var r,o,i,a,u;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getCapacity();case 3:if(o=e.sent,i=null===(r=o.video)||void 0===r?void 0:Il(r).call(r,(function(e){var r;return"H264"===e.codec&&(!t||-1!==Cx(r=e.config).call(r,t))})).length){e.next=10;break}return e.next=8,n.getCapacity();case 8:u=e.sent,i=null===(a=u.video)||void 0===a?void 0:Il(a).call(a,(function(e){var r;return"H264"===e.codec&&(!t||-1!==Cx(r=e.config).call(r,t))})).length;case 10:return e.abrupt("return",!!i);case 13:return e.prev=13,e.t0=e.catch(0),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))),function(e){return t.apply(this,arguments)})}]),n}(xO),LC=window.VePlayer.DynamicModule;VePlayer.registerPlugin(LC.PluginRtm,{RtmPlugin:EC}),e.RtmPlugin=EC}));
|