UNPKG

@polyv/live-watch-sdk

Version:

SDK for creating a live stream viewing page using Polyv's services.

1 lines 1.1 MB
var e,t,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={};function i(){if(t)return e;t=1;var r=function(e){return e&&e.Math===Math&&e};return e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n&&n)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}var a,o,s,u,c,l,h,f,d={};function v(){return o?a:(o=1,a=function(e){try{return!!e()}catch(e){return!0}})}function p(){if(u)return s;u=1;var e=v();return s=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function g(){if(l)return c;l=1;var e=v();return c=!e((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function y(){if(f)return h;f=1;var e=g(),t=Function.prototype.call;return h=e?t.bind(t):function(){return t.apply(t,arguments)},h}var m,_,b,k,S,C,w,I,E,M,T,P,A,x,R,L,O,D,N,W,U,j,B,F,V,q,z,H,G,Q,K,$,Y,J,X,Z,ee,te,ne,re,ie,ae={};function oe(){if(m)return ae;m=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return ae.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,ae}function se(){return b?_:(b=1,_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function ue(){if(S)return k;S=1;var e=g(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return k=e?r:function(e){return function(){return n.apply(e,arguments)}},k}function ce(){if(w)return C;w=1;var e=ue(),t=e({}.toString),n=e("".slice);return C=function(e){return n(t(e),8,-1)}}function le(){if(E)return I;E=1;var e=ue(),t=v(),n=ce(),r=Object,i=e("".split);return I=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?i(e,""):r(e)}:r}function he(){return T?M:(T=1,M=function(e){return null==e})}function fe(){if(A)return P;A=1;var e=he(),t=TypeError;return P=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function de(){if(R)return x;R=1;var e=le(),t=fe();return x=function(n){return e(t(n))}}function ve(){if(O)return L;O=1;var e="object"==typeof document&&document.all;return L=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function pe(){if(N)return D;N=1;var e=ve();return D=function(t){return"object"==typeof t?null!==t:e(t)}}function ge(){if(U)return W;U=1;var e=i(),t=ve();return W=function(n,r){return arguments.length<2?(i=e[n],t(i)?i:void 0):e[n]&&e[n][r];var i},W}function ye(){if(B)return j;B=1;var e=ue();return j=e({}.isPrototypeOf)}function me(){if(V)return F;V=1;var e=i().navigator,t=e&&e.userAgent;return F=t?String(t):""}function _e(){if(z)return q;z=1;var e,t,n=i(),r=me(),a=n.process,o=n.Deno,s=a&&a.versions||o&&o.version,u=s&&s.v8;return u&&(t=(e=u.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),q=t}function be(){if(G)return H;G=1;var e=_e(),t=v(),n=i().String;return H=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function ke(){if(K)return Q;K=1;var e=be();return Q=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Se(){if(Y)return $;Y=1;var e=ge(),t=ve(),n=ye(),r=ke(),i=Object;return $=r?function(e){return"symbol"==typeof e}:function(r){var a=e("Symbol");return t(a)&&n(a.prototype,i(r))}}function Ce(){if(X)return J;X=1;var e=String;return J=function(t){try{return e(t)}catch(e){return"Object"}}}function we(){if(ee)return Z;ee=1;var e=ve(),t=Ce(),n=TypeError;return Z=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Ie(){if(ne)return te;ne=1;var e=we(),t=he();return te=function(n,r){var i=n[r];return t(i)?void 0:e(i)}}function Ee(){if(ie)return re;ie=1;var e=y(),t=ve(),n=pe(),r=TypeError;return re=function(i,a){var o,s;if("string"===a&&t(o=i.toString)&&!n(s=e(o,i)))return s;if(t(o=i.valueOf)&&!n(s=e(o,i)))return s;if("string"!==a&&t(o=i.toString)&&!n(s=e(o,i)))return s;throw new r("Can't convert object to primitive value")}}var Me,Te,Pe,Ae,xe,Re,Le,Oe,De,Ne,We,Ue,je,Be,Fe,Ve,qe,ze,He,Ge,Qe,Ke,$e,Ye,Je={exports:{}};function Xe(){return Te?Me:(Te=1,Me=!1)}function Ze(){if(Ae)return Pe;Ae=1;var e=i(),t=Object.defineProperty;return Pe=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function et(){if(xe)return Je.exports;xe=1;var e=Xe(),t=i(),n=Ze(),r="__core-js_shared__",a=Je.exports=t[r]||n(r,{});return(a.versions||(a.versions=[])).push({version:"3.39.0",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Je.exports}function tt(){if(Le)return Re;Le=1;var e=et();return Re=function(t,n){return e[t]||(e[t]=n||{})}}function nt(){if(De)return Oe;De=1;var e=fe(),t=Object;return Oe=function(n){return t(e(n))}}function rt(){if(We)return Ne;We=1;var e=ue(),t=nt(),n=e({}.hasOwnProperty);return Ne=Object.hasOwn||function(e,r){return n(t(e),r)}}function it(){if(je)return Ue;je=1;var e=ue(),t=0,n=Math.random(),r=e(1..toString);return Ue=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function at(){if(Fe)return Be;Fe=1;var e=i(),t=tt(),n=rt(),r=it(),a=be(),o=ke(),s=e.Symbol,u=t("wks"),c=o?s.for||s:s&&s.withoutSetter||r;return Be=function(e){return n(u,e)||(u[e]=a&&n(s,e)?s[e]:c("Symbol."+e)),u[e]}}function ot(){if(qe)return Ve;qe=1;var e=y(),t=pe(),n=Se(),r=Ie(),i=Ee(),a=at(),o=TypeError,s=a("toPrimitive");return Ve=function(a,u){if(!t(a)||n(a))return a;var c,l=r(a,s);if(l){if(void 0===u&&(u="default"),c=e(l,a,u),!t(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(a,u)}}function st(){if(He)return ze;He=1;var e=ot(),t=Se();return ze=function(n){var r=e(n,"string");return t(r)?r:r+""}}function ut(){if(Qe)return Ge;Qe=1;var e=i(),t=pe(),n=e.document,r=t(n)&&t(n.createElement);return Ge=function(e){return r?n.createElement(e):{}}}function ct(){if($e)return Ke;$e=1;var e=p(),t=v(),n=ut();return Ke=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function lt(){if(Ye)return d;Ye=1;var e=p(),t=y(),n=oe(),r=se(),i=de(),a=st(),o=rt(),s=ct(),u=Object.getOwnPropertyDescriptor;return d.f=e?u:function(e,c){if(e=i(e),c=a(c),s)try{return u(e,c)}catch(e){}if(o(e,c))return r(!t(n.f,e,c),e[c])},d}var ht,ft,dt,vt,pt,gt,yt,mt={};function _t(){if(ft)return ht;ft=1;var e=p(),t=v();return ht=e&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function bt(){if(vt)return dt;vt=1;var e=pe(),t=String,n=TypeError;return dt=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function kt(){if(pt)return mt;pt=1;var e=p(),t=ct(),n=_t(),r=bt(),i=st(),a=TypeError,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return mt.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var a=s(e,t);a&&a[l]&&(e[t]=n.value,n={configurable:c in n?n[c]:a[c],enumerable:u in n?n[u]:a[u],writable:!1})}return o(e,t,n)}:o:function(e,n,s){if(r(e),n=i(n),r(s),t)try{return o(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new a("Accessors not supported");return"value"in s&&(e[n]=s.value),e},mt}function St(){if(yt)return gt;yt=1;var e=p(),t=kt(),n=se();return gt=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e}}var Ct,wt,It,Et,Mt,Tt,Pt,At,xt,Rt,Lt,Ot,Dt,Nt,Wt,Ut={exports:{}};function jt(){if(wt)return Ct;wt=1;var e=p(),t=rt(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,"name"),a=i&&"something"===function(){}.name,o=i&&(!e||e&&r(n,"name").configurable);return Ct={EXISTS:i,PROPER:a,CONFIGURABLE:o}}function Bt(){if(Et)return It;Et=1;var e=ue(),t=ve(),n=et(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),It=n.inspectSource}function Ft(){if(Tt)return Mt;Tt=1;var e=i(),t=ve(),n=e.WeakMap;return Mt=t(n)&&/native code/.test(String(n))}function Vt(){if(At)return Pt;At=1;var e=tt(),t=it(),n=e("keys");return Pt=function(e){return n[e]||(n[e]=t(e))}}function qt(){return Rt?xt:(Rt=1,xt={})}function zt(){if(Ot)return Lt;Ot=1;var e,t,n,r=Ft(),a=i(),o=pe(),s=St(),u=rt(),c=et(),l=Vt(),h=qt(),f="Object already initialized",d=a.TypeError,v=a.WeakMap;if(r||c.state){var p=c.state||(c.state=new v);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new d(f);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},n=function(e){return p.has(e)}}else{var g=l("state");h[g]=!0,e=function(e,t){if(u(e,g))throw new d(f);return t.facade=e,s(e,g,t),t},t=function(e){return u(e,g)?e[g]:{}},n=function(e){return u(e,g)}}return Lt={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!o(n)||(r=t(n)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}}function Ht(){if(Dt)return Ut.exports;Dt=1;var e=ue(),t=v(),n=ve(),r=rt(),i=p(),a=jt().CONFIGURABLE,o=Bt(),s=zt(),u=s.enforce,c=s.get,l=String,h=Object.defineProperty,f=e("".slice),d=e("".replace),g=e([].join),y=i&&!t((function(){return 8!==h((function(){}),"length",{value:8}).length})),m=String(String).split("String"),_=Ut.exports=function(e,t,n){"Symbol("===f(l(t),0,7)&&(t="["+d(l(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||a&&e.name!==t)&&(i?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&r(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?i&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return r(o,"source")||(o.source=g(m,"string"==typeof t?t:"")),e};return Function.prototype.toString=_((function(){return n(this)&&c(this).source||o(this)}),"toString"),Ut.exports}function Gt(){if(Wt)return Nt;Wt=1;var e=ve(),t=kt(),n=Ht(),r=Ze();return Nt=function(i,a,o,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:a;if(e(o)&&n(o,c,s),s.global)u?i[a]=o:r(a,o);else{try{s.unsafe?i[a]&&(u=!0):delete i[a]}catch(e){}u?i[a]=o:t.f(i,a,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return i}}var Qt,Kt,$t,Yt,Jt,Xt,Zt,en,tn,nn,rn,an,on,sn,un,cn,ln,hn={};function fn(){if(Kt)return Qt;Kt=1;var e=Math.ceil,t=Math.floor;return Qt=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)}}function dn(){if(Yt)return $t;Yt=1;var e=fn();return $t=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function vn(){if(Xt)return Jt;Xt=1;var e=dn(),t=Math.max,n=Math.min;return Jt=function(r,i){var a=e(r);return a<0?t(a+i,0):n(a,i)},Jt}function pn(){if(en)return Zt;en=1;var e=dn(),t=Math.min;return Zt=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function gn(){if(nn)return tn;nn=1;var e=pn();return tn=function(t){return e(t.length)}}function yn(){if(an)return rn;an=1;var e=de(),t=vn(),n=gn(),r=function(r){return function(i,a,o){var s=e(i),u=n(s);if(0===u)return!r&&-1;var c,l=t(o,u);if(r&&a!=a){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((r||l in s)&&s[l]===a)return r||l||0;return!r&&-1}};return rn={includes:r(!0),indexOf:r(!1)}}function mn(){if(sn)return on;sn=1;var e=ue(),t=rt(),n=de(),r=yn().indexOf,i=qt(),a=e([].push);return on=function(e,o){var s,u=n(e),c=0,l=[];for(s in u)!t(i,s)&&t(u,s)&&a(l,s);for(;o.length>c;)t(u,s=o[c++])&&(~r(l,s)||a(l,s));return l}}function _n(){return cn?un:(cn=1,un=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function bn(){if(ln)return hn;ln=1;var e=mn(),t=_n().concat("length","prototype");return hn.f=Object.getOwnPropertyNames||function(n){return e(n,t)},hn}var kn,Sn,Cn,wn,In,En,Mn,Tn,Pn,An,xn,Rn,Ln,On,Dn,Nn,Wn,Un,jn,Bn,Fn,Vn,qn,zn,Hn,Gn,Qn,Kn,$n={};function Yn(){return kn||(kn=1,$n.f=Object.getOwnPropertySymbols),$n}function Jn(){if(Cn)return Sn;Cn=1;var e=ge(),t=ue(),n=bn(),r=Yn(),i=bt(),a=t([].concat);return Sn=e("Reflect","ownKeys")||function(e){var t=n.f(i(e)),o=r.f;return o?a(t,o(e)):t},Sn}function Xn(){if(In)return wn;In=1;var e=rt(),t=Jn(),n=lt(),r=kt();return wn=function(i,a,o){for(var s=t(a),u=r.f,c=n.f,l=0;l<s.length;l++){var h=s[l];e(i,h)||o&&e(o,h)||u(i,h,c(a,h))}},wn}function Zn(){if(Mn)return En;Mn=1;var e=v(),t=ve(),n=/#|\.prototype\./,r=function(n,r){var u=a[i(n)];return u===s||u!==o&&(t(r)?e(r):!!r)},i=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},a=r.data={},o=r.NATIVE="N",s=r.POLYFILL="P";return En=r}function er(){if(Pn)return Tn;Pn=1;var e=i(),t=lt().f,n=St(),r=Gt(),a=Ze(),o=Xn(),s=Zn();return Tn=function(i,u){var c,l,h,f,d,v=i.target,p=i.global,g=i.stat;if(c=p?e:g?e[v]||a(v,{}):e[v]&&e[v].prototype)for(l in u){if(f=u[l],h=i.dontCallGetSet?(d=t(c,l))&&d.value:c[l],!s(p?l:v+(g?".":"#")+l,i.forced)&&void 0!==h){if(typeof f==typeof h)continue;o(f,h)}(i.sham||h&&h.sham)&&n(f,"sham",!0),r(c,l,f,i)}}}function tr(){if(xn)return An;xn=1;var e=ce();return An=Array.isArray||function(t){return"Array"===e(t)}}function nr(){if(Ln)return Rn;Ln=1;var e=TypeError;return Rn=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}function rr(){if(Dn)return On;Dn=1;var e=p(),t=kt(),n=se();return On=function(r,i,a){e?t.f(r,i,n(0,a)):r[i]=a}}function ir(){if(Wn)return Nn;Wn=1;var e={};return e[at()("toStringTag")]="z",Nn="[object z]"===String(e)}function ar(){if(jn)return Un;jn=1;var e=ir(),t=ve(),n=ce(),r=at()("toStringTag"),i=Object,a="Arguments"===n(function(){return arguments}());return Un=e?n:function(e){var o,s,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(o=i(e),r))?s:a?n(o):"Object"===(u=n(o))&&t(o.callee)?"Arguments":u}}function or(){if(Fn)return Bn;Fn=1;var e=ue(),t=v(),n=ve(),r=ar(),i=ge(),a=Bt(),o=function(){},s=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=e(u.exec),l=!u.test(o),h=function(e){if(!n(e))return!1;try{return s(o,[],e),!0}catch(e){return!1}},f=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(u,a(e))}catch(e){return!0}};return f.sham=!0,Bn=!s||t((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?f:h}function sr(){if(qn)return Vn;qn=1;var e=tr(),t=or(),n=pe(),r=at()("species"),i=Array;return Vn=function(a){var o;return e(a)&&(o=a.constructor,(t(o)&&(o===i||e(o.prototype))||n(o)&&null===(o=o[r]))&&(o=void 0)),void 0===o?i:o}}function ur(){if(Hn)return zn;Hn=1;var e=sr();return zn=function(t,n){return new(e(t))(0===n?0:n)}}function cr(){if(Qn)return Gn;Qn=1;var e=v(),t=at(),n=_e(),r=t("species");return Gn=function(t){return n>=51||!e((function(){var e=[];return(e.constructor={})[r]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}}!function(){if(Kn)return r;Kn=1;var e=er(),t=v(),n=tr(),i=pe(),a=nt(),o=gn(),s=nr(),u=rr(),c=ur(),l=cr(),h=at(),f=_e(),d=h("isConcatSpreadable"),p=f>=51||!t((function(){var e=[];return e[d]=!1,e.concat()[0]!==e})),g=function(e){if(!i(e))return!1;var t=e[d];return void 0!==t?!!t:n(e)};e({target:"Array",proto:!0,arity:1,forced:!p||!l("concat")},{concat:function(e){var t,n,r,i,l,h=a(this),f=c(h,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(g(l=-1===t?h:arguments[t]))for(i=o(l),s(d+i),n=0;n<i;n++,d++)n in l&&u(f,d,l[n]);else s(d+1),u(f,d++,l);return f.length=d,f}})}();var lr,hr,fr,dr,vr,pr={};function gr(){if(hr)return lr;hr=1;var e=ce(),t=ue();return lr=function(n){if("Function"===e(n))return t(n)}}function yr(){if(dr)return fr;dr=1;var e=v();return fr=function(t,n){var r=[][t];return!!r&&e((function(){r.call(null,n||function(){return 1},1)}))}}!function(){if(vr)return pr;vr=1;var e=er(),t=gr(),n=yn().indexOf,r=yr(),i=t([].indexOf),a=!!i&&1/i([1],1,-0)<0;e({target:"Array",proto:!0,forced:a||!r("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return a?i(this,e,t)||0:n(this,e,t)}})}();var mr,_r,br={};function kr(){if(_r)return mr;_r=1;var e=ar(),t=String;return mr=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}var Sr,Cr,wr,Ir,Er,Mr,Tr,Pr={};function Ar(){if(Cr)return Sr;Cr=1;var e=mn(),t=_n();return Sr=Object.keys||function(n){return e(n,t)}}function xr(){if(wr)return Pr;wr=1;var e=p(),t=_t(),n=kt(),r=bt(),i=de(),a=Ar();return Pr.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var o,s=i(t),u=a(t),c=u.length,l=0;c>l;)n.f(e,o=u[l++],s[o]);return e},Pr}function Rr(){if(Er)return Ir;Er=1;var e=ge();return Ir=e("document","documentElement")}function Lr(){if(Tr)return Mr;Tr=1;var e,t=bt(),n=xr(),r=_n(),i=qt(),a=Rr(),o=ut(),s=Vt(),u="prototype",c="script",l=s("IE_PROTO"),h=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,i;v="undefined"!=typeof document?document.domain&&e?d(e):(n=o("iframe"),i="java"+c+":",n.style.display="none",a.appendChild(n),n.src=String(i),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(e);for(var s=r.length;s--;)delete v[u][r[s]];return v()};return i[l]=!0,Mr=Object.create||function(e,r){var i;return null!==e?(h[u]=t(e),i=new h,h[u]=null,i[l]=e):i=v(),void 0===r?i:n.f(i,r)}}var Or,Dr,Nr,Wr,Ur,jr={};function Br(){if(Dr)return Or;Dr=1;var e=ue();return Or=e([].slice)}function Fr(){if(Nr)return jr;Nr=1;var e=ce(),t=de(),n=bn().f,r=Br(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return jr.f=function(a){return i&&"Window"===e(a)?function(e){try{return n(e)}catch(e){return r(i)}}(a):n(t(a))},jr}function Vr(){if(Ur)return Wr;Ur=1;var e=Ht(),t=kt();return Wr=function(n,r,i){return i.get&&e(i.get,r,{getter:!0}),i.set&&e(i.set,r,{setter:!0}),t.f(n,r,i)}}var qr,zr,Hr,Gr,Qr,Kr,$r,Yr,Jr,Xr,Zr,ei,ti,ni,ri={};function ii(){if(qr)return ri;qr=1;var e=at();return ri.f=e,ri}function ai(){if(Hr)return zr;Hr=1;var e=i();return zr=e}function oi(){if(Qr)return Gr;Qr=1;var e=ai(),t=rt(),n=ii(),r=kt().f;return Gr=function(i){var a=e.Symbol||(e.Symbol={});t(a,i)||r(a,i,{value:n.f(i)})}}function si(){if($r)return Kr;$r=1;var e=y(),t=ge(),n=at(),r=Gt();return Kr=function(){var i=t("Symbol"),a=i&&i.prototype,o=a&&a.valueOf,s=n("toPrimitive");a&&!a[s]&&r(a,s,(function(t){return e(o,this)}),{arity:1})}}function ui(){if(Jr)return Yr;Jr=1;var e=kt().f,t=rt(),n=at()("toStringTag");return Yr=function(r,i,a){r&&!a&&(r=r.prototype),r&&!t(r,n)&&e(r,n,{configurable:!0,value:i})}}function ci(){if(Zr)return Xr;Zr=1;var e=gr(),t=we(),n=g(),r=e(e.bind);return Xr=function(e,i){return t(e),void 0===i?e:n?r(e,i):function(){return e.apply(i,arguments)}},Xr}function li(){if(ti)return ei;ti=1;var e=ci(),t=ue(),n=le(),r=nt(),i=gn(),a=ur(),o=t([].push),s=function(t){var s=1===t,u=2===t,c=3===t,l=4===t,h=6===t,f=7===t,d=5===t||h;return function(v,p,g,y){for(var m,_,b=r(v),k=n(b),S=i(k),C=e(p,g),w=0,I=y||a,E=s?I(v,S):u||f?I(v,0):void 0;S>w;w++)if((d||w in k)&&(_=C(m=k[w],w,b),t))if(s)E[w]=_;else if(_)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:o(E,m)}else switch(t){case 4:return!1;case 7:o(E,m)}return h?-1:c||l?l:E}};return ei={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}var hi,fi,di,vi={};function pi(){if(fi)return hi;fi=1;var e=be();return hi=e&&!!Symbol.for&&!!Symbol.keyFor}var gi,yi={};var mi,_i,bi,ki,Si,Ci={};function wi(){if(_i)return mi;_i=1;var e=g(),t=Function.prototype,n=t.apply,r=t.call;return mi="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),mi}function Ii(){if(Si)return Ci;Si=1;var e=er(),t=ge(),n=wi(),r=y(),i=ue(),a=v(),o=ve(),s=Se(),u=Br(),c=function(){if(ki)return bi;ki=1;var e=ue(),t=tr(),n=ve(),r=ce(),i=kr(),a=e([].push);return bi=function(e){if(n(e))return e;if(t(e)){for(var o=e.length,s=[],u=0;u<o;u++){var c=e[u];"string"==typeof c?a(s,c):"number"!=typeof c&&"Number"!==r(c)&&"String"!==r(c)||a(s,i(c))}var l=s.length,h=!0;return function(e,n){if(h)return h=!1,n;if(t(this))return n;for(var r=0;r<l;r++)if(s[r]===e)return n}}},bi}(),l=be(),h=String,f=t("JSON","stringify"),d=i(/./.exec),p=i("".charAt),g=i("".charCodeAt),m=i("".replace),_=i(1..toString),b=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,C=!l||a((function(){var e=t("Symbol")("stringify detection");return"[null]"!==f([e])||"{}"!==f({a:e})||"{}"!==f(Object(e))})),w=a((function(){return'"\\udf06\\ud834"'!==f("\udf06\ud834")||'"\\udead"'!==f("\udead")})),I=function(e,t){var i=u(arguments),a=c(t);if(o(a)||void 0!==e&&!s(e))return i[1]=function(e,t){if(o(a)&&(t=r(a,this,h(e),t)),!s(t))return t},n(f,null,i)},E=function(e,t,n){var r=p(n,t-1),i=p(n,t+1);return d(k,e)&&!d(S,i)||d(S,e)&&!d(k,r)?"\\u"+_(g(e,0),16):e};return f&&e({target:"JSON",stat:!0,arity:3,forced:C||w},{stringify:function(e,t,r){var i=u(arguments),a=n(C?I:f,null,i);return w&&"string"==typeof a?m(a,b,E):a}}),Ci}var Ei,Mi,Ti={};Mi||(Mi=1,function(){if(ni)return br;ni=1;var e=er(),t=i(),n=y(),r=ue(),a=Xe(),o=p(),s=be(),u=v(),c=rt(),l=ye(),h=bt(),f=de(),d=st(),g=kr(),m=se(),_=Lr(),b=Ar(),k=bn(),S=Fr(),C=Yn(),w=lt(),I=kt(),E=xr(),M=oe(),T=Gt(),P=Vr(),A=tt(),x=Vt(),R=qt(),L=it(),O=at(),D=ii(),N=oi(),W=si(),U=ui(),j=zt(),B=li().forEach,F=x("hidden"),V="Symbol",q="prototype",z=j.set,H=j.getterFor(V),G=Object[q],Q=t.Symbol,K=Q&&Q[q],$=t.RangeError,Y=t.TypeError,J=t.QObject,X=w.f,Z=I.f,ee=S.f,te=M.f,ne=r([].push),re=A("symbols"),ie=A("op-symbols"),ae=A("wks"),ce=!J||!J[q]||!J[q].findChild,le=function(e,t,n){var r=X(G,t);r&&delete G[t],Z(e,t,n),r&&e!==G&&Z(G,t,r)},he=o&&u((function(){return 7!==_(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?le:Z,fe=function(e,t){var n=re[e]=_(K);return z(n,{type:V,tag:e,description:t}),o||(n.description=t),n},ve=function(e,t,n){e===G&&ve(ie,t,n),h(e);var r=d(t);return h(n),c(re,r)?(n.enumerable?(c(e,F)&&e[F][r]&&(e[F][r]=!1),n=_(n,{enumerable:m(0,!1)})):(c(e,F)||Z(e,F,m(1,_(null))),e[F][r]=!0),he(e,r,n)):Z(e,r,n)},pe=function(e,t){h(e);var r=f(t),i=b(r).concat(ke(r));return B(i,(function(t){o&&!n(ge,r,t)||ve(e,t,r[t])})),e},ge=function(e){var t=d(e),r=n(te,this,t);return!(this===G&&c(re,t)&&!c(ie,t))&&(!(r||!c(this,t)||!c(re,t)||c(this,F)&&this[F][t])||r)},me=function(e,t){var n=f(e),r=d(t);if(n!==G||!c(re,r)||c(ie,r)){var i=X(n,r);return!i||!c(re,r)||c(n,F)&&n[F][r]||(i.enumerable=!0),i}},_e=function(e){var t=ee(f(e)),n=[];return B(t,(function(e){c(re,e)||c(R,e)||ne(n,e)})),n},ke=function(e){var t=e===G,n=ee(t?ie:f(e)),r=[];return B(n,(function(e){!c(re,e)||t&&!c(G,e)||ne(r,re[e])})),r};s||(Q=function(){if(l(K,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,r=L(e),i=function(e){var a=void 0===this?t:this;a===G&&n(i,ie,e),c(a,F)&&c(a[F],r)&&(a[F][r]=!1);var o=m(1,e);try{he(a,r,o)}catch(e){if(!(e instanceof $))throw e;le(a,r,o)}};return o&&ce&&he(G,r,{configurable:!0,set:i}),fe(r,e)},T(K=Q[q],"toString",(function(){return H(this).tag})),T(Q,"withoutSetter",(function(e){return fe(L(e),e)})),M.f=ge,I.f=ve,E.f=pe,w.f=me,k.f=S.f=_e,C.f=ke,D.f=function(e){return fe(O(e),e)},o&&(P(K,"description",{configurable:!0,get:function(){return H(this).description}}),a||T(G,"propertyIsEnumerable",ge,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:Q}),B(b(ae),(function(e){N(e)})),e({target:V,stat:!0,forced:!s},{useSetter:function(){ce=!0},useSimple:function(){ce=!1}}),e({target:"Object",stat:!0,forced:!s,sham:!o},{create:function(e,t){return void 0===t?_(e):pe(_(e),t)},defineProperty:ve,defineProperties:pe,getOwnPropertyDescriptor:me}),e({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:_e}),W(),U(Q,V),R[F]=!0}(),function(){if(di)return vi;di=1;var e=er(),t=ge(),n=rt(),r=kr(),i=tt(),a=pi(),o=i("string-to-symbol-registry"),s=i("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!a},{for:function(e){var i=r(e);if(n(o,i))return o[i];var a=t("Symbol")(i);return o[i]=a,s[a]=i,a}})}(),function(){if(gi)return yi;gi=1;var e=er(),t=rt(),n=Se(),r=Ce(),i=tt(),a=pi(),o=i("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!a},{keyFor:function(e){if(!n(e))throw new TypeError(r(e)+" is not a symbol");if(t(o,e))return o[e]}})}(),Ii(),function(){if(Ei)return Ti;Ei=1;var e=er(),t=be(),n=v(),r=Yn(),i=nt();e({target:"Object",stat:!0,forced:!t||n((function(){r.f(1)}))},{getOwnPropertySymbols:function(e){var t=r.f;return t?t(i(e)):[]}})}());var Pi,Ai,xi,Ri,Li,Oi,Di,Ni,Wi,Ui,ji,Bi,Fi,Vi,qi,zi,Hi,Gi,Qi,Ki,$i,Yi,Ji,Xi,Zi,ea,ta,na,ra,ia,aa,oa,sa,ua,ca,la,ha,fa,da,va,pa,ga,ya,ma,_a={};function ba(){if(Ai)return Pi;Ai=1;var e=i(),t=me(),n=ce(),r=function(e){return t.slice(0,e.length)===e};return Pi=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"}function ka(){if(Ri)return xi;Ri=1;var e=ba();return xi="NODE"===e}function Sa(){if(Ni)return Di;Ni=1;var e=pe();return Di=function(t){return e(t)||null===t}}function Ca(){if(Ui)return Wi;Ui=1;var e=Sa(),t=String,n=TypeError;return Wi=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function wa(){if(Bi)return ji;Bi=1;var e=function(){if(Oi)return Li;Oi=1;var e=ue(),t=we();return Li=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(e){}}}(),t=pe(),n=fe(),r=Ca();return ji=Object.setPrototypeOf||("__proto__"in{}?function(){var i,a=!1,o={};try{(i=e(Object.prototype,"__proto__","set"))(o,[]),a=o instanceof Array}catch(e){}return function(e,o){return n(e),r(o),t(e)?(a?i(e,o):e.__proto__=o,e):e}}():void 0)}function Ia(){if(Vi)return Fi;Vi=1;var e=ge(),t=Vr(),n=at(),r=p(),i=n("species");return Fi=function(n){var a=e(n);r&&a&&!a[i]&&t(a,i,{configurable:!0,get:function(){return this}})}}function Ea(){if(zi)return qi;zi=1;var e=ye(),t=TypeError;return qi=function(n,r){if(e(r,n))return n;throw new t("Incorrect invocation")}}function Ma(){if(Gi)return Hi;Gi=1;var e=or(),t=Ce(),n=TypeError;return Hi=function(r){if(e(r))return r;throw new n(t(r)+" is not a constructor")}}function Ta(){if(Ki)return Qi;Ki=1;var e=bt(),t=Ma(),n=he(),r=at()("species");return Qi=function(i,a){var o,s=e(i).constructor;return void 0===s||n(o=e(s)[r])?a:t(o)}}function Pa(){if(Yi)return $i;Yi=1;var e=TypeError;return $i=function(t,n){if(t<n)throw new e("Not enough arguments");return t}}function Aa(){if(Xi)return Ji;Xi=1;var e=me();return Ji=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)}function xa(){if(ea)return Zi;ea=1;var e,t,n,r,a=i(),o=wi(),s=ci(),u=ve(),c=rt(),l=v(),h=Rr(),f=Br(),d=ut(),p=Pa(),g=Aa(),y=ka(),m=a.setImmediate,_=a.clearImmediate,b=a.process,k=a.Dispatch,S=a.Function,C=a.MessageChannel,w=a.String,I=0,E={},M="onreadystatechange";l((function(){e=a.location}));var T=function(e){if(c(E,e)){var t=E[e];delete E[e],t()}},P=function(e){return function(){T(e)}},A=function(e){T(e.data)},x=function(t){a.postMessage(w(t),e.protocol+"//"+e.host)};return m&&_||(m=function(e){p(arguments.length,1);var n=u(e)?e:S(e),r=f(arguments,1);return E[++I]=function(){o(n,void 0,r)},t(I),I},_=function(e){delete E[e]},y?t=function(e){b.nextTick(P(e))}:k&&k.now?t=function(e){k.now(P(e))}:C&&!g?(r=(n=new C).port2,n.port1.onmessage=A,t=s(r.postMessage,r)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&e&&"file:"!==e.protocol&&!l(x)?(t=x,a.addEventListener("message",A,!1)):t=M in d("script")?function(e){h.appendChild(d("script"))[M]=function(){h.removeChild(this),T(e)}}:function(e){setTimeout(P(e),0)}),Zi={set:m,clear:_}}function Ra(){if(na)return ta;na=1;var e=i(),t=p(),n=Object.getOwnPropertyDescriptor;return ta=function(r){if(!t)return e[r];var i=n(e,r);return i&&i.value}}function La(){if(ia)return ra;ia=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},ra=e}function Oa(){if(la)return ca;la=1;var e,t,n,r,a,o=i(),s=Ra(),u=ci(),c=xa().set,l=La(),h=Aa(),f=function(){if(oa)return aa;oa=1;var e=me();return aa=/ipad|iphone|ipod/i.test(e)&&"undefined"!=typeof Pebble}(),d=function(){if(ua)return sa;ua=1;var e=me();return sa=/web0s(?!.*chrome)/i.test(e)}(),v=ka(),p=o.MutationObserver||o.WebKitMutationObserver,g=o.document,y=o.process,m=o.Promise,_=s("queueMicrotask");if(!_){var b=new l,k=function(){var t,n;for(v&&(t=y.domain)&&t.exit();n=b.get();)try{n()}catch(t){throw b.head&&e(),t}t&&t.enter()};h||v||d||!p||!g?!f&&m&&m.resolve?((r=m.resolve(void 0)).constructor=m,a=u(r.then,r),e=function(){a(k)}):v?e=function(){y.nextTick(k)}:(c=u(c,o),e=function(){c(k)}):(t=!0,n=g.createTextNode(""),new p(k).observe(n,{characterData:!0}),e=function(){n.data=t=!t}),_=function(t){b.head||e(),b.add(t)}}return ca=_}function Da(){return fa||(fa=1,ha=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}),ha}function Na(){return va?da:(va=1,da=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}})}function Wa(){if(ga)return pa;ga=1;var e=i();return pa=e.Promise}function Ua(){if(ma)return ya;ma=1;var e=i(),t=Wa(),n=ve(),r=Zn(),a=Bt(),o=at(),s=ba(),u=Xe(),c=_e(),l=t&&t.prototype,h=o("species"),f=!1,d=n(e.PromiseRejectionEvent),v=r("Promise",(function(){var e=a(t),n=e!==String(t);if(!n&&66===c)return!0;if(u&&(!l.catch||!l.finally))return!0;if(!c||c<51||!/native code/.test(e)){var r=new t((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=i,!(f=r.then((function(){}))instanceof i))return!0}return!(n||"BROWSER"!==s&&"DENO"!==s||d)}));return ya={CONSTRUCTOR:v,REJECTION_EVENT:d,SUBCLASSING:f}}var ja,Ba,Fa={};function Va(){if(ja)return Fa;ja=1;var e=we(),t=TypeError,n=function(n){var r,i;this.promise=new n((function(e,n){if(void 0!==r||void 0!==i)throw new t("Bad Promise constructor");r=e,i=n})),this.resolve=e(r),this.reject=e(i)};return Fa.f=function(e){return new n(e)},Fa}var qa,za,Ha,Ga,Qa,Ka,$a,Ya,Ja,Xa,Za,eo,to,no,ro,io,ao,oo={};function so(){return za?qa:(za=1,qa={})}function uo(){if(Ga)return Ha;Ga=1;var e=at(),t=so(),n=e("iterator"),r=Array.prototype;return Ha=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function co(){if(Ka)return Qa;Ka=1;var e=ar(),t=Ie(),n=he(),r=so(),i=at()("iterator");return Qa=function(a){if(!n(a))return t(a,i)||t(a,"@@iterator")||r[e(a)]}}function lo(){if(Ya)return $a;Ya=1;var e=y(),t=we(),n=bt(),r=Ce(),i=co(),a=TypeError;return $a=function(o,s){var u=arguments.length<2?i(o):s;if(t(u))return n(e(u,o));throw new a(r(o)+" is not iterable")},$a}function ho(){if(Xa)return Ja;Xa=1;var e=y(),t=bt(),n=Ie();return Ja=function(r,i,a){var o,s;t(r);try{if(!(o=n(r,"return"))){if("throw"===i)throw a;return a}o=e(o,r)}catch(e){s=!0,o=e}if("throw"===i)throw a;if(s)throw o;return t(o),a}}function fo(){if(eo)return Za;eo=1;var e=ci(),t=y(),n=bt(),r=Ce(),i=uo(),a=gn(),o=ye(),s=lo(),u=co(),c=ho(),l=TypeError,h=function(e,t){this.stopped=e,this.result=t},f=h.prototype;return Za=function(d,v,p){var g,y,m,_,b,k,S,C=p&&p.that,w=!(!p||!p.AS_ENTRIES),I=!(!p||!p.IS_RECORD),E=!(!p||!p.IS_ITERATOR),M=!(!p||!p.INTERRUPTED),T=e(v,C),P=function(e){return g&&c(g,"normal",e),new h(!0,e)},A=function(e){return w?(n(e),M?T(e[0],e[1],P):T(e[0],e[1])):M?T(e,P):T(e)};if(I)g=d.iterator;else if(E)g=d;else{if(!(y=u(d)))throw new l(r(d)+" is not iterable");if(i(y)){for(m=0,_=a(d);_>m;m++)if((b=A(d[m]))&&o(f,b))return b;return new h(!1)}g=s(d,y)}for(k=I?d.next:g.next;!(S=t(k,g)).done;){try{b=A(S.value)}catch(e){c(g,"throw",e)}if("object"==typeof b&&b&&o(f,b))return b}return new h(!1)},Za}function vo(){if(no)return to;no=1;var e=at()("iterator"),t=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){t=!0}};r[e]=function(){return this},Array.from(r,(function(){throw 2}))}catch(e){}return to=function(n,r){try{if(!r&&!t)return!1}catch(e){return!1}var i=!1;try{var a={};a[e]=function(){return{next:function(){return{done:i=!0}}}},n(a)}catch(e){}return i}}function po(){if(io)return ro;io=1;var e=Wa(),t=vo(),n=Ua().CONSTRUCTOR;return ro=n||!t((function(t){e.all(t).then(void 0,(function(){}))}))}var go,yo={};var mo,_o={};var bo,ko={};var So,Co,wo,Io,Eo={};function Mo(){if(Co)return So;Co=1;var e=bt(),t=pe(),n=Va();return So=function(r,i){if(e(r),t(i)&&i.constructor===r)return i;var a=n.f(r);return(0,a.resolve)(i),a.promise}}Io||(Io=1,function(){if(Ba)return _a;Ba=1;var e,t,n,r=er(),a=Xe(),o=ka(),s=i(),u=y(),c=Gt(),l=wa(),h=ui(),f=Ia(),d=we(),v=ve(),p=pe(),g=Ea(),m=Ta(),_=xa().set,b=Oa(),k=Da(),S=Na(),C=La(),w=zt(),I=Wa(),E=Ua(),M=Va(),T="Promise",P=E.CONSTRUCTOR,A=E.REJECTION_EVENT,x=E.SUBCLASSING,R=w.getterFor(T),L=w.set,O=I&&I.prototype,D=I,N=O,W=s.TypeError,U=s.document,j=s.process,B=M.f,F=B,V=!!(U&&U.createEvent&&s.dispatchEvent),q="unhandledrejection",z=function(e){var t;return!(!p(e)||!v(t=e.then))&&t},H=function(e,t){var n,r,i,a=t.value,o=1===t.state,s=o?e.ok:e.fail,c=e.resolve,l=e.reject,h=e.domain;try{s?(o||(2===t.rejection&&Y(t),t.rejection=1),!0===s?n=a:(h&&h.enter(),n=s(a),h&&(h.exit(),i=!0)),n===e.promise?l(new W("Promise-chain cycle")):(r=z(n))?u(r,n,c,l):c(n)):l(a)}catch(e){h&&!i&&h.exit(),l(e)}},G=function(e,t){e.notified||(e.notified=!0,b((function(){for(var n,r=e.reactions;n=r.get();)H(n,e);e.notified=!1,t&&!e.rejection&&K(e)})))},Q=function(e,t,n){var r,i;V?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},!A&&(i=s["on"+e])?i(r):e===q&&k("Unhandled promise rejection",n)},K=function(e){u(_,s,(function(){var t,n=e.facade,r=e.value;if($(e)&&(t=S((function(){o?j.emit("unhandledRejection",r,n):Q(q,n,r)})),e.rejection=o||$(e)?2:1,t.error))throw t.value}))},$=function(e){return 1!==e.rejection&&!e.parent},Y=function(e){u(_,s,(function(){var t=e.facade;o?j.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},J=function(e,t,n){return function(r){e(t,r,n)}},X=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,G(e,!0))},Z=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new W("Promise can't be resolved itself");var r=z(t);r?b((function(){var n={done:!1};try{u(r,t,J(Z,n,e),J(X,n,e))}catch(t){X(n,t,e)}})):(e.value=t,e.state=1,G(e,!1))}catch(t){X({done:!1},t,e)}}};if(P&&(N=(D=function(t){g(this,N),d(t),u(e,this);var n=R(this);try{t(J(Z,n),J(X,n))}catch(e){X(n,e)}}).prototype,(e=function(e){L(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=c(N,"then",(function(e,t){var n=R(this),r=B(m(this,D));return n.parent=!0,r.ok=!v(e)||e,r.fail=v(t)&&t,r.domain=o?j.domain:void 0,0===n.state?n.reactions.add(r):b((function(){H(r,n)})),r.promise})),t=function(){var t=new e,n=R(t);this.promise=t,this.resolve=J(Z,n),this.reject=J(X,n)},M.f=B=function(e){return e===D||void 0===e?new t(e):F(e)},!a&&v(I)&&O!==Object.prototype)){n=O.then,x||c(O,"then",(function(e,t){var r=this;return new D((function(e,t){u(n,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete O.constructor}catch(e){}l&&l(O,N)}r({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:D}),h(D,T,!1,!0),f(T)}(),function(){if(ao)return oo;ao=1;var e=er(),t=y(),n=we(),r=Va(),i=Na(),a=fo();e({target:"Promise",stat:!0,forced:po()},{all:function(e){var o=this,s=r.f(o),u=s.resolve,c=s.reject,l=i((function(){var r=n(o.resolve),i=[],s=0,l=1;a(e,(function(e){var n=s++,a=!1;l++,t(r,o,e).then((function(e){a||(a=!0,i[n]=e,--l||u(i))}),c)})),--l||u(i)}));return l.error&&c(l.value),s.promise}})}(),function(){if(go)return yo;go=1;var e=er(),t=Xe(),n=Ua().CONSTRUCTOR,r=Wa(),i=ge(),a=ve(),o=Gt(),s=r&&r.prototype;if(e({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&a(r)){var u=i("Promise").prototype.catch;s.catch!==u&&o(s,"catch",u,{unsafe:!0})}}(),function(){if(mo)return _o;mo=1;var e=er(),t=y(),n=we(),r=Va(),i=Na(),a=fo();e({target:"Promise",stat:!0,forced:po()},{race:function(e){var o=this,s=r.f(o),u=s.reject,c=i((function(){var r=n(o.resolve);a(e,(function(e){t(r,o,e).then(s.resolve,u)}))}));return c.error&&u(c.value),s.promise}})}(),function(){if(bo)return ko;bo=1;var e=er(),t=Va();e({target:"Promise",stat:!0,forced:Ua().CONSTRUCTOR},{reject:function(e){var n=t.f(this);return(0,n.reject)(e),n.promise}})}(),function(){if(wo)return Eo;wo=1;var e=er(),t=ge(),n=Xe(),r=Wa(),i=Ua().CONSTRUCTOR,a=Mo(),o=t("Promise"),s=n&&!i;e({target:"Promise",stat:!0,forced:n||i},{resolve:function(e){return a(s&&this===o?r:this,e)}})}());var To,Po,Ao,xo={};!function(){if(Ao)return xo;Ao=1;var e=ir(),t=Gt(),n=function(){if(Po)return To;Po=1;var e=ir(),t=ar();return To=e?{}.toString:function(){return"[object "+t(this)+"]"}}();e||t(Object.prototype,"toString",n,{unsafe:!0})}();var Ro,Lo={};!function(){if(Ro)return Lo;Ro=1;var e=er(),t=p(),n=i(),r=ue(),a=rt(),o=ve(),s=ye(),u=kr(),c=Vr(),l=Xn(),h=n.Symbol,f=h&&h.prototype;if(t&&o(h)&&(!("description"in f)||void 0!==h().description)){var d={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=s(f,this)?new h(e):void 0===e?h():h(e);return""===e&&(d[t]=!0),t};l(v,h),v.prototype=f,f.constructor=v;var g="Symbol(description detection)"===String(h("description detection")),y=r(f.valueOf),m=r(f.toString),_=/^Symbol\((.*)\)[^)]+$/,b=r("".replace),k=r("".slice);c(f,"description",{configurable:!0,get:function(){var e=y(this);if(a(d,e))return"";var t=m(e),n=g?k(t,7,-1):b(t,_,"$1");return""===n?void 0:n}}),e({global:!0,constructor:!0,forced:!0},{Symbol:v})}}();var Oo,Do,No,Wo,Uo,jo,Bo,Fo,Vo,qo,zo,Ho,Go,Qo,Ko,$o,Yo;function Jo(){if(No)return Do;No=1;var e=at(),t=Lr(),n=kt().f,r=e("unscopables"),i=Array.prototype;return void 0===i[r]&&n(i,r,{configurable:!0,value:t(null)}),Do=function(e){i[r][e]=!0}}function Xo(){if(Uo)return Wo;Uo=1;var e=v();return Wo=!e((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))}function Zo(){if(Bo)return jo;Bo=1;var e=rt(),t=ve(),n=nt(),r=Vt(),i=Xo(),a=r("IE_PROTO"),o=Object,s=o.prototype;return jo=i?o.getPrototypeOf:function(r){var i=n(r);if(e(i,a))return i[a];var u=i.constructor;return t(u)&&i instanceof u?u.prototype:i instanceof o?s:null}}function es(){if(Vo)return Fo;Vo=1;var e,t,n,r=v(),i=ve(),a=pe(),o=Lr(),s=Zo(),u=Gt(),c=at(),l=Xe(),h=c("iterator"),f=!1;return[].keys&&("next"in(n=[].keys())?(t=s(s(n)))!==Object.prototype&&(e=t):f=!0),!a(e)||r((function(){var t={};return e[h].call(t)!==t}))?e={}:l&&(e=o(e)),i(e[h])||u(e,h,(function(){return this})),Fo={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function ts(){if(zo)return qo;zo=1;var e=es().IteratorPrototype,t=Lr(),n=se(),r=ui(),i=so(),a=function(){return this};return qo=function(o,s,u,c){var l=s+" Iterator";return o.prototype=t(e,{next:n(+!c,u)}),r(o,l,!1,!0),i[l]=a,o}}function ns(){if(Go)return Ho;Go=1;var e=er(),t=y(),n=Xe(),r=jt(),i=ve(),a=ts(),o=Zo(),s=wa(),u=ui(),c=St(),l=Gt(),h=at(),f=so(),d=es(),v=r.PROPER,p=r.CONFIGURABLE,g=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,_=h("iterator"),b="keys",k="values",S="entries",C=function(){return this};return Ho=function(r,h,d,y,w,I,E){a(d,h,y);var M,T,P,A=function(e){if(e===w&&D)return D;if(!m&&e&&e in L)return L[e];switch(e){case b:case k:case S:return function(){return new d(this,e)}}return function(){return new d(this)}},x=h+" Iterator",R=!1,L=r.prototype,O=L[_]||L["@@iterator"]||w&&L[w],D=!m&&O||A(w),N="Array"===h&&L.entries||O;if(N&&(M=o(N.call(new r)))!==Object.prototype&&M.next&&(n||o(M)===g||(s?s(M,g):i(M[_])||l(M,_,C)),u(M,x,!0,!0),n&&(f[x]=C)),v&&w===k&&O&&O.name!==k&&(!n&&p?c(L,"name",k):(R=!0,D=function(){return t(O,this)})),w)if(T={values:A(k),keys:I?D:A(b),entries:A(S)},E)for(P in T)(m||R||!(P in L))&&l(L,P,T[P]);else e({target:h,proto:!0,forced:m||R},T);return n&&!E||L[_]===D||l(L,_,D,{name:w}),f[h]=D,T}}function rs(){return Ko?Qo:(Ko=1,Qo=function(e,t){return{value:e,done:t}})}function is(){if(Yo)return $o;Yo=1;var e=de(),t=Jo(),n=so(),r=zt(),i=kt().f,a=ns(),o=rs(),s=Xe(),u=p(),c="Array Iterator",l=r.set,h=r.getterFor(c);$o=a(Array,"Array",(function(t,n){l(this,{type:c,target:e(t),index:0,kind:n})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,o(void 0,!0);switch(e.kind){case"keys":return o(n,!1);case"values":return o(t[n],!1)}return o([n,t[n]],!1)}),"values");var f=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!s&&u&&"values"!==f.name)try{i(f,"name",{value:"values"})}catch(e){}return $o}Oo||(Oo=1,oi()("iterator")),is();var as,os,ss,us,cs,ls={};!function(){if(cs)return ls;cs=1;var e=i(),t=os?as:(os=1,as={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}),n=function(){if(us)return ss;us=1;var e=ut()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return ss=t===Object.prototype?void 0:t}(),r=is(),a=St(),o=ui(),s=at()("iterator"),u=r.values,c=function(e,n){if(e){if(e[s]!==u)try{a(e,s,u)}catch(t){e[s]=u}if(o(e,n,!0),t[n])for(var i in r)if(e[i]!==r[i])try{a(e,i,r[i])}catch(t){e[i]=r[i]}}};for(var l in t)c(e[l]&&e[l].prototype,l);c(n,"DOMTokenList")}();var hs,fs,ds,vs={};function ps(){if(fs)return hs;fs=1;var e=ue(),t=dn(),n=kr(),r=fe(),i=e("".charAt),a=e("".charCodeAt),o=e("".slice),s=function(e){return function(s,u){var c,l,h=n(r(s)),f=t(u),d=h.length;return f<0||f>=d?e?"":void 0:(c=a(h,f))<55296||c>56319||f+1===d||(l=a(h,f+1))<56320||l>57343?e?i(h,f):c:e?o(h,f,f+2):l-56320+(c-55296<<10)+65536}};return hs={codeAt:s(!1),charAt:s(!0)}}function gs(){if(ds)return vs;ds=1;var e=ps().charAt,t=kr(),n=zt(),r=ns(),i=rs(),a="String Iterator",o=n.set,s=n.getterFor(a);return r(String,"String",(function(e){o(this,{type:a,string:t(e),index:0})}),(function(){var t,n=s(this),r=n.string,a=n.index;return a>=r.length?i(void 0,!0):(t=e(r,a),n.index+=t.length,i(t,!1))})),vs}gs();var ys;ys||(ys=1,oi()("asyncIterator"));var ms,_s={};!function(){if(ms)return _s;ms=1;var e=p(),t=jt().EXISTS,n=ue(),r=Vr(),i=Function.prototype,a=n(i.toString),o=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=n(o.exec);e&&!t&&r(i,"name",{configurable:!0,get:function(){try{return s(o,a(this))[1]}catch(e){return""}}})}();var bs;bs||(bs=1,er()({target:"Object",stat:!0,sham:!p()},{create:Lr()}));var ks,Ss,Cs,ws={};!function(){if(Cs)return ws;Cs=1;var e=er(),t=function(){if(Ss)return ks;Ss=1;var e=li().forEach,t=yr()("forEach");return ks=t?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)},ks}();e({target:"Array",proto:!0,forced:[].forEach!==t},{forEach:t})}();var Is,Es,Ms,Ts,Ps,As,xs,Rs,Ls,Os,Ds,Ns,Ws,Us,js,Bs,Fs,Vs={};function qs(){if(Es)return Is;Es=1;var e=ve(),t=pe(),n=wa();return Is=function(r,i,a){var o,s;return n&&e(o=i.constructor)&&o!==a&&t(s=o.prototype)&&s!==a.prototype&&n(r,s),r}}function zs(){if(Ts)return Ms;Ts=1;var e=pe(),t=ce(),n=at()("match");return Ms=function(r){var i;return e(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===t(r))}}function Hs(){if(As)return Ps;As=1;var e=bt();return Ps=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function Gs(){if(Rs)return xs;Rs=1;var e=y(),t=rt(),n=ye(),r=Hs(),i=RegExp.prototype;return xs=function(a){var o=a.flags;return void 0!==o||"flags"in i||t(a,"flags")||!n(i,a)?o:e(r,a)}}function Qs(){if(Os)return Ls;Os=1;var e=v(),t=i().RegExp,n=e((function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),r=n||e((function(){return!t("a","y").sticky})),a=n||e((function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));return Ls={BROKEN_CARET:a,MISSED_STICKY:r,UNSUPPORTED_Y:n}}function Ks(){if(Ns)return Ds;Ns=1;var e=kt().f;return Ds=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})}}function $s(){if(Us)return Ws;Us=1;var e=v(),t=i().RegExp;return Ws=e((function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))}function Ys(){if(Bs)return js;Bs=1;var e=v(),t=i().RegExp;return js=e((function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))}!function(){if(Fs)return Vs;Fs=1;var e=p(),t=i(),n=ue(),r=Zn(),a=qs(),o=St(),s=Lr(),u=bn().f,c=ye(),l=zs(),h=kr(),f=Gs(),d=Qs(),g=Ks(),y=Gt(),m=v(),_=rt(),b=zt().enforce,k=Ia(),S=at(),C=$s(),w=Ys(),I=S("match"),E=t.RegExp,M=E.prototype,T=t.SyntaxError,P=n(M.exec),A=n("".charAt),x=n("".replace),R=n("".indexOf),L=n("".slice),O=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,N=/a/g,W=new E(D)!==D,U=d.MISSED_STICKY,j=d.UNSUPPORTED_Y,B=e&&(!W||U||C||w||m((function(){return N[I]=!1,E(D)!==D||E(N)===N||"/a/i"!==String(E(D,"i"))})));if(r("RegExp",B)){for(var F=function(e,t){var n,r,i,u,d,v,p=c(M,this),g=l(e),y=void 0===t,m=[],k=e;if(!p&&g&&y&&e.constructor===F)return e;if((g||c(M,e))&&(e=e.source,y&&(t=f(k))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),k=e,C&&"dotAll"in D&&(r=!!t&&R(t,"s")>-1)&&(t=x(t,/s/g,"")),n=t,U&&"sticky"in D&&(i=!!t&&R(t,"y")>-1)&&j&&(t=x(t,/y/g,"")),w&&(u=function(e){for(var t,n=e.length,r=0,i="",a=[],o=s(null),u=!1,c=!1,l=0,h="";r<=n;r++){if("\\"===(t=A(e,r)))t+=A(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:if(i+=t,"?:"===L(e,r+1,r+3))continue;P(O,L(e,r+1))&&(r+=2,c=!0),l++;continue;case">"===t&&c:if(""===h||_(o,h))throw new T("Invalid capture group name");o[h]=!0,a[a.length]=[h,l],c=!1,h="";continue}c?h+=t:i+=t}return[i,a]}(e),e=u[0],m=u[1]),d=a(E(e,t),p?this:M,F),(r||i||m.length)&&(v=b(d),r&&(v.dotAll=!0,v.raw=F(function(e){for(var t,n=e.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(t=A(e,r))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+A(e,++r);return i}(e),n)),i&&(v.sticky=!0),m.length&&(v.groups=m)),e!==k)try{o(d,"source",""===k?"(?:)":k)}catch(e){}return d},V=u(E),q=0;V.length>q;)g(F,E,V[q++]);M.constructor=F,F.prototype=M,y(t,"RegExp",F,{constructor:!0})}k("RegExp")}();var Js,Xs,Zs,eu={};function tu(){if(Xs)return Js;Xs=1;var e,t,n=y(),r=ue(),i=kr(),a=Hs(),o=Qs(),s=tt(),u=Lr(),c=zt().get,l=$s(),h=Ys(),f=s("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,v=d,p=r("".charAt),g=r("".indexOf),m=r("".replace),_=r("".slice),b=(t=/b*/g,n(d,e=/a/,"a"),n(d,t,"a"),0!==e.lastIndex||0!==t.lastIndex),k=o.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];return(b||S||k||l||h)&&(v=function(e){var t,r,o,s,l,h,y,C=this,w=c(C),I=i(e),E=w.raw;if(E)return E.lastIndex=C.lastIndex,t=n(v,E,I),C.lastIndex=E.lastIndex,t;var M=w.groups,T=k&&C.sticky,P=n(a,C),A=C.source,x=0,R=I;if(T&&(P=m(P,"y",""),-1===g(P,"g")&&(P+="g"),R=_(I,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==p(I,C.lastIndex-1))&&(A="(?: "+A+")",R=" "+R,x++),r=new RegExp("^(?:"+A+")",P)),S&&(r=new RegExp("^"+A+"$(?!\\s)",P)),b&&(o=C.lastIndex),s=n(d,T?r:C,R),T?s?(s.input=_(s.input,x),s[0]=_(s[0],x),s.index=C.lastIndex,C.lastIndex+=s[0].length):C.lastIndex=0:b&&s&&(C.lastIndex=C.global?s.index+s[0].length:o),S&&s&&s.length>1&&n(f,s[0],r,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&M)for(s.groups=h=u(null),l=0;l<M.length;l++)h[(y=M[l])[0]]=s[y[1]];return s}),Js=v}function nu(){if(Zs)return eu;Zs=1;var e=er(),t=tu();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),eu}nu();var ru,iu={};!function(){if(ru)return iu;ru=1;var e=jt().PROPER,t=Gt(),n=bt(),r=kr(),i=v(),a=Gs(),o="toString",s=RegExp.prototype,u=s[o],c=i((function(){return"/a/b"!==u.call({source:"a",flags:"b"})})),l=e&&u.name!==o;(c||l)&&t(s,o,(function(){var e=n(this);return"/"+r(e.source)+"/"+r(a(e))}),{unsafe:!0})}();var au,ou={};!function(){if(au)return ou;au=1;var e=er(),t=ue(),n=le(),r=de(),i=yr(),a=t([].join);e({target:"Array",proto:!0,forced:n!==Object||!i("join",",")},{join:function(e){return a(r(this),void 0===e?",":e)}})}();var su,uu,cu,lu,hu,fu,du,vu,pu,gu={};function yu(){if(uu)return su;uu=1,nu();var e=y(),t=Gt(),n=tu(),r=v(),i=at(),a=St(),o=i("species"),s=RegExp.prototype;return su=function(u,c,l,h){var f=i(u),d=!r((function(){var e={};return e[f]=function(){return 7},7!==""[u](e)})),v=d&&!r((function(){var e=!1,t=/a/;return"split"===u&&((t={}).constructor={},t.constructor[o]=function(){return t},t.flags="",t[f]=/./[f]),t.exec=function(){return e=!0,null},t[f](""),!e}));if(!d||!v||l){var p=/./[f],g=c(f,""[u],(function(t,r,i,a,o){var u=r.exec;return u===n||u===s.exec?d&&!o?{done:!0,value:e(p,r,i,a)}:{done:!0,value:e(t,i,r,a)}:{done:!1}}));t(String.prototype,u,g[0]),t(s,f,g[1])}h&&a(s[f],"sham",!0)}}function mu(){if(lu)return cu;lu=1;var e=ps().charAt;return cu=function(t,n,r){return n+(r?e(t,n).length:1)},cu}function _u(){if(fu)return hu;fu=1;var e=ue(),t=nt(),n=Math.floor,r=e("".charAt),i=e("".replace),a=e("".slice),o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return hu=function(e,u,c,l,h,f){var d=c+e.length,v=l.length,p=s;return void 0!==h&&(h=t(h),p=o),i(f,p,(function(t,i){var o;switch(r(i,0)){case"$":return"$";case"&":return e;case"`":return a(u,0,c);case"'":return a(u,d);case"<":o=h[a(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>v){var f=n(s/10);return 0==