@wowzamediasystems/sdk-rts
Version:
SDK for building a realtime broadcaster using the Wowza platform.
1 lines • 185 kB
JavaScript
"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var s=e.apply(t,n);function a(e){r(s,i,o,a,c,"next",e)}function c(e){r(s,i,o,a,c,"throw",e)}a(void 0)}))}}function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}Object.defineProperty(exports,"__esModule",{value:!0});var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(e){var t={exports:{}};return e(t,t.exports),t.exports}var d,f,p=function(e){return e&&e.Math==Math&&e},h=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof u&&u)||function(){return this}()||Function("return this")(),g=function(e){try{return!!e()}catch(e){return!0}},m=!g((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!g((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),y=Function.prototype.call,b=v?y.bind(y):function(){return y.apply(y,arguments)},w={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,C=S&&!w.call({1:2},1)?function(e){var t=S(this,e);return!!t&&t.enumerable}:w,x={f:C},E=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},I=Function.prototype,T=I.call,R=v&&I.bind.bind(T,T),P=v?R:function(e){return function(){return T.apply(e,arguments)}},k=P({}.toString),A=P("".slice),O=function(e){return A(k(e),8,-1)},L=Object,D=P("".split),M=g((function(){return!L("z").propertyIsEnumerable(0)}))?function(e){return"String"==O(e)?D(e,""):L(e)}:L,N=function(e){return null==e},j=TypeError,B=function(e){if(N(e))throw j("Can't call method on "+e);return e},_=function(e){return M(B(e))},U="object"==typeof document&&document.all,F={all:U,IS_HTMLDDA:void 0===U&&void 0!==U},V=F.all,z=F.IS_HTMLDDA?function(e){return"function"==typeof e||e===V}:function(e){return"function"==typeof e},G=F.all,q=F.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:z(e)||e===G}:function(e){return"object"==typeof e?null!==e:z(e)},W=function(e){return z(e)?e:void 0},X=function(e,t){return arguments.length<2?W(h[e]):h[e]&&h[e][t]},H=P({}.isPrototypeOf),Y=X("navigator","userAgent")||"",J=h.process,K=h.Deno,Z=J&&J.versions||K&&K.version,Q=Z&&Z.v8;Q&&(f=(d=Q.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!f&&Y&&(!(d=Y.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=Y.match(/Chrome\/(\d+)/))&&(f=+d[1]);var ee=f,te=!!Object.getOwnPropertySymbols&&!g((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ee&&ee<41})),re=te&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ne=Object,ie=re?function(e){return"symbol"==typeof e}:function(e){var t=X("Symbol");return z(t)&&H(t.prototype,ne(e))},oe=String,se=function(e){try{return oe(e)}catch(e){return"Object"}},ae=TypeError,ce=function(e){if(z(e))return e;throw ae(se(e)+" is not a function")},ue=function(e,t){var r=e[t];return N(r)?void 0:ce(r)},le=TypeError,de=Object.defineProperty,fe=function(e,t){try{de(h,e,{value:t,configurable:!0,writable:!0})}catch(r){h[e]=t}return t},pe="__core-js_shared__",he=h[pe]||fe(pe,{}),ge=l((function(e){(e.exports=function(e,t){return he[e]||(he[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),me=Object,ve=function(e){return me(B(e))},ye=P({}.hasOwnProperty),be=Object.hasOwn||function(e,t){return ye(ve(e),t)},we=0,Se=Math.random(),Ce=P(1..toString),xe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ce(++we+Se,36)},Ee=ge("wks"),Ie=h.Symbol,Te=Ie&&Ie.for,Re=re?Ie:Ie&&Ie.withoutSetter||xe,Pe=function(e){if(!be(Ee,e)||!te&&"string"!=typeof Ee[e]){var t="Symbol."+e;te&&be(Ie,e)?Ee[e]=Ie[e]:Ee[e]=re&&Te?Te(t):Re(t)}return Ee[e]},ke=TypeError,Ae=Pe("toPrimitive"),Oe=function(e,t){if(!q(e)||ie(e))return e;var r,n=ue(e,Ae);if(n){if(void 0===t&&(t="default"),r=b(n,e,t),!q(r)||ie(r))return r;throw ke("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&z(r=e.toString)&&!q(n=b(r,e)))return n;if(z(r=e.valueOf)&&!q(n=b(r,e)))return n;if("string"!==t&&z(r=e.toString)&&!q(n=b(r,e)))return n;throw le("Can't convert object to primitive value")}(e,t)},Le=function(e){var t=Oe(e,"string");return ie(t)?t:t+""},De=h.document,Me=q(De)&&q(De.createElement),Ne=function(e){return Me?De.createElement(e):{}},je=!m&&!g((function(){return 7!=Object.defineProperty(Ne("div"),"a",{get:function(){return 7}}).a})),Be=Object.getOwnPropertyDescriptor,_e={f:m?Be:function(e,t){if(e=_(e),t=Le(t),je)try{return Be(e,t)}catch(e){}if(be(e,t))return E(!b(x.f,e,t),e[t])}},Ue=m&&g((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Fe=String,Ve=TypeError,ze=function(e){if(q(e))return e;throw Ve(Fe(e)+" is not an object")},Ge=TypeError,$e=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,We="enumerable",Xe="configurable",He="writable",Ye={f:m?Ue?function(e,t,r){if(ze(e),t=Le(t),ze(r),"function"==typeof e&&"prototype"===t&&"value"in r&&He in r&&!r[He]){var n=qe(e,t);n&&n[He]&&(e[t]=r.value,r={configurable:Xe in r?r[Xe]:n[Xe],enumerable:We in r?r[We]:n[We],writable:!1})}return $e(e,t,r)}:$e:function(e,t,r){if(ze(e),t=Le(t),ze(r),je)try{return $e(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Ge("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Je=m?function(e,t,r){return Ye.f(e,t,E(1,r))}:function(e,t,r){return e[t]=r,e},Ke=Function.prototype,Ze=m&&Object.getOwnPropertyDescriptor,Qe=be(Ke,"name"),et={EXISTS:Qe,PROPER:Qe&&"something"===function(){}.name,CONFIGURABLE:Qe&&(!m||m&&Ze(Ke,"name").configurable)},tt=P(Function.toString);z(he.inspectSource)||(he.inspectSource=function(e){return tt(e)});var rt,nt,it,ot=he.inspectSource,st=h.WeakMap,at=z(st)&&/native code/.test(String(st)),ct=ge("keys"),ut=function(e){return ct[e]||(ct[e]=xe(e))},lt={},dt="Object already initialized",ft=h.TypeError,pt=h.WeakMap;if(at||he.state){var ht=he.state||(he.state=new pt);ht.get=ht.get,ht.has=ht.has,ht.set=ht.set,rt=function(e,t){if(ht.has(e))throw ft(dt);return t.facade=e,ht.set(e,t),t},nt=function(e){return ht.get(e)||{}},it=function(e){return ht.has(e)}}else{var gt=ut("state");lt[gt]=!0,rt=function(e,t){if(be(e,gt))throw ft(dt);return t.facade=e,Je(e,gt,t),t},nt=function(e){return be(e,gt)?e[gt]:{}},it=function(e){return be(e,gt)}}var mt={set:rt,get:nt,has:it,enforce:function(e){return it(e)?nt(e):rt(e,{})},getterFor:function(e){return function(t){var r;if(!q(t)||(r=nt(t)).type!==e)throw ft("Incompatible receiver, "+e+" required");return r}}},vt=l((function(e){var t=et.CONFIGURABLE,r=mt.enforce,n=mt.get,i=Object.defineProperty,o=m&&!g((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),a=e.exports=function(e,n,a){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(n="get "+n),a&&a.setter&&(n="set "+n),(!be(e,"name")||t&&e.name!==n)&&(m?i(e,"name",{value:n,configurable:!0}):e.name=n),o&&a&&be(a,"arity")&&e.length!==a.arity&&i(e,"length",{value:a.arity});try{a&&be(a,"constructor")&&a.constructor?m&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var c=r(e);return be(c,"source")||(c.source=s.join("string"==typeof n?n:"")),e};Function.prototype.toString=a((function(){return z(this)&&n(this).source||ot(this)}),"toString")})),yt=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(z(r)&&vt(r,o,n),n.global)i?e[t]=r:fe(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:Ye.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},bt=Math.ceil,wt=Math.floor,St=Math.trunc||function(e){var t=+e;return(t>0?wt:bt)(t)},Ct=function(e){var t=+e;return t!=t||0===t?0:St(t)},xt=Math.max,Et=Math.min,It=function(e,t){var r=Ct(e);return r<0?xt(r+t,0):Et(r,t)},Tt=Math.min,Rt=function(e){return e>0?Tt(Ct(e),9007199254740991):0},Pt=function(e){return Rt(e.length)},kt=function(e){return function(t,r,n){var i,o=_(t),s=Pt(o),a=It(n,s);if(e&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((e||a in o)&&o[a]===r)return e||a||0;return!e&&-1}},At={includes:kt(!0),indexOf:kt(!1)},Ot=At.indexOf,Lt=P([].push),Dt=function(e,t){var r,n=_(e),i=0,o=[];for(r in n)!be(lt,r)&&be(n,r)&&Lt(o,r);for(;t.length>i;)be(n,r=t[i++])&&(~Ot(o,r)||Lt(o,r));return o},Mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nt=Mt.concat("length","prototype"),jt={f:Object.getOwnPropertyNames||function(e){return Dt(e,Nt)}},Bt={f:Object.getOwnPropertySymbols},_t=P([].concat),Ut=X("Reflect","ownKeys")||function(e){var t=jt.f(ze(e)),r=Bt.f;return r?_t(t,r(e)):t},Ft=function(e,t,r){for(var n=Ut(t),i=Ye.f,o=_e.f,s=0;s<n.length;s++){var a=n[s];be(e,a)||r&&be(r,a)||i(e,a,o(t,a))}},Vt=/#|\.prototype\./,zt=function(e,t){var r=$t[Gt(e)];return r==Wt||r!=qt&&(z(t)?g(t):!!t)},Gt=zt.normalize=function(e){return String(e).replace(Vt,".").toLowerCase()},$t=zt.data={},qt=zt.NATIVE="N",Wt=zt.POLYFILL="P",Xt=zt,Ht=_e.f,Yt=function(e,t){var r,n,i,o,s,a=e.target,c=e.global,u=e.stat;if(r=c?h:u?h[a]||fe(a,{}):(h[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(s=Ht(r,n))&&s.value:r[n],!Xt(c?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ft(o,i)}(e.sham||i&&i.sham)&&Je(o,"sham",!0),yt(r,n,o,e)}},Jt=Array.isArray||function(e){return"Array"==O(e)},Kt=TypeError,Zt=function(e){if(e>9007199254740991)throw Kt("Maximum allowed index exceeded");return e},Qt=function(e,t,r){var n=Le(t);n in e?Ye.f(e,n,E(0,r)):e[n]=r},er={};er[Pe("toStringTag")]="z";var tr="[object z]"===String(er),rr=Pe("toStringTag"),nr=Object,ir="Arguments"==O(function(){return arguments}()),or=tr?O:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=nr(e),rr))?r:ir?O(t):"Object"==(n=O(t))&&z(t.callee)?"Arguments":n},sr=function(){},ar=[],cr=X("Reflect","construct"),ur=/^\s*(?:class|function)\b/,lr=P(ur.exec),dr=!ur.exec(sr),fr=function(e){if(!z(e))return!1;try{return cr(sr,ar,e),!0}catch(e){return!1}},pr=function(e){if(!z(e))return!1;switch(or(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return dr||!!lr(ur,ot(e))}catch(e){return!0}};pr.sham=!0;var hr=!cr||g((function(){var e;return fr(fr.call)||!fr(Object)||!fr((function(){e=!0}))||e}))?pr:fr,gr=Pe("species"),mr=Array,vr=function(e,t){return new(function(e){var t;return Jt(e)&&(t=e.constructor,(hr(t)&&(t===mr||Jt(t.prototype))||q(t)&&null===(t=t[gr]))&&(t=void 0)),void 0===t?mr:t}(e))(0===t?0:t)},yr=Pe("species"),br=function(e){return ee>=51||!g((function(){var t=[];return(t.constructor={})[yr]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},wr=Pe("isConcatSpreadable"),Sr=ee>=51||!g((function(){var e=[];return e[wr]=!1,e.concat()[0]!==e})),Cr=br("concat"),xr=function(e){if(!q(e))return!1;var t=e[wr];return void 0!==t?!!t:Jt(e)};Yt({target:"Array",proto:!0,arity:1,forced:!Sr||!Cr},{concat:function(e){var t,r,n,i,o,s=ve(this),a=vr(s,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(xr(o=-1===t?s:arguments[t]))for(i=Pt(o),Zt(c+i),r=0;r<i;r++,c++)r in o&&Qt(a,c,o[r]);else Zt(c+1),Qt(a,c++,o);return a.length=c,a}});var Er=P([].slice),Ir=br("slice"),Tr=Pe("species"),Rr=Array,Pr=Math.max;Yt({target:"Array",proto:!0,forced:!Ir},{slice:function(e,t){var r,n,i,o=_(this),s=Pt(o),a=It(e,s),c=It(void 0===t?s:t,s);if(Jt(o)&&(r=o.constructor,(hr(r)&&(r===Rr||Jt(r.prototype))||q(r)&&null===(r=r[Tr]))&&(r=void 0),r===Rr||void 0===r))return Er(o,a,c);for(n=new(void 0===r?Rr:r)(Pr(c-a,0)),i=0;a<c;a++,i++)a in o&&Qt(n,i,o[a]);return n.length=i,n}});var kr=function(e){if("Function"===O(e))return P(e)},Ar=kr(kr.bind),Or=function(e,t){return ce(e),void 0===t?e:v?Ar(e,t):function(){return e.apply(t,arguments)}},Lr=P([].push),Dr=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,s=7==e,a=5==e||o;return function(c,u,l,d){for(var f,p,h=ve(c),g=M(h),m=Or(u,l),v=Pt(g),y=0,b=d||vr,w=t?b(c,v):r||s?b(c,0):void 0;v>y;y++)if((a||y in g)&&(p=m(f=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:Lr(w,f)}else switch(e){case 4:return!1;case 7:Lr(w,f)}return o?-1:n||i?i:w}},Mr={forEach:Dr(0),map:Dr(1),filter:Dr(2),some:Dr(3),every:Dr(4),find:Dr(5),findIndex:Dr(6),filterReject:Dr(7)},Nr=Mr.map,jr=br("map");Yt({target:"Array",proto:!0,forced:!jr},{map:function(e){return Nr(this,e,arguments.length>1?arguments[1]:void 0)}});var Br=Function.prototype,_r=Br.apply,Ur=Br.call,Fr="object"==typeof Reflect&&Reflect.apply||(v?Ur.bind(_r):function(){return Ur.apply(_r,arguments)}),Vr=X("JSON","stringify"),zr=P(/./.exec),Gr=P("".charAt),$r=P("".charCodeAt),qr=P("".replace),Wr=P(1..toString),Xr=/[\uD800-\uDFFF]/g,Hr=/^[\uD800-\uDBFF]$/,Yr=/^[\uDC00-\uDFFF]$/,Jr=!te||g((function(){var e=X("Symbol")();return"[null]"!=Vr([e])||"{}"!=Vr({a:e})||"{}"!=Vr(Object(e))})),Kr=g((function(){return'"\\udf06\\ud834"'!==Vr("\udf06\ud834")||'"\\udead"'!==Vr("\udead")})),Zr=function(e,t){var r=Er(arguments),n=t;if((q(t)||void 0!==e)&&!ie(e))return Jt(t)||(t=function(e,t){if(z(n)&&(t=b(n,this,e,t)),!ie(t))return t}),r[1]=t,Fr(Vr,null,r)},Qr=function(e,t,r){var n=Gr(r,t-1),i=Gr(r,t+1);return zr(Hr,e)&&!zr(Yr,i)||zr(Yr,e)&&!zr(Hr,n)?"\\u"+Wr($r(e,0),16):e};Vr&&Yt({target:"JSON",stat:!0,arity:3,forced:Jr||Kr},{stringify:function(e,t,r){var n=Er(arguments),i=Fr(Jr?Zr:Vr,null,n);return Kr&&"string"==typeof i?qr(i,Xr,Qr):i}});var en=l((function(e){!function(t){var r,n={};n.VERSION="1.6.1";var i={},o=function(e,t){return function(){return t.apply(e,arguments)}},s=function(){var e,t,r=arguments,n=r[0];for(t=1;t<r.length;t++)for(e in r[t])!(e in n)&&r[t].hasOwnProperty(e)&&(n[e]=r[t][e]);return n},a=function(e,t){return{value:e,name:t}};n.TRACE=a(1,"TRACE"),n.DEBUG=a(2,"DEBUG"),n.INFO=a(3,"INFO"),n.TIME=a(4,"TIME"),n.WARN=a(5,"WARN"),n.ERROR=a(8,"ERROR"),n.OFF=a(99,"OFF");var c=function(e){this.context=e,this.setLevel(e.filterLevel),this.log=this.info};c.prototype={setLevel:function(e){e&&"value"in e&&(this.context.filterLevel=e)},getLevel:function(){return this.context.filterLevel},enabledFor:function(e){var t=this.context.filterLevel;return e.value>=t.value},trace:function(){this.invoke(n.TRACE,arguments)},debug:function(){this.invoke(n.DEBUG,arguments)},info:function(){this.invoke(n.INFO,arguments)},warn:function(){this.invoke(n.WARN,arguments)},error:function(){this.invoke(n.ERROR,arguments)},time:function(e){"string"==typeof e&&e.length>0&&this.invoke(n.TIME,[e,"start"])},timeEnd:function(e){"string"==typeof e&&e.length>0&&this.invoke(n.TIME,[e,"end"])},invoke:function(e,t){r&&this.enabledFor(e)&&r(t,s({level:e},this.context))}};var u,l=new c({filterLevel:n.OFF});(u=n).enabledFor=o(l,l.enabledFor),u.trace=o(l,l.trace),u.debug=o(l,l.debug),u.time=o(l,l.time),u.timeEnd=o(l,l.timeEnd),u.info=o(l,l.info),u.warn=o(l,l.warn),u.error=o(l,l.error),u.log=u.info,n.setHandler=function(e){r=e},n.setLevel=function(e){for(var t in l.setLevel(e),i)i.hasOwnProperty(t)&&i[t].setLevel(e)},n.getLevel=function(){return l.getLevel()},n.get=function(e){return i[e]||(i[e]=new c(s({name:e},l.context)))},n.createDefaultHandler=function(e){(e=e||{}).formatter=e.formatter||function(e,t){t.name&&e.unshift("["+t.name+"]")};var t={},r=function(e,t){Function.prototype.apply.call(e,console,t)};return"undefined"==typeof console?function(){}:function(i,o){i=Array.prototype.slice.call(i);var s,a=console.log;o.level===n.TIME?(s=(o.name?"["+o.name+"] ":"")+i[0],"start"===i[1]?console.time?console.time(s):t[s]=(new Date).getTime():console.timeEnd?console.timeEnd(s):r(a,[s+": "+((new Date).getTime()-t[s])+"ms"])):(o.level===n.WARN&&console.warn?a=console.warn:o.level===n.ERROR&&console.error?a=console.error:o.level===n.INFO&&console.info?a=console.info:o.level===n.DEBUG&&console.debug?a=console.debug:o.level===n.TRACE&&console.trace&&(a=console.trace),e.formatter(i,o),r(a,i))}},n.useDefaults=function(e){n.setLevel(e&&e.defaultLevel||n.DEBUG),n.setHandler(n.createDefaultHandler(e))},n.setDefaults=n.useDefaults,e.exports?e.exports=n:(n._prevLogger=t.Logger,n.noConflict=function(){return t.Logger=n._prevLogger,n},t.Logger=n)}(u)}));en.useDefaults({defaultLevel:en.TRACE});const tn=(e,t)=>{e.unshift("[".concat(t.name||"Global","] ").concat((new Date).toISOString()," - ").concat(t.level.name," -"))},rn=(e,t)=>t?e.value>=cn[t].value:e.value>=an.value,nn=en.createDefaultHandler({formatter:tn});en.setHandler(((e,t)=>{((e,t)=>{e=(e=Array.prototype.slice.call(e)).map((e=>"object"==typeof e?JSON.stringify(e):e)),tn(e,t),0!==on?(sn.push(e.join(" ")),sn.length>=on&&(sn=sn.slice(-on))):sn=[]})(e,t),rn(t.level,t.name)&&nn(e,t);var r,n=c(un);try{for(n.s();!(r=n.n()).done;){const n=r.value,i=n.handler,o=n.level;t.level.value>=o.value&&i(e,t)}}catch(e){n.e(e)}finally{n.f()}}));let on=1e4,sn=[],an=en.OFF;const cn={},un=[],ln=t(t({},en),{},{enabledFor:rn,getHistory:()=>sn,getHistoryMaxSize:()=>on,setHistoryMaxSize:e=>{on=e},setLevel:e=>{an=e;for(const t in cn)cn[t]=e},getLevel:()=>an,get:e=>{cn[e]||(cn[e]=an);const t=en.get(e);return t.setLevel=t=>{cn[e]=t},t.getLevel=()=>cn[e],t},setHandler:(e,t)=>{un.push({handler:e,level:t})},VERSION:"0.1.43"});var dn=String,fn=TypeError,pn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=P(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return ze(r),function(e){if("object"==typeof e||z(e))return e;throw fn("Can't set "+dn(e)+" as a prototype")}(n),t?e(r,n):r.__proto__=n,r}}():void 0),hn=Ye.f,gn=function(e,t,r){r in e||hn(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},mn=function(e,t,r){var n,i;return pn&&z(n=t.constructor)&&n!==r&&q(i=n.prototype)&&i!==r.prototype&&pn(e,i),e},vn=String,yn=function(e){if("Symbol"===or(e))throw TypeError("Cannot convert a Symbol value to a string");return vn(e)},bn=function(e,t){return void 0===e?arguments.length<2?"":t:yn(e)},wn=function(e,t){q(t)&&"cause"in t&&Je(e,"cause",t.cause)},Sn=Error,Cn=P("".replace),xn=String(Sn("zxcasd").stack),En=/\n\s*at [^:]*:[^\n]*/,In=En.test(xn),Tn=function(e,t){if(In&&"string"==typeof e&&!Sn.prepareStackTrace)for(;t--;)e=Cn(e,En,"");return e},Rn=!g((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",E(1,7)),7!==e.stack)})),Pn=function(e,t,r,n){var i="stackTraceLimit",o=n?2:1,s=e.split("."),a=s[s.length-1],c=X.apply(null,s);if(c){var u=c.prototype;if(be(u,"cause")&&delete u.cause,!r)return c;var l=X("Error"),d=t((function(e,t){var r=bn(n?t:e,void 0),i=n?new c(e):new c;return void 0!==r&&Je(i,"message",r),Rn&&Je(i,"stack",Tn(i.stack,2)),this&&H(u,this)&&mn(i,this,d),arguments.length>o&&wn(i,arguments[o]),i}));d.prototype=u,"Error"!==a?pn?pn(d,l):Ft(d,l,{name:!0}):m&&i in c&&(gn(d,c,i),gn(d,c,"prepareStackTrace")),Ft(d,c);try{u.name!==a&&Je(u,"name",a),u.constructor=d}catch(e){}return d}},kn="WebAssembly",An=h[kn],On=7!==Error("e",{cause:7}).cause,Ln=function(e,t){var r={};r[e]=Pn(e,t,On),Yt({global:!0,constructor:!0,arity:1,forced:On},r)},Dn=function(e,t){if(An&&An[e]){var r={};r[e]=Pn(kn+"."+e,t,On),Yt({target:kn,stat:!0,constructor:!0,arity:1,forced:On},r)}};Ln("Error",(function(e){return function(t){return Fr(e,this,arguments)}})),Ln("EvalError",(function(e){return function(t){return Fr(e,this,arguments)}})),Ln("RangeError",(function(e){return function(t){return Fr(e,this,arguments)}})),Ln("ReferenceError",(function(e){return function(t){return Fr(e,this,arguments)}})),Ln("SyntaxError",(function(e){return function(t){return Fr(e,this,arguments)}})),Ln("TypeError",(function(e){return function(t){return Fr(e,this,arguments)}})),Ln("URIError",(function(e){return function(t){return Fr(e,this,arguments)}})),Dn("CompileError",(function(e){return function(t){return Fr(e,this,arguments)}})),Dn("LinkError",(function(e){return function(t){return Fr(e,this,arguments)}})),Dn("RuntimeError",(function(e){return function(t){return Fr(e,this,arguments)}}));var Mn=Pe("match"),Nn=function(e){var t;return q(e)&&(void 0!==(t=e[Mn])?!!t:"RegExp"==O(e))},jn=function(){var e=ze(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Bn=RegExp.prototype,_n=function(e){var t=e.flags;return void 0!==t||"flags"in Bn||be(e,"flags")||!H(Bn,e)?t:b(jn,e)},Un=h.RegExp,Fn=g((function(){var e=Un("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Vn=Fn||g((function(){return!Un("a","y").sticky})),zn=Fn||g((function(){var e=Un("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Gn={BROKEN_CARET:zn,MISSED_STICKY:Vn,UNSUPPORTED_Y:Fn},$n=Pe("species"),qn=function(e){var t=X(e),r=Ye.f;m&&t&&!t[$n]&&r(t,$n,{configurable:!0,get:function(){return this}})},Wn=h.RegExp,Xn=g((function(){var e=Wn(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Hn=h.RegExp,Yn=g((function(){var e=Hn("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Jn=jt.f,Kn=mt.enforce,Zn=Pe("match"),Qn=h.RegExp,ei=Qn.prototype,ti=h.SyntaxError,ri=P(ei.exec),ni=P("".charAt),ii=P("".replace),oi=P("".indexOf),si=P("".slice),ai=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ci=/a/g,ui=/a/g,li=new Qn(ci)!==ci,di=Gn.MISSED_STICKY,fi=Gn.UNSUPPORTED_Y,pi=m&&(!li||di||Xn||Yn||g((function(){return ui[Zn]=!1,Qn(ci)!=ci||Qn(ui)==ui||"/a/i"!=Qn(ci,"i")})));if(Xt("RegExp",pi)){for(var hi=function(e,t){var r,n,i,o,s,a,c=H(ei,this),u=Nn(e),l=void 0===t,d=[],f=e;if(!c&&u&&l&&e.constructor===hi)return e;if((u||H(ei,e))&&(e=e.source,l&&(t=_n(f))),e=void 0===e?"":yn(e),t=void 0===t?"":yn(t),f=e,Xn&&"dotAll"in ci&&(n=!!t&&oi(t,"s")>-1)&&(t=ii(t,/s/g,"")),r=t,di&&"sticky"in ci&&(i=!!t&&oi(t,"y")>-1)&&fi&&(t=ii(t,/y/g,"")),Yn&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],s={},a=!1,c=!1,u=0,l="";n<=r;n++){if("\\"===(t=ni(e,n)))t+=ni(e,++n);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:ri(ai,si(e,n+1))&&(n+=2,c=!0),i+=t,u++;continue;case">"===t&&c:if(""===l||be(s,l))throw new ti("Invalid capture group name");s[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=t:i+=t}return[i,o]}(e),e=o[0],d=o[1]),s=mn(Qn(e,t),c?this:ei,hi),(n||i||d.length)&&(a=Kn(s),n&&(a.dotAll=!0,a.raw=hi(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=ni(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+ni(e,++n);return i}(e),r)),i&&(a.sticky=!0),d.length&&(a.groups=d)),e!==f)try{Je(s,"source",""===f?"(?:)":f)}catch(e){}return s},gi=Jn(Qn),mi=0;gi.length>mi;)gn(hi,Qn,gi[mi++]);ei.constructor=hi,hi.prototype=ei,yt(h,"RegExp",hi,{constructor:!0})}qn("RegExp");var vi,yi,bi,wi=mt.get,Si=RegExp.prototype,Ci=TypeError;m&&Xn&&(vi=Si,yi="dotAll",(bi={configurable:!0,get:function(){if(this!==Si){if("RegExp"===O(this))return!!wi(this).dotAll;throw Ci("Incompatible receiver, RegExp required")}}}).get&&vt(bi.get,yi,{getter:!0}),bi.set&&vt(bi.set,yi,{setter:!0}),Ye.f(vi,yi,bi));var xi,Ei=Object.keys||function(e){return Dt(e,Mt)},Ii=m&&!Ue?Object.defineProperties:function(e,t){ze(e);for(var r,n=_(t),i=Ei(t),o=i.length,s=0;o>s;)Ye.f(e,r=i[s++],n[r]);return e},Ti={f:Ii},Ri=X("document","documentElement"),Pi="prototype",ki="script",Ai=ut("IE_PROTO"),Oi=function(){},Li=function(e){return"<"+ki+">"+e+"</"+ki+">"},Di=function(e){e.write(Li("")),e.close();var t=e.parentWindow.Object;return e=null,t},Mi=function(){try{xi=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Mi="undefined"!=typeof document?document.domain&&xi?Di(xi):(t=Ne("iframe"),r="java"+ki+":",t.style.display="none",Ri.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Li("document.F=Object")),e.close(),e.F):Di(xi);for(var n=Mt.length;n--;)delete Mi[Pi][Mt[n]];return Mi()};lt[Ai]=!0;var Ni=Object.create||function(e,t){var r;return null!==e?(Oi[Pi]=ze(e),r=new Oi,Oi[Pi]=null,r[Ai]=e):r=Mi(),void 0===t?r:Ti.f(r,t)},ji=mt.get,Bi=ge("native-string-replace",String.prototype.replace),_i=RegExp.prototype.exec,Ui=_i,Fi=P("".charAt),Vi=P("".indexOf),zi=P("".replace),Gi=P("".slice),$i=function(){var e=/a/,t=/b*/g;return b(_i,e,"a"),b(_i,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),qi=Gn.BROKEN_CARET,Wi=void 0!==/()??/.exec("")[1];($i||Wi||qi||Xn||Yn)&&(Ui=function(e){var t,r,n,i,o,s,a,c=this,u=ji(c),l=yn(e),d=u.raw;if(d)return d.lastIndex=c.lastIndex,t=b(Ui,d,l),c.lastIndex=d.lastIndex,t;var f=u.groups,p=qi&&c.sticky,h=b(jn,c),g=c.source,m=0,v=l;if(p&&(h=zi(h,"y",""),-1===Vi(h,"g")&&(h+="g"),v=Gi(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Fi(l,c.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),r=new RegExp("^(?:"+g+")",h)),Wi&&(r=new RegExp("^"+g+"$(?!\\s)",h)),$i&&(n=c.lastIndex),i=b(_i,p?r:c,v),p?i?(i.input=Gi(i.input,m),i[0]=Gi(i[0],m),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:$i&&i&&(c.lastIndex=c.global?i.index+i[0].length:n),Wi&&i&&i.length>1&&b(Bi,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=s=Ni(null),o=0;o<f.length;o++)s[(a=f[o])[0]]=i[a[1]];return i});var Xi=Ui;Yt({target:"RegExp",proto:!0,forced:/./.exec!==Xi},{exec:Xi});var Hi=P(x.f),Yi=P([].push),Ji=function(e){return function(t){for(var r,n=_(t),i=Ei(n),o=i.length,s=0,a=[];o>s;)r=i[s++],m&&!Hi(n,r)||Yi(a,e?[r,n[r]]:n[r]);return a}},Ki={entries:Ji(!0),values:Ji(!1)}.values;Yt({target:"Object",stat:!0},{values:function(e){return Ki(e)}});var Zi=Pe("species"),Qi=RegExp.prototype,eo=function(e,t,r,n){var i=Pe(e),o=!g((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),s=o&&!g((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Zi]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t}));if(!o||!s||r){var a=kr(/./[i]),c=t(i,""[e],(function(e,t,r,n,i){var s=kr(e),c=t.exec;return c===Xi||c===Qi.exec?o&&!i?{done:!0,value:a(t,r,n)}:{done:!0,value:s(r,t,n)}:{done:!1}}));yt(String.prototype,e,c[0]),yt(Qi,i,c[1])}n&&Je(Qi[i],"sham",!0)},to=P("".charAt),ro=P("".charCodeAt),no=P("".slice),io=function(e){return function(t,r){var n,i,o=yn(B(t)),s=Ct(r),a=o.length;return s<0||s>=a?e?"":void 0:(n=ro(o,s))<55296||n>56319||s+1===a||(i=ro(o,s+1))<56320||i>57343?e?to(o,s):n:e?no(o,s,s+2):i-56320+(n-55296<<10)+65536}},oo={codeAt:io(!1),charAt:io(!0)}.charAt,so=function(e,t,r){return t+(r?oo(e,t).length:1)},ao=TypeError,co=function(e,t){var r=e.exec;if(z(r)){var n=b(r,e,t);return null!==n&&ze(n),n}if("RegExp"===O(e))return b(Xi,e,t);throw ao("RegExp#exec called on incompatible receiver")};eo("match",(function(e,t,r){return[function(t){var r=B(this),n=N(t)?void 0:ue(t,e);return n?b(n,t,r):new RegExp(t)[e](yn(r))},function(e){var n=ze(this),i=yn(e),o=r(t,n,i);if(o.done)return o.value;if(!n.global)return co(n,i);var s=n.unicode;n.lastIndex=0;for(var a,c=[],u=0;null!==(a=co(n,i));){var l=yn(a[0]);c[u]=l,""===l&&(n.lastIndex=so(i,Rt(n.lastIndex),s)),u++}return 0===u?null:c}]}));var uo=Ye.f,lo=Pe("unscopables"),fo=Array.prototype;null==fo[lo]&&uo(fo,lo,{configurable:!0,value:Ni(null)});var po,ho,go,mo=function(e){fo[lo][e]=!0},vo={},yo=!g((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),bo=ut("IE_PROTO"),wo=Object,So=wo.prototype,Co=yo?wo.getPrototypeOf:function(e){var t=ve(e);if(be(t,bo))return t[bo];var r=t.constructor;return z(r)&&t instanceof r?r.prototype:t instanceof wo?So:null},xo=Pe("iterator"),Eo=!1;[].keys&&("next"in(go=[].keys())?(ho=Co(Co(go)))!==Object.prototype&&(po=ho):Eo=!0);var Io=!q(po)||g((function(){var e={};return po[xo].call(e)!==e}));Io&&(po={}),z(po[xo])||yt(po,xo,(function(){return this}));var To={IteratorPrototype:po,BUGGY_SAFARI_ITERATORS:Eo},Ro=Ye.f,Po=Pe("toStringTag"),ko=function(e,t,r){e&&!r&&(e=e.prototype),e&&!be(e,Po)&&Ro(e,Po,{configurable:!0,value:t})},Ao=To.IteratorPrototype,Oo=function(){return this},Lo=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Ni(Ao,{next:E(+!n,r)}),ko(e,i,!1),vo[i]=Oo,e},Do=et.PROPER,Mo=et.CONFIGURABLE,No=To.IteratorPrototype,jo=To.BUGGY_SAFARI_ITERATORS,Bo=Pe("iterator"),_o="keys",Uo="values",Fo="entries",Vo=function(){return this},zo=function(e,t,r,n,i,o,s){Lo(r,t,n);var a,c,u,l=function(e){if(e===i&&g)return g;if(!jo&&e in p)return p[e];switch(e){case _o:case Uo:case Fo:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",f=!1,p=e.prototype,h=p[Bo]||p["@@iterator"]||i&&p[i],g=!jo&&h||l(i),m="Array"==t&&p.entries||h;if(m&&(a=Co(m.call(new e)))!==Object.prototype&&a.next&&(Co(a)!==No&&(pn?pn(a,No):z(a[Bo])||yt(a,Bo,Vo)),ko(a,d,!0)),Do&&i==Uo&&h&&h.name!==Uo&&(Mo?Je(p,"name",Uo):(f=!0,g=function(){return b(h,this)})),i)if(c={values:l(Uo),keys:o?g:l(_o),entries:l(Fo)},s)for(u in c)(jo||f||!(u in p))&&yt(p,u,c[u]);else Yt({target:t,proto:!0,forced:jo||f},c);return p[Bo]!==g&&yt(p,Bo,g,{name:i}),vo[t]=g,c},Go=function(e,t){return{value:e,done:t}},$o=Ye.f,qo="Array Iterator",Wo=mt.set,Xo=mt.getterFor(qo),Ho=zo(Array,"Array",(function(e,t){Wo(this,{type:qo,target:_(e),index:0,kind:t})}),(function(){var e=Xo(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Go(void 0,!0)):Go("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Yo=vo.Arguments=vo.Array;if(mo("keys"),mo("values"),mo("entries"),m&&"values"!==Yo.name)try{$o(Yo,"name",{value:"values"})}catch(e){}var Jo={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},Ko=Ne("span").classList,Zo=Ko&&Ko.constructor&&Ko.constructor.prototype,Qo=Zo===Object.prototype?void 0:Zo,es=Pe("iterator"),ts=Pe("toStringTag"),rs=Ho.values,ns=function(e,t){if(e){if(e[es]!==rs)try{Je(e,es,rs)}catch(t){e[es]=rs}if(e[ts]||Je(e,ts,t),Jo[t])for(var r in Ho)if(e[r]!==Ho[r])try{Je(e,r,Ho[r])}catch(t){e[r]=Ho[r]}}};for(var is in Jo)ns(h[is]&&h[is].prototype,is);ns(Qo,"DOMTokenList");var os=Array,ss=Math.max,as=jt.f,cs="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],us=function(e){try{return as(e)}catch(e){return function(e,t,r){for(var n=Pt(e),i=It(t,n),o=It(void 0===r?n:r,n),s=os(ss(o-i,0)),a=0;i<o;i++,a++)Qt(s,a,e[i]);return s.length=a,s}(cs)}},ls={f:function(e){return cs&&"Window"==O(e)?us(e):as(_(e))}},ds=g((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fs=Object.isExtensible,ps=g((function(){fs(1)}))||ds?function(e){return!!q(e)&&((!ds||"ArrayBuffer"!=O(e))&&(!fs||fs(e)))}:fs,hs=!g((function(){return Object.isExtensible(Object.preventExtensions({}))})),gs=l((function(e){var t=Ye.f,r=!1,n=xe("meta"),i=0,o=function(e){t(e,n,{value:{objectID:"O"+i++,weakData:{}}})},s=e.exports={enable:function(){s.enable=function(){},r=!0;var e=jt.f,t=P([].splice),i={};i[n]=1,e(i).length&&(jt.f=function(r){for(var i=e(r),o=0,s=i.length;o<s;o++)if(i[o]===n){t(i,o,1);break}return i},Yt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ls.f}))},fastKey:function(e,t){if(!q(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!be(e,n)){if(!ps(e))return"F";if(!t)return"E";o(e)}return e[n].objectID},getWeakData:function(e,t){if(!be(e,n)){if(!ps(e))return!0;if(!t)return!1;o(e)}return e[n].weakData},onFreeze:function(e){return hs&&r&&ps(e)&&!be(e,n)&&o(e),e}};lt[n]=!0})),ms=Pe("iterator"),vs=Array.prototype,ys=function(e){return void 0!==e&&(vo.Array===e||vs[ms]===e)},bs=Pe("iterator"),ws=function(e){if(!N(e))return ue(e,bs)||ue(e,"@@iterator")||vo[or(e)]},Ss=TypeError,Cs=function(e,t){var r=arguments.length<2?ws(e):t;if(ce(r))return ze(b(r,e));throw Ss(se(e)+" is not iterable")},xs=function(e,t,r){var n,i;ze(e);try{if(!(n=ue(e,"return"))){if("throw"===t)throw r;return r}n=b(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return ze(n),r},Es=TypeError,Is=function(e,t){this.stopped=e,this.result=t},Ts=Is.prototype,Rs=function(e,t,r){var n,i,o,s,a,c,u,l=r&&r.that,d=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),g=Or(t,l),m=function(e){return n&&xs(n,"normal",e),new Is(!0,e)},v=function(e){return d?(ze(e),h?g(e[0],e[1],m):g(e[0],e[1])):h?g(e,m):g(e)};if(f)n=e.iterator;else if(p)n=e;else{if(!(i=ws(e)))throw Es(se(e)+" is not iterable");if(ys(i)){for(o=0,s=Pt(e);s>o;o++)if((a=v(e[o]))&&H(Ts,a))return a;return new Is(!1)}n=Cs(e,i)}for(c=f?e.next:n.next;!(u=b(c,n)).done;){try{a=v(u.value)}catch(e){xs(n,"throw",e)}if("object"==typeof a&&a&&H(Ts,a))return a}return new Is(!1)},Ps=TypeError,ks=function(e,t){if(H(t,e))return e;throw Ps("Incorrect invocation")},As=Pe("iterator"),Os=!1;try{var Ls=0,Ds={next:function(){return{done:!!Ls++}},return:function(){Os=!0}};Ds[As]=function(){return this},Array.from(Ds,(function(){throw 2}))}catch(e){}var Ms=function(e,t){if(!t&&!Os)return!1;var r=!1;try{var n={};n[As]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Ns=function(e,t,r){for(var n in t)yt(e,n,t[n],r);return e},js=Ye.f,Bs=gs.fastKey,_s=mt.set,Us=mt.getterFor,Fs={getConstructor:function(e,t,r,n){var i=e((function(e,i){ks(e,o),_s(e,{type:t,index:Ni(null),first:void 0,last:void 0,size:0}),m||(e.size=0),N(i)||Rs(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,s=Us(t),a=function(e,t,r){var n,i,o=s(e),a=c(e,t);return a?a.value=r:(o.last=a={index:i=Bs(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),m?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},c=function(e,t){var r,n=s(e),i=Bs(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return Ns(o,{clear:function(){for(var e=s(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,m?e.size=0:this.size=0},delete:function(e){var t=this,r=s(t),n=c(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),m?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=s(this),n=Or(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),Ns(o,r?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),m&&js(o,"size",{get:function(){return s(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Us(t),o=Us(n);zo(e,t,(function(e,t){_s(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?Go("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,Go(void 0,!0))}),r?"entries":"values",!r,!0),qn(t)}};!function(e,t,r){var n=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=n?"set":"add",s=h[e],a=s&&s.prototype,c=s,u={},l=function(e){var t=P(a[e]);yt(a,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!q(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return i&&!q(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!q(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(Xt(e,!z(s)||!(i||a.forEach&&!g((function(){(new s).entries().next()})))))c=r.getConstructor(t,e,n,o),gs.enable();else if(Xt(e,!0)){var d=new c,f=d[o](i?{}:-0,1)!=d,p=g((function(){d.has(1)})),m=Ms((function(e){new s(e)})),v=!i&&g((function(){for(var e=new s,t=5;t--;)e[o](t,t);return!e.has(-0)}));m||((c=t((function(e,t){ks(e,a);var r=mn(new s,e,c);return N(t)||Rs(t,r[o],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(p||v)&&(l("delete"),l("has"),n&&l("get")),(v||f)&&l(o),i&&a.clear&&delete a.clear}u[e]=c,Yt({global:!0,constructor:!0,forced:c!=s},u),ko(c,e),i||r.setStrong(c,e,n)}("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Fs);var Vs=Mr.filter,zs=br("filter");Yt({target:"Array",proto:!0,forced:!zs},{filter:function(e){return Vs(this,e,arguments.length>1?arguments[1]:void 0)}});var Gs=At.includes,$s=g((function(){return!Array(1).includes()}));Yt({target:"Array",proto:!0,forced:$s},{includes:function(e){return Gs(this,e,arguments.length>1?arguments[1]:void 0)}}),mo("includes");var qs=TypeError,Ws=function(e){if(Nn(e))throw qs("The method doesn't accept regular expressions");return e},Xs=Pe("match"),Hs=P("".indexOf);Yt({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Xs]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~Hs(yn(B(this)),yn(Ws(e)),arguments.length>1?arguments[1]:void 0)}});var Ys,Js,Ks,Zs,Qs="process"==O(h.process),ea=TypeError,ta=Pe("species"),ra=function(e,t){var r,n=ze(e).constructor;return void 0===n||N(r=ze(n)[ta])?t:function(e){if(hr(e))return e;throw ea(se(e)+" is not a constructor")}(r)},na=TypeError,ia=function(e,t){if(e<t)throw na("Not enough arguments");return e},oa=/(?:ipad|iphone|ipod).*applewebkit/i.test(Y),sa=h.setImmediate,aa=h.clearImmediate,ca=h.process,ua=h.Dispatch,la=h.Function,da=h.MessageChannel,fa=h.String,pa=0,ha={},ga="onreadystatechange";try{Ys=h.location}catch(e){}var ma=function(e){if(be(ha,e)){var t=ha[e];delete ha[e],t()}},va=function(e){return function(){ma(e)}},ya=function(e){ma(e.data)},ba=function(e){h.postMessage(fa(e),Ys.protocol+"//"+Ys.host)};sa&&aa||(sa=function(e){ia(arguments.length,1);var t=z(e)?e:la(e),r=Er(arguments,1);return ha[++pa]=function(){Fr(t,void 0,r)},Js(pa),pa},aa=function(e){delete ha[e]},Qs?Js=function(e){ca.nextTick(va(e))}:ua&&ua.now?Js=function(e){ua.now(va(e))}:da&&!oa?(Zs=(Ks=new da).port2,Ks.port1.onmessage=ya,Js=Or(Zs.postMessage,Zs)):h.addEventListener&&z(h.postMessage)&&!h.importScripts&&Ys&&"file:"!==Ys.protocol&&!g(ba)?(Js=ba,h.addEventListener("message",ya,!1)):Js=ga in Ne("script")?function(e){Ri.appendChild(Ne("script"))[ga]=function(){Ri.removeChild(this),ma(e)}}:function(e){setTimeout(va(e),0)});var wa,Sa,Ca,xa,Ea,Ia,Ta,Ra,Pa={set:sa,clear:aa},ka=/ipad|iphone|ipod/i.test(Y)&&void 0!==h.Pebble,Aa=/web0s(?!.*chrome)/i.test(Y),Oa=_e.f,La=Pa.set,Da=h.MutationObserver||h.WebKitMutationObserver,Ma=h.document,Na=h.process,ja=h.Promise,Ba=Oa(h,"queueMicrotask"),_a=Ba&&Ba.value;_a||(wa=function(){var e,t;for(Qs&&(e=Na.domain)&&e.exit();Sa;){t=Sa.fn,Sa=Sa.next;try{t()}catch(e){throw Sa?xa():Ca=void 0,e}}Ca=void 0,e&&e.enter()},oa||Qs||Aa||!Da||!Ma?!ka&&ja&&ja.resolve?((Ta=ja.resolve(void 0)).constructor=ja,Ra=Or(Ta.then,Ta),xa=function(){Ra(wa)}):Qs?xa=function(){Na.nextTick(wa)}:(La=Or(La,h),xa=function(){La(wa)}):(Ea=!0,Ia=Ma.createTextNode(""),new Da(wa).observe(Ia,{characterData:!0}),xa=function(){Ia.data=Ea=!Ea}));var Ua=_a||function(e){var t={fn:e,next:void 0};Ca&&(Ca.next=t),Sa||(Sa=t,xa()),Ca=t},Fa=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Va=function(){this.head=null,this.tail=null};Va.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var za=Va,Ga=h.Promise,$a="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,qa=!$a&&!Qs&&"object"==typeof window&&"object"==typeof document;Ga&&Ga.prototype;var Wa,Xa,Ha,Ya=Pe("species"),Ja=!1,Ka=z(h.PromiseRejectionEvent),Za=Xt("Promise",(function(){var e=ot(Ga),t=e!==String(Ga);if(!t&&66===ee)return!0;if(!ee||ee<51||!/native code/.test(e)){var r=new Ga((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Ya]=n,!(Ja=r.then((function(){}))instanceof n))return!0}return!t&&(qa||$a)&&!Ka})),Qa={CONSTRUCTOR:Za,REJECTION_EVENT:Ka,SUBCLASSING:Ja},ec=TypeError,tc=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw ec("Bad Promise constructor");t=e,r=n})),this.resolve=ce(t),this.reject=ce(r)},rc={f:function(e){return new tc(e)}},nc=Pa.set,ic="Promise",oc=Qa.CONSTRUCTOR,sc=Qa.REJECTION_EVENT,ac=Qa.SUBCLASSING,cc=mt.getterFor(ic),uc=mt.set,lc=Ga&&Ga.prototype,dc=Ga,fc=lc,pc=h.TypeError,hc=h.document,gc=h.process,mc=rc.f,vc=mc,yc=!!(hc&&hc.createEvent&&h.dispatchEvent),bc="unhandledrejection",wc=function(e){var t;return!(!q(e)||!z(t=e.then))&&t},Sc=function(e,t){var r,n,i,o=t.value,s=1==t.state,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{a?(s||(2===t.rejection&&Tc(t),t.rejection=1),!0===a?r=o:(l&&l.enter(),r=a(o),l&&(l.exit(),i=!0)),r===e.promise?u(pc("Promise-chain cycle")):(n=wc(r))?b(n,r,c,u):c(r)):u(o)}catch(e){l&&!i&&l.exit(),u(e)}},Cc=function(e,t){e.notified||(e.notified=!0,Ua((function(){for(var r,n=e.reactions;r=n.get();)Sc(r,e);e.notified=!1,t&&!e.rejection&&Ec(e)})))},xc=function(e,t,r){var n,i;yc?((n=hc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),h.dispatchEvent(n)):n={promise:t,reason:r},!sc&&(i=h["on"+e])?i(n):e===bc&&function(e,t){var r=h.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Ec=function(e){b(nc,h,(function(){var t,r=e.facade,n=e.value;if(Ic(e)&&(t=Fa((function(){Qs?gc.emit("unhandledRejection",n,r):xc(bc,r,n)})),e.rejection=Qs||Ic(e)?2:1,t.error))throw t.value}))},Ic=function(e){return 1!==e.rejection&&!e.parent},Tc=function(e){b(nc,h,(function(){var t=e.facade;Qs?gc.emit("rejectionHandled",t):xc("rejectionhandled",t,e.value)}))},Rc=function(e,t,r){return function(n){e(t,n,r)}},Pc=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Cc(e,!0))},kc=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw pc("Promise can't be resolved itself");var n=wc(t);n?Ua((function(){var r={done:!1};try{b(n,t,Rc(kc,r,e),Rc(Pc,r,e))}catch(t){Pc(r,t,e)}})):(e.value=t,e.state=1,Cc(e,!1))}catch(t){Pc({done:!1},t,e)}}};if(oc&&(fc=(dc=function(e){ks(this,fc),ce(e),b(Wa,this);var t=cc(this);try{e(Rc(kc,t),Rc(Pc,t))}catch(e){Pc(t,e)}}).prototype,(Wa=function(e){uc(this,{type:ic,done:!1,notified:!1,parent:!1,reactions:new za,rejection:!1,state:0,value:void 0})}).prototype=yt(fc,"then",(function(e,t){var r=cc(this),n=mc(ra(this,dc));return r.parent=!0,n.ok=!z(e)||e,n.fail=z(t)&&t,n.domain=Qs?gc.domain:void 0,0==r.state?r.reactions.add(n):Ua((function(){Sc(n,r)})),n.promise})),Xa=function(){var e=new Wa,t=cc(e);this.promise=e,this.resolve=Rc(kc,t),this.reject=Rc(Pc,t)},rc.f=mc=function(e){return e===dc||undefined===e?new Xa(e):vc(e)},z(Ga)&&lc!==Object.prototype)){Ha=lc.then,ac||yt(lc,"then",(function(e,t){var r=this;return new dc((function(e,t){b(Ha,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete lc.constructor}catch(e){}pn&&pn(lc,fc)}Yt({global:!0,constructor:!0,wrap:!0,forced:oc},{Promise:dc}),ko(dc,ic,!1),qn(ic);var Ac=Qa.CONSTRUCTOR||!Ms((function(e){Ga.all(e).then(void 0,(function(){}))}));Yt({target:"Promise",stat:!0,forced:Ac},{all:function(e){var t=this,r=rc.f(t),n=r.resolve,i=r.reject,o=Fa((function(){var r=ce(t.resolve),o=[],s=0,a=1;Rs(e,(function(e){var c=s++,u=!1;a++,b(r,t,e).then((function(e){u||(u=!0,o[c]=e,--a||n(o))}),i)})),--a||n(o)}));return o.error&&i(o.value),r.promise}});var Oc=Qa.CONSTRUCTOR,Lc=Ga&&Ga.prototype;if(Yt({target:"Promise",proto:!0,forced:Oc,real:!0},{catch:function(e){return this.then(void 0,e)}}),z(Ga)){var Dc=X("Promise").prototype.catch;Lc.catch!==Dc&&yt(Lc,"catch",Dc,{unsafe:!0})}Yt({target:"Promise",stat:!0,forced:Ac},{race:function(e){var t=this,r=rc.f(t),n=r.reject,i=Fa((function(){var i=ce(t.resolve);Rs(e,(function(e){b(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}}),Yt({target:"Promise",stat:!0,forced:Qa.CONSTRUCTOR},{reject:function(e){var t=rc.f(this);return b(t.reject,void 0,e),t.promise}});var Mc=Qa.CONSTRUCTOR;X("Promise"),Yt({target:"Promise",stat:!0,forced:Mc},{resolve:function(e){return function(e,t){if(ze(e),q(t)&&t.constructor===e)return t;var r=rc.f(e);return(0,r.resolve)(t),r.promise}(this,e)}});var Nc,jc="object"==typeof Reflect?Reflect:null,Bc=jc&&"function"==typeof jc.apply?jc.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};Nc=jc&&"function"==typeof jc.ownKeys?jc.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var _c=Number.isNaN||function(e){return e!=e};function Uc(){Uc.init.call(this)}var Fc=Uc,Vc=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}Kc(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&Kc(e,"error",t,r)}(e,i,{once:!0})}))};Uc.EventEmitter=Uc,Uc.prototype._events=void 0,Uc.prototype._eventsCount=0,Uc.prototype._maxListeners=void 0;var zc=10;function Gc(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function $c(e){return void 0===e._maxListeners?Uc.defaultMaxListeners:e._maxListeners}function qc(e,t,r,n){var i,o,s,a;if(Gc(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=$c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,a=c,console&&console.warn&&console.warn(a)}return e}function Wc(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Xc(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Wc.bind(n);return i.listener=r,n.wrapFn=i,i}function Hc(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):Jc(i,i.length)}function Yc(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function Jc(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Kc(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEv