@byteplus/rtc 4.55.2 → 4.56.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$m=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),fails$t=function(e){try{return!!e()}catch(e){return!0}},fails$s=fails$t,functionBindNative=!fails$s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),NATIVE_BIND$4=functionBindNative,FunctionPrototype$3=Function.prototype,apply$5=FunctionPrototype$3.apply,call$v=FunctionPrototype$3.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$4?call$v.bind(apply$5):function(){return call$v.apply(apply$5,arguments)}),NATIVE_BIND$3=functionBindNative,FunctionPrototype$2=Function.prototype,call$u=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype$2.bind.bind(call$u,call$u),functionUncurryThisRaw=NATIVE_BIND$3?uncurryThisWithBind:function(e){return function(){return call$u.apply(e,arguments)}},uncurryThisRaw$1=functionUncurryThisRaw,toString$c=uncurryThisRaw$1({}.toString),stringSlice$2=uncurryThisRaw$1("".slice),classofRaw$2=function(e){return stringSlice$2(toString$c(e),8,-1)},classofRaw$1=classofRaw$2,uncurryThisRaw=functionUncurryThisRaw,functionUncurryThis=function(e){if("Function"===classofRaw$1(e))return uncurryThisRaw(e)},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$l=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},objectGetOwnPropertyDescriptor={},fails$r=fails$t,descriptors=!fails$r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),NATIVE_BIND$2=functionBindNative,call$t=Function.prototype.call,functionCall=NATIVE_BIND$2?call$t.bind(call$t):function(){return call$t.apply(call$t,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$a=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$a&&!$propertyIsEnumerable$1.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){var t=getOwnPropertyDescriptor$a(this,e);return!!t&&t.enumerable}:$propertyIsEnumerable$1;var match,version,createPropertyDescriptor$7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uncurryThis$n=functionUncurryThis,fails$q=fails$t,classof$e=classofRaw$2,$Object$4=Object,split=uncurryThis$n("".split),indexedObject=fails$q((function(){return!$Object$4("z").propertyIsEnumerable(0)}))?function(e){return"String"==classof$e(e)?split(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$6=function(e){return null==e},isNullOrUndefined$5=isNullOrUndefined$6,$TypeError$j=TypeError,requireObjectCoercible$6=function(e){if(isNullOrUndefined$5(e))throw $TypeError$j("Can't call method on "+e);return e},IndexedObject$2=indexedObject,requireObjectCoercible$5=requireObjectCoercible$6,toIndexedObject$a=function(e){return IndexedObject$2(requireObjectCoercible$5(e))},isCallable$k=isCallable$l,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$j=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$k(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$k(e)},path$l={},path$k=path$l,global$l=global$m,isCallable$j=isCallable$l,aFunction=function(e){return isCallable$j(e)?e:void 0},getBuiltIn$h=function(e,t){return arguments.length<2?aFunction(path$k[e])||aFunction(global$l[e]):path$k[e]&&path$k[e][t]||global$l[e]&&global$l[e][t]},uncurryThis$m=functionUncurryThis,objectIsPrototypeOf=uncurryThis$m({}.isPrototypeOf),getBuiltIn$g=getBuiltIn$h,engineUserAgent=getBuiltIn$g("navigator","userAgent")||"",global$k=global$m,userAgent$4=engineUserAgent,process$3=global$k.process,Deno$1=global$k.Deno,versions=process$3&&process$3.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8;v8&&(version=(match=v8.split("."))[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent$4&&(!(match=userAgent$4.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent$4.match(/Chrome\/(\d+)/))&&(version=+match[1]);var engineV8Version=version,V8_VERSION$3=engineV8Version,fails$p=fails$t,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$p((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$3&&V8_VERSION$3<41})),NATIVE_SYMBOL$5=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$f=getBuiltIn$h,isCallable$i=isCallable$l,isPrototypeOf$i=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$4=USE_SYMBOL_AS_UID$1?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$f("Symbol");return isCallable$i(t)&&isPrototypeOf$i(t.prototype,$Object$3(e))},$String$3=String,tryToString$6=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$h=isCallable$l,tryToString$5=tryToString$6,$TypeError$i=TypeError,aCallable$m=function(e){if(isCallable$h(e))return e;throw $TypeError$i(tryToString$5(e)+" is not a function")},aCallable$l=aCallable$m,isNullOrUndefined$4=isNullOrUndefined$6,getMethod$3=function(e,t){var r=e[t];return isNullOrUndefined$4(r)?void 0:aCallable$l(r)},call$s=functionCall,isCallable$g=isCallable$l,isObject$i=isObject$j,$TypeError$h=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$g(r=e.toString)&&!isObject$i(n=call$s(r,e)))return n;if(isCallable$g(r=e.valueOf)&&!isObject$i(n=call$s(r,e)))return n;if("string"!==t&&isCallable$g(r=e.toString)&&!isObject$i(n=call$s(r,e)))return n;throw $TypeError$h("Can't convert object to primitive value")},shared$6={exports:{}},isPure=!0,global$j=global$m,defineProperty$f=Object.defineProperty,defineGlobalProperty$1=function(e,t){try{defineProperty$f(global$j,e,{value:t,configurable:!0,writable:!0})}catch(r){global$j[e]=t}return t},global$i=global$m,defineGlobalProperty=defineGlobalProperty$1,SHARED="__core-js_shared__",store$3=global$i[SHARED]||defineGlobalProperty(SHARED,{}),sharedStore=store$3,IS_PURE$2=isPure,store$2=sharedStore;(shared$6.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.0",mode:IS_PURE$2?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"});var requireObjectCoercible$4=requireObjectCoercible$6,$Object$2=Object,toObject$a=function(e){return $Object$2(requireObjectCoercible$4(e))},uncurryThis$l=functionUncurryThis,toObject$9=toObject$a,hasOwnProperty=uncurryThis$l({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$9(e),t)},uncurryThis$k=functionUncurryThis,id$1=0,postfix=Math.random(),toString$b=uncurryThis$k(1..toString),uid$4=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$b(++id$1+postfix,36)},global$h=global$m,shared$5=shared$6.exports,hasOwn$j=hasOwnProperty_1,uid$3=uid$4,NATIVE_SYMBOL$4=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore$1=shared$5("wks"),Symbol$1=global$h.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$3,wellKnownSymbol$n=function(e){if(!hasOwn$j(WellKnownSymbolsStore$1,e)||!NATIVE_SYMBOL$4&&"string"!=typeof WellKnownSymbolsStore$1[e]){var t="Symbol."+e;NATIVE_SYMBOL$4&&hasOwn$j(Symbol$1,e)?WellKnownSymbolsStore$1[e]=Symbol$1[e]:WellKnownSymbolsStore$1[e]=USE_SYMBOL_AS_UID&&symbolFor?symbolFor(t):createWellKnownSymbol(t)}return WellKnownSymbolsStore$1[e]},call$r=functionCall,isObject$h=isObject$j,isSymbol$3=isSymbol$4,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$m=wellKnownSymbol$n,$TypeError$g=TypeError,TO_PRIMITIVE=wellKnownSymbol$m("toPrimitive"),toPrimitive$7=function(e,t){if(!isObject$h(e)||isSymbol$3(e))return e;var r,n=getMethod$2(e,TO_PRIMITIVE);if(n){if(void 0===t&&(t="default"),r=call$r(n,e,t),!isObject$h(r)||isSymbol$3(r))return r;throw $TypeError$g("Can't convert object to primitive value")}return void 0===t&&(t="number"),ordinaryToPrimitive(e,t)},toPrimitive$6=toPrimitive$7,isSymbol$2=isSymbol$4,toPropertyKey$4=function(e){var t=toPrimitive$6(e,"string");return isSymbol$2(t)?t:t+""},global$g=global$m,isObject$g=isObject$j,document$3=global$g.document,EXISTS$1=isObject$g(document$3)&&isObject$g(document$3.createElement),documentCreateElement$1=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$i=descriptors,fails$o=fails$t,createElement$1=documentCreateElement$1,ie8DomDefine=!DESCRIPTORS$i&&!fails$o((function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a})),DESCRIPTORS$h=descriptors,call$q=functionCall,propertyIsEnumerableModule$2=objectPropertyIsEnumerable,createPropertyDescriptor$6=createPropertyDescriptor$7,toIndexedObject$9=toIndexedObject$a,toPropertyKey$3=toPropertyKey$4,hasOwn$i=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$h?$getOwnPropertyDescriptor$2:function(e,t){if(e=toIndexedObject$9(e),t=toPropertyKey$3(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$2(e,t)}catch(e){}if(hasOwn$i(e,t))return createPropertyDescriptor$6(!call$q(propertyIsEnumerableModule$2.f,e,t),e[t])};var fails$n=fails$t,isCallable$f=isCallable$l,replacement=/#|\.prototype\./,isForced$2=function(e,t){var r=data[normalize(e)];return r==POLYFILL||r!=NATIVE&&(isCallable$f(t)?fails$n(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,uncurryThis$j=functionUncurryThis,aCallable$k=aCallable$m,NATIVE_BIND$1=functionBindNative,bind$p=functionUncurryThis(functionUncurryThis.bind),functionBindContext=function(e,t){return aCallable$k(e),void 0===t?e:NATIVE_BIND$1?bind$p(e,t):function(){return e.apply(t,arguments)}},objectDefineProperty={},DESCRIPTORS$g=descriptors,fails$m=fails$t,v8PrototypeDefineBug=DESCRIPTORS$g&&fails$m((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),isObject$f=isObject$j,$String$2=String,$TypeError$f=TypeError,anObject$t=function(e){if(isObject$f(e))return e;throw $TypeError$f($String$2(e)+" is not an object")},DESCRIPTORS$f=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$s=anObject$t,toPropertyKey$2=toPropertyKey$4,$TypeError$e=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$f?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){if(anObject$s(e),t=toPropertyKey$2(t),anObject$s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]){var n=$getOwnPropertyDescriptor$1(e,t);n&&n[WRITABLE]&&(e[t]=r.value,r={configurable:CONFIGURABLE$1 in r?r[CONFIGURABLE$1]:n[CONFIGURABLE$1],enumerable:ENUMERABLE in r?r[ENUMERABLE]:n[ENUMERABLE],writable:!1})}return $defineProperty$1(e,t,r)}:$defineProperty$1:function(e,t,r){if(anObject$s(e),t=toPropertyKey$2(t),anObject$s(r),IE8_DOM_DEFINE)try{return $defineProperty$1(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$e("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var DESCRIPTORS$e=descriptors,definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$5=createPropertyDescriptor$7,createNonEnumerableProperty$8=DESCRIPTORS$e?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$5(1,r))}:function(e,t,r){return e[t]=r,e},global$f=global$m,apply$4=functionApply,uncurryThis$i=functionUncurryThis,isCallable$e=isCallable$l,getOwnPropertyDescriptor$9=objectGetOwnPropertyDescriptor.f,isForced$1=isForced_1,path$j=path$l,bind$o=functionBindContext,createNonEnumerableProperty$7=createNonEnumerableProperty$8,hasOwn$h=hasOwnProperty_1,wrapConstructor=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return apply$4(e,this,arguments)};return t.prototype=e.prototype,t},_export=function(e,t){var r,n,o,a,i,s,l,c,u=e.target,$=e.global,f=e.stat,p=e.proto,d=$?global$f:f?global$f[u]:(global$f[u]||{}).prototype,_=$?path$j:path$j[u]||createNonEnumerableProperty$7(path$j,u,{})[u],y=_.prototype;for(o in t)r=!isForced$1($?o:u+(f?".":"#")+o,e.forced)&&d&&hasOwn$h(d,o),i=_[o],r&&(s=e.dontCallGetSet?(c=getOwnPropertyDescriptor$9(d,o))&&c.value:d[o]),a=r&&s?s:t[o],r&&typeof i==typeof a||(l=e.bind&&r?bind$o(a,global$f):e.wrap&&r?wrapConstructor(a):p&&isCallable$e(a)?uncurryThis$i(a):a,(e.sham||a&&a.sham||i&&i.sham)&&createNonEnumerableProperty$7(l,"sham",!0),createNonEnumerableProperty$7(_,o,l),p&&(hasOwn$h(path$j,n=u+"Prototype")||createNonEnumerableProperty$7(path$j,n,{}),createNonEnumerableProperty$7(path$j[n],o,a),e.real&&y&&!y[o]&&createNonEnumerableProperty$7(y,o,a)))},classof$d=classofRaw$2,isArray$d=Array.isArray||function(e){return"Array"==classof$d(e)},ceil$1=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){var t=+e;return(t>0?floor:ceil$1)(t)},trunc2=mathTrunc,toIntegerOrInfinity$5=function(e){var t=+e;return t!=t||0===t?0:trunc2(t)},toIntegerOrInfinity$4=toIntegerOrInfinity$5,min$2=Math.min,toLength$2=function(e){return e>0?min$2(toIntegerOrInfinity$4(e),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$8=function(e){return toLength$1(e.length)},$TypeError$d=TypeError,MAX_SAFE_INTEGER=9007199254740991,doesNotExceedSafeInteger$2=function(e){if(e>MAX_SAFE_INTEGER)throw $TypeError$d("Maximum allowed index exceeded");return e},toPropertyKey$1=toPropertyKey$4,definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$4=createPropertyDescriptor$7,createProperty$6=function(e,t,r){var n=toPropertyKey$1(t);n in e?definePropertyModule$4.f(e,n,createPropertyDescriptor$4(0,r)):e[n]=r},wellKnownSymbol$l=wellKnownSymbol$n,TO_STRING_TAG$4=wellKnownSymbol$l("toStringTag"),test$1={};test$1[TO_STRING_TAG$4]="z";var toStringTagSupport="[object z]"===String(test$1),TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$d=isCallable$l,classofRaw=classofRaw$2,wellKnownSymbol$k=wellKnownSymbol$n,TO_STRING_TAG$3=wellKnownSymbol$k("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$c=TO_STRING_TAG_SUPPORT$2?classofRaw:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=tryGet(t=$Object$1(e),TO_STRING_TAG$3))?r:CORRECT_ARGUMENTS?classofRaw(t):"Object"==(n=classofRaw(t))&&isCallable$d(t.callee)?"Arguments":n},uncurryThis$h=functionUncurryThis,isCallable$c=isCallable$l,store$1=sharedStore,functionToString=uncurryThis$h(Function.toString);isCallable$c(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)});var inspectSource$2=store$1.inspectSource,uncurryThis$g=functionUncurryThis,fails$l=fails$t,isCallable$b=isCallable$l,classof$b=classof$c,getBuiltIn$e=getBuiltIn$h,inspectSource$1=inspectSource$2,noop=function(){},empty=[],construct$7=getBuiltIn$e("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$1=uncurryThis$g(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$b(e))return!1;try{return construct$7(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$b(e))return!1;switch(classof$b(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$1(constructorRegExp,inspectSource$1(e))}catch(e){return!0}};isConstructorLegacy.sham=!0;var isConstructor$4=!construct$7||fails$l((function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern((function(){e=!0}))||e}))?isConstructorLegacy:isConstructorModern,isArray$c=isArray$d,isConstructor$3=isConstructor$4,isObject$e=isObject$j,wellKnownSymbol$j=wellKnownSymbol$n,SPECIES$5=wellKnownSymbol$j("species"),$Array$3=Array,arraySpeciesConstructor$1=function(e){var t;return isArray$c(e)&&(t=e.constructor,(isConstructor$3(t)&&(t===$Array$3||isArray$c(t.prototype))||isObject$e(t)&&null===(t=t[SPECIES$5]))&&(t=void 0)),void 0===t?$Array$3:t},arraySpeciesConstructor=arraySpeciesConstructor$1,arraySpeciesCreate$3=function(e,t){return new(arraySpeciesConstructor(e))(0===t?0:t)},fails$k=fails$t,wellKnownSymbol$i=wellKnownSymbol$n,V8_VERSION$2=engineV8Version,SPECIES$4=wellKnownSymbol$i("species"),arrayMethodHasSpeciesSupport$5=function(e){return V8_VERSION$2>=51||!fails$k((function(){var t=[];return(t.constructor={})[SPECIES$4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$$Z=_export,fails$j=fails$t,isArray$b=isArray$d,isObject$d=isObject$j,toObject$8=toObject$a,lengthOfArrayLike$7=lengthOfArrayLike$8,doesNotExceedSafeInteger$1=doesNotExceedSafeInteger$2,createProperty$5=createProperty$6,arraySpeciesCreate$2=arraySpeciesCreate$3,arrayMethodHasSpeciesSupport$4=arrayMethodHasSpeciesSupport$5,wellKnownSymbol$h=wellKnownSymbol$n,V8_VERSION$1=engineV8Version,IS_CONCAT_SPREADABLE=wellKnownSymbol$h("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION$1>=51||!fails$j((function(){var e=[];return e[IS_CONCAT_SPREADABLE]=!1,e.concat()[0]!==e})),SPECIES_SUPPORT=arrayMethodHasSpeciesSupport$4("concat"),isConcatSpreadable=function(e){if(!isObject$d(e))return!1;var t=e[IS_CONCAT_SPREADABLE];return void 0!==t?!!t:isArray$b(e)},FORCED$3=!IS_CONCAT_SPREADABLE_SUPPORT||!SPECIES_SUPPORT;$$Z({target:"Array",proto:!0,arity:1,forced:FORCED$3},{concat:function(e){var t,r,n,o,a,i=toObject$8(this),s=arraySpeciesCreate$2(i,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(isConcatSpreadable(a=-1===t?i:arguments[t]))for(o=lengthOfArrayLike$7(a),doesNotExceedSafeInteger$1(l+o),r=0;r<o;r++,l++)r in a&&createProperty$5(s,l,a[r]);else doesNotExceedSafeInteger$1(l+1),createProperty$5(s,l++,a);return s.length=l,s}});var classof$a=classof$c,$String$1=String,toString$a=function(e){if("Symbol"===classof$a(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},objectDefineProperties={},toIntegerOrInfinity$3=toIntegerOrInfinity$5,max$3=Math.max,min$1=Math.min,toAbsoluteIndex$4=function(e,t){var r=toIntegerOrInfinity$3(e);return r<0?max$3(r+t,0):min$1(r,t)},toIndexedObject$8=toIndexedObject$a,toAbsoluteIndex$3=toAbsoluteIndex$4,lengthOfArrayLike$6=lengthOfArrayLike$8,createMethod$3=function(e){return function(t,r,n){var o,a=toIndexedObject$8(t),i=lengthOfArrayLike$6(a),s=toAbsoluteIndex$3(n,i);if(e&&r!=r){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},arrayIncludes={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},hiddenKeys$6={},uncurryThis$f=functionUncurryThis,hasOwn$g=hasOwnProperty_1,toIndexedObject$7=toIndexedObject$a,indexOf=arrayIncludes.indexOf,hiddenKeys$5=hiddenKeys$6,push$6=uncurryThis$f([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$7(e),o=0,a=[];for(r in n)!hasOwn$g(hiddenKeys$5,r)&&hasOwn$g(n,r)&&push$6(a,r);for(;t.length>o;)hasOwn$g(n,r=t[o++])&&(~indexOf(a,r)||push$6(a,r));return a},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,objectKeys$3=Object.keys||function(e){return internalObjectKeys$1(e,enumBugKeys$2)},DESCRIPTORS$d=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$3=objectDefineProperty,anObject$r=anObject$t,toIndexedObject$6=toIndexedObject$a,objectKeys$2=objectKeys$3;objectDefineProperties.f=DESCRIPTORS$d&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$r(e);for(var r,n=toIndexedObject$6(t),o=objectKeys$2(t),a=o.length,i=0;a>i;)definePropertyModule$3.f(e,r=o[i++],n[r]);return e};var activeXDocument,getBuiltIn$d=getBuiltIn$h,html$2=getBuiltIn$d("document","documentElement"),shared$4=shared$6.exports,uid$2=uid$4,keys$d=shared$4("keys"),sharedKey$4=function(e){return keys$d[e]||(keys$d[e]=uid$2(e))},anObject$q=anObject$t,definePropertiesModule$1=objectDefineProperties,enumBugKeys$1=enumBugKeys$3,hiddenKeys$4=hiddenKeys$6,html$1=html$2,documentCreateElement=documentCreateElement$1,sharedKey$3=sharedKey$4,GT=">",LT="<",PROTOTYPE$1="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e,t=documentCreateElement("iframe"),r="java"+SCRIPT+":";return t.style.display="none",html$1.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var e=enumBugKeys$1.length;e--;)delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[e]];return NullProtoObject()};hiddenKeys$4[IE_PROTO$1]=!0;var objectCreate=Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE$1]=anObject$q(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE$1]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule$1.f(r,t)},objectGetOwnPropertyNames={},internalObjectKeys=objectKeysInternal,enumBugKeys=enumBugKeys$3,hiddenKeys$3=enumBugKeys.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys(e,hiddenKeys$3)};var objectGetOwnPropertyNamesExternal={},toAbsoluteIndex$2=toAbsoluteIndex$4,lengthOfArrayLike$5=lengthOfArrayLike$8,createProperty$4=createProperty$6,$Array$2=Array,max$2=Math.max,arraySliceSimple=function(e,t,r){for(var n=lengthOfArrayLike$5(e),o=toAbsoluteIndex$2(t,n),a=toAbsoluteIndex$2(void 0===r?n:r,n),i=$Array$2(max$2(a-o,0)),s=0;o<a;o++,s++)createProperty$4(i,s,e[o]);return i.length=s,i},classof$9=classofRaw$2,toIndexedObject$5=toIndexedObject$a,$getOwnPropertyNames$1=objectGetOwnPropertyNames.f,arraySlice$5=arraySliceSimple,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return $getOwnPropertyNames$1(e)}catch(e){return arraySlice$5(windowNames)}};objectGetOwnPropertyNamesExternal.f=function(e){return windowNames&&"Window"==classof$9(e)?getWindowNames(e):$getOwnPropertyNames$1(toIndexedObject$5(e))};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var createNonEnumerableProperty$6=createNonEnumerableProperty$8,defineBuiltIn$6=function(e,t,r,n){return n&&n.enumerable?e[t]=r:createNonEnumerableProperty$6(e,t,r),e},wellKnownSymbolWrapped={},wellKnownSymbol$g=wellKnownSymbol$n;wellKnownSymbolWrapped.f=wellKnownSymbol$g;var set$1,get,has,path$i=path$l,hasOwn$f=hasOwnProperty_1,wrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,defineProperty$e=objectDefineProperty.f,wellKnownSymbolDefine=function(e){var t=path$i.Symbol||(path$i.Symbol={});hasOwn$f(t,e)||defineProperty$e(t,e,{value:wrappedWellKnownSymbolModule$1.f(e)})},call$p=functionCall,getBuiltIn$c=getBuiltIn$h,wellKnownSymbol$f=wellKnownSymbol$n,defineBuiltIn$5=defineBuiltIn$6,symbolDefineToPrimitive=function(){var e=getBuiltIn$c("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wellKnownSymbol$f("toPrimitive");t&&!t[n]&&defineBuiltIn$5(t,n,(function(e){return call$p(r,this)}),{arity:1})},TO_STRING_TAG_SUPPORT$1=toStringTagSupport,classof$8=classof$c,objectToString=TO_STRING_TAG_SUPPORT$1?{}.toString:function(){return"[object "+classof$8(this)+"]"},TO_STRING_TAG_SUPPORT=toStringTagSupport,defineProperty$d=objectDefineProperty.f,createNonEnumerableProperty$5=createNonEnumerableProperty$8,hasOwn$e=hasOwnProperty_1,toString$9=objectToString,wellKnownSymbol$e=wellKnownSymbol$n,TO_STRING_TAG$2=wellKnownSymbol$e("toStringTag"),setToStringTag$7=function(e,t,r,n){if(e){var o=r?e:e.prototype;hasOwn$e(o,TO_STRING_TAG$2)||defineProperty$d(o,TO_STRING_TAG$2,{configurable:!0,value:t}),n&&!TO_STRING_TAG_SUPPORT&&createNonEnumerableProperty$5(o,"toString",toString$9)}},global$e=global$m,isCallable$a=isCallable$l,WeakMap$1=global$e.WeakMap,weakMapBasicDetection=isCallable$a(WeakMap$1)&&/native code/.test(String(WeakMap$1)),NATIVE_WEAK_MAP=weakMapBasicDetection,global$d=global$m,isObject$c=isObject$j,createNonEnumerableProperty$4=createNonEnumerableProperty$8,hasOwn$d=hasOwnProperty_1,shared$3=sharedStore,sharedKey$2=sharedKey$4,hiddenKeys$2=hiddenKeys$6,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$3=global$d.TypeError,WeakMap=global$d.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(e){return function(t){var r;if(!isObject$c(t)||(r=get(t)).type!==e)throw TypeError$3("Incompatible receiver, "+e+" required");return r}};if(NATIVE_WEAK_MAP||shared$3.state){var store=shared$3.state||(shared$3.state=new WeakMap);store.get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},has=function(e){return store.has(e)}}else{var STATE=sharedKey$2("state");hiddenKeys$2[STATE]=!0,set$1=function(e,t){if(hasOwn$d(e,STATE))throw TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$d(e,STATE)?e[STATE]:{}},has=function(e){return hasOwn$d(e,STATE)}}var internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},bind$n=functionBindContext,uncurryThis$e=functionUncurryThis,IndexedObject$1=indexedObject,toObject$7=toObject$a,lengthOfArrayLike$4=lengthOfArrayLike$8,arraySpeciesCreate$1=arraySpeciesCreate$3,push$5=uncurryThis$e([].push),createMethod$2=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,a=6==e,i=7==e,s=5==e||a;return function(l,c,u,$){for(var f,p,d=toObject$7(l),_=IndexedObject$1(d),y=bind$n(c,u),h=lengthOfArrayLike$4(_),b=0,g=$||arraySpeciesCreate$1,S=t?g(l,h):r||i?g(l,0):void 0;h>b;b++)if((s||b in _)&&(p=y(f=_[b],b,d),e))if(t)S[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:push$5(S,f)}else switch(e){case 4:return!1;case 7:push$5(S,f)}return a?-1:n||o?o:S}},arrayIteration={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterReject:createMethod$2(7)},$$Y=_export,global$c=global$m,call$o=functionCall,uncurryThis$d=functionUncurryThis,DESCRIPTORS$c=descriptors,NATIVE_SYMBOL$3=symbolConstructorDetection,fails$i=fails$t,hasOwn$c=hasOwnProperty_1,isPrototypeOf$h=objectIsPrototypeOf,anObject$p=anObject$t,toIndexedObject$4=toIndexedObject$a,toPropertyKey=toPropertyKey$4,$toString=toString$a,createPropertyDescriptor$3=createPropertyDescriptor$7,nativeObjectCreate=objectCreate,objectKeys$1=objectKeys$3,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames,getOwnPropertyNamesExternal=objectGetOwnPropertyNamesExternal,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,definePropertiesModule=objectDefineProperties,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,defineBuiltIn$4=defineBuiltIn$6,shared$2=shared$6.exports,sharedKey$1=sharedKey$4,hiddenKeys$1=hiddenKeys$6,uid$1=uid$4,wellKnownSymbol$d=wellKnownSymbol$n,wrappedWellKnownSymbolModule=wellKnownSymbolWrapped,defineWellKnownSymbol$l=wellKnownSymbolDefine,defineSymbolToPrimitive$1=symbolDefineToPrimitive,setToStringTag$6=setToStringTag$7,InternalStateModule$5=internalState,$forEach$1=arrayIteration.forEach,HIDDEN=sharedKey$1("hidden"),SYMBOL="Symbol",PROTOTYPE="prototype",setInternalState$5=InternalStateModule$5.set,getInternalState$2=InternalStateModule$5.getterFor(SYMBOL),ObjectPrototype$2=Object[PROTOTYPE],$Symbol=global$c.Symbol,SymbolPrototype=$Symbol&&$Symbol[PROTOTYPE],TypeError$2=global$c.TypeError,QObject=global$c.QObject,nativeGetOwnPropertyDescriptor$1=getOwnPropertyDescriptorModule$2.f,nativeDefineProperty=definePropertyModule$2.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule$1.f,push$4=uncurryThis$d([].push),AllSymbols=shared$2("symbols"),ObjectPrototypeSymbols=shared$2("op-symbols"),WellKnownSymbolsStore=shared$2("wks"),USE_SETTER=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild,setSymbolDescriptor=DESCRIPTORS$c&&fails$i((function(){return 7!=nativeObjectCreate(nativeDefineProperty({},"a",{get:function(){return nativeDefineProperty(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=nativeGetOwnPropertyDescriptor$1(ObjectPrototype$2,t);n&&delete ObjectPrototype$2[t],nativeDefineProperty(e,t,r),n&&e!==ObjectPrototype$2&&nativeDefineProperty(ObjectPrototype$2,t,n)}:nativeDefineProperty,wrap=function(e,t){var r=AllSymbols[e]=nativeObjectCreate(SymbolPrototype);return setInternalState$5(r,{type:SYMBOL,tag:e,description:t}),DESCRIPTORS$c||(r.description=t),r},$defineProperty=function(e,t,r){e===ObjectPrototype$2&&$defineProperty(ObjectPrototypeSymbols,t,r),anObject$p(e);var n=toPropertyKey(t);return anObject$p(r),hasOwn$c(AllSymbols,n)?(r.enumerable?(hasOwn$c(e,HIDDEN)&&e[HIDDEN][n]&&(e[HIDDEN][n]=!1),r=nativeObjectCreate(r,{enumerable:createPropertyDescriptor$3(0,!1)})):(hasOwn$c(e,HIDDEN)||nativeDefineProperty(e,HIDDEN,createPropertyDescriptor$3(1,{})),e[HIDDEN][n]=!0),setSymbolDescriptor(e,n,r)):nativeDefineProperty(e,n,r)},$defineProperties=function(e,t){anObject$p(e);var r=toIndexedObject$4(t),n=objectKeys$1(r).concat($getOwnPropertySymbols(r));return $forEach$1(n,(function(t){DESCRIPTORS$c&&!call$o($propertyIsEnumerable,r,t)||$defineProperty(e,t,r[t])})),e},$create=function(e,t){return void 0===t?nativeObjectCreate(e):$defineProperties(nativeObjectCreate(e),t)},$propertyIsEnumerable=function(e){var t=toPropertyKey(e),r=call$o(nativePropertyIsEnumerable,this,t);return!(this===ObjectPrototype$2&&hasOwn$c(AllSymbols,t)&&!hasOwn$c(ObjectPrototypeSymbols,t))&&(!(r||!hasOwn$c(this,t)||!hasOwn$c(AllSymbols,t)||hasOwn$c(this,HIDDEN)&&this[HIDDEN][t])||r)},$getOwnPropertyDescriptor=function(e,t){var r=toIndexedObject$4(e),n=toPropertyKey(t);if(r!==ObjectPrototype$2||!hasOwn$c(AllSymbols,n)||hasOwn$c(ObjectPrototypeSymbols,n)){var o=nativeGetOwnPropertyDescriptor$1(r,n);return!o||!hasOwn$c(AllSymbols,n)||hasOwn$c(r,HIDDEN)&&r[HIDDEN][n]||(o.enumerable=!0),o}},$getOwnPropertyNames=function(e){var t=nativeGetOwnPropertyNames(toIndexedObject$4(e)),r=[];return $forEach$1(t,(function(e){hasOwn$c(AllSymbols,e)||hasOwn$c(hiddenKeys$1,e)||push$4(r,e)})),r},$getOwnPropertySymbols=function(e){var t=e===ObjectPrototype$2,r=nativeGetOwnPropertyNames(t?ObjectPrototypeSymbols:toIndexedObject$4(e)),n=[];return $forEach$1(r,(function(e){!hasOwn$c(AllSymbols,e)||t&&!hasOwn$c(ObjectPrototype$2,e)||push$4(n,AllSymbols[e])})),n};NATIVE_SYMBOL$3||(defineBuiltIn$4(SymbolPrototype=($Symbol=function(){if(isPrototypeOf$h(SymbolPrototype,this))throw TypeError$2("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?$toString(arguments[0]):void 0,t=uid$1(e),r=function(e){this===ObjectPrototype$2&&call$o(r,ObjectPrototypeSymbols,e),hasOwn$c(this,HIDDEN)&&hasOwn$c(this[HIDDEN],t)&&(this[HIDDEN][t]=!1),setSymbolDescriptor(this,t,createPropertyDescriptor$3(1,e))};return DESCRIPTORS$c&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype$2,t,{configurable:!0,set:r}),wrap(t,e)})[PROTOTYPE],"toString",(function(){return getInternalState$2(this).tag})),defineBuiltIn$4($Symbol,"withoutSetter",(function(e){return wrap(uid$1(e),e)})),propertyIsEnumerableModule$1.f=$propertyIsEnumerable,definePropertyModule$2.f=$defineProperty,definePropertiesModule.f=$defineProperties,getOwnPropertyDescriptorModule$2.f=$getOwnPropertyDescriptor,getOwnPropertyNamesModule$2.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames,getOwnPropertySymbolsModule$3.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(e){return wrap(wellKnownSymbol$d(e),e)},DESCRIPTORS$c&&nativeDefineProperty(SymbolPrototype,"description",{configurable:!0,get:function(){return getInternalState$2(this).description}})),$$Y({global:!0,constructor:!0,wrap:!0,forced:!NATIVE_SYMBOL$3,sham:!NATIVE_SYMBOL$3},{Symbol:$Symbol}),$forEach$1(objectKeys$1(WellKnownSymbolsStore),(function(e){defineWellKnownSymbol$l(e)})),$$Y({target:SYMBOL,stat:!0,forced:!NATIVE_SYMBOL$3},{useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$$Y({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$3,sham:!DESCRIPTORS$c},{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor}),$$Y({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$3},{getOwnPropertyNames:$getOwnPropertyNames}),defineSymbolToPrimitive$1(),setToStringTag$6($Symbol,SYMBOL),hiddenKeys$1[HIDDEN]=!0;var NATIVE_SYMBOL$2=symbolConstructorDetection,symbolRegistryDetection=NATIVE_SYMBOL$2&&!!Symbol.for&&!!Symbol.keyFor,$$X=_export,getBuiltIn$b=getBuiltIn$h,hasOwn$b=hasOwnProperty_1,toString$8=toString$a,shared$1=shared$6.exports,NATIVE_SYMBOL_REGISTRY$1=symbolRegistryDetection,StringToSymbolRegistry=shared$1("string-to-symbol-registry"),SymbolToStringRegistry$1=shared$1("symbol-to-string-registry");$$X({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY$1},{for:function(e){var t=toString$8(e);if(hasOwn$b(StringToSymbolRegistry,t))return StringToSymbolRegistry[t];var r=getBuiltIn$b("Symbol")(t);return StringToSymbolRegistry[t]=r,SymbolToStringRegistry$1[r]=t,r}});var $$W=_export,hasOwn$a=hasOwnProperty_1,isSymbol$1=isSymbol$4,tryToString$4=tryToString$6,shared=shared$6.exports,NATIVE_SYMBOL_REGISTRY=symbolRegistryDetection,SymbolToStringRegistry=shared("symbol-to-string-registry");$$W({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY},{keyFor:function(e){if(!isSymbol$1(e))throw TypeError(tryToString$4(e)+" is not a symbol");if(hasOwn$a(SymbolToStringRegistry,e))return SymbolToStringRegistry[e]}});var uncurryThis$c=functionUncurryThis,arraySlice$4=uncurryThis$c([].slice),$$V=_export,getBuiltIn$a=getBuiltIn$h,apply$3=functionApply,call$n=functionCall,uncurryThis$b=functionUncurryThis,fails$h=fails$t,isArray$a=isArray$d,isCallable$9=isCallable$l,isObject$b=isObject$j,isSymbol=isSymbol$4,arraySlice$3=arraySlice$4,NATIVE_SYMBOL$1=symbolConstructorDetection,$stringify=getBuiltIn$a("JSON","stringify"),exec=uncurryThis$b(/./.exec),charAt$2=uncurryThis$b("".charAt),charCodeAt$1=uncurryThis$b("".charCodeAt),replace$1=uncurryThis$b("".replace),numberToString=uncurryThis$b(1..toString),tester=/[\uD800-\uDFFF]/g,low=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,WRONG_SYMBOLS_CONVERSION=!NATIVE_SYMBOL$1||fails$h((function(){var e=getBuiltIn$a("Symbol")();return"[null]"!=$stringify([e])||"{}"!=$stringify({a:e})||"{}"!=$stringify(Object(e))})),ILL_FORMED_UNICODE=fails$h((function(){return'"\\udf06\\ud834"'!==$stringify("\udf06\ud834")||'"\\udead"'!==$stringify("\udead")})),stringifyWithSymbolsFix=function(e,t){var r=arraySlice$3(arguments),n=t;if((isObject$b(t)||void 0!==e)&&!isSymbol(e))return isArray$a(t)||(t=function(e,t){if(isCallable$9(n)&&(t=call$n(n,this,e,t)),!isSymbol(t))return t}),r[1]=t,apply$3($stringify,null,r)},fixIllFormed=function(e,t,r){var n=charAt$2(r,t-1),o=charAt$2(r,t+1);return exec(low,e)&&!exec(hi,o)||exec(hi,e)&&!exec(low,n)?"\\u"+numberToString(charCodeAt$1(e,0),16):e};$stringify&&$$V({target:"JSON",stat:!0,arity:3,forced:WRONG_SYMBOLS_CONVERSION||ILL_FORMED_UNICODE},{stringify:function(e,t,r){var n=arraySlice$3(arguments),o=apply$3(WRONG_SYMBOLS_CONVERSION?stringifyWithSymbolsFix:$stringify,null,n);return ILL_FORMED_UNICODE&&"string"==typeof o?replace$1(o,tester,fixIllFormed):o}});var $$U=_export,NATIVE_SYMBOL=symbolConstructorDetection,fails$g=fails$t,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols,toObject$6=toObject$a,FORCED$2=!NATIVE_SYMBOL||fails$g((function(){getOwnPropertySymbolsModule$2.f(1)}));$$U({target:"Object",stat:!0,forced:FORCED$2},{getOwnPropertySymbols:function(e){var t=getOwnPropertySymbolsModule$2.f;return t?t(toObject$6(e)):[]}});var defineWellKnownSymbol$k=wellKnownSymbolDefine;defineWellKnownSymbol$k("asyncIterator");var defineWellKnownSymbol$j=wellKnownSymbolDefine;defineWellKnownSymbol$j("hasInstance");var defineWellKnownSymbol$i=wellKnownSymbolDefine;defineWellKnownSymbol$i("isConcatSpreadable");var defineWellKnownSymbol$h=wellKnownSymbolDefine;defineWellKnownSymbol$h("iterator");var defineWellKnownSymbol$g=wellKnownSymbolDefine;defineWellKnownSymbol$g("match");var defineWellKnownSymbol$f=wellKnownSymbolDefine;defineWellKnownSymbol$f("matchAll");var defineWellKnownSymbol$e=wellKnownSymbolDefine;defineWellKnownSymbol$e("replace");var defineWellKnownSymbol$d=wellKnownSymbolDefine;defineWellKnownSymbol$d("search");var defineWellKnownSymbol$c=wellKnownSymbolDefine;defineWellKnownSymbol$c("species");var defineWellKnownSymbol$b=wellKnownSymbolDefine;defineWellKnownSymbol$b("split");var defineWellKnownSymbol$a=wellKnownSymbolDefine,defineSymbolToPrimitive=symbolDefineToPrimitive;defineWellKnownSymbol$a("toPrimitive"),defineSymbolToPrimitive();var getBuiltIn$9=getBuiltIn$h,defineWellKnownSymbol$9=wellKnownSymbolDefine,setToStringTag$5=setToStringTag$7;defineWellKnownSymbol$9("toStringTag"),setToStringTag$5(getBuiltIn$9("Symbol"),"Symbol");var defineWellKnownSymbol$8=wellKnownSymbolDefine;defineWellKnownSymbol$8("unscopables");var global$b=global$m,setToStringTag$4=setToStringTag$7;setToStringTag$4(global$b.JSON,"JSON",!0);var IteratorPrototype$1,PrototypeOfArrayIteratorPrototype,arrayIterator,path$h=path$l,symbol$5=path$h.Symbol,addToUnscopables$1=function(){},iterators={},DESCRIPTORS$b=descriptors,hasOwn$9=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$b&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$9(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$b||DESCRIPTORS$b&&getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},fails$f=fails$t,correctPrototypeGetter=!fails$f((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hasOwn$8=hasOwnProperty_1,isCallable$8=isCallable$l,toObject$5=toObject$a,sharedKey=sharedKey$4,CORRECT_PROTOTYPE_GETTER$1=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype$1=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER$1?$Object.getPrototypeOf:function(e){var t=toObject$5(e);if(hasOwn$8(t,IE_PROTO))return t[IE_PROTO];var r=t.constructor;return isCallable$8(r)&&t instanceof r?r.prototype:t instanceof $Object?ObjectPrototype$1:null},fails$e=fails$t,isCallable$7=isCallable$l,isObject$a=isObject$j,create$b=objectCreate,getPrototypeOf$8=objectGetPrototypeOf,defineBuiltIn$3=defineBuiltIn$6,wellKnownSymbol$c=wellKnownSymbol$n,ITERATOR$4=wellKnownSymbol$c("iterator"),BUGGY_SAFARI_ITERATORS$1=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$8(getPrototypeOf$8(arrayIterator)))!==Object.prototype&&(IteratorPrototype$1=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject$a(IteratorPrototype$1)||fails$e((function(){var e={};return IteratorPrototype$1[ITERATOR$4].call(e)!==e}));isCallable$7((IteratorPrototype$1=NEW_ITERATOR_PROTOTYPE?{}:create$b(IteratorPrototype$1))[ITERATOR$4])||defineBuiltIn$3(IteratorPrototype$1,ITERATOR$4,(function(){return this}));var iteratorsCore={IteratorPrototype:IteratorPrototype$1,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype=iteratorsCore.IteratorPrototype,create$a=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$7,setToStringTag$3=setToStringTag$7,Iterators$5=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){var o=t+" Iterator";return e.prototype=create$a(IteratorPrototype,{next:createPropertyDescriptor$2(+!n,r)}),setToStringTag$3(e,o,!1,!0),Iterators$5[o]=returnThis$1,e},isCallable$6=isCallable$l,$String=String,$TypeError$c=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$6(e))return e;throw $TypeError$c("Can't set "+$String(e)+" as a prototype")},uncurryThis$a=functionUncurryThis,anObject$o=anObject$t,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=uncurryThis$a(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return anObject$o(r),aPossiblePrototype(n),t?e(r,n):r.__proto__=n,r}}():void 0),$$T=_export,call$m=functionCall,FunctionName=functionName,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf$7=objectGetPrototypeOf,setToStringTag$2=setToStringTag$7,defineBuiltIn$2=defineBuiltIn$6,wellKnownSymbol$b=wellKnownSymbol$n,Iterators$4=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER;FunctionName.CONFIGURABLE,IteratorsCore.IteratorPrototype;var BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$3=wellKnownSymbol$b("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,a,i){createIteratorConstructor(r,t,n);var s,l,c,u=function(e){if(e===o&&_)return _;if(!BUGGY_SAFARI_ITERATORS&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}},$=t+" Iterator",f=!1,p=e.prototype,d=p[ITERATOR$3]||p["@@iterator"]||o&&p[o],_=!BUGGY_SAFARI_ITERATORS&&d||u(o),y="Array"==t&&p.entries||d;if(y&&(s=getPrototypeOf$7(y.call(new e)))!==Object.prototype&&s.next&&(setToStringTag$2(s,$,!0,!0),Iterators$4[$]=returnThis),PROPER_FUNCTION_NAME&&o==VALUES&&d&&d.name!==VALUES&&(f=!0,_=function(){return call$m(d,this)}),o)if(l={values:u(VALUES),keys:a?_:u(KEYS),entries:u(ENTRIES)},i)for(c in l)(BUGGY_SAFARI_ITERATORS||f||!(c in p))&&defineBuiltIn$2(p,c,l[c]);else $$T({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||f},l);return i&&p[ITERATOR$3]!==_&&defineBuiltIn$2(p,ITERATOR$3,_,{name:o}),Iterators$4[t]=_,l},createIterResultObject$3=function(e,t){return{value:e,done:t}},toIndexedObject$3=toIndexedObject$a,addToUnscopables=addToUnscopables$1,Iterators$3=iterators,InternalStateModule$4=internalState,defineProperty$c=objectDefineProperty.f,defineIterator$2=iteratorDefine,createIterResultObject$2=createIterResultObject$3,IS_PURE$1=isPure,DESCRIPTORS$a=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$4=InternalStateModule$4.set,getInternalState$1=InternalStateModule$4.getterFor(ARRAY_ITERATOR);defineIterator$2(Array,"Array",(function(e,t){setInternalState$4(this,{type:ARRAY_ITERATOR,target:toIndexedObject$3(e),index:0,kind:t})}),(function(){var e=getInternalState$1(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject$2(void 0,!0)):createIterResultObject$2("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var values$7=Iterators$3.Arguments=Iterators$3.Array;if(addToUnscopables(),addToUnscopables(),addToUnscopables(),!IS_PURE$1&&DESCRIPTORS$a&&"values"!==values$7.name)try{defineProperty$c(values$7,"name",{value:"values"})}catch(e){}var domIterables={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},DOMIterables$3=domIterables,global$a=global$m,classof$7=classof$c,createNonEnumerableProperty$3=createNonEnumerableProperty$8,Iterators$2=iterators,wellKnownSymbol$a=wellKnownSymbol$n,TO_STRING_TAG$1=wellKnownSymbol$a("toStringTag");for(var COLLECTION_NAME in DOMIterables$3){var Collection=global$a[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;CollectionPrototype&&classof$7(CollectionPrototype)!==TO_STRING_TAG$1&&createNonEnumerableProperty$3(CollectionPrototype,TO_STRING_TAG$1,COLLECTION_NAME),Iterators$2[COLLECTION_NAME]=Iterators$2.Array}var parent$1y=symbol$5,symbol$4=parent$1y,parent$1x=symbol$4,symbol$3=parent$1x,defineWellKnownSymbol$7=wellKnownSymbolDefine;defineWellKnownSymbol$7("asyncDispose");var defineWellKnownSymbol$6=wellKnownSymbolDefine;defineWellKnownSymbol$6("dispose");var defineWellKnownSymbol$5=wellKnownSymbolDefine;defineWellKnownSymbol$5("matcher");var defineWellKnownSymbol$4=wellKnownSymbolDefine;defineWellKnownSymbol$4("metadataKey");var defineWellKnownSymbol$3=wellKnownSymbolDefine;defineWellKnownSymbol$3("observable");var defineWellKnownSymbol$2=wellKnownSymbolDefine;defineWellKnownSymbol$2("metadata");var defineWellKnownSymbol$1=wellKnownSymbolDefine;defineWellKnownSymbol$1("patternMatch");var defineWellKnownSymbol=wellKnownSymbolDefine;defineWellKnownSymbol("replaceAll");var parent$1w=symbol$3,symbol$2=parent$1w,symbol$1=symbol$2,symbol=symbol$1,uncurryThis$9=functionUncurryThis,toIntegerOrInfinity$2=toIntegerOrInfinity$5,toString$7=toString$a,requireObjectCoercible$3=requireObjectCoercible$6,charAt$1=uncurryThis$9("".charAt),charCodeAt=uncurryThis$9("".charCodeAt),stringSlice$1=uncurryThis$9("".slice),createMethod$1=function(e){return function(t,r){var n,o,a=toString$7(requireObjectCoercible$3(t)),i=toIntegerOrInfinity$2(r),s=a.length;return i<0||i>=s?e?"":void 0:(n=charCodeAt(a,i))<55296||n>56319||i+1===s||(o=charCodeAt(a,i+1))<56320||o>57343?e?charAt$1(a,i):n:e?stringSlice$1(a,i,i+2):o-56320+(n-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt=stringMultibyte.charAt,toString$6=toString$a,InternalStateModule$3=internalState,defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$3,STRING_ITERATOR="String Iterator",setInternalState$3=InternalStateModule$3.set,getInternalState=InternalStateModule$3.getterFor(STRING_ITERATOR);defineIterator$1(String,"String",(function(e){setInternalState$3(this,{type:STRING_ITERATOR,string:toString$6(e),index:0})}),(function(){var e,t=getInternalState(this),r=t.string,n=t.index;return n>=r.length?createIterResultObject$1(void 0,!0):(e=charAt(r,n),t.index+=e.length,createIterResultObject$1(e,!1))}));var WrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,iterator$5=WrappedWellKnownSymbolModule$1.f("iterator"),parent$1v=iterator$5,iterator$4=parent$1v,parent$1u=iterator$4,iterator$3=parent$1u,parent$1t=iterator$3,iterator$2=parent$1t,iterator$1=iterator$2,iterator=iterator$1;function _typeof(e){return(_typeof="function"==typeof symbol&&"symbol"==typeof iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof symbol&&e.constructor===symbol&&e!==symbol.prototype?"symbol":typeof e})(e)}var defineProperty$b={exports:{}},$$S=_export,DESCRIPTORS$9=descriptors,defineProperty$a=objectDefineProperty.f;$$S({target:"Object",stat:!0,forced:Object.defineProperty!==defineProperty$a,sham:!DESCRIPTORS$9},{defineProperty:defineProperty$a});var path$g=path$l,Object$4=path$g.Object,defineProperty$9=defineProperty$b.exports=function(e,t,r){return Object$4.defineProperty(e,t,r)};Object$4.defineProperty.sham&&(defineProperty$9.sham=!0);var parent$1s=defineProperty$b.exports,defineProperty$8=parent$1s,parent$1r=defineProperty$8,defineProperty$7=parent$1r,parent$1q=defineProperty$7,defineProperty$6=parent$1q,defineProperty$5=defineProperty$6,defineProperty$4=defineProperty$5,$$R=_export,DESCRIPTORS$8=descriptors,create$9=objectCreate;$$R({target:"Object",stat:!0,sham:!DESCRIPTORS$8},{create:create$9});var path$f=path$l,Object$3=path$f.Object,create$8=function(e,t){return Object$3.create(e,t)},parent$1p=create$8,create$7=parent$1p,parent$1o=create$7,create$6=parent$1o,parent$1n=create$6,create$5=parent$1n,create$4=create$5,create$3=create$4,$$Q=_export,fails$d=fails$t,toObject$4=toObject$a,nativeGetPrototypeOf=objectGetPrototypeOf,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,FAILS_ON_PRIMITIVES$3=fails$d((function(){nativeGetPrototypeOf(1)}));$$Q({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$3,sham:!CORRECT_PROTOTYPE_GETTER},{getPrototypeOf:function(e){return nativeGetPrototypeOf(toObject$4(e))}});var path$e=path$l,getPrototypeOf$6=path$e.Object.getPrototypeOf,parent$1m=getPrototypeOf$6,getPrototypeOf$5=parent$1m,parent$1l=getPrototypeOf$5,getPrototypeOf$4=parent$1l,parent$1k=getPrototypeOf$4,getPrototypeOf$3=parent$1k,getPrototypeOf$2=getPrototypeOf$3,getPrototypeOf$1=getPrototypeOf$2,fails$c=fails$t,arrayMethodIsStrict$1=function(e,t){var r=[][e];return!!r&&fails$c((function(){r.call(null,t||function(){return 1},1)}))},$forEach=arrayIteration.forEach,arrayMethodIsStrict=arrayMethodIsStrict$1,STRICT_METHOD=arrayMethodIsStrict("forEach"),arrayForEach=STRICT_METHOD?[].forEach:function(e){return $forEach(this,e,arguments.length>1?arguments[1]:void 0)},$$P=_export,forEach$8=arrayForEach;$$P({target:"Array",proto:!0,forced:[].forEach!=arrayForEach},{forEach:arrayForEach});var path$d=path$l,entryVirtual$d=function(e){return path$d[e+"Prototype"]},entryVirtual$c=entryVirtual$d,forEach$7=entryVirtual$c("Array").forEach,parent$1j=forEach$7,forEach$6=parent$1j,classof$6=classof$c,hasOwn$7=hasOwnProperty_1,isPrototypeOf$g=objectIsPrototypeOf,method$a=forEach$6,ArrayPrototype$a=Array.prototype,DOMIterables$2={DOMTokenList:!0,NodeList:!0},forEach$5=function(e){var t=e.forEach;return e===ArrayPrototype$a||isPrototypeOf$g(ArrayPrototype$a,e)&&t===ArrayPrototype$a.forEach||hasOwn$7(DOMIterables$2,classof$6(e))?method$a:t},parent$1i=forEach$5,forEach$4=parent$1i,parent$1h=forEach$4,forEach$3=parent$1h,forEach$2=forEach$3,forEach$1=forEach$2,$$O=_export,setPrototypeOf$7=objectSetPrototypeOf;$$O({target:"Object",stat:!0},{setPrototypeOf:setPrototypeOf$7});var path$c=path$l,setPrototypeOf$6=path$c.Object.setPrototypeOf,parent$1g=setPrototypeOf$6,setPrototypeOf$5=parent$1g,parent$1f=setPrototypeOf$5,setPrototypeOf$4=parent$1f,parent$1e=setPrototypeOf$4,setPrototypeOf$3=parent$1e,setPrototypeOf$2=setPrototypeOf$3,setPrototypeOf$1=setPrototypeOf$2,getBuiltIn$8=getBuiltIn$h,uncurryThis$8=functionUncurryThis,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$n=anObject$t,concat$9=uncurryThis$8([].concat),ownKeys$3=getBuiltIn$8("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$n(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$9(t,r(e)):t},hasOwn$6=hasOwnProperty_1,ownKeys$2=ownKeys$3,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var n=ownKeys$2(t),o=definePropertyModule$1.f,a=getOwnPropertyDescriptorModule$1.f,i=0;i<n.length;i++){var s=n[i];hasOwn$6(e,s)||r&&hasOwn$6(r,s)||o(e,s,a(t,s))}},uncurryThis$7=functionUncurryThis,$Error$1=Error,replace=uncurryThis$7("".replace),TEST=String($Error$1("zxcasd").stack),V8_OR_CHAKRA_STACK_ENTRY=/\n\s*at [^:]*:[^\n]*/,IS_V8_OR_CHAKRA_STACK=V8_OR_CHAKRA_STACK_ENTRY.test(TEST),errorStackClear=function(e,t){if(IS_V8_OR_CHAKRA_STACK&&"string"==typeof e&&!$Error$1.prepareStackTrace)for(;t--;)e=replace(e,V8_OR_CHAKRA_STACK_ENTRY,"");return e},isObject$9=isObject$j,createNonEnumerableProperty$2=createNonEnumerableProperty$8,installErrorCause$1=function(e,t){isObject$9(t)&&"cause"in t&&createNonEnumerableProperty$2(e,"cause",t.cause)},wellKnownSymbol$9=wellKnownSymbol$n,Iterators$1=iterators,ITERATOR$2=wellKnownSymbol$9("iterator"),ArrayPrototype$9=Array.prototype,isArrayIteratorMethod$2=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype$9[ITERATOR$2]===e)},classof$5=classof$c,getMethod$1=getMethod$3,isNullOrUndefined$3=isNullOrUndefined$6,Iterators=iterators,wellKnownSymbol$8=wellKnownSymbol$n,ITERATOR$1=wellKnownSymbol$8("iterator"),getIteratorMethod$9=function(e){if(!isNullOrUndefined$3(e))return getMethod$1(e,ITERATOR$1)||getMethod$1(e,"@@iterator")||Iterators[classof$5(e)]},call$l=functionCall,aCallable$j=aCallable$m,anObject$m=anObject$t,tryToString$3=tryToString$6,getIteratorMethod$8=getIteratorMethod$9,$TypeError$b=TypeError,getIterator$4=function(e,t){var r=arguments.length<2?getIteratorMethod$8(e):t;if(aCallable$j(r))return anObject$m(call$l(r,e));throw $TypeError$b(tryToString$3(e)+" is not iterable")},call$k=functionCall,anObject$l=anObject$t,getMethod=getMethod$3,iteratorClose$2=function(e,t,r){var n,o;anObject$l(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw r;return r}n=call$k(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$l(n),r},bind$m=functionBindContext,call$j=functionCall,anObject$k=anObject$t,tryToString$2=tryToString$6,isArrayIteratorMethod$1=isArrayIteratorMethod$2,lengthOfArrayLike$3=lengthOfArrayLike$8,isPrototypeOf$f=objectIsPrototypeOf,getIterator$3=getIterator$4,getIteratorMethod$7=getIteratorMethod$9,iteratorClose$1=iteratorClose$2,$TypeError$a=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$l=function(e,t,r){var n,o,a,i,s,l,c,u=r&&r.that,$=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),_=bind$m(t,u),y=function(e){return n&&iteratorClose$1(n,"normal",e),new Result(!0,e)},h=function(e){return $?(anObject$k(e),d?_(e[0],e[1],y):_(e[0],e[1])):d?_(e,y):_(e)};if(f)n=e.iterator;else if(p)n=e;else{if(!(o=getIteratorMethod$7(e)))throw $TypeError$a(tryToString$2(e)+" is not iterable");if(isArrayIteratorMethod$1(o)){for(a=0,i=lengthOfArrayLike$3(e);i>a;a++)if((s=h(e[a]))&&isPrototypeOf$f(ResultPrototype,s))return s;return new Result(!1)}n=getIterator$3(e,o)}for(l=f?e.next:n.next;!(c=call$j(l,n)).done;){try{s=h(c.value)}catch(e){iteratorClose$1(n,"throw",e)}if("object"==typeof s&&s&&isPrototypeOf$f(ResultPrototype,s))return s}return new Result(!1)},toString$5=toString$a,normalizeStringArgument$1=function(e,t){return void 0===e?arguments.length<2?"":t:toString$5(e)},fails$b=fails$t,createPropertyDescriptor$1=createPropertyDescriptor$7,errorStackInstallable=!fails$b((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",createPropertyDescriptor$1(1,7)),7!==e.stack)})),$$N=_export,isPrototypeOf$e=objectIsPrototypeOf,getPrototypeOf2=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,copyConstructorProperties=copyConstructorProperties$1,create$2=objectCreate,createNonEnumerableProperty$1=createNonEnumerableProperty$8,createPropertyDescriptor=createPropertyDescriptor$7,clearErrorStack=errorStackClear,installErrorCause=installErrorCause$1,iterate$k=iterate$l,normalizeStringArgument=normalizeStringArgument$1,wellKnownSymbol$7=wellKnownSymbol$n,ERROR_STACK_INSTALLABLE=errorStackInstallable,TO_STRING_TAG=wellKnownSymbol$7("toStringTag"),$Error=Error,push$3=[].push,$AggregateError=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,o=isPrototypeOf$e(AggregateErrorPrototype,this);setPrototypeOf?r=setPrototypeOf($Error(),o?getPrototypeOf2(this):AggregateErrorPrototype):(r=o?this:create$2(AggregateErrorPrototype),createNonEnumerableProperty$1(r,TO_STRING_TAG,"Error")),void 0!==t&&createNonEnumerableProperty$1(r,"message",normalizeStringArgument(t)),ERROR_STACK_INSTALLABLE&&createNonEnumerableProperty$1(r,"stack",clearErrorStack(r.stack,1)),installErrorCause(r,n);var a=[];return iterate$k(e,push$3,{that:a}),createNonEnumerableProperty$1(r,"errors",a),r};setPrototypeOf?setPrototypeOf($AggregateError,$Error):copyConstructorProperties($AggregateError,$Error,{name:!0});var AggregateErrorPrototype=$AggregateError.prototype=create$2($Error.prototype,{constructor:createPropertyDescriptor(1,$AggregateError),message:createPropertyDescriptor(1,""),name:createPropertyDescriptor(1,"AggregateError")});$$N({global:!0,constructor:!0,arity:2},{AggregateError:$AggregateError});var $location,defer,channel,port,classof$4=classofRaw$2,global$9=global$m,engineIsNode="process"==classof$4(global$9.process),getBuiltIn$7=getBuiltIn$h,definePropertyModule=objectDefineProperty,wellKnownSymbol$6=wellKnownSymbol$n,DESCRIPTORS$7=descriptors,SPECIES$3=wellKnownSymbol$6("species"),setSpecies$2=function(e){var t=getBuiltIn$7(e),r=definePropertyModule.f;DESCRIPTORS$7&&t&&!t[SPECIES$3]&&r(t,SPECIES$3,{configurable:!0,get:function(){return this}})},isPrototypeOf$d=objectIsPrototypeOf,$TypeError$9=TypeError,anInstance$3=function(e,t){if(isPrototypeOf$d(t,e))return e;throw $TypeError$9("Incorrect invocation")},isConstructor$2=isConstructor$4,tryToString$1=tryToString$6,$TypeError$8=TypeError,aConstructor$3=function(e){if(isConstructor$2(e))return e;throw $TypeError$8(tryToString$1(e)+" is not a constructor")},anObject$j=anObject$t,aConstructor$2=aConstructor$3,isNullOrUndefined$2=isNullOrUndefined$6,wellKnownSymbol$5=wellKnownSymbol$n,SPECIES$2=wellKnownSymbol$5("species"),speciesConstructor$5=function(e,t){var r,n=anObject$j(e).constructor;return void 0===n||isNullOrUndefined$2(r=anObject$j(n)[SPECIES$2])?t:aConstructor$2(r)},$TypeError$7=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw $TypeError$7("Not enough arguments");return e},userAgent$3=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$3),global$8=global$m,apply$2=functionApply,bind$l=functionBindContext,isCallable$5=isCallable$l,hasOwn$5=hasOwnProperty_1,fails$a=fails$t,html=html$2,arraySlice$2=arraySlice$4,createElement=documentCreateElement$1,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$8.setImmediate,clear=global$8.clearImmediate,process$2=global$8.process,Dispatch=global$8.Dispatch,Function$1=global$8.Function,MessageChannel=global$8.MessageChannel,String$1=global$8.String,counter=0,queue$1={},ONREADYSTATECHANGE="onreadystatechange";try{$location=global$8.location}catch(e){}var run=function(e){if(hasOwn$5(queue$1,e)){var t=queue$1[e];delete queue$1[e],t()}},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$8.postMessage(String$1(e),$location.protocol+"//"+$location.host)};set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$5(e)?e:Function$1(e),r=arraySlice$2(arguments,1);return queue$1[++counter]=function(){apply$2(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$1[e]},IS_NODE$3?defer=function(e){process$2.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=listener,defer=bind$l(port.postMessage,port)):global$8.addEventListener&&isCallable$5(global$8.postMessage)&&!global$8.importScripts&&$location&&"file:"!==$location.protocol&&!fails$a(post)?(defer=post,global$8.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)});var flush,head,last,notify$1,toggle,node,promise$6,then,task$1={set:set,clear:clear},userAgent$2=engineUserAgent,global$7=global$m,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$2)&&void 0!==global$7.Pebble,userAgent$1=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent$1),global$6=global$m,bind$k=functionBindContext,getOwnPropertyDescriptor$8=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$6.MutationObserver||global$6.WebKitMutationObserver,document$2=global$6.document,process$1=global$6.process,Promise$1=global$6.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor$8(global$6,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;queueMicrotask||(flush=function(){var e,t;for(IS_NODE$2&&(e=process$1.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,e&&e.enter()},IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise$6=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$k(promise$6.then,promise$6),notify$1=function(){then(flush)}):IS_NODE$2?notify$1=function(){process$1.nextTick(flush)}:(macrotask=bind$k(macrotask,global$6),notify$1=function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),notify$1=function(){node.data=toggle=!toggle}));var microtask$1=queueMicrotask||function(e){var t={fn:e,next:void 0};last&&(last.next=t),head||(head=t,notify$1()),last=t},global$5=global$m,hostReportErrors$1=function(e,t){var r=global$5.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},perform$6=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Queue$1=function(){this.head=null,this.tail=null};Queue$1.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 queue=Queue$1,global$4=global$m,promiseNativeConstructor=global$4.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!IS_DENO$1&&!IS_NODE$1&&"object"==typeof window&&"object"==typeof document,global$3=global$m,NativePromiseConstructor$5=promiseNativeConstructor,isCallable$4=isCallable$l,isForced=isForced_1,inspectSource=inspectSource$2,wellKnownSymbol$4=wellKnownSymbol$n,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,NativePromisePrototype$2=NativePromiseConstructor$5&&NativePromiseConstructor$5.prototype,SPECIES$1=wellKnownSymbol$4("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$4(global$3.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",(function(){var e=inspectSource(NativePromiseConstructor$5),t=e!==String(NativePromiseConstructor$5);if(!t&&66===V8_VERSION)return!0;if(!NativePromisePrototype$2.catch||!NativePromisePrototype$2.finally)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){var r=new NativePromiseConstructor$5((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[SPECIES$1]=n,!(SUBCLASSING=r.then((function(){}))instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1})),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$i=aCallable$m,$TypeError$6=TypeError,PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw $TypeError$6("Bad Promise constructor");t=e,r=n})),this.resolve=aCallable$i(t),this.reject=aCallable$i(r)};newPromiseCapability$2.f=function(e){return new PromiseCapability(e)};var $$M=_export,IS_NODE=engineIsNode,global$2=global$m,call$i=functionCall,defineBuiltIn$1=defineBuiltIn$6,setToStringTag$1=setToStringTag$7,setSpecies$1=setSpecies$2,aCallable$h=aCallable$m,isCallable$3=isCallable$l,isObject$8=isObject$j,anInstance$2=anInstance$3,speciesConstructor$4=speciesConstructor$5,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$5=perform$6,Queue=queue,InternalStateModule$2=internalState,NativePromiseConstructor$4=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$6=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT;PromiseConstructorDetection.SUBCLASSING;var Internal,OwnPromiseCapability,PromiseWrapper,getInternalPromiseState=InternalStateModule$2.getterFor(PROMISE),setInternalState$2=InternalStateModule$2.set,NativePromisePrototype$1=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype,PromiseConstructor=NativePromiseConstructor$4,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$2.TypeError,document$1=global$2.document,process=global$2.process,newPromiseCapability$1=newPromiseCapabilityModule$6.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$2.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$8(e)||!isCallable$3(t=e.then))&&t},callReaction=function(e,t){var r,n,o,a=t.value,i=t.state==FULFILLED,s=i?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=a:(u&&u.enter(),r=s(a),u&&(u.exit(),o=!0)),r===e.promise?c(TypeError$1("Promise-chain cycle")):(n=isThenable(r))?call$i(n,r,l,c):l(r)):c(a)}catch(e){u&&!o&&u.exit(),c(e)}},notify=function(e,t){e.notified||(e.notified=!0,microtask((function(){for(var r,n=e.reactions;r=n.get();)callReaction(r,e);e.notified=!1,t&&!e.rejection&&onUnhandled(e)})))},dispatchEvent=function(e,t,r){var n,o;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$2.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(o=global$2["on"+e])?o(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(e){call$i(task,global$2,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform$5((function(){IS_NODE?process.emit("unhandledRejection",n,r):dispatchEvent(UNHANDLED_REJECTION,r,n)})),e.rejection=IS_NODE||isUnhandled(e)?UNHANDLED:HANDLED,t.error))throw t.value}))},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(e){call$i(task,global$2,(function(){var t=e.facade;IS_NODE?process.emit("rejectionHandled",t):dispatchEvent(REJECTION_HANDLED,t,e.value)}))},bind$j=function(e,t,r){return function(n){e(t,n,r)}},internalReject=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw TypeError$1("Promise can't be resolved itself");var n=isThenable(t);n?microtask((function(){var r={done:!1};try{call$i(n,t,bind$j(internalResolve,r,e),bind$j(internalReject,r,e))}catch(t){internalReject(r,t,e)}})):(e.value=t,e.state=FULFILLED,notify(e,!1))}catch(t){internalReject({done:!1},t,e)}}};FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance$2(this,PromisePrototype),aCallable$h(e),call$i(Internal,this);var t=getInternalPromiseState(this);try{e(bind$j(internalResolve,t),bind$j(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$2(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",(function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor$4(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$3(e)||e,n.fail=isCallable$3(t)&&t,n.domain=IS_NODE?process.domain:void 0,r.state==PENDING?r.reactions.add(n):microtask((function(){callReaction(n,r)})),n.promise})),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$j(internalResolve,t),this.reject=bind$j(internalReject,t)},newPromiseCapabilityModule$6.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)}),$$M({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$1(PromiseConstructor,PROMISE,!1,!0),setSpecies$1(PROMISE);var wellKnownSymbol$3=wellKnownSymbol$n,ITERATOR=wellKnownSymbol$3("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,(function(){throw 2}))}catch(e){}var checkCorrectnessOfIteration$2=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var n={};n[ITERATOR]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$3=promiseNativeConstructor,checkCorrectnessOfIteration$1=checkCorrectnessOfIteration$2,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration$1((function(e){NativePromiseConstructor$3.all(e).then(void 0,(function(){}))})),$$L=_export,call$h=functionCall,aCallable$g=aCallable$m,newPromiseCapabilityModule$5=newPromiseCapability$2,perform$4=perform$6,iterate$j=iterate$l,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$L({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{all:function(e){var t=this,r=newPromiseCapabilityModule$5.f(t),n=r.resolve,o=r.reject,a=perform$4((function(){var r=aCallable$g(t.resolve),a=[],i=0,s=1;iterate$j(e,(function(e){var l=i++,c=!1;s++,call$h(r,t,e).then((function(e){c||(c=!0,a[l]=e,--s||n(a))}),o)})),--s||n(a)}));return a.error&&o(a.value),r.promise}});var $$K=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor$2=promiseNativeConstructor;promiseNativeConstructor&&promiseNativeConstructor.prototype,$$K({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}});var $$J=_export,call$g=functionCall,aCallable$f=aCallable$m,newPromiseCapabilityModule$4=newPromiseCapability$2,perform$3=perform$6,iterate$i=iterate$l,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration;$$J({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{race:function(e){var t=this,r=newPromiseCapabilityModule$4.f(t),n=r.reject,o=perform$3((function(){var o=aCallable$f(t.resolve);iterate$i(e,(function(e){call$g(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var $$I=_export,call$f=functionCall,newPromiseCapabilityModule$3=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$I({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule$3.f(this);return call$f(t.reject,void 0,e),t.promise}});var anObject$i=anObject$t,isObject$7=isObject$j,newPromiseCapability=newPromiseCapability$2,promiseResolve$2=function(e,t){if(anObject$i(e),isObject$7(t)&&t.constructor===e)return t;var r=newPromiseCapability.f(e);return(0,r.resolve)(t),r.promise},$$H=_export,getBuiltIn$6=getBuiltIn$h,IS_PURE=isPure,NativePromiseConstructor$1=promiseNativeConstructor,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve$1=promiseResolve$2,PromiseConstructorWrapper=getBuiltIn$6("Promise"),CHECK_WRAPPER=!FORCED_PROMISE_CONSTRUCTOR;$$H({target:"Promise",stat:!0,forced:IS_PURE},{resolve:function(e){return promiseResolve$1(CHECK_WRAPPER&&this===PromiseConstructorWrapper?NativePromiseConstructor$1:this,e)}});var $$G=_export,call$e=functionCall,aCallable$e=aCallable$m,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$2=perform$6,iterate$h=iterate$l;$$G({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=newPromiseCapabilityModule$2.f(t),n=r.resolve,o=r.reject,a=perform$2((function(){var r=aCallable$e(t.resolve),o=[],a=0,i=1;iterate$h(e,(function(e){var s=a++,l=!1;i++,call$e(r,t,e).then((function(e){l||(l=!0,o[s]={status:"fulfilled",value:e},--i||n(o))}),(function(e){l||(l=!0,o[s]={status:"rejected",reason:e},--i||n(o))}))})),--i||n(o)}));return a.error&&o(a.value),r.promise}});var $$F=_export,call$d=functionCall,aCallable$d=aCallable$m,getBuiltIn$5=getBuiltIn$h,newPromiseCapabilityModule$1=newPromiseCapability$2,perform$1=perform$6,iterate$g=iterate$l,PROMISE_ANY_ERROR="No one promise resolved";$$F({target:"Promise",stat:!0},{any:function(e){var t=this,r=getBuiltIn$5("AggregateError"),n=newPromiseCapabilityModule$1.f(t),o=n.resolve,a=n.reject,i=perform$1((function(){var n=aCallable$d(t.resolve),i=[],s=0,l=1,c=!1;iterate$g(e,(function(e){var u=s++,$=!1;l++,call$d(n,t,e).then((function(e){$||c||(c=!0,o(e))}),(function(e){$||c||($=!0,i[u]=e,--l||a(new r(i,PROMISE_ANY_ERROR)))}))})),--l||a(new r(i,PROMISE_ANY_ERROR))}));return i.error&&a(i.value),n.promise}});var $$E=_export,NativePromiseConstructor=promiseNativeConstructor,fails$9=fails$t,getBuiltIn$4=getBuiltIn$h,isCallable$2=isCallable$l,speciesConstructor$3=speciesConstructor$5,promiseResolve=promiseResolve$2,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,NON_GENERIC=!!NativePromiseConstructor&&fails$9((function(){NativePromisePrototype.finally.call({then:function(){}},(function(){}))}));$$E({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC},{finally:function(e){var t=speciesConstructor$3(this,getBuiltIn$4("Promise")),r=isCallable$2(e);return this.then(r?function(r){return promiseResolve(t,e()).then((function(){return r}))}:e,r?function(r){return promiseResolve(t,e()).then((function(){throw r}))}:e)}});var path$b=path$l,promise$5=path$b.Promise,parent$1d=promise$5,promise$4=parent$1d,parent$1c=promise$4,promise$3=parent$1c,$$D=_export,newPromiseCapabilityModule=newPromiseCapability$2,perform=perform$6;$$D({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=newPromiseCapabilityModule.f(this),r=perform(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var parent$1b=promise$3,promise$2=parent$1b,promise$1=promise$2,promise=promise$1,$$C=_export,uncurryThis$6=functionUncurryThis,isArray$9=isArray$d,nativeReverse=uncurryThis$6([].reverse),test=[1,2];$$C({target:"Array",proto:!0,forced:String(test)===String(test.reverse())},{reverse:function(){return isArray$9(this)&&(this.length=this.length),nativeReverse(this)}});var entryVirtual$b=entryVirtual$d,reverse$6=entryVirtual$b("Array").reverse,isPrototypeOf$c=objectIsPrototypeOf,method$9=reverse$6,ArrayPrototype$8=Array.prototype,reverse$5=function(e){var t=e.reverse;return e===ArrayPrototype$8||isPrototypeOf$c(ArrayPrototype$8,e)&&t===ArrayPrototype$8.reverse?method$9:t},parent$1a=reverse$5,reverse$4=parent$1a,parent$19=reverse$4,reverse$3=parent$19,parent$18=reverse$3,reverse$2=parent$18,reverse$1=reverse$2,reverse2=reverse$1,$$B=_export,isArray$8=isArray$d,isConstructor$1=isConstructor$4,isObject$6=isObject$j,toAbsoluteIndex$1=toAbsoluteIndex$4,lengthOfArrayLike$2=lengthOfArrayLike$8,toIndexedObject$2=toIndexedObject$a,createProperty$3=createProperty$6,wellKnownSymbol$2=wellKnownSymbol$n,arrayMethodHasSpeciesSupport$3=arrayMethodHasSpeciesSupport$5,nativeSlice=arraySlice$4,HAS_SPECIES_SUPPORT$3=arrayMethodHasSpeciesSupport$3("slice"),SPECIES=wellKnownSymbol$2("species"),$Array$1=Array,max$1=Math.max;$$B({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$3},{slice:function(e,t){var r,n,o,a=toIndexedObject$2(this),i=lengthOfArrayLike$2(a),s=toAbsoluteIndex$1(e,i),l=toAbsoluteIndex$1(void 0===t?i:t,i);if(isArray$8(a)&&(r=a.constructor,(isConstructor$1(r)&&(r===$Array$1||isArray$8(r.prototype))||isObject$6(r)&&null===(r=r[SPECIES]))&&(r=void 0),r===$Array$1||void 0===r))return nativeSlice(a,s,l);for(n=new(void 0===r?$Array$1:r)(max$1(l-s,0)),o=0;s<l;s++,o++)s in a&&createProperty$3(n,o,a[s]);return n.length=o,n}});var entryVirtual$a=entryVirtual$d,slice$6=entryVirtual$a("Array").slice,isPrototypeOf$b=objectIsPrototypeOf,method$8=slice$6,ArrayPrototype$7=Array.prototype,slice$5=function(e){var t=e.slice;return e===ArrayPrototype$7||isPrototypeOf$b(ArrayPrototype$7,e)&&t===ArrayPrototype$7.slice?method$8:t},parent$17=slice$5,slice$4=parent$17,parent$16=slice$4,slice$3=parent$16,parent$15=slice$3,slice$2=parent$15,slice$1=slice$2,slice2=slice$1;function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=defineProperty$4||function(e,t,r){e[t]=r.value},o="function"==typeof symbol?symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return defineProperty$4(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var a=t&&t.prototype instanceof f?t:f,i=create$3(a.prototype),s=new v(o||[]);return n(i,"_invoke",{value:S(e,r,s)}),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var $={};function f(){}function p(){}function d(){}var _={};l(_,a,(function(){return this}));var y=getPrototypeOf$1&&getPrototypeOf$1(getPrototypeOf$1(T([])));y&&y!==t&&r.call(y,a)&&(_=y);var h=d.prototype=f.prototype=create$3(_);function b(e){var t;forEach$1(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function o(n,a,i,s){var l=u(e[n],e,a);if("throw"!==l.type){var c=l.arg,$=c.value;return $&&"object"==_typeof($)&&r.call($,"__await")?t.resolve($.__await).then((function(e){o("next",e,i,s)}),(function(e){o("throw",e,i,s)})):t.resolve($).then((function(e){c.value=e,i(c)}),(function(e){return o("throw",e,i,s)}))}s(l.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=E(i,r);if(s){if(s===$)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===$)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),$;var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,$;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,$):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,$)}function m(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function v(e){this.tryEntries=[{tryLoc:"root"}],forEach$1(e).call(e,m,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=d,n(h,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return setPrototypeOf$1?setPrototypeOf$1(e,d):(e.__proto__=d,l(e,s,"GeneratorFunction")),e.prototype=create$3(h),e},e.awrap=function(e){return{__await:e}},b(g.prototype),l(g.prototype,i,(function(){return this})),e.AsyncIterator=g,e.async=function(t,r,n,o,a){void 0===a&&(a=promise);var i=new g(c(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(h),l(h,s,"Generator"),l(h,a,(function(){return this})),l(h,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return reverse2(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,v.prototype={constructor:v,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,forEach$1(t=this.tryEntries).call(t,O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+slice2(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,$):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),$},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),$}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),$}},e}function asyncGeneratorStep(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):promise.resolve(l).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new promise((function(n,o){var a=e.apply(t,r);function i(e){asyncGeneratorStep(a,n,o,i,s,"next",e)}function s(e){asyncGeneratorStep(a,n,o,i,s,"throw",e)}i(void 0)}))}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var WrappedWellKnownSymbolModule=wellKnownSymbolWrapped,toPrimitive$5=WrappedWellKnownSymbolModule.f("toPrimitive"),parent$14=toPrimitive$5,toPrimitive$4=parent$14,parent$13=toPrimitive$4,toPrimitive$3=parent$13,parent$12=toPrimitive$3,toPrimitive$2=parent$12,toPrimitive$1=toPrimitive$2,toPrimitive=toPrimitive$1;function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var r=e[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)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"===_typeof(t)?t:String(t)}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),defineProperty$4(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),defineProperty$4(e,"prototype",{writable:!1}),e}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var uncurryThis$5=functionUncurryThis,aCallable$c=aCallable$m,isObject$5=isObject$j,hasOwn$4=hasOwnProperty_1,arraySlice$1=arraySlice$4,NATIVE_BIND=functionBindNative,$Function=Function,concat$8=uncurryThis$5([].concat),join=uncurryThis$5([].join),factories={},construct$6=function(e,t,r){if(!hasOwn$4(factories,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";factories[t]=$Function("C,a","return new C("+join(n,",")+")")}return factories[t](e,r)},functionBind=NATIVE_BIND?$Function.bind:function(e){var t=aCallable$c(this),r=t.prototype,n=arraySlice$1(arguments,1),o=function(){var r=concat$8(n,arraySlice$1(arguments));return this instanceof o?construct$6(t,r.length,r):t.apply(e,r)};return isObject$5(r)&&(o.prototype=r),o},$$A=_export,bind$i=functionBind;$$A({target:"Function",proto:!0,forced:Function.bind!==bind$i},{bind:bind$i});var entryVirtual$9=entryVirtual$d,bind$h=entryVirtual$9("Function").bind,isPrototypeOf$a=objectIsPrototypeOf,method$7=bind$h,FunctionPrototype=Function.prototype,bind$g=function(e){var t=e.bind;return e===FunctionPrototype||isPrototypeOf$a(FunctionPrototype,e)&&t===FunctionPrototype.bind?method$7:t},parent$11=bind$g,bind$f=parent$11,parent$10=bind$f,bind$e=parent$10,parent$$=bind$e,bind$d=parent$$,bind$c=bind$d,bind$b=bind$c;function _setPrototypeOf(e,t){var r;return(_setPrototypeOf=setPrototypeOf$1?bind$b(r=setPrototypeOf$1).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=create$3(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),defineProperty$4(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}var $$z=_export,getBuiltIn$3=getBuiltIn$h,apply$1=functionApply,bind$a=functionBind,aConstructor$1=aConstructor$3,anObject$h=anObject$t,isObject$4=isObject$j,create$1=objectCreate,fails$8=fails$t,nativeConstruct=getBuiltIn$3("Reflect","construct"),ObjectPrototype=Object.prototype,push$2=[].push,NEW_TARGET_BUG=fails$8((function(){function e(){}return!(nativeConstruct((function(){}),[],e)instanceof e)})),ARGS_BUG=!fails$8((function(){nativeConstruct((function(){}))})),FORCED$1=NEW_TARGET_BUG||ARGS_BUG;$$z({target:"Reflect",stat:!0,forced:FORCED$1,sham:FORCED$1},{construct:function(e,t){aConstructor$1(e),anObject$h(t);var r=arguments.length<3?e:aConstructor$1(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return nativeConstruct(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return apply$1(push$2,n,t),new(apply$1(bind$a,e,n))}var o=r.prototype,a=create$1(isObject$4(o)?o:ObjectPrototype),i=apply$1(e,a,t);return isObject$4(i)?i:a}});var path$a=path$l,construct$5=path$a.Reflect.construct,parent$_=construct$5,construct$4=parent$_,parent$Z=construct$4,construct$3=parent$Z,parent$Y=construct$3,construct$2=parent$Y,construct$1=construct$2,construct2=construct$1;function _getPrototypeOf(e){var t;return(_getPrototypeOf=setPrototypeOf$1?bind$b(t=getPrototypeOf$1).call(t):function(e){return e.__proto__||getPrototypeOf$1(e)})(e)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!construct2)return!1;if(construct2.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(construct2(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;r=construct2(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?defineProperty$4(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $$y=_export,toObject$3=toObject$a,nativeKeys=objectKeys$3,fails$7=fails$t,FAILS_ON_PRIMITIVES$2=fails$7((function(){nativeKeys(1)}));$$y({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$2},{keys:function(e){return nativeKeys(toObject$3(e))}});var path$9=path$l,keys$c=path$9.Object.keys,parent$X=keys$c,keys$b=parent$X,parent$W=keys$b,keys$a=parent$W,parent$V=keys$a,keys$9=parent$V,keys$8=keys$9,keys$7=keys$8,$$x=_export,$filter=arrayIteration.filter,arrayMethodHasSpeciesSupport$2=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$2=arrayMethodHasSpeciesSupport$2("filter");$$x({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$2},{filter:function(e){return $filter(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$8=entryVirtual$d,filter$6=entryVirtual$8("Array").filter,isPrototypeOf$9=objectIsPrototypeOf,method$6=filter$6,ArrayPrototype$6=Array.prototype,filter$5=function(e){var t=e.filter;return e===ArrayPrototype$6||isPrototypeOf$9(ArrayPrototype$6,e)&&t===ArrayPrototype$6.filter?method$6:t},parent$U=filter$5,filter$4=parent$U,parent$T=filter$4,filter$3=parent$T,parent$S=filter$3,filter$2=parent$S,filter$1=filter$2,filter2=filter$1,entryVirtual$7=entryVirtual$d,concat$7=entryVirtual$7("Array").concat,isPrototypeOf$8=objectIsPrototypeOf,method$5=concat$7,ArrayPrototype$5=Array.prototype,concat$6=function(e){var t=e.concat;return e===ArrayPrototype$5||isPrototypeOf$8(ArrayPrototype$5,e)&&t===ArrayPrototype$5.concat?method$5:t},parent$R=concat$6,concat$5=parent$R,parent$Q=concat$5,concat$4=parent$Q,parent$P=concat$4,concat$3=parent$P,concat$2=concat$3,concat$1=concat$2,path$8=path$l,getOwnPropertySymbols$5=path$8.Object.getOwnPropertySymbols,parent$O=getOwnPropertySymbols$5,getOwnPropertySymbols$4=parent$O,parent$N=getOwnPropertySymbols$4,getOwnPropertySymbols$3=parent$N,parent$M=getOwnPropertySymbols$3,getOwnPropertySymbols$2=parent$M,getOwnPropertySymbols$1=getOwnPropertySymbols$2,getOwnPropertySymbols2=getOwnPropertySymbols$1,eventemitter3={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,a||e,i),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?slice2(n).call(n,1):n);return getOwnPropertySymbols2?concat$1(o).call(o,getOwnPropertySymbols2(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,i=new Array(a);o<a;o++)i[o]=n[o].fn;return i},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,a,i){var s=r?r+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],$=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),$){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,a),!0;case 6:return u.fn.call(u.context,t,n,o,a,i),!0}for(c=1,l=new Array($-1);c<$;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),$){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,o);break;default:if(!l)for(f=1,l=new Array($-1);f<$;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||i(this,a);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[a]=1===c.length?c[0]:c:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&i(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(eventemitter3);var ExtensionBase=function(e){_inherits(n,eventemitter3.exports.EventEmitter);var t,r=_createSuper(n);function n(){var e,t;_classCallCheck(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return _defineProperty(_assertThisInitialized(t=r.call.apply(r,concat$1(e=[this]).call(e,a))),"monitor",void 0),t}return _createClass(n,[{key:"isOpen",value:function(){return this._enable}},{key:"isSupported",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"_reportName",get:function(){return"plugin<".concat(this.name,">")}}]),n}(),getIteratorMethod$6=getIteratorMethod$9,getIteratorMethod_1=getIteratorMethod$6,parent$L=getIteratorMethod_1,getIteratorMethod$5=parent$L,parent$K=getIteratorMethod$5,getIteratorMethod$4=parent$K,parent$J=getIteratorMethod$4,getIteratorMethod$3=parent$J,getIteratorMethod$2=getIteratorMethod$3,getIteratorMethod$1=getIteratorMethod$2,$$w=_export,isArray$7=isArray$d;$$w({target:"Array",stat:!0},{isArray:isArray$7});var path$7=path$l,isArray$6=path$7.Array.isArray,parent$I=isArray$6,isArray$5=parent$I,parent$H=isArray$5,isArray$4=parent$H,parent$G=isArray$4,isArray$3=parent$G,isArray$2=isArray$3,isArray$1=isArray$2,anObject$g=anObject$t,iteratorClose=iteratorClose$2,callWithSafeIterationClosing$1=function(e,t,r,n){try{return n?t(anObject$g(r)[0],r[1]):t(r)}catch(t){iteratorClose(e,"throw",t)}},bind$9=functionBindContext,call$c=functionCall,toObject$2=toObject$a,callWithSafeIterationClosing=callWithSafeIterationClosing$1,isArrayIteratorMethod=isArrayIteratorMethod$2,isConstructor3=isConstructor$4,lengthOfArrayLike$1=lengthOfArrayLike$8,createProperty$2=createProperty$6,getIterator$2=getIterator$4,getIteratorMethod=getIteratorMethod$9,$Array=Array,arrayFrom=function(e){var t=toObject$2(e),r=isConstructor3(this),n=arguments.length,o=n>1?arguments[1]:void 0,a=void 0!==o;a&&(o=bind$9(o,n>2?arguments[2]:void 0));var i,s,l,c,u,$,f=getIteratorMethod(t),p=0;if(!f||this===$Array&&isArrayIteratorMethod(f))for(i=lengthOfArrayLike$1(t),s=r?new this(i):$Array(i);i>p;p++)$=a?o(t[p],p):t[p],createProperty$2(s,p,$);else for(u=(c=getIterator$2(t,f)).next,s=r?new this:[];!(l=call$c(u,c)).done;p++)$=a?callWithSafeIterationClosing(c,o,[l.value,p],!0):l.value,createProperty$2(s,p,$);return s.length=p,s},$$v=_export,from$7=arrayFrom,checkCorrectnessOfIteration=checkCorrectnessOfIteration$2,INCORRECT_ITERATION=!checkCorrectnessOfIteration((function(e){Array.from(e)}));$$v({target:"Array",stat:!0,forced:INCORRECT_ITERATION},{from:from$7});var path$6=path$l,from$6=path$6.Array.from,parent$F=from$6,from$5=parent$F,parent$E=from$5,from$4=parent$E,parent$D=from$4,from$3=parent$D,from$2=from$3,from$1=from$2;function _arrayLikeToArray(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 _unsupportedIterableToArray(e,t){var r;if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=slice2(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?from$1(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}var internalMetadata={exports:{}},fails$6=fails$t,arrayBufferNonExtensible=fails$6((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fails$5=fails$t,isObject$3=isObject$j,classof$3=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE=arrayBufferNonExtensible,$isExtensible=Object.isExtensible,FAILS_ON_PRIMITIVES$1=fails$5((function(){$isExtensible(1)})),objectIsExtensible=FAILS_ON_PRIMITIVES$1||ARRAY_BUFFER_NON_EXTENSIBLE?function(e){return!!isObject$3(e)&&((!ARRAY_BUFFER_NON_EXTENSIBLE||"ArrayBuffer"!=classof$3(e))&&(!$isExtensible||$isExtensible(e)))}:$isExtensible,fails$4=fails$t,freezing=!fails$4((function(){return Object.isExtensible(Object.preventExtensions({}))})),$$u=_export,uncurryThis$4=functionUncurryThis,hiddenKeys=hiddenKeys$6,isObject$2=isObject$j,hasOwn$3=hasOwnProperty_1,defineProperty$3=objectDefineProperty.f,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertyNamesExternalModule=objectGetOwnPropertyNamesExternal,isExtensible2=objectIsExtensible,uid=uid$4,FREEZING=freezing,REQUIRED=!1,METADATA=uid("meta"),id=0,setMetadata=function(e){defineProperty$3(e,METADATA,{value:{objectID:"O"+id++,weakData:{}}})},fastKey$1=function(e,t){if(!isObject$2(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hasOwn$3(e,METADATA)){if(!isExtensible2(e))return"F";if(!t)return"E";setMetadata(e)}return e[METADATA].objectID},getWeakData=function(e,t){if(!hasOwn$3(e,METADATA)){if(!isExtensible2(e))return!0;if(!t)return!1;setMetadata(e)}return e[METADATA].weakData},onFreeze=function(e){return FREEZING&&REQUIRED&&isExtensible2(e)&&!hasOwn$3(e,METADATA)&&setMetadata(e),e},enable=function(){meta.enable=function(){},REQUIRED=!0;var e=getOwnPropertyNamesModule.f,t=uncurryThis$4([].splice),r={};r[METADATA]=1,e(r).length&&(getOwnPropertyNamesModule.f=function(r){for(var n=e(r),o=0,a=n.length;o<a;o++)if(n[o]===METADATA){t(n,o,1);break}return n},$$u({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:getOwnPropertyNamesExternalModule.f}))},meta=internalMetadata.exports={enable:enable,fastKey:fastKey$1,getWeakData:getWeakData,onFreeze:onFreeze};hiddenKeys[METADATA]=!0;var $$t=_export,global$1=global$m,InternalMetadataModule=internalMetadata.exports,fails$3=fails$t,createNonEnumerableProperty=createNonEnumerableProperty$8,iterate$f=iterate$l,anInstance$1=anInstance$3,isCallable$1=isCallable$l,isObject$1=isObject$j,setToStringTag=setToStringTag$7,defineProperty$2=objectDefineProperty.f,forEach2=arrayIteration.forEach,DESCRIPTORS$6=descriptors,InternalStateModule$1=internalState,setInternalState$1=InternalStateModule$1.set,internalStateGetterFor$1=InternalStateModule$1.getterFor,collection$1=function(e,t,r){var n,o=-1!==e.indexOf("Map"),a=-1!==e.indexOf("Weak"),i=o?"set":"add",s=global$1[e],l=s&&s.prototype,c={};if(DESCRIPTORS$6&&isCallable$1(s)&&(a||l.forEach&&!fails$3((function(){(new s).entries().next()})))){var u=(n=t((function(t,r){setInternalState$1(anInstance$1(t,u),{type:e,collection:new s}),null!=r&&iterate$f(r,t[i],{that:t,AS_ENTRIES:o})}))).prototype,$=internalStateGetterFor$1(e);forEach2(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||a&&"clear"==e||createNonEnumerableProperty(u,e,(function(r,n){var o=$(this).collection;if(!t&&a&&!isObject$1(r))return"get"==e&&void 0;var i=o[e](0===r?0:r,n);return t?this:i}))})),a||defineProperty$2(u,"size",{configurable:!0,get:function(){return $(this).collection.size}})}else n=r.getConstructor(t,e,o,i),InternalMetadataModule.enable();return setToStringTag(n,e,!1,!0),c[e]=n,$$t({global:!0,forced:!0},c),a||r.setStrong(n,e,o),n},defineBuiltIn=defineBuiltIn$6,defineBuiltIns$1=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:defineBuiltIn(e,n,t[n],r);return e},defineProperty$1=objectDefineProperty.f,create4=objectCreate,defineBuiltIns=defineBuiltIns$1,bind$8=functionBindContext,anInstance=anInstance$3,isNullOrUndefined$1=isNullOrUndefined$6,iterate$e=iterate$l,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$3,setSpecies=setSpecies$2,DESCRIPTORS$5=descriptors,fastKey=internalMetadata.exports.fastKey,InternalStateModule=internalState,setInternalState=InternalStateModule.set,internalStateGetterFor=InternalStateModule.getterFor,collectionStrong$1={getConstructor:function(e,t,r,n){var o=e((function(e,o){anInstance(e,a),setInternalState(e,{type:t,index:create4(null),first:void 0,last:void 0,size:0}),DESCRIPTORS$5||(e.size=0),isNullOrUndefined$1(o)||iterate$e(o,e[n],{that:e,AS_ENTRIES:r})})),a=o.prototype,i=internalStateGetterFor(t),s=function(e,t,r){var n,o,a=i(e),s=l(e,t);return s?s.value=r:(a.last=s={index:o=fastKey(t,!0),key:t,value:r,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=s),n&&(n.next=s),DESCRIPTORS$5?a.size++:e.size++,"F"!==o&&(a.index[o]=s)),e},l=function(e,t){var r,n=i(e),o=fastKey(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return defineBuiltIns(a,{clear:function(){for(var e=i(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,DESCRIPTORS$5?e.size=0:this.size=0},delete:function(e){var t=this,r=i(t),n=l(t,e);if(n){var o=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=o),o&&(o.previous=a),r.first==n&&(r.first=o),r.last==n&&(r.last=a),DESCRIPTORS$5?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=i(this),n=bind$8(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!!l(this,e)}}),defineBuiltIns(a,r?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),DESCRIPTORS$5&&defineProperty$1(a,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=internalStateGetterFor(t),a=internalStateGetterFor(n);defineIterator(e,t,(function(e,t){setInternalState(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=a(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)?createIterResultObject("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,createIterResultObject(void 0,!0))}),r?"entries":"values",!r,!0),setSpecies(t)}},collection=collection$1,collectionStrong=collectionStrong$1;collection("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),collectionStrong);var path$5=path$l,map$c=path$5.Map,parent$C=map$c,map$b=parent$C,parent$B=map$b,map$a=parent$B,bind$7=functionBindContext,call$b=functionCall,aCallable$b=aCallable$m,aConstructor=aConstructor$3,isNullOrUndefined=isNullOrUndefined$6,iterate$d=iterate$l,push$1=[].push,collectionFrom=function(e){var t,r,n,o,a=arguments.length,i=a>1?arguments[1]:void 0;return aConstructor(this),(t=void 0!==i)&&aCallable$b(i),isNullOrUndefined(e)?new this:(r=[],t?(n=0,o=bind$7(i,a>2?arguments[2]:void 0),iterate$d(e,(function(e){call$b(push$1,r,o(e,n++))}))):iterate$d(e,push$1,{that:r}),new this(r))},$$s=_export,from3=collectionFrom;$$s({target:"Map",stat:!0,forced:!0},{from:from3});var arraySlice=arraySlice$4,collectionOf=function(){return new this(arraySlice(arguments))},$$r=_export,of2=collectionOf;$$r({target:"Map",stat:!0,forced:!0},{of:of2});var call$a=functionCall,aCallable$a=aCallable$m,anObject$f=anObject$t,collectionDeleteAll=function(){for(var e,t=anObject$f(this),r=aCallable$a(t.delete),n=!0,o=0,a=arguments.length;o<a;o++)e=call$a(r,t,arguments[o]),n=n&&e;return!!n},$$q=_export,deleteAll2=collectionDeleteAll;$$q({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:deleteAll2});var call$9=functionCall,aCallable$9=aCallable$m,anObject$e=anObject$t,mapEmplace=function(e,t){var r,n,o=anObject$e(this),a=aCallable$9(o.get),i=aCallable$9(o.has),s=aCallable$9(o.set);return call$9(i,o,e)?(r=call$9(a,o,e),"update"in t&&(r=t.update(r,e,o),call$9(s,o,e,r)),r):(n=t.insert(e,o),call$9(s,o,e,n),n)},$$p=_export,emplace2=mapEmplace;$$p({target:"Map",proto:!0,real:!0,forced:!0},{emplace:emplace2});var getIterator$1=getIterator$4,getMapIterator$a=getIterator$1,$$o=_export,anObject$d=anObject$t,bind$6=functionBindContext,getMapIterator$9=getMapIterator$a,iterate$c=iterate$l;$$o({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=anObject$d(this),r=getMapIterator$9(t),n=bind$6(e,arguments.length>1?arguments[1]:void 0);return!iterate$c(r,(function(e,r,o){if(!n(r,e,t))return o()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var $$n=_export,getBuiltIn$2=getBuiltIn$h,bind$5=functionBindContext,call$8=functionCall,aCallable$8=aCallable$m,anObject$c=anObject$t,speciesConstructor$2=speciesConstructor$5,getMapIterator$8=getMapIterator$a,iterate$b=iterate$l;$$n({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=anObject$c(this),r=getMapIterator$8(t),n=bind$5(e,arguments.length>1?arguments[1]:void 0),o=new(speciesConstructor$2(t,getBuiltIn$2("Map"))),a=aCallable$8(o.set);return iterate$b(r,(function(e,r){n(r,e,t)&&call$8(a,o,e,r)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});var $$m=_export,anObject$b=anObject$t,bind$4=functionBindContext,getMapIterator$7=getMapIterator$a,iterate$a=iterate$l;$$m({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=anObject$b(this),r=getMapIterator$7(t),n=bind$4(e,arguments.length>1?arguments[1]:void 0);return iterate$a(r,(function(e,r,o){if(n(r,e,t))return o(r)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var $$l=_export,anObject$a=anObject$t,bind$3=functionBindContext,getMapIterator$6=getMapIterator$a,iterate$9=iterate$l;$$l({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=anObject$a(this),r=getMapIterator$6(t),n=bind$3(e,arguments.length>1?arguments[1]:void 0);return iterate$9(r,(function(e,r,o){if(n(r,e,t))return o(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var $$k=_export,call$7=functionCall,uncurryThis$3=functionUncurryThis,aCallable$7=aCallable$m,getIterator=getIterator$4,iterate$8=iterate$l,push=uncurryThis$3([].push);$$k({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){aCallable$7(t);var r=getIterator(e),n=new this,o=aCallable$7(n.has),a=aCallable$7(n.get),i=aCallable$7(n.set);return iterate$8(r,(function(e){var r=t(e);call$7(o,n,r)?push(call$7(a,n,r),e):call$7(i,n,r,[e])}),{IS_ITERATOR:!0}),n}});var sameValueZero$1=function(e,t){return e===t||e!=e&&t!=t},$$j=_export,anObject$9=anObject$t,getMapIterator$5=getMapIterator$a,sameValueZero=sameValueZero$1,iterate$7=iterate$l;$$j({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return iterate$7(getMapIterator$5(anObject$9(this)),(function(t,r,n){if(sameValueZero(r,e))return n()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var $$i=_export,call$6=functionCall,iterate$6=iterate$l,aCallable$6=aCallable$m;$$i({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new this;aCallable$6(t);var n=aCallable$6(r.set);return iterate$6(e,(function(e){call$6(n,r,t(e),e)})),r}});var $$h=_export,anObject$8=anObject$t,getMapIterator$4=getMapIterator$a,iterate$5=iterate$l;$$h({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){return iterate$5(getMapIterator$4(anObject$8(this)),(function(t,r,n){if(r===e)return n(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var $$g=_export,getBuiltIn$1=getBuiltIn$h,bind$2=functionBindContext,call$5=functionCall,aCallable$5=aCallable$m,anObject$7=anObject$t,speciesConstructor$1=speciesConstructor$5,getMapIterator$3=getMapIterator$a,iterate$4=iterate$l;$$g({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=anObject$7(this),r=getMapIterator$3(t),n=bind$2(e,arguments.length>1?arguments[1]:void 0),o=new(speciesConstructor$1(t,getBuiltIn$1("Map"))),a=aCallable$5(o.set);return iterate$4(r,(function(e,r){call$5(a,o,n(r,e,t),r)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});var $$f=_export,getBuiltIn=getBuiltIn$h,bind$1=functionBindContext,call$4=functionCall,aCallable$4=aCallable$m,anObject$6=anObject$t,speciesConstructor=speciesConstructor$5,getMapIterator$2=getMapIterator$a,iterate$3=iterate$l;$$f({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=anObject$6(this),r=getMapIterator$2(t),n=bind$1(e,arguments.length>1?arguments[1]:void 0),o=new(speciesConstructor(t,getBuiltIn("Map"))),a=aCallable$4(o.set);return iterate$3(r,(function(e,r){call$4(a,o,e,n(r,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});var $$e=_export,aCallable$3=aCallable$m,anObject$5=anObject$t,iterate$2=iterate$l;$$e({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=anObject$5(this),r=aCallable$3(t.set),n=arguments.length,o=0;o<n;)iterate$2(arguments[o++],r,{that:t,AS_ENTRIES:!0});return t}});var $$d=_export,anObject$4=anObject$t,aCallable$2=aCallable$m,getMapIterator$1=getMapIterator$a,iterate$1=iterate$l,$TypeError$5=TypeError;$$d({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=anObject$4(this),r=getMapIterator$1(t),n=arguments.length<2,o=n?void 0:arguments[1];if(aCallable$2(e),iterate$1(r,(function(r,a){n?(n=!1,o=a):o=e(o,a,r,t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),n)throw $TypeError$5("Reduce of empty map with no initial value");return o}});var $$c=_export,anObject$3=anObject$t,bind2=functionBindContext,getMapIterator=getMapIterator$a,iterate=iterate$l;$$c({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=anObject$3(this),r=getMapIterator(t),n=bind2(e,arguments.length>1?arguments[1]:void 0);return iterate(r,(function(e,r,o){if(n(r,e,t))return o()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var $$b=_export,call$3=functionCall,anObject$2=anObject$t,aCallable$1=aCallable$m,$TypeError$4=TypeError;$$b({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=anObject$2(this),n=aCallable$1(r.get),o=aCallable$1(r.has),a=aCallable$1(r.set),i=arguments.length;aCallable$1(t);var s=call$3(o,r,e);if(!s&&i<3)throw $TypeError$4("Updating absent value");var l=s?call$3(n,r,e):aCallable$1(i>2?arguments[2]:void 0)(e,r);return call$3(a,r,e,t(l,e,r)),r}});var call$2=functionCall,aCallable=aCallable$m,isCallable=isCallable$l,anObject$1=anObject$t,$TypeError$3=TypeError,mapUpsert=function(e,t){var r,n=anObject$1(this),o=aCallable(n.get),a=aCallable(n.has),i=aCallable(n.set),s=arguments.length>2?arguments[2]:void 0;if(!isCallable(t)&&!isCallable(s))throw $TypeError$3("At least one callback required");return call$2(a,n,e)?(r=call$2(o,n,e),isCallable(t)&&(r=t(r),call$2(i,n,e,r))):isCallable(s)&&(r=s(),call$2(i,n,e,r)),r},$$a=_export,upsert$1=mapUpsert;$$a({target:"Map",proto:!0,real:!0,forced:!0},{upsert:upsert$1});var $$9=_export,upsert2=mapUpsert;$$9({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:upsert2});var parent$A=map$a,map$9=parent$A,map$8=map$9,map$7=map$8,RTCExtensionType=function(e){return e[e.CAPTURE=0]="CAPTURE",e[e.PRE_PROCESSING=1]="PRE_PROCESSING",e[e.ENCODE=2]="ENCODE",e[e.TRANSFER=3]="TRANSFER",e[e.POST_PROCESSING=4]="POST_PROCESSING",e[e.DECODE=5]="DECODE",e[e.RENDERING=6]="RENDERING",e}(RTCExtensionType||{}),PreProcessingExtension=function(e){_inherits(r,ExtensionBase);var t=_createSuper(r);function r(){var e,n;_classCallCheck(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return _defineProperty(_assertThisInitialized(n=t.call.apply(t,concat$1(e=[this]).call(e,a))),"type",RTCExtensionType.PRE_PROCESSING),n}return _createClass(r,[{key:"applyConstraints",value:function(e){}}]),r}(),entryVirtual$6=entryVirtual$d,values$6=entryVirtual$6("Array").values,parent$z=values$6,values$5=parent$z,classof$2=classof$c,hasOwn$2=hasOwnProperty_1,isPrototypeOf$7=objectIsPrototypeOf,method$4=values$5,ArrayPrototype$4=Array.prototype,DOMIterables$1={DOMTokenList:!0,NodeList:!0},values$4=function(e){var t=e.values;return e===ArrayPrototype$4||isPrototypeOf$7(ArrayPrototype$4,e)&&t===ArrayPrototype$4.values||hasOwn$2(DOMIterables$1,classof$2(e))?method$4:t},parent$y=values$4,values$3=parent$y,parent$x=values$3,values$2=parent$x,values$1=values$2,values=values$1,entryVirtual$5=entryVirtual$d,keys$6=entryVirtual$5("Array").keys,parent$w=keys$6,keys$5=parent$w,classof$1=classof$c,hasOwn$1=hasOwnProperty_1,isPrototypeOf$6=objectIsPrototypeOf,method$3=keys$5,ArrayPrototype$3=Array.prototype,DOMIterables={DOMTokenList:!0,NodeList:!0},keys$4=function(e){var t=e.keys;return e===ArrayPrototype$3||isPrototypeOf$6(ArrayPrototype$3,e)&&t===ArrayPrototype$3.keys||hasOwn$1(DOMIterables,classof$1(e))?method$3:t},parent$v=keys$4,keys$3=parent$v,parent$u=keys$3,keys$2=parent$u,keys$1=keys$2,keys3=keys$1,$$8=_export,$includes=arrayIncludes.includes,fails$2=fails$t,BROKEN_ON_SPARSE=fails$2((function(){return!Array(1).includes()}));$$8({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$4=entryVirtual$d,includes$7=entryVirtual$4("Array").includes,isObject=isObject$j,classof=classofRaw$2,wellKnownSymbol$1=wellKnownSymbol$n,MATCH$2=wellKnownSymbol$1("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH$2])?!!t:"RegExp"==classof(e))},isRegExp=isRegexp,$TypeError$2=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$2("The method doesn't accept regular expressions");return e},wellKnownSymbol=wellKnownSymbol$n,MATCH$1=wellKnownSymbol("match"),correctIsRegexpLogic=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[MATCH$1]=!1,"/./"[e](t)}catch(e){}}return!1},$$7=_export,uncurryThis$2=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible$2=requireObjectCoercible$6,toString$4=toString$a,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=uncurryThis$2("".indexOf);$$7({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$4(requireObjectCoercible$2(this)),toString$4(notARegExp(e)),arguments.length>1?arguments[1]:void 0)}});var entryVirtual$3=entryVirtual$d,includes$6=entryVirtual$3("String").includes,isPrototypeOf$5=objectIsPrototypeOf,arrayMethod=includes$7,stringMethod=includes$6,ArrayPrototype$2=Array.prototype,StringPrototype$1=String.prototype,includes$5=function(e){var t=e.includes;return e===ArrayPrototype$2||isPrototypeOf$5(ArrayPrototype$2,e)&&t===ArrayPrototype$2.includes?arrayMethod:"string"==typeof e||e===StringPrototype$1||isPrototypeOf$5(StringPrototype$1,e)&&t===StringPrototype$1.includes?stringMethod:t},parent$t=includes$5,includes$4=parent$t,parent$s=includes$4,includes$3=parent$s,parent$r=includes$3,includes$2=parent$r,includes$1=includes$2,includes4=includes$1,isSSR=function(){return"undefined"==typeof window},DB_NAME$1="@byted/ve-rtc",STORE_NAME="@byted/ve-rtc",STORE_CACHED_SIZE_KEY="@byted/ve-rtc-cache-size",IDB=function(){function e(){_classCallCheck(this,e),_defineProperty(this,"storeKey",void 0),_defineProperty(this,"logLevel",void 0),_defineProperty(this,"LogfileSize",void 0),_defineProperty(this,"db",void 0),_defineProperty(this,"logId",void 0),_defineProperty(this,"cacheLog",void 0),_defineProperty(this,"cachedSize",void 0),_defineProperty(this,"preCacheTime",void 0),_defineProperty(this,"timer",void 0),_defineProperty(this,"_getSize",(function(e){return new Blob(e).size/1048576})),this.storeKey="",this.logId=1,this.cacheLog="",this.logLevel="none",this.LogfileSize=100,this._createStore()}return _createClass(e,[{key:"_createStore",value:function(){var e=this;if(!isSSR()&&window.indexedDB){var t=indexedDB.open(DB_NAME$1);t.onupgradeneeded=function(){t.result.createObjectStore(STORE_NAME);try{localStorage.removeItem(STORE_CACHED_SIZE_KEY)}catch(e){}},t.onerror=function(e){},t.onsuccess=function(){e.db=t.result,e._getCachedSize()}}}},{key:"_getCachedSize",value:function(){var e=this;try{var t=localStorage.getItem(STORE_CACHED_SIZE_KEY);if(t)this.cachedSize=Number(t);else values(this).call(this).then((function(t){e.cachedSize=e._getSize(t),e._setCachedSize()}))}catch(e){}}},{key:"_setCachedSize",value:function(){try{localStorage.setItem(STORE_CACHED_SIZE_KEY,"".concat(this.cachedSize))}catch(e){}}},{key:"_getStore",value:function(e){if(this.db)return this.db.transaction(STORE_NAME,e).objectStore(STORE_NAME)}},{key:"set",value:function(e){var t=this;return new promise((function(r,n){if("none"===t.logLevel)return r();var o;if(e&&t.preCacheTime&&t.preCacheTime-Date.now()<1e3)return t.cacheLog+=concat$1(o="\n\n".concat(t.logId,": ")).call(o,e),t.logId++,t.timer||(t.timer=setTimeout((function(){t.set("")}),1e3-(t.preCacheTime-Date.now()))),r();clearTimeout(t.timer),t.timer=null;var a=t._getStore("readwrite");if(!a)return n("get store fail");t.cachedSize&&t.cachedSize>t.LogfileSize&&t.keyEarliest().then((function(e){t.get(e).then((function(r){t.del(e).then((function(){t.cachedSize=t.cachedSize-t._getSize(["".concat(r)]),t._setCachedSize()}))}))}));var i=a.get(t.storeKey);i.onsuccess=function(){try{var o,s,l,c,u,$=concat$1(o="".concat(i.result||"")).call(o,t.cacheLog),f=e?concat$1(s=concat$1(l="".concat($?"\n\n":"")).call(l,t.logId,": ")).call(s,e):"";a.put(concat$1(c="".concat($)).call(c,f),t.storeKey),e&&t.logId++,t.cacheLog="",t.cachedSize=(t.cachedSize||0)+t._getSize([concat$1(u="".concat(t.cacheLog)).call(u,f)]),t._setCachedSize(),t.preCacheTime=Date.now(),r()}catch(r){var p;if(!e)return n(r);t.cacheLog+=concat$1(p="\n\n".concat(t.logId,": ")).call(p,e),t.logId++,n(r)}},i.onerror=function(r){var o;if(!e)return n(r);t.cacheLog+=concat$1(o="\n\n".concat(t.logId,": ")).call(o,e),t.logId++,n(r)}}))}},{key:"get",value:function(e){var t=this;return new promise((function(r,n){var o=t._getStore("readonly");if(!o)return n();var a=o.get(e);a.onsuccess=function(){r(a.result)},a.onerror=function(e){n(e)}}))}},{key:"del",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.storeKey;return new promise((function(r,n){var o=e._getStore("readwrite");if(!o)return n();var a=o.delete(t);a.onsuccess=function(){return r(a.result)},a.onerror=function(e){return n(e)}}))}},{key:"keyEarliest",value:function(){return keys3(this).call(this).then((function(e){var t,r=Date.now();return e.forEach((function(e){if(e&&e.length){var n=e.split("-")[0];Number(n)<r&&(r=Number(n),t=e)}})),t}))}},{key:"keys",value:function(){var e=this;return new promise((function(t,r){var n=e._getStore("readonly");if(!n)return r();if(n.getAllKeys){var o=n.getAllKeys();return o.onsuccess=function(){t(o.result)},void(o.onerror=function(){r()})}var a=[];n.openCursor().onsuccess=function(){this.result&&(a.push(this.result.key),this.result.continue())},n.transaction.oncomplete=function(){return t(a)}}))}},{key:"values",value:function(){var e=this;return new promise((function(t,r){var n=e._getStore("readonly");if(!n)return r();if(n.getAll){var o=n.getAll();return o.onsuccess=function(){t(o.result)},void(o.onerror=function(){r()})}var a=[];n.openCursor().onsuccess=function(){this.result&&(a.push(this.result.value),this.result.continue())},n.transaction.oncomplete=function(){return t(a)}}))}},{key:"download",value:function(e){e=e||this.storeKey,this.get(e).then((function(t){var r=document.createElement("a");r.download="".concat(e,".txt"),r.href="data:text/paint;utf-8,".concat(t||""),r.click()}))}}]),e}(),iDB=new IDB,path$4=path$l,apply=functionApply;path$4.JSON||(path$4.JSON={stringify:JSON.stringify});var stringify$5=function(e,t,r){return apply(path$4.JSON.stringify,null,arguments)},parent$q=stringify$5,stringify$4=parent$q,parent$p=stringify$4,stringify$3=parent$p,parent$o=stringify$3,stringify$2=parent$o,stringify$1=stringify$2,stringify2=stringify$1,$$6=_export,$map=arrayIteration.map,arrayMethodHasSpeciesSupport$1=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport$1("map");$$6({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{map:function(e){return $map(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$2=entryVirtual$d,map$6=entryVirtual$2("Array").map,isPrototypeOf$4=objectIsPrototypeOf,method$2=map$6,ArrayPrototype$1=Array.prototype,map$5=function(e){var t=e.map;return e===ArrayPrototype$1||isPrototypeOf$4(ArrayPrototype$1,e)&&t===ArrayPrototype$1.map?method$2:t},parent$n=map$5,map$4=parent$n,parent$m=map$4,map$3=parent$m,parent$l=map$3,map$2=parent$l,map$1=map$2,map2=map$1,toIntegerOrInfinity$1=toIntegerOrInfinity$5,toString$3=toString$a,requireObjectCoercible$1=requireObjectCoercible$6,$RangeError=RangeError,stringRepeat=function(e){var t=toString$3(requireObjectCoercible$1(this)),r="",n=toIntegerOrInfinity$1(e);if(n<0||n==1/0)throw $RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r},uncurryThis$1=functionUncurryThis,toLength=toLength$2,toString$2=toString$a,$repeat=stringRepeat,requireObjectCoercible=requireObjectCoercible$6,repeat2=uncurryThis$1($repeat),stringSlice=uncurryThis$1("".slice),ceil=Math.ceil,createMethod=function(e){return function(t,r,n){var o,a,i=toString$2(requireObjectCoercible(t)),s=toLength(r),l=i.length,c=void 0===n?" ":toString$2(n);return s<=l||""==c?i:((a=repeat2(c,ceil((o=s-l)/c.length))).length>o&&(a=stringSlice(a,0,o)),e?i+a:a+i)}},stringPad={start:createMethod(!1),end:createMethod(!0)},userAgent=engineUserAgent,stringPadWebkitBug=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent),$$5=_export,$padStart=stringPad.start,WEBKIT_BUG=stringPadWebkitBug;$$5({target:"String",proto:!0,forced:WEBKIT_BUG},{padStart:function(e){return $padStart(this,e,arguments.length>1?arguments[1]:void 0)}});var _colorMap,_context,entryVirtual$1=entryVirtual$d,padStart$6=entryVirtual$1("String").padStart,isPrototypeOf$3=objectIsPrototypeOf,method$1=padStart$6,StringPrototype=String.prototype,padStart$5=function(e){var t=e.padStart;return"string"==typeof e||e===StringPrototype||isPrototypeOf$3(StringPrototype,e)&&t===StringPrototype.padStart?method$1:t},parent$k=padStart$5,padStart$4=parent$k,parent$j=padStart$4,padStart$3=parent$j,parent$i=padStart$3,padStart$2=parent$i,padStart$1=padStart$2,padStart2=padStart$1,HEAD_TEXT="[VERTC]",baseColor="#0050b3",colorMap=(_defineProperty(_colorMap={},"DEBUG","rgba(0, 0, 0, 0)"),_defineProperty(_colorMap," INFO","rgba(93, 173, 226, 0)"),_defineProperty(_colorMap," WARN","rgba(255, 119, 0, 0.3)"),_defineProperty(_colorMap,"ERROR","rgba(255, 0, 0, 0.3)"),_defineProperty(_colorMap," SUCC","rgba(0, 119, 0, 0.3)"),_colorMap),ENABLE_LOG="undefined"!=typeof window&&includes4(_context=window.location.search).call(_context,"_rtc_debug_"),Logger=function(){function e(t,r){_classCallCheck(this,e),_defineProperty(this,"indent",void 0),_defineProperty(this,"module",void 0),this.module=t,this.indent=r}return _createClass(e,[{key:"log",value:function(e,t){for(var r,n,o,a,i,s,l,c,u=arguments.length,$=new Array(u>2?u-2:0),f=2;f<u;f++)$[f-2]=arguments[f];var p=$.shift();try{var d,_,y,h,b=concat$1(d=[]).call(d,$),g="".concat(p).replace(/%o/gi,(function(){var e=b.shift();return stringify2(e)}));iDB.set(concat$1(_=concat$1(y=concat$1(h="".concat(HEAD_TEXT,"[").concat(this.module,".")).call(h,t,"] ")).call(y,g," ")).call(_,map2(b).call(b,(function(e){return stringify2(e)})).join(", ")))}catch(e){}if(ENABLE_LOG){for(var S="",E=0;E<this.indent;E++)S+=" ";(r=console).log.apply(r,concat$1(n=[concat$1(o=concat$1(a=concat$1(i=concat$1(s=concat$1(l=concat$1(c="%c".concat(getTimestamp(),"-")).call(c,HEAD_TEXT,"%c[")).call(l,e,"]%c")).call(s,S,"[")).call(i,this.module,".")).call(a,t,"] ")).call(o,p),"color:".concat(baseColor,";"),"background-color:".concat(colorMap[e],";"),"color:".concat(baseColor,";")]).call(n,$))}}},{key:"print",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.log.apply(this,concat$1(t=[" INFO",e]).call(t,n))}},{key:"debug",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.log.apply(this,concat$1(t=["DEBUG",e]).call(t,n))}},{key:"info",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.log.apply(this,concat$1(t=[" INFO",e]).call(t,n))}},{key:"warn",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.log.apply(this,concat$1(t=[" WARN",e]).call(t,n))}},{key:"error",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.log.apply(this,concat$1(t=["ERROR",e]).call(t,n))}},{key:"success",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.log.apply(this,concat$1(t=[" SUCC",e]).call(t,n))}}]),e}(),getTimestamp=function(){var e,t,r=new Date;return concat$1(e="".concat(r.toTimeString().split(" ")[0],":")).call(e,padStart2(t=r.getMilliseconds().toString()).call(t,3,"0"))};function _arrayWithoutHoles(e){if(isArray$1(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(void 0!==symbol&&null!=getIteratorMethod$1(e)||null!=e["@@iterator"])return from$1(e)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}var getOwnPropertyDescriptor$7={exports:{}},$$4=_export,fails$1=fails$t,toIndexedObject$1=toIndexedObject$a,nativeGetOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,DESCRIPTORS$4=descriptors,FAILS_ON_PRIMITIVES=fails$1((function(){nativeGetOwnPropertyDescriptor(1)})),FORCED=!DESCRIPTORS$4||FAILS_ON_PRIMITIVES;$$4({target:"Object",stat:!0,forced:FORCED,sham:!DESCRIPTORS$4},{getOwnPropertyDescriptor:function(e,t){return nativeGetOwnPropertyDescriptor(toIndexedObject$1(e),t)}});var path$3=path$l,Object$2=path$3.Object,getOwnPropertyDescriptor$6=getOwnPropertyDescriptor$7.exports=function(e,t){return Object$2.getOwnPropertyDescriptor(e,t)};Object$2.getOwnPropertyDescriptor.sham&&(getOwnPropertyDescriptor$6.sham=!0);var parent$h=getOwnPropertyDescriptor$7.exports,getOwnPropertyDescriptor$5=parent$h,parent$g=getOwnPropertyDescriptor$5,getOwnPropertyDescriptor$4=parent$g,parent$f=getOwnPropertyDescriptor$4,getOwnPropertyDescriptor$3=parent$f,getOwnPropertyDescriptor$2=getOwnPropertyDescriptor$3,getOwnPropertyDescriptor$1=getOwnPropertyDescriptor$2,$$3=_export,DESCRIPTORS$3=descriptors,ownKeys$1=ownKeys$3,toIndexedObject=toIndexedObject$a,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,createProperty$1=createProperty$6;$$3({target:"Object",stat:!0,sham:!DESCRIPTORS$3},{getOwnPropertyDescriptors:function(e){for(var t,r,n=toIndexedObject(e),o=getOwnPropertyDescriptorModule.f,a=ownKeys$1(n),i={},s=0;a.length>s;)void 0!==(r=o(n,t=a[s++]))&&createProperty$1(i,t,r);return i}});var path$2=path$l,getOwnPropertyDescriptors$5=path$2.Object.getOwnPropertyDescriptors,parent$e=getOwnPropertyDescriptors$5,getOwnPropertyDescriptors$4=parent$e,parent$d=getOwnPropertyDescriptors$4,getOwnPropertyDescriptors$3=parent$d,parent$c=getOwnPropertyDescriptors$3,getOwnPropertyDescriptors$2=parent$c,getOwnPropertyDescriptors$1=getOwnPropertyDescriptors$2,getOwnPropertyDescriptors2=getOwnPropertyDescriptors$1,defineProperties$7={exports:{}},$$2=_export,DESCRIPTORS$2=descriptors,defineProperties$6=objectDefineProperties.f;$$2({target:"Object",stat:!0,forced:Object.defineProperties!==defineProperties$6,sham:!DESCRIPTORS$2},{defineProperties:defineProperties$6});var path$1=path$l,Object$1=path$1.Object,defineProperties$5=defineProperties$7.exports=function(e,t){return Object$1.defineProperties(e,t)};Object$1.defineProperties.sham&&(defineProperties$5.sham=!0);var parent$b=defineProperties$7.exports,defineProperties$4=parent$b,parent$a=defineProperties$4,defineProperties$3=parent$a,parent$9=defineProperties$3,defineProperties$2=parent$9,defineProperties$1=defineProperties$2,defineProperties4=defineProperties$1;function ownKeys2(e,t){var r=keys$7(e);if(getOwnPropertySymbols2){var n=getOwnPropertySymbols2(e);t&&(n=filter2(n).call(n,(function(t){return getOwnPropertyDescriptor$1(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?forEach$1(r=ownKeys2(Object(o),!0)).call(r,(function(t){_defineProperty(e,t,o[t])})):getOwnPropertyDescriptors2?defineProperties4(e,getOwnPropertyDescriptors2(o)):forEach$1(n=ownKeys2(Object(o))).call(n,(function(t){defineProperty$4(e,t,getOwnPropertyDescriptor$1(o,t))}))}return e}var DESCRIPTORS$1=descriptors,uncurryThis=functionUncurryThis,call$1=functionCall,fails=fails$t,objectKeys=objectKeys$3,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$a,IndexedObject=indexedObject,$assign=Object.assign,defineProperty5=Object.defineProperty,concat2=uncurryThis([].concat),objectAssign=!$assign||fails((function(){if(DESCRIPTORS$1&&1!==$assign({b:1},$assign(defineProperty5({},"a",{enumerable:!0,get:function(){defineProperty5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=$assign({},e)[r]||objectKeys($assign({},t)).join("")!=n}))?function(e,t){for(var r=toObject$1(e),n=arguments.length,o=1,a=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;n>o;)for(var s,l=IndexedObject(arguments[o++]),c=a?concat2(objectKeys(l),a(l)):objectKeys(l),u=c.length,$=0;u>$;)s=c[$++],DESCRIPTORS$1&&!call$1(i,l,s)||(r[s]=l[s]);return r}:$assign,$$1=_export,assign$7=objectAssign;$$1({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$7},{assign:assign$7});var path=path$l,assign$6=path.Object.assign,parent$8=assign$6,assign$5=parent$8,parent$7=assign$5,assign$4=parent$7,parent$6=assign$4,assign$3=parent$6,assign$2=assign$3,assign$1=assign$2,DESCRIPTORS=descriptors,isArray2=isArray$d,$TypeError$1=TypeError,getOwnPropertyDescriptor5=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),arraySetLength=SILENT_ON_NON_WRITABLE_LENGTH_SET?function(e,t){if(isArray2(e)&&!getOwnPropertyDescriptor5(e,"length").writable)throw $TypeError$1("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},tryToString=tryToString$6,$TypeError=TypeError,deletePropertyOrThrow$1=function(e,t){if(!delete e[t])throw $TypeError("Cannot delete property "+tryToString(t)+" of "+tryToString(e))},$=_export,toObject=toObject$a,toAbsoluteIndex=toAbsoluteIndex$4,toIntegerOrInfinity=toIntegerOrInfinity$5,lengthOfArrayLike=lengthOfArrayLike$8,setArrayLength=arraySetLength,doesNotExceedSafeInteger=doesNotExceedSafeInteger$2,arraySpeciesCreate=arraySpeciesCreate$3,createProperty=createProperty$6,deletePropertyOrThrow=deletePropertyOrThrow$1,arrayMethodHasSpeciesSupport=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("splice"),max=Math.max,min=Math.min;$({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{splice:function(e,t){var r,n,o,a,i,s,l=toObject(this),c=lengthOfArrayLike(l),u=toAbsoluteIndex(e,c),$=arguments.length;for(0===$?r=n=0:1===$?(r=0,n=c-u):(r=$-2,n=min(max(toIntegerOrInfinity(t),0),c-u)),doesNotExceedSafeInteger(c+r-n),o=arraySpeciesCreate(l,n),a=0;a<n;a++)(i=u+a)in l&&createProperty(o,a,l[i]);if(o.length=n,r<n){for(a=u;a<c-n;a++)s=a+r,(i=a+n)in l?l[s]=l[i]:deletePropertyOrThrow(l,s);for(a=c;a>c-n+r;a--)deletePropertyOrThrow(l,a-1)}else if(r>n)for(a=c-n;a>u;a--)s=a+r-1,(i=a+n-1)in l?l[s]=l[i]:deletePropertyOrThrow(l,s);for(a=0;a<r;a++)l[a+u]=arguments[a+2];return setArrayLength(l,c-n+r),o}});var entryVirtual=entryVirtual$d,splice$6=entryVirtual("Array").splice,isPrototypeOf$2=objectIsPrototypeOf,method=splice$6,ArrayPrototype=Array.prototype,splice$5=function(e){var t=e.splice;return e===ArrayPrototype||isPrototypeOf$2(ArrayPrototype,e)&&t===ArrayPrototype.splice?method:t},parent$5=splice$5,splice$4=parent$5,parent$4=splice$4,splice$3=parent$4,parent$3=splice$3,splice$2=parent$3,splice$1=splice$2,splice2=splice$1,common={};!function(e){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=slice2(Array.prototype).call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==_typeof(n))throw new TypeError(n+"must be non-object");for(var o in n)r(n,o)&&(e[o]=n[o])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var n={arraySet:function(e,t,r,n,o){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),o);else for(var a=0;a<n;a++)e[o+a]=t[r+a]},flattenChunks:function(e){var t,r,n,o,a,i;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(i=new Uint8Array(n),o=0,t=0,r=e.length;t<r;t++)a=e[t],i.set(a,o),o+=a.length;return i}},o={arraySet:function(e,t,r,n,o){for(var a=0;a<n;a++)e[o+a]=t[r+a]},flattenChunks:function(e){return concat$1([]).apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,n)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(t)}(common);var deflate$4={},deflate$3={},trees$1={},utils$6=common,Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(e){for(var t=e.length;--t>=0;)e[t]=0}var STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],DIST_CODE_LEN=512,static_ltree=new Array(2*(L_CODES$1+2));zero$1(static_ltree);var static_dtree=new Array(2*D_CODES$1);zero$1(static_dtree);var _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);var _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);var base_length=new Array(LENGTH_CODES$1);zero$1(base_length);var static_l_desc,static_d_desc,static_bl_desc,base_dist=new Array(D_CODES$1);function StaticTreeDesc(e,t,r,n,o){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=o,this.has_stree=e&&e.length}function TreeDesc(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function d_code(e){return e<256?_dist_code[e]:_dist_code[256+(e>>>7)]}function put_short(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function send_bits(e,t,r){e.bi_valid>Buf_size-r?(e.bi_buf|=t<<e.bi_valid&65535,put_short(e,e.bi_buf),e.bi_buf=t>>Buf_size-e.bi_valid,e.bi_valid+=r-Buf_size):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function send_code(e,t,r){send_bits(e,r[2*t],r[2*t+1])}function bi_reverse(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function bi_flush(e){16===e.bi_valid?(put_short(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function gen_bitlen(e,t){var r,n,o,a,i,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,$=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,d=t.stat_desc.max_length,_=0;for(a=0;a<=MAX_BITS$1;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<HEAP_SIZE$1;r++)(a=l[2*l[2*(n=e.heap[r])+1]+1]+1)>d&&(a=d,_++),l[2*n+1]=a,n>c||(e.bl_count[a]++,i=0,n>=p&&(i=f[n-p]),s=l[2*n],e.opt_len+=s*(a+i),$&&(e.static_len+=s*(u[2*n+1]+i)));if(0!==_){do{for(a=d-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[d]--,_-=2}while(_>0);for(a=d;0!==a;a--)for(n=e.bl_count[a];0!==n;)(o=e.heap[--r])>c||(l[2*o+1]!==a&&(e.opt_len+=(a-l[2*o+1])*l[2*o],l[2*o+1]=a),n--)}}function gen_codes(e,t,r){var n,o,a=new Array(MAX_BITS$1+1),i=0;for(n=1;n<=MAX_BITS$1;n++)a[n]=i=i+r[n-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=bi_reverse(a[s]++,s))}}function tr_static_init(){var e,t,r,n,o,a=new Array(MAX_BITS$1+1);for(r=0,n=0;n<LENGTH_CODES$1-1;n++)for(base_length[n]=r,e=0;e<1<<extra_lbits[n];e++)_length_code[r++]=n;for(_length_code[r-1]=n,o=0,n=0;n<16;n++)for(base_dist[n]=o,e=0;e<1<<extra_dbits[n];e++)_dist_code[o++]=n;for(o>>=7;n<D_CODES$1;n++)for(base_dist[n]=o<<7,e=0;e<1<<extra_dbits[n]-7;e++)_dist_code[256+o++]=n;for(t=0;t<=MAX_BITS$1;t++)a[t]=0;for(e=0;e<=143;)static_ltree[2*e+1]=8,e++,a[8]++;for(;e<=255;)static_ltree[2*e+1]=9,e++,a[9]++;for(;e<=279;)static_ltree[2*e+1]=7,e++,a[7]++;for(;e<=287;)static_ltree[2*e+1]=8,e++,a[8]++;for(gen_codes(static_ltree,L_CODES$1+1,a),e=0;e<D_CODES$1;e++)static_dtree[2*e+1]=5,static_dtree[2*e]=bi_reverse(e,5);static_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,LITERALS$1+1,L_CODES$1,MAX_BITS$1),static_d_desc=new StaticTreeDesc(static_dtree,extra_dbits,0,D_CODES$1,MAX_BITS$1),static_bl_desc=new StaticTreeDesc(new Array(0),extra_blbits,0,BL_CODES$1,MAX_BL_BITS)}function init_block(e){var t;for(t=0;t<L_CODES$1;t++)e.dyn_ltree[2*t]=0;for(t=0;t<D_CODES$1;t++)e.dyn_dtree[2*t]=0;for(t=0;t<BL_CODES$1;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*END_BLOCK]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function bi_windup(e){e.bi_valid>8?put_short(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function copy_block(e,t,r,n){bi_windup(e),n&&(put_short(e,r),put_short(e,~r)),utils$6.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function smaller(e,t,r,n){var o=2*t,a=2*r;return e[o]<e[a]||e[o]===e[a]&&n[t]<=n[r]}function pqdownheap(e,t,r){for(var n=e.heap[r],o=r<<1;o<=e.heap_len&&(o<e.heap_len&&smaller(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!smaller(t,n,e.heap[o],e.depth));)e.heap[r]=e.heap[o],r=o,o<<=1;e.heap[r]=n}function compress_block(e,t,r){var n,o,a,i,s=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===n?send_code(e,o,t):(send_code(e,(a=_length_code[o])+LITERALS$1+1,t),0!==(i=extra_lbits[a])&&send_bits(e,o-=base_length[a],i),send_code(e,a=d_code(--n),r),0!==(i=extra_dbits[a])&&send_bits(e,n-=base_dist[a],i))}while(s<e.last_lit);send_code(e,END_BLOCK,t)}function build_tree(e,t){var r,n,o,a=t.dyn_tree,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=HEAP_SIZE$1,r=0;r<l;r++)0!==a[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=i[2*o+1]);for(t.max_code=c,r=e.heap_len>>1;r>=1;r--)pqdownheap(e,a,r);o=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pqdownheap(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*o]=a[2*r]+a[2*n],e.depth[o]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=o,e.heap[1]=o++,pqdownheap(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gen_bitlen(e,t),gen_codes(a,c,e.bl_count)}function scan_tree(e,t,r){var n,o,a=-1,i=t[1],s=0,l=7,c=4;for(0===i&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)o=i,i=t[2*(n+1)+1],++s<l&&o===i||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==a&&e.bl_tree[2*o]++,e.bl_tree[2*REP_3_6]++):s<=10?e.bl_tree[2*REPZ_3_10]++:e.bl_tree[2*REPZ_11_138]++,s=0,a=o,0===i?(l=138,c=3):o===i?(l=6,c=3):(l=7,c=4))}function send_tree(e,t,r){var n,o,a=-1,i=t[1],s=0,l=7,c=4;for(0===i&&(l=138,c=3),n=0;n<=r;n++)if(o=i,i=t[2*(n+1)+1],!(++s<l&&o===i)){if(s<c)do{send_code(e,o,e.bl_tree)}while(0!=--s);else 0!==o?(o!==a&&(send_code(e,o,e.bl_tree),s--),send_code(e,REP_3_6,e.bl_tree),send_bits(e,s-3,2)):s<=10?(send_code(e,REPZ_3_10,e.bl_tree),send_bits(e,s-3,3)):(send_code(e,REPZ_11_138,e.bl_tree),send_bits(e,s-11,7));s=0,a=o,0===i?(l=138,c=3):o===i?(l=6,c=3):(l=7,c=4)}}function build_bl_tree(e){var t;for(scan_tree(e,e.dyn_ltree,e.l_desc.max_code),scan_tree(e,e.dyn_dtree,e.d_desc.max_code),build_tree(e,e.bl_desc),t=BL_CODES$1-1;t>=3&&0===e.bl_tree[2*bl_order[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}function send_all_trees(e,t,r,n){var o;for(send_bits(e,t-257,5),send_bits(e,r-1,5),send_bits(e,n-4,4),o=0;o<n;o++)send_bits(e,e.bl_tree[2*bl_order[o]+1],3);send_tree(e,e.dyn_ltree,t-1),send_tree(e,e.dyn_dtree,r-1)}function detect_data_type(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return Z_BINARY;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return Z_TEXT;for(t=32;t<LITERALS$1;t++)if(0!==e.dyn_ltree[2*t])return Z_TEXT;return Z_BINARY}zero$1(base_dist);var static_init_done=!1;function _tr_init(e){static_init_done||(tr_static_init(),static_init_done=!0),e.l_desc=new TreeDesc(e.dyn_ltree,static_l_desc),e.d_desc=new TreeDesc(e.dyn_dtree,static_d_desc),e.bl_desc=new TreeDesc(e.bl_tree,static_bl_desc),e.bi_buf=0,e.bi_valid=0,init_block(e)}function _tr_stored_block(e,t,r,n){send_bits(e,(STORED_BLOCK<<1)+(n?1:0),3),copy_block(e,t,r,!0)}function _tr_align(e){send_bits(e,STATIC_TREES<<1,3),send_code(e,END_BLOCK,static_ltree),bi_flush(e)}function _tr_flush_block(e,t,r,n){var o,a,i=0;e.level>0?(e.strm.data_type===Z_UNKNOWN$1&&(e.strm.data_type=detect_data_type(e)),build_tree(e,e.l_desc),build_tree(e,e.d_desc),i=build_bl_tree(e),o=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=o&&(o=a)):o=a=r+5,r+4<=o&&-1!==t?_tr_stored_block(e,t,r,n):e.strategy===Z_FIXED$1||a===o?(send_bits(e,(STATIC_TREES<<1)+(n?1:0),3),compress_block(e,static_ltree,static_dtree)):(send_bits(e,(DYN_TREES<<1)+(n?1:0),3),send_all_trees(e,e.l_desc.max_code+1,e.d_desc.max_code+1,i+1),compress_block(e,e.dyn_ltree,e.dyn_dtree)),init_block(e),n&&bi_windup(e)}function _tr_tally(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(_length_code[r]+LITERALS$1+1)]++,e.dyn_dtree[2*d_code(t)]++),e.last_lit===e.lit_bufsize-1}function adler32$2(e,t,r,n){for(var o=65535&e|0,a=e>>>16&65535|0,i=0;0!==r;){r-=i=r>2e3?2e3:r;do{a=a+(o=o+t[n++]|0)|0}while(--i);o%=65521,a%=65521}return o|a<<16|0}trees$1._tr_init=_tr_init,trees$1._tr_stored_block=_tr_stored_block,trees$1._tr_flush_block=_tr_flush_block,trees$1._tr_tally=_tr_tally,trees$1._tr_align=_tr_align;var adler32_1=adler32$2;function makeTable(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}var crcTable=makeTable();function crc32$2(e,t,r,n){var o=crcTable,a=n+r;e^=-1;for(var i=n;i<a;i++)e=e>>>8^o[255&(e^t[i])];return-1^e}var configuration_table,crc32_1=crc32$2,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},utils$5=common,trees=trees$1,adler32$1=adler32_1,crc32$1=crc32_1,msg$2=messages,Z_NO_FLUSH$1=0,Z_PARTIAL_FLUSH=1,Z_FULL_FLUSH=3,Z_FINISH$2=4,Z_BLOCK$1=5,Z_OK$2=0,Z_STREAM_END$2=1,Z_STREAM_ERROR$1=-2,Z_DATA_ERROR$1=-3,Z_BUF_ERROR$1=-5,Z_DEFAULT_COMPRESSION$1=-1,Z_FILTERED=1,Z_HUFFMAN_ONLY=2,Z_RLE=3,Z_FIXED=4,Z_DEFAULT_STRATEGY$1=0,Z_UNKNOWN=2,Z_DEFLATED$2=8,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3;function err(e,t){return e.msg=msg$2[t],t}function rank(e){return(e<<1)-(e>4?9:0)}function zero(e){for(var t=e.length;--t>=0;)e[t]=0}function flush_pending(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(utils$5.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function flush_block_only(e,t){trees._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,flush_pending(e.strm)}function put_byte(e,t){e.pending_buf[e.pending++]=t}function putShortMSB(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function read_buf(e,t,r,n){var o=e.avail_in;return o>n&&(o=n),0===o?0:(e.avail_in-=o,utils$5.arraySet(t,e.input,e.next_in,o,r),1===e.state.wrap?e.adler=adler32$1(e.adler,t,o,r):2===e.state.wrap&&(e.adler=crc32$1(e.adler,t,o,r)),e.next_in+=o,e.total_in+=o,o)}function longest_match(e,t){var r,n,o=e.max_chain_length,a=e.strstart,i=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-MIN_LOOKAHEAD?e.strstart-(e.w_size-MIN_LOOKAHEAD):0,c=e.window,u=e.w_mask,$=e.prev,f=e.strstart+MAX_MATCH,p=c[a+i-1],d=c[a+i];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+i]===d&&c[r+i-1]===p&&c[r]===c[a]&&c[++r]===c[a+1]){a+=2,r++;do{}while(c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&a<f);if(n=MAX_MATCH-(f-a),a=f-MAX_MATCH,n>i){if(e.match_start=t,i=n,n>=s)break;p=c[a+i-1],d=c[a+i]}}}while((t=$[t&u])>l&&0!=--o);return i<=e.lookahead?i:e.lookahead}function fill_window(e){var t,r,n,o,a,i=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=i+(i-MIN_LOOKAHEAD)){utils$5.arraySet(e.window,e.window,i,i,0),e.match_start-=i,e.strstart-=i,e.block_start-=i,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=i?n-i:0}while(--r);t=r=i;do{n=e.prev[--t],e.prev[t]=n>=i?n-i:0}while(--r);o+=i}if(0===e.strm.avail_in)break;if(r=read_buf(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=r,e.lookahead+e.insert>=MIN_MATCH)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+MIN_MATCH-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<MIN_MATCH)););}while(e.lookahead<MIN_LOOKAHEAD&&0!==e.strm.avail_in)}function deflate_stored(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(fill_window(e),0===e.lookahead&&t===Z_NO_FLUSH$1)return BS_NEED_MORE;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE;if(e.strstart-e.block_start>=e.w_size-MIN_LOOKAHEAD&&(flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$2?(flush_block_only(e,!0),0===e.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):(e.strstart>e.block_start&&(flush_block_only(e,!1),e.strm.avail_out),BS_NEED_MORE)}function deflate_fast(e,t){for(var r,n;;){if(e.lookahead<MIN_LOOKAHEAD){if(fill_window(e),e.lookahead<MIN_LOOKAHEAD&&t===Z_NO_FLUSH$1)return BS_NEED_MORE;if(0===e.lookahead)break}if(r=0,e.lookahead>=MIN_MATCH&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+MIN_MATCH-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-MIN_LOOKAHEAD&&(e.match_length=longest_match(e,r)),e.match_length>=MIN_MATCH)if(n=trees._tr_tally(e,e.strstart-e.match_start,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=MIN_MATCH){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+MIN_MATCH-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=trees._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE}return e.insert=e.strstart<MIN_MATCH-1?e.strstart:MIN_MATCH-1,t===Z_FINISH$2?(flush_block_only(e,!0),0===e.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):e.last_lit&&(flush_block_only(e,!1),0===e.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}function deflate_slow(e,t){for(var r,n,o;;){if(e.lookahead<MIN_LOOKAHEAD){if(fill_window(e),e.lookahead<MIN_LOOKAHEAD&&t===Z_NO_FLUSH$1)return BS_NEED_MORE;if(0===e.lookahead)break}if(r=0,e.lookahead>=MIN_MATCH&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+MIN_MATCH-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=MIN_MATCH-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-MIN_LOOKAHEAD&&(e.match_length=longest_match(e,r),e.match_length<=5&&(e.strategy===Z_FILTERED||e.match_length===MIN_MATCH&&e.strstart-e.match_start>4096)&&(e.match_length=MIN_MATCH-1)),e.prev_length>=MIN_MATCH&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-MIN_MATCH,n=trees._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-MIN_MATCH),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+MIN_MATCH-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=MIN_MATCH-1,e.strstart++,n&&(flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE}else if(e.match_available){if((n=trees._tr_tally(e,0,e.window[e.strstart-1]))&&flush_block_only(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return BS_NEED_MORE}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=trees._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<MIN_MATCH-1?e.strstart:MIN_MATCH-1,t===Z_FINISH$2?(flush_block_only(e,!0),0===e.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):e.last_lit&&(flush_block_only(e,!1),0===e.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}function deflate_rle(e,t){for(var r,n,o,a,i=e.window;;){if(e.lookahead<=MAX_MATCH){if(fill_window(e),e.lookahead<=MAX_MATCH&&t===Z_NO_FLUSH$1)return BS_NEED_MORE;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=MIN_MATCH&&e.strstart>0&&(n=i[o=e.strstart-1])===i[++o]&&n===i[++o]&&n===i[++o]){a=e.strstart+MAX_MATCH;do{}while(n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&o<a);e.match_length=MAX_MATCH-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=MIN_MATCH?(r=trees._tr_tally(e,1,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=trees._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$2?(flush_block_only(e,!0),0===e.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):e.last_lit&&(flush_block_only(e,!1),0===e.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}function deflate_huff(e,t){for(var r;;){if(0===e.lookahead&&(fill_window(e),0===e.lookahead)){if(t===Z_NO_FLUSH$1)return BS_NEED_MORE;break}if(e.match_length=0,r=trees._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$2?(flush_block_only(e,!0),0===e.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):e.last_lit&&(flush_block_only(e,!1),0===e.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}function Config(e,t,r,n,o){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=o}function lm_init(e){e.window_size=2*e.w_size,zero(e.head),e.max_lazy_match=configuration_table[e.level].max_lazy,e.good_match=configuration_table[e.level].good_length,e.nice_match=configuration_table[e.level].nice_length,e.max_chain_length=configuration_table[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=MIN_MATCH-1,e.match_available=0,e.ins_h=0}function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new utils$5.Buf16(2*HEAP_SIZE),this.dyn_dtree=new utils$5.Buf16(2*(2*D_CODES+1)),this.bl_tree=new utils$5.Buf16(2*(2*BL_CODES+1)),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new utils$5.Buf16(MAX_BITS+1),this.heap=new utils$5.Buf16(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new utils$5.Buf16(2*L_CODES+1),zero(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function deflateResetKeep(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=Z_UNKNOWN,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?INIT_STATE:BUSY_STATE,e.adler=2===t.wrap?0:1,t.last_flush=Z_NO_FLUSH$1,trees._tr_init(t),Z_OK$2):err(e,Z_STREAM_ERROR$1)}function deflateReset(e){var t=deflateResetKeep(e);return t===Z_OK$2&&lm_init(e.state),t}function deflateSetHeader(e,t){return e&&e.state?2!==e.state.wrap?Z_STREAM_ERROR$1:(e.state.gzhead=t,Z_OK$2):Z_STREAM_ERROR$1}function deflateInit2(e,t,r,n,o,a){if(!e)return Z_STREAM_ERROR$1;var i=1;if(t===Z_DEFAULT_COMPRESSION$1&&(t=6),n<0?(i=0,n=-n):n>15&&(i=2,n-=16),o<1||o>MAX_MEM_LEVEL||r!==Z_DEFLATED$2||n<8||n>15||t<0||t>9||a<0||a>Z_FIXED)return err(e,Z_STREAM_ERROR$1);8===n&&(n=9);var s=new DeflateState;return e.state=s,s.strm=e,s.wrap=i,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=o+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+MIN_MATCH-1)/MIN_MATCH),s.window=new utils$5.Buf8(2*s.w_size),s.head=new utils$5.Buf16(s.hash_size),s.prev=new utils$5.Buf16(s.w_size),s.lit_bufsize=1<<o+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new utils$5.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,deflateReset(e)}function deflateInit(e,t){return deflateInit2(e,t,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1)}function deflate$2(e,t){var r,n,o,a;if(!e||!e.state||t>Z_BLOCK$1||t<0)return e?err(e,Z_STREAM_ERROR$1):Z_STREAM_ERROR$1;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||n.status===FINISH_STATE&&t!==Z_FINISH$2)return err(e,0===e.avail_out?Z_BUF_ERROR$1:Z_STREAM_ERROR$1);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===INIT_STATE)if(2===n.wrap)e.adler=0,put_byte(n,31),put_byte(n,139),put_byte(n,8),n.gzhead?(put_byte(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),put_byte(n,255&n.gzhead.time),put_byte(n,n.gzhead.time>>8&255),put_byte(n,n.gzhead.time>>16&255),put_byte(n,n.gzhead.time>>24&255),put_byte(n,9===n.level?2:n.strategy>=Z_HUFFMAN_ONLY||n.level<2?4:0),put_byte(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(put_byte(n,255&n.gzhead.extra.length),put_byte(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=EXTRA_STATE):(put_byte(n,0),put_byte(n,0),put_byte(n,0),put_byte(n,0),put_byte(n,0),put_byte(n,9===n.level?2:n.strategy>=Z_HUFFMAN_ONLY||n.level<2?4:0),put_byte(n,OS_CODE),n.status=BUSY_STATE);else{var i=Z_DEFLATED$2+(n.w_bits-8<<4)<<8;i|=(n.strategy>=Z_HUFFMAN_ONLY||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=PRESET_DICT),i+=31-i%31,n.status=BUSY_STATE,putShortMSB(n,i),0!==n.strstart&&(putShortMSB(n,e.adler>>>16),putShortMSB(n,65535&e.adler)),e.adler=1}if(n.status===EXTRA_STATE)if(n.gzhead.extra){for(o=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),flush_pending(e),o=n.pending,n.pending!==n.pending_buf_size));)put_byte(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=NAME_STATE)}else n.status=NAME_STATE;if(n.status===NAME_STATE)if(n.gzhead.name){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),flush_pending(e),o=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,put_byte(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),0===a&&(n.gzindex=0,n.status=COMMENT_STATE)}else n.status=COMMENT_STATE;if(n.status===COMMENT_STATE)if(n.gzhead.comment){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),flush_pending(e),o=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,put_byte(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),0===a&&(n.status=HCRC_STATE)}else n.status=HCRC_STATE;if(n.status===HCRC_STATE&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&flush_pending(e),n.pending+2<=n.pending_buf_size&&(put_byte(n,255&e.adler),put_byte(n,e.adler>>8&255),e.adler=0,n.status=BUSY_STATE)):n.status=BUSY_STATE),0!==n.pending){if(flush_pending(e),0===e.avail_out)return n.last_flush=-1,Z_OK$2}else if(0===e.avail_in&&rank(t)<=rank(r)&&t!==Z_FINISH$2)return err(e,Z_BUF_ERROR$1);if(n.status===FINISH_STATE&&0!==e.avail_in)return err(e,Z_BUF_ERROR$1);if(0!==e.avail_in||0!==n.lookahead||t!==Z_NO_FLUSH$1&&n.status!==FINISH_STATE){var s=n.strategy===Z_HUFFMAN_ONLY?deflate_huff(n,t):n.strategy===Z_RLE?deflate_rle(n,t):configuration_table[n.level].func(n,t);if(s!==BS_FINISH_STARTED&&s!==BS_FINISH_DONE||(n.status=FINISH_STATE),s===BS_NEED_MORE||s===BS_FINISH_STARTED)return 0===e.avail_out&&(n.last_flush=-1),Z_OK$2;if(s===BS_BLOCK_DONE&&(t===Z_PARTIAL_FLUSH?trees._tr_align(n):t!==Z_BLOCK$1&&(trees._tr_stored_block(n,0,0,!1),t===Z_FULL_FLUSH&&(zero(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),flush_pending(e),0===e.avail_out))return n.last_flush=-1,Z_OK$2}return t!==Z_FINISH$2?Z_OK$2:n.wrap<=0?Z_STREAM_END$2:(2===n.wrap?(put_byte(n,255&e.adler),put_byte(n,e.adler>>8&255),put_byte(n,e.adler>>16&255),put_byte(n,e.adler>>24&255),put_byte(n,255&e.total_in),put_byte(n,e.total_in>>8&255),put_byte(n,e.total_in>>16&255),put_byte(n,e.total_in>>24&255)):(putShortMSB(n,e.adler>>>16),putShortMSB(n,65535&e.adler)),flush_pending(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?Z_OK$2:Z_STREAM_END$2)}function deflateEnd(e){var t;return e&&e.state?(t=e.state.status)!==INIT_STATE&&t!==EXTRA_STATE&&t!==NAME_STATE&&t!==COMMENT_STATE&&t!==HCRC_STATE&&t!==BUSY_STATE&&t!==FINISH_STATE?err(e,Z_STREAM_ERROR$1):(e.state=null,t===BUSY_STATE?err(e,Z_DATA_ERROR$1):Z_OK$2):Z_STREAM_ERROR$1}function deflateSetDictionary(e,t){var r,n,o,a,i,s,l,c,u=t.length;if(!e||!e.state)return Z_STREAM_ERROR$1;if(2===(a=(r=e.state).wrap)||1===a&&r.status!==INIT_STATE||r.lookahead)return Z_STREAM_ERROR$1;for(1===a&&(e.adler=adler32$1(e.adler,t,u,0)),r.wrap=0,u>=r.w_size&&(0===a&&(zero(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new utils$5.Buf8(r.w_size),utils$5.arraySet(c,t,u-r.w_size,r.w_size,0),t=c,u=r.w_size),i=e.avail_in,s=e.next_in,l=e.input,e.avail_in=u,e.next_in=0,e.input=t,fill_window(r);r.lookahead>=MIN_MATCH;){n=r.strstart,o=r.lookahead-(MIN_MATCH-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+MIN_MATCH-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=MIN_MATCH-1,fill_window(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=MIN_MATCH-1,r.match_available=0,e.next_in=s,e.input=l,e.avail_in=i,r.wrap=a,Z_OK$2}configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],deflate$3.deflateInit=deflateInit,deflate$3.deflateInit2=deflateInit2,deflate$3.deflateReset=deflateReset,deflate$3.deflateResetKeep=deflateResetKeep,deflate$3.deflateSetHeader=deflateSetHeader,deflate$3.deflate=deflate$2,deflate$3.deflateEnd=deflateEnd,deflate$3.deflateSetDictionary=deflateSetDictionary,deflate$3.deflateInfo="pako deflate (from Nodeca project)";var strings$2={},utils$4=common,STR_APPLY_OK=!0,STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,[0])}catch(e){STR_APPLY_OK=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){STR_APPLY_UIA_OK=!1}for(var _utf8len=new utils$4.Buf8(256),q=0;q<256;q++)_utf8len[q]=q>=252?6:q>=248?5:q>=240?4:q>=224?3:q>=192?2:1;function buf2binstring(e,t){if(t<65534&&(e.subarray&&STR_APPLY_UIA_OK||!e.subarray&&STR_APPLY_OK))return String.fromCharCode.apply(null,utils$4.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}function ZStream$2(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}_utf8len[254]=_utf8len[254]=1,strings$2.string2buf=function(e){var t,r,n,o,a,i=e.length,s=0;for(o=0;o<i;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<i&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new utils$4.Buf8(s),a=0,o=0;a<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<i&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},strings$2.buf2binstring=function(e){return buf2binstring(e,e.length)},strings$2.binstring2buf=function(e){for(var t=new utils$4.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},strings$2.buf2string=function(e,t){var r,n,o,a,i=t||e.length,s=new Array(2*i);for(n=0,r=0;r<i;)if((o=e[r++])<128)s[n++]=o;else if((a=_utf8len[o])>4)s[n++]=65533,r+=a-1;else{for(o&=2===a?31:3===a?15:7;a>1&&r<i;)o=o<<6|63&e[r++],a--;a>1?s[n++]=65533:o<65536?s[n++]=o:(o-=65536,s[n++]=55296|o>>10&1023,s[n++]=56320|1023&o)}return buf2binstring(s,n)},strings$2.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+_utf8len[e[r]]>t?r:t};var zstream=ZStream$2,zlib_deflate=deflate$3,utils$3=common,strings$1=strings$2,msg$1=messages,ZStream$1=zstream,toString$1=Object.prototype.toString,Z_NO_FLUSH=0,Z_FINISH$1=4,Z_OK$1=0,Z_STREAM_END$1=1,Z_SYNC_FLUSH=2,Z_DEFAULT_COMPRESSION=-1,Z_DEFAULT_STRATEGY=0,Z_DEFLATED$1=8;function Deflate(e){if(!(this instanceof Deflate))return new Deflate(e);this.options=utils$3.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream$1,this.strm.avail_out=0;var r=zlib_deflate.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Z_OK$1)throw new Error(msg$1[r]);if(t.header&&zlib_deflate.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(n="string"==typeof t.dictionary?strings$1.string2buf(t.dictionary):"[object ArrayBuffer]"===toString$1.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=zlib_deflate.deflateSetDictionary(this.strm,n))!==Z_OK$1)throw new Error(msg$1[r]);this._dict_set=!0}}function deflate$1(e,t){var r=new Deflate(t);if(r.push(e,!0),r.err)throw r.msg||msg$1[r.err];return r.result}function deflateRaw(e,t){return(t=t||{}).raw=!0,deflate$1(e,t)}function gzip(e,t){return(t=t||{}).gzip=!0,deflate$1(e,t)}Deflate.prototype.push=function(e,t){var r,n,o=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:!0===t?Z_FINISH$1:Z_NO_FLUSH,"string"==typeof e?o.input=strings$1.string2buf(e):"[object ArrayBuffer]"===toString$1.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new utils$3.Buf8(a),o.next_out=0,o.avail_out=a),(r=zlib_deflate.deflate(o,n))!==Z_STREAM_END$1&&r!==Z_OK$1)return this.onEnd(r),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||n!==Z_FINISH$1&&n!==Z_SYNC_FLUSH)||("string"===this.options.to?this.onData(strings$1.buf2binstring(utils$3.shrinkBuf(o.output,o.next_out))):this.onData(utils$3.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&r!==Z_STREAM_END$1);return n===Z_FINISH$1?(r=zlib_deflate.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Z_OK$1):n!==Z_SYNC_FLUSH||(this.onEnd(Z_OK$1),o.avail_out=0,!0)},Deflate.prototype.onData=function(e){this.chunks.push(e)},Deflate.prototype.onEnd=function(e){e===Z_OK$1&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=utils$3.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},deflate$4.Deflate=Deflate,deflate$4.deflate=deflate$1,deflate$4.deflateRaw=deflateRaw,deflate$4.gzip=gzip;var inflate$4={},anObject=anObject$t,regexpFlags=function(){var e=anObject(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},call=functionCall,hasOwn2=hasOwnProperty_1,isPrototypeOf$1=objectIsPrototypeOf,regExpFlags=regexpFlags,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$1||hasOwn2(e,"flags")||!isPrototypeOf$1(RegExpPrototype$1,e)?t:call(regExpFlags,e)},getRegExpFlags=regexpGetFlags,flags$6=getRegExpFlags,isPrototypeOf=objectIsPrototypeOf,flags$5=flags$6,RegExpPrototype=RegExp.prototype,flags_1=function(e){return e===RegExpPrototype||isPrototypeOf(RegExpPrototype,e)?flags$5(e):e.flags},parent$2=flags_1,flags$4=parent$2,parent$1=flags$4,flags$3=parent$1,parent=flags$3,flags$2=parent,flags$1=flags$2,flags=flags$1,inflate$3={},BAD$1=30,TYPE$1=12,inffast=function(e,t){var r,n,o,a,i,s,l,c,u,$,f,p,d,_,y,h,b,g,S,E,m,O,v,T,I;r=e.state,n=e.next_in,T=e.input,o=n+(e.avail_in-5),a=e.next_out,I=e.output,i=a-(t-e.avail_out),s=a+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,$=r.wnext,f=r.window,p=r.hold,d=r.bits,_=r.lencode,y=r.distcode,h=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{d<15&&(p+=T[n++]<<d,d+=8,p+=T[n++]<<d,d+=8),g=_[p&h];t:for(;;){if(p>>>=S=g>>>24,d-=S,0===(S=g>>>16&255))I[a++]=65535&g;else{if(!(16&S)){if(0==(64&S)){g=_[(65535&g)+(p&(1<<S)-1)];continue t}if(32&S){r.mode=TYPE$1;break e}e.msg="invalid literal/length code",r.mode=BAD$1;break e}E=65535&g,(S&=15)&&(d<S&&(p+=T[n++]<<d,d+=8),E+=p&(1<<S)-1,p>>>=S,d-=S),d<15&&(p+=T[n++]<<d,d+=8,p+=T[n++]<<d,d+=8),g=y[p&b];r:for(;;){if(p>>>=S=g>>>24,d-=S,!(16&(S=g>>>16&255))){if(0==(64&S)){g=y[(65535&g)+(p&(1<<S)-1)];continue r}e.msg="invalid distance code",r.mode=BAD$1;break e}if(m=65535&g,d<(S&=15)&&(p+=T[n++]<<d,(d+=8)<S&&(p+=T[n++]<<d,d+=8)),(m+=p&(1<<S)-1)>l){e.msg="invalid distance too far back",r.mode=BAD$1;break e}if(p>>>=S,d-=S,m>(S=a-i)){if((S=m-S)>u&&r.sane){e.msg="invalid distance too far back",r.mode=BAD$1;break e}if(O=0,v=f,0===$){if(O+=c-S,S<E){E-=S;do{I[a++]=f[O++]}while(--S);O=a-m,v=I}}else if($<S){if(O+=c+$-S,(S-=$)<E){E-=S;do{I[a++]=f[O++]}while(--S);if(O=0,$<E){E-=S=$;do{I[a++]=f[O++]}while(--S);O=a-m,v=I}}}else if(O+=$-S,S<E){E-=S;do{I[a++]=f[O++]}while(--S);O=a-m,v=I}for(;E>2;)I[a++]=v[O++],I[a++]=v[O++],I[a++]=v[O++],E-=3;E&&(I[a++]=v[O++],E>1&&(I[a++]=v[O++]))}else{O=a-m;do{I[a++]=I[O++],I[a++]=I[O++],I[a++]=I[O++],E-=3}while(E>2);E&&(I[a++]=I[O++],E>1&&(I[a++]=I[O++]))}break}}break}}while(n<o&&a<s);n-=E=d>>3,p&=(1<<(d-=E<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n<o?o-n+5:5-(n-o),e.avail_out=a<s?s-a+257:257-(a-s),r.hold=p,r.bits=d},utils$2=common,MAXBITS=15,ENOUGH_LENS$1=852,ENOUGH_DISTS$1=592,CODES$1=0,LENS$1=1,DISTS$1=2,lbase=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lext=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],dbase=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],dext=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],inftrees=function(e,t,r,n,o,a,i,s){var l,c,u,$,f,p,d,_,y,h=s.bits,b=0,g=0,S=0,E=0,m=0,O=0,v=0,T=0,I=0,w=0,P=null,R=0,A=new utils$2.Buf16(MAXBITS+1),C=new utils$2.Buf16(MAXBITS+1),D=null,N=0;for(b=0;b<=MAXBITS;b++)A[b]=0;for(g=0;g<n;g++)A[t[r+g]]++;for(m=h,E=MAXBITS;E>=1&&0===A[E];E--);if(m>E&&(m=E),0===E)return o[a++]=20971520,o[a++]=20971520,s.bits=1,0;for(S=1;S<E&&0===A[S];S++);for(m<S&&(m=S),T=1,b=1;b<=MAXBITS;b++)if(T<<=1,(T-=A[b])<0)return-1;if(T>0&&(e===CODES$1||1!==E))return-1;for(C[1]=0,b=1;b<MAXBITS;b++)C[b+1]=C[b]+A[b];for(g=0;g<n;g++)0!==t[r+g]&&(i[C[t[r+g]]++]=g);if(e===CODES$1?(P=D=i,p=19):e===LENS$1?(P=lbase,R-=257,D=lext,N-=257,p=256):(P=dbase,D=dext,p=-1),w=0,g=0,b=S,f=a,O=m,v=0,u=-1,$=(I=1<<m)-1,e===LENS$1&&I>ENOUGH_LENS$1||e===DISTS$1&&I>ENOUGH_DISTS$1)return 1;for(;;){d=b-v,i[g]<p?(_=0,y=i[g]):i[g]>p?(_=D[N+i[g]],y=P[R+i[g]]):(_=96,y=0),l=1<<b-v,S=c=1<<O;do{o[f+(w>>v)+(c-=l)]=d<<24|_<<16|y|0}while(0!==c);for(l=1<<b-1;w&l;)l>>=1;if(0!==l?(w&=l-1,w+=l):w=0,g++,0==--A[b]){if(b===E)break;b=t[r+i[g]]}if(b>m&&(w&$)!==u){for(0===v&&(v=m),f+=S,T=1<<(O=b-v);O+v<E&&!((T-=A[O+v])<=0);)O++,T<<=1;if(I+=1<<O,e===LENS$1&&I>ENOUGH_LENS$1||e===DISTS$1&&I>ENOUGH_DISTS$1)return 1;o[u=w&$]=m<<24|O<<16|f-a|0}}return 0!==w&&(o[f+w]=b-v<<24|64<<16|0),s.bits=m,0},utils$1=common,adler32=adler32_1,crc32=crc32_1,inflate_fast2=inffast,inflate_table2=inftrees,CODES=0,LENS=1,DISTS=2,Z_FINISH=4,Z_BLOCK=5,Z_TREES=6,Z_OK=0,Z_STREAM_END=1,Z_NEED_DICT=2,Z_STREAM_ERROR=-2,Z_DATA_ERROR=-3,Z_MEM_ERROR=-4,Z_BUF_ERROR=-5,Z_DEFLATED=8,HEAD=1,FLAGS=2,TIME=3,OS=4,EXLEN=5,EXTRA=6,NAME=7,COMMENT=8,HCRC=9,DICTID=10,DICT=11,TYPE=12,TYPEDO=13,STORED=14,COPY_=15,COPY=16,TABLE=17,LENLENS=18,CODELENS=19,LEN_=20,LEN=21,LENEXT=22,DIST=23,DISTEXT=24,MATCH=25,LIT=26,CHECK=27,LENGTH=28,DONE=29,BAD=30,MEM=31,SYNC=32,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS;function zswap32(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function InflateState(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new utils$1.Buf16(320),this.work=new utils$1.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function inflateResetKeep(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=HEAD,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new utils$1.Buf32(ENOUGH_LENS),t.distcode=t.distdyn=new utils$1.Buf32(ENOUGH_DISTS),t.sane=1,t.back=-1,Z_OK):Z_STREAM_ERROR}function inflateReset(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,inflateResetKeep(e)):Z_STREAM_ERROR}function inflateReset2(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Z_STREAM_ERROR:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,inflateReset(e))):Z_STREAM_ERROR}function inflateInit2(e,t){var r,n;return e?(n=new InflateState,e.state=n,n.window=null,(r=inflateReset2(e,t))!==Z_OK&&(e.state=null),r):Z_STREAM_ERROR}function inflateInit(e){return inflateInit2(e,DEF_WBITS)}var lenfix,distfix,virgin=!0;function fixedtables(e){if(virgin){var t;for(lenfix=new utils$1.Buf32(512),distfix=new utils$1.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(inflate_table2(LENS,e.lens,0,288,lenfix,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;inflate_table2(DISTS,e.lens,0,32,distfix,0,e.work,{bits:5}),virgin=!1}e.lencode=lenfix,e.lenbits=9,e.distcode=distfix,e.distbits=5}function updatewindow(e,t,r,n){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new utils$1.Buf8(a.wsize)),n>=a.wsize?(utils$1.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>n&&(o=n),utils$1.arraySet(a.window,t,r-n,o,a.wnext),(n-=o)?(utils$1.arraySet(a.window,t,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}function inflate$2(e,t){var r,n,o,a,i,s,l,c,u,$,f,p,d,_,y,h,b,g,S,E,m,O,v,T,I=0,w=new utils$1.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Z_STREAM_ERROR;(r=e.state).mode===TYPE&&(r.mode=TYPEDO),i=e.next_out,o=e.output,l=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,c=r.hold,u=r.bits,$=s,f=l,O=Z_OK;e:for(;;)switch(r.mode){case HEAD:if(0===r.wrap){r.mode=TYPEDO;break}for(;u<16;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(2&r.wrap&&35615===c){r.check=0,w[0]=255&c,w[1]=c>>>8&255,r.check=crc32(r.check,w,2,0),c=0,u=0,r.mode=FLAGS;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",r.mode=BAD;break}if((15&c)!==Z_DEFLATED){e.msg="unknown compression method",r.mode=BAD;break}if(u-=4,m=8+(15&(c>>>=4)),0===r.wbits)r.wbits=m;else if(m>r.wbits){e.msg="invalid window size",r.mode=BAD;break}r.dmax=1<<m,e.adler=r.check=1,r.mode=512&c?DICTID:TYPE,c=0,u=0;break;case FLAGS:for(;u<16;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(r.flags=c,(255&flags(r))!==Z_DEFLATED){e.msg="unknown compression method",r.mode=BAD;break}if(57344&flags(r)){e.msg="unknown header flags set",r.mode=BAD;break}r.head&&(r.head.text=c>>8&1),512&flags(r)&&(w[0]=255&c,w[1]=c>>>8&255,r.check=crc32(r.check,w,2,0)),c=0,u=0,r.mode=TIME;case TIME:for(;u<32;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.head&&(r.head.time=c),512&flags(r)&&(w[0]=255&c,w[1]=c>>>8&255,w[2]=c>>>16&255,w[3]=c>>>24&255,r.check=crc32(r.check,w,4,0)),c=0,u=0,r.mode=OS;case OS:for(;u<16;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&flags(r)&&(w[0]=255&c,w[1]=c>>>8&255,r.check=crc32(r.check,w,2,0)),c=0,u=0,r.mode=EXLEN;case EXLEN:if(1024&flags(r)){for(;u<16;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.length=c,r.head&&(r.head.extra_len=c),512&flags(r)&&(w[0]=255&c,w[1]=c>>>8&255,r.check=crc32(r.check,w,2,0)),c=0,u=0}else r.head&&(r.head.extra=null);r.mode=EXTRA;case EXTRA:if(1024&flags(r)&&((p=r.length)>s&&(p=s),p&&(r.head&&(m=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),utils$1.arraySet(r.head.extra,n,a,p,m)),512&flags(r)&&(r.check=crc32(r.check,n,p,a)),s-=p,a+=p,r.length-=p),r.length))break e;r.length=0,r.mode=NAME;case NAME:if(2048&flags(r)){if(0===s)break e;p=0;do{m=n[a+p++],r.head&&m&&r.length<65536&&(r.head.name+=String.fromCharCode(m))}while(m&&p<s);if(512&flags(r)&&(r.check=crc32(r.check,n,p,a)),s-=p,a+=p,m)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=COMMENT;case COMMENT:if(4096&flags(r)){if(0===s)break e;p=0;do{m=n[a+p++],r.head&&m&&r.length<65536&&(r.head.comment+=String.fromCharCode(m))}while(m&&p<s);if(512&flags(r)&&(r.check=crc32(r.check,n,p,a)),s-=p,a+=p,m)break e}else r.head&&(r.head.comment=null);r.mode=HCRC;case HCRC:if(512&flags(r)){for(;u<16;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(c!==(65535&r.check)){e.msg="header crc mismatch",r.mode=BAD;break}c=0,u=0}r.head&&(r.head.hcrc=flags(r)>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=TYPE;break;case DICTID:for(;u<32;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}e.adler=r.check=zswap32(c),c=0,u=0,r.mode=DICT;case DICT:if(0===r.havedict)return e.next_out=i,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=u,Z_NEED_DICT;e.adler=r.check=1,r.mode=TYPE;case TYPE:if(t===Z_BLOCK||t===Z_TREES)break e;case TYPEDO:if(r.last){c>>>=7&u,u-=7&u,r.mode=CHECK;break}for(;u<3;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}switch(r.last=1&c,u-=1,3&(c>>>=1)){case 0:r.mode=STORED;break;case 1:if(fixedtables(r),r.mode=LEN_,t===Z_TREES){c>>>=2,u-=2;break e}break;case 2:r.mode=TABLE;break;case 3:e.msg="invalid block type",r.mode=BAD}c>>>=2,u-=2;break;case STORED:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",r.mode=BAD;break}if(r.length=65535&c,c=0,u=0,r.mode=COPY_,t===Z_TREES)break e;case COPY_:r.mode=COPY;case COPY:if(p=r.length){if(p>s&&(p=s),p>l&&(p=l),0===p)break e;utils$1.arraySet(o,n,a,p,i),s-=p,a+=p,l-=p,i+=p,r.length-=p;break}r.mode=TYPE;break;case TABLE:for(;u<14;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(r.nlen=257+(31&c),c>>>=5,u-=5,r.ndist=1+(31&c),c>>>=5,u-=5,r.ncode=4+(15&c),c>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=BAD;break}r.have=0,r.mode=LENLENS;case LENLENS:for(;r.have<r.ncode;){for(;u<3;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.lens[P[r.have++]]=7&c,c>>>=3,u-=3}for(;r.have<19;)r.lens[P[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,v={bits:r.lenbits},O=inflate_table2(CODES,r.lens,0,19,r.lencode,0,r.work,v),r.lenbits=v.bits,O){e.msg="invalid code lengths set",r.mode=BAD;break}r.have=0,r.mode=CODELENS;case CODELENS:for(;r.have<r.nlen+r.ndist;){for(;h=(I=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,b=65535&I,!((y=I>>>24)<=u);){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(b<16)c>>>=y,u-=y,r.lens[r.have++]=b;else{if(16===b){for(T=y+2;u<T;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(c>>>=y,u-=y,0===r.have){e.msg="invalid bit length repeat",r.mode=BAD;break}m=r.lens[r.have-1],p=3+(3&c),c>>>=2,u-=2}else if(17===b){for(T=y+3;u<T;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}u-=y,m=0,p=3+(7&(c>>>=y)),c>>>=3,u-=3}else{for(T=y+7;u<T;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}u-=y,m=0,p=11+(127&(c>>>=y)),c>>>=7,u-=7}if(r.have+p>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=BAD;break}for(;p--;)r.lens[r.have++]=m}}if(r.mode===BAD)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=BAD;break}if(r.lenbits=9,v={bits:r.lenbits},O=inflate_table2(LENS,r.lens,0,r.nlen,r.lencode,0,r.work,v),r.lenbits=v.bits,O){e.msg="invalid literal/lengths set",r.mode=BAD;break}if(r.distbits=6,r.distcode=r.distdyn,v={bits:r.distbits},O=inflate_table2(DISTS,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,v),r.distbits=v.bits,O){e.msg="invalid distances set",r.mode=BAD;break}if(r.mode=LEN_,t===Z_TREES)break e;case LEN_:r.mode=LEN;case LEN:if(s>=6&&l>=258){e.next_out=i,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=u,inflate_fast2(e,f),i=e.next_out,o=e.output,l=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,c=r.hold,u=r.bits,r.mode===TYPE&&(r.back=-1);break}for(r.back=0;h=(I=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,b=65535&I,!((y=I>>>24)<=u);){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(h&&0==(240&h)){for(g=y,S=h,E=b;h=(I=r.lencode[E+((c&(1<<g+S)-1)>>g)])>>>16&255,b=65535&I,!(g+(y=I>>>24)<=u);){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}c>>>=g,u-=g,r.back+=g}if(c>>>=y,u-=y,r.back+=y,r.length=b,0===h){r.mode=LIT;break}if(32&h){r.back=-1,r.mode=TYPE;break}if(64&h){e.msg="invalid literal/length code",r.mode=BAD;break}r.extra=15&h,r.mode=LENEXT;case LENEXT:if(r.extra){for(T=r.extra;u<T;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=DIST;case DIST:for(;h=(I=r.distcode[c&(1<<r.distbits)-1])>>>16&255,b=65535&I,!((y=I>>>24)<=u);){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(0==(240&h)){for(g=y,S=h,E=b;h=(I=r.distcode[E+((c&(1<<g+S)-1)>>g)])>>>16&255,b=65535&I,!(g+(y=I>>>24)<=u);){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}c>>>=g,u-=g,r.back+=g}if(c>>>=y,u-=y,r.back+=y,64&h){e.msg="invalid distance code",r.mode=BAD;break}r.offset=b,r.extra=15&h,r.mode=DISTEXT;case DISTEXT:if(r.extra){for(T=r.extra;u<T;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=BAD;break}r.mode=MATCH;case MATCH:if(0===l)break e;if(p=f-l,r.offset>p){if((p=r.offset-p)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=BAD;break}p>r.wnext?(p-=r.wnext,d=r.wsize-p):d=r.wnext-p,p>r.length&&(p=r.length),_=r.window}else _=o,d=i-r.offset,p=r.length;p>l&&(p=l),l-=p,r.length-=p;do{o[i++]=_[d++]}while(--p);0===r.length&&(r.mode=LEN);break;case LIT:if(0===l)break e;o[i++]=r.length,l--,r.mode=LEN;break;case CHECK:if(r.wrap){for(;u<32;){if(0===s)break e;s--,c|=n[a++]<<u,u+=8}if(f-=l,e.total_out+=f,r.total+=f,f&&(e.adler=r.check=flags(r)?crc32(r.check,o,f,i-f):adler32(r.check,o,f,i-f)),f=l,(flags(r)?c:zswap32(c))!==r.check){e.msg="incorrect data check",r.mode=BAD;break}c=0,u=0}r.mode=LENGTH;case LENGTH:if(r.wrap&&flags(r)){for(;u<32;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(c!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=BAD;break}c=0,u=0}r.mode=DONE;case DONE:O=Z_STREAM_END;break e;case BAD:O=Z_DATA_ERROR;break e;case MEM:return Z_MEM_ERROR;default:return Z_STREAM_ERROR}return e.next_out=i,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=u,(r.wsize||f!==e.avail_out&&r.mode<BAD&&(r.mode<CHECK||t!==Z_FINISH))&&updatewindow(e,e.output,e.next_out,f-e.avail_out),$-=e.avail_in,f-=e.avail_out,e.total_in+=$,e.total_out+=f,r.total+=f,r.wrap&&f&&(e.adler=r.check=flags(r)?crc32(r.check,o,f,e.next_out-f):adler32(r.check,o,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(r.mode===TYPE?128:0)+(r.mode===LEN_||r.mode===COPY_?256:0),(0===$&&0===f||t===Z_FINISH)&&O===Z_OK&&(O=Z_BUF_ERROR),O}function inflateEnd(e){if(!e||!e.state)return Z_STREAM_ERROR;var t=e.state;return t.window&&(t.window=null),e.state=null,Z_OK}function inflateGetHeader(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?Z_STREAM_ERROR:(r.head=t,t.done=!1,Z_OK):Z_STREAM_ERROR}function inflateSetDictionary(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&r.mode!==DICT?Z_STREAM_ERROR:r.mode===DICT&&adler32(1,t,n,0)!==r.check?Z_DATA_ERROR:updatewindow(e,t,n,n)?(r.mode=MEM,Z_MEM_ERROR):(r.havedict=1,Z_OK):Z_STREAM_ERROR}inflate$3.inflateReset=inflateReset,inflate$3.inflateReset2=inflateReset2,inflate$3.inflateResetKeep=inflateResetKeep,inflate$3.inflateInit=inflateInit,inflate$3.inflateInit2=inflateInit2,inflate$3.inflate=inflate$2,inflate$3.inflateEnd=inflateEnd,inflate$3.inflateGetHeader=inflateGetHeader,inflate$3.inflateSetDictionary=inflateSetDictionary,inflate$3.inflateInfo="pako inflate (from Nodeca project)";var constants$1={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function GZheader$1(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader$1,zlib_inflate=inflate$3,utils=common,strings=strings$2,c=constants$1,msg=messages,ZStream=zstream,GZheader=gzheader,toString2=Object.prototype.toString;function Inflate(e){if(!(this instanceof Inflate))return new Inflate(e);this.options=utils.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;var r=zlib_inflate.inflateInit2(this.strm,t.windowBits);if(r!==c.Z_OK)throw new Error(msg[r]);if(this.header=new GZheader,zlib_inflate.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=strings.string2buf(t.dictionary):"[object ArrayBuffer]"===toString2.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=zlib_inflate.inflateSetDictionary(this.strm,t.dictionary))!==c.Z_OK))throw new Error(msg[r])}function inflate$1(e,t){var r=new Inflate(t);if(r.push(e,!0),r.err)throw r.msg||msg[r.err];return r.result}function inflateRaw(e,t){return(t=t||{}).raw=!0,inflate$1(e,t)}Inflate.prototype.push=function(e,t){var r,n,o,a,i,s=this.strm,l=this.options.chunkSize,u=this.options.dictionary,$=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?c.Z_FINISH:c.Z_NO_FLUSH,"string"==typeof e?s.input=strings.binstring2buf(e):"[object ArrayBuffer]"===toString2.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new utils.Buf8(l),s.next_out=0,s.avail_out=l),(r=zlib_inflate.inflate(s,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&u&&(r=zlib_inflate.inflateSetDictionary(this.strm,u)),r===c.Z_BUF_ERROR&&!0===$&&(r=c.Z_OK,$=!1),r!==c.Z_STREAM_END&&r!==c.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==c.Z_STREAM_END&&(0!==s.avail_in||n!==c.Z_FINISH&&n!==c.Z_SYNC_FLUSH)||("string"===this.options.to?(o=strings.utf8border(s.output,s.next_out),a=s.next_out-o,i=strings.buf2string(s.output,o),s.next_out=a,s.avail_out=l-a,a&&utils.arraySet(s.output,s.output,o,a,0),this.onData(i)):this.onData(utils.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&($=!0)}while((s.avail_in>0||0===s.avail_out)&&r!==c.Z_STREAM_END);return r===c.Z_STREAM_END&&(n=c.Z_FINISH),n===c.Z_FINISH?(r=zlib_inflate.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c.Z_OK):n!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),s.avail_out=0,!0)},Inflate.prototype.onData=function(e){this.chunks.push(e)},Inflate.prototype.onEnd=function(e){e===c.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=utils.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},inflate$4.Inflate=Inflate,inflate$4.inflate=inflate$1,inflate$4.inflateRaw=inflateRaw,inflate$4.ungzip=inflate$1;var assign2=common.assign,deflate=deflate$4,inflate=inflate$4,constants=constants$1,pako={};assign2(pako,deflate,inflate,constants);var _navigator,pako_1=pako,DB_NAME="__rtc_umd_name__",indexedDB$1=function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},IndexedDBInterface=function(){function e(t){_classCallCheck(this,e),_defineProperty(this,"storeName",void 0),_defineProperty(this,"pendingList",[]),this.storeName=t,!isSSR()&&indexedDB$1()&&this._checkAndCreateStore(t)}var t,r;return _createClass(e,[{key:"_checkAndCreateStore",value:function(t,r){var n=this;e.db&&e.db.close();var o=r?indexedDB$1().open(DB_NAME,r):indexedDB$1().open(DB_NAME);o.onupgradeneeded=function(){o.result.createObjectStore(t)},o.onerror=function(e){console.error("IndexedDBInterface error",o.error)},o.onsuccess=function(){var r=o.result;e.db=r;try{e.db.transaction(n.storeName,"readonly"),n.pendingList.forEach(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,o,a,i;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.txMode,o=t.resolve,a=t.reject,e.prev=1,e.next=4,n._getStore(r);case 4:i=e.sent,o(i),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),a();case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}())}catch(e){n._checkAndCreateStore(t,r.version+1)}}}},{key:"_getStore",value:function(t){var r=this;return new promise((function(n,o){e.db?n(e.db.transaction(r.storeName,t).objectStore(r.storeName)):r.pendingList.push({txMode:t,resolve:n,reject:o})}))}},{key:"put",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getStore("readwrite");case 2:return n=e.sent,e.abrupt("return",new promise((function(e,o){var a=n.put(t,r);a.onsuccess=function(){e()},a.onerror=function(e){o(e)}})));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"get",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getStore("readonly");case 2:return r=e.sent,e.abrupt("return",new promise((function(e,n){var o=r.get(t);o.onsuccess=function(){e(o.result)},o.onerror=function(e){n(e)}})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();_defineProperty(IndexedDBInterface,"db",void 0),_defineProperty(IndexedDBInterface,"state","init");var REPORT_LIMIT=5e5,XML_HTTP_REQUEST_TIMEOUT=1e4,defaultCommonStats={product_line:"rtc",report_version:"5",os:"web",user_agent:isSSR()?"":null===(_navigator=navigator)||void 0===_navigator?void 0:_navigator.userAgent,platform:"web",product:"webrtc",app_state:"active"},REPROT_ERROR_BUFFER_KEY="ReportErrorBuffer",ReportorErrorBuffer=function(){function e(){_classCallCheck(this,e),_defineProperty(this,"_buffer",new IndexedDBInterface(REPROT_ERROR_BUFFER_KEY))}var t,r;return _createClass(e,[{key:"set",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._buffer.put(t,REPROT_ERROR_BUFFER_KEY);case 2:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"get",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],e.prev=1,e.next=4,this._buffer.get(REPROT_ERROR_BUFFER_KEY);case 4:t=e.sent,e.next=9;break;case 7:e.prev=7,e.t0=e.catch(1);case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return t.apply(this,arguments)})}]),e}(),Reportor=function(){function e(){var t=this;_classCallCheck(this,e),_defineProperty(this,"reportCommon",defaultCommonStats),_defineProperty(this,"dataBuffer",[]),_defineProperty(this,"logBuffer",[]),_defineProperty(this,"posting",!1),_defineProperty(this,"sucSendTimer",void 0),_defineProperty(this,"preSucTime",0),_defineProperty(this,"errSendTimer",void 0),_defineProperty(this,"errSendDelay",100),_defineProperty(this,"errSendBuffer",void 0),_defineProperty(this,"_logServerUrl",void 0),_defineProperty(this,"_retryCount",0),isSSR()||(window.addEventListener("beforeunload",(function(){clearTimeout(t.errSendTimer),clearTimeout(t.sucSendTimer),t.send(void 0,!0)})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?t.setCommonStats({app_state:"active"}):"hidden"===document.visibilityState&&t.setCommonStats({app_state:"background"})})))}var t;return _createClass(e,[{key:"setUrl",value:function(e){this._logServerUrl=e}},{key:"setCommonStats",value:function(e){this.reportCommon=assign$1(this.reportCommon,e)}},{key:"enableErrorBuffer",value:function(){this.errSendBuffer=new ReportorErrorBuffer,this.loadErrorBuffer()}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?this.send(e):(this.dataBuffer.push(e),!this.posting&&!this.errSendTimer&&Date.now()-this.preSucTime>2e3&&(clearTimeout(this.sucSendTimer),this.send()))}},{key:"unshift",value:function(e){this.dataBuffer=concat$1(e).call(e,this.dataBuffer)}},{key:"send",value:function(e,t){var r,n,o=this;if((e||this.dataBuffer.length)&&this._logServerUrl){var a={data:e||splice2(r=this.dataBuffer).call(r,0,findSizeIndex(this.dataBuffer,REPORT_LIMIT)),header:_objectSpread2(_objectSpread2({},this.reportCommon),{},{http_retry_count:this._retryCount}),from:"web",os:"web",version:"1"},i=new XMLHttpRequest;if(i.timeout=XML_HTTP_REQUEST_TIMEOUT,i.onreadystatechange=function(){if(4===i.readyState){var r,n,s,l;if(e||(o.posting=!1),200===i.status||304===i.status)try{r=JSON.parse(i.responseText)}catch(e){n=e}if(r&&0===r.StatusCode){if(!e&&!t)null===(s=o.errSendBuffer)||void 0===s||s.set([]),o.sucSend()}else if(setTimeout((function(){var e,t;reportGlobalError(concat$1(e="reportor error, res:".concat(null===(t=r)||void 0===t?void 0:t.toString()," err:")).call(e,n),i.status,n)}),0),e)o.send(e);else o.unshift(a.data),null===(l=o.errSendBuffer)||void 0===l||l.set(_toConsumableArray(o.dataBuffer)),t?o.send():o.errSend()}},i.open("POST",this._logServerUrl,!0),e||(this.posting=!0),!isSSR()&&includes4(n=location.search).call(n,"_rtc_debug_"))i.send(stringify2(a));else{var s=pako_1.gzip(stringify2(a));i.setRequestHeader("Content-Encoding","gzip"),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),i.send(s)}}}},{key:"sucSend",value:function(){this.errSendDelay=100,this._retryCount=0,this.preSucTime=Date.now(),this.sucSendTimer=window.setTimeout(this.send.bind(this),2e3)}},{key:"errSend",value:function(){var e=this;this.errSendTimer=window.setTimeout((function(){e.send(),delete e.errSendTimer}),this.errSendDelay),this.errSendDelay*=2,this._retryCount++}},{key:"loadErrorBuffer",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=this.errSendBuffer)||void 0===r?void 0:r.get();case 2:if(e.t1=t=e.sent,e.t0=null!==e.t1,!e.t0){e.next=6;break}e.t0=void 0!==t;case 6:if(!e.t0){e.next=10;break}e.t2=t,e.next=11;break;case 10:e.t2=[];case 11:e.t2.forEach((function(e){n.push(e)}));case 13:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}();function findSizeIndex(e,t){for(var r=0,n=0;n<e.length;n++)if((r+=stringify2(e[n]).length)>t)return n-1;return e.length}var commonReportor=new Reportor,Monitor=function(){function e(t){_classCallCheck(this,e),_defineProperty(this,"report_id",0),_defineProperty(this,"modify_ids",{}),this.id=t}return _createClass(e,[{key:"report",value:function(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=_objectSpread2(_objectSpread2(_objectSpread2({event_key:e,report_id:this.report_id++,rtc_timestamp:Date.now()},this.modify_ids),t),{},{common_extra_info:stringify2(o)});(commonReportor.push(a),isSSR())||(null===(r=(n=window).__onRTCReport)||void 0===r||r.call(n,this.id,a))}},{key:"set",value:function(e){this.modify_ids=assign$1(this.modify_ids,e)}},{key:"destroy",value:function(){}}]),e}(),logger$1=new Logger("MessageReportor",1),RESET_DURATION=36e5,MessageReportor=function(){function e(t){_classCallCheck(this,e),_defineProperty(this,"_preTime",Date.now()),_defineProperty(this,"_one2oneNum",0),_defineProperty(this,"_one2manyNum",0),_defineProperty(this,"_one2oneMsgCache",new map$7),_defineProperty(this,"_one2manyMsgCache",new map$7),_defineProperty(this,"roomId",""),_defineProperty(this,"userId",""),_defineProperty(this,"rtsSessionId",""),this.id=t}return _createClass(e,[{key:"needReport",value:function(t){return!!e.config&&(Date.now()-this._preTime>=RESET_DURATION&&(this._preTime=Date.now(),this._one2oneNum=0,this._one2manyNum=0),"one2one"===t&&this._one2oneNum<e.config.max_one2one_fpt_per_hour&&Math.random()<=e.config.one2one_fpt_ratio/100||"one2many"===t&&this._one2manyNum<e.config.max_one2many_fpt_per_hour&&Math.random()<=e.config.one2many_fpt_ratio/100)}},{key:"cacheP2PMsg",value:function(t){var r;this._one2oneMsgCache.set(t.msg_id,_objectSpread2({config_version:(null===(r=e.config)||void 0===r?void 0:r.version)||""},t))}},{key:"updateP2PMsg",value:function(e,t){var r=this._one2oneMsgCache.get(e);r&&this._one2oneMsgCache.set(e,_objectSpread2(_objectSpread2({},r),t))}},{key:"cacheCustomMsg",value:function(t){var r;this._one2manyMsgCache.set(t.msg_id,_objectSpread2({config_version:(null===(r=e.config)||void 0===r?void 0:r.version)||""},t))}},{key:"updateOne2ManyMsg",value:function(e,t){var r=this._one2manyMsgCache.get(e);r&&this._one2manyMsgCache.set(e,_objectSpread2(_objectSpread2({},r),t))}},{key:"reportP2PMsg",value:function(e){var t,r=this._one2oneMsgCache.get(e);r&&(logger$1.info("reportP2PMsg",r.type,stringify2(r)),null===(t=getMonitor(this.id))||void 0===t||t.report("rts_message",r))}},{key:"reportOne2ManyMsg",value:function(e){var t,r=this._one2manyMsgCache.get(e);r&&(logger$1.info("reportOne2ManyMsg",r.type,stringify2(r)),null===(t=getMonitor(this.id))||void 0===t||t.report("rts_message",r))}},{key:"reportMsgRecv",value:function(t){var r,n;t.config_version=(null===(r=e.config)||void 0===r?void 0:r.version)||"",logger$1.info("reportMsgRecv",t.type,stringify2(t)),null===(n=getMonitor(this.id))||void 0===n||n.report("rts_message",t)}},{key:"destroy",value:function(){this._one2manyNum=0,this._one2oneNum=0,this._one2manyMsgCache.clear(),this._one2oneMsgCache.clear(),this._preTime=Date.now(),this.roomId="",this.userId="",this.rtsSessionId=""}}]),e}();_defineProperty(MessageReportor,"config",void 0);var globalMonitor=new Monitor("global"),reportGlobalError=function(e,t,r){globalMonitor.report("rtc_error",{message:e,error_code:t},r)},monitorMap=new map$7,getMonitor=function(e){return monitorMap.get(e)},EffectBeautyMode=function(e){return e[e.EFFECT_WHITE_MODE=0]="EFFECT_WHITE_MODE",e[e.EFFECT_SMOOTH_MODE=1]="EFFECT_SMOOTH_MODE",e[e.EFFECT_SHARPEN_MODE=2]="EFFECT_SHARPEN_MODE",e}(EffectBeautyMode||{}),BackgroundMode=function(e){return e.BACKGROUND_BLUR="blur",e.BACKGROUND_IMAGE="image",e}(BackgroundMode||{}),BackgroundAIModelType=function(e){return e[e.PERFORMANCE=0]="PERFORMANCE",e[e.QUALITY=1]="QUALITY",e}(BackgroundAIModelType||{}),BackgroundAIBackend=function(e){return e[e.CPU=-1]="CPU",e[e.GPU=1]="GPU",e}(BackgroundAIBackend||{}),logger=new Logger("RTCBeautyExtension",1),DEFAULT_SDK_SOURCE_URL="https://webar.volccdn.com/obj/effect-webar-res-bucket/ies/web/webar_sdk/sdk/v2.662/202303229b38/resource/resource",DEFAULT_SDK_URL="".concat(DEFAULT_SDK_SOURCE_URL,"/externals/webar.main.sdk.iife.9b380e37.js"),TIME_OUT_MESSAGE="Load WebAR SDK timeout",INIT_FAILED_CODE=100,DEFAULT_FRAMERATE=15;function getBrowser(){var e="none";return null!==window.navigator.userAgent.match("Firefox")?e="mozilla":null!==window.navigator.userAgent.match("Chrome")?(e="chrome-stable",null!==window.navigator.userAgent.match("Electron")&&(e="electron")):(null!==window.navigator.userAgent.match("Safari")||null!==window.navigator.userAgent.match("AppleWebKit"))&&(e="safari"),e}var RTCBeautyExtension=function(e){_inherits(f,PreProcessingExtension);var t,r,n,o,a,i,s,l,c,u,$=_createSuper(f);function f(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,f),_defineProperty(_assertThisInitialized(t=$.call(this)),"name","RTCBeautyExtension"),_defineProperty(_assertThisInitialized(t),"_enable",void 0),_defineProperty(_assertThisInitialized(t),"_beautyExt",void 0),_defineProperty(_assertThisInitialized(t),"_backgroundExt",void 0),_defineProperty(_assertThisInitialized(t),"_enableBeauty",!1),_defineProperty(_assertThisInitialized(t),"_enableBackground",!1),_defineProperty(_assertThisInitialized(t),"_fps",DEFAULT_FRAMERATE),_defineProperty(_assertThisInitialized(t),"_backgroundBackend",BackgroundAIBackend.CPU),_defineProperty(_assertThisInitialized(t),"_backgroundAIModelType",BackgroundAIModelType.QUALITY),_defineProperty(_assertThisInitialized(t),"_backgroundMode",BackgroundMode.BACKGROUND_BLUR),_defineProperty(_assertThisInitialized(t),"_beautyDefaultValue",{sharpenIntensity:.5,whitenIntensity:.5,smoothIntensity:.5}),_defineProperty(_assertThisInitialized(t),"_preTrack",null),f._sdkUrl=r.sdkUrl||DEFAULT_SDK_URL,f._sdkSourceUrl=r.sdkSourceUrl||DEFAULT_SDK_SOURCE_URL,f._sdkAuthServer=r.sdkAuthServer||"",f._sdkHash=r.sdkHash||"",f._authFileUrl=r.authFileUrl||"",r.aiBackend===BackgroundAIBackend.GPU&&"undefined"!=typeof WebGL2RenderingContext)if("undefined"!=typeof OffscreenCanvas){var n=new OffscreenCanvas(16,16);n.getContext("webgl2")&&(t._backgroundBackend=BackgroundAIBackend.GPU)}else t._backgroundBackend=BackgroundAIBackend.GPU;return t._backgroundAIModelType=null!==(e=r.aiModelType)&&void 0!==e?e:BackgroundAIModelType.QUALITY,t.on("stop",(function(){var e;t._preTrack&&(null===(e=f._sdk)||void 0===e||e.stopFrame(),t._preTrack=null)})),t}return _createClass(f,[{key:"initWebArSDK",value:(u=_asyncToGenerator(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==window.WebARMainSDK){e.next=3;break}return e.next=3,f.loadWebARSDK();case 3:f._sdk||(window.WebARMainSDK.WEBAR_CONSTANTS.REROURCE_PATH_CONFIG.SDK_RESOURCE_URL=f._sdkSourceUrl,f._sdk=new window.WebARMainSDK.WebSDK);case 4:case"end":return e.stop()}}),e)}))),function(){return u.apply(this,arguments)})},{key:"init",value:(c=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o,a,i,s,l=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._rtcSdkApiCall("".concat(this.name,".init"),0,{hasAuthFile:!!f._authFileUrl,aiBackend:this._backgroundBackend,aiModelType:this._backgroundAIModelType}),e.next=3,this.initWebArSDK();case 3:return a=null==t?void 0:t.videoCaptureConfig,this._fps=a?"number"==typeof(null==a?void 0:a.frameRate)?(null==a?void 0:a.frameRate)||DEFAULT_FRAMERATE:(null==a||null===(r=a.frameRate)||void 0===r?void 0:r.ideal)||DEFAULT_FRAMERATE:DEFAULT_FRAMERATE,logger.print("init fps",this._fps),f._sdk.setOptions({maxFps:this._fps,autoSetCanvasToVideoSize:!0,authFileUrl:f._authFileUrl||""}),e.next=9,f._sdk.setDocumentTemplate(window.WebARMainSDK.API.DocumentTemplateNames.RTC);case 9:return e.next=11,f._sdk.initialize(f._authFileUrl?{aiBackend:this._backgroundBackend,aiModelType:this._backgroundAIModelType}:{});case 11:logger.info("init",[this._backgroundBackend,this._backgroundAIModelType]),this._beautyExt||(this._beautyExt=f._sdk.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.BEAUTY_FILETER)),this._backgroundExt||(this._backgroundExt=f._sdk.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.VIRTUAL_BACKGROUND)),keys$7(this._beautyDefaultValue).forEach((function(e){l._beautyExt[e]=l._beautyDefaultValue[e]})),(i=null===(n=f._sdk.video)||void 0===n||null===(o=n._video)||void 0===o?void 0:o._video)&&(i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.opacity="0",i.style.pointerEvents="none"),"safari"===getBrowser()&&((s=f._sdk.canvas).style.width="1px",s.style.height="1px",s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.opacity="0",s.style.pointerEvents="none",s.style.zIndex="-9999",document.body.appendChild(f._sdk.canvas));case 18:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"checkCompatibility",value:(l=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="",e.prev=1,e.next=4,this.initWebArSDK();case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),t=(null===e.t0||void 0===e.t0?void 0:e.t0.toString())||(null===e.t0||void 0===e.t0?void 0:e.t0.stack)||"";case 9:if(!f._sdk){e.next=17;break}return e.next=12,f._sdk.checkCompatibility();case 12:return(n=e.sent).isCompatible||0!==filter2(r=n.reasons).call(r,(function(e){return 4!==e})).length||(n.isCompatible=!0,n.reasons=[]),e.abrupt("return",n);case 17:return e.abrupt("return",{isCompatible:!1,reasons:[INIT_FAILED_CODE],message:t});case 18:case"end":return e.stop()}}),e,this,[[1,6]])}))),function(){return l.apply(this,arguments)})},{key:"effect",value:(s=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n,o,a,i,s,l;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r||t.getTrack(),this._enableBeauty||this._enableBackground){e.next=4;break}return this._preTrack&&(null===(o=f._sdk)||void 0===o||o.stopFrame()),e.abrupt("return",n);case 4:if("video"!==t.mediaType||0!==t.streamIndex){e.next=15;break}if(this._preTrack===n){e.next=11;break}return e.next=8,f._sdk.setStreamInput(new MediaStream([n]));case 8:return this._preTrack=n,e.next=11,f._sdk.video.start();case 11:return null===(a=f._sdk)||void 0===a||a.startFrame(),null===(i=this._beautyExt)||void 0===i||i.setEnable(this._enableBeauty),null===(s=this._backgroundExt)||void 0===s||s.setEnable(this._enableBackground),e.abrupt("return",null===(l=f._sdk.canvas)||void 0===l?void 0:l.captureStream(this._fps).getVideoTracks()[0]);case 15:return e.abrupt("return",n);case 16:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"enable",value:function(){return this._rtcSdkApiCall("".concat(this.name,".enable"),0,""),this.enableBeauty()}},{key:"enableBeauty",value:(i=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,o=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBeauty"),0,""),t=!this._enableBeauty&&!this._enableBackground,this._enableBeauty=!0,this._beautyExt&&keys$7(this._beautyDefaultValue).forEach((function(e){o._beautyExt[e]=o._beautyDefaultValue[e]})),this._preTrack&&!t){e.next=8;break}return e.abrupt("return",new promise((function(e,t){o.emit("reset-video-effect",e,t)})));case 8:null===(r=f._sdk)||void 0===r||r.startFrame(),null===(n=this._beautyExt)||void 0===n||n.setEnable(!0);case 10:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"disable",value:function(){return this._rtcSdkApiCall("".concat(this.name,".disable"),0,""),this.disableBeauty()}},{key:"disableBeauty",value:(a=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".disableBeauty"),0,""),t=this._enableBeauty&&!this._enableBackground,this._enableBeauty=!1,this._preTrack&&!t){e.next=7;break}return e.abrupt("return",new promise((function(e,t){n.emit("reset-video-effect",e,t)})));case 7:null===(r=this._beautyExt)||void 0===r||r.setEnable(!1);case 8:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"enableVirtualBackground",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,o,a=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBackground"),0,""),r=!this._enableBeauty&&!this._enableBackground,this._enableBackground=!0,null===(t=this._backgroundExt)||void 0===t||t.setBackgroundMode(this._backgroundMode),this._preTrack&&!r){e.next=8;break}return e.abrupt("return",new promise((function(e,t){a.emit("reset-video-effect",e,t)})));case 8:null===(n=f._sdk)||void 0===n||n.startFrame(),null===(o=this._backgroundExt)||void 0===o||o.setEnable(!0);case 10:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"disableVirtualBackground",value:(n=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".disableBackground"),0,""),t=!this._enableBeauty&&this._enableBackground,this._enableBackground=!1,this._preTrack&&!t){e.next=7;break}return e.abrupt("return",new promise((function(e,t){n.emit("reset-video-effect",e,t)})));case 7:null===(r=this._backgroundExt)||void 0===r||r.setEnable(!1);case 8:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setBeautyIntensity",value:function(e,t){switch(this._rtcSdkApiCall("".concat(this.name,".setBeautyIntensity"),0,[e,t]),t=Math.min(1,Math.max(0,t)),e){case EffectBeautyMode.EFFECT_SHARPEN_MODE:this._beautyDefaultValue.sharpenIntensity=t,this._beautyExt&&(this._beautyExt.sharpenIntensity=t);break;case EffectBeautyMode.EFFECT_WHITE_MODE:this._beautyDefaultValue.whitenIntensity=t,this._beautyExt&&(this._beautyExt.whitenIntensity=t);break;case EffectBeautyMode.EFFECT_SMOOTH_MODE:this._beautyDefaultValue.smoothIntensity=t,this._beautyExt&&(this._beautyExt.smoothIntensity=t)}}},{key:"setBackgroundMode",value:function(e){var t;this._rtcSdkApiCall("".concat(this.name,".setBackgroundMode"),0,[e]),this._backgroundMode=e,null===(t=this._backgroundExt)||void 0===t||t.setBackgroundMode(e)}},{key:"getBackgroundImage",value:function(){var e;return this._rtcSdkApiCall("".concat(this.name,".getBackgroundImage"),0,""),null===(e=this._backgroundExt)||void 0===e?void 0:e.backgroundImage}},{key:"loadBackgroundImage",value:function(e){var t;return this._rtcSdkApiCall("".concat(this.name,".loadBackgroundImage"),0,[e]),null===(t=this._backgroundExt)||void 0===t?void 0:t.loadBackgroundImage(e)}},{key:"setAIModelType",value:function(e){var t;this._rtcSdkApiCall("".concat(this.name,".setAIModelType"),0,[e]),this._backgroundAIModelType=e,null===(t=this._backgroundExt)||void 0===t||t.setAIModelType(e)}},{key:"applyConstraints",value:function(e){var t,r=e.width,n=e.height;"number"==typeof r&&"number"==typeof n&&(null===(t=f._sdk)||void 0===t||t.setCanvasSize(r,n))}},{key:"isSupported",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkCompatibility();case 2:return(r=e.sent).isCompatible||0!==filter2(t=r.reasons).call(t,(function(e){return 4!==e})).length||(r.isCompatible=!0),e.abrupt("return",r.isCompatible);case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"isOpen",value:function(){return this._enable}},{key:"destroy",value:function(){var e,t,r;null===(e=f._sdk)||void 0===e||e.stopFrame(),null===(t=f._sdk)||void 0===t||null===(r=t.video)||void 0===r||r.stop()}},{key:"_rtcSdkApiCall",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null===(t=this.monitor)||void 0===t||t.report("rtc_sdk_api_call",{sdk_api_name:e,error_code:r,message:n})}}],[{key:"loadWebARSDK",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,r=!1,f._loadingProcess||(f._loadingProcess=new promise((function(e,o){try{(t=document.createElement("script")).type="text/javascript",t.async=!0,t.src=f._sdkUrl,t.id="extension-webar-sdk",t.addEventListener("load",(function(){r=!0,clearTimeout(n),e()})),t.addEventListener("error",(function(e){document.body.removeChild(t),f._loadingProcess=void 0,clearTimeout(n),o(e)})),document.body.appendChild(t)}catch(e){document.body.removeChild(t),f._loadingProcess=void 0,clearTimeout(n),o(e)}n=setTimeout((function(){r||(document.body.removeChild(t),f._loadingProcess=void 0),o(new Error(TIME_OUT_MESSAGE))}),1e4)}))),e.abrupt("return",f._loadingProcess);case 6:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),f}();_defineProperty(RTCBeautyExtension,"_loadingProcess",void 0),_defineProperty(RTCBeautyExtension,"_sdk",void 0),_defineProperty(RTCBeautyExtension,"_sdkUrl",""),_defineProperty(RTCBeautyExtension,"_sdkSourceUrl",""),_defineProperty(RTCBeautyExtension,"_sdkHash",""),_defineProperty(RTCBeautyExtension,"_sdkAuthServer",""),_defineProperty(RTCBeautyExtension,"_authFileUrl","");export{BackgroundAIBackend,BackgroundAIModelType,BackgroundMode,EffectBeautyMode,RTCBeautyExtension as default};
1
+ var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var check=function(e){return e&&e.Math==Math&&e},global$m=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),fails$t=function(e){try{return!!e()}catch(e){return!0}},fails$s=fails$t,functionBindNative=!fails$s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),NATIVE_BIND$4=functionBindNative,FunctionPrototype$3=Function.prototype,apply$5=FunctionPrototype$3.apply,call$v=FunctionPrototype$3.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$4?call$v.bind(apply$5):function(){return call$v.apply(apply$5,arguments)}),NATIVE_BIND$3=functionBindNative,FunctionPrototype$2=Function.prototype,call$u=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype$2.bind.bind(call$u,call$u),functionUncurryThisRaw=NATIVE_BIND$3?uncurryThisWithBind:function(e){return function(){return call$u.apply(e,arguments)}},uncurryThisRaw$1=functionUncurryThisRaw,toString$c=uncurryThisRaw$1({}.toString),stringSlice$2=uncurryThisRaw$1("".slice),classofRaw$2=function(e){return stringSlice$2(toString$c(e),8,-1)},classofRaw$1=classofRaw$2,uncurryThisRaw=functionUncurryThisRaw,functionUncurryThis=function(e){if("Function"===classofRaw$1(e))return uncurryThisRaw(e)},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$l=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},objectGetOwnPropertyDescriptor={},fails$r=fails$t,descriptors=!fails$r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),NATIVE_BIND$2=functionBindNative,call$t=Function.prototype.call,functionCall=NATIVE_BIND$2?call$t.bind(call$t):function(){return call$t.apply(call$t,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$a=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$a&&!$propertyIsEnumerable$1.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){var t=getOwnPropertyDescriptor$a(this,e);return!!t&&t.enumerable}:$propertyIsEnumerable$1;var match,version,createPropertyDescriptor$7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uncurryThis$o=functionUncurryThis,fails$q=fails$t,classof$e=classofRaw$2,$Object$4=Object,split=uncurryThis$o("".split),indexedObject=fails$q((function(){return!$Object$4("z").propertyIsEnumerable(0)}))?function(e){return"String"==classof$e(e)?split(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$6=function(e){return null==e},isNullOrUndefined$5=isNullOrUndefined$6,$TypeError$j=TypeError,requireObjectCoercible$6=function(e){if(isNullOrUndefined$5(e))throw $TypeError$j("Can't call method on "+e);return e},IndexedObject$2=indexedObject,requireObjectCoercible$5=requireObjectCoercible$6,toIndexedObject$a=function(e){return IndexedObject$2(requireObjectCoercible$5(e))},isCallable$k=isCallable$l,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$j=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$k(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$k(e)},path$l={},path$k=path$l,global$l=global$m,isCallable$j=isCallable$l,aFunction=function(e){return isCallable$j(e)?e:void 0},getBuiltIn$h=function(e,t){return arguments.length<2?aFunction(path$k[e])||aFunction(global$l[e]):path$k[e]&&path$k[e][t]||global$l[e]&&global$l[e][t]},uncurryThis$n=functionUncurryThis,objectIsPrototypeOf=uncurryThis$n({}.isPrototypeOf),getBuiltIn$g=getBuiltIn$h,engineUserAgent=getBuiltIn$g("navigator","userAgent")||"",global$k=global$m,userAgent$4=engineUserAgent,process$3=global$k.process,Deno$1=global$k.Deno,versions=process$3&&process$3.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8;v8&&(version=(match=v8.split("."))[0]>0&&match[0]<4?1:+(match[0]+match[1])),!version&&userAgent$4&&(!(match=userAgent$4.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent$4.match(/Chrome\/(\d+)/))&&(version=+match[1]);var engineV8Version=version,V8_VERSION$3=engineV8Version,fails$p=fails$t,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$p((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$3&&V8_VERSION$3<41})),NATIVE_SYMBOL$5=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$f=getBuiltIn$h,isCallable$i=isCallable$l,isPrototypeOf$k=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$4=USE_SYMBOL_AS_UID$1?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$f("Symbol");return isCallable$i(t)&&isPrototypeOf$k(t.prototype,$Object$3(e))},$String$3=String,tryToString$6=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$h=isCallable$l,tryToString$5=tryToString$6,$TypeError$i=TypeError,aCallable$m=function(e){if(isCallable$h(e))return e;throw $TypeError$i(tryToString$5(e)+" is not a function")},aCallable$l=aCallable$m,isNullOrUndefined$4=isNullOrUndefined$6,getMethod$3=function(e,t){var r=e[t];return isNullOrUndefined$4(r)?void 0:aCallable$l(r)},call$s=functionCall,isCallable$g=isCallable$l,isObject$i=isObject$j,$TypeError$h=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$g(r=e.toString)&&!isObject$i(n=call$s(r,e)))return n;if(isCallable$g(r=e.valueOf)&&!isObject$i(n=call$s(r,e)))return n;if("string"!==t&&isCallable$g(r=e.toString)&&!isObject$i(n=call$s(r,e)))return n;throw $TypeError$h("Can't convert object to primitive value")},shared$6={exports:{}},isPure=!0,global$j=global$m,defineProperty$e=Object.defineProperty,defineGlobalProperty$1=function(e,t){try{defineProperty$e(global$j,e,{value:t,configurable:!0,writable:!0})}catch(r){global$j[e]=t}return t},global$i=global$m,defineGlobalProperty=defineGlobalProperty$1,SHARED="__core-js_shared__",store$3=global$i[SHARED]||defineGlobalProperty(SHARED,{}),sharedStore=store$3,store$2=sharedStore;(shared$6.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.0",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedExports=shared$6.exports,requireObjectCoercible$4=requireObjectCoercible$6,$Object$2=Object,toObject$b=function(e){return $Object$2(requireObjectCoercible$4(e))},uncurryThis$m=functionUncurryThis,toObject$a=toObject$b,hasOwnProperty=uncurryThis$m({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$a(e),t)},uncurryThis$l=functionUncurryThis,id$1=0,postfix=Math.random(),toString$b=uncurryThis$l(1..toString),uid$4=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$b(++id$1+postfix,36)},global$h=global$m,shared$5=sharedExports,hasOwn$j=hasOwnProperty_1,uid$3=uid$4,NATIVE_SYMBOL$4=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore$1=shared$5("wks"),Symbol$1=global$h.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$3,wellKnownSymbol$n=function(e){if(!hasOwn$j(WellKnownSymbolsStore$1,e)||!NATIVE_SYMBOL$4&&"string"!=typeof WellKnownSymbolsStore$1[e]){var t="Symbol."+e;NATIVE_SYMBOL$4&&hasOwn$j(Symbol$1,e)?WellKnownSymbolsStore$1[e]=Symbol$1[e]:WellKnownSymbolsStore$1[e]=USE_SYMBOL_AS_UID&&symbolFor?symbolFor(t):createWellKnownSymbol(t)}return WellKnownSymbolsStore$1[e]},call$r=functionCall,isObject$h=isObject$j,isSymbol$3=isSymbol$4,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$m=wellKnownSymbol$n,$TypeError$g=TypeError,TO_PRIMITIVE=wellKnownSymbol$m("toPrimitive"),toPrimitive$7=function(e,t){if(!isObject$h(e)||isSymbol$3(e))return e;var r,n=getMethod$2(e,TO_PRIMITIVE);if(n){if(void 0===t&&(t="default"),r=call$r(n,e,t),!isObject$h(r)||isSymbol$3(r))return r;throw $TypeError$g("Can't convert object to primitive value")}return void 0===t&&(t="number"),ordinaryToPrimitive(e,t)},toPrimitive$6=toPrimitive$7,isSymbol$2=isSymbol$4,toPropertyKey$4=function(e){var t=toPrimitive$6(e,"string");return isSymbol$2(t)?t:t+""},global$g=global$m,isObject$g=isObject$j,document$3=global$g.document,EXISTS$1=isObject$g(document$3)&&isObject$g(document$3.createElement),documentCreateElement$1=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$h=descriptors,fails$o=fails$t,createElement$1=documentCreateElement$1,ie8DomDefine=!DESCRIPTORS$h&&!fails$o((function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a})),DESCRIPTORS$g=descriptors,call$q=functionCall,propertyIsEnumerableModule$2=objectPropertyIsEnumerable,createPropertyDescriptor$6=createPropertyDescriptor$7,toIndexedObject$9=toIndexedObject$a,toPropertyKey$3=toPropertyKey$4,hasOwn$i=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$g?$getOwnPropertyDescriptor$2:function(e,t){if(e=toIndexedObject$9(e),t=toPropertyKey$3(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$2(e,t)}catch(e){}if(hasOwn$i(e,t))return createPropertyDescriptor$6(!call$q(propertyIsEnumerableModule$2.f,e,t),e[t])};var fails$n=fails$t,isCallable$f=isCallable$l,replacement=/#|\.prototype\./,isForced$2=function(e,t){var r=data[normalize(e)];return r==POLYFILL||r!=NATIVE&&(isCallable$f(t)?fails$n(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,uncurryThis$k=functionUncurryThis,aCallable$k=aCallable$m,NATIVE_BIND$1=functionBindNative,bind$q=functionUncurryThis(functionUncurryThis.bind),functionBindContext=function(e,t){return aCallable$k(e),void 0===t?e:NATIVE_BIND$1?bind$q(e,t):function(){return e.apply(t,arguments)}},objectDefineProperty={},DESCRIPTORS$f=descriptors,fails$m=fails$t,v8PrototypeDefineBug=DESCRIPTORS$f&&fails$m((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),isObject$f=isObject$j,$String$2=String,$TypeError$f=TypeError,anObject$t=function(e){if(isObject$f(e))return e;throw $TypeError$f($String$2(e)+" is not an object")},DESCRIPTORS$e=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$s=anObject$t,toPropertyKey$2=toPropertyKey$4,$TypeError$e=TypeError,$defineProperty$1=Object.defineProperty,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$e?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){if(anObject$s(e),t=toPropertyKey$2(t),anObject$s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]){var n=$getOwnPropertyDescriptor$1(e,t);n&&n[WRITABLE]&&(e[t]=r.value,r={configurable:CONFIGURABLE$1 in r?r[CONFIGURABLE$1]:n[CONFIGURABLE$1],enumerable:ENUMERABLE in r?r[ENUMERABLE]:n[ENUMERABLE],writable:!1})}return $defineProperty$1(e,t,r)}:$defineProperty$1:function(e,t,r){if(anObject$s(e),t=toPropertyKey$2(t),anObject$s(r),IE8_DOM_DEFINE)try{return $defineProperty$1(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$e("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var DESCRIPTORS$d=descriptors,definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$5=createPropertyDescriptor$7,createNonEnumerableProperty$8=DESCRIPTORS$d?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$5(1,r))}:function(e,t,r){return e[t]=r,e},global$f=global$m,apply$4=functionApply,uncurryThis$j=functionUncurryThis,isCallable$e=isCallable$l,getOwnPropertyDescriptor$9=objectGetOwnPropertyDescriptor.f,isForced$1=isForced_1,path$j=path$l,bind$p=functionBindContext,createNonEnumerableProperty$7=createNonEnumerableProperty$8,hasOwn$h=hasOwnProperty_1,wrapConstructor=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return apply$4(e,this,arguments)};return t.prototype=e.prototype,t},_export=function(e,t){var r,n,o,a,i,s,l,c,u=e.target,$=e.global,f=e.stat,p=e.proto,d=$?global$f:f?global$f[u]:(global$f[u]||{}).prototype,_=$?path$j:path$j[u]||createNonEnumerableProperty$7(path$j,u,{})[u],y=_.prototype;for(o in t)r=!isForced$1($?o:u+(f?".":"#")+o,e.forced)&&d&&hasOwn$h(d,o),i=_[o],r&&(s=e.dontCallGetSet?(c=getOwnPropertyDescriptor$9(d,o))&&c.value:d[o]),a=r&&s?s:t[o],r&&typeof i==typeof a||(l=e.bind&&r?bind$p(a,global$f):e.wrap&&r?wrapConstructor(a):p&&isCallable$e(a)?uncurryThis$j(a):a,(e.sham||a&&a.sham||i&&i.sham)&&createNonEnumerableProperty$7(l,"sham",!0),createNonEnumerableProperty$7(_,o,l),p&&(hasOwn$h(path$j,n=u+"Prototype")||createNonEnumerableProperty$7(path$j,n,{}),createNonEnumerableProperty$7(path$j[n],o,a),e.real&&y&&!y[o]&&createNonEnumerableProperty$7(y,o,a)))},classof$d=classofRaw$2,isArray$e=Array.isArray||function(e){return"Array"==classof$d(e)},ceil$1=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){var t=+e;return(t>0?floor:ceil$1)(t)},trunc2=mathTrunc,toIntegerOrInfinity$6=function(e){var t=+e;return t!=t||0===t?0:trunc2(t)},toIntegerOrInfinity$5=toIntegerOrInfinity$6,min$2=Math.min,toLength$2=function(e){return e>0?min$2(toIntegerOrInfinity$5(e),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$a=function(e){return toLength$1(e.length)},$TypeError$d=TypeError,MAX_SAFE_INTEGER=9007199254740991,doesNotExceedSafeInteger$3=function(e){if(e>MAX_SAFE_INTEGER)throw $TypeError$d("Maximum allowed index exceeded");return e},toPropertyKey$1=toPropertyKey$4,definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$4=createPropertyDescriptor$7,createProperty$6=function(e,t,r){var n=toPropertyKey$1(t);n in e?definePropertyModule$4.f(e,n,createPropertyDescriptor$4(0,r)):e[n]=r},wellKnownSymbol$l=wellKnownSymbol$n,TO_STRING_TAG$4=wellKnownSymbol$l("toStringTag"),test$1={};test$1[TO_STRING_TAG$4]="z";var toStringTagSupport="[object z]"===String(test$1),TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$d=isCallable$l,classofRaw=classofRaw$2,wellKnownSymbol$k=wellKnownSymbol$n,TO_STRING_TAG$3=wellKnownSymbol$k("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$c=TO_STRING_TAG_SUPPORT$2?classofRaw:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=tryGet(t=$Object$1(e),TO_STRING_TAG$3))?r:CORRECT_ARGUMENTS?classofRaw(t):"Object"==(n=classofRaw(t))&&isCallable$d(t.callee)?"Arguments":n},uncurryThis$i=functionUncurryThis,isCallable$c=isCallable$l,store$1=sharedStore,functionToString=uncurryThis$i(Function.toString);isCallable$c(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)});var inspectSource$2=store$1.inspectSource,uncurryThis$h=functionUncurryThis,fails$l=fails$t,isCallable$b=isCallable$l,classof$b=classof$c,getBuiltIn$e=getBuiltIn$h,inspectSource$1=inspectSource$2,noop=function(){},empty=[],construct$7=getBuiltIn$e("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$1=uncurryThis$h(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$b(e))return!1;try{return construct$7(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$b(e))return!1;switch(classof$b(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$1(constructorRegExp,inspectSource$1(e))}catch(e){return!0}};isConstructorLegacy.sham=!0;var isConstructor$4=!construct$7||fails$l((function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern((function(){e=!0}))||e}))?isConstructorLegacy:isConstructorModern,isArray$d=isArray$e,isConstructor$3=isConstructor$4,isObject$e=isObject$j,wellKnownSymbol$j=wellKnownSymbol$n,SPECIES$5=wellKnownSymbol$j("species"),$Array$3=Array,arraySpeciesConstructor$1=function(e){var t;return isArray$d(e)&&(t=e.constructor,(isConstructor$3(t)&&(t===$Array$3||isArray$d(t.prototype))||isObject$e(t)&&null===(t=t[SPECIES$5]))&&(t=void 0)),void 0===t?$Array$3:t},arraySpeciesConstructor=arraySpeciesConstructor$1,arraySpeciesCreate$4=function(e,t){return new(arraySpeciesConstructor(e))(0===t?0:t)},fails$k=fails$t,wellKnownSymbol$i=wellKnownSymbol$n,V8_VERSION$2=engineV8Version,SPECIES$4=wellKnownSymbol$i("species"),arrayMethodHasSpeciesSupport$5=function(e){return V8_VERSION$2>=51||!fails$k((function(){var t=[];return(t.constructor={})[SPECIES$4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$$$=_export,fails$j=fails$t,isArray$c=isArray$e,isObject$d=isObject$j,toObject$9=toObject$b,lengthOfArrayLike$9=lengthOfArrayLike$a,doesNotExceedSafeInteger$2=doesNotExceedSafeInteger$3,createProperty$5=createProperty$6,arraySpeciesCreate$3=arraySpeciesCreate$4,arrayMethodHasSpeciesSupport$4=arrayMethodHasSpeciesSupport$5,wellKnownSymbol$h=wellKnownSymbol$n,V8_VERSION$1=engineV8Version,IS_CONCAT_SPREADABLE=wellKnownSymbol$h("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION$1>=51||!fails$j((function(){var e=[];return e[IS_CONCAT_SPREADABLE]=!1,e.concat()[0]!==e})),SPECIES_SUPPORT=arrayMethodHasSpeciesSupport$4("concat"),isConcatSpreadable=function(e){if(!isObject$d(e))return!1;var t=e[IS_CONCAT_SPREADABLE];return void 0!==t?!!t:isArray$c(e)},FORCED$3=!IS_CONCAT_SPREADABLE_SUPPORT||!SPECIES_SUPPORT;$$$({target:"Array",proto:!0,arity:1,forced:FORCED$3},{concat:function(e){var t,r,n,o,a,i=toObject$9(this),s=arraySpeciesCreate$3(i,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(isConcatSpreadable(a=-1===t?i:arguments[t]))for(o=lengthOfArrayLike$9(a),doesNotExceedSafeInteger$2(l+o),r=0;r<o;r++,l++)r in a&&createProperty$5(s,l,a[r]);else doesNotExceedSafeInteger$2(l+1),createProperty$5(s,l++,a);return s.length=l,s}});var classof$a=classof$c,$String$1=String,toString$a=function(e){if("Symbol"===classof$a(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},objectDefineProperties={},toIntegerOrInfinity$4=toIntegerOrInfinity$6,max$3=Math.max,min$1=Math.min,toAbsoluteIndex$4=function(e,t){var r=toIntegerOrInfinity$4(e);return r<0?max$3(r+t,0):min$1(r,t)},toIndexedObject$8=toIndexedObject$a,toAbsoluteIndex$3=toAbsoluteIndex$4,lengthOfArrayLike$8=lengthOfArrayLike$a,createMethod$3=function(e){return function(t,r,n){var o,a=toIndexedObject$8(t),i=lengthOfArrayLike$8(a),s=toAbsoluteIndex$3(n,i);if(e&&r!=r){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},arrayIncludes={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},hiddenKeys$6={},uncurryThis$g=functionUncurryThis,hasOwn$g=hasOwnProperty_1,toIndexedObject$7=toIndexedObject$a,indexOf$7=arrayIncludes.indexOf,hiddenKeys$5=hiddenKeys$6,push$6=uncurryThis$g([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$7(e),o=0,a=[];for(r in n)!hasOwn$g(hiddenKeys$5,r)&&hasOwn$g(n,r)&&push$6(a,r);for(;t.length>o;)hasOwn$g(n,r=t[o++])&&(~indexOf$7(a,r)||push$6(a,r));return a},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,objectKeys$3=Object.keys||function(e){return internalObjectKeys$1(e,enumBugKeys$2)},DESCRIPTORS$c=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$3=objectDefineProperty,anObject$r=anObject$t,toIndexedObject$6=toIndexedObject$a,objectKeys$2=objectKeys$3;objectDefineProperties.f=DESCRIPTORS$c&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$r(e);for(var r,n=toIndexedObject$6(t),o=objectKeys$2(t),a=o.length,i=0;a>i;)definePropertyModule$3.f(e,r=o[i++],n[r]);return e};var activeXDocument,getBuiltIn$d=getBuiltIn$h,html$2=getBuiltIn$d("document","documentElement"),shared$4=sharedExports,uid$2=uid$4,keys$d=shared$4("keys"),sharedKey$4=function(e){return keys$d[e]||(keys$d[e]=uid$2(e))},anObject$q=anObject$t,definePropertiesModule$1=objectDefineProperties,enumBugKeys$1=enumBugKeys$3,hiddenKeys$4=hiddenKeys$6,html$1=html$2,documentCreateElement=documentCreateElement$1,sharedKey$3=sharedKey$4,GT=">",LT="<",PROTOTYPE$1="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e,t=documentCreateElement("iframe"),r="java"+SCRIPT+":";return t.style.display="none",html$1.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var e=enumBugKeys$1.length;e--;)delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[e]];return NullProtoObject()};hiddenKeys$4[IE_PROTO$1]=!0;var objectCreate=Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE$1]=anObject$q(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE$1]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule$1.f(r,t)},objectGetOwnPropertyNames={},internalObjectKeys=objectKeysInternal,enumBugKeys=enumBugKeys$3,hiddenKeys$3=enumBugKeys.concat("length","prototype");objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys(e,hiddenKeys$3)};var objectGetOwnPropertyNamesExternal={},toAbsoluteIndex$2=toAbsoluteIndex$4,lengthOfArrayLike$7=lengthOfArrayLike$a,createProperty$4=createProperty$6,$Array$2=Array,max$2=Math.max,arraySliceSimple=function(e,t,r){for(var n=lengthOfArrayLike$7(e),o=toAbsoluteIndex$2(t,n),a=toAbsoluteIndex$2(void 0===r?n:r,n),i=$Array$2(max$2(a-o,0)),s=0;o<a;o++,s++)createProperty$4(i,s,e[o]);return i.length=s,i},classof$9=classofRaw$2,toIndexedObject$5=toIndexedObject$a,$getOwnPropertyNames$1=objectGetOwnPropertyNames.f,arraySlice$5=arraySliceSimple,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return $getOwnPropertyNames$1(e)}catch(e){return arraySlice$5(windowNames)}};objectGetOwnPropertyNamesExternal.f=function(e){return windowNames&&"Window"==classof$9(e)?getWindowNames(e):$getOwnPropertyNames$1(toIndexedObject$5(e))};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var createNonEnumerableProperty$6=createNonEnumerableProperty$8,defineBuiltIn$6=function(e,t,r,n){return n&&n.enumerable?e[t]=r:createNonEnumerableProperty$6(e,t,r),e},wellKnownSymbolWrapped={},wellKnownSymbol$g=wellKnownSymbol$n;wellKnownSymbolWrapped.f=wellKnownSymbol$g;var set$1,get,has,path$i=path$l,hasOwn$f=hasOwnProperty_1,wrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,defineProperty$d=objectDefineProperty.f,wellKnownSymbolDefine=function(e){var t=path$i.Symbol||(path$i.Symbol={});hasOwn$f(t,e)||defineProperty$d(t,e,{value:wrappedWellKnownSymbolModule$1.f(e)})},call$p=functionCall,getBuiltIn$c=getBuiltIn$h,wellKnownSymbol$f=wellKnownSymbol$n,defineBuiltIn$5=defineBuiltIn$6,symbolDefineToPrimitive=function(){var e=getBuiltIn$c("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wellKnownSymbol$f("toPrimitive");t&&!t[n]&&defineBuiltIn$5(t,n,(function(e){return call$p(r,this)}),{arity:1})},TO_STRING_TAG_SUPPORT$1=toStringTagSupport,classof$8=classof$c,objectToString=TO_STRING_TAG_SUPPORT$1?{}.toString:function(){return"[object "+classof$8(this)+"]"},TO_STRING_TAG_SUPPORT=toStringTagSupport,defineProperty$c=objectDefineProperty.f,createNonEnumerableProperty$5=createNonEnumerableProperty$8,hasOwn$e=hasOwnProperty_1,toString$9=objectToString,wellKnownSymbol$e=wellKnownSymbol$n,TO_STRING_TAG$2=wellKnownSymbol$e("toStringTag"),setToStringTag$7=function(e,t,r,n){if(e){var o=r?e:e.prototype;hasOwn$e(o,TO_STRING_TAG$2)||defineProperty$c(o,TO_STRING_TAG$2,{configurable:!0,value:t}),n&&!TO_STRING_TAG_SUPPORT&&createNonEnumerableProperty$5(o,"toString",toString$9)}},global$e=global$m,isCallable$a=isCallable$l,WeakMap$1=global$e.WeakMap,weakMapBasicDetection=isCallable$a(WeakMap$1)&&/native code/.test(String(WeakMap$1)),NATIVE_WEAK_MAP=weakMapBasicDetection,global$d=global$m,isObject$c=isObject$j,createNonEnumerableProperty$4=createNonEnumerableProperty$8,hasOwn$d=hasOwnProperty_1,shared$3=sharedStore,sharedKey$2=sharedKey$4,hiddenKeys$2=hiddenKeys$6,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$3=global$d.TypeError,WeakMap=global$d.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(e){return function(t){var r;if(!isObject$c(t)||(r=get(t)).type!==e)throw TypeError$3("Incompatible receiver, "+e+" required");return r}};if(NATIVE_WEAK_MAP||shared$3.state){var store=shared$3.state||(shared$3.state=new WeakMap);store.get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},has=function(e){return store.has(e)}}else{var STATE=sharedKey$2("state");hiddenKeys$2[STATE]=!0,set$1=function(e,t){if(hasOwn$d(e,STATE))throw TypeError$3(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$d(e,STATE)?e[STATE]:{}},has=function(e){return hasOwn$d(e,STATE)}}var internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},bind$o=functionBindContext,uncurryThis$f=functionUncurryThis,IndexedObject$1=indexedObject,toObject$8=toObject$b,lengthOfArrayLike$6=lengthOfArrayLike$a,arraySpeciesCreate$2=arraySpeciesCreate$4,push$5=uncurryThis$f([].push),createMethod$2=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,a=6==e,i=7==e,s=5==e||a;return function(l,c,u,$){for(var f,p,d=toObject$8(l),_=IndexedObject$1(d),y=bind$o(c,u),h=lengthOfArrayLike$6(_),b=0,g=$||arraySpeciesCreate$2,S=t?g(l,h):r||i?g(l,0):void 0;h>b;b++)if((s||b in _)&&(p=y(f=_[b],b,d),e))if(t)S[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:push$5(S,f)}else switch(e){case 4:return!1;case 7:push$5(S,f)}return a?-1:n||o?o:S}},arrayIteration={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterReject:createMethod$2(7)},$$_=_export,global$c=global$m,call$o=functionCall,uncurryThis$e=functionUncurryThis,DESCRIPTORS$b=descriptors,NATIVE_SYMBOL$3=symbolConstructorDetection,fails$i=fails$t,hasOwn$c=hasOwnProperty_1,isPrototypeOf$j=objectIsPrototypeOf,anObject$p=anObject$t,toIndexedObject$4=toIndexedObject$a,toPropertyKey=toPropertyKey$4,$toString=toString$a,createPropertyDescriptor$3=createPropertyDescriptor$7,nativeObjectCreate=objectCreate,objectKeys$1=objectKeys$3,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames,getOwnPropertyNamesExternal=objectGetOwnPropertyNamesExternal,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,definePropertiesModule=objectDefineProperties,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,defineBuiltIn$4=defineBuiltIn$6,shared$2=sharedExports,sharedKey$1=sharedKey$4,hiddenKeys$1=hiddenKeys$6,uid$1=uid$4,wellKnownSymbol$d=wellKnownSymbol$n,wrappedWellKnownSymbolModule=wellKnownSymbolWrapped,defineWellKnownSymbol$l=wellKnownSymbolDefine,defineSymbolToPrimitive$1=symbolDefineToPrimitive,setToStringTag$6=setToStringTag$7,InternalStateModule$5=internalState,$forEach$1=arrayIteration.forEach,HIDDEN=sharedKey$1("hidden"),SYMBOL="Symbol",PROTOTYPE="prototype",setInternalState$5=InternalStateModule$5.set,getInternalState$2=InternalStateModule$5.getterFor(SYMBOL),ObjectPrototype$2=Object[PROTOTYPE],$Symbol=global$c.Symbol,SymbolPrototype=$Symbol&&$Symbol[PROTOTYPE],TypeError$2=global$c.TypeError,QObject=global$c.QObject,nativeGetOwnPropertyDescriptor$1=getOwnPropertyDescriptorModule$2.f,nativeDefineProperty=definePropertyModule$2.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule$1.f,push$4=uncurryThis$e([].push),AllSymbols=shared$2("symbols"),ObjectPrototypeSymbols=shared$2("op-symbols"),WellKnownSymbolsStore=shared$2("wks"),USE_SETTER=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild,setSymbolDescriptor=DESCRIPTORS$b&&fails$i((function(){return 7!=nativeObjectCreate(nativeDefineProperty({},"a",{get:function(){return nativeDefineProperty(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=nativeGetOwnPropertyDescriptor$1(ObjectPrototype$2,t);n&&delete ObjectPrototype$2[t],nativeDefineProperty(e,t,r),n&&e!==ObjectPrototype$2&&nativeDefineProperty(ObjectPrototype$2,t,n)}:nativeDefineProperty,wrap=function(e,t){var r=AllSymbols[e]=nativeObjectCreate(SymbolPrototype);return setInternalState$5(r,{type:SYMBOL,tag:e,description:t}),DESCRIPTORS$b||(r.description=t),r},$defineProperty=function(e,t,r){e===ObjectPrototype$2&&$defineProperty(ObjectPrototypeSymbols,t,r),anObject$p(e);var n=toPropertyKey(t);return anObject$p(r),hasOwn$c(AllSymbols,n)?(r.enumerable?(hasOwn$c(e,HIDDEN)&&e[HIDDEN][n]&&(e[HIDDEN][n]=!1),r=nativeObjectCreate(r,{enumerable:createPropertyDescriptor$3(0,!1)})):(hasOwn$c(e,HIDDEN)||nativeDefineProperty(e,HIDDEN,createPropertyDescriptor$3(1,{})),e[HIDDEN][n]=!0),setSymbolDescriptor(e,n,r)):nativeDefineProperty(e,n,r)},$defineProperties=function(e,t){anObject$p(e);var r=toIndexedObject$4(t),n=objectKeys$1(r).concat($getOwnPropertySymbols(r));return $forEach$1(n,(function(t){DESCRIPTORS$b&&!call$o($propertyIsEnumerable,r,t)||$defineProperty(e,t,r[t])})),e},$create=function(e,t){return void 0===t?nativeObjectCreate(e):$defineProperties(nativeObjectCreate(e),t)},$propertyIsEnumerable=function(e){var t=toPropertyKey(e),r=call$o(nativePropertyIsEnumerable,this,t);return!(this===ObjectPrototype$2&&hasOwn$c(AllSymbols,t)&&!hasOwn$c(ObjectPrototypeSymbols,t))&&(!(r||!hasOwn$c(this,t)||!hasOwn$c(AllSymbols,t)||hasOwn$c(this,HIDDEN)&&this[HIDDEN][t])||r)},$getOwnPropertyDescriptor=function(e,t){var r=toIndexedObject$4(e),n=toPropertyKey(t);if(r!==ObjectPrototype$2||!hasOwn$c(AllSymbols,n)||hasOwn$c(ObjectPrototypeSymbols,n)){var o=nativeGetOwnPropertyDescriptor$1(r,n);return!o||!hasOwn$c(AllSymbols,n)||hasOwn$c(r,HIDDEN)&&r[HIDDEN][n]||(o.enumerable=!0),o}},$getOwnPropertyNames=function(e){var t=nativeGetOwnPropertyNames(toIndexedObject$4(e)),r=[];return $forEach$1(t,(function(e){hasOwn$c(AllSymbols,e)||hasOwn$c(hiddenKeys$1,e)||push$4(r,e)})),r},$getOwnPropertySymbols=function(e){var t=e===ObjectPrototype$2,r=nativeGetOwnPropertyNames(t?ObjectPrototypeSymbols:toIndexedObject$4(e)),n=[];return $forEach$1(r,(function(e){!hasOwn$c(AllSymbols,e)||t&&!hasOwn$c(ObjectPrototype$2,e)||push$4(n,AllSymbols[e])})),n};NATIVE_SYMBOL$3||(defineBuiltIn$4(SymbolPrototype=($Symbol=function(){if(isPrototypeOf$j(SymbolPrototype,this))throw TypeError$2("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?$toString(arguments[0]):void 0,t=uid$1(e),r=function(e){this===ObjectPrototype$2&&call$o(r,ObjectPrototypeSymbols,e),hasOwn$c(this,HIDDEN)&&hasOwn$c(this[HIDDEN],t)&&(this[HIDDEN][t]=!1),setSymbolDescriptor(this,t,createPropertyDescriptor$3(1,e))};return DESCRIPTORS$b&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype$2,t,{configurable:!0,set:r}),wrap(t,e)})[PROTOTYPE],"toString",(function(){return getInternalState$2(this).tag})),defineBuiltIn$4($Symbol,"withoutSetter",(function(e){return wrap(uid$1(e),e)})),propertyIsEnumerableModule$1.f=$propertyIsEnumerable,definePropertyModule$2.f=$defineProperty,definePropertiesModule.f=$defineProperties,getOwnPropertyDescriptorModule$2.f=$getOwnPropertyDescriptor,getOwnPropertyNamesModule$2.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames,getOwnPropertySymbolsModule$3.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(e){return wrap(wellKnownSymbol$d(e),e)},DESCRIPTORS$b&&nativeDefineProperty(SymbolPrototype,"description",{configurable:!0,get:function(){return getInternalState$2(this).description}})),$$_({global:!0,constructor:!0,wrap:!0,forced:!NATIVE_SYMBOL$3,sham:!NATIVE_SYMBOL$3},{Symbol:$Symbol}),$forEach$1(objectKeys$1(WellKnownSymbolsStore),(function(e){defineWellKnownSymbol$l(e)})),$$_({target:SYMBOL,stat:!0,forced:!NATIVE_SYMBOL$3},{useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$$_({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$3,sham:!DESCRIPTORS$b},{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor}),$$_({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$3},{getOwnPropertyNames:$getOwnPropertyNames}),defineSymbolToPrimitive$1(),setToStringTag$6($Symbol,SYMBOL),hiddenKeys$1[HIDDEN]=!0;var NATIVE_SYMBOL$2=symbolConstructorDetection,symbolRegistryDetection=NATIVE_SYMBOL$2&&!!Symbol.for&&!!Symbol.keyFor,$$Z=_export,getBuiltIn$b=getBuiltIn$h,hasOwn$b=hasOwnProperty_1,toString$8=toString$a,shared$1=sharedExports,NATIVE_SYMBOL_REGISTRY$1=symbolRegistryDetection,StringToSymbolRegistry=shared$1("string-to-symbol-registry"),SymbolToStringRegistry$1=shared$1("symbol-to-string-registry");$$Z({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY$1},{for:function(e){var t=toString$8(e);if(hasOwn$b(StringToSymbolRegistry,t))return StringToSymbolRegistry[t];var r=getBuiltIn$b("Symbol")(t);return StringToSymbolRegistry[t]=r,SymbolToStringRegistry$1[r]=t,r}});var $$Y=_export,hasOwn$a=hasOwnProperty_1,isSymbol$1=isSymbol$4,tryToString$4=tryToString$6,shared=sharedExports,NATIVE_SYMBOL_REGISTRY=symbolRegistryDetection,SymbolToStringRegistry=shared("symbol-to-string-registry");$$Y({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY},{keyFor:function(e){if(!isSymbol$1(e))throw TypeError(tryToString$4(e)+" is not a symbol");if(hasOwn$a(SymbolToStringRegistry,e))return SymbolToStringRegistry[e]}});var uncurryThis$d=functionUncurryThis,arraySlice$4=uncurryThis$d([].slice),$$X=_export,getBuiltIn$a=getBuiltIn$h,apply$3=functionApply,call$n=functionCall,uncurryThis$c=functionUncurryThis,fails$h=fails$t,isArray$b=isArray$e,isCallable$9=isCallable$l,isObject$b=isObject$j,isSymbol=isSymbol$4,arraySlice$3=arraySlice$4,NATIVE_SYMBOL$1=symbolConstructorDetection,$stringify=getBuiltIn$a("JSON","stringify"),exec=uncurryThis$c(/./.exec),charAt$2=uncurryThis$c("".charAt),charCodeAt$1=uncurryThis$c("".charCodeAt),replace$1=uncurryThis$c("".replace),numberToString=uncurryThis$c(1..toString),tester=/[\uD800-\uDFFF]/g,low=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,WRONG_SYMBOLS_CONVERSION=!NATIVE_SYMBOL$1||fails$h((function(){var e=getBuiltIn$a("Symbol")();return"[null]"!=$stringify([e])||"{}"!=$stringify({a:e})||"{}"!=$stringify(Object(e))})),ILL_FORMED_UNICODE=fails$h((function(){return'"\\udf06\\ud834"'!==$stringify("\udf06\ud834")||'"\\udead"'!==$stringify("\udead")})),stringifyWithSymbolsFix=function(e,t){var r=arraySlice$3(arguments),n=t;if((isObject$b(t)||void 0!==e)&&!isSymbol(e))return isArray$b(t)||(t=function(e,t){if(isCallable$9(n)&&(t=call$n(n,this,e,t)),!isSymbol(t))return t}),r[1]=t,apply$3($stringify,null,r)},fixIllFormed=function(e,t,r){var n=charAt$2(r,t-1),o=charAt$2(r,t+1);return exec(low,e)&&!exec(hi,o)||exec(hi,e)&&!exec(low,n)?"\\u"+numberToString(charCodeAt$1(e,0),16):e};$stringify&&$$X({target:"JSON",stat:!0,arity:3,forced:WRONG_SYMBOLS_CONVERSION||ILL_FORMED_UNICODE},{stringify:function(e,t,r){var n=arraySlice$3(arguments),o=apply$3(WRONG_SYMBOLS_CONVERSION?stringifyWithSymbolsFix:$stringify,null,n);return ILL_FORMED_UNICODE&&"string"==typeof o?replace$1(o,tester,fixIllFormed):o}});var $$W=_export,NATIVE_SYMBOL=symbolConstructorDetection,fails$g=fails$t,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols,toObject$7=toObject$b,FORCED$2=!NATIVE_SYMBOL||fails$g((function(){getOwnPropertySymbolsModule$2.f(1)}));$$W({target:"Object",stat:!0,forced:FORCED$2},{getOwnPropertySymbols:function(e){var t=getOwnPropertySymbolsModule$2.f;return t?t(toObject$7(e)):[]}});var defineWellKnownSymbol$k=wellKnownSymbolDefine;defineWellKnownSymbol$k("asyncIterator");var defineWellKnownSymbol$j=wellKnownSymbolDefine;defineWellKnownSymbol$j("hasInstance");var defineWellKnownSymbol$i=wellKnownSymbolDefine;defineWellKnownSymbol$i("isConcatSpreadable");var defineWellKnownSymbol$h=wellKnownSymbolDefine;defineWellKnownSymbol$h("iterator");var defineWellKnownSymbol$g=wellKnownSymbolDefine;defineWellKnownSymbol$g("match");var defineWellKnownSymbol$f=wellKnownSymbolDefine;defineWellKnownSymbol$f("matchAll");var defineWellKnownSymbol$e=wellKnownSymbolDefine;defineWellKnownSymbol$e("replace");var defineWellKnownSymbol$d=wellKnownSymbolDefine;defineWellKnownSymbol$d("search");var defineWellKnownSymbol$c=wellKnownSymbolDefine;defineWellKnownSymbol$c("species");var defineWellKnownSymbol$b=wellKnownSymbolDefine;defineWellKnownSymbol$b("split");var defineWellKnownSymbol$a=wellKnownSymbolDefine,defineSymbolToPrimitive=symbolDefineToPrimitive;defineWellKnownSymbol$a("toPrimitive"),defineSymbolToPrimitive();var getBuiltIn$9=getBuiltIn$h,defineWellKnownSymbol$9=wellKnownSymbolDefine,setToStringTag$5=setToStringTag$7;defineWellKnownSymbol$9("toStringTag"),setToStringTag$5(getBuiltIn$9("Symbol"),"Symbol");var defineWellKnownSymbol$8=wellKnownSymbolDefine;defineWellKnownSymbol$8("unscopables");var global$b=global$m,setToStringTag$4=setToStringTag$7;setToStringTag$4(global$b.JSON,"JSON",!0);var IteratorPrototype$1,PrototypeOfArrayIteratorPrototype,arrayIterator,path$h=path$l,symbol$5=path$h.Symbol,iterators={},DESCRIPTORS$a=descriptors,hasOwn$9=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$a&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$9(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$a||DESCRIPTORS$a&&getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},fails$f=fails$t,correctPrototypeGetter=!fails$f((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hasOwn$8=hasOwnProperty_1,isCallable$8=isCallable$l,toObject$6=toObject$b,sharedKey=sharedKey$4,CORRECT_PROTOTYPE_GETTER$1=correctPrototypeGetter,IE_PROTO=sharedKey("IE_PROTO"),$Object=Object,ObjectPrototype$1=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER$1?$Object.getPrototypeOf:function(e){var t=toObject$6(e);if(hasOwn$8(t,IE_PROTO))return t[IE_PROTO];var r=t.constructor;return isCallable$8(r)&&t instanceof r?r.prototype:t instanceof $Object?ObjectPrototype$1:null},fails$e=fails$t,isCallable$7=isCallable$l,isObject$a=isObject$j,create$b=objectCreate,getPrototypeOf$8=objectGetPrototypeOf,defineBuiltIn$3=defineBuiltIn$6,wellKnownSymbol$c=wellKnownSymbol$n,ITERATOR$4=wellKnownSymbol$c("iterator"),BUGGY_SAFARI_ITERATORS$1=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$8(getPrototypeOf$8(arrayIterator)))!==Object.prototype&&(IteratorPrototype$1=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject$a(IteratorPrototype$1)||fails$e((function(){var e={};return IteratorPrototype$1[ITERATOR$4].call(e)!==e}));isCallable$7((IteratorPrototype$1=NEW_ITERATOR_PROTOTYPE?{}:create$b(IteratorPrototype$1))[ITERATOR$4])||defineBuiltIn$3(IteratorPrototype$1,ITERATOR$4,(function(){return this}));var iteratorsCore={IteratorPrototype:IteratorPrototype$1,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype=iteratorsCore.IteratorPrototype,create$a=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$7,setToStringTag$3=setToStringTag$7,Iterators$5=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){var o=t+" Iterator";return e.prototype=create$a(IteratorPrototype,{next:createPropertyDescriptor$2(+!n,r)}),setToStringTag$3(e,o,!1,!0),Iterators$5[o]=returnThis$1,e},isCallable$6=isCallable$l,$String=String,$TypeError$c=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$6(e))return e;throw $TypeError$c("Can't set "+$String(e)+" as a prototype")},uncurryThis$b=functionUncurryThis,anObject$o=anObject$t,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=uncurryThis$b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return anObject$o(r),aPossiblePrototype(n),t?e(r,n):r.__proto__=n,r}}():void 0),$$V=_export,call$m=functionCall,FunctionName=functionName,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf$7=objectGetPrototypeOf,setToStringTag$2=setToStringTag$7,defineBuiltIn$2=defineBuiltIn$6,wellKnownSymbol$b=wellKnownSymbol$n,Iterators$4=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER;FunctionName.CONFIGURABLE,IteratorsCore.IteratorPrototype;var BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$3=wellKnownSymbol$b("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,a,i){createIteratorConstructor(r,t,n);var s,l,c,u=function(e){if(e===o&&_)return _;if(!BUGGY_SAFARI_ITERATORS&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}},$=t+" Iterator",f=!1,p=e.prototype,d=p[ITERATOR$3]||p["@@iterator"]||o&&p[o],_=!BUGGY_SAFARI_ITERATORS&&d||u(o),y="Array"==t&&p.entries||d;if(y&&(s=getPrototypeOf$7(y.call(new e)))!==Object.prototype&&s.next&&(setToStringTag$2(s,$,!0,!0),Iterators$4[$]=returnThis),PROPER_FUNCTION_NAME&&o==VALUES&&d&&d.name!==VALUES&&(f=!0,_=function(){return call$m(d,this)}),o)if(l={values:u(VALUES),keys:a?_:u(KEYS),entries:u(ENTRIES)},i)for(c in l)(BUGGY_SAFARI_ITERATORS||f||!(c in p))&&defineBuiltIn$2(p,c,l[c]);else $$V({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||f},l);return i&&p[ITERATOR$3]!==_&&defineBuiltIn$2(p,ITERATOR$3,_,{name:o}),Iterators$4[t]=_,l},createIterResultObject$3=function(e,t){return{value:e,done:t}},toIndexedObject$3=toIndexedObject$a,Iterators$3=iterators,InternalStateModule$4=internalState;objectDefineProperty.f;var defineIterator$2=iteratorDefine,createIterResultObject$2=createIterResultObject$3,ARRAY_ITERATOR="Array Iterator",setInternalState$4=InternalStateModule$4.set,getInternalState$1=InternalStateModule$4.getterFor(ARRAY_ITERATOR);defineIterator$2(Array,"Array",(function(e,t){setInternalState$4(this,{type:ARRAY_ITERATOR,target:toIndexedObject$3(e),index:0,kind:t})}),(function(){var e=getInternalState$1(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject$2(void 0,!0)):createIterResultObject$2("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Iterators$3.Arguments=Iterators$3.Array;var domIterables={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},DOMIterables$3=domIterables,global$a=global$m,classof$7=classof$c,createNonEnumerableProperty$3=createNonEnumerableProperty$8,Iterators$2=iterators,wellKnownSymbol$a=wellKnownSymbol$n,TO_STRING_TAG$1=wellKnownSymbol$a("toStringTag");for(var COLLECTION_NAME in DOMIterables$3){var Collection=global$a[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;CollectionPrototype&&classof$7(CollectionPrototype)!==TO_STRING_TAG$1&&createNonEnumerableProperty$3(CollectionPrototype,TO_STRING_TAG$1,COLLECTION_NAME),Iterators$2[COLLECTION_NAME]=Iterators$2.Array}var parent$1E=symbol$5,symbol$4=parent$1E,parent$1D=symbol$4,symbol$3=parent$1D,defineWellKnownSymbol$7=wellKnownSymbolDefine;defineWellKnownSymbol$7("asyncDispose");var defineWellKnownSymbol$6=wellKnownSymbolDefine;defineWellKnownSymbol$6("dispose");var defineWellKnownSymbol$5=wellKnownSymbolDefine;defineWellKnownSymbol$5("matcher");var defineWellKnownSymbol$4=wellKnownSymbolDefine;defineWellKnownSymbol$4("metadataKey");var defineWellKnownSymbol$3=wellKnownSymbolDefine;defineWellKnownSymbol$3("observable");var defineWellKnownSymbol$2=wellKnownSymbolDefine;defineWellKnownSymbol$2("metadata");var defineWellKnownSymbol$1=wellKnownSymbolDefine;defineWellKnownSymbol$1("patternMatch");var defineWellKnownSymbol=wellKnownSymbolDefine;defineWellKnownSymbol("replaceAll");var parent$1C=symbol$3,symbol$2=parent$1C,symbol$1=symbol$2,symbol=symbol$1,_Symbol=getDefaultExportFromCjs(symbol),uncurryThis$a=functionUncurryThis,toIntegerOrInfinity$3=toIntegerOrInfinity$6,toString$7=toString$a,requireObjectCoercible$3=requireObjectCoercible$6,charAt$1=uncurryThis$a("".charAt),charCodeAt=uncurryThis$a("".charCodeAt),stringSlice$1=uncurryThis$a("".slice),createMethod$1=function(e){return function(t,r){var n,o,a=toString$7(requireObjectCoercible$3(t)),i=toIntegerOrInfinity$3(r),s=a.length;return i<0||i>=s?e?"":void 0:(n=charCodeAt(a,i))<55296||n>56319||i+1===s||(o=charCodeAt(a,i+1))<56320||o>57343?e?charAt$1(a,i):n:e?stringSlice$1(a,i,i+2):o-56320+(n-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt=stringMultibyte.charAt,toString$6=toString$a,InternalStateModule$3=internalState,defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$3,STRING_ITERATOR="String Iterator",setInternalState$3=InternalStateModule$3.set,getInternalState=InternalStateModule$3.getterFor(STRING_ITERATOR);defineIterator$1(String,"String",(function(e){setInternalState$3(this,{type:STRING_ITERATOR,string:toString$6(e),index:0})}),(function(){var e,t=getInternalState(this),r=t.string,n=t.index;return n>=r.length?createIterResultObject$1(void 0,!0):(e=charAt(r,n),t.index+=e.length,createIterResultObject$1(e,!1))}));var WrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,iterator$5=WrappedWellKnownSymbolModule$1.f("iterator"),parent$1B=iterator$5,iterator$4=parent$1B,parent$1A=iterator$4,iterator$3=parent$1A,parent$1z=iterator$3,iterator$2=parent$1z,iterator$1=iterator$2,iterator=iterator$1,_Symbol$iterator=getDefaultExportFromCjs(iterator);function _typeof(e){return(_typeof="function"==typeof _Symbol&&"symbol"==typeof _Symbol$iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof _Symbol&&e.constructor===_Symbol&&e!==_Symbol.prototype?"symbol":typeof e})(e)}var defineProperty$b={exports:{}},$$U=_export,DESCRIPTORS$9=descriptors,defineProperty$a=objectDefineProperty.f;$$U({target:"Object",stat:!0,forced:Object.defineProperty!==defineProperty$a,sham:!DESCRIPTORS$9},{defineProperty:defineProperty$a});var path$g=path$l,Object$4=path$g.Object,defineProperty$9=defineProperty$b.exports=function(e,t,r){return Object$4.defineProperty(e,t,r)};Object$4.defineProperty.sham&&(defineProperty$9.sham=!0);var definePropertyExports=defineProperty$b.exports,parent$1y=definePropertyExports,defineProperty$8=parent$1y,parent$1x=defineProperty$8,defineProperty$7=parent$1x,parent$1w=defineProperty$7,defineProperty$6=parent$1w,defineProperty$5=defineProperty$6,defineProperty$4=defineProperty$5,_Object$defineProperty=getDefaultExportFromCjs(defineProperty$4),$$T=_export,DESCRIPTORS$8=descriptors,create$9=objectCreate;$$T({target:"Object",stat:!0,sham:!DESCRIPTORS$8},{create:create$9});var path$f=path$l,Object$3=path$f.Object,create$8=function(e,t){return Object$3.create(e,t)},parent$1v=create$8,create$7=parent$1v,parent$1u=create$7,create$6=parent$1u,parent$1t=create$6,create$5=parent$1t,create$4=create$5,create$3=create$4,_Object$create=getDefaultExportFromCjs(create$3),$$S=_export,fails$d=fails$t,toObject$5=toObject$b,nativeGetPrototypeOf=objectGetPrototypeOf,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,FAILS_ON_PRIMITIVES$3=fails$d((function(){nativeGetPrototypeOf(1)}));$$S({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$3,sham:!CORRECT_PROTOTYPE_GETTER},{getPrototypeOf:function(e){return nativeGetPrototypeOf(toObject$5(e))}});var path$e=path$l,getPrototypeOf$6=path$e.Object.getPrototypeOf,parent$1s=getPrototypeOf$6,getPrototypeOf$5=parent$1s,parent$1r=getPrototypeOf$5,getPrototypeOf$4=parent$1r,parent$1q=getPrototypeOf$4,getPrototypeOf$3=parent$1q,getPrototypeOf$2=getPrototypeOf$3,getPrototypeOf$1=getPrototypeOf$2,_Object$getPrototypeOf=getDefaultExportFromCjs(getPrototypeOf$1),fails$c=fails$t,arrayMethodIsStrict$2=function(e,t){var r=[][e];return!!r&&fails$c((function(){r.call(null,t||function(){return 1},1)}))},$forEach=arrayIteration.forEach,arrayMethodIsStrict$1=arrayMethodIsStrict$2,STRICT_METHOD$1=arrayMethodIsStrict$1("forEach"),arrayForEach=STRICT_METHOD$1?[].forEach:function(e){return $forEach(this,e,arguments.length>1?arguments[1]:void 0)},$$R=_export,forEach$8=arrayForEach;$$R({target:"Array",proto:!0,forced:[].forEach!=arrayForEach},{forEach:arrayForEach});var path$d=path$l,entryVirtual$f=function(e){return path$d[e+"Prototype"]},entryVirtual$e=entryVirtual$f,forEach$7=entryVirtual$e("Array").forEach,parent$1p=forEach$7,forEach$6=parent$1p,classof$6=classof$c,hasOwn$7=hasOwnProperty_1,isPrototypeOf$i=objectIsPrototypeOf,method$c=forEach$6,ArrayPrototype$c=Array.prototype,DOMIterables$2={DOMTokenList:!0,NodeList:!0},forEach$5=function(e){var t=e.forEach;return e===ArrayPrototype$c||isPrototypeOf$i(ArrayPrototype$c,e)&&t===ArrayPrototype$c.forEach||hasOwn$7(DOMIterables$2,classof$6(e))?method$c:t},parent$1o=forEach$5,forEach$4=parent$1o,parent$1n=forEach$4,forEach$3=parent$1n,forEach$2=forEach$3,forEach$1=forEach$2,_forEachInstanceProperty=getDefaultExportFromCjs(forEach$1),$$Q=_export,setPrototypeOf$7=objectSetPrototypeOf;$$Q({target:"Object",stat:!0},{setPrototypeOf:setPrototypeOf$7});var path$c=path$l,setPrototypeOf$6=path$c.Object.setPrototypeOf,parent$1m=setPrototypeOf$6,setPrototypeOf$5=parent$1m,parent$1l=setPrototypeOf$5,setPrototypeOf$4=parent$1l,parent$1k=setPrototypeOf$4,setPrototypeOf$3=parent$1k,setPrototypeOf$2=setPrototypeOf$3,setPrototypeOf$1=setPrototypeOf$2,_Object$setPrototypeOf=getDefaultExportFromCjs(setPrototypeOf$1),getBuiltIn$8=getBuiltIn$h,uncurryThis$9=functionUncurryThis,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$n=anObject$t,concat$9=uncurryThis$9([].concat),ownKeys$3=getBuiltIn$8("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$n(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$9(t,r(e)):t},hasOwn$6=hasOwnProperty_1,ownKeys$2=ownKeys$3,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var n=ownKeys$2(t),o=definePropertyModule$1.f,a=getOwnPropertyDescriptorModule$1.f,i=0;i<n.length;i++){var s=n[i];hasOwn$6(e,s)||r&&hasOwn$6(r,s)||o(e,s,a(t,s))}},uncurryThis$8=functionUncurryThis,$Error$1=Error,replace=uncurryThis$8("".replace),TEST=String($Error$1("zxcasd").stack),V8_OR_CHAKRA_STACK_ENTRY=/\n\s*at [^:]*:[^\n]*/,IS_V8_OR_CHAKRA_STACK=V8_OR_CHAKRA_STACK_ENTRY.test(TEST),errorStackClear=function(e,t){if(IS_V8_OR_CHAKRA_STACK&&"string"==typeof e&&!$Error$1.prepareStackTrace)for(;t--;)e=replace(e,V8_OR_CHAKRA_STACK_ENTRY,"");return e},isObject$9=isObject$j,createNonEnumerableProperty$2=createNonEnumerableProperty$8,installErrorCause$1=function(e,t){isObject$9(t)&&"cause"in t&&createNonEnumerableProperty$2(e,"cause",t.cause)},wellKnownSymbol$9=wellKnownSymbol$n,Iterators$1=iterators,ITERATOR$2=wellKnownSymbol$9("iterator"),ArrayPrototype$b=Array.prototype,isArrayIteratorMethod$2=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype$b[ITERATOR$2]===e)},classof$5=classof$c,getMethod$1=getMethod$3,isNullOrUndefined$3=isNullOrUndefined$6,Iterators=iterators,wellKnownSymbol$8=wellKnownSymbol$n,ITERATOR$1=wellKnownSymbol$8("iterator"),getIteratorMethod$9=function(e){if(!isNullOrUndefined$3(e))return getMethod$1(e,ITERATOR$1)||getMethod$1(e,"@@iterator")||Iterators[classof$5(e)]},call$l=functionCall,aCallable$j=aCallable$m,anObject$m=anObject$t,tryToString$3=tryToString$6,getIteratorMethod$8=getIteratorMethod$9,$TypeError$b=TypeError,getIterator$4=function(e,t){var r=arguments.length<2?getIteratorMethod$8(e):t;if(aCallable$j(r))return anObject$m(call$l(r,e));throw $TypeError$b(tryToString$3(e)+" is not iterable")},call$k=functionCall,anObject$l=anObject$t,getMethod=getMethod$3,iteratorClose$2=function(e,t,r){var n,o;anObject$l(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw r;return r}n=call$k(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$l(n),r},bind$n=functionBindContext,call$j=functionCall,anObject$k=anObject$t,tryToString$2=tryToString$6,isArrayIteratorMethod$1=isArrayIteratorMethod$2,lengthOfArrayLike$5=lengthOfArrayLike$a,isPrototypeOf$h=objectIsPrototypeOf,getIterator$3=getIterator$4,getIteratorMethod$7=getIteratorMethod$9,iteratorClose$1=iteratorClose$2,$TypeError$a=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$l=function(e,t,r){var n,o,a,i,s,l,c,u=r&&r.that,$=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),_=bind$n(t,u),y=function(e){return n&&iteratorClose$1(n,"normal",e),new Result(!0,e)},h=function(e){return $?(anObject$k(e),d?_(e[0],e[1],y):_(e[0],e[1])):d?_(e,y):_(e)};if(f)n=e.iterator;else if(p)n=e;else{if(!(o=getIteratorMethod$7(e)))throw $TypeError$a(tryToString$2(e)+" is not iterable");if(isArrayIteratorMethod$1(o)){for(a=0,i=lengthOfArrayLike$5(e);i>a;a++)if((s=h(e[a]))&&isPrototypeOf$h(ResultPrototype,s))return s;return new Result(!1)}n=getIterator$3(e,o)}for(l=f?e.next:n.next;!(c=call$j(l,n)).done;){try{s=h(c.value)}catch(e){iteratorClose$1(n,"throw",e)}if("object"==typeof s&&s&&isPrototypeOf$h(ResultPrototype,s))return s}return new Result(!1)},toString$5=toString$a,normalizeStringArgument$1=function(e,t){return void 0===e?arguments.length<2?"":t:toString$5(e)},fails$b=fails$t,createPropertyDescriptor$1=createPropertyDescriptor$7,errorStackInstallable=!fails$b((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",createPropertyDescriptor$1(1,7)),7!==e.stack)})),$$P=_export,isPrototypeOf$g=objectIsPrototypeOf,getPrototypeOf2=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,copyConstructorProperties=copyConstructorProperties$1,create$2=objectCreate,createNonEnumerableProperty$1=createNonEnumerableProperty$8,createPropertyDescriptor=createPropertyDescriptor$7,clearErrorStack=errorStackClear,installErrorCause=installErrorCause$1,iterate$k=iterate$l,normalizeStringArgument=normalizeStringArgument$1,wellKnownSymbol$7=wellKnownSymbol$n,ERROR_STACK_INSTALLABLE=errorStackInstallable,TO_STRING_TAG=wellKnownSymbol$7("toStringTag"),$Error=Error,push$3=[].push,$AggregateError=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,o=isPrototypeOf$g(AggregateErrorPrototype,this);setPrototypeOf?r=setPrototypeOf($Error(),o?getPrototypeOf2(this):AggregateErrorPrototype):(r=o?this:create$2(AggregateErrorPrototype),createNonEnumerableProperty$1(r,TO_STRING_TAG,"Error")),void 0!==t&&createNonEnumerableProperty$1(r,"message",normalizeStringArgument(t)),ERROR_STACK_INSTALLABLE&&createNonEnumerableProperty$1(r,"stack",clearErrorStack(r.stack,1)),installErrorCause(r,n);var a=[];return iterate$k(e,push$3,{that:a}),createNonEnumerableProperty$1(r,"errors",a),r};setPrototypeOf?setPrototypeOf($AggregateError,$Error):copyConstructorProperties($AggregateError,$Error,{name:!0});var AggregateErrorPrototype=$AggregateError.prototype=create$2($Error.prototype,{constructor:createPropertyDescriptor(1,$AggregateError),message:createPropertyDescriptor(1,""),name:createPropertyDescriptor(1,"AggregateError")});$$P({global:!0,constructor:!0,arity:2},{AggregateError:$AggregateError});var $location,defer,channel,port,classof$4=classofRaw$2,global$9=global$m,engineIsNode="process"==classof$4(global$9.process),getBuiltIn$7=getBuiltIn$h,definePropertyModule=objectDefineProperty,wellKnownSymbol$6=wellKnownSymbol$n,DESCRIPTORS$7=descriptors,SPECIES$3=wellKnownSymbol$6("species"),setSpecies$2=function(e){var t=getBuiltIn$7(e),r=definePropertyModule.f;DESCRIPTORS$7&&t&&!t[SPECIES$3]&&r(t,SPECIES$3,{configurable:!0,get:function(){return this}})},isPrototypeOf$f=objectIsPrototypeOf,$TypeError$9=TypeError,anInstance$3=function(e,t){if(isPrototypeOf$f(t,e))return e;throw $TypeError$9("Incorrect invocation")},isConstructor$2=isConstructor$4,tryToString$1=tryToString$6,$TypeError$8=TypeError,aConstructor$3=function(e){if(isConstructor$2(e))return e;throw $TypeError$8(tryToString$1(e)+" is not a constructor")},anObject$j=anObject$t,aConstructor$2=aConstructor$3,isNullOrUndefined$2=isNullOrUndefined$6,wellKnownSymbol$5=wellKnownSymbol$n,SPECIES$2=wellKnownSymbol$5("species"),speciesConstructor$5=function(e,t){var r,n=anObject$j(e).constructor;return void 0===n||isNullOrUndefined$2(r=anObject$j(n)[SPECIES$2])?t:aConstructor$2(r)},$TypeError$7=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw $TypeError$7("Not enough arguments");return e},userAgent$3=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$3),global$8=global$m,apply$2=functionApply,bind$m=functionBindContext,isCallable$5=isCallable$l,hasOwn$5=hasOwnProperty_1,fails$a=fails$t,html=html$2,arraySlice$2=arraySlice$4,createElement=documentCreateElement$1,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$8.setImmediate,clear=global$8.clearImmediate,process$2=global$8.process,Dispatch=global$8.Dispatch,Function$1=global$8.Function,MessageChannel=global$8.MessageChannel,String$1=global$8.String,counter=0,queue$1={},ONREADYSTATECHANGE="onreadystatechange";try{$location=global$8.location}catch(e){}var run=function(e){if(hasOwn$5(queue$1,e)){var t=queue$1[e];delete queue$1[e],t()}},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$8.postMessage(String$1(e),$location.protocol+"//"+$location.host)};set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$5(e)?e:Function$1(e),r=arraySlice$2(arguments,1);return queue$1[++counter]=function(){apply$2(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$1[e]},IS_NODE$3?defer=function(e){process$2.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=listener,defer=bind$m(port.postMessage,port)):global$8.addEventListener&&isCallable$5(global$8.postMessage)&&!global$8.importScripts&&$location&&"file:"!==$location.protocol&&!fails$a(post)?(defer=post,global$8.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)});var flush,head,last,notify$1,toggle,node,promise$6,then,task$1={set:set,clear:clear},userAgent$2=engineUserAgent,global$7=global$m,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$2)&&void 0!==global$7.Pebble,userAgent$1=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent$1),global$6=global$m,bind$l=functionBindContext,getOwnPropertyDescriptor$8=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$6.MutationObserver||global$6.WebKitMutationObserver,document$2=global$6.document,process$1=global$6.process,Promise$1=global$6.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor$8(global$6,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;queueMicrotask||(flush=function(){var e,t;for(IS_NODE$2&&(e=process$1.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,e&&e.enter()},IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise$6=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$l(promise$6.then,promise$6),notify$1=function(){then(flush)}):IS_NODE$2?notify$1=function(){process$1.nextTick(flush)}:(macrotask=bind$l(macrotask,global$6),notify$1=function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),notify$1=function(){node.data=toggle=!toggle}));var microtask$1=queueMicrotask||function(e){var t={fn:e,next:void 0};last&&(last.next=t),head||(head=t,notify$1()),last=t},global$5=global$m,hostReportErrors$1=function(e,t){var r=global$5.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},perform$6=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Queue$1=function(){this.head=null,this.tail=null};Queue$1.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 queue=Queue$1,global$4=global$m,promiseNativeConstructor=global$4.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!IS_DENO$1&&!IS_NODE$1&&"object"==typeof window&&"object"==typeof document,global$3=global$m,NativePromiseConstructor$5=promiseNativeConstructor,isCallable$4=isCallable$l,isForced=isForced_1,inspectSource=inspectSource$2,wellKnownSymbol$4=wellKnownSymbol$n,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,NativePromisePrototype$2=NativePromiseConstructor$5&&NativePromiseConstructor$5.prototype,SPECIES$1=wellKnownSymbol$4("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$4(global$3.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",(function(){var e=inspectSource(NativePromiseConstructor$5),t=e!==String(NativePromiseConstructor$5);if(!t&&66===V8_VERSION)return!0;if(!NativePromisePrototype$2.catch||!NativePromisePrototype$2.finally)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){var r=new NativePromiseConstructor$5((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[SPECIES$1]=n,!(SUBCLASSING=r.then((function(){}))instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1})),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$i=aCallable$m,$TypeError$6=TypeError,PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw $TypeError$6("Bad Promise constructor");t=e,r=n})),this.resolve=aCallable$i(t),this.reject=aCallable$i(r)};newPromiseCapability$2.f=function(e){return new PromiseCapability(e)};var $$O=_export,IS_NODE=engineIsNode,global$2=global$m,call$i=functionCall,defineBuiltIn$1=defineBuiltIn$6,setToStringTag$1=setToStringTag$7,setSpecies$1=setSpecies$2,aCallable$h=aCallable$m,isCallable$3=isCallable$l,isObject$8=isObject$j,anInstance$2=anInstance$3,speciesConstructor$4=speciesConstructor$5,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$5=perform$6,Queue=queue,InternalStateModule$2=internalState,NativePromiseConstructor$4=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$6=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT;PromiseConstructorDetection.SUBCLASSING;var Internal,OwnPromiseCapability,PromiseWrapper,getInternalPromiseState=InternalStateModule$2.getterFor(PROMISE),setInternalState$2=InternalStateModule$2.set,NativePromisePrototype$1=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype,PromiseConstructor=NativePromiseConstructor$4,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$2.TypeError,document$1=global$2.document,process=global$2.process,newPromiseCapability$1=newPromiseCapabilityModule$6.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$2.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$8(e)||!isCallable$3(t=e.then))&&t},callReaction=function(e,t){var r,n,o,a=t.value,i=t.state==FULFILLED,s=i?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=a:(u&&u.enter(),r=s(a),u&&(u.exit(),o=!0)),r===e.promise?c(TypeError$1("Promise-chain cycle")):(n=isThenable(r))?call$i(n,r,l,c):l(r)):c(a)}catch(e){u&&!o&&u.exit(),c(e)}},notify=function(e,t){e.notified||(e.notified=!0,microtask((function(){for(var r,n=e.reactions;r=n.get();)callReaction(r,e);e.notified=!1,t&&!e.rejection&&onUnhandled(e)})))},dispatchEvent=function(e,t,r){var n,o;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$2.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(o=global$2["on"+e])?o(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(e){call$i(task,global$2,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform$5((function(){IS_NODE?process.emit("unhandledRejection",n,r):dispatchEvent(UNHANDLED_REJECTION,r,n)})),e.rejection=IS_NODE||isUnhandled(e)?UNHANDLED:HANDLED,t.error))throw t.value}))},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(e){call$i(task,global$2,(function(){var t=e.facade;IS_NODE?process.emit("rejectionHandled",t):dispatchEvent(REJECTION_HANDLED,t,e.value)}))},bind$k=function(e,t,r){return function(n){e(t,n,r)}},internalReject=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw TypeError$1("Promise can't be resolved itself");var n=isThenable(t);n?microtask((function(){var r={done:!1};try{call$i(n,t,bind$k(internalResolve,r,e),bind$k(internalReject,r,e))}catch(t){internalReject(r,t,e)}})):(e.value=t,e.state=FULFILLED,notify(e,!1))}catch(t){internalReject({done:!1},t,e)}}};FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance$2(this,PromisePrototype),aCallable$h(e),call$i(Internal,this);var t=getInternalPromiseState(this);try{e(bind$k(internalResolve,t),bind$k(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$2(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",(function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor$4(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$3(e)||e,n.fail=isCallable$3(t)&&t,n.domain=IS_NODE?process.domain:void 0,r.state==PENDING?r.reactions.add(n):microtask((function(){callReaction(n,r)})),n.promise})),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$k(internalResolve,t),this.reject=bind$k(internalReject,t)},newPromiseCapabilityModule$6.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)}),$$O({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$1(PromiseConstructor,PROMISE,!1,!0),setSpecies$1(PROMISE);var wellKnownSymbol$3=wellKnownSymbol$n,ITERATOR=wellKnownSymbol$3("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,(function(){throw 2}))}catch(e){}var checkCorrectnessOfIteration$2=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var n={};n[ITERATOR]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$3=promiseNativeConstructor,checkCorrectnessOfIteration$1=checkCorrectnessOfIteration$2,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration$1((function(e){NativePromiseConstructor$3.all(e).then(void 0,(function(){}))})),$$N=_export,call$h=functionCall,aCallable$g=aCallable$m,newPromiseCapabilityModule$5=newPromiseCapability$2,perform$4=perform$6,iterate$j=iterate$l,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$N({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{all:function(e){var t=this,r=newPromiseCapabilityModule$5.f(t),n=r.resolve,o=r.reject,a=perform$4((function(){var r=aCallable$g(t.resolve),a=[],i=0,s=1;iterate$j(e,(function(e){var l=i++,c=!1;s++,call$h(r,t,e).then((function(e){c||(c=!0,a[l]=e,--s||n(a))}),o)})),--s||n(a)}));return a.error&&o(a.value),r.promise}});var $$M=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor$2=promiseNativeConstructor;promiseNativeConstructor&&promiseNativeConstructor.prototype,$$M({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}});var $$L=_export,call$g=functionCall,aCallable$f=aCallable$m,newPromiseCapabilityModule$4=newPromiseCapability$2,perform$3=perform$6,iterate$i=iterate$l,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration;$$L({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{race:function(e){var t=this,r=newPromiseCapabilityModule$4.f(t),n=r.reject,o=perform$3((function(){var o=aCallable$f(t.resolve);iterate$i(e,(function(e){call$g(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var $$K=_export,call$f=functionCall,newPromiseCapabilityModule$3=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$K({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule$3.f(this);return call$f(t.reject,void 0,e),t.promise}});var anObject$i=anObject$t,isObject$7=isObject$j,newPromiseCapability=newPromiseCapability$2,promiseResolve$2=function(e,t){if(anObject$i(e),isObject$7(t)&&t.constructor===e)return t;var r=newPromiseCapability.f(e);return(0,r.resolve)(t),r.promise},$$J=_export,getBuiltIn$6=getBuiltIn$h,IS_PURE=isPure,NativePromiseConstructor$1=promiseNativeConstructor,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve$1=promiseResolve$2,PromiseConstructorWrapper=getBuiltIn$6("Promise"),CHECK_WRAPPER=!FORCED_PROMISE_CONSTRUCTOR;$$J({target:"Promise",stat:!0,forced:IS_PURE},{resolve:function(e){return promiseResolve$1(CHECK_WRAPPER&&this===PromiseConstructorWrapper?NativePromiseConstructor$1:this,e)}});var $$I=_export,call$e=functionCall,aCallable$e=aCallable$m,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$2=perform$6,iterate$h=iterate$l;$$I({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=newPromiseCapabilityModule$2.f(t),n=r.resolve,o=r.reject,a=perform$2((function(){var r=aCallable$e(t.resolve),o=[],a=0,i=1;iterate$h(e,(function(e){var s=a++,l=!1;i++,call$e(r,t,e).then((function(e){l||(l=!0,o[s]={status:"fulfilled",value:e},--i||n(o))}),(function(e){l||(l=!0,o[s]={status:"rejected",reason:e},--i||n(o))}))})),--i||n(o)}));return a.error&&o(a.value),r.promise}});var $$H=_export,call$d=functionCall,aCallable$d=aCallable$m,getBuiltIn$5=getBuiltIn$h,newPromiseCapabilityModule$1=newPromiseCapability$2,perform$1=perform$6,iterate$g=iterate$l,PROMISE_ANY_ERROR="No one promise resolved";$$H({target:"Promise",stat:!0},{any:function(e){var t=this,r=getBuiltIn$5("AggregateError"),n=newPromiseCapabilityModule$1.f(t),o=n.resolve,a=n.reject,i=perform$1((function(){var n=aCallable$d(t.resolve),i=[],s=0,l=1,c=!1;iterate$g(e,(function(e){var u=s++,$=!1;l++,call$d(n,t,e).then((function(e){$||c||(c=!0,o(e))}),(function(e){$||c||($=!0,i[u]=e,--l||a(new r(i,PROMISE_ANY_ERROR)))}))})),--l||a(new r(i,PROMISE_ANY_ERROR))}));return i.error&&a(i.value),n.promise}});var $$G=_export,NativePromiseConstructor=promiseNativeConstructor,fails$9=fails$t,getBuiltIn$4=getBuiltIn$h,isCallable$2=isCallable$l,speciesConstructor$3=speciesConstructor$5,promiseResolve=promiseResolve$2,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,NON_GENERIC=!!NativePromiseConstructor&&fails$9((function(){NativePromisePrototype.finally.call({then:function(){}},(function(){}))}));$$G({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC},{finally:function(e){var t=speciesConstructor$3(this,getBuiltIn$4("Promise")),r=isCallable$2(e);return this.then(r?function(r){return promiseResolve(t,e()).then((function(){return r}))}:e,r?function(r){return promiseResolve(t,e()).then((function(){throw r}))}:e)}});var path$b=path$l,promise$5=path$b.Promise,parent$1j=promise$5,promise$4=parent$1j,parent$1i=promise$4,promise$3=parent$1i,$$F=_export,newPromiseCapabilityModule=newPromiseCapability$2,perform=perform$6;$$F({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=newPromiseCapabilityModule.f(this),r=perform(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var parent$1h=promise$3,promise$2=parent$1h,promise$1=promise$2,promise=promise$1,_Promise=getDefaultExportFromCjs(promise),$$E=_export,uncurryThis$7=functionUncurryThis,isArray$a=isArray$e,nativeReverse=uncurryThis$7([].reverse),test=[1,2];$$E({target:"Array",proto:!0,forced:String(test)===String(test.reverse())},{reverse:function(){return isArray$a(this)&&(this.length=this.length),nativeReverse(this)}});var entryVirtual$d=entryVirtual$f,reverse$6=entryVirtual$d("Array").reverse,isPrototypeOf$e=objectIsPrototypeOf,method$b=reverse$6,ArrayPrototype$a=Array.prototype,reverse$5=function(e){var t=e.reverse;return e===ArrayPrototype$a||isPrototypeOf$e(ArrayPrototype$a,e)&&t===ArrayPrototype$a.reverse?method$b:t},parent$1g=reverse$5,reverse$4=parent$1g,parent$1f=reverse$4,reverse$3=parent$1f,parent$1e=reverse$3,reverse$2=parent$1e,reverse$1=reverse$2,reverse2=reverse$1,_reverseInstanceProperty=getDefaultExportFromCjs(reverse2),$$D=_export,isArray$9=isArray$e,isConstructor$1=isConstructor$4,isObject$6=isObject$j,toAbsoluteIndex$1=toAbsoluteIndex$4,lengthOfArrayLike$4=lengthOfArrayLike$a,toIndexedObject$2=toIndexedObject$a,createProperty$3=createProperty$6,wellKnownSymbol$2=wellKnownSymbol$n,arrayMethodHasSpeciesSupport$3=arrayMethodHasSpeciesSupport$5,nativeSlice=arraySlice$4,HAS_SPECIES_SUPPORT$3=arrayMethodHasSpeciesSupport$3("slice"),SPECIES=wellKnownSymbol$2("species"),$Array$1=Array,max$1=Math.max;$$D({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$3},{slice:function(e,t){var r,n,o,a=toIndexedObject$2(this),i=lengthOfArrayLike$4(a),s=toAbsoluteIndex$1(e,i),l=toAbsoluteIndex$1(void 0===t?i:t,i);if(isArray$9(a)&&(r=a.constructor,(isConstructor$1(r)&&(r===$Array$1||isArray$9(r.prototype))||isObject$6(r)&&null===(r=r[SPECIES]))&&(r=void 0),r===$Array$1||void 0===r))return nativeSlice(a,s,l);for(n=new(void 0===r?$Array$1:r)(max$1(l-s,0)),o=0;s<l;s++,o++)s in a&&createProperty$3(n,o,a[s]);return n.length=o,n}});var entryVirtual$c=entryVirtual$f,slice$6=entryVirtual$c("Array").slice,isPrototypeOf$d=objectIsPrototypeOf,method$a=slice$6,ArrayPrototype$9=Array.prototype,slice$5=function(e){var t=e.slice;return e===ArrayPrototype$9||isPrototypeOf$d(ArrayPrototype$9,e)&&t===ArrayPrototype$9.slice?method$a:t},parent$1d=slice$5,slice$4=parent$1d,parent$1c=slice$4,slice$3=parent$1c,parent$1b=slice$3,slice$2=parent$1b,slice$1=slice$2,slice2=slice$1,_sliceInstanceProperty=getDefaultExportFromCjs(slice2);function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=_Object$defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof _Symbol?_Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return _Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var a=t&&t.prototype instanceof f?t:f,i=_Object$create(a.prototype),s=new v(o||[]);return n(i,"_invoke",{value:S(e,r,s)}),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var $={};function f(){}function p(){}function d(){}var _={};l(_,a,(function(){return this}));var y=_Object$getPrototypeOf&&_Object$getPrototypeOf(_Object$getPrototypeOf(I([])));y&&y!==t&&r.call(y,a)&&(_=y);var h=d.prototype=f.prototype=_Object$create(_);function b(e){var t;_forEachInstanceProperty(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){function o(n,a,i,s){var l=u(e[n],e,a);if("throw"!==l.type){var c=l.arg,$=c.value;return $&&"object"==_typeof($)&&r.call($,"__await")?t.resolve($.__await).then((function(e){o("next",e,i,s)}),(function(e){o("throw",e,i,s)})):t.resolve($).then((function(e){c.value=e,i(c)}),(function(e){return o("throw",e,i,s)}))}s(l.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function S(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=m(i,r);if(s){if(s===$)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===$)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function m(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,m(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),$;var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,$;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,$):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,$)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function v(e){this.tryEntries=[{tryLoc:"root"}],_forEachInstanceProperty(e).call(e,E,this),this.reset(!0)}function I(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=d,n(h,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return _Object$setPrototypeOf?_Object$setPrototypeOf(e,d):(e.__proto__=d,l(e,s,"GeneratorFunction")),e.prototype=_Object$create(h),e},e.awrap=function(e){return{__await:e}},b(g.prototype),l(g.prototype,i,(function(){return this})),e.AsyncIterator=g,e.async=function(t,r,n,o,a){void 0===a&&(a=_Promise);var i=new g(c(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(h),l(h,s,"Generator"),l(h,a,(function(){return this})),l(h,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return _reverseInstanceProperty(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=I,v.prototype={constructor:v,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,_forEachInstanceProperty(t=this.tryEntries).call(t,O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+_sliceInstanceProperty(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,$):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),$},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),$}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),$}},e}function asyncGeneratorStep(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):_Promise.resolve(l).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new _Promise((function(n,o){var a=e.apply(t,r);function i(e){asyncGeneratorStep(a,n,o,i,s,"next",e)}function s(e){asyncGeneratorStep(a,n,o,i,s,"throw",e)}i(void 0)}))}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var WrappedWellKnownSymbolModule=wellKnownSymbolWrapped,toPrimitive$5=WrappedWellKnownSymbolModule.f("toPrimitive"),parent$1a=toPrimitive$5,toPrimitive$4=parent$1a,parent$19=toPrimitive$4,toPrimitive$3=parent$19,parent$18=toPrimitive$3,toPrimitive$2=parent$18,toPrimitive$1=toPrimitive$2,toPrimitive=toPrimitive$1,_Symbol$toPrimitive=getDefaultExportFromCjs(toPrimitive);function _toPrimitive(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)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"===_typeof(t)?t:String(t)}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),_Object$defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),_Object$defineProperty(e,"prototype",{writable:!1}),e}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var uncurryThis$6=functionUncurryThis,aCallable$c=aCallable$m,isObject$5=isObject$j,hasOwn$4=hasOwnProperty_1,arraySlice$1=arraySlice$4,NATIVE_BIND=functionBindNative,$Function=Function,concat$8=uncurryThis$6([].concat),join=uncurryThis$6([].join),factories={},construct$6=function(e,t,r){if(!hasOwn$4(factories,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";factories[t]=$Function("C,a","return new C("+join(n,",")+")")}return factories[t](e,r)},functionBind=NATIVE_BIND?$Function.bind:function(e){var t=aCallable$c(this),r=t.prototype,n=arraySlice$1(arguments,1),o=function(){var r=concat$8(n,arraySlice$1(arguments));return this instanceof o?construct$6(t,r.length,r):t.apply(e,r)};return isObject$5(r)&&(o.prototype=r),o},$$C=_export,bind$j=functionBind;$$C({target:"Function",proto:!0,forced:Function.bind!==bind$j},{bind:bind$j});var entryVirtual$b=entryVirtual$f,bind$i=entryVirtual$b("Function").bind,isPrototypeOf$c=objectIsPrototypeOf,method$9=bind$i,FunctionPrototype=Function.prototype,bind$h=function(e){var t=e.bind;return e===FunctionPrototype||isPrototypeOf$c(FunctionPrototype,e)&&t===FunctionPrototype.bind?method$9:t},parent$17=bind$h,bind$g=parent$17,parent$16=bind$g,bind$f=parent$16,parent$15=bind$f,bind$e=parent$15,bind$d=bind$e,bind$c=bind$d,_bindInstanceProperty=getDefaultExportFromCjs(bind$c);function _setPrototypeOf(e,t){var r;return(_setPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty(r=_Object$setPrototypeOf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=_Object$create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),_Object$defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}var $$B=_export,getBuiltIn$3=getBuiltIn$h,apply$1=functionApply,bind$b=functionBind,aConstructor$1=aConstructor$3,anObject$h=anObject$t,isObject$4=isObject$j,create$1=objectCreate,fails$8=fails$t,nativeConstruct=getBuiltIn$3("Reflect","construct"),ObjectPrototype=Object.prototype,push$2=[].push,NEW_TARGET_BUG=fails$8((function(){function e(){}return!(nativeConstruct((function(){}),[],e)instanceof e)})),ARGS_BUG=!fails$8((function(){nativeConstruct((function(){}))})),FORCED$1=NEW_TARGET_BUG||ARGS_BUG;$$B({target:"Reflect",stat:!0,forced:FORCED$1,sham:FORCED$1},{construct:function(e,t){aConstructor$1(e),anObject$h(t);var r=arguments.length<3?e:aConstructor$1(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return nativeConstruct(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return apply$1(push$2,n,t),new(apply$1(bind$b,e,n))}var o=r.prototype,a=create$1(isObject$4(o)?o:ObjectPrototype),i=apply$1(e,a,t);return isObject$4(i)?i:a}});var path$a=path$l,construct$5=path$a.Reflect.construct,parent$14=construct$5,construct$4=parent$14,parent$13=construct$4,construct$3=parent$13,parent$12=construct$3,construct$2=parent$12,construct$1=construct$2,construct2=construct$1,_Reflect$construct=getDefaultExportFromCjs(construct2);function _getPrototypeOf(e){var t;return(_getPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty(t=_Object$getPrototypeOf).call(t):function(e){return e.__proto__||_Object$getPrototypeOf(e)})(e)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!_Reflect$construct)return!1;if(_Reflect$construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(_Reflect$construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;r=_Reflect$construct(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $$A=_export,toObject$4=toObject$b,nativeKeys=objectKeys$3,fails$7=fails$t,FAILS_ON_PRIMITIVES$2=fails$7((function(){nativeKeys(1)}));$$A({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$2},{keys:function(e){return nativeKeys(toObject$4(e))}});var path$9=path$l,keys$c=path$9.Object.keys,parent$11=keys$c,keys$b=parent$11,parent$10=keys$b,keys$a=parent$10,parent$$=keys$a,keys$9=parent$$,keys$8=keys$9,keys$7=keys$8,_Object$keys=getDefaultExportFromCjs(keys$7),$$z=_export,$filter=arrayIteration.filter,arrayMethodHasSpeciesSupport$2=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$2=arrayMethodHasSpeciesSupport$2("filter");$$z({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$2},{filter:function(e){return $filter(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$a=entryVirtual$f,filter$6=entryVirtual$a("Array").filter,isPrototypeOf$b=objectIsPrototypeOf,method$8=filter$6,ArrayPrototype$8=Array.prototype,filter$5=function(e){var t=e.filter;return e===ArrayPrototype$8||isPrototypeOf$b(ArrayPrototype$8,e)&&t===ArrayPrototype$8.filter?method$8:t},parent$_=filter$5,filter$4=parent$_,parent$Z=filter$4,filter$3=parent$Z,parent$Y=filter$3,filter$2=parent$Y,filter$1=filter$2,filter2=filter$1,_filterInstanceProperty=getDefaultExportFromCjs(filter2),entryVirtual$9=entryVirtual$f,concat$7=entryVirtual$9("Array").concat,isPrototypeOf$a=objectIsPrototypeOf,method$7=concat$7,ArrayPrototype$7=Array.prototype,concat$6=function(e){var t=e.concat;return e===ArrayPrototype$7||isPrototypeOf$a(ArrayPrototype$7,e)&&t===ArrayPrototype$7.concat?method$7:t},parent$X=concat$6,concat$5=parent$X,parent$W=concat$5,concat$4=parent$W,parent$V=concat$4,concat$3=parent$V,concat$2=concat$3,concat$1=concat$2,_concatInstanceProperty=getDefaultExportFromCjs(concat$1),path$8=path$l,getOwnPropertySymbols$5=path$8.Object.getOwnPropertySymbols,parent$U=getOwnPropertySymbols$5,getOwnPropertySymbols$4=parent$U,parent$T=getOwnPropertySymbols$4,getOwnPropertySymbols$3=parent$T,parent$S=getOwnPropertySymbols$3,getOwnPropertySymbols$2=parent$S,getOwnPropertySymbols$1=getOwnPropertySymbols$2,getOwnPropertySymbols2=getOwnPropertySymbols$1,_Object$getOwnPropertySymbols=getDefaultExportFromCjs(getOwnPropertySymbols2),eventemitter3={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,a||e,i),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?_sliceInstanceProperty(n).call(n,1):n);return _Object$getOwnPropertySymbols?_concatInstanceProperty(o).call(o,_Object$getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,i=new Array(a);o<a;o++)i[o]=n[o].fn;return i},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,a,i){var s=r?r+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],$=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),$){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,a),!0;case 6:return u.fn.call(u.context,t,n,o,a,i),!0}for(c=1,l=new Array($-1);c<$;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),$){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,o);break;default:if(!l)for(f=1,l=new Array($-1);f<$;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||i(this,a);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[a]=1===c.length?c[0]:c:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&i(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(eventemitter3);var eventemitter3Exports=eventemitter3.exports,ExtensionBase=function(e){_inherits(n,eventemitter3Exports.EventEmitter);var t,r=_createSuper(n);function n(){var e,t;_classCallCheck(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return _defineProperty(_assertThisInitialized(t=r.call.apply(r,_concatInstanceProperty(e=[this]).call(e,a))),"monitor",void 0),t}return _createClass(n,[{key:"isOpen",value:function(){return this._enable}},{key:"isSupported",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"_reportName",get:function(){return"plugin<".concat(this.name,">")}}]),n}(),getIteratorMethod$6=getIteratorMethod$9,getIteratorMethod_1=getIteratorMethod$6,parent$R=getIteratorMethod_1,getIteratorMethod$5=parent$R,parent$Q=getIteratorMethod$5,getIteratorMethod$4=parent$Q,parent$P=getIteratorMethod$4,getIteratorMethod$3=parent$P,getIteratorMethod$2=getIteratorMethod$3,getIteratorMethod$1=getIteratorMethod$2,_getIteratorMethod=getDefaultExportFromCjs(getIteratorMethod$1),$$y=_export,isArray$8=isArray$e;$$y({target:"Array",stat:!0},{isArray:isArray$8});var path$7=path$l,isArray$7=path$7.Array.isArray,parent$O=isArray$7,isArray$6=parent$O,parent$N=isArray$6,isArray$5=parent$N,parent$M=isArray$5,isArray$4=parent$M,isArray$3=isArray$4,isArray$2=isArray$3,_Array$isArray=getDefaultExportFromCjs(isArray$2),anObject$g=anObject$t,iteratorClose=iteratorClose$2,callWithSafeIterationClosing$1=function(e,t,r,n){try{return n?t(anObject$g(r)[0],r[1]):t(r)}catch(t){iteratorClose(e,"throw",t)}},bind$a=functionBindContext,call$c=functionCall,toObject$3=toObject$b,callWithSafeIterationClosing=callWithSafeIterationClosing$1,isArrayIteratorMethod=isArrayIteratorMethod$2,isConstructor3=isConstructor$4,lengthOfArrayLike$3=lengthOfArrayLike$a,createProperty$2=createProperty$6,getIterator$2=getIterator$4,getIteratorMethod=getIteratorMethod$9,$Array=Array,arrayFrom=function(e){var t=toObject$3(e),r=isConstructor3(this),n=arguments.length,o=n>1?arguments[1]:void 0,a=void 0!==o;a&&(o=bind$a(o,n>2?arguments[2]:void 0));var i,s,l,c,u,$,f=getIteratorMethod(t),p=0;if(!f||this===$Array&&isArrayIteratorMethod(f))for(i=lengthOfArrayLike$3(t),s=r?new this(i):$Array(i);i>p;p++)$=a?o(t[p],p):t[p],createProperty$2(s,p,$);else for(u=(c=getIterator$2(t,f)).next,s=r?new this:[];!(l=call$c(u,c)).done;p++)$=a?callWithSafeIterationClosing(c,o,[l.value,p],!0):l.value,createProperty$2(s,p,$);return s.length=p,s},$$x=_export,from$7=arrayFrom,checkCorrectnessOfIteration=checkCorrectnessOfIteration$2,INCORRECT_ITERATION=!checkCorrectnessOfIteration((function(e){Array.from(e)}));$$x({target:"Array",stat:!0,forced:INCORRECT_ITERATION},{from:from$7});var path$6=path$l,from$6=path$6.Array.from,parent$L=from$6,from$5=parent$L,parent$K=from$5,from$4=parent$K,parent$J=from$4,from$3=parent$J,from$2=from$3,from$1=from$2,_Array$from=getDefaultExportFromCjs(from$1);function _arrayLikeToArray(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 _unsupportedIterableToArray(e,t){var r;if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=_sliceInstanceProperty(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?_Array$from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}var internalMetadata={exports:{}},fails$6=fails$t,arrayBufferNonExtensible=fails$6((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fails$5=fails$t,isObject$3=isObject$j,classof$3=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE=arrayBufferNonExtensible,$isExtensible=Object.isExtensible,FAILS_ON_PRIMITIVES$1=fails$5((function(){$isExtensible(1)})),objectIsExtensible=FAILS_ON_PRIMITIVES$1||ARRAY_BUFFER_NON_EXTENSIBLE?function(e){return!!isObject$3(e)&&((!ARRAY_BUFFER_NON_EXTENSIBLE||"ArrayBuffer"!=classof$3(e))&&(!$isExtensible||$isExtensible(e)))}:$isExtensible,fails$4=fails$t,freezing=!fails$4((function(){return Object.isExtensible(Object.preventExtensions({}))})),$$w=_export,uncurryThis$5=functionUncurryThis,hiddenKeys=hiddenKeys$6,isObject$2=isObject$j,hasOwn$3=hasOwnProperty_1,defineProperty$3=objectDefineProperty.f,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertyNamesExternalModule=objectGetOwnPropertyNamesExternal,isExtensible2=objectIsExtensible,uid=uid$4,FREEZING=freezing,REQUIRED=!1,METADATA=uid("meta"),id=0,setMetadata=function(e){defineProperty$3(e,METADATA,{value:{objectID:"O"+id++,weakData:{}}})},fastKey$1=function(e,t){if(!isObject$2(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hasOwn$3(e,METADATA)){if(!isExtensible2(e))return"F";if(!t)return"E";setMetadata(e)}return e[METADATA].objectID},getWeakData=function(e,t){if(!hasOwn$3(e,METADATA)){if(!isExtensible2(e))return!0;if(!t)return!1;setMetadata(e)}return e[METADATA].weakData},onFreeze=function(e){return FREEZING&&REQUIRED&&isExtensible2(e)&&!hasOwn$3(e,METADATA)&&setMetadata(e),e},enable=function(){meta.enable=function(){},REQUIRED=!0;var e=getOwnPropertyNamesModule.f,t=uncurryThis$5([].splice),r={};r[METADATA]=1,e(r).length&&(getOwnPropertyNamesModule.f=function(r){for(var n=e(r),o=0,a=n.length;o<a;o++)if(n[o]===METADATA){t(n,o,1);break}return n},$$w({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:getOwnPropertyNamesExternalModule.f}))},meta=internalMetadata.exports={enable:enable,fastKey:fastKey$1,getWeakData:getWeakData,onFreeze:onFreeze};hiddenKeys[METADATA]=!0;var internalMetadataExports=internalMetadata.exports,$$v=_export,global$1=global$m,InternalMetadataModule=internalMetadataExports,fails$3=fails$t,createNonEnumerableProperty=createNonEnumerableProperty$8,iterate$f=iterate$l,anInstance$1=anInstance$3,isCallable$1=isCallable$l,isObject$1=isObject$j,setToStringTag=setToStringTag$7,defineProperty$2=objectDefineProperty.f,forEach2=arrayIteration.forEach,DESCRIPTORS$6=descriptors,InternalStateModule$1=internalState,setInternalState$1=InternalStateModule$1.set,internalStateGetterFor$1=InternalStateModule$1.getterFor,collection$1=function(e,t,r){var n,o=-1!==e.indexOf("Map"),a=-1!==e.indexOf("Weak"),i=o?"set":"add",s=global$1[e],l=s&&s.prototype,c={};if(DESCRIPTORS$6&&isCallable$1(s)&&(a||l.forEach&&!fails$3((function(){(new s).entries().next()})))){var u=(n=t((function(t,r){setInternalState$1(anInstance$1(t,u),{type:e,collection:new s}),null!=r&&iterate$f(r,t[i],{that:t,AS_ENTRIES:o})}))).prototype,$=internalStateGetterFor$1(e);forEach2(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||a&&"clear"==e||createNonEnumerableProperty(u,e,(function(r,n){var o=$(this).collection;if(!t&&a&&!isObject$1(r))return"get"==e&&void 0;var i=o[e](0===r?0:r,n);return t?this:i}))})),a||defineProperty$2(u,"size",{configurable:!0,get:function(){return $(this).collection.size}})}else n=r.getConstructor(t,e,o,i),InternalMetadataModule.enable();return setToStringTag(n,e,!1,!0),c[e]=n,$$v({global:!0,forced:!0},c),a||r.setStrong(n,e,o),n},defineBuiltIn=defineBuiltIn$6,defineBuiltIns$1=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:defineBuiltIn(e,n,t[n],r);return e},defineProperty$1=objectDefineProperty.f,create4=objectCreate,defineBuiltIns=defineBuiltIns$1,bind$9=functionBindContext,anInstance=anInstance$3,isNullOrUndefined$1=isNullOrUndefined$6,iterate$e=iterate$l,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$3,setSpecies=setSpecies$2,DESCRIPTORS$5=descriptors,fastKey=internalMetadataExports.fastKey,InternalStateModule=internalState,setInternalState=InternalStateModule.set,internalStateGetterFor=InternalStateModule.getterFor,collectionStrong$1={getConstructor:function(e,t,r,n){var o=e((function(e,o){anInstance(e,a),setInternalState(e,{type:t,index:create4(null),first:void 0,last:void 0,size:0}),DESCRIPTORS$5||(e.size=0),isNullOrUndefined$1(o)||iterate$e(o,e[n],{that:e,AS_ENTRIES:r})})),a=o.prototype,i=internalStateGetterFor(t),s=function(e,t,r){var n,o,a=i(e),s=l(e,t);return s?s.value=r:(a.last=s={index:o=fastKey(t,!0),key:t,value:r,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=s),n&&(n.next=s),DESCRIPTORS$5?a.size++:e.size++,"F"!==o&&(a.index[o]=s)),e},l=function(e,t){var r,n=i(e),o=fastKey(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return defineBuiltIns(a,{clear:function(){for(var e=i(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,DESCRIPTORS$5?e.size=0:this.size=0},delete:function(e){var t=this,r=i(t),n=l(t,e);if(n){var o=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=o),o&&(o.previous=a),r.first==n&&(r.first=o),r.last==n&&(r.last=a),DESCRIPTORS$5?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=i(this),n=bind$9(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!!l(this,e)}}),defineBuiltIns(a,r?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),DESCRIPTORS$5&&defineProperty$1(a,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=internalStateGetterFor(t),a=internalStateGetterFor(n);defineIterator(e,t,(function(e,t){setInternalState(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=a(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)?createIterResultObject("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,createIterResultObject(void 0,!0))}),r?"entries":"values",!r,!0),setSpecies(t)}},collection=collection$1,collectionStrong=collectionStrong$1;collection("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),collectionStrong);var path$5=path$l,map$c=path$5.Map,parent$I=map$c,map$b=parent$I,parent$H=map$b,map$a=parent$H,bind$8=functionBindContext,call$b=functionCall,aCallable$b=aCallable$m,aConstructor=aConstructor$3,isNullOrUndefined=isNullOrUndefined$6,iterate$d=iterate$l,push$1=[].push,collectionFrom=function(e){var t,r,n,o,a=arguments.length,i=a>1?arguments[1]:void 0;return aConstructor(this),(t=void 0!==i)&&aCallable$b(i),isNullOrUndefined(e)?new this:(r=[],t?(n=0,o=bind$8(i,a>2?arguments[2]:void 0),iterate$d(e,(function(e){call$b(push$1,r,o(e,n++))}))):iterate$d(e,push$1,{that:r}),new this(r))},$$u=_export,from3=collectionFrom;$$u({target:"Map",stat:!0,forced:!0},{from:from3});var arraySlice=arraySlice$4,collectionOf=function(){return new this(arraySlice(arguments))},$$t=_export,of2=collectionOf;$$t({target:"Map",stat:!0,forced:!0},{of:of2});var call$a=functionCall,aCallable$a=aCallable$m,anObject$f=anObject$t,collectionDeleteAll=function(){for(var e,t=anObject$f(this),r=aCallable$a(t.delete),n=!0,o=0,a=arguments.length;o<a;o++)e=call$a(r,t,arguments[o]),n=n&&e;return!!n},$$s=_export,deleteAll2=collectionDeleteAll;$$s({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:deleteAll2});var call$9=functionCall,aCallable$9=aCallable$m,anObject$e=anObject$t,mapEmplace=function(e,t){var r,n,o=anObject$e(this),a=aCallable$9(o.get),i=aCallable$9(o.has),s=aCallable$9(o.set);return call$9(i,o,e)?(r=call$9(a,o,e),"update"in t&&(r=t.update(r,e,o),call$9(s,o,e,r)),r):(n=t.insert(e,o),call$9(s,o,e,n),n)},$$r=_export,emplace2=mapEmplace;$$r({target:"Map",proto:!0,real:!0,forced:!0},{emplace:emplace2});var getIterator$1=getIterator$4,getMapIterator$a=getIterator$1,$$q=_export,anObject$d=anObject$t,bind$7=functionBindContext,getMapIterator$9=getMapIterator$a,iterate$c=iterate$l;$$q({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=anObject$d(this),r=getMapIterator$9(t),n=bind$7(e,arguments.length>1?arguments[1]:void 0);return!iterate$c(r,(function(e,r,o){if(!n(r,e,t))return o()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var $$p=_export,getBuiltIn$2=getBuiltIn$h,bind$6=functionBindContext,call$8=functionCall,aCallable$8=aCallable$m,anObject$c=anObject$t,speciesConstructor$2=speciesConstructor$5,getMapIterator$8=getMapIterator$a,iterate$b=iterate$l;$$p({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=anObject$c(this),r=getMapIterator$8(t),n=bind$6(e,arguments.length>1?arguments[1]:void 0),o=new(speciesConstructor$2(t,getBuiltIn$2("Map"))),a=aCallable$8(o.set);return iterate$b(r,(function(e,r){n(r,e,t)&&call$8(a,o,e,r)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});var $$o=_export,anObject$b=anObject$t,bind$5=functionBindContext,getMapIterator$7=getMapIterator$a,iterate$a=iterate$l;$$o({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=anObject$b(this),r=getMapIterator$7(t),n=bind$5(e,arguments.length>1?arguments[1]:void 0);return iterate$a(r,(function(e,r,o){if(n(r,e,t))return o(r)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var $$n=_export,anObject$a=anObject$t,bind$4=functionBindContext,getMapIterator$6=getMapIterator$a,iterate$9=iterate$l;$$n({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=anObject$a(this),r=getMapIterator$6(t),n=bind$4(e,arguments.length>1?arguments[1]:void 0);return iterate$9(r,(function(e,r,o){if(n(r,e,t))return o(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var $$m=_export,call$7=functionCall,uncurryThis$4=functionUncurryThis,aCallable$7=aCallable$m,getIterator=getIterator$4,iterate$8=iterate$l,push=uncurryThis$4([].push);$$m({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){aCallable$7(t);var r=getIterator(e),n=new this,o=aCallable$7(n.has),a=aCallable$7(n.get),i=aCallable$7(n.set);return iterate$8(r,(function(e){var r=t(e);call$7(o,n,r)?push(call$7(a,n,r),e):call$7(i,n,r,[e])}),{IS_ITERATOR:!0}),n}});var sameValueZero$1=function(e,t){return e===t||e!=e&&t!=t},$$l=_export,anObject$9=anObject$t,getMapIterator$5=getMapIterator$a,sameValueZero=sameValueZero$1,iterate$7=iterate$l;$$l({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return iterate$7(getMapIterator$5(anObject$9(this)),(function(t,r,n){if(sameValueZero(r,e))return n()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var $$k=_export,call$6=functionCall,iterate$6=iterate$l,aCallable$6=aCallable$m;$$k({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new this;aCallable$6(t);var n=aCallable$6(r.set);return iterate$6(e,(function(e){call$6(n,r,t(e),e)})),r}});var $$j=_export,anObject$8=anObject$t,getMapIterator$4=getMapIterator$a,iterate$5=iterate$l;$$j({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){return iterate$5(getMapIterator$4(anObject$8(this)),(function(t,r,n){if(r===e)return n(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var $$i=_export,getBuiltIn$1=getBuiltIn$h,bind$3=functionBindContext,call$5=functionCall,aCallable$5=aCallable$m,anObject$7=anObject$t,speciesConstructor$1=speciesConstructor$5,getMapIterator$3=getMapIterator$a,iterate$4=iterate$l;$$i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=anObject$7(this),r=getMapIterator$3(t),n=bind$3(e,arguments.length>1?arguments[1]:void 0),o=new(speciesConstructor$1(t,getBuiltIn$1("Map"))),a=aCallable$5(o.set);return iterate$4(r,(function(e,r){call$5(a,o,n(r,e,t),r)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});var $$h=_export,getBuiltIn=getBuiltIn$h,bind$2=functionBindContext,call$4=functionCall,aCallable$4=aCallable$m,anObject$6=anObject$t,speciesConstructor=speciesConstructor$5,getMapIterator$2=getMapIterator$a,iterate$3=iterate$l;$$h({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=anObject$6(this),r=getMapIterator$2(t),n=bind$2(e,arguments.length>1?arguments[1]:void 0),o=new(speciesConstructor(t,getBuiltIn("Map"))),a=aCallable$4(o.set);return iterate$3(r,(function(e,r){call$4(a,o,e,n(r,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});var $$g=_export,aCallable$3=aCallable$m,anObject$5=anObject$t,iterate$2=iterate$l;$$g({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=anObject$5(this),r=aCallable$3(t.set),n=arguments.length,o=0;o<n;)iterate$2(arguments[o++],r,{that:t,AS_ENTRIES:!0});return t}});var $$f=_export,anObject$4=anObject$t,aCallable$2=aCallable$m,getMapIterator$1=getMapIterator$a,iterate$1=iterate$l,$TypeError$5=TypeError;$$f({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=anObject$4(this),r=getMapIterator$1(t),n=arguments.length<2,o=n?void 0:arguments[1];if(aCallable$2(e),iterate$1(r,(function(r,a){n?(n=!1,o=a):o=e(o,a,r,t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),n)throw $TypeError$5("Reduce of empty map with no initial value");return o}});var $$e=_export,anObject$3=anObject$t,bind$1=functionBindContext,getMapIterator=getMapIterator$a,iterate=iterate$l;$$e({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=anObject$3(this),r=getMapIterator(t),n=bind$1(e,arguments.length>1?arguments[1]:void 0);return iterate(r,(function(e,r,o){if(n(r,e,t))return o()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var $$d=_export,call$3=functionCall,anObject$2=anObject$t,aCallable$1=aCallable$m,$TypeError$4=TypeError;$$d({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=anObject$2(this),n=aCallable$1(r.get),o=aCallable$1(r.has),a=aCallable$1(r.set),i=arguments.length;aCallable$1(t);var s=call$3(o,r,e);if(!s&&i<3)throw $TypeError$4("Updating absent value");var l=s?call$3(n,r,e):aCallable$1(i>2?arguments[2]:void 0)(e,r);return call$3(a,r,e,t(l,e,r)),r}});var call$2=functionCall,aCallable=aCallable$m,isCallable=isCallable$l,anObject$1=anObject$t,$TypeError$3=TypeError,mapUpsert=function(e,t){var r,n=anObject$1(this),o=aCallable(n.get),a=aCallable(n.has),i=aCallable(n.set),s=arguments.length>2?arguments[2]:void 0;if(!isCallable(t)&&!isCallable(s))throw $TypeError$3("At least one callback required");return call$2(a,n,e)?(r=call$2(o,n,e),isCallable(t)&&(r=t(r),call$2(i,n,e,r))):isCallable(s)&&(r=s(),call$2(i,n,e,r)),r},$$c=_export,upsert$1=mapUpsert;$$c({target:"Map",proto:!0,real:!0,forced:!0},{upsert:upsert$1});var $$b=_export,upsert2=mapUpsert;$$b({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:upsert2});var parent$G=map$a,map$9=parent$G,map$8=map$9,map$7=map$8,_Map=getDefaultExportFromCjs(map$7),RTCExtensionType=function(e){return e[e.CAPTURE=0]="CAPTURE",e[e.PRE_PROCESSING=1]="PRE_PROCESSING",e[e.ENCODE=2]="ENCODE",e[e.TRANSFER=3]="TRANSFER",e[e.POST_PROCESSING=4]="POST_PROCESSING",e[e.DECODE=5]="DECODE",e[e.RENDERING=6]="RENDERING",e}(RTCExtensionType||{}),StreamIndex=function(e){return e[e.STREAM_INDEX_MAIN=0]="STREAM_INDEX_MAIN",e[e.STREAM_INDEX_SCREEN=1]="STREAM_INDEX_SCREEN",e}(StreamIndex||{}),PreProcessingExtension=function(e){_inherits(r,ExtensionBase);var t=_createSuper(r);function r(){var e,n;_classCallCheck(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return _defineProperty(_assertThisInitialized(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,a))),"type",RTCExtensionType.PRE_PROCESSING),n}return _createClass(r)}(),entryVirtual$8=entryVirtual$f,values$6=entryVirtual$8("Array").values,parent$F=values$6,values$5=parent$F,classof$2=classof$c,hasOwn$2=hasOwnProperty_1,isPrototypeOf$9=objectIsPrototypeOf,method$6=values$5,ArrayPrototype$6=Array.prototype,DOMIterables$1={DOMTokenList:!0,NodeList:!0},values$4=function(e){var t=e.values;return e===ArrayPrototype$6||isPrototypeOf$9(ArrayPrototype$6,e)&&t===ArrayPrototype$6.values||hasOwn$2(DOMIterables$1,classof$2(e))?method$6:t},parent$E=values$4,values$3=parent$E,parent$D=values$3,values$2=parent$D,values$1=values$2,values=values$1,_valuesInstanceProperty=getDefaultExportFromCjs(values),entryVirtual$7=entryVirtual$f,keys$6=entryVirtual$7("Array").keys,parent$C=keys$6,keys$5=parent$C,classof$1=classof$c,hasOwn$1=hasOwnProperty_1,isPrototypeOf$8=objectIsPrototypeOf,method$5=keys$5,ArrayPrototype$5=Array.prototype,DOMIterables={DOMTokenList:!0,NodeList:!0},keys$4=function(e){var t=e.keys;return e===ArrayPrototype$5||isPrototypeOf$8(ArrayPrototype$5,e)&&t===ArrayPrototype$5.keys||hasOwn$1(DOMIterables,classof$1(e))?method$5:t},parent$B=keys$4,keys$3=parent$B,parent$A=keys$3,keys$2=parent$A,keys$1=keys$2,keys3=keys$1,_keysInstanceProperty=getDefaultExportFromCjs(keys3),$$a=_export,$includes=arrayIncludes.includes,fails$2=fails$t,BROKEN_ON_SPARSE=fails$2((function(){return!Array(1).includes()}));$$a({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$6=entryVirtual$f,includes$7=entryVirtual$6("Array").includes,isObject=isObject$j,classof=classofRaw$2,wellKnownSymbol$1=wellKnownSymbol$n,MATCH$2=wellKnownSymbol$1("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH$2])?!!t:"RegExp"==classof(e))},isRegExp=isRegexp,$TypeError$2=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$2("The method doesn't accept regular expressions");return e},wellKnownSymbol=wellKnownSymbol$n,MATCH$1=wellKnownSymbol("match"),correctIsRegexpLogic=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[MATCH$1]=!1,"/./"[e](t)}catch(e){}}return!1},$$9=_export,uncurryThis$3=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible$2=requireObjectCoercible$6,toString$4=toString$a,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=uncurryThis$3("".indexOf);$$9({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$4(requireObjectCoercible$2(this)),toString$4(notARegExp(e)),arguments.length>1?arguments[1]:void 0)}});var entryVirtual$5=entryVirtual$f,includes$6=entryVirtual$5("String").includes,isPrototypeOf$7=objectIsPrototypeOf,arrayMethod=includes$7,stringMethod=includes$6,ArrayPrototype$4=Array.prototype,StringPrototype$1=String.prototype,includes$5=function(e){var t=e.includes;return e===ArrayPrototype$4||isPrototypeOf$7(ArrayPrototype$4,e)&&t===ArrayPrototype$4.includes?arrayMethod:"string"==typeof e||e===StringPrototype$1||isPrototypeOf$7(StringPrototype$1,e)&&t===StringPrototype$1.includes?stringMethod:t},parent$z=includes$5,includes$4=parent$z,parent$y=includes$4,includes$3=parent$y,parent$x=includes$3,includes$2=parent$x,includes$1=includes$2,includes4=includes$1,_includesInstanceProperty=getDefaultExportFromCjs(includes4),path$4=path$l,apply=functionApply;path$4.JSON||(path$4.JSON={stringify:JSON.stringify});var getRandomValues,stringify$6=function(e,t,r){return apply(path$4.JSON.stringify,null,arguments)},parent$w=stringify$6,stringify$5=parent$w,parent$v=stringify$5,stringify$4=parent$v,parent$u=stringify$4,stringify$3=parent$u,stringify$2=stringify$3,stringify$1=stringify$2,_JSON$stringify=getDefaultExportFromCjs(stringify$1),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&!(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(e){return"string"==typeof e&&REGEX.test(e)}for(var byteToHex=[],i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));function stringify2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]).toLowerCase();if(!validate(r))throw TypeError("Stringified UUID is invalid");return r}function v4(e,t,r){var n=(e=e||{}).random||(e.rng||rng)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return stringify2(n)}var isSSR=function(){return"undefined"==typeof window},genUuid=function(){return v4()};function mediaTrackStringify(e){return null==e?"undefined | null":"string"==typeof e?e:_JSON$stringify({contentHint:e.contentHint,enabled:e.enabled,id:e.id,kind:e.kind,label:e.label,muted:e.muted,readyState:e.readyState})}function mediaStreamStringify(e){return null==e?"undefined | null":"string"==typeof e?e:_JSON$stringify({id:e.id,active:e.active})}function mediaSenderStringify(e){return null==e?"undefined | null":"string"==typeof e?e:_JSON$stringify({track:mediaTrackStringify(e.track)})}function mediaReceiverStringify(e){return null==e?"undefined | null":"string"==typeof e?e:_JSON$stringify({track:mediaTrackStringify(e.track)})}function mediaTransceiverStringify(e){return null==e?"undefined | null":"string"==typeof e?e:_JSON$stringify({currentDirection:e.currentDirection,direction:e.direction,mid:e.mid,stopped:e.stopped,receiver:mediaReceiverStringify(e.receiver),sender:mediaSenderStringify(e.sender)})}var DB_NAME$1="@byted/ve-rtc",STORE_NAME="@byted/ve-rtc",STORE_CACHED_SIZE_KEY="@byted/ve-rtc-cache-size",IDB=function(){function e(){_classCallCheck(this,e),_defineProperty(this,"storeKey",void 0),_defineProperty(this,"logLevel",void 0),_defineProperty(this,"LogfileSize",void 0),_defineProperty(this,"db",void 0),_defineProperty(this,"logId",void 0),_defineProperty(this,"cacheLog",void 0),_defineProperty(this,"cachedSize",void 0),_defineProperty(this,"preCacheTime",void 0),_defineProperty(this,"timer",void 0),_defineProperty(this,"_getSize",(function(e){return new Blob(e).size/1048576})),this.storeKey="",this.logId=1,this.cacheLog="",this.logLevel="none",this.LogfileSize=100,this._createStore()}return _createClass(e,[{key:"_createStore",value:function(){var e=this;if(!isSSR()&&window.indexedDB){var t=indexedDB.open(DB_NAME$1);t.onupgradeneeded=function(){t.result.createObjectStore(STORE_NAME);try{localStorage.removeItem(STORE_CACHED_SIZE_KEY)}catch(e){}},t.onerror=function(e){},t.onsuccess=function(){e.db=t.result,e._getCachedSize()}}}},{key:"_getCachedSize",value:function(){var e=this;try{var t=localStorage.getItem(STORE_CACHED_SIZE_KEY);if(t)this.cachedSize=Number(t);else _valuesInstanceProperty(this).call(this).then((function(t){e.cachedSize=e._getSize(t),e._setCachedSize()}))}catch(e){}}},{key:"_setCachedSize",value:function(){try{localStorage.setItem(STORE_CACHED_SIZE_KEY,"".concat(this.cachedSize))}catch(e){}}},{key:"_getStore",value:function(e){if(this.db)return this.db.transaction(STORE_NAME,e).objectStore(STORE_NAME)}},{key:"set",value:function(e){var t=this;return new _Promise((function(r,n){if("none"===t.logLevel)return r();var o;if(e&&t.preCacheTime&&t.preCacheTime-Date.now()<1e3)return t.cacheLog+=_concatInstanceProperty(o="\n\n".concat(t.logId,": ")).call(o,e),t.logId++,t.timer||(t.timer=setTimeout((function(){t.set("")}),1e3-(t.preCacheTime-Date.now()))),r();clearTimeout(t.timer),t.timer=null;var a=t._getStore("readwrite");if(!a)return n("get store fail");t.cachedSize&&t.cachedSize>t.LogfileSize&&t.keyEarliest().then((function(e){t.get(e).then((function(r){t.del(e).then((function(){t.cachedSize=t.cachedSize-t._getSize(["".concat(r)]),t._setCachedSize()}))}))}));var i=a.get(t.storeKey);i.onsuccess=function(){try{var o,s,l,c,u,$=_concatInstanceProperty(o="".concat(i.result||"")).call(o,t.cacheLog),f=e?_concatInstanceProperty(s=_concatInstanceProperty(l="".concat($?"\n\n":"")).call(l,t.logId,": ")).call(s,e):"";a.put(_concatInstanceProperty(c="".concat($)).call(c,f),t.storeKey),e&&t.logId++,t.cacheLog="",t.cachedSize=(t.cachedSize||0)+t._getSize([_concatInstanceProperty(u="".concat(t.cacheLog)).call(u,f)]),t._setCachedSize(),t.preCacheTime=Date.now(),r()}catch(r){var p;if(!e)return n(r);t.cacheLog+=_concatInstanceProperty(p="\n\n".concat(t.logId,": ")).call(p,e),t.logId++,n(r)}},i.onerror=function(r){var o;if(!e)return n(r);t.cacheLog+=_concatInstanceProperty(o="\n\n".concat(t.logId,": ")).call(o,e),t.logId++,n(r)}}))}},{key:"get",value:function(e){var t=this;return new _Promise((function(r,n){var o=t._getStore("readonly");if(!o)return n();var a=o.get(e);a.onsuccess=function(){r(a.result)},a.onerror=function(e){n(e)}}))}},{key:"del",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.storeKey;return new _Promise((function(r,n){var o=e._getStore("readwrite");if(!o)return n();var a=o.delete(t);a.onsuccess=function(){return r(a.result)},a.onerror=function(e){return n(e)}}))}},{key:"keyEarliest",value:function(){return _keysInstanceProperty(this).call(this).then((function(e){var t,r=Date.now();return e.forEach((function(e){if(e&&e.length){var n=e.split("-")[0];Number(n)<r&&(r=Number(n),t=e)}})),t}))}},{key:"keys",value:function(){var e=this;return new _Promise((function(t,r){var n=e._getStore("readonly");if(!n)return r();if(n.getAllKeys){var o=n.getAllKeys();return o.onsuccess=function(){t(o.result)},void(o.onerror=function(){r()})}var a=[];n.openCursor().onsuccess=function(){this.result&&(a.push(this.result.key),this.result.continue())},n.transaction.oncomplete=function(){return t(a)}}))}},{key:"values",value:function(){var e=this;return new _Promise((function(t,r){var n=e._getStore("readonly");if(!n)return r();if(n.getAll){var o=n.getAll();return o.onsuccess=function(){t(o.result)},void(o.onerror=function(){r()})}var a=[];n.openCursor().onsuccess=function(){this.result&&(a.push(this.result.value),this.result.continue())},n.transaction.oncomplete=function(){return t(a)}}))}},{key:"download",value:function(e){e=e||this.storeKey,this.get(e).then((function(t){var r=document.createElement("a");r.download="".concat(e,".txt"),r.href="data:text/paint;utf-8,".concat(t||""),r.click()}))}}]),e}(),iDB=new IDB,$$8=_export,$map=arrayIteration.map,arrayMethodHasSpeciesSupport$1=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport$1("map");$$8({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{map:function(e){return $map(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$4=entryVirtual$f,map$6=entryVirtual$4("Array").map,isPrototypeOf$6=objectIsPrototypeOf,method$4=map$6,ArrayPrototype$3=Array.prototype,map$5=function(e){var t=e.map;return e===ArrayPrototype$3||isPrototypeOf$6(ArrayPrototype$3,e)&&t===ArrayPrototype$3.map?method$4:t},parent$t=map$5,map$4=parent$t,parent$s=map$4,map$3=parent$s,parent$r=map$3,map$2=parent$r,map$1=map$2,map2=map$1,_mapInstanceProperty=getDefaultExportFromCjs(map2),toIntegerOrInfinity$2=toIntegerOrInfinity$6,toString$3=toString$a,requireObjectCoercible$1=requireObjectCoercible$6,$RangeError=RangeError,stringRepeat=function(e){var t=toString$3(requireObjectCoercible$1(this)),r="",n=toIntegerOrInfinity$2(e);if(n<0||n==1/0)throw $RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r},uncurryThis$2=functionUncurryThis,toLength=toLength$2,toString$2=toString$a,$repeat=stringRepeat,requireObjectCoercible=requireObjectCoercible$6,repeat2=uncurryThis$2($repeat),stringSlice=uncurryThis$2("".slice),ceil=Math.ceil,createMethod=function(e){return function(t,r,n){var o,a,i=toString$2(requireObjectCoercible(t)),s=toLength(r),l=i.length,c=void 0===n?" ":toString$2(n);return s<=l||""==c?i:((a=repeat2(c,ceil((o=s-l)/c.length))).length>o&&(a=stringSlice(a,0,o)),e?i+a:a+i)}},stringPad={start:createMethod(!1),end:createMethod(!0)},userAgent=engineUserAgent,stringPadWebkitBug=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent),$$7=_export,$padStart=stringPad.start,WEBKIT_BUG=stringPadWebkitBug;$$7({target:"String",proto:!0,forced:WEBKIT_BUG},{padStart:function(e){return $padStart(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$3=entryVirtual$f,padStart$6=entryVirtual$3("String").padStart,isPrototypeOf$5=objectIsPrototypeOf,method$3=padStart$6,StringPrototype=String.prototype,padStart$5=function(e){var t=e.padStart;return"string"==typeof e||e===StringPrototype||isPrototypeOf$5(StringPrototype,e)&&t===StringPrototype.padStart?method$3:t},parent$q=padStart$5,padStart$4=parent$q,parent$p=padStart$4,padStart$3=parent$p,parent$o=padStart$3,padStart$2=parent$o,padStart$1=padStart$2,padStart2=padStart$1,_padStartInstanceProperty=getDefaultExportFromCjs(padStart2);function _arrayWithoutHoles(e){if(_Array$isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(void 0!==_Symbol&&null!=_getIteratorMethod(e)||null!=e["@@iterator"])return _Array$from(e)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}var DESCRIPTORS$4=descriptors,isArray$1=isArray$e,$TypeError$1=TypeError,getOwnPropertyDescriptor$7=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS$4&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),arraySetLength=SILENT_ON_NON_WRITABLE_LENGTH_SET?function(e,t){if(isArray$1(e)&&!getOwnPropertyDescriptor$7(e,"length").writable)throw $TypeError$1("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},tryToString=tryToString$6,$TypeError=TypeError,deletePropertyOrThrow$1=function(e,t){if(!delete e[t])throw $TypeError("Cannot delete property "+tryToString(t)+" of "+tryToString(e))},$$6=_export,toObject$2=toObject$b,toAbsoluteIndex=toAbsoluteIndex$4,toIntegerOrInfinity$1=toIntegerOrInfinity$6,lengthOfArrayLike$2=lengthOfArrayLike$a,setArrayLength=arraySetLength,doesNotExceedSafeInteger$1=doesNotExceedSafeInteger$3,arraySpeciesCreate$1=arraySpeciesCreate$4,createProperty$1=createProperty$6,deletePropertyOrThrow=deletePropertyOrThrow$1,arrayMethodHasSpeciesSupport=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("splice"),max=Math.max,min=Math.min;$$6({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{splice:function(e,t){var r,n,o,a,i,s,l=toObject$2(this),c=lengthOfArrayLike$2(l),u=toAbsoluteIndex(e,c),$=arguments.length;for(0===$?r=n=0:1===$?(r=0,n=c-u):(r=$-2,n=min(max(toIntegerOrInfinity$1(t),0),c-u)),doesNotExceedSafeInteger$1(c+r-n),o=arraySpeciesCreate$1(l,n),a=0;a<n;a++)(i=u+a)in l&&createProperty$1(o,a,l[i]);if(o.length=n,r<n){for(a=u;a<c-n;a++)s=a+r,(i=a+n)in l?l[s]=l[i]:deletePropertyOrThrow(l,s);for(a=c;a>c-n+r;a--)deletePropertyOrThrow(l,a-1)}else if(r>n)for(a=c-n;a>u;a--)s=a+r-1,(i=a+n-1)in l?l[s]=l[i]:deletePropertyOrThrow(l,s);for(a=0;a<r;a++)l[a+u]=arguments[a+2];return setArrayLength(l,c-n+r),o}});var entryVirtual$2=entryVirtual$f,splice$6=entryVirtual$2("Array").splice,isPrototypeOf$4=objectIsPrototypeOf,method$2=splice$6,ArrayPrototype$2=Array.prototype,splice$5=function(e){var t=e.splice;return e===ArrayPrototype$2||isPrototypeOf$4(ArrayPrototype$2,e)&&t===ArrayPrototype$2.splice?method$2:t},parent$n=splice$5,splice$4=parent$n,parent$m=splice$4,splice$3=parent$m,parent$l=splice$3,splice$2=parent$l,splice$1=splice$2,splice2=splice$1,_spliceInstanceProperty=getDefaultExportFromCjs(splice2),$$5=_export,uncurryThis$1=functionUncurryThis,$indexOf=arrayIncludes.indexOf,arrayMethodIsStrict=arrayMethodIsStrict$2,nativeIndexOf=uncurryThis$1([].indexOf),NEGATIVE_ZERO=!!nativeIndexOf&&1/nativeIndexOf([1],1,-0)<0,STRICT_METHOD=arrayMethodIsStrict("indexOf");$$5({target:"Array",proto:!0,forced:NEGATIVE_ZERO||!STRICT_METHOD},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return NEGATIVE_ZERO?nativeIndexOf(this,e,t)||0:$indexOf(this,e,t)}});var entryVirtual$1=entryVirtual$f,indexOf$6=entryVirtual$1("Array").indexOf,isPrototypeOf$3=objectIsPrototypeOf,method$1=indexOf$6,ArrayPrototype$1=Array.prototype,indexOf$5=function(e){var t=e.indexOf;return e===ArrayPrototype$1||isPrototypeOf$3(ArrayPrototype$1,e)&&t===ArrayPrototype$1.indexOf?method$1:t},parent$k=indexOf$5,indexOf$4=parent$k,parent$j=indexOf$4,indexOf$3=parent$j,parent$i=indexOf$3,indexOf$2=parent$i,indexOf$1=indexOf$2,indexOf2=indexOf$1,_indexOfInstanceProperty=getDefaultExportFromCjs(indexOf2),EventEmitter=function(){function e(){_classCallCheck(this,e),_defineProperty(this,"_all",{})}return _createClass(e,[{key:"on",value:function(e,t){var r=this._all[e];r?r.push(t):this._all[e]=[t]}},{key:"once",value:function(e,t){var r=this;this.on(e,(function n(){t.apply(void 0,arguments),r.off(e,n)}))}},{key:"off",value:function(e,t){var r=this._all[e];null==r||_spliceInstanceProperty(r).call(r,_indexOfInstanceProperty(r).call(r,t)>>>0,1)}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=this._all[e];null==o||_sliceInstanceProperty(o).call(o).forEach((function(e){return e.apply(void 0,r)}))}},{key:"safeEmit",value:function(e){try{for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return this.emit.apply(this,_concatInstanceProperty(t=[e]).call(t,n))}catch(e){console.error(e)}}},{key:"destroy",value:function(){this._all={}}}]),e}(),configNumberKeys=["UPLOAD_CONSOLE_LENGTH_CUT","UPLOAD_REPORT_LIMIT"];function needToNumber(e){return _includesInstanceProperty(configNumberKeys).call(configNumberKeys,e)}var Config$1=function(e){_inherits(r,EventEmitter);var t=_createSuper(r);function r(){var e,n;_classCallCheck(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return _defineProperty(_assertThisInitialized(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,a))),"config",{UPLOAD_CONSOLE_ON:!1,UPLOAD_CONSOLE_LENGTH_CUT:200,UPLOAD_REPORT_LIMIT:45e4,ENABLE_REPORT_IDB_BUFFER:!1}),n}return _createClass(r,[{key:"setParameter",value:function(e,t){if(needToNumber(e))try{this.config[e]=Number(t)}catch(n){var r;return void console.warn(_concatInstanceProperty(r="Cannot convert core lib parameter ".concat(e,":")).call(r,t," into number"))}else this.config[e]=t;this.emit(e,this.config[e])}},{key:"getParameter",value:function(e){return this.config[e]}},{key:"getKeys",value:function(){return _Object$keys(this.config)}}]),r}(),CoreConfig=new Config$1,getOwnPropertyDescriptor$6={exports:{}},$$4=_export,fails$1=fails$t,toIndexedObject$1=toIndexedObject$a,nativeGetOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,DESCRIPTORS$3=descriptors,FAILS_ON_PRIMITIVES=fails$1((function(){nativeGetOwnPropertyDescriptor(1)})),FORCED=!DESCRIPTORS$3||FAILS_ON_PRIMITIVES;$$4({target:"Object",stat:!0,forced:FORCED,sham:!DESCRIPTORS$3},{getOwnPropertyDescriptor:function(e,t){return nativeGetOwnPropertyDescriptor(toIndexedObject$1(e),t)}});var path$3=path$l,Object$2=path$3.Object,getOwnPropertyDescriptor$5=getOwnPropertyDescriptor$6.exports=function(e,t){return Object$2.getOwnPropertyDescriptor(e,t)};Object$2.getOwnPropertyDescriptor.sham&&(getOwnPropertyDescriptor$5.sham=!0);var getOwnPropertyDescriptorExports=getOwnPropertyDescriptor$6.exports,parent$h=getOwnPropertyDescriptorExports,getOwnPropertyDescriptor$4=parent$h,parent$g=getOwnPropertyDescriptor$4,getOwnPropertyDescriptor$3=parent$g,parent$f=getOwnPropertyDescriptor$3,getOwnPropertyDescriptor$2=parent$f,getOwnPropertyDescriptor$1=getOwnPropertyDescriptor$2,getOwnPropertyDescriptor5=getOwnPropertyDescriptor$1,_Object$getOwnPropertyDescriptor=getDefaultExportFromCjs(getOwnPropertyDescriptor5),$$3=_export,DESCRIPTORS$2=descriptors,ownKeys$1=ownKeys$3,toIndexedObject=toIndexedObject$a,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,createProperty=createProperty$6;$$3({target:"Object",stat:!0,sham:!DESCRIPTORS$2},{getOwnPropertyDescriptors:function(e){for(var t,r,n=toIndexedObject(e),o=getOwnPropertyDescriptorModule.f,a=ownKeys$1(n),i={},s=0;a.length>s;)void 0!==(r=o(n,t=a[s++]))&&createProperty(i,t,r);return i}});var path$2=path$l,getOwnPropertyDescriptors$5=path$2.Object.getOwnPropertyDescriptors,parent$e=getOwnPropertyDescriptors$5,getOwnPropertyDescriptors$4=parent$e,parent$d=getOwnPropertyDescriptors$4,getOwnPropertyDescriptors$3=parent$d,parent$c=getOwnPropertyDescriptors$3,getOwnPropertyDescriptors$2=parent$c,getOwnPropertyDescriptors$1=getOwnPropertyDescriptors$2,getOwnPropertyDescriptors2=getOwnPropertyDescriptors$1,_Object$getOwnPropertyDescriptors=getDefaultExportFromCjs(getOwnPropertyDescriptors2),defineProperties$7={exports:{}},$$2=_export,DESCRIPTORS$1=descriptors,defineProperties$6=objectDefineProperties.f;$$2({target:"Object",stat:!0,forced:Object.defineProperties!==defineProperties$6,sham:!DESCRIPTORS$1},{defineProperties:defineProperties$6});var path$1=path$l,Object$1=path$1.Object,defineProperties$5=defineProperties$7.exports=function(e,t){return Object$1.defineProperties(e,t)};Object$1.defineProperties.sham&&(defineProperties$5.sham=!0);var definePropertiesExports=defineProperties$7.exports,parent$b=definePropertiesExports,defineProperties$4=parent$b,parent$a=defineProperties$4,defineProperties$3=parent$a,parent$9=defineProperties$3,defineProperties$2=parent$9,defineProperties$1=defineProperties$2,defineProperties4=defineProperties$1,_Object$defineProperties=getDefaultExportFromCjs(defineProperties4);function ownKeys2(e,t){var r=_Object$keys(e);if(_Object$getOwnPropertySymbols){var n=_Object$getOwnPropertySymbols(e);t&&(n=_filterInstanceProperty(n).call(n,(function(t){return _Object$getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?_forEachInstanceProperty(r=ownKeys2(Object(o),!0)).call(r,(function(t){_defineProperty(e,t,o[t])})):_Object$getOwnPropertyDescriptors?_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(o)):_forEachInstanceProperty(n=ownKeys2(Object(o))).call(n,(function(t){_Object$defineProperty(e,t,_Object$getOwnPropertyDescriptor(o,t))}))}return e}var DESCRIPTORS=descriptors,uncurryThis=functionUncurryThis,call$1=functionCall,fails=fails$t,objectKeys=objectKeys$3,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$b,IndexedObject=indexedObject,$assign=Object.assign,defineProperty5=Object.defineProperty,concat2=uncurryThis([].concat),objectAssign=!$assign||fails((function(){if(DESCRIPTORS&&1!==$assign({b:1},$assign(defineProperty5({},"a",{enumerable:!0,get:function(){defineProperty5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=$assign({},e)[r]||objectKeys($assign({},t)).join("")!=n}))?function(e,t){for(var r=toObject$1(e),n=arguments.length,o=1,a=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;n>o;)for(var s,l=IndexedObject(arguments[o++]),c=a?concat2(objectKeys(l),a(l)):objectKeys(l),u=c.length,$=0;u>$;)s=c[$++],DESCRIPTORS&&!call$1(i,l,s)||(r[s]=l[s]);return r}:$assign,$$1=_export,assign$7=objectAssign;$$1({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$7},{assign:assign$7});var path=path$l,assign$6=path.Object.assign,parent$8=assign$6,assign$5=parent$8,parent$7=assign$5,assign$4=parent$7,parent$6=assign$4,assign$3=parent$6,assign$2=assign$3,assign$1=assign$2,_Object$assign=getDefaultExportFromCjs(assign$1),isArray2=isArray$e,lengthOfArrayLike$1=lengthOfArrayLike$a,doesNotExceedSafeInteger=doesNotExceedSafeInteger$3,bind2=functionBindContext,flattenIntoArray$1=function(e,t,r,n,o,a,i,s){for(var l,c,u=o,$=0,f=!!i&&bind2(i,s);$<n;)$ in r&&(l=f?f(r[$],$,t):r[$],a>0&&isArray2(l)?(c=lengthOfArrayLike$1(l),u=flattenIntoArray$1(e,t,l,c,u,a-1)-1):(doesNotExceedSafeInteger(u+1),e[u]=l),u++),$++;return u},flattenIntoArray_1=flattenIntoArray$1,$=_export,flattenIntoArray=flattenIntoArray_1,toObject=toObject$b,lengthOfArrayLike=lengthOfArrayLike$a,toIntegerOrInfinity=toIntegerOrInfinity$6,arraySpeciesCreate=arraySpeciesCreate$4;$({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=toObject(this),r=lengthOfArrayLike(t),n=arraySpeciesCreate(t,0);return n.length=flattenIntoArray(n,t,t,r,0,void 0===e?1:toIntegerOrInfinity(e)),n}});var entryVirtual=entryVirtual$f,flat$6=entryVirtual("Array").flat,isPrototypeOf$2=objectIsPrototypeOf,method=flat$6,ArrayPrototype=Array.prototype,flat$5=function(e){var t=e.flat;return e===ArrayPrototype||isPrototypeOf$2(ArrayPrototype,e)&&t===ArrayPrototype.flat?method:t},parent$5=flat$5,flat$4=parent$5,parent$4=flat$4,flat$3=parent$4,parent$3=flat$3,flat$2=parent$3,flat$1=flat$2,flat2=flat$1,_flatInstanceProperty=getDefaultExportFromCjs(flat2),common={};!function(e){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=_sliceInstanceProperty(Array.prototype).call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==_typeof(n))throw new TypeError(n+"must be non-object");for(var o in n)r(n,o)&&(e[o]=n[o])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var n={arraySet:function(e,t,r,n,o){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),o);else for(var a=0;a<n;a++)e[o+a]=t[r+a]},flattenChunks:function(e){var t,r,n,o,a,i;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(i=new Uint8Array(n),o=0,t=0,r=e.length;t<r;t++)a=e[t],i.set(a,o),o+=a.length;return i}},o={arraySet:function(e,t,r,n,o){for(var a=0;a<n;a++)e[o+a]=t[r+a]},flattenChunks:function(e){return _concatInstanceProperty([]).apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,n)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(t)}(common);var deflate$4={},deflate$3={},trees$1={},utils$6=common,Z_FIXED$1=4,Z_BINARY=0,Z_TEXT=1,Z_UNKNOWN$1=2;function zero$1(e){for(var t=e.length;--t>=0;)e[t]=0}var STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,BL_CODES$1=19,HEAP_SIZE$1=2*L_CODES$1+1,MAX_BITS$1=15,Buf_size=16,MAX_BL_BITS=7,END_BLOCK=256,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],DIST_CODE_LEN=512,static_ltree=new Array(2*(L_CODES$1+2));zero$1(static_ltree);var static_dtree=new Array(2*D_CODES$1);zero$1(static_dtree);var _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);var _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);var base_length=new Array(LENGTH_CODES$1);zero$1(base_length);var static_l_desc,static_d_desc,static_bl_desc,base_dist=new Array(D_CODES$1);function StaticTreeDesc(e,t,r,n,o){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=o,this.has_stree=e&&e.length}function TreeDesc(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function d_code(e){return e<256?_dist_code[e]:_dist_code[256+(e>>>7)]}function put_short(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function send_bits(e,t,r){e.bi_valid>Buf_size-r?(e.bi_buf|=t<<e.bi_valid&65535,put_short(e,e.bi_buf),e.bi_buf=t>>Buf_size-e.bi_valid,e.bi_valid+=r-Buf_size):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function send_code(e,t,r){send_bits(e,r[2*t],r[2*t+1])}function bi_reverse(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function bi_flush(e){16===e.bi_valid?(put_short(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function gen_bitlen(e,t){var r,n,o,a,i,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,$=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,d=t.stat_desc.max_length,_=0;for(a=0;a<=MAX_BITS$1;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<HEAP_SIZE$1;r++)(a=l[2*l[2*(n=e.heap[r])+1]+1]+1)>d&&(a=d,_++),l[2*n+1]=a,n>c||(e.bl_count[a]++,i=0,n>=p&&(i=f[n-p]),s=l[2*n],e.opt_len+=s*(a+i),$&&(e.static_len+=s*(u[2*n+1]+i)));if(0!==_){do{for(a=d-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[d]--,_-=2}while(_>0);for(a=d;0!==a;a--)for(n=e.bl_count[a];0!==n;)(o=e.heap[--r])>c||(l[2*o+1]!==a&&(e.opt_len+=(a-l[2*o+1])*l[2*o],l[2*o+1]=a),n--)}}function gen_codes(e,t,r){var n,o,a=new Array(MAX_BITS$1+1),i=0;for(n=1;n<=MAX_BITS$1;n++)a[n]=i=i+r[n-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=bi_reverse(a[s]++,s))}}function tr_static_init(){var e,t,r,n,o,a=new Array(MAX_BITS$1+1);for(r=0,n=0;n<LENGTH_CODES$1-1;n++)for(base_length[n]=r,e=0;e<1<<extra_lbits[n];e++)_length_code[r++]=n;for(_length_code[r-1]=n,o=0,n=0;n<16;n++)for(base_dist[n]=o,e=0;e<1<<extra_dbits[n];e++)_dist_code[o++]=n;for(o>>=7;n<D_CODES$1;n++)for(base_dist[n]=o<<7,e=0;e<1<<extra_dbits[n]-7;e++)_dist_code[256+o++]=n;for(t=0;t<=MAX_BITS$1;t++)a[t]=0;for(e=0;e<=143;)static_ltree[2*e+1]=8,e++,a[8]++;for(;e<=255;)static_ltree[2*e+1]=9,e++,a[9]++;for(;e<=279;)static_ltree[2*e+1]=7,e++,a[7]++;for(;e<=287;)static_ltree[2*e+1]=8,e++,a[8]++;for(gen_codes(static_ltree,L_CODES$1+1,a),e=0;e<D_CODES$1;e++)static_dtree[2*e+1]=5,static_dtree[2*e]=bi_reverse(e,5);static_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,LITERALS$1+1,L_CODES$1,MAX_BITS$1),static_d_desc=new StaticTreeDesc(static_dtree,extra_dbits,0,D_CODES$1,MAX_BITS$1),static_bl_desc=new StaticTreeDesc(new Array(0),extra_blbits,0,BL_CODES$1,MAX_BL_BITS)}function init_block(e){var t;for(t=0;t<L_CODES$1;t++)e.dyn_ltree[2*t]=0;for(t=0;t<D_CODES$1;t++)e.dyn_dtree[2*t]=0;for(t=0;t<BL_CODES$1;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*END_BLOCK]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function bi_windup(e){e.bi_valid>8?put_short(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function copy_block(e,t,r,n){bi_windup(e),n&&(put_short(e,r),put_short(e,~r)),utils$6.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function smaller(e,t,r,n){var o=2*t,a=2*r;return e[o]<e[a]||e[o]===e[a]&&n[t]<=n[r]}function pqdownheap(e,t,r){for(var n=e.heap[r],o=r<<1;o<=e.heap_len&&(o<e.heap_len&&smaller(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!smaller(t,n,e.heap[o],e.depth));)e.heap[r]=e.heap[o],r=o,o<<=1;e.heap[r]=n}function compress_block(e,t,r){var n,o,a,i,s=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===n?send_code(e,o,t):(send_code(e,(a=_length_code[o])+LITERALS$1+1,t),0!==(i=extra_lbits[a])&&send_bits(e,o-=base_length[a],i),send_code(e,a=d_code(--n),r),0!==(i=extra_dbits[a])&&send_bits(e,n-=base_dist[a],i))}while(s<e.last_lit);send_code(e,END_BLOCK,t)}function build_tree(e,t){var r,n,o,a=t.dyn_tree,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=HEAP_SIZE$1,r=0;r<l;r++)0!==a[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=i[2*o+1]);for(t.max_code=c,r=e.heap_len>>1;r>=1;r--)pqdownheap(e,a,r);o=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pqdownheap(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*o]=a[2*r]+a[2*n],e.depth[o]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=o,e.heap[1]=o++,pqdownheap(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gen_bitlen(e,t),gen_codes(a,c,e.bl_count)}function scan_tree(e,t,r){var n,o,a=-1,i=t[1],s=0,l=7,c=4;for(0===i&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)o=i,i=t[2*(n+1)+1],++s<l&&o===i||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==a&&e.bl_tree[2*o]++,e.bl_tree[2*REP_3_6]++):s<=10?e.bl_tree[2*REPZ_3_10]++:e.bl_tree[2*REPZ_11_138]++,s=0,a=o,0===i?(l=138,c=3):o===i?(l=6,c=3):(l=7,c=4))}function send_tree(e,t,r){var n,o,a=-1,i=t[1],s=0,l=7,c=4;for(0===i&&(l=138,c=3),n=0;n<=r;n++)if(o=i,i=t[2*(n+1)+1],!(++s<l&&o===i)){if(s<c)do{send_code(e,o,e.bl_tree)}while(0!=--s);else 0!==o?(o!==a&&(send_code(e,o,e.bl_tree),s--),send_code(e,REP_3_6,e.bl_tree),send_bits(e,s-3,2)):s<=10?(send_code(e,REPZ_3_10,e.bl_tree),send_bits(e,s-3,3)):(send_code(e,REPZ_11_138,e.bl_tree),send_bits(e,s-11,7));s=0,a=o,0===i?(l=138,c=3):o===i?(l=6,c=3):(l=7,c=4)}}function build_bl_tree(e){var t;for(scan_tree(e,e.dyn_ltree,e.l_desc.max_code),scan_tree(e,e.dyn_dtree,e.d_desc.max_code),build_tree(e,e.bl_desc),t=BL_CODES$1-1;t>=3&&0===e.bl_tree[2*bl_order[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}function send_all_trees(e,t,r,n){var o;for(send_bits(e,t-257,5),send_bits(e,r-1,5),send_bits(e,n-4,4),o=0;o<n;o++)send_bits(e,e.bl_tree[2*bl_order[o]+1],3);send_tree(e,e.dyn_ltree,t-1),send_tree(e,e.dyn_dtree,r-1)}function detect_data_type(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return Z_BINARY;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return Z_TEXT;for(t=32;t<LITERALS$1;t++)if(0!==e.dyn_ltree[2*t])return Z_TEXT;return Z_BINARY}zero$1(base_dist);var static_init_done=!1;function _tr_init(e){static_init_done||(tr_static_init(),static_init_done=!0),e.l_desc=new TreeDesc(e.dyn_ltree,static_l_desc),e.d_desc=new TreeDesc(e.dyn_dtree,static_d_desc),e.bl_desc=new TreeDesc(e.bl_tree,static_bl_desc),e.bi_buf=0,e.bi_valid=0,init_block(e)}function _tr_stored_block(e,t,r,n){send_bits(e,(STORED_BLOCK<<1)+(n?1:0),3),copy_block(e,t,r,!0)}function _tr_align(e){send_bits(e,STATIC_TREES<<1,3),send_code(e,END_BLOCK,static_ltree),bi_flush(e)}function _tr_flush_block(e,t,r,n){var o,a,i=0;e.level>0?(e.strm.data_type===Z_UNKNOWN$1&&(e.strm.data_type=detect_data_type(e)),build_tree(e,e.l_desc),build_tree(e,e.d_desc),i=build_bl_tree(e),o=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=o&&(o=a)):o=a=r+5,r+4<=o&&-1!==t?_tr_stored_block(e,t,r,n):e.strategy===Z_FIXED$1||a===o?(send_bits(e,(STATIC_TREES<<1)+(n?1:0),3),compress_block(e,static_ltree,static_dtree)):(send_bits(e,(DYN_TREES<<1)+(n?1:0),3),send_all_trees(e,e.l_desc.max_code+1,e.d_desc.max_code+1,i+1),compress_block(e,e.dyn_ltree,e.dyn_dtree)),init_block(e),n&&bi_windup(e)}function _tr_tally(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(_length_code[r]+LITERALS$1+1)]++,e.dyn_dtree[2*d_code(t)]++),e.last_lit===e.lit_bufsize-1}function adler32$2(e,t,r,n){for(var o=65535&e|0,a=e>>>16&65535|0,i=0;0!==r;){r-=i=r>2e3?2e3:r;do{a=a+(o=o+t[n++]|0)|0}while(--i);o%=65521,a%=65521}return o|a<<16|0}trees$1._tr_init=_tr_init,trees$1._tr_stored_block=_tr_stored_block,trees$1._tr_flush_block=_tr_flush_block,trees$1._tr_tally=_tr_tally,trees$1._tr_align=_tr_align;var adler32_1=adler32$2;function makeTable(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}var crcTable=makeTable();function crc32$2(e,t,r,n){var o=crcTable,a=n+r;e^=-1;for(var i=n;i<a;i++)e=e>>>8^o[255&(e^t[i])];return-1^e}var configuration_table,crc32_1=crc32$2,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},utils$5=common,trees=trees$1,adler32$1=adler32_1,crc32$1=crc32_1,msg$2=messages,Z_NO_FLUSH$1=0,Z_PARTIAL_FLUSH=1,Z_FULL_FLUSH=3,Z_FINISH$2=4,Z_BLOCK$1=5,Z_OK$2=0,Z_STREAM_END$2=1,Z_STREAM_ERROR$1=-2,Z_DATA_ERROR$1=-3,Z_BUF_ERROR$1=-5,Z_DEFAULT_COMPRESSION$1=-1,Z_FILTERED=1,Z_HUFFMAN_ONLY=2,Z_RLE=3,Z_FIXED=4,Z_DEFAULT_STRATEGY$1=0,Z_UNKNOWN=2,Z_DEFLATED$2=8,MAX_MEM_LEVEL=9,MAX_WBITS$1=15,DEF_MEM_LEVEL=8,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,D_CODES=30,BL_CODES=19,HEAP_SIZE=2*L_CODES+1,MAX_BITS=15,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1,PRESET_DICT=32,INIT_STATE=42,EXTRA_STATE=69,NAME_STATE=73,COMMENT_STATE=91,HCRC_STATE=103,BUSY_STATE=113,FINISH_STATE=666,BS_NEED_MORE=1,BS_BLOCK_DONE=2,BS_FINISH_STARTED=3,BS_FINISH_DONE=4,OS_CODE=3;function err(e,t){return e.msg=msg$2[t],t}function rank(e){return(e<<1)-(e>4?9:0)}function zero(e){for(var t=e.length;--t>=0;)e[t]=0}function flush_pending(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(utils$5.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function flush_block_only(e,t){trees._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,flush_pending(e.strm)}function put_byte(e,t){e.pending_buf[e.pending++]=t}function putShortMSB(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function read_buf(e,t,r,n){var o=e.avail_in;return o>n&&(o=n),0===o?0:(e.avail_in-=o,utils$5.arraySet(t,e.input,e.next_in,o,r),1===e.state.wrap?e.adler=adler32$1(e.adler,t,o,r):2===e.state.wrap&&(e.adler=crc32$1(e.adler,t,o,r)),e.next_in+=o,e.total_in+=o,o)}function longest_match(e,t){var r,n,o=e.max_chain_length,a=e.strstart,i=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-MIN_LOOKAHEAD?e.strstart-(e.w_size-MIN_LOOKAHEAD):0,c=e.window,u=e.w_mask,$=e.prev,f=e.strstart+MAX_MATCH,p=c[a+i-1],d=c[a+i];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+i]===d&&c[r+i-1]===p&&c[r]===c[a]&&c[++r]===c[a+1]){a+=2,r++;do{}while(c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&c[++a]===c[++r]&&a<f);if(n=MAX_MATCH-(f-a),a=f-MAX_MATCH,n>i){if(e.match_start=t,i=n,n>=s)break;p=c[a+i-1],d=c[a+i]}}}while((t=$[t&u])>l&&0!=--o);return i<=e.lookahead?i:e.lookahead}function fill_window(e){var t,r,n,o,a,i=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=i+(i-MIN_LOOKAHEAD)){utils$5.arraySet(e.window,e.window,i,i,0),e.match_start-=i,e.strstart-=i,e.block_start-=i,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=i?n-i:0}while(--r);t=r=i;do{n=e.prev[--t],e.prev[t]=n>=i?n-i:0}while(--r);o+=i}if(0===e.strm.avail_in)break;if(r=read_buf(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=r,e.lookahead+e.insert>=MIN_MATCH)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+MIN_MATCH-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<MIN_MATCH)););}while(e.lookahead<MIN_LOOKAHEAD&&0!==e.strm.avail_in)}function deflate_stored(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(fill_window(e),0===e.lookahead&&t===Z_NO_FLUSH$1)return BS_NEED_MORE;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE;if(e.strstart-e.block_start>=e.w_size-MIN_LOOKAHEAD&&(flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$2?(flush_block_only(e,!0),0===e.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):(e.strstart>e.block_start&&(flush_block_only(e,!1),e.strm.avail_out),BS_NEED_MORE)}function deflate_fast(e,t){for(var r,n;;){if(e.lookahead<MIN_LOOKAHEAD){if(fill_window(e),e.lookahead<MIN_LOOKAHEAD&&t===Z_NO_FLUSH$1)return BS_NEED_MORE;if(0===e.lookahead)break}if(r=0,e.lookahead>=MIN_MATCH&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+MIN_MATCH-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-MIN_LOOKAHEAD&&(e.match_length=longest_match(e,r)),e.match_length>=MIN_MATCH)if(n=trees._tr_tally(e,e.strstart-e.match_start,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=MIN_MATCH){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+MIN_MATCH-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=trees._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE}return e.insert=e.strstart<MIN_MATCH-1?e.strstart:MIN_MATCH-1,t===Z_FINISH$2?(flush_block_only(e,!0),0===e.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):e.last_lit&&(flush_block_only(e,!1),0===e.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}function deflate_slow(e,t){for(var r,n,o;;){if(e.lookahead<MIN_LOOKAHEAD){if(fill_window(e),e.lookahead<MIN_LOOKAHEAD&&t===Z_NO_FLUSH$1)return BS_NEED_MORE;if(0===e.lookahead)break}if(r=0,e.lookahead>=MIN_MATCH&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+MIN_MATCH-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=MIN_MATCH-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-MIN_LOOKAHEAD&&(e.match_length=longest_match(e,r),e.match_length<=5&&(e.strategy===Z_FILTERED||e.match_length===MIN_MATCH&&e.strstart-e.match_start>4096)&&(e.match_length=MIN_MATCH-1)),e.prev_length>=MIN_MATCH&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-MIN_MATCH,n=trees._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-MIN_MATCH),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+MIN_MATCH-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=MIN_MATCH-1,e.strstart++,n&&(flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE}else if(e.match_available){if((n=trees._tr_tally(e,0,e.window[e.strstart-1]))&&flush_block_only(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return BS_NEED_MORE}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=trees._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<MIN_MATCH-1?e.strstart:MIN_MATCH-1,t===Z_FINISH$2?(flush_block_only(e,!0),0===e.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):e.last_lit&&(flush_block_only(e,!1),0===e.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}function deflate_rle(e,t){for(var r,n,o,a,i=e.window;;){if(e.lookahead<=MAX_MATCH){if(fill_window(e),e.lookahead<=MAX_MATCH&&t===Z_NO_FLUSH$1)return BS_NEED_MORE;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=MIN_MATCH&&e.strstart>0&&(n=i[o=e.strstart-1])===i[++o]&&n===i[++o]&&n===i[++o]){a=e.strstart+MAX_MATCH;do{}while(n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&n===i[++o]&&o<a);e.match_length=MAX_MATCH-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=MIN_MATCH?(r=trees._tr_tally(e,1,e.match_length-MIN_MATCH),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=trees._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$2?(flush_block_only(e,!0),0===e.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):e.last_lit&&(flush_block_only(e,!1),0===e.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}function deflate_huff(e,t){for(var r;;){if(0===e.lookahead&&(fill_window(e),0===e.lookahead)){if(t===Z_NO_FLUSH$1)return BS_NEED_MORE;break}if(e.match_length=0,r=trees._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(flush_block_only(e,!1),0===e.strm.avail_out))return BS_NEED_MORE}return e.insert=0,t===Z_FINISH$2?(flush_block_only(e,!0),0===e.strm.avail_out?BS_FINISH_STARTED:BS_FINISH_DONE):e.last_lit&&(flush_block_only(e,!1),0===e.strm.avail_out)?BS_NEED_MORE:BS_BLOCK_DONE}function Config(e,t,r,n,o){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=o}function lm_init(e){e.window_size=2*e.w_size,zero(e.head),e.max_lazy_match=configuration_table[e.level].max_lazy,e.good_match=configuration_table[e.level].good_length,e.nice_match=configuration_table[e.level].nice_length,e.max_chain_length=configuration_table[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=MIN_MATCH-1,e.match_available=0,e.ins_h=0}function DeflateState(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Z_DEFLATED$2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new utils$5.Buf16(2*HEAP_SIZE),this.dyn_dtree=new utils$5.Buf16(2*(2*D_CODES+1)),this.bl_tree=new utils$5.Buf16(2*(2*BL_CODES+1)),zero(this.dyn_ltree),zero(this.dyn_dtree),zero(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new utils$5.Buf16(MAX_BITS+1),this.heap=new utils$5.Buf16(2*L_CODES+1),zero(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new utils$5.Buf16(2*L_CODES+1),zero(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function deflateResetKeep(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=Z_UNKNOWN,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?INIT_STATE:BUSY_STATE,e.adler=2===t.wrap?0:1,t.last_flush=Z_NO_FLUSH$1,trees._tr_init(t),Z_OK$2):err(e,Z_STREAM_ERROR$1)}function deflateReset(e){var t=deflateResetKeep(e);return t===Z_OK$2&&lm_init(e.state),t}function deflateSetHeader(e,t){return e&&e.state?2!==e.state.wrap?Z_STREAM_ERROR$1:(e.state.gzhead=t,Z_OK$2):Z_STREAM_ERROR$1}function deflateInit2(e,t,r,n,o,a){if(!e)return Z_STREAM_ERROR$1;var i=1;if(t===Z_DEFAULT_COMPRESSION$1&&(t=6),n<0?(i=0,n=-n):n>15&&(i=2,n-=16),o<1||o>MAX_MEM_LEVEL||r!==Z_DEFLATED$2||n<8||n>15||t<0||t>9||a<0||a>Z_FIXED)return err(e,Z_STREAM_ERROR$1);8===n&&(n=9);var s=new DeflateState;return e.state=s,s.strm=e,s.wrap=i,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=o+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+MIN_MATCH-1)/MIN_MATCH),s.window=new utils$5.Buf8(2*s.w_size),s.head=new utils$5.Buf16(s.hash_size),s.prev=new utils$5.Buf16(s.w_size),s.lit_bufsize=1<<o+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new utils$5.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,deflateReset(e)}function deflateInit(e,t){return deflateInit2(e,t,Z_DEFLATED$2,MAX_WBITS$1,DEF_MEM_LEVEL,Z_DEFAULT_STRATEGY$1)}function deflate$2(e,t){var r,n,o,a;if(!e||!e.state||t>Z_BLOCK$1||t<0)return e?err(e,Z_STREAM_ERROR$1):Z_STREAM_ERROR$1;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||n.status===FINISH_STATE&&t!==Z_FINISH$2)return err(e,0===e.avail_out?Z_BUF_ERROR$1:Z_STREAM_ERROR$1);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===INIT_STATE)if(2===n.wrap)e.adler=0,put_byte(n,31),put_byte(n,139),put_byte(n,8),n.gzhead?(put_byte(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),put_byte(n,255&n.gzhead.time),put_byte(n,n.gzhead.time>>8&255),put_byte(n,n.gzhead.time>>16&255),put_byte(n,n.gzhead.time>>24&255),put_byte(n,9===n.level?2:n.strategy>=Z_HUFFMAN_ONLY||n.level<2?4:0),put_byte(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(put_byte(n,255&n.gzhead.extra.length),put_byte(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=EXTRA_STATE):(put_byte(n,0),put_byte(n,0),put_byte(n,0),put_byte(n,0),put_byte(n,0),put_byte(n,9===n.level?2:n.strategy>=Z_HUFFMAN_ONLY||n.level<2?4:0),put_byte(n,OS_CODE),n.status=BUSY_STATE);else{var i=Z_DEFLATED$2+(n.w_bits-8<<4)<<8;i|=(n.strategy>=Z_HUFFMAN_ONLY||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(i|=PRESET_DICT),i+=31-i%31,n.status=BUSY_STATE,putShortMSB(n,i),0!==n.strstart&&(putShortMSB(n,e.adler>>>16),putShortMSB(n,65535&e.adler)),e.adler=1}if(n.status===EXTRA_STATE)if(n.gzhead.extra){for(o=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),flush_pending(e),o=n.pending,n.pending!==n.pending_buf_size));)put_byte(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=NAME_STATE)}else n.status=NAME_STATE;if(n.status===NAME_STATE)if(n.gzhead.name){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),flush_pending(e),o=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,put_byte(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),0===a&&(n.gzindex=0,n.status=COMMENT_STATE)}else n.status=COMMENT_STATE;if(n.status===COMMENT_STATE)if(n.gzhead.comment){o=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),flush_pending(e),o=n.pending,n.pending===n.pending_buf_size)){a=1;break}a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,put_byte(n,a)}while(0!==a);n.gzhead.hcrc&&n.pending>o&&(e.adler=crc32$1(e.adler,n.pending_buf,n.pending-o,o)),0===a&&(n.status=HCRC_STATE)}else n.status=HCRC_STATE;if(n.status===HCRC_STATE&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&flush_pending(e),n.pending+2<=n.pending_buf_size&&(put_byte(n,255&e.adler),put_byte(n,e.adler>>8&255),e.adler=0,n.status=BUSY_STATE)):n.status=BUSY_STATE),0!==n.pending){if(flush_pending(e),0===e.avail_out)return n.last_flush=-1,Z_OK$2}else if(0===e.avail_in&&rank(t)<=rank(r)&&t!==Z_FINISH$2)return err(e,Z_BUF_ERROR$1);if(n.status===FINISH_STATE&&0!==e.avail_in)return err(e,Z_BUF_ERROR$1);if(0!==e.avail_in||0!==n.lookahead||t!==Z_NO_FLUSH$1&&n.status!==FINISH_STATE){var s=n.strategy===Z_HUFFMAN_ONLY?deflate_huff(n,t):n.strategy===Z_RLE?deflate_rle(n,t):configuration_table[n.level].func(n,t);if(s!==BS_FINISH_STARTED&&s!==BS_FINISH_DONE||(n.status=FINISH_STATE),s===BS_NEED_MORE||s===BS_FINISH_STARTED)return 0===e.avail_out&&(n.last_flush=-1),Z_OK$2;if(s===BS_BLOCK_DONE&&(t===Z_PARTIAL_FLUSH?trees._tr_align(n):t!==Z_BLOCK$1&&(trees._tr_stored_block(n,0,0,!1),t===Z_FULL_FLUSH&&(zero(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),flush_pending(e),0===e.avail_out))return n.last_flush=-1,Z_OK$2}return t!==Z_FINISH$2?Z_OK$2:n.wrap<=0?Z_STREAM_END$2:(2===n.wrap?(put_byte(n,255&e.adler),put_byte(n,e.adler>>8&255),put_byte(n,e.adler>>16&255),put_byte(n,e.adler>>24&255),put_byte(n,255&e.total_in),put_byte(n,e.total_in>>8&255),put_byte(n,e.total_in>>16&255),put_byte(n,e.total_in>>24&255)):(putShortMSB(n,e.adler>>>16),putShortMSB(n,65535&e.adler)),flush_pending(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?Z_OK$2:Z_STREAM_END$2)}function deflateEnd(e){var t;return e&&e.state?(t=e.state.status)!==INIT_STATE&&t!==EXTRA_STATE&&t!==NAME_STATE&&t!==COMMENT_STATE&&t!==HCRC_STATE&&t!==BUSY_STATE&&t!==FINISH_STATE?err(e,Z_STREAM_ERROR$1):(e.state=null,t===BUSY_STATE?err(e,Z_DATA_ERROR$1):Z_OK$2):Z_STREAM_ERROR$1}function deflateSetDictionary(e,t){var r,n,o,a,i,s,l,c,u=t.length;if(!e||!e.state)return Z_STREAM_ERROR$1;if(2===(a=(r=e.state).wrap)||1===a&&r.status!==INIT_STATE||r.lookahead)return Z_STREAM_ERROR$1;for(1===a&&(e.adler=adler32$1(e.adler,t,u,0)),r.wrap=0,u>=r.w_size&&(0===a&&(zero(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new utils$5.Buf8(r.w_size),utils$5.arraySet(c,t,u-r.w_size,r.w_size,0),t=c,u=r.w_size),i=e.avail_in,s=e.next_in,l=e.input,e.avail_in=u,e.next_in=0,e.input=t,fill_window(r);r.lookahead>=MIN_MATCH;){n=r.strstart,o=r.lookahead-(MIN_MATCH-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+MIN_MATCH-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=MIN_MATCH-1,fill_window(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=MIN_MATCH-1,r.match_available=0,e.next_in=s,e.input=l,e.avail_in=i,r.wrap=a,Z_OK$2}configuration_table=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)],deflate$3.deflateInit=deflateInit,deflate$3.deflateInit2=deflateInit2,deflate$3.deflateReset=deflateReset,deflate$3.deflateResetKeep=deflateResetKeep,deflate$3.deflateSetHeader=deflateSetHeader,deflate$3.deflate=deflate$2,deflate$3.deflateEnd=deflateEnd,deflate$3.deflateSetDictionary=deflateSetDictionary,deflate$3.deflateInfo="pako deflate (from Nodeca project)";var strings$2={},utils$4=common,STR_APPLY_OK=!0,STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,[0])}catch(e){STR_APPLY_OK=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){STR_APPLY_UIA_OK=!1}for(var _utf8len=new utils$4.Buf8(256),q=0;q<256;q++)_utf8len[q]=q>=252?6:q>=248?5:q>=240?4:q>=224?3:q>=192?2:1;function buf2binstring(e,t){if(t<65534&&(e.subarray&&STR_APPLY_UIA_OK||!e.subarray&&STR_APPLY_OK))return String.fromCharCode.apply(null,utils$4.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}function ZStream$2(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}_utf8len[254]=_utf8len[254]=1,strings$2.string2buf=function(e){var t,r,n,o,a,i=e.length,s=0;for(o=0;o<i;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<i&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new utils$4.Buf8(s),a=0,o=0;a<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<i&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},strings$2.buf2binstring=function(e){return buf2binstring(e,e.length)},strings$2.binstring2buf=function(e){for(var t=new utils$4.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},strings$2.buf2string=function(e,t){var r,n,o,a,i=t||e.length,s=new Array(2*i);for(n=0,r=0;r<i;)if((o=e[r++])<128)s[n++]=o;else if((a=_utf8len[o])>4)s[n++]=65533,r+=a-1;else{for(o&=2===a?31:3===a?15:7;a>1&&r<i;)o=o<<6|63&e[r++],a--;a>1?s[n++]=65533:o<65536?s[n++]=o:(o-=65536,s[n++]=55296|o>>10&1023,s[n++]=56320|1023&o)}return buf2binstring(s,n)},strings$2.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+_utf8len[e[r]]>t?r:t};var zstream=ZStream$2,zlib_deflate=deflate$3,utils$3=common,strings$1=strings$2,msg$1=messages,ZStream$1=zstream,toString$1=Object.prototype.toString,Z_NO_FLUSH=0,Z_FINISH$1=4,Z_OK$1=0,Z_STREAM_END$1=1,Z_SYNC_FLUSH=2,Z_DEFAULT_COMPRESSION=-1,Z_DEFAULT_STRATEGY=0,Z_DEFLATED$1=8;function Deflate(e){if(!(this instanceof Deflate))return new Deflate(e);this.options=utils$3.assign({level:Z_DEFAULT_COMPRESSION,method:Z_DEFLATED$1,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z_DEFAULT_STRATEGY,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream$1,this.strm.avail_out=0;var r=zlib_deflate.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Z_OK$1)throw new Error(msg$1[r]);if(t.header&&zlib_deflate.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(n="string"==typeof t.dictionary?strings$1.string2buf(t.dictionary):"[object ArrayBuffer]"===toString$1.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=zlib_deflate.deflateSetDictionary(this.strm,n))!==Z_OK$1)throw new Error(msg$1[r]);this._dict_set=!0}}function deflate$1(e,t){var r=new Deflate(t);if(r.push(e,!0),r.err)throw r.msg||msg$1[r.err];return r.result}function deflateRaw(e,t){return(t=t||{}).raw=!0,deflate$1(e,t)}function gzip(e,t){return(t=t||{}).gzip=!0,deflate$1(e,t)}Deflate.prototype.push=function(e,t){var r,n,o=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:!0===t?Z_FINISH$1:Z_NO_FLUSH,"string"==typeof e?o.input=strings$1.string2buf(e):"[object ArrayBuffer]"===toString$1.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new utils$3.Buf8(a),o.next_out=0,o.avail_out=a),(r=zlib_deflate.deflate(o,n))!==Z_STREAM_END$1&&r!==Z_OK$1)return this.onEnd(r),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||n!==Z_FINISH$1&&n!==Z_SYNC_FLUSH)||("string"===this.options.to?this.onData(strings$1.buf2binstring(utils$3.shrinkBuf(o.output,o.next_out))):this.onData(utils$3.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&r!==Z_STREAM_END$1);return n===Z_FINISH$1?(r=zlib_deflate.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Z_OK$1):n!==Z_SYNC_FLUSH||(this.onEnd(Z_OK$1),o.avail_out=0,!0)},Deflate.prototype.onData=function(e){this.chunks.push(e)},Deflate.prototype.onEnd=function(e){e===Z_OK$1&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=utils$3.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},deflate$4.Deflate=Deflate,deflate$4.deflate=deflate$1,deflate$4.deflateRaw=deflateRaw,deflate$4.gzip=gzip;var inflate$4={},anObject=anObject$t,regexpFlags=function(){var e=anObject(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},call=functionCall,hasOwn2=hasOwnProperty_1,isPrototypeOf$1=objectIsPrototypeOf,regExpFlags=regexpFlags,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$1||hasOwn2(e,"flags")||!isPrototypeOf$1(RegExpPrototype$1,e)?t:call(regExpFlags,e)},getRegExpFlags=regexpGetFlags,flags$6=getRegExpFlags,isPrototypeOf=objectIsPrototypeOf,flags$5=flags$6,RegExpPrototype=RegExp.prototype,flags_1=function(e){return e===RegExpPrototype||isPrototypeOf(RegExpPrototype,e)?flags$5(e):e.flags},parent$2=flags_1,flags$4=parent$2,parent$1=flags$4,flags$3=parent$1,parent=flags$3,flags$2=parent,flags$1=flags$2,flags=flags$1,_flagsInstanceProperty=getDefaultExportFromCjs(flags),inflate$3={},BAD$1=30,TYPE$1=12,inffast=function(e,t){var r,n,o,a,i,s,l,c,u,$,f,p,d,_,y,h,b,g,S,m,E,O,v,I,T;r=e.state,n=e.next_in,I=e.input,o=n+(e.avail_in-5),a=e.next_out,T=e.output,i=a-(t-e.avail_out),s=a+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,$=r.wnext,f=r.window,p=r.hold,d=r.bits,_=r.lencode,y=r.distcode,h=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{d<15&&(p+=I[n++]<<d,d+=8,p+=I[n++]<<d,d+=8),g=_[p&h];t:for(;;){if(p>>>=S=g>>>24,d-=S,0===(S=g>>>16&255))T[a++]=65535&g;else{if(!(16&S)){if(0==(64&S)){g=_[(65535&g)+(p&(1<<S)-1)];continue t}if(32&S){r.mode=TYPE$1;break e}e.msg="invalid literal/length code",r.mode=BAD$1;break e}m=65535&g,(S&=15)&&(d<S&&(p+=I[n++]<<d,d+=8),m+=p&(1<<S)-1,p>>>=S,d-=S),d<15&&(p+=I[n++]<<d,d+=8,p+=I[n++]<<d,d+=8),g=y[p&b];r:for(;;){if(p>>>=S=g>>>24,d-=S,!(16&(S=g>>>16&255))){if(0==(64&S)){g=y[(65535&g)+(p&(1<<S)-1)];continue r}e.msg="invalid distance code",r.mode=BAD$1;break e}if(E=65535&g,d<(S&=15)&&(p+=I[n++]<<d,(d+=8)<S&&(p+=I[n++]<<d,d+=8)),(E+=p&(1<<S)-1)>l){e.msg="invalid distance too far back",r.mode=BAD$1;break e}if(p>>>=S,d-=S,E>(S=a-i)){if((S=E-S)>u&&r.sane){e.msg="invalid distance too far back",r.mode=BAD$1;break e}if(O=0,v=f,0===$){if(O+=c-S,S<m){m-=S;do{T[a++]=f[O++]}while(--S);O=a-E,v=T}}else if($<S){if(O+=c+$-S,(S-=$)<m){m-=S;do{T[a++]=f[O++]}while(--S);if(O=0,$<m){m-=S=$;do{T[a++]=f[O++]}while(--S);O=a-E,v=T}}}else if(O+=$-S,S<m){m-=S;do{T[a++]=f[O++]}while(--S);O=a-E,v=T}for(;m>2;)T[a++]=v[O++],T[a++]=v[O++],T[a++]=v[O++],m-=3;m&&(T[a++]=v[O++],m>1&&(T[a++]=v[O++]))}else{O=a-E;do{T[a++]=T[O++],T[a++]=T[O++],T[a++]=T[O++],m-=3}while(m>2);m&&(T[a++]=T[O++],m>1&&(T[a++]=T[O++]))}break}}break}}while(n<o&&a<s);n-=m=d>>3,p&=(1<<(d-=m<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n<o?o-n+5:5-(n-o),e.avail_out=a<s?s-a+257:257-(a-s),r.hold=p,r.bits=d},utils$2=common,MAXBITS=15,ENOUGH_LENS$1=852,ENOUGH_DISTS$1=592,CODES$1=0,LENS$1=1,DISTS$1=2,lbase=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lext=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],dbase=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],dext=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],inftrees=function(e,t,r,n,o,a,i,s){var l,c,u,$,f,p,d,_,y,h=s.bits,b=0,g=0,S=0,m=0,E=0,O=0,v=0,I=0,T=0,P=0,w=null,R=0,A=new utils$2.Buf16(MAXBITS+1),C=new utils$2.Buf16(MAXBITS+1),D=null,N=0;for(b=0;b<=MAXBITS;b++)A[b]=0;for(g=0;g<n;g++)A[t[r+g]]++;for(E=h,m=MAXBITS;m>=1&&0===A[m];m--);if(E>m&&(E=m),0===m)return o[a++]=20971520,o[a++]=20971520,s.bits=1,0;for(S=1;S<m&&0===A[S];S++);for(E<S&&(E=S),I=1,b=1;b<=MAXBITS;b++)if(I<<=1,(I-=A[b])<0)return-1;if(I>0&&(e===CODES$1||1!==m))return-1;for(C[1]=0,b=1;b<MAXBITS;b++)C[b+1]=C[b]+A[b];for(g=0;g<n;g++)0!==t[r+g]&&(i[C[t[r+g]]++]=g);if(e===CODES$1?(w=D=i,p=19):e===LENS$1?(w=lbase,R-=257,D=lext,N-=257,p=256):(w=dbase,D=dext,p=-1),P=0,g=0,b=S,f=a,O=E,v=0,u=-1,$=(T=1<<E)-1,e===LENS$1&&T>ENOUGH_LENS$1||e===DISTS$1&&T>ENOUGH_DISTS$1)return 1;for(;;){d=b-v,i[g]<p?(_=0,y=i[g]):i[g]>p?(_=D[N+i[g]],y=w[R+i[g]]):(_=96,y=0),l=1<<b-v,S=c=1<<O;do{o[f+(P>>v)+(c-=l)]=d<<24|_<<16|y|0}while(0!==c);for(l=1<<b-1;P&l;)l>>=1;if(0!==l?(P&=l-1,P+=l):P=0,g++,0==--A[b]){if(b===m)break;b=t[r+i[g]]}if(b>E&&(P&$)!==u){for(0===v&&(v=E),f+=S,I=1<<(O=b-v);O+v<m&&!((I-=A[O+v])<=0);)O++,I<<=1;if(T+=1<<O,e===LENS$1&&T>ENOUGH_LENS$1||e===DISTS$1&&T>ENOUGH_DISTS$1)return 1;o[u=P&$]=E<<24|O<<16|f-a|0}}return 0!==P&&(o[f+P]=b-v<<24|64<<16|0),s.bits=E,0},utils$1=common,adler32=adler32_1,crc32=crc32_1,inflate_fast2=inffast,inflate_table2=inftrees,CODES=0,LENS=1,DISTS=2,Z_FINISH=4,Z_BLOCK=5,Z_TREES=6,Z_OK=0,Z_STREAM_END=1,Z_NEED_DICT=2,Z_STREAM_ERROR=-2,Z_DATA_ERROR=-3,Z_MEM_ERROR=-4,Z_BUF_ERROR=-5,Z_DEFLATED=8,HEAD=1,FLAGS=2,TIME=3,OS=4,EXLEN=5,EXTRA=6,NAME=7,COMMENT=8,HCRC=9,DICTID=10,DICT=11,TYPE=12,TYPEDO=13,STORED=14,COPY_=15,COPY=16,TABLE=17,LENLENS=18,CODELENS=19,LEN_=20,LEN=21,LENEXT=22,DIST=23,DISTEXT=24,MATCH=25,LIT=26,CHECK=27,LENGTH=28,DONE=29,BAD=30,MEM=31,SYNC=32,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS;function zswap32(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function InflateState(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new utils$1.Buf16(320),this.work=new utils$1.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function inflateResetKeep(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=HEAD,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new utils$1.Buf32(ENOUGH_LENS),t.distcode=t.distdyn=new utils$1.Buf32(ENOUGH_DISTS),t.sane=1,t.back=-1,Z_OK):Z_STREAM_ERROR}function inflateReset(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,inflateResetKeep(e)):Z_STREAM_ERROR}function inflateReset2(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Z_STREAM_ERROR:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,inflateReset(e))):Z_STREAM_ERROR}function inflateInit2(e,t){var r,n;return e?(n=new InflateState,e.state=n,n.window=null,(r=inflateReset2(e,t))!==Z_OK&&(e.state=null),r):Z_STREAM_ERROR}function inflateInit(e){return inflateInit2(e,DEF_WBITS)}var lenfix,distfix,virgin=!0;function fixedtables(e){if(virgin){var t;for(lenfix=new utils$1.Buf32(512),distfix=new utils$1.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(inflate_table2(LENS,e.lens,0,288,lenfix,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;inflate_table2(DISTS,e.lens,0,32,distfix,0,e.work,{bits:5}),virgin=!1}e.lencode=lenfix,e.lenbits=9,e.distcode=distfix,e.distbits=5}function updatewindow(e,t,r,n){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new utils$1.Buf8(a.wsize)),n>=a.wsize?(utils$1.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>n&&(o=n),utils$1.arraySet(a.window,t,r-n,o,a.wnext),(n-=o)?(utils$1.arraySet(a.window,t,r-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}function inflate$2(e,t){var r,n,o,a,i,s,l,c,u,$,f,p,d,_,y,h,b,g,S,m,E,O,v,I,T=0,P=new utils$1.Buf8(4),w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Z_STREAM_ERROR;(r=e.state).mode===TYPE&&(r.mode=TYPEDO),i=e.next_out,o=e.output,l=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,c=r.hold,u=r.bits,$=s,f=l,O=Z_OK;e:for(;;)switch(r.mode){case HEAD:if(0===r.wrap){r.mode=TYPEDO;break}for(;u<16;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(2&r.wrap&&35615===c){r.check=0,P[0]=255&c,P[1]=c>>>8&255,r.check=crc32(r.check,P,2,0),c=0,u=0,r.mode=FLAGS;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",r.mode=BAD;break}if((15&c)!==Z_DEFLATED){e.msg="unknown compression method",r.mode=BAD;break}if(u-=4,E=8+(15&(c>>>=4)),0===r.wbits)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=BAD;break}r.dmax=1<<E,e.adler=r.check=1,r.mode=512&c?DICTID:TYPE,c=0,u=0;break;case FLAGS:for(;u<16;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(r.flags=c,(255&_flagsInstanceProperty(r))!==Z_DEFLATED){e.msg="unknown compression method",r.mode=BAD;break}if(57344&_flagsInstanceProperty(r)){e.msg="unknown header flags set",r.mode=BAD;break}r.head&&(r.head.text=c>>8&1),512&_flagsInstanceProperty(r)&&(P[0]=255&c,P[1]=c>>>8&255,r.check=crc32(r.check,P,2,0)),c=0,u=0,r.mode=TIME;case TIME:for(;u<32;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.head&&(r.head.time=c),512&_flagsInstanceProperty(r)&&(P[0]=255&c,P[1]=c>>>8&255,P[2]=c>>>16&255,P[3]=c>>>24&255,r.check=crc32(r.check,P,4,0)),c=0,u=0,r.mode=OS;case OS:for(;u<16;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&_flagsInstanceProperty(r)&&(P[0]=255&c,P[1]=c>>>8&255,r.check=crc32(r.check,P,2,0)),c=0,u=0,r.mode=EXLEN;case EXLEN:if(1024&_flagsInstanceProperty(r)){for(;u<16;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.length=c,r.head&&(r.head.extra_len=c),512&_flagsInstanceProperty(r)&&(P[0]=255&c,P[1]=c>>>8&255,r.check=crc32(r.check,P,2,0)),c=0,u=0}else r.head&&(r.head.extra=null);r.mode=EXTRA;case EXTRA:if(1024&_flagsInstanceProperty(r)&&((p=r.length)>s&&(p=s),p&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),utils$1.arraySet(r.head.extra,n,a,p,E)),512&_flagsInstanceProperty(r)&&(r.check=crc32(r.check,n,p,a)),s-=p,a+=p,r.length-=p),r.length))break e;r.length=0,r.mode=NAME;case NAME:if(2048&_flagsInstanceProperty(r)){if(0===s)break e;p=0;do{E=n[a+p++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E))}while(E&&p<s);if(512&_flagsInstanceProperty(r)&&(r.check=crc32(r.check,n,p,a)),s-=p,a+=p,E)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=COMMENT;case COMMENT:if(4096&_flagsInstanceProperty(r)){if(0===s)break e;p=0;do{E=n[a+p++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E))}while(E&&p<s);if(512&_flagsInstanceProperty(r)&&(r.check=crc32(r.check,n,p,a)),s-=p,a+=p,E)break e}else r.head&&(r.head.comment=null);r.mode=HCRC;case HCRC:if(512&_flagsInstanceProperty(r)){for(;u<16;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(c!==(65535&r.check)){e.msg="header crc mismatch",r.mode=BAD;break}c=0,u=0}r.head&&(r.head.hcrc=_flagsInstanceProperty(r)>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=TYPE;break;case DICTID:for(;u<32;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}e.adler=r.check=zswap32(c),c=0,u=0,r.mode=DICT;case DICT:if(0===r.havedict)return e.next_out=i,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=u,Z_NEED_DICT;e.adler=r.check=1,r.mode=TYPE;case TYPE:if(t===Z_BLOCK||t===Z_TREES)break e;case TYPEDO:if(r.last){c>>>=7&u,u-=7&u,r.mode=CHECK;break}for(;u<3;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}switch(r.last=1&c,u-=1,3&(c>>>=1)){case 0:r.mode=STORED;break;case 1:if(fixedtables(r),r.mode=LEN_,t===Z_TREES){c>>>=2,u-=2;break e}break;case 2:r.mode=TABLE;break;case 3:e.msg="invalid block type",r.mode=BAD}c>>>=2,u-=2;break;case STORED:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",r.mode=BAD;break}if(r.length=65535&c,c=0,u=0,r.mode=COPY_,t===Z_TREES)break e;case COPY_:r.mode=COPY;case COPY:if(p=r.length){if(p>s&&(p=s),p>l&&(p=l),0===p)break e;utils$1.arraySet(o,n,a,p,i),s-=p,a+=p,l-=p,i+=p,r.length-=p;break}r.mode=TYPE;break;case TABLE:for(;u<14;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(r.nlen=257+(31&c),c>>>=5,u-=5,r.ndist=1+(31&c),c>>>=5,u-=5,r.ncode=4+(15&c),c>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=BAD;break}r.have=0,r.mode=LENLENS;case LENLENS:for(;r.have<r.ncode;){for(;u<3;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.lens[w[r.have++]]=7&c,c>>>=3,u-=3}for(;r.have<19;)r.lens[w[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,v={bits:r.lenbits},O=inflate_table2(CODES,r.lens,0,19,r.lencode,0,r.work,v),r.lenbits=v.bits,O){e.msg="invalid code lengths set",r.mode=BAD;break}r.have=0,r.mode=CODELENS;case CODELENS:for(;r.have<r.nlen+r.ndist;){for(;h=(T=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,b=65535&T,!((y=T>>>24)<=u);){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(b<16)c>>>=y,u-=y,r.lens[r.have++]=b;else{if(16===b){for(I=y+2;u<I;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(c>>>=y,u-=y,0===r.have){e.msg="invalid bit length repeat",r.mode=BAD;break}E=r.lens[r.have-1],p=3+(3&c),c>>>=2,u-=2}else if(17===b){for(I=y+3;u<I;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}u-=y,E=0,p=3+(7&(c>>>=y)),c>>>=3,u-=3}else{for(I=y+7;u<I;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}u-=y,E=0,p=11+(127&(c>>>=y)),c>>>=7,u-=7}if(r.have+p>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=BAD;break}for(;p--;)r.lens[r.have++]=E}}if(r.mode===BAD)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=BAD;break}if(r.lenbits=9,v={bits:r.lenbits},O=inflate_table2(LENS,r.lens,0,r.nlen,r.lencode,0,r.work,v),r.lenbits=v.bits,O){e.msg="invalid literal/lengths set",r.mode=BAD;break}if(r.distbits=6,r.distcode=r.distdyn,v={bits:r.distbits},O=inflate_table2(DISTS,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,v),r.distbits=v.bits,O){e.msg="invalid distances set",r.mode=BAD;break}if(r.mode=LEN_,t===Z_TREES)break e;case LEN_:r.mode=LEN;case LEN:if(s>=6&&l>=258){e.next_out=i,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=u,inflate_fast2(e,f),i=e.next_out,o=e.output,l=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,c=r.hold,u=r.bits,r.mode===TYPE&&(r.back=-1);break}for(r.back=0;h=(T=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,b=65535&T,!((y=T>>>24)<=u);){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(h&&0==(240&h)){for(g=y,S=h,m=b;h=(T=r.lencode[m+((c&(1<<g+S)-1)>>g)])>>>16&255,b=65535&T,!(g+(y=T>>>24)<=u);){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}c>>>=g,u-=g,r.back+=g}if(c>>>=y,u-=y,r.back+=y,r.length=b,0===h){r.mode=LIT;break}if(32&h){r.back=-1,r.mode=TYPE;break}if(64&h){e.msg="invalid literal/length code",r.mode=BAD;break}r.extra=15&h,r.mode=LENEXT;case LENEXT:if(r.extra){for(I=r.extra;u<I;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=DIST;case DIST:for(;h=(T=r.distcode[c&(1<<r.distbits)-1])>>>16&255,b=65535&T,!((y=T>>>24)<=u);){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(0==(240&h)){for(g=y,S=h,m=b;h=(T=r.distcode[m+((c&(1<<g+S)-1)>>g)])>>>16&255,b=65535&T,!(g+(y=T>>>24)<=u);){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}c>>>=g,u-=g,r.back+=g}if(c>>>=y,u-=y,r.back+=y,64&h){e.msg="invalid distance code",r.mode=BAD;break}r.offset=b,r.extra=15&h,r.mode=DISTEXT;case DISTEXT:if(r.extra){for(I=r.extra;u<I;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=BAD;break}r.mode=MATCH;case MATCH:if(0===l)break e;if(p=f-l,r.offset>p){if((p=r.offset-p)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=BAD;break}p>r.wnext?(p-=r.wnext,d=r.wsize-p):d=r.wnext-p,p>r.length&&(p=r.length),_=r.window}else _=o,d=i-r.offset,p=r.length;p>l&&(p=l),l-=p,r.length-=p;do{o[i++]=_[d++]}while(--p);0===r.length&&(r.mode=LEN);break;case LIT:if(0===l)break e;o[i++]=r.length,l--,r.mode=LEN;break;case CHECK:if(r.wrap){for(;u<32;){if(0===s)break e;s--,c|=n[a++]<<u,u+=8}if(f-=l,e.total_out+=f,r.total+=f,f&&(e.adler=r.check=_flagsInstanceProperty(r)?crc32(r.check,o,f,i-f):adler32(r.check,o,f,i-f)),f=l,(_flagsInstanceProperty(r)?c:zswap32(c))!==r.check){e.msg="incorrect data check",r.mode=BAD;break}c=0,u=0}r.mode=LENGTH;case LENGTH:if(r.wrap&&_flagsInstanceProperty(r)){for(;u<32;){if(0===s)break e;s--,c+=n[a++]<<u,u+=8}if(c!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=BAD;break}c=0,u=0}r.mode=DONE;case DONE:O=Z_STREAM_END;break e;case BAD:O=Z_DATA_ERROR;break e;case MEM:return Z_MEM_ERROR;default:return Z_STREAM_ERROR}return e.next_out=i,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=u,(r.wsize||f!==e.avail_out&&r.mode<BAD&&(r.mode<CHECK||t!==Z_FINISH))&&updatewindow(e,e.output,e.next_out,f-e.avail_out),$-=e.avail_in,f-=e.avail_out,e.total_in+=$,e.total_out+=f,r.total+=f,r.wrap&&f&&(e.adler=r.check=_flagsInstanceProperty(r)?crc32(r.check,o,f,e.next_out-f):adler32(r.check,o,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(r.mode===TYPE?128:0)+(r.mode===LEN_||r.mode===COPY_?256:0),(0===$&&0===f||t===Z_FINISH)&&O===Z_OK&&(O=Z_BUF_ERROR),O}function inflateEnd(e){if(!e||!e.state)return Z_STREAM_ERROR;var t=e.state;return t.window&&(t.window=null),e.state=null,Z_OK}function inflateGetHeader(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?Z_STREAM_ERROR:(r.head=t,t.done=!1,Z_OK):Z_STREAM_ERROR}function inflateSetDictionary(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&r.mode!==DICT?Z_STREAM_ERROR:r.mode===DICT&&adler32(1,t,n,0)!==r.check?Z_DATA_ERROR:updatewindow(e,t,n,n)?(r.mode=MEM,Z_MEM_ERROR):(r.havedict=1,Z_OK):Z_STREAM_ERROR}inflate$3.inflateReset=inflateReset,inflate$3.inflateReset2=inflateReset2,inflate$3.inflateResetKeep=inflateResetKeep,inflate$3.inflateInit=inflateInit,inflate$3.inflateInit2=inflateInit2,inflate$3.inflate=inflate$2,inflate$3.inflateEnd=inflateEnd,inflate$3.inflateGetHeader=inflateGetHeader,inflate$3.inflateSetDictionary=inflateSetDictionary,inflate$3.inflateInfo="pako inflate (from Nodeca project)";var constants$1={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function GZheader$1(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader$1,zlib_inflate=inflate$3,utils=common,strings=strings$2,c=constants$1,msg=messages,ZStream=zstream,GZheader=gzheader,toString2=Object.prototype.toString;function Inflate(e){if(!(this instanceof Inflate))return new Inflate(e);this.options=utils.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ZStream,this.strm.avail_out=0;var r=zlib_inflate.inflateInit2(this.strm,t.windowBits);if(r!==c.Z_OK)throw new Error(msg[r]);if(this.header=new GZheader,zlib_inflate.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=strings.string2buf(t.dictionary):"[object ArrayBuffer]"===toString2.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=zlib_inflate.inflateSetDictionary(this.strm,t.dictionary))!==c.Z_OK))throw new Error(msg[r])}function inflate$1(e,t){var r=new Inflate(t);if(r.push(e,!0),r.err)throw r.msg||msg[r.err];return r.result}function inflateRaw(e,t){return(t=t||{}).raw=!0,inflate$1(e,t)}Inflate.prototype.push=function(e,t){var r,n,o,a,i,s=this.strm,l=this.options.chunkSize,u=this.options.dictionary,$=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?c.Z_FINISH:c.Z_NO_FLUSH,"string"==typeof e?s.input=strings.binstring2buf(e):"[object ArrayBuffer]"===toString2.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new utils.Buf8(l),s.next_out=0,s.avail_out=l),(r=zlib_inflate.inflate(s,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&u&&(r=zlib_inflate.inflateSetDictionary(this.strm,u)),r===c.Z_BUF_ERROR&&!0===$&&(r=c.Z_OK,$=!1),r!==c.Z_STREAM_END&&r!==c.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==c.Z_STREAM_END&&(0!==s.avail_in||n!==c.Z_FINISH&&n!==c.Z_SYNC_FLUSH)||("string"===this.options.to?(o=strings.utf8border(s.output,s.next_out),a=s.next_out-o,i=strings.buf2string(s.output,o),s.next_out=a,s.avail_out=l-a,a&&utils.arraySet(s.output,s.output,o,a,0),this.onData(i)):this.onData(utils.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&($=!0)}while((s.avail_in>0||0===s.avail_out)&&r!==c.Z_STREAM_END);return r===c.Z_STREAM_END&&(n=c.Z_FINISH),n===c.Z_FINISH?(r=zlib_inflate.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c.Z_OK):n!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),s.avail_out=0,!0)},Inflate.prototype.onData=function(e){this.chunks.push(e)},Inflate.prototype.onEnd=function(e){e===c.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=utils.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},inflate$4.Inflate=Inflate,inflate$4.inflate=inflate$1,inflate$4.inflateRaw=inflateRaw,inflate$4.ungzip=inflate$1;var assign2=common.assign,deflate=deflate$4,inflate=inflate$4,constants=constants$1,pako={};assign2(pako,deflate,inflate,constants);var _navigator,_context$2,_localStorage$1,pako_1=pako,pako$1=getDefaultExportFromCjs(pako_1),lockId=1,PromiseLock=function(){function e(t){_classCallCheck(this,e),_defineProperty(this,"lockingPromise",_Promise.resolve()),_defineProperty(this,"locks",0),_defineProperty(this,"name",""),_defineProperty(this,"lockId",void 0),this.lockId=lockId++,t&&(this.name=t)}return _createClass(e,[{key:"isLocked",get:function(){return this.locks>0}},{key:"lock",value:function(){var e,t=this;this.locks+=1;var r=new _Promise((function(r){e=function(){t.locks-=1,r()}})),n=this.lockingPromise.then((function(){return e}));return this.lockingPromise=this.lockingPromise.then((function(){return r})),n}}]),e}(),DB_NAME="__rtc_umd_name__",indexedDB$1=function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},IndexedDBInterface=function(){function e(t){_classCallCheck(this,e),_defineProperty(this,"storeName",void 0),_defineProperty(this,"pendingList",[]),this.storeName=t,!isSSR()&&indexedDB$1()&&this._checkAndCreateStore(t)}var t,r,n,o,a,i,s;return _createClass(e,[{key:"_checkAndCreateStore",value:(s=_asyncToGenerator(_regeneratorRuntime().mark((function t(r,n){var o,a,i=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._promiseLock.lock();case 2:if(o=t.sent,!indexedDB$1.databases){t.next=6;break}return t.next=6,new _Promise((function(e){var t=function(){return indexedDB$1.databases().finally(e)};a=setInterval(t,100),t()})).finally((function(){return clearInterval(a)}));case 6:return t.abrupt("return",new _Promise((function(t){e.db&&(e.db.close(),delete e.db);var a=n?indexedDB$1().open(DB_NAME,n):indexedDB$1().open(DB_NAME);a.onupgradeneeded=function(){a.result.createObjectStore(r)},a.onerror=function(){console.error("IndexedDBInterface error",a.error)},a.onsuccess=function(){var n=a.result;e.db=n;try{e.db.transaction(i.storeName,"readonly"),i.pendingList.forEach(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o,a;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.txMode,n=t.pendResolve,o=t.pendReject,e.prev=1,e.next=4,i._getStore(r);case 4:a=e.sent,n(a),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),o();case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()),t()}catch(e){t(i._checkAndCreateStore(r,n.version+1))}finally{o()}}})));case 7:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"_getStore",value:(i=_asyncToGenerator(_regeneratorRuntime().mark((function t(r){var n,o=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._promiseLock.lock();case 2:return n=t.sent,t.abrupt("return",new _Promise((function(t,a){if(!e.db)return o.pendingList.push({txMode:r,pendResolve:t,pendReject:a}),void n();try{t(e.db.transaction(o.storeName,r).objectStore(o.storeName))}catch(e){return void o.pendingList.push({txMode:r,pendResolve:t,pendReject:a})}finally{n()}})));case 4:case"end":return t.stop()}}),t)}))),function(e){return i.apply(this,arguments)})},{key:"put2String",value:(a=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{n=_JSON$stringify(t)}catch(e){n=t}return e.next=3,this.put(n,r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"get4String",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(t);case 2:r=e.sent;try{n=JSON.parse(r)}catch(e){n=r}return e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"put",value:(n=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getStore("readwrite");case 2:return n=e.sent,e.abrupt("return",new _Promise((function(e,o){var a=n.put(t,r);a.onsuccess=function(){e()},a.onerror=function(e){o(e)}})));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"get",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getStore("readonly");case 2:return r=e.sent,e.abrupt("return",new _Promise((function(e,n){var o=r.get(t);o.onsuccess=function(){e(o.result)},o.onerror=function(e){n(e)}})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"del",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getStore("readwrite");case 2:return r=e.sent,e.abrupt("return",new _Promise((function(e,n){var o=r.delete(t);o.onsuccess=function(){e()},o.onerror=function(e){n(e)}})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();_defineProperty(IndexedDBInterface,"db",void 0),_defineProperty(IndexedDBInterface,"state","init"),_defineProperty(IndexedDBInterface,"_promiseLock",new PromiseLock("iDB"));var HARDCODE_UPLOAD_MAX_LIMIT=5e5,HARDCODE_UPLOAD_MIN_LIMIT=5e4,DEFAULT_UPLOAD_LIMIT=5e5,HTTP_REQUEST_TIMEOUT=1e4,defaultCommonStats={product_line:"rtc",report_version:"5",os:"web",user_agent:isSSR()?"":null===(_navigator=navigator)||void 0===_navigator?void 0:_navigator.userAgent,platform:"web",product:"webrtc",app_state:"active"},REPORT_DB_BUFFER_STORE="LogReportor",DEBUG$1="undefined"!=typeof window&&_includesInstanceProperty(_context$2=window.location.search).call(_context$2,"_rtc_debug_")||(null===(_localStorage$1=localStorage)||void 0===_localStorage$1?void 0:_localStorage$1.getItem("_rtc_debug_")),ReportorDBBuffer=function(){function e(t){_classCallCheck(this,e),_defineProperty(this,"_buffer",void 0),this._buffer=new IndexedDBInterface(t)}var t,r;return _createClass(e,[{key:"set",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._buffer.put2String(t,r);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"get",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],e.prev=1,e.next=4,this._buffer.get4String(t);case 4:n=e.sent,e.next=9;break;case 7:e.prev=7,e.t0=e.catch(1);case 9:return e.abrupt("return",null!==(r=n)&&void 0!==r?r:[]);case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(e){return t.apply(this,arguments)})}]),e}(),Reportor=function(){function e(){var t=this;_classCallCheck(this,e),_defineProperty(this,"reportCommon",defaultCommonStats),_defineProperty(this,"reportIds",new _Map),_defineProperty(this,"dataBuffer",[]),_defineProperty(this,"reportorList",[]),_defineProperty(this,"dbBuffer",void 0),_defineProperty(this,"posting",!1),_defineProperty(this,"sucSendTimer",void 0),_defineProperty(this,"preSucTime",0),_defineProperty(this,"errSendTimer",void 0),_defineProperty(this,"errSendDelay",100),_defineProperty(this,"_logServerUrl",void 0),_defineProperty(this,"_retryCount",0),_defineProperty(this,"_reportLimit",DEFAULT_UPLOAD_LIMIT),_defineProperty(this,"_disableTimeout",!1),isSSR()||(window.addEventListener("beforeunload",(function(){clearTimeout(t.errSendTimer),clearTimeout(t.sucSendTimer),t.send(void 0,!0)})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?t.setCommonStats({app_state:"active"}):"hidden"===document.visibilityState&&t.setCommonStats({app_state:"background"})})),DEBUG$1&&(window.__rtc_debug_reportor__=this)),CoreConfig.on("UPLOAD_REPORT_LIMIT",(function(e){t.setReportLimit(e)})),CoreConfig.on("ENABLE_REPORT_IDB_BUFFER",(function(e){e&&t.enableIndexedDBBuffer()})),setTimeout((function(){t.reportorList.push(consoleReportor)}))}var t;return _createClass(e,[{key:"setUrl",value:function(e){this._logServerUrl=e}},{key:"setCommonStats",value:function(e){this.reportCommon=_Object$assign(this.reportCommon,e)}},{key:"getCommonStats",value:function(){return this.reportCommon}},{key:"setReportLimit",value:function(e){this._reportLimit=Math.max(e,HARDCODE_UPLOAD_MIN_LIMIT),this._reportLimit=Math.min(e,HARDCODE_UPLOAD_MAX_LIMIT)}},{key:"getReportId",value:function(e){var t;e=null!==(t=e)&&void 0!==t?t:"__global__",this.reportIds.has(e)||this.reportIds.set(e,0);var r=this.reportIds.get(e);return void 0===r&&(reportGlobalError("no reportId in reportId map with engine-session-id ".concat(e),0,{}),r=0),this.reportIds.set(e,r+1),r}},{key:"push",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this.send(e):(this.dataBuffer.push(e),!this.posting&&!this.errSendTimer&&Date.now()-this.preSucTime>2e3&&(clearTimeout(this.sucSendTimer),this.send()))}},{key:"enableIndexedDBBuffer",value:function(){var e=this;this.dbBuffer||(this.dbBuffer=new ReportorDBBuffer("ReportorDBBuffer"),this.dbBuffer.get(REPORT_DB_BUFFER_STORE).then((function(t){t.forEach((function(t){e.push(t)}))})),this.reportorList.forEach((function(t){var r;null===(r=e.dbBuffer)||void 0===r||r.get(t.name).then((function(e){e.forEach((function(e){t.push(e)}))}))})))}},{key:"backup",value:function(){var e=this;try{var t;null===(t=this.dbBuffer)||void 0===t||t.set(_toConsumableArray(this.dataBuffer),REPORT_DB_BUFFER_STORE),this.reportorList.forEach((function(t){var r;null===(r=e.dbBuffer)||void 0===r||r.set(_toConsumableArray(t.get()),t.name)}))}catch(e){reportGlobalError("Error when save log into IDB",-1,e)}}},{key:"unshift",value:function(e){var t;this.dataBuffer=_concatInstanceProperty(t=e[0]).call(t,this.dataBuffer),this.reportorList.forEach((function(t,r){var n;t.unshift(null!==(n=e[r+1])&&void 0!==n?n:[])}))}},{key:"_splice",value:function(){var e,t=this,r=findSizeIndex$1(this.dataBuffer,this._reportLimit);0===r&&this.dataBuffer.length>0&&(this._reportLimit=_JSON$stringify(this.dataBuffer[0]).length+10,r=1,reportGlobalError("update report limit to ".concat(this._reportLimit),0,null));var n=[_spliceInstanceProperty(e=this.dataBuffer).call(e,0,r)],o=this._reportLimit-r;return this.reportorList.forEach((function(e){var r=_spliceInstanceProperty(e).call(e,o),a=r.payload,i=r.payloadSize;a.forEach((function(e){var r,n;(e.report_id=t.getReportId(e.engine_session_id),!isSSR()&&window.__onRTCReport)&&(null===(r=(n=window).__onRTCReport)||void 0===r||r.call(n,e.engine_session_id,e,t.getCommonStats()))})),n.push(a),o-=i})),n}},{key:"send",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n,o,a,i,s,l,c,u;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.backup(),(t||this.dataBuffer.length)&&this._logServerUrl){e.next=3;break}return e.abrupt("return");case 3:if(t||(this.posting=!0),n=[],t||(n=this._splice()),o=DEBUG$1,a={data:t||_flatInstanceProperty(n).call(n),header:_objectSpread2(_objectSpread2({},this.reportCommon),{},{http_retry_count:this._retryCount}),from:"web",os:"web",version:"1"},i={method:"POST",body:o?_JSON$stringify(a):pako$1.gzip(_JSON$stringify(a))},!this._disableTimeout)try{s=new AbortController,i.signal=s.signal,setTimeout((function(){s.abort()}),HTTP_REQUEST_TIMEOUT)}catch(e){console.warn("AbortController is not supported"),this._disableTimeout=!0}return o||(i.headers={"Content-Encoding":"gzip","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}),u=null,e.prev=12,e.next=15,fetch(this._logServerUrl,i);case 15:if(200!==(l=e.sent).status&&304!==l.status){e.next=22;break}return e.t0=JSON,e.next=20,l.text();case 20:e.t1=e.sent,u=e.t0.parse.call(e.t0,e.t1);case 22:e.next=27;break;case 24:e.prev=24,e.t2=e.catch(12),c=e.t2;case 27:t||(this.posting=!1),u&&0===u.StatusCode?t||r||this.sucSend():(setTimeout((function(){var e,t,r,n;reportGlobalError(_concatInstanceProperty(e="reportor post error, resJSON:".concat(null===(t=u)||void 0===t?void 0:t.toString()," err:")).call(e,c),null!==(r=null===(n=l)||void 0===n?void 0:n.status)&&void 0!==r?r:-1,c)}),0),t?this.send(t):(this.unshift(n),r?this.send():this.errSend()));case 29:case"end":return e.stop()}}),e,this,[[12,24]])}))),function(e,r){return t.apply(this,arguments)})},{key:"sucSend",value:function(){this.errSendDelay=100,this._retryCount=0,this.preSucTime=Date.now(),this.sucSendTimer=window.setTimeout(this.send.bind(this),2e3)}},{key:"errSend",value:function(){var e=this;this.errSendTimer=window.setTimeout((function(){e.send(),delete e.errSendTimer}),this.errSendDelay),this.errSendDelay*=2,this._retryCount++}}]),e}();function findSizeIndex$1(e,t){for(var r=0,n=0;n<e.length;n++)if((r+=_JSON$stringify(e[n]).length)>t)return n;return e.length}var logger$1,commonReportor=new Reportor,Monitor=function(){function e(t){_classCallCheck(this,e),_defineProperty(this,"modifyIds",{}),this.id=t}return _createClass(e,[{key:"report",value:function(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=_objectSpread2(_objectSpread2(_objectSpread2({event_key:e,rtc_timestamp:Date.now()},this.modifyIds),t),{},{common_extra_info:_JSON$stringify(o),report_id:commonReportor.getReportId(this.modifyIds.engine_session_id)});!isSSR()&&window.__onRTCReport&&(null===(r=(n=window).__onRTCReport)||void 0===r||r.call(n,this.modifyIds.engine_session_id,a,commonReportor.getCommonStats()));commonReportor.push(a)}},{key:"reportLog",value:function(e){var t=_objectSpread2(_objectSpread2({event_key:"rtc_invoke_status",sdk_api_name:"console_log",rtc_timestamp:Date.now()},this.modifyIds),{},{message:e});consoleReportor.push(t)}},{key:"set",value:function(e){this.modifyIds=_Object$assign(this.modifyIds,e)}},{key:"destroy",value:function(){}}]),e}();setTimeout((function(){logger$1=new Logger$1("MessageReportor",1)}),0);var RESET_DURATION=36e5,MessageReportor=function(){function e(t){_classCallCheck(this,e),_defineProperty(this,"_preTime",Date.now()),_defineProperty(this,"_one2oneNum",0),_defineProperty(this,"_one2manyNum",0),_defineProperty(this,"_one2oneMsgCache",new _Map),_defineProperty(this,"_one2manyMsgCache",new _Map),_defineProperty(this,"roomId",""),_defineProperty(this,"userId",""),_defineProperty(this,"rtsSessionId",""),this.id=t}return _createClass(e,[{key:"needReport",value:function(t){return!!e.config&&(Date.now()-this._preTime>=RESET_DURATION&&(this._preTime=Date.now(),this._one2oneNum=0,this._one2manyNum=0),"one2one"===t&&this._one2oneNum<e.config.max_one2one_fpt_per_hour&&Math.random()<=e.config.one2one_fpt_ratio/100||"one2many"===t&&this._one2manyNum<e.config.max_one2many_fpt_per_hour&&Math.random()<=e.config.one2many_fpt_ratio/100)}},{key:"cacheP2PMsg",value:function(t){var r;this._one2oneMsgCache.set(t.msg_id,_objectSpread2({config_version:(null===(r=e.config)||void 0===r?void 0:r.version)||""},t))}},{key:"updateP2PMsg",value:function(e,t){var r=this._one2oneMsgCache.get(e);r&&this._one2oneMsgCache.set(e,_objectSpread2(_objectSpread2({},r),t))}},{key:"cacheCustomMsg",value:function(t){var r;this._one2manyMsgCache.set(t.msg_id,_objectSpread2({config_version:(null===(r=e.config)||void 0===r?void 0:r.version)||""},t))}},{key:"updateOne2ManyMsg",value:function(e,t){var r=this._one2manyMsgCache.get(e);r&&this._one2manyMsgCache.set(e,_objectSpread2(_objectSpread2({},r),t))}},{key:"reportP2PMsg",value:function(e){var t,r=this._one2oneMsgCache.get(e);r&&(logger$1.info("reportP2PMsg",r.type,_JSON$stringify(r)),null===(t=getMonitor(this.id))||void 0===t||t.report("rts_message",r))}},{key:"reportOne2ManyMsg",value:function(e){var t,r=this._one2manyMsgCache.get(e);r&&(logger$1.info("reportOne2ManyMsg",r.type,_JSON$stringify(r)),null===(t=getMonitor(this.id))||void 0===t||t.report("rts_message",r))}},{key:"reportMsgRecv",value:function(t){var r,n;t.config_version=(null===(r=e.config)||void 0===r?void 0:r.version)||"",logger$1.info("reportMsgRecv",t.type,_JSON$stringify(t)),null===(n=getMonitor(this.id))||void 0===n||n.report("rts_message",t)}},{key:"destroy",value:function(){this._one2manyNum=0,this._one2oneNum=0,this._one2manyMsgCache.clear(),this._one2oneMsgCache.clear(),this._preTime=Date.now(),this.roomId="",this.userId="",this.rtsSessionId=""}}]),e}();_defineProperty(MessageReportor,"config",void 0);var globalMonitor=new Monitor("global"),reportGlobalError=function(e,t,r){globalMonitor.report("rtc_error",{message:e,error_code:t},r)};function reportGlobalLog(e){globalMonitor.reportLog(e)}var _context$1,monitorMap=new _Map,getMonitor=function(e){return monitorMap.get(e)},ENABLE_CONSOLE_UPLOAD="undefined"!=typeof window&&_includesInstanceProperty(_context$1=window.location.search).call(_context$1,"_rtc_upload_console_"),ConsoleReportor=function(){function e(){var t,r=this;_classCallCheck(this,e),_defineProperty(this,"name","ConsoleReportor"),_defineProperty(this,"_uuid",_sliceInstanceProperty(t=genUuid()).call(t,0,3)),_defineProperty(this,"_consoleReportId",0),_defineProperty(this,"_engineReportIdMap",new _Map),_defineProperty(this,"_enabled","NULL"),_defineProperty(this,"_consoleCutLength",CoreConfig.getParameter("UPLOAD_CONSOLE_LENGTH_CUT")),_defineProperty(this,"buffer",[]),ENABLE_CONSOLE_UPLOAD&&setTimeout((function(){r.switchOn()}),0),CoreConfig.on("UPLOAD_CONSOLE_ON",(function(e){e?r.switchOn():r.turnOff()})),CoreConfig.on("UPLOAD_CONSOLE_LENGTH_CUT",(function(e){r._consoleCutLength=e}))}return _createClass(e,[{key:"enabled",get:function(){return"OFF"!==this._enabled}},{key:"switchOn",value:function(){"NULL"===this._enabled&&(console.log("[LoggerReportor.constructor] console upload switch ON"),this._enabled="ON")}},{key:"turnOff",value:function(){"NULL"===this._enabled&&(console.log("[LoggerReportor.constructor] console upload switch OFF"),this._enabled="OFF")}},{key:"getEngineConsoleId",value:function(e){var t,r=null!==(t=this._engineReportIdMap.get(e))&&void 0!==t?t:0;return this._engineReportIdMap.set(e,r+1),r}},{key:"report",value:function(e,t,r,n,o,a,i,s,l){var c,u,$,f,p,d,_,y,h,b,g,S=this;if("OFF"!==this._enabled){var m=getMonitor(t),E=this._consoleReportId++,O=this.getEngineConsoleId(t),v=shallowJson(l,this._consoleCutLength),I=_toConsumableArray(l),T="".concat(s).replace(/%o|%s/gi,(function(){return shallowJson([I.shift()],S._consoleCutLength)})),P=_concatInstanceProperty(c=_concatInstanceProperty(u=_concatInstanceProperty($=_concatInstanceProperty(f=_concatInstanceProperty(p=_concatInstanceProperty(d=_concatInstanceProperty(_=_concatInstanceProperty(y=_concatInstanceProperty(h=_concatInstanceProperty(b=_concatInstanceProperty(g="[".concat(this._uuid,"-")).call(g,E,"][")).call(b,t,"-")).call(h,O,"]-")).call(y,r,"-")).call(_,e,"[")).call(d,n,"]")).call(p,o,"[")).call(f,a,".")).call($,i,"] ")).call(u,T," ")).call(c,v);m?m.reportLog(P):reportGlobalLog(P)}}},{key:"push",value:function(e){this.buffer.push(e)}},{key:"splice",value:function(e){var t;if("ON"!==this._enabled)return{payload:[],payloadSize:0};var r=findSizeIndex(this.buffer,e),n=r.index,o=r.size;return{payload:_spliceInstanceProperty(t=this.buffer).call(t,0,n),payloadSize:o}}},{key:"unshift",value:function(e){this.buffer=_concatInstanceProperty(e).call(e,this.buffer)}},{key:"get",value:function(){return this.buffer}},{key:"isEmpty",value:function(){return 0===this.buffer.length}}]),e}();function shallowJson(e,t){return _mapInstanceProperty(e).call(e,(function(e){var r="";try{if("string"==typeof e)return e;if(void 0===e)return"undefined";if(null===e)return"null";if(e instanceof MediaStreamTrack)return mediaTrackStringify(e);if(e instanceof MediaStream)return mediaStreamStringify(e);if(e instanceof RTCRtpSender)return mediaSenderStringify(e);if(e instanceof RTCRtpReceiver)return mediaReceiverStringify(e);if(e instanceof RTCRtpTransceiver)return mediaTransceiverStringify(e);r=_JSON$stringify(e)}catch(t){r=e.toString()}return r&&r.length>=t&&(r=_sliceInstanceProperty(r).call(r,0,t)),r})).join(", ")}function findSizeIndex(e,t){for(var r=0,n=0;n<e.length;n++){var o=_JSON$stringify(e[n]).length;if((r+=o)>t)return{index:n,size:r-o}}return{index:e.length,size:r}}var _colorMap,_context,_localStorage,consoleReportor=new ConsoleReportor,HEAD_TEXT="[VERTC]",baseColor="#0050b3",colorMap=(_defineProperty(_colorMap={},"DEBUG","rgba(0, 0, 0, 0)"),_defineProperty(_colorMap," INFO","rgba(93, 173, 226, 0)"),_defineProperty(_colorMap," WARN","rgba(255, 119, 0, 0.3)"),_defineProperty(_colorMap,"ERROR","rgba(255, 0, 0, 0.3)"),_defineProperty(_colorMap," SUCC","rgba(0, 119, 0, 0.3)"),_colorMap),DEBUG="undefined"!=typeof window&&_includesInstanceProperty(_context=window.location.search).call(_context,"_rtc_debug_")||(null===(_localStorage=localStorage)||void 0===_localStorage?void 0:_localStorage.getItem("_rtc_debug_")),Logger=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"global";_classCallCheck(this,e),_defineProperty(this,"indent",void 0),_defineProperty(this,"module",void 0),_defineProperty(this,"_engineId",void 0),this.module=t,this.indent=r,this._engineId=n}return _createClass(e,[{key:"_print",value:function(e,t){for(var r,n,o,a,i,s,l,c,u=arguments.length,$=new Array(u>2?u-2:0),f=2;f<u;f++)$[f-2]=arguments[f];var p=$.shift();try{var d,_,y,h,b=_concatInstanceProperty(d=[]).call(d,$),g="".concat(p).replace(/%o/gi,(function(){var e=b.shift();return _JSON$stringify(e)}));iDB.set(_concatInstanceProperty(_=_concatInstanceProperty(y=_concatInstanceProperty(h="".concat(HEAD_TEXT,"[").concat(this.module,".")).call(h,t,"] ")).call(y,g," ")).call(_,_mapInstanceProperty(b).call(b,(function(e){return _JSON$stringify(e)})).join(", ")))}catch(e){}for(var S="",m=0;m<this.indent;m++)S+=" ";var E=getTimestamp();consoleReportor.report(HEAD_TEXT,this._engineId,E,e,S,this.module,t,p,$),DEBUG&&(r=console).log.apply(r,_concatInstanceProperty(n=[_concatInstanceProperty(o=_concatInstanceProperty(a=_concatInstanceProperty(i=_concatInstanceProperty(s=_concatInstanceProperty(l=_concatInstanceProperty(c="%c".concat(E,"-")).call(c,HEAD_TEXT,"%c[")).call(l,e,"]%c")).call(s,S,"[")).call(i,this.module,".")).call(a,t,"] ")).call(o,p),"color:".concat(baseColor,";"),"background-color:".concat(colorMap[e],";"),"color:".concat(baseColor,";")]).call(n,$))}},{key:"print",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this._print.apply(this,_concatInstanceProperty(t=[" INFO",e]).call(t,n))}},{key:"debug",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this._print.apply(this,_concatInstanceProperty(t=["DEBUG",e]).call(t,n))}},{key:"info",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this._print.apply(this,_concatInstanceProperty(t=[" INFO",e]).call(t,n))}},{key:"warn",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this._print.apply(this,_concatInstanceProperty(t=[" WARN",e]).call(t,n))}},{key:"error",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this._print.apply(this,_concatInstanceProperty(t=["ERROR",e]).call(t,n))}},{key:"success",value:function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this._print.apply(this,_concatInstanceProperty(t=[" SUCC",e]).call(t,n))}}]),e}(),getTimestamp=function(){var e,t,r=new Date;return _concatInstanceProperty(e="".concat(r.toTimeString().split(" ")[0],":")).call(e,_padStartInstanceProperty(t=r.getMilliseconds().toString()).call(t,3,"0"))},Logger$1=Logger,EffectBeautyMode=function(e){return e[e.EFFECT_WHITE_MODE=0]="EFFECT_WHITE_MODE",e[e.EFFECT_SMOOTH_MODE=1]="EFFECT_SMOOTH_MODE",e[e.EFFECT_SHARPEN_MODE=2]="EFFECT_SHARPEN_MODE",e}(EffectBeautyMode||{}),BackgroundMode=function(e){return e.BACKGROUND_BLUR="blur",e.BACKGROUND_IMAGE="image",e}(BackgroundMode||{}),BackgroundAIModelType=function(e){return e[e.PERFORMANCE=0]="PERFORMANCE",e[e.QUALITY=1]="QUALITY",e}(BackgroundAIModelType||{}),BackgroundAIBackend=function(e){return e[e.CPU=-1]="CPU",e[e.GPU=1]="GPU",e}(BackgroundAIBackend||{}),logger=new Logger$1("RTCBeautyExtension",1),DEFAULT_SDK_SOURCE_URL="https://webar.volccdn.com/obj/effect-webar-res-bucket/ies/web/webar_sdk/sdk/v2.662/202303229b38/resource/resource",DEFAULT_SDK_URL="".concat(DEFAULT_SDK_SOURCE_URL,"/externals/webar.main.sdk.iife.9b380e37.js"),TIME_OUT_MESSAGE="Load WebAR SDK timeout",INIT_FAILED_CODE=100,DEFAULT_FRAMERATE=15;function getBrowser(){var e="none";return null!==window.navigator.userAgent.match("Firefox")?e="mozilla":null!==window.navigator.userAgent.match("Chrome")?(e="chrome-stable",null!==window.navigator.userAgent.match("Electron")&&(e="electron")):(null!==window.navigator.userAgent.match("Safari")||null!==window.navigator.userAgent.match("AppleWebKit"))&&(e="safari"),e}var RTCBeautyExtension=function(e){_inherits(f,PreProcessingExtension);var t,r,n,o,a,i,s,l,c,u,$=_createSuper(f);function f(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(_classCallCheck(this,f),_defineProperty(_assertThisInitialized(t=$.call(this)),"name","RTCBeautyExtension"),_defineProperty(_assertThisInitialized(t),"_enable",void 0),_defineProperty(_assertThisInitialized(t),"_beautyExt",void 0),_defineProperty(_assertThisInitialized(t),"_backgroundExt",void 0),_defineProperty(_assertThisInitialized(t),"_enableBeauty",!1),_defineProperty(_assertThisInitialized(t),"_enableBackground",!1),_defineProperty(_assertThisInitialized(t),"_fps",DEFAULT_FRAMERATE),_defineProperty(_assertThisInitialized(t),"_backgroundBackend",BackgroundAIBackend.CPU),_defineProperty(_assertThisInitialized(t),"_backgroundAIModelType",BackgroundAIModelType.QUALITY),_defineProperty(_assertThisInitialized(t),"_backgroundMode",BackgroundMode.BACKGROUND_BLUR),_defineProperty(_assertThisInitialized(t),"_beautyDefaultValue",{sharpenIntensity:.5,whitenIntensity:.5,smoothIntensity:.5}),_defineProperty(_assertThisInitialized(t),"_preTrack",null),f._sdkUrl=r.sdkUrl||DEFAULT_SDK_URL,f._sdkSourceUrl=r.sdkSourceUrl||DEFAULT_SDK_SOURCE_URL,f._sdkAuthServer=r.sdkAuthServer||"",f._sdkHash=r.sdkHash||"",f._authFileUrl=r.authFileUrl||"",r.aiBackend===BackgroundAIBackend.GPU)&&("undefined"!=typeof WebGL2RenderingContext&&("undefined"!=typeof OffscreenCanvas?new OffscreenCanvas(16,16).getContext("webgl2")&&(t._backgroundBackend=BackgroundAIBackend.GPU):t._backgroundBackend=BackgroundAIBackend.GPU));return t._backgroundAIModelType=null!==(e=r.aiModelType)&&void 0!==e?e:BackgroundAIModelType.QUALITY,t.on("stop",(function(){var e;t._preTrack&&(null===(e=f._sdk)||void 0===e||e.stopFrame(),t._preTrack=null)})),t}return _createClass(f,[{key:"initWebArSDK",value:(u=_asyncToGenerator(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==window.WebARMainSDK){e.next=3;break}return e.next=3,f.loadWebARSDK();case 3:f._sdk||(window.WebARMainSDK.WEBAR_CONSTANTS.REROURCE_PATH_CONFIG.SDK_RESOURCE_URL=f._sdkSourceUrl,f._sdk=new window.WebARMainSDK.WebSDK);case 4:case"end":return e.stop()}}),e)}))),function(){return u.apply(this,arguments)})},{key:"init",value:(c=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o,a,i,s,l,c,u,$,p,d,_=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._rtcSdkApiCall("".concat(this.name,".init"),0,{hasAuthFile:!!f._authFileUrl,aiBackend:this._backgroundBackend,aiModelType:this._backgroundAIModelType}),e.next=3,this.initWebArSDK();case 3:return l=null==t?void 0:t.videoCaptureConfig,this._fps=l?"number"==typeof(null==l?void 0:l.frameRate)?(null==l?void 0:l.frameRate)||DEFAULT_FRAMERATE:(null==l||null===(r=l.frameRate)||void 0===r?void 0:r.ideal)||DEFAULT_FRAMERATE:DEFAULT_FRAMERATE,logger.print("init fps",this._fps),null===(n=f._sdk)||void 0===n||n.setOptions({maxFps:this._fps,autoSetCanvasToVideoSize:!0,authFileUrl:f._authFileUrl||""}),e.next=9,null===(o=f._sdk)||void 0===o?void 0:o.setDocumentTemplate(window.WebARMainSDK.API.DocumentTemplateNames.RTC);case 9:return e.next=11,null===(a=f._sdk)||void 0===a?void 0:a.initialize(f._authFileUrl?{aiBackend:this._backgroundBackend,aiModelType:this._backgroundAIModelType}:{});case 11:logger.info("init",[this._backgroundBackend,this._backgroundAIModelType]),this._beautyExt||(this._beautyExt=null===(c=f._sdk)||void 0===c?void 0:c.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.BEAUTY_FILETER)),this._backgroundExt||(this._backgroundExt=null===(u=f._sdk)||void 0===u?void 0:u.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.VIRTUAL_BACKGROUND)),_Object$keys(this._beautyDefaultValue).forEach((function(e){_._beautyExt&&(_._beautyExt[e]=_._beautyDefaultValue[e])})),($=null===(i=f._sdk.video)||void 0===i||null===(s=i._video)||void 0===s?void 0:s._video)&&($.style.position="fixed",$.style.top="0",$.style.left="0",$.style.opacity="0",$.style.pointerEvents="none"),"safari"===getBrowser()&&(d=null===(p=f._sdk)||void 0===p?void 0:p.canvas)&&(d.style.width="1px",d.style.height="1px",d.style.position="fixed",d.style.top="0",d.style.left="0",d.style.opacity="0",d.style.pointerEvents="none",d.style.zIndex="-9999",document.body.appendChild(d));case 18:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"checkCompatibility",value:(l=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="",e.prev=1,e.next=4,this.initWebArSDK();case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),t=(null===e.t0||void 0===e.t0?void 0:e.t0.toString())||(null===e.t0||void 0===e.t0?void 0:e.t0.stack)||"";case 9:if(!f._sdk){e.next=17;break}return e.next=12,f._sdk.checkCompatibility();case 12:return(n=e.sent).isCompatible||0!==_filterInstanceProperty(r=n.reasons).call(r,(function(e){return 4!==e})).length||(n.isCompatible=!0,n.reasons=[]),e.abrupt("return",n);case 17:return e.abrupt("return",{isCompatible:!1,reasons:[INIT_FAILED_CODE],message:t});case 18:case"end":return e.stop()}}),e,this,[[1,6]])}))),function(){return l.apply(this,arguments)})},{key:"effect",value:(s=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n,o,a,i,s,l,c,u,$;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r||t.getTrack(),this._enableBeauty||this._enableBackground){e.next=4;break}return this._preTrack&&(null===(o=f._sdk)||void 0===o||o.stopFrame()),e.abrupt("return",n);case 4:if("video"!==t.mediaType||t.streamIndex!==StreamIndex.STREAM_INDEX_MAIN){e.next=16;break}if(this._preTrack===n){e.next=11;break}return e.next=8,null===(c=f._sdk)||void 0===c?void 0:c.setStreamInput(new MediaStream([n]));case 8:return this._preTrack=n,e.next=11,null===(u=f._sdk)||void 0===u||null===($=u.video)||void 0===$?void 0:$.start();case 11:if(null===(a=f._sdk)||void 0===a||a.startFrame(),null===(i=this._beautyExt)||void 0===i||i.setEnable(this._enableBeauty),null===(s=this._backgroundExt)||void 0===s||s.setEnable(this._enableBackground),null===(l=f._sdk)||void 0===l||!l.canvas){e.next=16;break}return e.abrupt("return",f._sdk.canvas.captureStream(this._fps).getVideoTracks()[0]);case 16:return e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"enable",value:function(){return this._rtcSdkApiCall("".concat(this.name,".enable"),0,""),this.enableBeauty()}},{key:"enableBeauty",value:(i=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,o=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBeauty"),0,""),t=!this._enableBeauty&&!this._enableBackground,this._enableBeauty=!0,_Object$keys(this._beautyDefaultValue).forEach((function(e){o._beautyExt&&(o._beautyExt[e]=o._beautyDefaultValue[e])})),this._preTrack&&!t){e.next=8;break}return e.abrupt("return",new _Promise((function(e,t){o.emit("reset-video-effect",e,t)})));case 8:null===(r=f._sdk)||void 0===r||r.startFrame(),null===(n=this._beautyExt)||void 0===n||n.setEnable(!0);case 10:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"disable",value:function(){return this._rtcSdkApiCall("".concat(this.name,".disable"),0,""),this.disableBeauty()}},{key:"disableBeauty",value:(a=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".disableBeauty"),0,""),t=this._enableBeauty&&!this._enableBackground,this._enableBeauty=!1,this._preTrack&&!t){e.next=7;break}return e.abrupt("return",new _Promise((function(e,t){n.emit("reset-video-effect",e,t)})));case 7:null===(r=this._beautyExt)||void 0===r||r.setEnable(!1);case 8:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"enableVirtualBackground",value:(o=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,o,a=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBackground"),0,""),r=!this._enableBeauty&&!this._enableBackground,this._enableBackground=!0,null===(t=this._backgroundExt)||void 0===t||t.setBackgroundMode(this._backgroundMode),this._preTrack&&!r){e.next=8;break}return e.abrupt("return",new _Promise((function(e,t){a.emit("reset-video-effect",e,t)})));case 8:null===(n=f._sdk)||void 0===n||n.startFrame(),null===(o=this._backgroundExt)||void 0===o||o.setEnable(!0);case 10:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"disableVirtualBackground",value:(n=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".disableBackground"),0,""),t=!this._enableBeauty&&this._enableBackground,this._enableBackground=!1,this._preTrack&&!t){e.next=7;break}return e.abrupt("return",new _Promise((function(e,t){n.emit("reset-video-effect",e,t)})));case 7:null===(r=this._backgroundExt)||void 0===r||r.setEnable(!1);case 8:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setBeautyIntensity",value:function(e,t){switch(this._rtcSdkApiCall("".concat(this.name,".setBeautyIntensity"),0,[e,t]),t=Math.min(1,Math.max(0,t)),e){case EffectBeautyMode.EFFECT_SHARPEN_MODE:this._beautyDefaultValue.sharpenIntensity=t,this._beautyExt&&(this._beautyExt.sharpenIntensity=t);break;case EffectBeautyMode.EFFECT_WHITE_MODE:this._beautyDefaultValue.whitenIntensity=t,this._beautyExt&&(this._beautyExt.whitenIntensity=t);break;case EffectBeautyMode.EFFECT_SMOOTH_MODE:this._beautyDefaultValue.smoothIntensity=t,this._beautyExt&&(this._beautyExt.smoothIntensity=t)}}},{key:"setBackgroundMode",value:function(e){var t;this._rtcSdkApiCall("".concat(this.name,".setBackgroundMode"),0,[e]),this._backgroundMode=e,null===(t=this._backgroundExt)||void 0===t||t.setBackgroundMode(e)}},{key:"getBackgroundImage",value:function(){var e;return this._rtcSdkApiCall("".concat(this.name,".getBackgroundImage"),0,""),(null===(e=this._backgroundExt)||void 0===e?void 0:e.backgroundImage)||""}},{key:"loadBackgroundImage",value:function(e){return this._rtcSdkApiCall("".concat(this.name,".loadBackgroundImage"),0,[e]),this._backgroundExt?this._backgroundExt.loadBackgroundImage(e):_Promise.reject(new Error("init extension first"))}},{key:"setAIModelType",value:function(e){var t;this._rtcSdkApiCall("".concat(this.name,".setAIModelType"),0,[e]),this._backgroundAIModelType=e,null===(t=this._backgroundExt)||void 0===t||t.setAIModelType(e)}},{key:"applyConstraints",value:function(e,t){var r,n=t.width,o=t.height;e!==StreamIndex.STREAM_INDEX_SCREEN&&"number"==typeof n&&"number"==typeof o&&(null===(r=f._sdk)||void 0===r||r.setCanvasSize(n,o))}},{key:"isSupported",value:(r=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkCompatibility();case 2:return(r=e.sent).isCompatible||0!==_filterInstanceProperty(t=r.reasons).call(t,(function(e){return 4!==e})).length||(r.isCompatible=!0),e.abrupt("return",r.isCompatible);case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"isOpen",value:function(){return this._enable}},{key:"destroy",value:function(){var e,t,r;null===(e=f._sdk)||void 0===e||e.stopFrame(),null===(t=f._sdk)||void 0===t||null===(r=t.video)||void 0===r||r.stop()}},{key:"_rtcSdkApiCall",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null===(t=this.monitor)||void 0===t||t.report("rtc_sdk_api_call",{sdk_api_name:e,error_code:r,message:n})}}],[{key:"loadWebARSDK",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,r=!1,f._loadingProcess||(f._loadingProcess=new _Promise((function(e,o){try{(t=document.createElement("script")).type="text/javascript",t.async=!0,t.src=f._sdkUrl,t.id="extension-webar-sdk",t.addEventListener("load",(function(){r=!0,clearTimeout(n),e()})),t.addEventListener("error",(function(e){t&&document.body.removeChild(t),f._loadingProcess=void 0,clearTimeout(n),o(e)})),document.body.appendChild(t)}catch(e){t&&document.body.removeChild(t),f._loadingProcess=void 0,clearTimeout(n),o(e)}n=setTimeout((function(){r||(t&&document.body.removeChild(t),f._loadingProcess=void 0),o(new Error(TIME_OUT_MESSAGE))}),1e4)}))),e.abrupt("return",f._loadingProcess);case 6:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),f}();_defineProperty(RTCBeautyExtension,"_loadingProcess",void 0),_defineProperty(RTCBeautyExtension,"_sdk",void 0),_defineProperty(RTCBeautyExtension,"_sdkUrl",void 0),_defineProperty(RTCBeautyExtension,"_sdkSourceUrl",void 0),_defineProperty(RTCBeautyExtension,"_sdkHash",""),_defineProperty(RTCBeautyExtension,"_sdkAuthServer",""),_defineProperty(RTCBeautyExtension,"_authFileUrl","");export{BackgroundAIBackend,BackgroundAIModelType,BackgroundMode,EffectBeautyMode,RTCBeautyExtension as default};