@byteplus/veplayer 1.15.3-rc.2 → 1.15.3-rc.20

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