@volcengine/veplayer 1.9.1 → 1.9.3-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +713 -56
- package/index.min.css +1 -1
- package/index.min.js +2 -2
- package/package.json +1 -1
- package/plugin/dash.js +2 -2
- package/plugin/preloader.js +2 -0
- package/plugin/vestrategy.js +1 -1
- package/plugin/vestrategy_h265.js +1 -1
- package/plugin/vestrategy_preload.js +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@byted/vestrategy-base")):"function"==typeof define&&define.amd?define(["@byted/vestrategy-base"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).__VESTRATEGY_STRATEGY_PRELOAD__=e(t.__VESTRATEGY_BASE__)}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||e||Function("return this")(),i=function(t){try{return!!t()}catch(e){return!0}},a=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=a,c=Function.prototype,f=c.apply,l=c.call,s="object"==typeof Reflect&&Reflect.apply||(u?l.bind(f):function(){return l.apply(f,arguments)}),d=a,p=Function.prototype,v=p.call,h=d&&p.bind.bind(v,v),y=d?h:function(t){return function(){return v.apply(t,arguments)}},g=y,m=g({}.toString),b=g("".slice),w=function(t){return b(m(t),8,-1)},S=w,P=y,O=function(t){if("Function"===S(t))return P(t)},j="object"==typeof document&&document.all,E={all:j,IS_HTMLDDA:void 0===j&&void 0!==j},x=E.all,k=E.IS_HTMLDDA?function(t){return"function"==typeof t||t===x}:function(t){return"function"==typeof t},T={},_=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),L=a,A=Function.prototype.call,C=L?A.bind(A):function(){return A.apply(A,arguments)},R={},D={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,F=N&&!D.call({1:2},1);R.f=F?function(t){var e=N(this,t);return!!e&&e.enumerable}:D;var M,I,G=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},B=i,V=w,z=Object,U=y("".split),W=B((function(){return!z("z").propertyIsEnumerable(0)}))?function(t){return"String"==V(t)?U(t,""):z(t)}:z,H=function(t){return null==t},Y=H,K=TypeError,J=function(t){if(Y(t))throw K("Can't call method on "+t);return t},q=W,X=J,$=function(t){return q(X(t))},Q=k,Z=E.all,tt=E.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Q(t)||t===Z}:function(t){return"object"==typeof t?null!==t:Q(t)},et={},rt=et,nt=o,ot=k,it=function(t){return ot(t)?t:void 0},at=function(t,e){return arguments.length<2?it(rt[t])||it(nt[t]):rt[t]&&rt[t][e]||nt[t]&&nt[t][e]},ut=y({}.isPrototypeOf),ct="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ft=o,lt=ct,st=ft.process,dt=ft.Deno,pt=st&&st.versions||dt&&dt.version,vt=pt&&pt.v8;vt&&(I=(M=vt.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!I&<&&(!(M=lt.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=lt.match(/Chrome\/(\d+)/))&&(I=+M[1]);var ht=I,yt=ht,gt=i,mt=o.String,bt=!!Object.getOwnPropertySymbols&&!gt((function(){var t=Symbol();return!mt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yt&&yt<41})),wt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=at,Pt=k,Ot=ut,jt=Object,Et=wt?function(t){return"symbol"==typeof t}:function(t){var e=St("Symbol");return Pt(e)&&Ot(e.prototype,jt(t))},xt=String,kt=function(t){try{return xt(t)}catch(e){return"Object"}},Tt=k,_t=kt,Lt=TypeError,At=function(t){if(Tt(t))return t;throw Lt(_t(t)+" is not a function")},Ct=At,Rt=H,Dt=function(t,e){var r=t[e];return Rt(r)?void 0:Ct(r)},Nt=C,Ft=k,Mt=tt,It=TypeError,Gt={exports:{}},Bt=o,Vt=Object.defineProperty,zt=function(t,e){try{Vt(Bt,t,{value:e,configurable:!0,writable:!0})}catch(r){Bt[t]=e}return e},Ut="__core-js_shared__",Wt=o[Ut]||zt(Ut,{}),Ht=Wt;(Gt.exports=function(t,e){return Ht[t]||(Ht[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.31.1",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Yt=Gt.exports,Kt=J,Jt=Object,qt=function(t){return Jt(Kt(t))},Xt=qt,$t=y({}.hasOwnProperty),Qt=Object.hasOwn||function(t,e){return $t(Xt(t),e)},Zt=y,te=0,ee=Math.random(),re=Zt(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+re(++te+ee,36)},oe=Yt,ie=Qt,ae=ne,ue=bt,ce=wt,fe=o.Symbol,le=oe("wks"),se=ce?fe.for||fe:fe&&fe.withoutSetter||ae,de=function(t){return ie(le,t)||(le[t]=ue&&ie(fe,t)?fe[t]:se("Symbol."+t)),le[t]},pe=C,ve=tt,he=Et,ye=Dt,ge=function(t,e){var r,n;if("string"===e&&Ft(r=t.toString)&&!Mt(n=Nt(r,t)))return n;if(Ft(r=t.valueOf)&&!Mt(n=Nt(r,t)))return n;if("string"!==e&&Ft(r=t.toString)&&!Mt(n=Nt(r,t)))return n;throw It("Can't convert object to primitive value")},me=TypeError,be=de("toPrimitive"),we=function(t,e){if(!ve(t)||he(t))return t;var r,n=ye(t,be);if(n){if(void 0===e&&(e="default"),r=pe(n,t,e),!ve(r)||he(r))return r;throw me("Can't convert object to primitive value")}return void 0===e&&(e="number"),ge(t,e)},Se=Et,Pe=function(t){var e=we(t,"string");return Se(e)?e:e+""},Oe=tt,je=o.document,Ee=Oe(je)&&Oe(je.createElement),xe=function(t){return Ee?je.createElement(t):{}},ke=xe,Te=!_&&!i((function(){return 7!=Object.defineProperty(ke("div"),"a",{get:function(){return 7}}).a})),_e=_,Le=C,Ae=R,Ce=G,Re=$,De=Pe,Ne=Qt,Fe=Te,Me=Object.getOwnPropertyDescriptor;T.f=_e?Me:function(t,e){if(t=Re(t),e=De(e),Fe)try{return Me(t,e)}catch(r){}if(Ne(t,e))return Ce(!Le(Ae.f,t,e),t[e])};var Ie=i,Ge=k,Be=/#|\.prototype\./,Ve=function(t,e){var r=Ue[ze(t)];return r==He||r!=We&&(Ge(e)?Ie(e):!!e)},ze=Ve.normalize=function(t){return String(t).replace(Be,".").toLowerCase()},Ue=Ve.data={},We=Ve.NATIVE="N",He=Ve.POLYFILL="P",Ye=Ve,Ke=At,Je=a,qe=O(O.bind),Xe=function(t,e){return Ke(t),void 0===e?t:Je?qe(t,e):function(){return t.apply(e,arguments)}},$e={},Qe=_&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ze=tt,tr=String,er=TypeError,rr=function(t){if(Ze(t))return t;throw er(tr(t)+" is not an object")},nr=_,or=Te,ir=Qe,ar=rr,ur=Pe,cr=TypeError,fr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,sr="enumerable",dr="configurable",pr="writable";$e.f=nr?ir?function(t,e,r){if(ar(t),e=ur(e),ar(r),"function"==typeof t&&"prototype"===e&&"value"in r&&pr in r&&!r[pr]){var n=lr(t,e);n&&n[pr]&&(t[e]=r.value,r={configurable:dr in r?r[dr]:n[dr],enumerable:sr in r?r[sr]:n[sr],writable:!1})}return fr(t,e,r)}:fr:function(t,e,r){if(ar(t),e=ur(e),ar(r),or)try{return fr(t,e,r)}catch(n){}if("get"in r||"set"in r)throw cr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var vr=$e,hr=G,yr=_?function(t,e,r){return vr.f(t,e,hr(1,r))}:function(t,e,r){return t[e]=r,t},gr=o,mr=s,br=O,wr=k,Sr=T.f,Pr=Ye,Or=et,jr=Xe,Er=yr,xr=Qt,kr=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return mr(t,this,arguments)};return e.prototype=t.prototype,e},Tr=function(t,e){var r,n,o,i,a,u,c,f,l,s=t.target,d=t.global,p=t.stat,v=t.proto,h=d?gr:p?gr[s]:(gr[s]||{}).prototype,y=d?Or:Or[s]||Er(Or,s,{})[s],g=y.prototype;for(i in e)n=!(r=Pr(d?i:s+(p?".":"#")+i,t.forced))&&h&&xr(h,i),u=y[i],n&&(c=t.dontCallGetSet?(l=Sr(h,i))&&l.value:h[i]),a=n&&c?c:e[i],n&&typeof u==typeof a||(f=t.bind&&n?jr(a,gr):t.wrap&&n?kr(a):v&&wr(a)?br(a):a,(t.sham||a&&a.sham||u&&u.sham)&&Er(f,"sham",!0),Er(y,i,f),v&&(xr(Or,o=s+"Prototype")||Er(Or,o,{}),Er(Or[o],i,a),t.real&&g&&(r||!g[i])&&Er(g,i,a)))},_r=Math.ceil,Lr=Math.floor,Ar=Math.trunc||function(t){var e=+t;return(e>0?Lr:_r)(e)},Cr=function(t){var e=+t;return e!=e||0===e?0:Ar(e)},Rr=Cr,Dr=Math.max,Nr=Math.min,Fr=function(t,e){var r=Rr(t);return r<0?Dr(r+e,0):Nr(r,e)},Mr=Cr,Ir=Math.min,Gr=function(t){return t>0?Ir(Mr(t),9007199254740991):0},Br=function(t){return Gr(t.length)},Vr=$,zr=Fr,Ur=Br,Wr=function(t){return function(e,r,n){var o,i=Vr(e),a=Ur(i),u=zr(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Hr={includes:Wr(!0),indexOf:Wr(!1)},Yr={},Kr=Qt,Jr=$,qr=Hr.indexOf,Xr=Yr,$r=y([].push),Qr=function(t,e){var r,n=Jr(t),o=0,i=[];for(r in n)!Kr(Xr,r)&&Kr(n,r)&&$r(i,r);for(;e.length>o;)Kr(n,r=e[o++])&&(~qr(i,r)||$r(i,r));return i},Zr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tn=Qr,en=Zr,rn=Object.keys||function(t){return tn(t,en)},nn=qt,on=rn;Tr({target:"Object",stat:!0,forced:i((function(){on(1)}))},{keys:function(t){return on(nn(t))}});var an=r(et.Object.keys),un={};un[de("toStringTag")]="z";var cn="[object z]"===String(un),fn=cn,ln=k,sn=w,dn=de("toStringTag"),pn=Object,vn="Arguments"==sn(function(){return arguments}()),hn=fn?sn:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=pn(t),dn))?r:vn?sn(e):"Object"==(n=sn(e))&&ln(e.callee)?"Arguments":n},yn=hn,gn=String,mn=function(t){if("Symbol"===yn(t))throw TypeError("Cannot convert a Symbol value to a string");return gn(t)},bn={},wn=_,Sn=Qe,Pn=$e,On=rr,jn=$,En=rn;bn.f=wn&&!Sn?Object.defineProperties:function(t,e){On(t);for(var r,n=jn(e),o=En(e),i=o.length,a=0;i>a;)Pn.f(t,r=o[a++],n[r]);return t};var xn,kn=at("document","documentElement"),Tn=ne,_n=Yt("keys"),Ln=function(t){return _n[t]||(_n[t]=Tn(t))},An=rr,Cn=bn,Rn=Zr,Dn=Yr,Nn=kn,Fn=xe,Mn="prototype",In="script",Gn=Ln("IE_PROTO"),Bn=function(){},Vn=function(t){return"<"+In+">"+t+"</"+In+">"},zn=function(t){t.write(Vn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Un=function(){try{xn=new ActiveXObject("htmlfile")}catch(o){}var t,e,r;Un="undefined"!=typeof document?document.domain&&xn?zn(xn):(e=Fn("iframe"),r="java"+In+":",e.style.display="none",Nn.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Vn("document.F=Object")),t.close(),t.F):zn(xn);for(var n=Rn.length;n--;)delete Un[Mn][Rn[n]];return Un()};Dn[Gn]=!0;var Wn=Object.create||function(t,e){var r;return null!==t?(Bn[Mn]=An(t),r=new Bn,Bn[Mn]=null,r[Gn]=t):r=Un(),void 0===e?r:Cn.f(r,e)},Hn={},Yn=Qr,Kn=Zr.concat("length","prototype");Hn.f=Object.getOwnPropertyNames||function(t){return Yn(t,Kn)};var Jn={},qn=Pe,Xn=$e,$n=G,Qn=function(t,e,r){var n=qn(e);n in t?Xn.f(t,n,$n(0,r)):t[n]=r},Zn=Fr,to=Br,eo=Qn,ro=Array,no=Math.max,oo=w,io=$,ao=Hn.f,uo=function(t,e,r){for(var n=to(t),o=Zn(e,n),i=Zn(void 0===r?n:r,n),a=ro(no(i-o,0)),u=0;o<i;o++,u++)eo(a,u,t[o]);return a.length=u,a},co="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Jn.f=function(t){return co&&"Window"==oo(t)?function(t){try{return ao(t)}catch(e){return uo(co)}}(t):ao(io(t))};var fo={};fo.f=Object.getOwnPropertySymbols;var lo=yr,so=function(t,e,r,n){return n&&n.enumerable?t[e]=r:lo(t,e,r),t},po=$e,vo=function(t,e,r){return po.f(t,e,r)},ho={},yo=de;ho.f=yo;var go,mo,bo,wo=et,So=Qt,Po=ho,Oo=$e.f,jo=function(t){var e=wo.Symbol||(wo.Symbol={});So(e,t)||Oo(e,t,{value:Po.f(t)})},Eo=C,xo=at,ko=de,To=so,_o=function(){var t=xo("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=ko("toPrimitive");e&&!e[n]&&To(e,n,(function(t){return Eo(r,this)}),{arity:1})},Lo=hn,Ao=cn?{}.toString:function(){return"[object "+Lo(this)+"]"},Co=cn,Ro=$e.f,Do=yr,No=Qt,Fo=Ao,Mo=de("toStringTag"),Io=function(t,e,r,n){if(t){var o=r?t:t.prototype;No(o,Mo)||Ro(o,Mo,{configurable:!0,value:e}),n&&!Co&&Do(o,"toString",Fo)}},Go=k,Bo=o.WeakMap,Vo=Go(Bo)&&/native code/.test(String(Bo)),zo=o,Uo=tt,Wo=yr,Ho=Qt,Yo=Wt,Ko=Ln,Jo=Yr,qo="Object already initialized",Xo=zo.TypeError,$o=zo.WeakMap;if(Vo||Yo.state){var Qo=Yo.state||(Yo.state=new $o);Qo.get=Qo.get,Qo.has=Qo.has,Qo.set=Qo.set,go=function(t,e){if(Qo.has(t))throw Xo(qo);return e.facade=t,Qo.set(t,e),e},mo=function(t){return Qo.get(t)||{}},bo=function(t){return Qo.has(t)}}else{var Zo=Ko("state");Jo[Zo]=!0,go=function(t,e){if(Ho(t,Zo))throw Xo(qo);return e.facade=t,Wo(t,Zo,e),e},mo=function(t){return Ho(t,Zo)?t[Zo]:{}},bo=function(t){return Ho(t,Zo)}}var ti={set:go,get:mo,has:bo,enforce:function(t){return bo(t)?mo(t):go(t,{})},getterFor:function(t){return function(e){var r;if(!Uo(e)||(r=mo(e)).type!==t)throw Xo("Incompatible receiver, "+t+" required");return r}}},ei=w,ri=Array.isArray||function(t){return"Array"==ei(t)},ni=k,oi=Wt,ii=y(Function.toString);ni(oi.inspectSource)||(oi.inspectSource=function(t){return ii(t)});var ai=oi.inspectSource,ui=y,ci=i,fi=k,li=hn,si=ai,di=function(){},pi=[],vi=at("Reflect","construct"),hi=/^\s*(?:class|function)\b/,yi=ui(hi.exec),gi=!hi.exec(di),mi=function(t){if(!fi(t))return!1;try{return vi(di,pi,t),!0}catch(e){return!1}},bi=function(t){if(!fi(t))return!1;switch(li(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gi||!!yi(hi,si(t))}catch(e){return!0}};bi.sham=!0;var wi=!vi||ci((function(){var t;return mi(mi.call)||!mi(Object)||!mi((function(){t=!0}))||t}))?bi:mi,Si=ri,Pi=wi,Oi=tt,ji=de("species"),Ei=Array,xi=function(t){var e;return Si(t)&&(e=t.constructor,(Pi(e)&&(e===Ei||Si(e.prototype))||Oi(e)&&null===(e=e[ji]))&&(e=void 0)),void 0===e?Ei:e},ki=function(t,e){return new(xi(t))(0===e?0:e)},Ti=Xe,_i=W,Li=qt,Ai=Br,Ci=ki,Ri=y([].push),Di=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,f,l,s){for(var d,p,v=Li(c),h=_i(v),y=Ti(f,l),g=Ai(h),m=0,b=s||Ci,w=e?b(c,g):r||a?b(c,0):void 0;g>m;m++)if((u||m in h)&&(p=y(d=h[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:Ri(w,d)}else switch(t){case 4:return!1;case 7:Ri(w,d)}return i?-1:n||o?o:w}},Ni={forEach:Di(0),map:Di(1),filter:Di(2),some:Di(3),every:Di(4),find:Di(5),findIndex:Di(6),filterReject:Di(7)},Fi=Tr,Mi=o,Ii=C,Gi=y,Bi=_,Vi=bt,zi=i,Ui=Qt,Wi=ut,Hi=rr,Yi=$,Ki=Pe,Ji=mn,qi=G,Xi=Wn,$i=rn,Qi=Hn,Zi=Jn,ta=fo,ea=T,ra=$e,na=bn,oa=R,ia=so,aa=vo,ua=Yt,ca=Yr,fa=ne,la=de,sa=ho,da=jo,pa=_o,va=Io,ha=ti,ya=Ni.forEach,ga=Ln("hidden"),ma="Symbol",ba="prototype",wa=ha.set,Sa=ha.getterFor(ma),Pa=Object[ba],Oa=Mi.Symbol,ja=Oa&&Oa[ba],Ea=Mi.TypeError,xa=Mi.QObject,ka=ea.f,Ta=ra.f,_a=Zi.f,La=oa.f,Aa=Gi([].push),Ca=ua("symbols"),Ra=ua("op-symbols"),Da=ua("wks"),Na=!xa||!xa[ba]||!xa[ba].findChild,Fa=Bi&&zi((function(){return 7!=Xi(Ta({},"a",{get:function(){return Ta(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=ka(Pa,e);n&&delete Pa[e],Ta(t,e,r),n&&t!==Pa&&Ta(Pa,e,n)}:Ta,Ma=function(t,e){var r=Ca[t]=Xi(ja);return wa(r,{type:ma,tag:t,description:e}),Bi||(r.description=e),r},Ia=function(t,e,r){t===Pa&&Ia(Ra,e,r),Hi(t);var n=Ki(e);return Hi(r),Ui(Ca,n)?(r.enumerable?(Ui(t,ga)&&t[ga][n]&&(t[ga][n]=!1),r=Xi(r,{enumerable:qi(0,!1)})):(Ui(t,ga)||Ta(t,ga,qi(1,{})),t[ga][n]=!0),Fa(t,n,r)):Ta(t,n,r)},Ga=function(t,e){Hi(t);var r=Yi(e),n=$i(r).concat(Ua(r));return ya(n,(function(e){Bi&&!Ii(Ba,r,e)||Ia(t,e,r[e])})),t},Ba=function(t){var e=Ki(t),r=Ii(La,this,e);return!(this===Pa&&Ui(Ca,e)&&!Ui(Ra,e))&&(!(r||!Ui(this,e)||!Ui(Ca,e)||Ui(this,ga)&&this[ga][e])||r)},Va=function(t,e){var r=Yi(t),n=Ki(e);if(r!==Pa||!Ui(Ca,n)||Ui(Ra,n)){var o=ka(r,n);return!o||!Ui(Ca,n)||Ui(r,ga)&&r[ga][n]||(o.enumerable=!0),o}},za=function(t){var e=_a(Yi(t)),r=[];return ya(e,(function(t){Ui(Ca,t)||Ui(ca,t)||Aa(r,t)})),r},Ua=function(t){var e=t===Pa,r=_a(e?Ra:Yi(t)),n=[];return ya(r,(function(t){!Ui(Ca,t)||e&&!Ui(Pa,t)||Aa(n,Ca[t])})),n};Vi||(Oa=function(){if(Wi(ja,this))throw Ea("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ji(arguments[0]):void 0,e=fa(t),r=function(t){this===Pa&&Ii(r,Ra,t),Ui(this,ga)&&Ui(this[ga],e)&&(this[ga][e]=!1),Fa(this,e,qi(1,t))};return Bi&&Na&&Fa(Pa,e,{configurable:!0,set:r}),Ma(e,t)},ia(ja=Oa[ba],"toString",(function(){return Sa(this).tag})),ia(Oa,"withoutSetter",(function(t){return Ma(fa(t),t)})),oa.f=Ba,ra.f=Ia,na.f=Ga,ea.f=Va,Qi.f=Zi.f=za,ta.f=Ua,sa.f=function(t){return Ma(la(t),t)},Bi&&aa(ja,"description",{configurable:!0,get:function(){return Sa(this).description}})),Fi({global:!0,constructor:!0,wrap:!0,forced:!Vi,sham:!Vi},{Symbol:Oa}),ya($i(Da),(function(t){da(t)})),Fi({target:ma,stat:!0,forced:!Vi},{useSetter:function(){Na=!0},useSimple:function(){Na=!1}}),Fi({target:"Object",stat:!0,forced:!Vi,sham:!Bi},{create:function(t,e){return void 0===e?Xi(t):Ga(Xi(t),e)},defineProperty:Ia,defineProperties:Ga,getOwnPropertyDescriptor:Va}),Fi({target:"Object",stat:!0,forced:!Vi},{getOwnPropertyNames:za}),pa(),va(Oa,ma),ca[ga]=!0;var Wa=bt&&!!Symbol.for&&!!Symbol.keyFor,Ha=Tr,Ya=at,Ka=Qt,Ja=mn,qa=Yt,Xa=Wa,$a=qa("string-to-symbol-registry"),Qa=qa("symbol-to-string-registry");Ha({target:"Symbol",stat:!0,forced:!Xa},{for:function(t){var e=Ja(t);if(Ka($a,e))return $a[e];var r=Ya("Symbol")(e);return $a[e]=r,Qa[r]=e,r}});var Za=Tr,tu=Qt,eu=Et,ru=kt,nu=Wa,ou=Yt("symbol-to-string-registry");Za({target:"Symbol",stat:!0,forced:!nu},{keyFor:function(t){if(!eu(t))throw TypeError(ru(t)+" is not a symbol");if(tu(ou,t))return ou[t]}});var iu=y([].slice),au=ri,uu=k,cu=w,fu=mn,lu=y([].push),su=Tr,du=at,pu=s,vu=C,hu=y,yu=i,gu=k,mu=Et,bu=iu,wu=function(t){if(uu(t))return t;if(au(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?lu(r,o):"number"!=typeof o&&"Number"!=cu(o)&&"String"!=cu(o)||lu(r,fu(o))}var i=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(au(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}},Su=bt,Pu=String,Ou=du("JSON","stringify"),ju=hu(/./.exec),Eu=hu("".charAt),xu=hu("".charCodeAt),ku=hu("".replace),Tu=hu(1..toString),_u=/[\uD800-\uDFFF]/g,Lu=/^[\uD800-\uDBFF]$/,Au=/^[\uDC00-\uDFFF]$/,Cu=!Su||yu((function(){var t=du("Symbol")();return"[null]"!=Ou([t])||"{}"!=Ou({a:t})||"{}"!=Ou(Object(t))})),Ru=yu((function(){return'"\\udf06\\ud834"'!==Ou("\udf06\ud834")||'"\\udead"'!==Ou("\udead")})),Du=function(t,e){var r=bu(arguments),n=wu(e);if(gu(n)||void 0!==t&&!mu(t))return r[1]=function(t,e){if(gu(n)&&(e=vu(n,this,Pu(t),e)),!mu(e))return e},pu(Ou,null,r)},Nu=function(t,e,r){var n=Eu(r,e-1),o=Eu(r,e+1);return ju(Lu,t)&&!ju(Au,o)||ju(Au,t)&&!ju(Lu,n)?"\\u"+Tu(xu(t,0),16):t};Ou&&su({target:"JSON",stat:!0,arity:3,forced:Cu||Ru},{stringify:function(t,e,r){var n=bu(arguments),o=pu(Cu?Du:Ou,null,n);return Ru&&"string"==typeof o?ku(o,_u,Nu):o}});var Fu=fo,Mu=qt;Tr({target:"Object",stat:!0,forced:!bt||i((function(){Fu.f(1)}))},{getOwnPropertySymbols:function(t){var e=Fu.f;return e?e(Mu(t)):[]}});var Iu=r(et.Object.getOwnPropertySymbols),Gu=i,Bu=ht,Vu=de("species"),zu=function(t){return Bu>=51||!Gu((function(){var e=[];return(e.constructor={})[Vu]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Uu=Ni.filter;Tr({target:"Array",proto:!0,forced:!zu("filter")},{filter:function(t){return Uu(this,t,arguments.length>1?arguments[1]:void 0)}});var Wu=et,Hu=function(t){return Wu[t+"Prototype"]},Yu=Hu("Array").filter,Ku=ut,Ju=Yu,qu=Array.prototype,Xu=function(t){var e=t.filter;return t===qu||Ku(qu,t)&&e===qu.filter?Ju:e},$u=r(Xu),Qu={exports:{}},Zu=Tr,tc=i,ec=$,rc=T.f,nc=_;Zu({target:"Object",stat:!0,forced:!nc||tc((function(){rc(1)})),sham:!nc},{getOwnPropertyDescriptor:function(t,e){return rc(ec(t),e)}});var oc=et.Object,ic=Qu.exports=function(t,e){return oc.getOwnPropertyDescriptor(t,e)};oc.getOwnPropertyDescriptor.sham&&(ic.sham=!0);var ac=r(Qu.exports),uc=_,cc=ri,fc=TypeError,lc=Object.getOwnPropertyDescriptor,sc=uc&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),dc=TypeError,pc=function(t){if(t>9007199254740991)throw dc("Maximum allowed index exceeded");return t},vc=qt,hc=Br,yc=sc?function(t,e){if(cc(t)&&!lc(t,"length").writable)throw fc("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},gc=pc;Tr({target:"Array",proto:!0,arity:1,forced:i((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=vc(this),r=hc(e),n=arguments.length;gc(r+n);for(var o=0;o<n;o++)e[r]=arguments[o],r++;return yc(e,r),r}});var mc,bc,wc,Sc=Hu("Array").push,Pc=ut,Oc=Sc,jc=Array.prototype,Ec=r((function(t){var e=t.push;return t===jc||Pc(jc,t)&&e===jc.push?Oc:e})),xc={},kc=_,Tc=Qt,_c=Function.prototype,Lc=kc&&Object.getOwnPropertyDescriptor,Ac=Tc(_c,"name"),Cc={EXISTS:Ac,PROPER:Ac&&"something"===function(){}.name,CONFIGURABLE:Ac&&(!kc||kc&&Lc(_c,"name").configurable)},Rc=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Dc=Qt,Nc=k,Fc=qt,Mc=Rc,Ic=Ln("IE_PROTO"),Gc=Object,Bc=Gc.prototype,Vc=Mc?Gc.getPrototypeOf:function(t){var e=Fc(t);if(Dc(e,Ic))return e[Ic];var r=e.constructor;return Nc(r)&&e instanceof r?r.prototype:e instanceof Gc?Bc:null},zc=i,Uc=k,Wc=tt,Hc=Wn,Yc=Vc,Kc=so,Jc=de("iterator"),qc=!1;[].keys&&("next"in(wc=[].keys())?(bc=Yc(Yc(wc)))!==Object.prototype&&(mc=bc):qc=!0);var Xc=!Wc(mc)||zc((function(){var t={};return mc[Jc].call(t)!==t}));Uc((mc=Xc?{}:Hc(mc))[Jc])||Kc(mc,Jc,(function(){return this}));var $c={IteratorPrototype:mc,BUGGY_SAFARI_ITERATORS:qc},Qc=$c.IteratorPrototype,Zc=Wn,tf=G,ef=Io,rf=xc,nf=function(){return this},of=y,af=At,uf=k,cf=String,ff=TypeError,lf=function(t,e,r){try{return of(af(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(n){}},sf=rr,df=function(t){if("object"==typeof t||uf(t))return t;throw ff("Can't set "+cf(t)+" as a prototype")},pf=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=lf(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(n){}return function(r,n){return sf(r),df(n),e?t(r,n):r.__proto__=n,r}}():void 0),vf=Tr,hf=C,yf=Cc,gf=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Zc(Qc,{next:tf(+!n,r)}),ef(t,o,!1,!0),rf[o]=nf,t},mf=Vc,bf=Io,wf=so,Sf=xc,Pf=$c,Of=yf.PROPER,jf=Pf.BUGGY_SAFARI_ITERATORS,Ef=de("iterator"),xf="keys",kf="values",Tf="entries",_f=function(){return this},Lf=function(t,e,r,n,o,i,a){gf(r,e,n);var u,c,f,l=function(t){if(t===o&&h)return h;if(!jf&&t in p)return p[t];switch(t){case xf:case kf:case Tf:return function(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",d=!1,p=t.prototype,v=p[Ef]||p["@@iterator"]||o&&p[o],h=!jf&&v||l(o),y="Array"==e&&p.entries||v;if(y&&(u=mf(y.call(new t)))!==Object.prototype&&u.next&&(bf(u,s,!0,!0),Sf[s]=_f),Of&&o==kf&&v&&v.name!==kf&&(d=!0,h=function(){return hf(v,this)}),o)if(c={values:l(kf),keys:i?h:l(xf),entries:l(Tf)},a)for(f in c)(jf||d||!(f in p))&&wf(p,f,c[f]);else vf({target:e,proto:!0,forced:jf||d},c);return a&&p[Ef]!==h&&wf(p,Ef,h,{name:o}),Sf[e]=h,c},Af=function(t,e){return{value:t,done:e}},Cf=$,Rf=xc,Df=ti;$e.f;var Nf=Lf,Ff=Af,Mf="Array Iterator",If=Df.set,Gf=Df.getterFor(Mf);Nf(Array,"Array",(function(t,e){If(this,{type:Mf,target:Cf(t),index:0,kind:e})}),(function(){var t=Gf(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,Ff(void 0,!0)):Ff("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),Rf.Arguments=Rf.Array;var Bf={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},Vf=o,zf=hn,Uf=yr,Wf=xc,Hf=de("toStringTag");for(var Yf in Bf){var Kf=Vf[Yf],Jf=Kf&&Kf.prototype;Jf&&zf(Jf)!==Hf&&Uf(Jf,Hf,Yf),Wf[Yf]=Wf.Array}var qf=i,Xf=Ni.forEach,$f=function(t,e){var r=[][t];return!!r&&qf((function(){r.call(null,e||function(){return 1},1)}))}("forEach")?[].forEach:function(t){return Xf(this,t,arguments.length>1?arguments[1]:void 0)};Tr({target:"Array",proto:!0,forced:[].forEach!=$f},{forEach:$f});var Qf=Hu("Array").forEach,Zf=hn,tl=Qt,el=ut,rl=Qf,nl=Array.prototype,ol={DOMTokenList:!0,NodeList:!0},il=function(t){var e=t.forEach;return t===nl||el(nl,t)&&e===nl.forEach||tl(ol,Zf(t))?rl:e},al=r(il),ul=at,cl=Hn,fl=fo,ll=rr,sl=y([].concat),dl=ul("Reflect","ownKeys")||function(t){var e=cl.f(ll(t)),r=fl.f;return r?sl(e,r(t)):e},pl=dl,vl=$,hl=T,yl=Qn;Tr({target:"Object",stat:!0,sham:!_},{getOwnPropertyDescriptors:function(t){for(var e,r,n=vl(t),o=hl.f,i=pl(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&yl(a,e,r);return a}});var gl=r(et.Object.getOwnPropertyDescriptors),ml={exports:{}},bl=Tr,wl=_,Sl=bn.f;bl({target:"Object",stat:!0,forced:Object.defineProperties!==Sl,sham:!wl},{defineProperties:Sl});var Pl=et.Object,Ol=ml.exports=function(t,e){return Pl.defineProperties(t,e)};Pl.defineProperties.sham&&(Ol.sham=!0);var jl=r(ml.exports),El={exports:{}},xl=Tr,kl=_,Tl=$e.f;xl({target:"Object",stat:!0,forced:Object.defineProperty!==Tl,sham:!kl},{defineProperty:Tl});var _l=et.Object,Ll=El.exports=function(t,e,r){return _l.defineProperty(t,e,r)};_l.defineProperty.sham&&(Ll.sham=!0);var Al=r(El.exports),Cl=Tr,Rl=i,Dl=ri,Nl=tt,Fl=qt,Ml=Br,Il=pc,Gl=Qn,Bl=ki,Vl=zu,zl=ht,Ul=de("isConcatSpreadable"),Wl=zl>=51||!Rl((function(){var t=[];return t[Ul]=!1,t.concat()[0]!==t})),Hl=function(t){if(!Nl(t))return!1;var e=t[Ul];return void 0!==e?!!e:Dl(t)};Cl({target:"Array",proto:!0,arity:1,forced:!Wl||!Vl("concat")},{concat:function(t){var e,r,n,o,i,a=Fl(this),u=Bl(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(Hl(i=-1===e?a:arguments[e]))for(o=Ml(i),Il(c+o),r=0;r<o;r++,c++)r in i&&Gl(u,c,i[r]);else Il(c+1),Gl(u,c++,i);return u.length=c,u}}),jo("asyncIterator"),jo("hasInstance"),jo("isConcatSpreadable"),jo("iterator"),jo("match"),jo("matchAll"),jo("replace"),jo("search"),jo("species"),jo("split");var Yl=_o;jo("toPrimitive"),Yl();var Kl=at,Jl=Io;jo("toStringTag"),Jl(Kl("Symbol"),"Symbol"),jo("unscopables"),Io(o.JSON,"JSON",!0);var ql=et.Symbol,Xl=de,$l=$e.f,Ql=Xl("metadata"),Zl=Function.prototype;void 0===Zl[Ql]&&$l(Zl,Ql,{value:null}),jo("dispose"),jo("metadata");var ts=ql;jo("asyncDispose");var es=y,rs=at("Symbol"),ns=rs.keyFor,os=es(rs.prototype.valueOf),is=rs.isRegisteredSymbol||function(t){try{return void 0!==ns(os(t))}catch(e){return!1}};Tr({target:"Symbol",stat:!0},{isRegisteredSymbol:is});for(var as=Yt,us=at,cs=y,fs=Et,ls=de,ss=us("Symbol"),ds=ss.isWellKnownSymbol,ps=us("Object","getOwnPropertyNames"),vs=cs(ss.prototype.valueOf),hs=as("wks"),ys=0,gs=ps(ss),ms=gs.length;ys<ms;ys++)try{var bs=gs[ys];fs(ss[bs])&&ls(bs)}catch(Hb){}var ws=function(t){if(ds&&ds(t))return!0;try{for(var e=vs(t),r=0,n=ps(hs),o=n.length;r<o;r++)if(hs[n[r]]==e)return!0}catch(Hb){}return!1};Tr({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:ws}),jo("matcher"),jo("observable"),Tr({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:is}),Tr({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:ws}),jo("metadataKey"),jo("patternMatch"),jo("replaceAll");var Ss=r(ts),Ps=y,Os=Cr,js=mn,Es=J,xs=Ps("".charAt),ks=Ps("".charCodeAt),Ts=Ps("".slice),_s=function(t){return function(e,r){var n,o,i=js(Es(e)),a=Os(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=ks(i,a))<55296||n>56319||a+1===u||(o=ks(i,a+1))<56320||o>57343?t?xs(i,a):n:t?Ts(i,a,a+2):o-56320+(n-55296<<10)+65536}},Ls={codeAt:_s(!1),charAt:_s(!0)}.charAt,As=mn,Cs=ti,Rs=Lf,Ds=Af,Ns="String Iterator",Fs=Cs.set,Ms=Cs.getterFor(Ns);Rs(String,"String",(function(t){Fs(this,{type:Ns,string:As(t),index:0})}),(function(){var t,e=Ms(this),r=e.string,n=e.index;return n>=r.length?Ds(void 0,!0):(t=Ls(r,n),e.index+=t.length,Ds(t,!1))}));var Is=r(ho.f("iterator"));function Gs(t){return(Gs="function"==typeof Ss&&"symbol"==typeof Is?function(t){return typeof t}:function(t){return t&&"function"==typeof Ss&&t.constructor===Ss&&t!==Ss.prototype?"symbol":typeof t})(t)}var Bs=r(ho.f("toPrimitive"));function Vs(t){var e=function(t,e){if("object"!==Gs(t)||null===t)return t;var r=t[Bs];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Gs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Gs(e)?e:String(e)}function zs(t,e,r){return(e=Vs(e))in t?Al(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Us(t,e){var r=an(t);if(Iu){var n=Iu(t);e&&(n=$u(n).call(n,(function(e){return ac(t,e).enumerable}))),Ec(r).apply(r,n)}return r}function Ws(t){for(var e=1;e<arguments.length;e++){var r,n,o=null!=arguments[e]?arguments[e]:{};e%2?al(r=Us(Object(o),!0)).call(r,(function(e){zs(t,e,o[e])})):gl?jl(t,gl(o)):al(n=Us(Object(o))).call(n,(function(e){Al(t,e,ac(o,e))}))}return t}function Hs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ys(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Al(t,Vs(n.key),n)}}function Ks(t,e,r){return e&&Ys(t.prototype,e),r&&Ys(t,r),Al(t,"prototype",{writable:!1}),t}Tr({target:"Object",stat:!0,sham:!_},{create:Wn});var Js=et.Object,qs=r((function(t,e){return Js.create(t,e)}));Tr({target:"Object",stat:!0},{setPrototypeOf:pf});var Xs=r(et.Object.setPrototypeOf),$s=y,Qs=At,Zs=tt,td=Qt,ed=iu,rd=a,nd=Function,od=$s([].concat),id=$s([].join),ad={},ud=rd?nd.bind:function(t){var e=Qs(this),r=e.prototype,n=ed(arguments,1),o=function(){var r=od(n,ed(arguments));return this instanceof o?function(t,e,r){if(!td(ad,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";ad[e]=nd("C,a","return new C("+id(n,",")+")")}return ad[e](t,r)}(e,r.length,r):e.apply(t,r)};return Zs(r)&&(o.prototype=r),o},cd=ud;Tr({target:"Function",proto:!0,forced:Function.bind!==cd},{bind:cd});var fd=Hu("Function").bind,ld=ut,sd=fd,dd=Function.prototype,pd=r((function(t){var e=t.bind;return t===dd||ld(dd,t)&&e===dd.bind?sd:e}));function vd(t,e){var r;return(vd=Xs?pd(r=Xs).call(r):function(t,e){return t.__proto__=e,t})(t,e)}function hd(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=qs(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Al(t,"prototype",{writable:!1}),e&&vd(t,e)}var yd=wi,gd=kt,md=TypeError,bd=function(t){if(yd(t))return t;throw md(gd(t)+" is not a constructor")},wd=Tr,Sd=s,Pd=ud,Od=bd,jd=rr,Ed=tt,xd=Wn,kd=i,Td=at("Reflect","construct"),_d=Object.prototype,Ld=[].push,Ad=kd((function(){function t(){}return!(Td((function(){}),[],t)instanceof t)})),Cd=!kd((function(){Td((function(){}))})),Rd=Ad||Cd;wd({target:"Reflect",stat:!0,forced:Rd,sham:Rd},{construct:function(t,e){Od(t),jd(e);var r=arguments.length<3?t:Od(arguments[2]);if(Cd&&!Ad)return Td(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return Sd(Ld,n,e),new(Sd(Pd,t,n))}var o=r.prototype,i=xd(Ed(o)?o:_d),a=Sd(t,i,e);return Ed(a)?a:i}});var Dd=r(et.Reflect.construct),Nd=qt,Fd=Vc,Md=Rc;Tr({target:"Object",stat:!0,forced:i((function(){Fd(1)})),sham:!Md},{getPrototypeOf:function(t){return Fd(Nd(t))}});var Id=r(et.Object.getPrototypeOf);function Gd(t){var e;return(Gd=Xs?pd(e=Id).call(e):function(t){return t.__proto__||Id(t)})(t)}function Bd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vd(t){var e=function(){if("undefined"==typeof Reflect||!Dd)return!1;if(Dd.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Dd(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Gd(t);if(e){var o=Gd(this).constructor;r=Dd(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Gs(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Bd(t)}(this,r)}}var zd=Qt,Ud=dl,Wd=T,Hd=$e,Yd=tt,Kd=yr,Jd=Error,qd=y("".replace),Xd=String(Jd("zxcasd").stack),$d=/\n\s*at [^:]*:[^\n]*/,Qd=$d.test(Xd),Zd=G,tp=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Zd(1,7)),7!==t.stack)})),ep=yr,rp=function(t,e){if(Qd&&"string"==typeof t&&!Jd.prepareStackTrace)for(;e--;)t=qd(t,$d,"");return t},np=tp,op=Error.captureStackTrace,ip=xc,ap=de("iterator"),up=Array.prototype,cp=hn,fp=Dt,lp=H,sp=xc,dp=de("iterator"),pp=function(t){if(!lp(t))return fp(t,dp)||fp(t,"@@iterator")||sp[cp(t)]},vp=C,hp=At,yp=rr,gp=kt,mp=pp,bp=TypeError,wp=C,Sp=rr,Pp=Dt,Op=Xe,jp=C,Ep=rr,xp=kt,kp=function(t){return void 0!==t&&(ip.Array===t||up[ap]===t)},Tp=Br,_p=ut,Lp=function(t,e){var r=arguments.length<2?mp(t):e;if(hp(r))return yp(vp(r,t));throw bp(gp(t)+" is not iterable")},Ap=pp,Cp=function(t,e,r){var n,o;Sp(t);try{if(!(n=Pp(t,"return"))){if("throw"===e)throw r;return r}n=wp(n,t)}catch(Hb){o=!0,n=Hb}if("throw"===e)throw r;if(o)throw n;return Sp(n),r},Rp=TypeError,Dp=function(t,e){this.stopped=t,this.result=e},Np=Dp.prototype,Fp=function(t,e,r){var n,o,i,a,u,c,f,l=r&&r.that,s=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=Op(e,l),y=function(t){return n&&Cp(n,"normal",t),new Dp(!0,t)},g=function(t){return s?(Ep(t),v?h(t[0],t[1],y):h(t[0],t[1])):v?h(t,y):h(t)};if(d)n=t.iterator;else if(p)n=t;else{if(!(o=Ap(t)))throw Rp(xp(t)+" is not iterable");if(kp(o)){for(i=0,a=Tp(t);a>i;i++)if((u=g(t[i]))&&_p(Np,u))return u;return new Dp(!1)}n=Lp(t,o)}for(c=d?t.next:n.next;!(f=jp(c,n)).done;){try{u=g(f.value)}catch(Hb){Cp(n,"throw",Hb)}if("object"==typeof u&&u&&_p(Np,u))return u}return new Dp(!1)},Mp=mn,Ip=Tr,Gp=ut,Bp=Vc,Vp=pf,zp=function(t,e,r){for(var n=Ud(e),o=Hd.f,i=Wd.f,a=0;a<n.length;a++){var u=n[a];zd(t,u)||r&&zd(r,u)||o(t,u,i(e,u))}},Up=Wn,Wp=yr,Hp=G,Yp=function(t,e){Yd(e)&&"cause"in e&&Kd(t,"cause",e.cause)},Kp=function(t,e,r,n){np&&(op?op(t,e):ep(t,"stack",rp(r,n)))},Jp=Fp,qp=function(t,e){return void 0===t?arguments.length<2?"":e:Mp(t)},Xp=de("toStringTag"),$p=Error,Qp=[].push,Zp=function(t,e){var r,n=Gp(tv,this);Vp?r=Vp($p(),n?Bp(this):tv):(r=n?this:Up(tv),Wp(r,Xp,"Error")),void 0!==e&&Wp(r,"message",qp(e)),Kp(r,Zp,r.stack,1),arguments.length>2&&Yp(r,arguments[2]);var o=[];return Jp(t,Qp,{that:o}),Wp(r,"errors",o),r};Vp?Vp(Zp,$p):zp(Zp,$p,{name:!0});var tv=Zp.prototype=Up($p.prototype,{constructor:Hp(1,Zp),message:Hp(1,""),name:Hp(1,"AggregateError")});Ip({global:!0,constructor:!0,arity:2},{AggregateError:Zp});var ev,rv,nv,ov,iv="undefined"!=typeof process&&"process"==w(process),av=at,uv=vo,cv=_,fv=de("species"),lv=ut,sv=TypeError,dv=rr,pv=bd,vv=H,hv=de("species"),yv=function(t,e){var r,n=dv(t).constructor;return void 0===n||vv(r=dv(n)[hv])?e:pv(r)},gv=TypeError,mv=/(?:ipad|iphone|ipod).*applewebkit/i.test(ct),bv=o,wv=s,Sv=Xe,Pv=k,Ov=Qt,jv=i,Ev=kn,xv=iu,kv=xe,Tv=function(t,e){if(t<e)throw gv("Not enough arguments");return t},_v=mv,Lv=iv,Av=bv.setImmediate,Cv=bv.clearImmediate,Rv=bv.process,Dv=bv.Dispatch,Nv=bv.Function,Fv=bv.MessageChannel,Mv=bv.String,Iv=0,Gv={},Bv="onreadystatechange";jv((function(){ev=bv.location}));var Vv=function(t){if(Ov(Gv,t)){var e=Gv[t];delete Gv[t],e()}},zv=function(t){return function(){Vv(t)}},Uv=function(t){Vv(t.data)},Wv=function(t){bv.postMessage(Mv(t),ev.protocol+"//"+ev.host)};Av&&Cv||(Av=function(t){Tv(arguments.length,1);var e=Pv(t)?t:Nv(t),r=xv(arguments,1);return Gv[++Iv]=function(){wv(e,void 0,r)},rv(Iv),Iv},Cv=function(t){delete Gv[t]},Lv?rv=function(t){Rv.nextTick(zv(t))}:Dv&&Dv.now?rv=function(t){Dv.now(zv(t))}:Fv&&!_v?(ov=(nv=new Fv).port2,nv.port1.onmessage=Uv,rv=Sv(ov.postMessage,ov)):bv.addEventListener&&Pv(bv.postMessage)&&!bv.importScripts&&ev&&"file:"!==ev.protocol&&!jv(Wv)?(rv=Wv,bv.addEventListener("message",Uv,!1)):rv=Bv in kv("script")?function(t){Ev.appendChild(kv("script"))[Bv]=function(){Ev.removeChild(this),Vv(t)}}:function(t){setTimeout(zv(t),0)});var Hv={set:Av,clear:Cv},Yv=function(){this.head=null,this.tail=null};Yv.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Kv,Jv,qv,Xv,$v,Qv=Yv,Zv=/ipad|iphone|ipod/i.test(ct)&&"undefined"!=typeof Pebble,th=/web0s(?!.*chrome)/i.test(ct),eh=o,rh=Xe,nh=T.f,oh=Hv.set,ih=Qv,ah=mv,uh=Zv,ch=th,fh=iv,lh=eh.MutationObserver||eh.WebKitMutationObserver,sh=eh.document,dh=eh.process,ph=eh.Promise,vh=nh(eh,"queueMicrotask"),hh=vh&&vh.value;if(!hh){var yh=new ih,gh=function(){var t,e;for(fh&&(t=dh.domain)&&t.exit();e=yh.get();)try{e()}catch(Hb){throw yh.head&&Kv(),Hb}t&&t.enter()};ah||fh||ch||!lh||!sh?!uh&&ph&&ph.resolve?((Xv=ph.resolve(void 0)).constructor=ph,$v=rh(Xv.then,Xv),Kv=function(){$v(gh)}):fh?Kv=function(){dh.nextTick(gh)}:(oh=rh(oh,eh),Kv=function(){oh(gh)}):(Jv=!0,qv=sh.createTextNode(""),new lh(gh).observe(qv,{characterData:!0}),Kv=function(){qv.data=Jv=!Jv}),hh=function(t){yh.head||Kv(),yh.add(t)}}var mh=hh,bh=function(t){try{return{error:!1,value:t()}}catch(Hb){return{error:!0,value:Hb}}},wh=o.Promise,Sh="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ph=!Sh&&!iv&&"object"==typeof window&&"object"==typeof document,Oh=o,jh=wh,Eh=k,xh=Ye,kh=ai,Th=de,_h=Ph,Lh=Sh,Ah=ht,Ch=jh&&jh.prototype,Rh=Th("species"),Dh=!1,Nh=Eh(Oh.PromiseRejectionEvent),Fh={CONSTRUCTOR:xh("Promise",(function(){var t=kh(jh),e=t!==String(jh);if(!e&&66===Ah)return!0;if(!Ch.catch||!Ch.finally)return!0;if(!Ah||Ah<51||!/native code/.test(t)){var r=new jh((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[Rh]=n,!(Dh=r.then((function(){}))instanceof n))return!0}return!e&&(_h||Lh)&&!Nh})),REJECTION_EVENT:Nh,SUBCLASSING:Dh},Mh={},Ih=At,Gh=TypeError,Bh=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw Gh("Bad Promise constructor");e=t,r=n})),this.resolve=Ih(e),this.reject=Ih(r)};Mh.f=function(t){return new Bh(t)};var Vh,zh,Uh=Tr,Wh=iv,Hh=o,Yh=C,Kh=so,Jh=Io,qh=function(t){var e=av(t);cv&&e&&!e[fv]&&uv(e,fv,{configurable:!0,get:function(){return this}})},Xh=At,$h=k,Qh=tt,Zh=function(t,e){if(lv(e,t))return t;throw sv("Incorrect invocation")},ty=yv,ey=Hv.set,ry=mh,ny=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(Hb){}},oy=bh,iy=Qv,ay=ti,uy=wh,cy=Fh,fy=Mh,ly="Promise",sy=cy.CONSTRUCTOR,dy=cy.REJECTION_EVENT,py=ay.getterFor(ly),vy=ay.set,hy=uy&&uy.prototype,yy=uy,gy=hy,my=Hh.TypeError,by=Hh.document,wy=Hh.process,Sy=fy.f,Py=Sy,Oy=!!(by&&by.createEvent&&Hh.dispatchEvent),jy="unhandledrejection",Ey=function(t){var e;return!(!Qh(t)||!$h(e=t.then))&&e},xy=function(t,e){var r,n,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,c=t.resolve,f=t.reject,l=t.domain;try{u?(a||(2===e.rejection&&Ay(e),e.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===t.promise?f(my("Promise-chain cycle")):(n=Ey(r))?Yh(n,r,c,f):c(r)):f(i)}catch(Hb){l&&!o&&l.exit(),f(Hb)}},ky=function(t,e){t.notified||(t.notified=!0,ry((function(){for(var r,n=t.reactions;r=n.get();)xy(r,t);t.notified=!1,e&&!t.rejection&&_y(t)})))},Ty=function(t,e,r){var n,o;Oy?((n=by.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Hh.dispatchEvent(n)):n={promise:e,reason:r},!dy&&(o=Hh["on"+t])?o(n):t===jy&&ny("Unhandled promise rejection",r)},_y=function(t){Yh(ey,Hh,(function(){var e,r=t.facade,n=t.value;if(Ly(t)&&(e=oy((function(){Wh?wy.emit("unhandledRejection",n,r):Ty(jy,r,n)})),t.rejection=Wh||Ly(t)?2:1,e.error))throw e.value}))},Ly=function(t){return 1!==t.rejection&&!t.parent},Ay=function(t){Yh(ey,Hh,(function(){var e=t.facade;Wh?wy.emit("rejectionHandled",e):Ty("rejectionhandled",e,t.value)}))},Cy=function(t,e,r){return function(n){t(e,n,r)}},Ry=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,ky(t,!0))},Dy=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw my("Promise can't be resolved itself");var n=Ey(e);n?ry((function(){var r={done:!1};try{Yh(n,e,Cy(Dy,r,t),Cy(Ry,r,t))}catch(Hb){Ry(r,Hb,t)}})):(t.value=e,t.state=1,ky(t,!1))}catch(Hb){Ry({done:!1},Hb,t)}}};sy&&(gy=(yy=function(t){Zh(this,gy),Xh(t),Yh(Vh,this);var e=py(this);try{t(Cy(Dy,e),Cy(Ry,e))}catch(Hb){Ry(e,Hb)}}).prototype,(Vh=function(t){vy(this,{type:ly,done:!1,notified:!1,parent:!1,reactions:new iy,rejection:!1,state:0,value:void 0})}).prototype=Kh(gy,"then",(function(t,e){var r=py(this),n=Sy(ty(this,yy));return r.parent=!0,n.ok=!$h(t)||t,n.fail=$h(e)&&e,n.domain=Wh?wy.domain:void 0,0==r.state?r.reactions.add(n):ry((function(){xy(n,r)})),n.promise})),zh=function(){var t=new Vh,e=py(t);this.promise=t,this.resolve=Cy(Dy,e),this.reject=Cy(Ry,e)},fy.f=Sy=function(t){return t===yy||undefined===t?new zh(t):Py(t)}),Uh({global:!0,constructor:!0,wrap:!0,forced:sy},{Promise:yy}),Jh(yy,ly,!1,!0),qh(ly);var Ny=de("iterator"),Fy=!1;try{var My=0,Iy={next:function(){return{done:!!My++}},return:function(){Fy=!0}};Iy[Ny]=function(){return this},Array.from(Iy,(function(){throw 2}))}catch(Hb){}var Gy=wh,By=Fh.CONSTRUCTOR||!function(t,e){if(!e&&!Fy)return!1;var r=!1;try{var n={};n[Ny]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(Hb){}return r}((function(t){Gy.all(t).then(void 0,(function(){}))})),Vy=C,zy=At,Uy=Mh,Wy=bh,Hy=Fp;Tr({target:"Promise",stat:!0,forced:By},{all:function(t){var e=this,r=Uy.f(e),n=r.resolve,o=r.reject,i=Wy((function(){var r=zy(e.resolve),i=[],a=0,u=1;Hy(t,(function(t){var c=a++,f=!1;u++,Vy(r,e,t).then((function(t){f||(f=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise}});var Yy=Tr,Ky=Fh.CONSTRUCTOR;wh&&wh.prototype,Yy({target:"Promise",proto:!0,forced:Ky,real:!0},{catch:function(t){return this.then(void 0,t)}});var Jy=C,qy=At,Xy=Mh,$y=bh,Qy=Fp;Tr({target:"Promise",stat:!0,forced:By},{race:function(t){var e=this,r=Xy.f(e),n=r.reject,o=$y((function(){var o=qy(e.resolve);Qy(t,(function(t){Jy(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Zy=C,tg=Mh;Tr({target:"Promise",stat:!0,forced:Fh.CONSTRUCTOR},{reject:function(t){var e=tg.f(this);return Zy(e.reject,void 0,t),e.promise}});var eg=rr,rg=tt,ng=Mh,og=function(t,e){if(eg(t),rg(e)&&e.constructor===t)return e;var r=ng.f(t);return(0,r.resolve)(e),r.promise},ig=Tr,ag=wh,ug=Fh.CONSTRUCTOR,cg=og,fg=at("Promise"),lg=!ug;ig({target:"Promise",stat:!0,forced:true},{resolve:function(t){return cg(lg&&this===fg?ag:this,t)}});var sg=C,dg=At,pg=Mh,vg=bh,hg=Fp;Tr({target:"Promise",stat:!0,forced:By},{allSettled:function(t){var e=this,r=pg.f(e),n=r.resolve,o=r.reject,i=vg((function(){var r=dg(e.resolve),o=[],i=0,a=1;hg(t,(function(t){var u=i++,c=!1;a++,sg(r,e,t).then((function(t){c||(c=!0,o[u]={status:"fulfilled",value:t},--a||n(o))}),(function(t){c||(c=!0,o[u]={status:"rejected",reason:t},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var yg=C,gg=At,mg=at,bg=Mh,wg=bh,Sg=Fp,Pg="No one promise resolved";Tr({target:"Promise",stat:!0,forced:By},{any:function(t){var e=this,r=mg("AggregateError"),n=bg.f(e),o=n.resolve,i=n.reject,a=wg((function(){var n=gg(e.resolve),a=[],u=0,c=1,f=!1;Sg(t,(function(t){var l=u++,s=!1;c++,yg(n,e,t).then((function(t){s||f||(f=!0,o(t))}),(function(t){s||f||(s=!0,a[l]=t,--c||i(new r(a,Pg)))}))})),--c||i(new r(a,Pg))}));return a.error&&i(a.value),n.promise}});var Og=Tr,jg=wh,Eg=i,xg=at,kg=k,Tg=yv,_g=og,Lg=jg&&jg.prototype;Og({target:"Promise",proto:!0,real:!0,forced:!!jg&&Eg((function(){Lg.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=Tg(this,xg("Promise")),r=kg(t);return this.then(r?function(r){return _g(e,t()).then((function(){return r}))}:t,r?function(r){return _g(e,t()).then((function(){throw r}))}:t)}});var Ag=et.Promise,Cg=Mh;Tr({target:"Promise",stat:!0,forced:!0},{withResolvers:function(){var t=Cg.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Rg=Mh,Dg=bh;Tr({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=Rg.f(this),r=Dg(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var Ng=r(Ag),Fg=Tr,Mg=ri,Ig=y([].reverse),Gg=[1,2];Fg({target:"Array",proto:!0,forced:String(Gg)===String(Gg.reverse())},{reverse:function(){return Mg(this)&&(this.length=this.length),Ig(this)}});var Bg=Hu("Array").reverse,Vg=ut,zg=Bg,Ug=Array.prototype,Wg=r((function(t){var e=t.reverse;return t===Ug||Vg(Ug,t)&&e===Ug.reverse?zg:e})),Hg=Tr,Yg=ri,Kg=wi,Jg=tt,qg=Fr,Xg=Br,$g=$,Qg=Qn,Zg=de,tm=iu,em=zu("slice"),rm=Zg("species"),nm=Array,om=Math.max;Hg({target:"Array",proto:!0,forced:!em},{slice:function(t,e){var r,n,o,i=$g(this),a=Xg(i),u=qg(t,a),c=qg(void 0===e?a:e,a);if(Yg(i)&&(r=i.constructor,(Kg(r)&&(r===nm||Yg(r.prototype))||Jg(r)&&null===(r=r[rm]))&&(r=void 0),r===nm||void 0===r))return tm(i,u,c);for(n=new(void 0===r?nm:r)(om(c-u,0)),o=0;u<c;u++,o++)u in i&&Qg(n,o,i[u]);return n.length=o,n}});var im=Hu("Array").slice,am=ut,um=im,cm=Array.prototype,fm=function(t){var e=t.slice;return t===cm||am(cm,t)&&e===cm.slice?um:e},lm=r(fm);function sm(){sm=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Al||function(t,e,r){t[e]=r.value},o="function"==typeof Ss?Ss:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Al(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(k){c=function(t,e,r){return t[e]=r}}function f(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=qs(i.prototype),u=new j(o||[]);return n(a,"_invoke",{value:w(t,r,u)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}t.wrap=f;var s={};function d(){}function p(){}function v(){}var h={};c(h,i,(function(){return this}));var y=Id&&Id(Id(E([])));y&&y!==e&&r.call(y,i)&&(h=y);var g=v.prototype=d.prototype=qs(h);function m(t){var e;al(e=["next","throw","return"]).call(e,(function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(n,i,a,u){var c=l(t[n],t,i);if("throw"!==c.type){var f=c.arg,s=f.value;return s&&"object"==Gs(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(s).then((function(t){f.value=t,a(f)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function w(t,e,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=S(a,r);if(u){if(u===s)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 c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===s)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),s;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,s;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function P(t){var e,r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),Ec(e=this.tryEntries).call(e,r)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],al(t).call(t,P,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return p.prototype=v,n(g,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Xs?Xs(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=qs(g),t},t.awrap=function(t){return{__await:t}},m(b.prototype),c(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Ng);var a=new b(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),c(g,u,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)Ec(r).call(r,n);return Wg(r).call(r),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=E,j.prototype={constructor:j,reset:function(t){var e;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,al(e=this.tryEntries).call(e,O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+lm(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.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"),c=r.call(i,"finallyLoc");if(u&&c){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(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}function dm(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(Hb){return void r(Hb)}u.done?e(c):Ng.resolve(c).then(n,o)}function pm(t){return function(){var e=this,r=arguments;return new Ng((function(n,o){var i=t.apply(e,r);function a(t){dm(i,n,o,a,u,"next",t)}function u(t){dm(i,n,o,a,u,"throw",t)}a(void 0)}))}}var vm=Qt,hm=C,ym=tt,gm=rr,mm=function(t){return void 0!==t&&(vm(t,"value")||vm(t,"writable"))},bm=T,wm=Vc;Tr({target:"Reflect",stat:!0},{get:function t(e,r){var n,o,i=arguments.length<3?e:arguments[2];return gm(e)===i?e[r]:(n=bm.f(e,r))?mm(n)?n.value:void 0===n.get?void 0:hm(n.get,i):ym(o=wm(e))?t(o,r,i):void 0}});var Sm=r(et.Reflect.get);function Pm(){var t;"undefined"!=typeof Reflect&&Sm?Pm=pd(t=Sm).call(t):Pm=function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Gd(t)););return t}(t,e);if(n){var o=ac(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}};return Pm.apply(this,arguments)}var Om=Tr,jm=Ni.find,Em="find",xm=!0;Em in[]&&Array(1)[Em]((function(){xm=!1})),Om({target:"Array",proto:!0,forced:xm},{find:function(t){return jm(this,t,arguments.length>1?arguments[1]:void 0)}});var km=Hu("Array").find,Tm=ut,_m=km,Lm=Array.prototype,Am=r((function(t){var e=t.find;return t===Lm||Tm(Lm,t)&&e===Lm.find?_m:e})),Cm=new t.Logger("VeStrategy-preload-plugin"),Rm="play_next_end",Dm=function(t){hd(n,t);var e,r=Vd(n);function n(t){var e,o;return Hs(this,n),zs(Bd(o=r.call(this,t)),"ctx",void 0),zs(Bd(o),"preloader",void 0),zs(Bd(o),"_checkPreloadData",(function(){var t,e,r;null===(t=o.preloader)||void 0===t||null===(e=t.checkPreloadData)||void 0===e||e.call(t,null===(r=o.player)||void 0===r||null===(r=r.config)||void 0===r?void 0:r.vid)})),o.ctx=t.config.ctx,o.preloader=t.config.preloader,Cm.update(null===(e=o.ctx)||void 0===e||null===(e=e.dataCenter)||void 0===e||null===(e=e.getAppConfig())||void 0===e?void 0:e.log),Cm.info("PreloadPluginInitCompleted"),o}return Ks(n,[{key:"afterCreate",value:function(){Pm(Gd(n.prototype),"afterCreate",this).call(this),this.initPreloader()}},{key:"destroy",value:function(){var t,e;Pm(Gd(n.prototype),"destroy",this).call(this),null===(t=this.preloader)||void 0===t||null===(e=t.detachPlayer)||void 0===e||e.call(t,this.player),this.off(Rm,this._checkPreloadData)}},{key:"initPreloader",value:(e=pm(sm().mark((function t(){var e,r,n,o,i,a;return sm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(e=this.preloader)||void 0===e||null===(r=e.prepare)||void 0===r?void 0:r.call(e);case 2:if(t.t0=t.sent,!t.t0){t.next=5;break}t.t0=this._findPlugin("mp4encryptplayer");case 5:if(t.t0){t.next=8;break}return t.abrupt("return");case 8:this.off(Rm,this._checkPreloadData),null===(n=this.preloader)||void 0===n||null===(o=n.detachPlayer)||void 0===o||o.call(n,this.player),null===(i=this.preloader)||void 0===i||null===(a=i.attachPlayer)||void 0===a||a.call(i,this.player),this.on(Rm,this._checkPreloadData),this._checkPreloadData();case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"_findPlugin",value:function(t){var e;return null===(e=this.playerConfig.plugins)||void 0===e?void 0:Am(e).call(e,(function(e){var r;return(null==e||null===(r=e.pluginName)||void 0===r?void 0:r.toLowerCase())===t}))}}],[{key:"pluginName",get:function(){return"AutoPreloadPlugin"}},{key:"defaultConfig",get:function(){return{}}}]),n}(t.BasePlugin),Nm=Hu("Array").concat,Fm=ut,Mm=Nm,Im=Array.prototype,Gm=r((function(t){var e=t.concat;return t===Im||Fm(Im,t)&&e===Im.concat?Mm:e})),Bm=_,Vm=y,zm=C,Um=i,Wm=rn,Hm=fo,Ym=R,Km=qt,Jm=W,qm=Object.assign,Xm=Object.defineProperty,$m=Vm([].concat),Qm=!qm||Um((function(){if(Bm&&1!==qm({b:1},qm(Xm({},"a",{enumerable:!0,get:function(){Xm(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=qm({},t)[r]||Wm(qm({},e)).join("")!=n}))?function(t,e){for(var r=Km(t),n=arguments.length,o=1,i=Hm.f,a=Ym.f;n>o;)for(var u,c=Jm(arguments[o++]),f=i?$m(Wm(c),i(c)):Wm(c),l=f.length,s=0;l>s;)u=f[s++],Bm&&!zm(a,c,u)||(r[u]=c[u]);return r}:qm,Zm=Qm;Tr({target:"Object",stat:!0,arity:2,forced:Object.assign!==Zm},{assign:Zm});var tb=r(et.Object.assign),eb=r(Xu),rb=r(il),nb=Hr.includes;Tr({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return nb(this,t,arguments.length>1?arguments[1]:void 0)}});var ob=Hu("Array").includes,ib=tt,ab=w,ub=de("match"),cb=function(t){var e;return ib(t)&&(void 0!==(e=t[ub])?!!e:"RegExp"==ab(t))},fb=TypeError,lb=de("match"),sb=Tr,db=function(t){if(cb(t))throw fb("The method doesn't accept regular expressions");return t},pb=J,vb=mn,hb=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[lb]=!1,"/./"[t](e)}catch(n){}}return!1},yb=y("".indexOf);sb({target:"String",proto:!0,forced:!hb("includes")},{includes:function(t){return!!~yb(vb(pb(this)),vb(db(t)),arguments.length>1?arguments[1]:void 0)}});var gb=Hu("String").includes,mb=ut,bb=ob,wb=gb,Sb=Array.prototype,Pb=String.prototype,Ob=r((function(t){var e=t.includes;return t===Sb||mb(Sb,t)&&e===Sb.includes?bb:"string"==typeof t||t===Pb||mb(Pb,t)&&e===Pb.includes?wb:e})),jb=Tr,Eb=Ni.findIndex,xb="findIndex",kb=!0;xb in[]&&Array(1)[xb]((function(){kb=!1})),jb({target:"Array",proto:!0,forced:kb},{findIndex:function(t){return Eb(this,t,arguments.length>1?arguments[1]:void 0)}});var Tb=Hu("Array").findIndex,_b=ut,Lb=Tb,Ab=Array.prototype,Cb=r((function(t){var e=t.findIndex;return t===Ab||_b(Ab,t)&&e===Ab.findIndex?Lb:e})),Rb=r(fm),Db=function(t){return t[t.NORMAL=0]="NORMAL",t[t.FEED=1]="FEED",t}(Db||{}),Nb=Ni.map;Tr({target:"Array",proto:!0,forced:!zu("map")},{map:function(t){return Nb(this,t,arguments.length>1?arguments[1]:void 0)}});var Fb=Hu("Array").map,Mb=ut,Ib=Fb,Gb=Array.prototype,Bb=r((function(t){var e=t.map;return t===Gb||Mb(Gb,t)&&e===Gb.map?Ib:e})),Vb=function(){function t(){Hs(this,t),zs(this,"isRegistered",!1),zs(this,"initPromise",void 0),zs(this,"_inst",void 0),zs(this,"player",void 0),zs(this,"_tracker",void 0),zs(this,"pendingLoadList",[]),zs(this,"prevCount",1),zs(this,"nextCount",2),zs(this,"preloadScene",Db.NORMAL)}var e,r,n;return Ks(t,[{key:"init",value:(n=pm(sm().mark((function t(e){return sm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.initPromise||(this.initPromise=this._init(e)),t.abrupt("return",this.initPromise);case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"prepare",value:(r=pm(sm().mark((function t(){var e;return sm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.isRegistered,t.t0){t.next=5;break}return t.next=4,null!==(e=this.initPromise)&&void 0!==e&&e;case 4:t.t0=t.sent;case 5:return t.abrupt("return",t.t0);case 6:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"register",value:function(t){if(!this.isRegistered){var e=Ws(Ws({},t),{},{preloadScene:(null==t?void 0:t.preloadScene)||Db.NORMAL});this._register(this._adaptPreloadConfig(e)),this.isRegistered=!0,this.trackPreloadData()}}},{key:"addPreloadList",value:function(t){if(this.isRegistered){if(Db.FEED!==this.preloadScene)return Db.NORMAL===this.preloadScene?this._addPreloadList(t):void 0;var e;this.pendingLoadList=Gm(e=this.pendingLoadList).call(e,null!=t?t:[])}}},{key:"setPreloadList",value:function(t){if(this.isRegistered){if(Db.FEED!==this.preloadScene)return Db.NORMAL===this.preloadScene?this._addPreloadList(t):void 0;this.pendingLoadList=null!=t?t:[]}}},{key:"clearPreloadList",value:function(){this.pendingLoadList=[]}},{key:"attachPlayer",value:function(t){var e,r;t&&this.isRegistered&&(null===(e=this._inst)||void 0===e||null===(r=e.attachPlayer)||void 0===r||r.call(e,t),this.player=t)}},{key:"detachPlayer",value:function(t){var e,r;this.isRegistered&&(null===(e=this._inst)||void 0===e||null===(r=e.detachPlayer)||void 0===r||r.call(e,t))}},{key:"setPreloadScene",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.preloadScene,e=arguments.length>1?arguments[1]:void 0;return this.preloadScene!==t&&this.clearPreloadList(),this.updateConfig(Ws({preloadScene:t},null!=e?e:{}))}},{key:"removeAll",value:function(){var t,e;return null===(t=this._inst)||void 0===t||null===(e=t.removeAll)||void 0===e?void 0:e.call(t)}},{key:"removeAllPreloadTask",value:function(){var t,e;return this.pendingLoadList=[],null===(t=this._inst)||void 0===t||null===(e=t.removeAllPreloadTask)||void 0===e?void 0:e.call(t)}},{key:"bindTracker",value:function(t){this._tracker=t}},{key:"checkPreloadData",value:function(t){var e,r;if(null!==(e=this.pendingLoadList)&&void 0!==e&&e.length){var n=this._recPreloadList(t||(null===(r=this.player)||void 0===r||null===(r=r.config)||void 0===r?void 0:r.vid));null!=n&&n.length&&this._addPreloadList(n)}}},{key:"inst",value:function(){return this._inst}},{key:"_init",value:(e=pm(sm().mark((function t(e){var r,n,o;return sm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e){t.next=6;break}return t.next=3,e();case 3:t.t0=t.sent,t.next=7;break;case 6:t.t0=e;case 7:if(null!=(o=t.t0)&&o.PreloaderModule&&null!=o&&null!==(r=o.loaders)&&void 0!==r&&r.length&&null!=o&&null!==(n=o.playPlugins)&&void 0!==n&&n.length){t.next=10;break}return t.abrupt("return",!1);case 10:return o.enableDebugger&&(o.PreloaderModule.debugger=o.enableDebugger),this.register(o),t.abrupt("return",!0);case 13:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"_addPreloadList",value:function(t){if(null!=t&&t.length){var e=function(t){return null!=t&&t.length?Bb(t).call(t,(function(t){var e,r;return{order:1,data:{vid:t.vid,vtype:(null===(e=t.streamType)||void 0===e||null===(r=e.toUpperCase)||void 0===r?void 0:r.call(e))||"MP4",codecType:t.codec||"h264",payload:[{url:[{src:t.url}],bitrate:t.bitrate,definition:t.definition,duration:t.duration,size:t.size}],defaultDefinition:t.definition,bizType:0}}})):[]}(t);null!=e&&e.length&&this._addList(e)}}},{key:"trackPreloadData",value:function(){var t,e,r=this;null===(t=this._inst)||void 0===t||null===(e=t.on)||void 0===e||e.call(t,"prf_data_size",(function(t){var e,n;null===(e=r._tracker)||void 0===e||null===(n=e.track)||void 0===n||n.call(e,"vestrategy_preload_prf_data_size",Ws({},t))}))}},{key:"_register",value:function(e){var r=this,n=e||{},o=n.PreloaderModule,i=n.playPlugins,a=n.loaders;o&&null!=i&&i.length&&null!=a&&a.length&&(e.enableDebugger&&(o.debugger=e.enableDebugger),this._inst=new o,this._inst.register({config:tb({},t.defaultConfig,e),loaders:eb(a).call(a,(function(t){return!!t}))}),rb(i).call(i,(function(t){var e;null==t||null===(e=t.registerPreloader)||void 0===e||e.call(t,r._inst)})),this._inst.enable())}},{key:"updateConfig",value:function(t){var e,r;t&&this.isRegistered&&(null===(e=this._inst)||void 0===e||null===(r=e.updateConfig)||void 0===r||r.call(e,this._adaptPreloadConfig(t)))}},{key:"_addList",value:function(t){var e,r;null!=t&&t.length&&this.isRegistered&&(null===(e=this._inst)||void 0===e||null===(r=e.addPreloadList)||void 0===r||r.call(e,t))}},{key:"_adaptPreloadConfig",value:function(t){var e,r,n;return this.nextCount=null!==(e=null==t?void 0:t.nextCount)&&void 0!==e?e:this.nextCount,this.prevCount=null!==(r=null==t?void 0:t.prevCount)&&void 0!==r?r:this.prevCount,void 0!==(null==t?void 0:t.preloadScene)&&Ob(n=[Db.FEED,Db.NORMAL]).call(n,null==t?void 0:t.preloadScene)?(this.preloadScene=t.preloadScene,Db.FEED===t.preloadScene?Ws(Ws({},t),{},{autoPreload:!1,autoCheckPreload:!0}):Ws(Ws({},t),{},{autoPreload:!0,autoCheckPreload:!1})):Ws({},t)}},{key:"_recPreloadList",value:function(t){var e,r=this.pendingLoadList;if(!t||null==r||!r.length)return[];var n=Cb(r).call(r,(function(e){return e.vid===t}));if(-1===n)return[];var o=this.prevCount?Rb(r).call(r,n-this.prevCount<0?0:n-this.prevCount,n):[],i=this.nextCount?Rb(r).call(r,n+1,n+this.nextCount+1):[];return eb(e=Gm(i).call(i,o)).call(e,(function(t){return!!t}))}}],[{key:"defaultConfig",get:function(){return{preloadCacheType:1,autoPreload:!0,autoCheckPreload:!1,autoCheck:{enable:!0,interval:1e3},preloadTime:5,preloadMaxCacheCount:15,startPreloadMinBuffer:5,startPreloadControl:!0,startPreloadMinPosTime:0,minBufferLength:15,segmentMinDuration:5,loadRangeType:"gop"}}}]),t}(),zb=new Vb,Ub=new t.Logger("VeStrategy-preload"),Wb=function(e){hd(n,e);var r=Vd(n);function n(t){var e,o,i;return Hs(this,n),i=r.call(this,t),zb.bindTracker(null==t||null===(e=t.ctx)||void 0===e?void 0:e.tracker),Ub.update(null===(o=t.ctx.dataCenter)||void 0===o||null===(o=o.getAppConfig())||void 0===o?void 0:o.log),Ub.info("VeStrategyPreloadInit"),i}return Ks(n,[{key:"getRecommendation",value:function(){var e,r,n={plugins:[],pluginConfiguration:{},result:{enable:!1}},o=null===(e=this.ctx.dataCenter.getServiceStrategyConfig())||void 0===e?void 0:e[t.StrategyEnums.preload];return null!=o&&null!==(r=o.config)&&void 0!==r&&r.enable?(this.config.disableAutoCheckPlugin||(n.plugins=[Dm],n.pluginConfiguration=zs({},Dm.pluginName,{preloader:zb})),n.result=Ws(Ws({},this.config),{},{enable:!0}),n):n}}],[{key:"strategyName",get:function(){return t.StrategyEnums.preload}}]),n}(t.BaseStrategy);return zs(Wb,"preloader",zb),Wb}));
|