@volcengine/veplayer 2.0.0-rc.0 → 2.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.d.ts +2042 -278
- package/esm/veplayer.biz.live.development.js +26 -5
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +4488 -836
- package/esm/veplayer.development.js +288 -58
- package/esm/veplayer.live.d.ts +4494 -843
- package/esm/veplayer.live.development.js +288 -58
- package/esm/veplayer.live.production.js +4 -4
- package/esm/veplayer.production.js +4 -4
- package/esm/veplayer.vod.d.ts +2042 -278
- package/esm/veplayer.vod.development.js +251 -40
- package/esm/veplayer.vod.production.js +3 -3
- package/package.json +1 -1
- package/umd/index.d.ts +2042 -278
- package/umd/veplayer.biz.live.development.js +26 -5
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +4488 -836
- package/umd/veplayer.development.js +288 -58
- package/umd/veplayer.live.d.ts +4494 -843
- package/umd/veplayer.live.development.js +288 -58
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +2042 -278
- package/umd/veplayer.vod.development.js +251 -40
- package/umd/veplayer.vod.production.js +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
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$p=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||commonjsGlobal||Function("return this")(),fails$y=function(e){try{return!!e()}catch(e){return!0}},fails$x=fails$y,functionBindNative=!fails$x((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),NATIVE_BIND$4=functionBindNative,FunctionPrototype$3=Function.prototype,apply$7=FunctionPrototype$3.apply,call$l=FunctionPrototype$3.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$4?call$l.bind(apply$7):function(){return call$l.apply(apply$7,arguments)}),NATIVE_BIND$3=functionBindNative,FunctionPrototype$2=Function.prototype,call$k=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype$2.bind.bind(call$k,call$k),functionUncurryThis=NATIVE_BIND$3?uncurryThisWithBind:function(e){return function(){return call$k.apply(e,arguments)}},uncurryThis$x=functionUncurryThis,toString$d=uncurryThis$x({}.toString),stringSlice$3=uncurryThis$x("".slice),classofRaw$2=function(e){return stringSlice$3(toString$d(e),8,-1)},classofRaw$1=classofRaw$2,uncurryThis$w=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw$1(e))return uncurryThis$w(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$m=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},objectGetOwnPropertyDescriptor={},fails$w=fails$y,descriptors=!fails$w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),NATIVE_BIND$2=functionBindNative,call$j=Function.prototype.call,functionCall=NATIVE_BIND$2?call$j.bind(call$j):function(){return call$j.apply(call$j,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$b=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$b&&!$propertyIsEnumerable$1.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){var t=getOwnPropertyDescriptor$b(this,e);return!!t&&t.enumerable}:$propertyIsEnumerable$1;var match,version,createPropertyDescriptor$8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uncurryThis$v=functionUncurryThis,fails$v=fails$y,classof$e=classofRaw$2,$Object$4=Object,split$1=uncurryThis$v("".split),indexedObject=fails$v((function(){return!$Object$4("z").propertyIsEnumerable(0)}))?function(e){return"String"==classof$e(e)?split$1(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$g=TypeError,requireObjectCoercible$6=function(e){if(isNullOrUndefined$3(e))throw $TypeError$g("Can't call method on "+e);return e},IndexedObject$2=indexedObject,requireObjectCoercible$5=requireObjectCoercible$6,toIndexedObject$b=function(e){return IndexedObject$2(requireObjectCoercible$5(e))},isCallable$l=isCallable$m,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$k=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$l(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$l(e)},path$t={},path$s=path$t,global$o=global$p,isCallable$k=isCallable$m,aFunction=function(e){return isCallable$k(e)?e:void 0},getBuiltIn$f=function(e,t){return arguments.length<2?aFunction(path$s[e])||aFunction(global$o[e]):path$s[e]&&path$s[e][t]||global$o[e]&&global$o[e][t]},uncurryThis$u=functionUncurryThis,objectIsPrototypeOf=uncurryThis$u({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$n=global$p,userAgent$3=engineUserAgent,process$4=global$n.process,Deno$1=global$n.Deno,versions=process$4&&process$4.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$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent$3.match(/Chrome\/(\d+)/))&&(version=+match[1]);var engineV8Version=version,V8_VERSION$3=engineV8Version,fails$u=fails$y,global$m=global$p,$String$5=global$m.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$u((function(){var e=Symbol();return!$String$5(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$e=getBuiltIn$f,isCallable$j=isCallable$m,isPrototypeOf$i=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$6=USE_SYMBOL_AS_UID$1?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$e("Symbol");return isCallable$j(t)&&isPrototypeOf$i(t.prototype,$Object$3(e))},$String$4=String,tryToString$6=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$i=isCallable$m,tryToString$5=tryToString$6,$TypeError$f=TypeError,aCallable$b=function(e){if(isCallable$i(e))return e;throw $TypeError$f(tryToString$5(e)+" is not a function")},aCallable$a=aCallable$b,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){var r=e[t];return isNullOrUndefined$2(r)?void 0:aCallable$a(r)},call$i=functionCall,isCallable$h=isCallable$m,isObject$j=isObject$k,$TypeError$e=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$h(r=e.toString)&&!isObject$j(n=call$i(r,e)))return n;if(isCallable$h(r=e.valueOf)&&!isObject$j(n=call$i(r,e)))return n;if("string"!==t&&isCallable$h(r=e.toString)&&!isObject$j(n=call$i(r,e)))return n;throw $TypeError$e("Can't convert object to primitive value")},shared$7={exports:{}},isPure=!0,global$l=global$p,defineProperty$d=Object.defineProperty,defineGlobalProperty$1=function(e,t){try{defineProperty$d(global$l,e,{value:t,configurable:!0,writable:!0})}catch(r){global$l[e]=t}return t},global$k=global$p,defineGlobalProperty=defineGlobalProperty$1,SHARED="__core-js_shared__",store$3=global$k[SHARED]||defineGlobalProperty(SHARED,{}),sharedStore=store$3,store$2=sharedStore;(shared$7.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedExports=shared$7.exports,requireObjectCoercible$4=requireObjectCoercible$6,$Object$2=Object,toObject$b=function(e){return $Object$2(requireObjectCoercible$4(e))},uncurryThis$t=functionUncurryThis,toObject$a=toObject$b,hasOwnProperty=uncurryThis$t({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$a(e),t)},uncurryThis$s=functionUncurryThis,id$1=0,postfix=Math.random(),toString$c=uncurryThis$s(1..toString),uid$4=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$c(++id$1+postfix,36)},global$j=global$p,shared$6=sharedExports,hasOwn$h=hasOwnProperty_1,uid$3=uid$4,NATIVE_SYMBOL$4=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$5=global$j.Symbol,WellKnownSymbolsStore$2=shared$6("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$5.for||Symbol$5:Symbol$5&&Symbol$5.withoutSetter||uid$3,wellKnownSymbol$q=function(e){return hasOwn$h(WellKnownSymbolsStore$2,e)||(WellKnownSymbolsStore$2[e]=NATIVE_SYMBOL$4&&hasOwn$h(Symbol$5,e)?Symbol$5[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore$2[e]},call$h=functionCall,isObject$i=isObject$k,isSymbol$5=isSymbol$6,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$p=wellKnownSymbol$q,$TypeError$d=TypeError,TO_PRIMITIVE=wellKnownSymbol$p("toPrimitive"),toPrimitive$6=function(e,t){if(!isObject$i(e)||isSymbol$5(e))return e;var r,n=getMethod$2(e,TO_PRIMITIVE);if(n){if(void 0===t&&(t="default"),r=call$h(n,e,t),!isObject$i(r)||isSymbol$5(r))return r;throw $TypeError$d("Can't convert object to primitive value")}return void 0===t&&(t="number"),ordinaryToPrimitive(e,t)},toPrimitive$5=toPrimitive$6,isSymbol$4=isSymbol$6,toPropertyKey$4=function(e){var t=toPrimitive$5(e,"string");return isSymbol$4(t)?t:t+""},global$i=global$p,isObject$h=isObject$k,document$3=global$i.document,EXISTS$1=isObject$h(document$3)&&isObject$h(document$3.createElement),documentCreateElement$1=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$h=descriptors,fails$t=fails$y,createElement$1=documentCreateElement$1,ie8DomDefine=!DESCRIPTORS$h&&!fails$t((function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a})),DESCRIPTORS$g=descriptors,call$g=functionCall,propertyIsEnumerableModule$2=objectPropertyIsEnumerable,createPropertyDescriptor$7=createPropertyDescriptor$8,toIndexedObject$a=toIndexedObject$b,toPropertyKey$3=toPropertyKey$4,hasOwn$g=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$g?$getOwnPropertyDescriptor$2:function(e,t){if(e=toIndexedObject$a(e),t=toPropertyKey$3(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$2(e,t)}catch(e){}if(hasOwn$g(e,t))return createPropertyDescriptor$7(!call$g(propertyIsEnumerableModule$2.f,e,t),e[t])};var fails$s=fails$y,isCallable$g=isCallable$m,replacement=/#|\.prototype\./,isForced$2=function(e,t){var r=data[normalize(e)];return r==POLYFILL||r!=NATIVE&&(isCallable$g(t)?fails$s(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$r=functionUncurryThisClause,aCallable$9=aCallable$b,NATIVE_BIND$1=functionBindNative,bind$h=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$9(e),void 0===t?e:NATIVE_BIND$1?bind$h(e,t):function(){return e.apply(t,arguments)}},objectDefineProperty={},DESCRIPTORS$f=descriptors,fails$r=fails$y,v8PrototypeDefineBug=DESCRIPTORS$f&&fails$r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),isObject$g=isObject$k,$String$3=String,$TypeError$c=TypeError,anObject$e=function(e){if(isObject$g(e))return e;throw $TypeError$c($String$3(e)+" is not an object")},DESCRIPTORS$e=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey$2=toPropertyKey$4,$TypeError$b=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$d(e),t=toPropertyKey$2(t),anObject$d(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$d(e),t=toPropertyKey$2(t),anObject$d(r),IE8_DOM_DEFINE)try{return $defineProperty$1(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$b("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var DESCRIPTORS$d=descriptors,definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$6=createPropertyDescriptor$8,createNonEnumerableProperty$8=DESCRIPTORS$d?function(e,t,r){return definePropertyModule$4.f(e,t,createPropertyDescriptor$6(1,r))}:function(e,t,r){return e[t]=r,e},global$h=global$p,apply$6=functionApply,uncurryThis$q=functionUncurryThisClause,isCallable$f=isCallable$m,getOwnPropertyDescriptor$a=objectGetOwnPropertyDescriptor.f,isForced$1=isForced_1,path$r=path$t,bind$g=functionBindContext,createNonEnumerableProperty$7=createNonEnumerableProperty$8,hasOwn$f=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$6(e,this,arguments)};return t.prototype=e.prototype,t},_export=function(e,t){var r,n,o,a,i,s,l,c,p,u=e.target,$=e.global,y=e.stat,f=e.proto,d=$?global$h:y?global$h[u]:(global$h[u]||{}).prototype,h=$?path$r:path$r[u]||createNonEnumerableProperty$7(path$r,u,{})[u],g=h.prototype;for(a in t)n=!(r=isForced$1($?a:u+(y?".":"#")+a,e.forced))&&d&&hasOwn$f(d,a),s=h[a],n&&(l=e.dontCallGetSet?(p=getOwnPropertyDescriptor$a(d,a))&&p.value:d[a]),i=n&&l?l:t[a],n&&typeof s==typeof i||(c=e.bind&&n?bind$g(i,global$h):e.wrap&&n?wrapConstructor(i):f&&isCallable$f(i)?uncurryThis$q(i):i,(e.sham||i&&i.sham||s&&s.sham)&&createNonEnumerableProperty$7(c,"sham",!0),createNonEnumerableProperty$7(h,a,c),f&&(hasOwn$f(path$r,o=u+"Prototype")||createNonEnumerableProperty$7(path$r,o,{}),createNonEnumerableProperty$7(path$r[o],a,i),e.real&&g&&(r||!g[a])&&createNonEnumerableProperty$7(g,a,i)))},classof$d=classofRaw$2,isArray$d=Array.isArray||function(e){return"Array"==classof$d(e)},ceil=Math.ceil,floor$1=Math.floor,mathTrunc=Math.trunc||function(e){var t=+e;return(t>0?floor$1:ceil)(t)},trunc2=mathTrunc,toIntegerOrInfinity$5=function(e){var t=+e;return t!=t||0===t?0:trunc2(t)},toIntegerOrInfinity$4=toIntegerOrInfinity$5,min$4=Math.min,toLength$2=function(e){return e>0?min$4(toIntegerOrInfinity$4(e),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$a=function(e){return toLength$1(e.length)},$TypeError$a=TypeError,MAX_SAFE_INTEGER=9007199254740991,doesNotExceedSafeInteger$3=function(e){if(e>MAX_SAFE_INTEGER)throw $TypeError$a("Maximum allowed index exceeded");return e},toPropertyKey$1=toPropertyKey$4,definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$5=createPropertyDescriptor$8,createProperty$6=function(e,t,r){var n=toPropertyKey$1(t);n in e?definePropertyModule$3.f(e,n,createPropertyDescriptor$5(0,r)):e[n]=r},wellKnownSymbol$o=wellKnownSymbol$q,TO_STRING_TAG$4=wellKnownSymbol$o("toStringTag"),test$1={};test$1[TO_STRING_TAG$4]="z";var toStringTagSupport="[object z]"===String(test$1),TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$e=isCallable$m,classofRaw=classofRaw$2,wellKnownSymbol$n=wellKnownSymbol$q,TO_STRING_TAG$3=wellKnownSymbol$n("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$e(t.callee)?"Arguments":n},uncurryThis$p=functionUncurryThis,isCallable$d=isCallable$m,store$1=sharedStore,functionToString=uncurryThis$p(Function.toString);isCallable$d(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)});var inspectSource$2=store$1.inspectSource,uncurryThis$o=functionUncurryThis,fails$q=fails$y,isCallable$c=isCallable$m,classof$b=classof$c,getBuiltIn$d=getBuiltIn$f,inspectSource$1=inspectSource$2,noop=function(){},empty=[],construct$6=getBuiltIn$d("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$2=uncurryThis$o(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$c(e))return!1;try{return construct$6(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$c(e))return!1;switch(classof$b(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$2(constructorRegExp,inspectSource$1(e))}catch(e){return!0}};isConstructorLegacy.sham=!0;var isConstructor$4=!construct$6||fails$q((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$f=isObject$k,wellKnownSymbol$m=wellKnownSymbol$q,SPECIES$5=wellKnownSymbol$m("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$f(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$p=fails$y,wellKnownSymbol$l=wellKnownSymbol$q,V8_VERSION$2=engineV8Version,SPECIES$4=wellKnownSymbol$l("species"),arrayMethodHasSpeciesSupport$5=function(e){return V8_VERSION$2>=51||!fails$p((function(){var t=[];return(t.constructor={})[SPECIES$4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$$T=_export,fails$o=fails$y,isArray$b=isArray$d,isObject$e=isObject$k,toObject$9=toObject$b,lengthOfArrayLike$9=lengthOfArrayLike$a,doesNotExceedSafeInteger$2=doesNotExceedSafeInteger$3,createProperty$5=createProperty$6,arraySpeciesCreate$2=arraySpeciesCreate$3,arrayMethodHasSpeciesSupport$4=arrayMethodHasSpeciesSupport$5,wellKnownSymbol$k=wellKnownSymbol$q,V8_VERSION$1=engineV8Version,IS_CONCAT_SPREADABLE=wellKnownSymbol$k("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION$1>=51||!fails$o((function(){var e=[];return e[IS_CONCAT_SPREADABLE]=!1,e.concat()[0]!==e})),isConcatSpreadable=function(e){if(!isObject$e(e))return!1;var t=e[IS_CONCAT_SPREADABLE];return void 0!==t?!!t:isArray$b(e)},FORCED$8=!IS_CONCAT_SPREADABLE_SUPPORT||!arrayMethodHasSpeciesSupport$4("concat");$$T({target:"Array",proto:!0,arity:1,forced:FORCED$8},{concat:function(e){var t,r,n,o,a,i=toObject$9(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$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$2=String,toString$b=function(e){if("Symbol"===classof$a(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$2(e)},objectDefineProperties={},toIntegerOrInfinity$3=toIntegerOrInfinity$5,max$3=Math.max,min$3=Math.min,toAbsoluteIndex$4=function(e,t){var r=toIntegerOrInfinity$3(e);return r<0?max$3(r+t,0):min$3(r,t)},toIndexedObject$9=toIndexedObject$b,toAbsoluteIndex$3=toAbsoluteIndex$4,lengthOfArrayLike$8=lengthOfArrayLike$a,createMethod$3=function(e){return function(t,r,n){var o,a=toIndexedObject$9(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$n=functionUncurryThis,hasOwn$e=hasOwnProperty_1,toIndexedObject$8=toIndexedObject$b,indexOf$7=arrayIncludes.indexOf,hiddenKeys$5=hiddenKeys$6,push$c=uncurryThis$n([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$8(e),o=0,a=[];for(r in n)!hasOwn$e(hiddenKeys$5,r)&&hasOwn$e(n,r)&&push$c(a,r);for(;t.length>o;)hasOwn$e(n,r=t[o++])&&(~indexOf$7(a,r)||push$c(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$2=objectDefineProperty,anObject$c=anObject$e,toIndexedObject$7=toIndexedObject$b,objectKeys$2=objectKeys$3;objectDefineProperties.f=DESCRIPTORS$c&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$c(e);for(var r,n=toIndexedObject$7(t),o=objectKeys$2(t),a=o.length,i=0;a>i;)definePropertyModule$2.f(e,r=o[i++],n[r]);return e};var activeXDocument,getBuiltIn$c=getBuiltIn$f,html$2=getBuiltIn$c("document","documentElement"),shared$5=sharedExports,uid$2=uid$4,keys$6=shared$5("keys"),sharedKey$4=function(e){return keys$6[e]||(keys$6[e]=uid$2(e))},anObject$b=anObject$e,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$b(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$6=toIndexedObject$b,$getOwnPropertyNames$1=objectGetOwnPropertyNames.f,arraySlice$6=arraySliceSimple,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return $getOwnPropertyNames$1(e)}catch(e){return arraySlice$6(windowNames)}};objectGetOwnPropertyNamesExternal.f=function(e){return windowNames&&"Window"==classof$9(e)?getWindowNames(e):$getOwnPropertyNames$1(toIndexedObject$6(e))};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var createNonEnumerableProperty$6=createNonEnumerableProperty$8,defineBuiltIn$7=function(e,t,r,n){return n&&n.enumerable?e[t]=r:createNonEnumerableProperty$6(e,t,r),e},defineProperty$c=objectDefineProperty,defineBuiltInAccessor$3=function(e,t,r){return defineProperty$c.f(e,t,r)},wellKnownSymbolWrapped={},wellKnownSymbol$j=wellKnownSymbol$q;wellKnownSymbolWrapped.f=wellKnownSymbol$j;var set$1,get,has,path$q=path$t,hasOwn$d=hasOwnProperty_1,wrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,defineProperty$b=objectDefineProperty.f,wellKnownSymbolDefine=function(e){var t=path$q.Symbol||(path$q.Symbol={});hasOwn$d(t,e)||defineProperty$b(t,e,{value:wrappedWellKnownSymbolModule$1.f(e)})},call$f=functionCall,getBuiltIn$b=getBuiltIn$f,wellKnownSymbol$i=wellKnownSymbol$q,defineBuiltIn$6=defineBuiltIn$7,symbolDefineToPrimitive=function(){var e=getBuiltIn$b("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wellKnownSymbol$i("toPrimitive");t&&!t[n]&&defineBuiltIn$6(t,n,(function(e){return call$f(r,this)}),{arity:1})},TO_STRING_TAG_SUPPORT$1=toStringTagSupport,classof$8=classof$c,objectToString$1=TO_STRING_TAG_SUPPORT$1?{}.toString:function(){return"[object "+classof$8(this)+"]"},TO_STRING_TAG_SUPPORT=toStringTagSupport,defineProperty$a=objectDefineProperty.f,createNonEnumerableProperty$5=createNonEnumerableProperty$8,hasOwn$c=hasOwnProperty_1,toString$a=objectToString$1,wellKnownSymbol$h=wellKnownSymbol$q,TO_STRING_TAG$2=wellKnownSymbol$h("toStringTag"),setToStringTag$7=function(e,t,r,n){if(e){var o=r?e:e.prototype;hasOwn$c(o,TO_STRING_TAG$2)||defineProperty$a(o,TO_STRING_TAG$2,{configurable:!0,value:t}),n&&!TO_STRING_TAG_SUPPORT&&createNonEnumerableProperty$5(o,"toString",toString$a)}},global$g=global$p,isCallable$b=isCallable$m,WeakMap$1=global$g.WeakMap,weakMapBasicDetection=isCallable$b(WeakMap$1)&&/native code/.test(String(WeakMap$1)),NATIVE_WEAK_MAP=weakMapBasicDetection,global$f=global$p,isObject$d=isObject$k,createNonEnumerableProperty$4=createNonEnumerableProperty$8,hasOwn$b=hasOwnProperty_1,shared$4=sharedStore,sharedKey$2=sharedKey$4,hiddenKeys$2=hiddenKeys$6,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$f.TypeError,WeakMap=global$f.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(e){return function(t){var r;if(!isObject$d(t)||(r=get(t)).type!==e)throw TypeError$4("Incompatible receiver, "+e+" required");return r}};if(NATIVE_WEAK_MAP||shared$4.state){var store=shared$4.state||(shared$4.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$4(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$b(e,STATE))throw TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$b(e,STATE)?e[STATE]:{}},has=function(e){return hasOwn$b(e,STATE)}}var internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},bind$f=functionBindContext,uncurryThis$m=functionUncurryThis,IndexedObject$1=indexedObject,toObject$8=toObject$b,lengthOfArrayLike$6=lengthOfArrayLike$a,arraySpeciesCreate$1=arraySpeciesCreate$3,push$b=uncurryThis$m([].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,p,u){for(var $,y,f=toObject$8(l),d=IndexedObject$1(f),h=bind$f(c,p),g=lengthOfArrayLike$6(d),m=0,_=u||arraySpeciesCreate$1,b=t?_(l,g):r||i?_(l,0):void 0;g>m;m++)if((s||m in d)&&(y=h($=d[m],m,f),e))if(t)b[m]=y;else if(y)switch(e){case 3:return!0;case 5:return $;case 6:return m;case 2:push$b(b,$)}else switch(e){case 4:return!1;case 7:push$b(b,$)}return a?-1:n||o?o:b}},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)},$$S=_export,global$e=global$p,call$e=functionCall,uncurryThis$l=functionUncurryThis,DESCRIPTORS$b=descriptors,NATIVE_SYMBOL$3=symbolConstructorDetection,fails$n=fails$y,hasOwn$a=hasOwnProperty_1,isPrototypeOf$h=objectIsPrototypeOf,anObject$a=anObject$e,toIndexedObject$5=toIndexedObject$b,toPropertyKey=toPropertyKey$4,$toString$1=toString$b,createPropertyDescriptor$4=createPropertyDescriptor$8,nativeObjectCreate=objectCreate,objectKeys$1=objectKeys$3,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames,getOwnPropertyNamesExternal=objectGetOwnPropertyNamesExternal,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,definePropertiesModule=objectDefineProperties,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,defineBuiltIn$5=defineBuiltIn$7,defineBuiltInAccessor$2=defineBuiltInAccessor$3,shared$3=sharedExports,sharedKey$1=sharedKey$4,hiddenKeys$1=hiddenKeys$6,uid$1=uid$4,wellKnownSymbol$g=wellKnownSymbol$q,wrappedWellKnownSymbolModule=wellKnownSymbolWrapped,defineWellKnownSymbol$l=wellKnownSymbolDefine,defineSymbolToPrimitive$1=symbolDefineToPrimitive,setToStringTag$6=setToStringTag$7,InternalStateModule$4=internalState,$forEach$1=arrayIteration.forEach,HIDDEN=sharedKey$1("hidden"),SYMBOL="Symbol",PROTOTYPE="prototype",setInternalState$4=InternalStateModule$4.set,getInternalState$2=InternalStateModule$4.getterFor(SYMBOL),ObjectPrototype$2=Object[PROTOTYPE],$Symbol=global$e.Symbol,SymbolPrototype=$Symbol&&$Symbol[PROTOTYPE],TypeError$3=global$e.TypeError,QObject=global$e.QObject,nativeGetOwnPropertyDescriptor$1=getOwnPropertyDescriptorModule$2.f,nativeDefineProperty=definePropertyModule$1.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule$1.f,push$a=uncurryThis$l([].push),AllSymbols=shared$3("symbols"),ObjectPrototypeSymbols=shared$3("op-symbols"),WellKnownSymbolsStore$1=shared$3("wks"),USE_SETTER=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild,setSymbolDescriptor=DESCRIPTORS$b&&fails$n((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$4(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$a(e);var n=toPropertyKey(t);return anObject$a(r),hasOwn$a(AllSymbols,n)?(r.enumerable?(hasOwn$a(e,HIDDEN)&&e[HIDDEN][n]&&(e[HIDDEN][n]=!1),r=nativeObjectCreate(r,{enumerable:createPropertyDescriptor$4(0,!1)})):(hasOwn$a(e,HIDDEN)||nativeDefineProperty(e,HIDDEN,createPropertyDescriptor$4(1,{})),e[HIDDEN][n]=!0),setSymbolDescriptor(e,n,r)):nativeDefineProperty(e,n,r)},$defineProperties=function(e,t){anObject$a(e);var r=toIndexedObject$5(t),n=objectKeys$1(r).concat($getOwnPropertySymbols(r));return $forEach$1(n,(function(t){DESCRIPTORS$b&&!call$e($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$e(nativePropertyIsEnumerable,this,t);return!(this===ObjectPrototype$2&&hasOwn$a(AllSymbols,t)&&!hasOwn$a(ObjectPrototypeSymbols,t))&&(!(r||!hasOwn$a(this,t)||!hasOwn$a(AllSymbols,t)||hasOwn$a(this,HIDDEN)&&this[HIDDEN][t])||r)},$getOwnPropertyDescriptor=function(e,t){var r=toIndexedObject$5(e),n=toPropertyKey(t);if(r!==ObjectPrototype$2||!hasOwn$a(AllSymbols,n)||hasOwn$a(ObjectPrototypeSymbols,n)){var o=nativeGetOwnPropertyDescriptor$1(r,n);return!o||!hasOwn$a(AllSymbols,n)||hasOwn$a(r,HIDDEN)&&r[HIDDEN][n]||(o.enumerable=!0),o}},$getOwnPropertyNames=function(e){var t=nativeGetOwnPropertyNames(toIndexedObject$5(e)),r=[];return $forEach$1(t,(function(e){hasOwn$a(AllSymbols,e)||hasOwn$a(hiddenKeys$1,e)||push$a(r,e)})),r},$getOwnPropertySymbols=function(e){var t=e===ObjectPrototype$2,r=nativeGetOwnPropertyNames(t?ObjectPrototypeSymbols:toIndexedObject$5(e)),n=[];return $forEach$1(r,(function(e){!hasOwn$a(AllSymbols,e)||t&&!hasOwn$a(ObjectPrototype$2,e)||push$a(n,AllSymbols[e])})),n};NATIVE_SYMBOL$3||(defineBuiltIn$5(SymbolPrototype=($Symbol=function(){if(isPrototypeOf$h(SymbolPrototype,this))throw TypeError$3("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?$toString$1(arguments[0]):void 0,t=uid$1(e),r=function(e){this===ObjectPrototype$2&&call$e(r,ObjectPrototypeSymbols,e),hasOwn$a(this,HIDDEN)&&hasOwn$a(this[HIDDEN],t)&&(this[HIDDEN][t]=!1),setSymbolDescriptor(this,t,createPropertyDescriptor$4(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$5($Symbol,"withoutSetter",(function(e){return wrap(uid$1(e),e)})),propertyIsEnumerableModule$1.f=$propertyIsEnumerable,definePropertyModule$1.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$g(e),e)},DESCRIPTORS$b&&defineBuiltInAccessor$2(SymbolPrototype,"description",{configurable:!0,get:function(){return getInternalState$2(this).description}})),$$S({global:!0,constructor:!0,wrap:!0,forced:!NATIVE_SYMBOL$3,sham:!NATIVE_SYMBOL$3},{Symbol:$Symbol}),$forEach$1(objectKeys$1(WellKnownSymbolsStore$1),(function(e){defineWellKnownSymbol$l(e)})),$$S({target:SYMBOL,stat:!0,forced:!NATIVE_SYMBOL$3},{useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$$S({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$3,sham:!DESCRIPTORS$b},{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor}),$$S({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,$$R=_export,getBuiltIn$a=getBuiltIn$f,hasOwn$9=hasOwnProperty_1,toString$9=toString$b,shared$2=sharedExports,NATIVE_SYMBOL_REGISTRY$1=symbolRegistryDetection,StringToSymbolRegistry=shared$2("string-to-symbol-registry"),SymbolToStringRegistry$1=shared$2("symbol-to-string-registry");$$R({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY$1},{for:function(e){var t=toString$9(e);if(hasOwn$9(StringToSymbolRegistry,t))return StringToSymbolRegistry[t];var r=getBuiltIn$a("Symbol")(t);return StringToSymbolRegistry[t]=r,SymbolToStringRegistry$1[r]=t,r}});var $$Q=_export,hasOwn$8=hasOwnProperty_1,isSymbol$3=isSymbol$6,tryToString$4=tryToString$6,shared$1=sharedExports,NATIVE_SYMBOL_REGISTRY=symbolRegistryDetection,SymbolToStringRegistry=shared$1("symbol-to-string-registry");$$Q({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY},{keyFor:function(e){if(!isSymbol$3(e))throw TypeError(tryToString$4(e)+" is not a symbol");if(hasOwn$8(SymbolToStringRegistry,e))return SymbolToStringRegistry[e]}});var uncurryThis$k=functionUncurryThis,arraySlice$5=uncurryThis$k([].slice),uncurryThis$j=functionUncurryThis,isArray$a=isArray$d,isCallable$a=isCallable$m,classof$7=classofRaw$2,toString$8=toString$b,push$9=uncurryThis$j([].push),getJsonReplacerFunction=function(e){if(isCallable$a(e))return e;if(isArray$a(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?push$9(r,o):"number"!=typeof o&&"Number"!=classof$7(o)&&"String"!=classof$7(o)||push$9(r,toString$8(o))}var a=r.length,i=!0;return function(e,t){if(i)return i=!1,t;if(isArray$a(this))return t;for(var n=0;n<a;n++)if(r[n]===e)return t}}},$$P=_export,getBuiltIn$9=getBuiltIn$f,apply$5=functionApply,call$d=functionCall,uncurryThis$i=functionUncurryThis,fails$m=fails$y,isCallable$9=isCallable$m,isSymbol$2=isSymbol$6,arraySlice$4=arraySlice$5,getReplacerFunction=getJsonReplacerFunction,NATIVE_SYMBOL$1=symbolConstructorDetection,$String$1=String,$stringify=getBuiltIn$9("JSON","stringify"),exec$1=uncurryThis$i(/./.exec),charAt$4=uncurryThis$i("".charAt),charCodeAt$1=uncurryThis$i("".charCodeAt),replace$3=uncurryThis$i("".replace),numberToString=uncurryThis$i(1..toString),tester=/[\uD800-\uDFFF]/g,low=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,WRONG_SYMBOLS_CONVERSION=!NATIVE_SYMBOL$1||fails$m((function(){var e=getBuiltIn$9("Symbol")();return"[null]"!=$stringify([e])||"{}"!=$stringify({a:e})||"{}"!=$stringify(Object(e))})),ILL_FORMED_UNICODE=fails$m((function(){return'"\\udf06\\ud834"'!==$stringify("\udf06\ud834")||'"\\udead"'!==$stringify("\udead")})),stringifyWithSymbolsFix=function(e,t){var r=arraySlice$4(arguments),n=getReplacerFunction(t);if(isCallable$9(n)||void 0!==e&&!isSymbol$2(e))return r[1]=function(e,t){if(isCallable$9(n)&&(t=call$d(n,this,$String$1(e),t)),!isSymbol$2(t))return t},apply$5($stringify,null,r)},fixIllFormed=function(e,t,r){var n=charAt$4(r,t-1),o=charAt$4(r,t+1);return exec$1(low,e)&&!exec$1(hi,o)||exec$1(hi,e)&&!exec$1(low,n)?"\\u"+numberToString(charCodeAt$1(e,0),16):e};$stringify&&$$P({target:"JSON",stat:!0,arity:3,forced:WRONG_SYMBOLS_CONVERSION||ILL_FORMED_UNICODE},{stringify:function(e,t,r){var n=arraySlice$4(arguments),o=apply$5(WRONG_SYMBOLS_CONVERSION?stringifyWithSymbolsFix:$stringify,null,n);return ILL_FORMED_UNICODE&&"string"==typeof o?replace$3(o,tester,fixIllFormed):o}});var $$O=_export,NATIVE_SYMBOL=symbolConstructorDetection,fails$l=fails$y,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols,toObject$7=toObject$b,FORCED$7=!NATIVE_SYMBOL||fails$l((function(){getOwnPropertySymbolsModule$2.f(1)}));$$O({target:"Object",stat:!0,forced:FORCED$7},{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$8=getBuiltIn$f,defineWellKnownSymbol$9=wellKnownSymbolDefine,setToStringTag$5=setToStringTag$7;defineWellKnownSymbol$9("toStringTag"),setToStringTag$5(getBuiltIn$8("Symbol"),"Symbol");var defineWellKnownSymbol$8=wellKnownSymbolDefine;defineWellKnownSymbol$8("unscopables");var global$d=global$p,setToStringTag$4=setToStringTag$7;setToStringTag$4(global$d.JSON,"JSON",!0);var IteratorPrototype$1,PrototypeOfArrayIteratorPrototype,arrayIterator,path$p=path$t,symbol$5=path$p.Symbol,iterators={},DESCRIPTORS$a=descriptors,hasOwn$7=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$a&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$7(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$k=fails$y,correctPrototypeGetter=!fails$k((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hasOwn$6=hasOwnProperty_1,isCallable$8=isCallable$m,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$6(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$j=fails$y,isCallable$7=isCallable$m,isObject$c=isObject$k,create$c=objectCreate,getPrototypeOf$7=objectGetPrototypeOf,defineBuiltIn$4=defineBuiltIn$7,wellKnownSymbol$f=wellKnownSymbol$q,ITERATOR$8=wellKnownSymbol$f("iterator"),BUGGY_SAFARI_ITERATORS$1=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$7(getPrototypeOf$7(arrayIterator)))!==Object.prototype&&(IteratorPrototype$1=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject$c(IteratorPrototype$1)||fails$j((function(){var e={};return IteratorPrototype$1[ITERATOR$8].call(e)!==e}));isCallable$7((IteratorPrototype$1=NEW_ITERATOR_PROTOTYPE?{}:create$c(IteratorPrototype$1))[ITERATOR$8])||defineBuiltIn$4(IteratorPrototype$1,ITERATOR$8,(function(){return this}));var iteratorsCore={IteratorPrototype:IteratorPrototype$1,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype=iteratorsCore.IteratorPrototype,create$b=objectCreate,createPropertyDescriptor$3=createPropertyDescriptor$8,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$b(IteratorPrototype,{next:createPropertyDescriptor$3(+!n,r)}),setToStringTag$3(e,o,!1,!0),Iterators$5[o]=returnThis$1,e},uncurryThis$h=functionUncurryThis,aCallable$8=aCallable$b,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$h(aCallable$8(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isCallable$6=isCallable$m,$String=String,$TypeError$9=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$6(e))return e;throw $TypeError$9("Can't set "+$String(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$9=anObject$e,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=uncurryThisAccessor(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return anObject$9(r),aPossiblePrototype(n),t?e(r,n):r.__proto__=n,r}}():void 0),$$N=_export,call$c=functionCall,FunctionName=functionName,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf$6=objectGetPrototypeOf,setToStringTag$2=setToStringTag$7,defineBuiltIn$3=defineBuiltIn$7,wellKnownSymbol$e=wellKnownSymbol$q,Iterators$4=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName.PROPER;FunctionName.CONFIGURABLE,IteratorsCore.IteratorPrototype;var BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$7=wellKnownSymbol$e("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,a,i){createIteratorConstructor$1(r,t,n);var s,l,c,p=function(e){if(e===o&&d)return d;if(!BUGGY_SAFARI_ITERATORS&&e in y)return y[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}},u=t+" Iterator",$=!1,y=e.prototype,f=y[ITERATOR$7]||y["@@iterator"]||o&&y[o],d=!BUGGY_SAFARI_ITERATORS&&f||p(o),h="Array"==t&&y.entries||f;if(h&&(s=getPrototypeOf$6(h.call(new e)))!==Object.prototype&&s.next&&(setToStringTag$2(s,u,!0,!0),Iterators$4[u]=returnThis),PROPER_FUNCTION_NAME$1&&o==VALUES&&f&&f.name!==VALUES&&($=!0,d=function(){return call$c(f,this)}),o)if(l={values:p(VALUES),keys:a?d:p(KEYS),entries:p(ENTRIES)},i)for(c in l)(BUGGY_SAFARI_ITERATORS||$||!(c in y))&&defineBuiltIn$3(y,c,l[c]);else $$N({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||$},l);return i&&y[ITERATOR$7]!==d&&defineBuiltIn$3(y,ITERATOR$7,d,{name:o}),Iterators$4[t]=d,l},createIterResultObject$2=function(e,t){return{value:e,done:t}},toIndexedObject$4=toIndexedObject$b,Iterators$3=iterators,InternalStateModule$3=internalState;objectDefineProperty.f;var defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$2,ARRAY_ITERATOR="Array Iterator",setInternalState$3=InternalStateModule$3.set,getInternalState$1=InternalStateModule$3.getterFor(ARRAY_ITERATOR);defineIterator$1(Array,"Array",(function(e,t){setInternalState$3(this,{type:ARRAY_ITERATOR,target:toIndexedObject$4(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$1(void 0,!0)):createIterResultObject$1("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$1=domIterables,global$c=global$p,classof$6=classof$c,createNonEnumerableProperty$3=createNonEnumerableProperty$8,Iterators$2=iterators,wellKnownSymbol$d=wellKnownSymbol$q,TO_STRING_TAG$1=wellKnownSymbol$d("toStringTag");for(var COLLECTION_NAME in DOMIterables$1){var Collection=global$c[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;CollectionPrototype&&classof$6(CollectionPrototype)!==TO_STRING_TAG$1&&createNonEnumerableProperty$3(CollectionPrototype,TO_STRING_TAG$1,COLLECTION_NAME),Iterators$2[COLLECTION_NAME]=Iterators$2.Array}var parent$1X=symbol$5,symbol$4=parent$1X,defineWellKnownSymbol$7=wellKnownSymbolDefine;defineWellKnownSymbol$7("dispose");var parent$1W=symbol$4,symbol$3=parent$1W,defineWellKnownSymbol$6=wellKnownSymbolDefine;defineWellKnownSymbol$6("asyncDispose");var $$M=_export,getBuiltIn$7=getBuiltIn$f,uncurryThis$g=functionUncurryThis,Symbol$4=getBuiltIn$7("Symbol"),keyFor2=Symbol$4.keyFor,thisSymbolValue$1=uncurryThis$g(Symbol$4.prototype.valueOf);$$M({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==keyFor2(thisSymbolValue$1(e))}catch(e){return!1}}});for(var $$L=_export,shared=sharedExports,getBuiltIn$6=getBuiltIn$f,uncurryThis$f=functionUncurryThis,isSymbol$1=isSymbol$6,wellKnownSymbol$c=wellKnownSymbol$q,Symbol$3=getBuiltIn$6("Symbol"),$isWellKnown=Symbol$3.isWellKnown,getOwnPropertyNames4=getBuiltIn$6("Object","getOwnPropertyNames"),thisSymbolValue=uncurryThis$f(Symbol$3.prototype.valueOf),WellKnownSymbolsStore=shared("wks"),i$1=0,symbolKeys=getOwnPropertyNames4(Symbol$3),symbolKeysLength=symbolKeys.length;i$1<symbolKeysLength;i$1++)try{var symbolKey=symbolKeys[i$1];isSymbol$1(Symbol$3[symbolKey])&&wellKnownSymbol$c(symbolKey)}catch(e){}$$L({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if($isWellKnown&&$isWellKnown(e))return!0;try{for(var t=thisSymbolValue(e),r=0,n=getOwnPropertyNames4(WellKnownSymbolsStore),o=n.length;r<o;r++)if(WellKnownSymbolsStore[n[r]]==t)return!0}catch(e){}return!1}});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$1V=symbol$3,symbol$2=parent$1V,symbol$1=symbol$2,_Symbol$1=getDefaultExportFromCjs(symbol$1),uncurryThis$e=functionUncurryThis,toIntegerOrInfinity$2=toIntegerOrInfinity$5,toString$7=toString$b,requireObjectCoercible$3=requireObjectCoercible$6,charAt$3=uncurryThis$e("".charAt),charCodeAt=uncurryThis$e("".charCodeAt),stringSlice$2=uncurryThis$e("".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$3(a,i):n:e?stringSlice$2(a,i,i+2):o-56320+(n-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt$2=stringMultibyte.charAt,toString$6=toString$b,InternalStateModule$2=internalState,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$2,STRING_ITERATOR="String Iterator",setInternalState$2=InternalStateModule$2.set,getInternalState=InternalStateModule$2.getterFor(STRING_ITERATOR);defineIterator(String,"String",(function(e){setInternalState$2(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(void 0,!0):(e=charAt$2(r,n),t.index+=e.length,createIterResultObject(e,!1))}));var WrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,iterator$4=WrappedWellKnownSymbolModule$1.f("iterator"),parent$1U=iterator$4,iterator$3=parent$1U,parent$1T=iterator$3,iterator$2=parent$1T,parent$1S=iterator$2,iterator$1=parent$1S,iterator=iterator$1,_Symbol$iterator=getDefaultExportFromCjs(iterator);function _typeof(e){return(_typeof="function"==typeof _Symbol$1&&"symbol"==typeof _Symbol$iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof _Symbol$1&&e.constructor===_Symbol$1&&e!==_Symbol$1.prototype?"symbol":typeof e})(e)}var defineProperty$9={exports:{}},$$K=_export,DESCRIPTORS$9=descriptors,defineProperty$8=objectDefineProperty.f;$$K({target:"Object",stat:!0,forced:Object.defineProperty!==defineProperty$8,sham:!DESCRIPTORS$9},{defineProperty:defineProperty$8});var path$o=path$t,Object$4=path$o.Object,defineProperty$7=defineProperty$9.exports=function(e,t,r){return Object$4.defineProperty(e,t,r)};Object$4.defineProperty.sham&&(defineProperty$7.sham=!0);var definePropertyExports=defineProperty$9.exports,parent$1R=definePropertyExports,defineProperty$6=parent$1R,parent$1Q=defineProperty$6,defineProperty$5=parent$1Q,parent$1P=defineProperty$5,defineProperty$4=parent$1P,defineProperty$3=defineProperty$4,_Object$defineProperty$1=getDefaultExportFromCjs(defineProperty$3),$$J=_export,DESCRIPTORS$8=descriptors,create$a=objectCreate;$$J({target:"Object",stat:!0,sham:!DESCRIPTORS$8},{create:create$a});var path$n=path$t,Object$3=path$n.Object,create$9=function(e,t){return Object$3.create(e,t)},parent$1O=create$9,create$8=parent$1O,parent$1N=create$8,create$7=parent$1N,parent$1M=create$7,create$6=parent$1M,create$5=create$6,_Object$create$1=getDefaultExportFromCjs(create$5),$$I=_export,fails$i=fails$y,toObject$5=toObject$b,nativeGetPrototypeOf=objectGetPrototypeOf,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,FAILS_ON_PRIMITIVES$3=fails$i((function(){nativeGetPrototypeOf(1)}));$$I({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$3,sham:!CORRECT_PROTOTYPE_GETTER},{getPrototypeOf:function(e){return nativeGetPrototypeOf(toObject$5(e))}});var path$m=path$t,getPrototypeOf$5=path$m.Object.getPrototypeOf,parent$1L=getPrototypeOf$5,getPrototypeOf$4=parent$1L,parent$1K=getPrototypeOf$4,getPrototypeOf$3=parent$1K,parent$1J=getPrototypeOf$3,getPrototypeOf$2=parent$1J,getPrototypeOf$1=getPrototypeOf$2,_Object$getPrototypeOf=getDefaultExportFromCjs(getPrototypeOf$1),fails$h=fails$y,arrayMethodIsStrict$3=function(e,t){var r=[][e];return!!r&&fails$h((function(){r.call(null,t||function(){return 1},1)}))},$forEach=arrayIteration.forEach,arrayMethodIsStrict$2=arrayMethodIsStrict$3,STRICT_METHOD$1=arrayMethodIsStrict$2("forEach"),arrayForEach=STRICT_METHOD$1?[].forEach:function(e){return $forEach(this,e,arguments.length>1?arguments[1]:void 0)},$$H=_export,forEach$7=arrayForEach;$$H({target:"Array",proto:!0,forced:[].forEach!=arrayForEach},{forEach:arrayForEach});var path$l=path$t,entryVirtual$f=function(e){return path$l[e+"Prototype"]},entryVirtual$e=entryVirtual$f,forEach$6=entryVirtual$e("Array").forEach,parent$1I=forEach$6,forEach$5=parent$1I,classof$5=classof$c,hasOwn$5=hasOwnProperty_1,isPrototypeOf$g=objectIsPrototypeOf,method$c=forEach$5,ArrayPrototype$b=Array.prototype,DOMIterables={DOMTokenList:!0,NodeList:!0},forEach$4=function(e){var t=e.forEach;return e===ArrayPrototype$b||isPrototypeOf$g(ArrayPrototype$b,e)&&t===ArrayPrototype$b.forEach||hasOwn$5(DOMIterables,classof$5(e))?method$c:t},parent$1H=forEach$4,forEach$3=parent$1H,parent$1G=forEach$3,forEach$2=parent$1G,forEach$1=forEach$2,_forEachInstanceProperty$1=getDefaultExportFromCjs(forEach$1),DESCRIPTORS$7=descriptors,isArray$9=isArray$d,$TypeError$8=TypeError,getOwnPropertyDescriptor$9=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS$7&&!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$9(e)&&!getOwnPropertyDescriptor$9(e,"length").writable)throw $TypeError$8("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},$$G=_export,toObject$4=toObject$b,lengthOfArrayLike$5=lengthOfArrayLike$a,setArrayLength$1=arraySetLength,doesNotExceedSafeInteger$1=doesNotExceedSafeInteger$3,fails$g=fails$y,INCORRECT_TO_LENGTH=fails$g((function(){return 4294967297!==[].push.call({length:4294967296},1)})),properErrorOnNonWritableLength=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},FORCED$6=INCORRECT_TO_LENGTH||!properErrorOnNonWritableLength();$$G({target:"Array",proto:!0,arity:1,forced:FORCED$6},{push:function(e){var t=toObject$4(this),r=lengthOfArrayLike$5(t),n=arguments.length;doesNotExceedSafeInteger$1(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return setArrayLength$1(t,r),r}});var entryVirtual$d=entryVirtual$f,push$8=entryVirtual$d("Array").push,isPrototypeOf$f=objectIsPrototypeOf,method$b=push$8,ArrayPrototype$a=Array.prototype,push$7=function(e){var t=e.push;return e===ArrayPrototype$a||isPrototypeOf$f(ArrayPrototype$a,e)&&t===ArrayPrototype$a.push?method$b:t},parent$1F=push$7,push$6=parent$1F,parent$1E=push$6,push$5=parent$1E,parent$1D=push$5,push$4=parent$1D,push$3=push$4,_pushInstanceProperty=getDefaultExportFromCjs(push$3),$$F=_export,setPrototypeOf$6=objectSetPrototypeOf;$$F({target:"Object",stat:!0},{setPrototypeOf:setPrototypeOf$6});var path$k=path$t,setPrototypeOf$5=path$k.Object.setPrototypeOf,parent$1C=setPrototypeOf$5,setPrototypeOf$4=parent$1C,parent$1B=setPrototypeOf$4,setPrototypeOf$3=parent$1B,parent$1A=setPrototypeOf$3,setPrototypeOf$2=parent$1A,setPrototypeOf$1=setPrototypeOf$2,_Object$setPrototypeOf=getDefaultExportFromCjs(setPrototypeOf$1),getBuiltIn$5=getBuiltIn$f,uncurryThis$d=functionUncurryThis,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$8=anObject$e,concat$9=uncurryThis$d([].concat),ownKeys$4=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$8(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$9(t,r(e)):t},hasOwn$4=hasOwnProperty_1,ownKeys$3=ownKeys$4,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var n=ownKeys$3(t),o=definePropertyModule.f,a=getOwnPropertyDescriptorModule$1.f,i=0;i<n.length;i++){var s=n[i];hasOwn$4(e,s)||r&&hasOwn$4(r,s)||o(e,s,a(t,s))}},isObject$b=isObject$k,createNonEnumerableProperty$2=createNonEnumerableProperty$8,installErrorCause$1=function(e,t){isObject$b(t)&&"cause"in t&&createNonEnumerableProperty$2(e,"cause",t.cause)},uncurryThis$c=functionUncurryThis,$Error$1=Error,replace$2=uncurryThis$c("".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$2(e,V8_OR_CHAKRA_STACK_ENTRY,"");return e},fails$f=fails$y,createPropertyDescriptor$2=createPropertyDescriptor$8,errorStackInstallable=!fails$f((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",createPropertyDescriptor$2(1,7)),7!==e.stack)})),createNonEnumerableProperty$1=createNonEnumerableProperty$8,clearErrorStack=errorStackClear,ERROR_STACK_INSTALLABLE=errorStackInstallable,captureStackTrace=Error.captureStackTrace,errorStackInstall=function(e,t,r,n){ERROR_STACK_INSTALLABLE&&(captureStackTrace?captureStackTrace(e,t):createNonEnumerableProperty$1(e,"stack",clearErrorStack(r,n)))},wellKnownSymbol$b=wellKnownSymbol$q,Iterators$1=iterators,ITERATOR$6=wellKnownSymbol$b("iterator"),ArrayPrototype$9=Array.prototype,isArrayIteratorMethod$2=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype$9[ITERATOR$6]===e)},classof$4=classof$c,getMethod$1=getMethod$3,isNullOrUndefined$1=isNullOrUndefined$4,Iterators=iterators,wellKnownSymbol$a=wellKnownSymbol$q,ITERATOR$5=wellKnownSymbol$a("iterator"),getIteratorMethod$a=function(e){if(!isNullOrUndefined$1(e))return getMethod$1(e,ITERATOR$5)||getMethod$1(e,"@@iterator")||Iterators[classof$4(e)]},call$b=functionCall,aCallable$7=aCallable$b,anObject$7=anObject$e,tryToString$3=tryToString$6,getIteratorMethod$9=getIteratorMethod$a,$TypeError$7=TypeError,getIterator$3=function(e,t){var r=arguments.length<2?getIteratorMethod$9(e):t;if(aCallable$7(r))return anObject$7(call$b(r,e));throw $TypeError$7(tryToString$3(e)+" is not iterable")},call$a=functionCall,anObject$6=anObject$e,getMethod=getMethod$3,iteratorClose$2=function(e,t,r){var n,o;anObject$6(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw r;return r}n=call$a(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$6(n),r},bind$e=functionBindContext,call$9=functionCall,anObject$5=anObject$e,tryToString$2=tryToString$6,isArrayIteratorMethod$1=isArrayIteratorMethod$2,lengthOfArrayLike$4=lengthOfArrayLike$a,isPrototypeOf$e=objectIsPrototypeOf,getIterator$2=getIterator$3,getIteratorMethod$8=getIteratorMethod$a,iteratorClose$1=iteratorClose$2,$TypeError$6=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$5=function(e,t,r){var n,o,a,i,s,l,c,p=r&&r.that,u=!(!r||!r.AS_ENTRIES),$=!(!r||!r.IS_RECORD),y=!(!r||!r.IS_ITERATOR),f=!(!r||!r.INTERRUPTED),d=bind$e(t,p),h=function(e){return n&&iteratorClose$1(n,"normal",e),new Result(!0,e)},g=function(e){return u?(anObject$5(e),f?d(e[0],e[1],h):d(e[0],e[1])):f?d(e,h):d(e)};if($)n=e.iterator;else if(y)n=e;else{if(!(o=getIteratorMethod$8(e)))throw $TypeError$6(tryToString$2(e)+" is not iterable");if(isArrayIteratorMethod$1(o)){for(a=0,i=lengthOfArrayLike$4(e);i>a;a++)if((s=g(e[a]))&&isPrototypeOf$e(ResultPrototype,s))return s;return new Result(!1)}n=getIterator$2(e,o)}for(l=$?e.next:n.next;!(c=call$9(l,n)).done;){try{s=g(c.value)}catch(e){iteratorClose$1(n,"throw",e)}if("object"==typeof s&&s&&isPrototypeOf$e(ResultPrototype,s))return s}return new Result(!1)},toString$5=toString$b,normalizeStringArgument$1=function(e,t){return void 0===e?arguments.length<2?"":t:toString$5(e)},$$E=_export,isPrototypeOf$d=objectIsPrototypeOf,getPrototypeOf2=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,copyConstructorProperties=copyConstructorProperties$1,create$4=objectCreate,createNonEnumerableProperty=createNonEnumerableProperty$8,createPropertyDescriptor$1=createPropertyDescriptor$8,installErrorCause=installErrorCause$1,installErrorStack=errorStackInstall,iterate$4=iterate$5,normalizeStringArgument=normalizeStringArgument$1,wellKnownSymbol$9=wellKnownSymbol$q,TO_STRING_TAG=wellKnownSymbol$9("toStringTag"),$Error=Error,push$2=[].push,$AggregateError=function(e,t){var r,n=isPrototypeOf$d(AggregateErrorPrototype,this);setPrototypeOf?r=setPrototypeOf($Error(),n?getPrototypeOf2(this):AggregateErrorPrototype):(r=n?this:create$4(AggregateErrorPrototype),createNonEnumerableProperty(r,TO_STRING_TAG,"Error")),void 0!==t&&createNonEnumerableProperty(r,"message",normalizeStringArgument(t)),installErrorStack(r,$AggregateError,r.stack,1),arguments.length>2&&installErrorCause(r,arguments[2]);var o=[];return iterate$4(e,push$2,{that:o}),createNonEnumerableProperty(r,"errors",o),r};setPrototypeOf?setPrototypeOf($AggregateError,$Error):copyConstructorProperties($AggregateError,$Error,{name:!0});var AggregateErrorPrototype=$AggregateError.prototype=create$4($Error.prototype,{constructor:createPropertyDescriptor$1(1,$AggregateError),message:createPropertyDescriptor$1(1,""),name:createPropertyDescriptor$1(1,"AggregateError")});$$E({global:!0,constructor:!0,arity:2},{AggregateError:$AggregateError});var $location,defer,channel,port,classof$3=classofRaw$2,engineIsNode="undefined"!=typeof process&&"process"==classof$3(process),getBuiltIn$4=getBuiltIn$f,defineBuiltInAccessor$1=defineBuiltInAccessor$3,wellKnownSymbol$8=wellKnownSymbol$q,DESCRIPTORS$6=descriptors,SPECIES$3=wellKnownSymbol$8("species"),setSpecies$1=function(e){var t=getBuiltIn$4(e);DESCRIPTORS$6&&t&&!t[SPECIES$3]&&defineBuiltInAccessor$1(t,SPECIES$3,{configurable:!0,get:function(){return this}})},isPrototypeOf$c=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$2=function(e,t){if(isPrototypeOf$c(t,e))return e;throw $TypeError$5("Incorrect invocation")},isConstructor$2=isConstructor$4,tryToString$1=tryToString$6,$TypeError$4=TypeError,aConstructor$2=function(e){if(isConstructor$2(e))return e;throw $TypeError$4(tryToString$1(e)+" is not a constructor")},anObject$4=anObject$e,aConstructor$1=aConstructor$2,isNullOrUndefined=isNullOrUndefined$4,wellKnownSymbol$7=wellKnownSymbol$q,SPECIES$2=wellKnownSymbol$7("species"),speciesConstructor$2=function(e,t){var r,n=anObject$4(e).constructor;return void 0===n||isNullOrUndefined(r=anObject$4(n)[SPECIES$2])?t:aConstructor$1(r)},$TypeError$3=TypeError,validateArgumentsLength$3=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$b=global$p,apply$4=functionApply,bind$d=functionBindContext,isCallable$5=isCallable$m,hasOwn$3=hasOwnProperty_1,fails$e=fails$y,html=html$2,arraySlice$3=arraySlice$5,createElement=documentCreateElement$1,validateArgumentsLength$2=validateArgumentsLength$3,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$b.setImmediate,clear=global$b.clearImmediate,process$3=global$b.process,Dispatch=global$b.Dispatch,Function$2=global$b.Function,MessageChannel=global$b.MessageChannel,String$1=global$b.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange";fails$e((function(){$location=global$b.location}));var run=function(e){if(hasOwn$3(queue$2,e)){var t=queue$2[e];delete queue$2[e],t()}},runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$b.postMessage(String$1(e),$location.protocol+"//"+$location.host)};set&&clear||(set=function(e){validateArgumentsLength$2(arguments.length,1);var t=isCallable$5(e)?e:Function$2(e),r=arraySlice$3(arguments,1);return queue$2[++counter]=function(){apply$4(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.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=eventListener,defer=bind$d(port.postMessage,port)):global$b.addEventListener&&isCallable$5(global$b.postMessage)&&!global$b.importScripts&&$location&&"file:"!==$location.protocol&&!fails$e(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$b.addEventListener("message",eventListener,!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 task$1={set:set,clear:clear},Queue$2=function(){this.head=null,this.tail=null};Queue$2.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var notify$1,toggle,node,promise$6,then,queue$1=Queue$2,userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$a=global$p,bind$c=functionBindContext,getOwnPropertyDescriptor$8=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$a.MutationObserver||global$a.WebKitMutationObserver,document$2=global$a.document,process$2=global$a.process,Promise$1=global$a.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor$8(global$a,"queueMicrotask"),microtask$1=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;if(!microtask$1){var queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&¬ify$1(),e}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$c(promise$6.then,promise$6),notify$1=function(){then(flush)}):IS_NODE$2?notify$1=function(){process$2.nextTick(flush)}:(macrotask=bind$c(macrotask,global$a),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}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}}var microtask_1=microtask$1,hostReportErrors$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$6=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$9=global$p,promiseNativeConstructor=global$9.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$8=global$p,NativePromiseConstructor$5=promiseNativeConstructor,isCallable$4=isCallable$m,isForced=isForced_1,inspectSource=inspectSource$2,wellKnownSymbol$6=wellKnownSymbol$q,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,NativePromisePrototype$2=NativePromiseConstructor$5&&NativePromiseConstructor$5.prototype,SPECIES$1=wellKnownSymbol$6("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$4(global$8.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$6=aCallable$b,$TypeError$2=TypeError,PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw $TypeError$2("Bad Promise constructor");t=e,r=n})),this.resolve=aCallable$6(t),this.reject=aCallable$6(r)};newPromiseCapability$2.f=function(e){return new PromiseCapability(e)};var $$D=_export,IS_NODE=engineIsNode,global$7=global$p,call$8=functionCall,defineBuiltIn$2=defineBuiltIn$7,setToStringTag$1=setToStringTag$7,setSpecies=setSpecies$1,aCallable$5=aCallable$b,isCallable$3=isCallable$m,isObject$a=isObject$k,anInstance$1=anInstance$2,speciesConstructor$1=speciesConstructor$2,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$5=perform$6,Queue=queue$1,InternalStateModule$1=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$1.getterFor(PROMISE),setInternalState$1=InternalStateModule$1.set,NativePromisePrototype$1=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype,PromiseConstructor=NativePromiseConstructor$4,PromisePrototype=NativePromisePrototype$1,TypeError$2=global$7.TypeError,document$1=global$7.document,process$1=global$7.process,newPromiseCapability$1=newPromiseCapabilityModule$6.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$7.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$a(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,p=e.domain;try{s?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=a:(p&&p.enter(),r=s(a),p&&(p.exit(),o=!0)),r===e.promise?c(TypeError$2("Promise-chain cycle")):(n=isThenable(r))?call$8(n,r,l,c):l(r)):c(a)}catch(e){p&&!o&&p.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$7.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(o=global$7["on"+e])?o(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(e){call$8(task,global$7,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform$5((function(){IS_NODE?process$1.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$8(task,global$7,(function(){var t=e.facade;IS_NODE?process$1.emit("rejectionHandled",t):dispatchEvent(REJECTION_HANDLED,t,e.value)}))},bind$b=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$2("Promise can't be resolved itself");var n=isThenable(t);n?microtask((function(){var r={done:!1};try{call$8(n,t,bind$b(internalResolve,r,e),bind$b(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$1(this,PromisePrototype),aCallable$5(e),call$8(Internal,this);var t=getInternalPromiseState(this);try{e(bind$b(internalResolve,t),bind$b(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$1(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$2(PromisePrototype,"then",(function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor$1(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$3(e)||e,n.fail=isCallable$3(t)&&t,n.domain=IS_NODE?process$1.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$b(internalResolve,t),this.reject=bind$b(internalReject,t)},newPromiseCapabilityModule$6.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)}),$$D({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$1(PromiseConstructor,PROMISE,!1,!0),setSpecies(PROMISE);var wellKnownSymbol$5=wellKnownSymbol$q,ITERATOR$4=wellKnownSymbol$5("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$4]=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$4]=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(){}))})),$$C=_export,call$7=functionCall,aCallable$4=aCallable$b,newPromiseCapabilityModule$5=newPromiseCapability$2,perform$4=perform$6,iterate$3=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$3=promiseStaticsIncorrectIteration;$$C({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$3},{all:function(e){var t=this,r=newPromiseCapabilityModule$5.f(t),n=r.resolve,o=r.reject,a=perform$4((function(){var r=aCallable$4(t.resolve),a=[],i=0,s=1;iterate$3(e,(function(e){var l=i++,c=!1;s++,call$7(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 $$B=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor$2=promiseNativeConstructor;promiseNativeConstructor&&promiseNativeConstructor.prototype,$$B({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}});var $$A=_export,call$6=functionCall,aCallable$3=aCallable$b,newPromiseCapabilityModule$4=newPromiseCapability$2,perform$3=perform$6,iterate$2=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$2=promiseStaticsIncorrectIteration;$$A({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$2},{race:function(e){var t=this,r=newPromiseCapabilityModule$4.f(t),n=r.reject,o=perform$3((function(){var o=aCallable$3(t.resolve);iterate$2(e,(function(e){call$6(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var $$z=_export,call$5=functionCall,newPromiseCapabilityModule$3=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$z({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule$3.f(this);return call$5(t.reject,void 0,e),t.promise}});var anObject$3=anObject$e,isObject$9=isObject$k,newPromiseCapability=newPromiseCapability$2,promiseResolve$2=function(e,t){if(anObject$3(e),isObject$9(t)&&t.constructor===e)return t;var r=newPromiseCapability.f(e);return(0,r.resolve)(t),r.promise},$$y=_export,getBuiltIn$3=getBuiltIn$f,IS_PURE$1=isPure,NativePromiseConstructor$1=promiseNativeConstructor,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve$1=promiseResolve$2,PromiseConstructorWrapper=getBuiltIn$3("Promise"),CHECK_WRAPPER=!FORCED_PROMISE_CONSTRUCTOR;$$y({target:"Promise",stat:!0,forced:IS_PURE$1},{resolve:function(e){return promiseResolve$1(CHECK_WRAPPER&&this===PromiseConstructorWrapper?NativePromiseConstructor$1:this,e)}});var $$x=_export,call$4=functionCall,aCallable$2=aCallable$b,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$2=perform$6,iterate$1=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$x({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{allSettled:function(e){var t=this,r=newPromiseCapabilityModule$2.f(t),n=r.resolve,o=r.reject,a=perform$2((function(){var r=aCallable$2(t.resolve),o=[],a=0,i=1;iterate$1(e,(function(e){var s=a++,l=!1;i++,call$4(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 $$w=_export,call$3=functionCall,aCallable$1=aCallable$b,getBuiltIn$2=getBuiltIn$f,newPromiseCapabilityModule$1=newPromiseCapability$2,perform$1=perform$6,iterate=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,PROMISE_ANY_ERROR="No one promise resolved";$$w({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{any:function(e){var t=this,r=getBuiltIn$2("AggregateError"),n=newPromiseCapabilityModule$1.f(t),o=n.resolve,a=n.reject,i=perform$1((function(){var n=aCallable$1(t.resolve),i=[],s=0,l=1,c=!1;iterate(e,(function(e){var p=s++,u=!1;l++,call$3(n,t,e).then((function(e){u||c||(c=!0,o(e))}),(function(e){u||c||(u=!0,i[p]=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 $$v=_export,NativePromiseConstructor=promiseNativeConstructor,fails$d=fails$y,getBuiltIn$1=getBuiltIn$f,isCallable$2=isCallable$m,speciesConstructor=speciesConstructor$2,promiseResolve=promiseResolve$2,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,NON_GENERIC=!!NativePromiseConstructor&&fails$d((function(){NativePromisePrototype.finally.call({then:function(){}},(function(){}))}));$$v({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC},{finally:function(e){var t=speciesConstructor(this,getBuiltIn$1("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$j=path$t,promise$5=path$j.Promise,parent$1z=promise$5,promise$4=parent$1z,parent$1y=promise$4,promise$3=parent$1y,$$u=_export,newPromiseCapabilityModule=newPromiseCapability$2,perform=perform$6;$$u({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$1x=promise$3,promise$2=parent$1x,promise$1=promise$2,_Promise$1=getDefaultExportFromCjs(promise$1),$$t=_export,uncurryThis$b=functionUncurryThis,isArray$8=isArray$d,nativeReverse=uncurryThis$b([].reverse),test=[1,2];$$t({target:"Array",proto:!0,forced:String(test)===String(test.reverse())},{reverse:function(){return isArray$8(this)&&(this.length=this.length),nativeReverse(this)}});var entryVirtual$c=entryVirtual$f,reverse$5=entryVirtual$c("Array").reverse,isPrototypeOf$b=objectIsPrototypeOf,method$a=reverse$5,ArrayPrototype$8=Array.prototype,reverse$4=function(e){var t=e.reverse;return e===ArrayPrototype$8||isPrototypeOf$b(ArrayPrototype$8,e)&&t===ArrayPrototype$8.reverse?method$a:t},parent$1w=reverse$4,reverse$3=parent$1w,parent$1v=reverse$3,reverse$2=parent$1v,parent$1u=reverse$2,reverse$1=parent$1u,reverse2=reverse$1,_reverseInstanceProperty=getDefaultExportFromCjs(reverse2),$$s=_export,isArray$7=isArray$d,isConstructor$1=isConstructor$4,isObject$8=isObject$k,toAbsoluteIndex$1=toAbsoluteIndex$4,lengthOfArrayLike$3=lengthOfArrayLike$a,toIndexedObject$3=toIndexedObject$b,createProperty$3=createProperty$6,wellKnownSymbol$4=wellKnownSymbol$q,arrayMethodHasSpeciesSupport$3=arrayMethodHasSpeciesSupport$5,nativeSlice=arraySlice$5,HAS_SPECIES_SUPPORT$3=arrayMethodHasSpeciesSupport$3("slice"),SPECIES=wellKnownSymbol$4("species"),$Array$1=Array,max$1=Math.max;$$s({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$3},{slice:function(e,t){var r,n,o,a=toIndexedObject$3(this),i=lengthOfArrayLike$3(a),s=toAbsoluteIndex$1(e,i),l=toAbsoluteIndex$1(void 0===t?i:t,i);if(isArray$7(a)&&(r=a.constructor,(isConstructor$1(r)&&(r===$Array$1||isArray$7(r.prototype))||isObject$8(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$b=entryVirtual$f,slice$6=entryVirtual$b("Array").slice,isPrototypeOf$a=objectIsPrototypeOf,method$9=slice$6,ArrayPrototype$7=Array.prototype,slice$5=function(e){var t=e.slice;return e===ArrayPrototype$7||isPrototypeOf$a(ArrayPrototype$7,e)&&t===ArrayPrototype$7.slice?method$9:t},parent$1t=slice$5,slice$4=parent$1t,parent$1s=slice$4,slice$3=parent$1s,parent$1r=slice$3,slice$2=parent$1r,slice$1=slice$2,_sliceInstanceProperty$1=getDefaultExportFromCjs(slice$1);function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=_Object$defineProperty$1||function(e,t,r){e[t]=r.value},o="function"==typeof _Symbol$1?_Symbol$1:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return _Object$defineProperty$1(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 $?t:$,i=_Object$create$1(a.prototype),s=new P(o||[]);return n(i,"_invoke",{value:b(e,r,s)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function $(){}function y(){}function f(){}var d={};l(d,a,(function(){return this}));var h=_Object$getPrototypeOf&&_Object$getPrototypeOf(_Object$getPrototypeOf(I([])));h&&h!==t&&r.call(h,a)&&(d=h);var g=f.prototype=$.prototype=_Object$create$1(d);function m(e){var t;_forEachInstanceProperty$1(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,a,i,s){var l=p(e[n],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==_typeof(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){o("next",e,i,s)}),(function(e){o("throw",e,i,s)})):t.resolve(u).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 b(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=S(i,r);if(s){if(s===u)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=p(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(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,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),u;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,u;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,u):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function v(e){var t,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),_pushInstanceProperty(t=this.tryEntries).call(t,r)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],_forEachInstanceProperty$1(e).call(e,v,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:E}}function E(){return{value:void 0,done:!0}}return y.prototype=f,n(g,"constructor",{value:f,configurable:!0}),n(f,"constructor",{value:y,configurable:!0}),y.displayName=l(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return _Object$setPrototypeOf?_Object$setPrototypeOf(e,f):(e.__proto__=f,l(e,s,"GeneratorFunction")),e.prototype=_Object$create$1(g),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,i,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,a){void 0===a&&(a=_Promise$1);var i=new _(c(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},m(g),l(g,s,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)_pushInstanceProperty(r).call(r,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,P.prototype={constructor:P,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$1(t=this.tryEntries).call(t,O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+_sliceInstanceProperty$1(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,u):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),u},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),u}},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),u}},e}var $$r=_export,toObject$3=toObject$b,nativeKeys=objectKeys$3,fails$c=fails$y,FAILS_ON_PRIMITIVES$2=fails$c((function(){nativeKeys(1)}));$$r({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$2},{keys:function(e){return nativeKeys(toObject$3(e))}});var path$i=path$t,keys$5=path$i.Object.keys,parent$1q=keys$5,keys$4=parent$1q,parent$1p=keys$4,keys$3=parent$1p,parent$1o=keys$3,keys$2=parent$1o,keys$1=keys$2,_Object$keys$1=getDefaultExportFromCjs(keys$1),path$h=path$t,getOwnPropertySymbols$5=path$h.Object.getOwnPropertySymbols,parent$1n=getOwnPropertySymbols$5,getOwnPropertySymbols$4=parent$1n,parent$1m=getOwnPropertySymbols$4,getOwnPropertySymbols$3=parent$1m,parent$1l=getOwnPropertySymbols$3,getOwnPropertySymbols$2=parent$1l,getOwnPropertySymbols$1=getOwnPropertySymbols$2,_Object$getOwnPropertySymbols$1=getDefaultExportFromCjs(getOwnPropertySymbols$1),$$q=_export,$filter=arrayIteration.filter,arrayMethodHasSpeciesSupport$2=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$2=arrayMethodHasSpeciesSupport$2("filter");$$q({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$9=objectIsPrototypeOf,method$8=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$8:t},parent$1k=filter$5,filter$4=parent$1k,parent$1j=filter$4,filter$3=parent$1j,parent$1i=filter$3,filter$2=parent$1i,filter$1=filter$2,_filterInstanceProperty$1=getDefaultExportFromCjs(filter$1),getOwnPropertyDescriptor$7={exports:{}},$$p=_export,fails$b=fails$y,toIndexedObject$2=toIndexedObject$b,nativeGetOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,DESCRIPTORS$5=descriptors,FORCED$5=!DESCRIPTORS$5||fails$b((function(){nativeGetOwnPropertyDescriptor(1)}));$$p({target:"Object",stat:!0,forced:FORCED$5,sham:!DESCRIPTORS$5},{getOwnPropertyDescriptor:function(e,t){return nativeGetOwnPropertyDescriptor(toIndexedObject$2(e),t)}});var path$g=path$t,Object$2=path$g.Object,getOwnPropertyDescriptor$6=getOwnPropertyDescriptor$7.exports=function(e,t){return Object$2.getOwnPropertyDescriptor(e,t)};Object$2.getOwnPropertyDescriptor.sham&&(getOwnPropertyDescriptor$6.sham=!0);var getOwnPropertyDescriptorExports=getOwnPropertyDescriptor$7.exports,parent$1h=getOwnPropertyDescriptorExports,getOwnPropertyDescriptor$5=parent$1h,parent$1g=getOwnPropertyDescriptor$5,getOwnPropertyDescriptor$4=parent$1g,parent$1f=getOwnPropertyDescriptor$4,getOwnPropertyDescriptor$3=parent$1f,getOwnPropertyDescriptor$2=getOwnPropertyDescriptor$3,_Object$getOwnPropertyDescriptor$1=getDefaultExportFromCjs(getOwnPropertyDescriptor$2),$$o=_export,DESCRIPTORS$4=descriptors,ownKeys$2=ownKeys$4,toIndexedObject$1=toIndexedObject$b,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,createProperty$2=createProperty$6;$$o({target:"Object",stat:!0,sham:!DESCRIPTORS$4},{getOwnPropertyDescriptors:function(e){for(var t,r,n=toIndexedObject$1(e),o=getOwnPropertyDescriptorModule.f,a=ownKeys$2(n),i={},s=0;a.length>s;)void 0!==(r=o(n,t=a[s++]))&&createProperty$2(i,t,r);return i}});var path$f=path$t,getOwnPropertyDescriptors$5=path$f.Object.getOwnPropertyDescriptors,parent$1e=getOwnPropertyDescriptors$5,getOwnPropertyDescriptors$4=parent$1e,parent$1d=getOwnPropertyDescriptors$4,getOwnPropertyDescriptors$3=parent$1d,parent$1c=getOwnPropertyDescriptors$3,getOwnPropertyDescriptors$2=parent$1c,getOwnPropertyDescriptors$1=getOwnPropertyDescriptors$2,_Object$getOwnPropertyDescriptors$1=getDefaultExportFromCjs(getOwnPropertyDescriptors$1),defineProperties$7={exports:{}},$$n=_export,DESCRIPTORS$3=descriptors,defineProperties$6=objectDefineProperties.f;$$n({target:"Object",stat:!0,forced:Object.defineProperties!==defineProperties$6,sham:!DESCRIPTORS$3},{defineProperties:defineProperties$6});var path$e=path$t,Object$1=path$e.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$1b=definePropertiesExports,defineProperties$4=parent$1b,parent$1a=defineProperties$4,defineProperties$3=parent$1a,parent$19=defineProperties$3,defineProperties$2=parent$19,defineProperties$1=defineProperties$2,_Object$defineProperties$1=getDefaultExportFromCjs(defineProperties$1),WrappedWellKnownSymbolModule=wellKnownSymbolWrapped,toPrimitive$4=WrappedWellKnownSymbolModule.f("toPrimitive"),parent$18=toPrimitive$4,toPrimitive$3=parent$18,parent$17=toPrimitive$3,toPrimitive$2=parent$17,parent$16=toPrimitive$2,toPrimitive$1=parent$16,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 _defineProperty$1(e,t,r){return(t=_toPropertyKey(t))in e?_Object$defineProperty$1(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys$1(e,t){var r=_Object$keys$1(e);if(_Object$getOwnPropertySymbols$1){var n=_Object$getOwnPropertySymbols$1(e);t&&(n=_filterInstanceProperty$1(n).call(n,(function(t){return _Object$getOwnPropertyDescriptor$1(e,t).enumerable}))),_pushInstanceProperty(r).apply(r,n)}return r}function _objectSpread2$1(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?_forEachInstanceProperty$1(r=ownKeys$1(Object(o),!0)).call(r,(function(t){_defineProperty$1(e,t,o[t])})):_Object$getOwnPropertyDescriptors$1?_Object$defineProperties$1(e,_Object$getOwnPropertyDescriptors$1(o)):_forEachInstanceProperty$1(n=ownKeys$1(Object(o))).call(n,(function(t){_Object$defineProperty$1(e,t,_Object$getOwnPropertyDescriptor$1(o,t))}))}return 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$1.resolve(l).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new _Promise$1((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")}function _defineProperties$1(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$1(e,_toPropertyKey(n.key),n)}}function _createClass$1(e,t,r){return t&&_defineProperties$1(e.prototype,t),r&&_defineProperties$1(e,r),_Object$defineProperty$1(e,"prototype",{writable:!1}),e}var uncurryThis$a=functionUncurryThis,aCallable=aCallable$b,isObject$7=isObject$k,hasOwn$2=hasOwnProperty_1,arraySlice$2=arraySlice$5,NATIVE_BIND=functionBindNative,$Function=Function,concat$8=uncurryThis$a([].concat),join$1=uncurryThis$a([].join),factories={},construct$5=function(e,t,r){if(!hasOwn$2(factories,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";factories[t]=$Function("C,a","return new C("+join$1(n,",")+")")}return factories[t](e,r)},functionBind=NATIVE_BIND?$Function.bind:function(e){var t=aCallable(this),r=t.prototype,n=arraySlice$2(arguments,1),o=function(){var r=concat$8(n,arraySlice$2(arguments));return this instanceof o?construct$5(t,r.length,r):t.apply(e,r)};return isObject$7(r)&&(o.prototype=r),o},$$m=_export,bind$a=functionBind;$$m({target:"Function",proto:!0,forced:Function.bind!==bind$a},{bind:bind$a});var entryVirtual$9=entryVirtual$f,bind$9=entryVirtual$9("Function").bind,isPrototypeOf$8=objectIsPrototypeOf,method$7=bind$9,FunctionPrototype=Function.prototype,bind$8=function(e){var t=e.bind;return e===FunctionPrototype||isPrototypeOf$8(FunctionPrototype,e)&&t===FunctionPrototype.bind?method$7:t},parent$15=bind$8,bind$7=parent$15,parent$14=bind$7,bind$6=parent$14,parent$13=bind$6,bind$5=parent$13,bind$4=bind$5,_bindInstanceProperty$1=getDefaultExportFromCjs(bind$4);function _setPrototypeOf(e,t){var r;return(_setPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty$1(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$1(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),_Object$defineProperty$1(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}var $$l=_export,getBuiltIn=getBuiltIn$f,apply$3=functionApply,bind$3=functionBind,aConstructor=aConstructor$2,anObject$2=anObject$e,isObject$6=isObject$k,create$3=objectCreate,fails$a=fails$y,nativeConstruct=getBuiltIn("Reflect","construct"),ObjectPrototype=Object.prototype,push$1=[].push,NEW_TARGET_BUG=fails$a((function(){function e(){}return!(nativeConstruct((function(){}),[],e)instanceof e)})),ARGS_BUG=!fails$a((function(){nativeConstruct((function(){}))})),FORCED$4=NEW_TARGET_BUG||ARGS_BUG;$$l({target:"Reflect",stat:!0,forced:FORCED$4,sham:FORCED$4},{construct:function(e,t){aConstructor(e),anObject$2(t);var r=arguments.length<3?e:aConstructor(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$3(push$1,n,t),new(apply$3(bind$3,e,n))}var o=r.prototype,a=create$3(isObject$6(o)?o:ObjectPrototype),i=apply$3(e,a,t);return isObject$6(i)?i:a}});var path$d=path$t,construct$4=path$d.Reflect.construct,parent$12=construct$4,construct$3=parent$12,parent$11=construct$3,construct$2=parent$11,parent$10=construct$2,construct$1=parent$10,construct2=construct$1,_Reflect$construct=getDefaultExportFromCjs(construct2);function _getPrototypeOf(e){var t;return(_getPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty$1(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 _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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)}}var $$k=_export,isArray$6=isArray$d;$$k({target:"Array",stat:!0},{isArray:isArray$6});var path$c=path$t,isArray$5=path$c.Array.isArray,parent$$=isArray$5,isArray$4=parent$$,parent$_=isArray$4,isArray$3=parent$_,parent$Z=isArray$3,isArray$2=parent$Z,isArray$1=isArray$2,_Array$isArray$1=getDefaultExportFromCjs(isArray$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 _arrayWithoutHoles(e){if(_Array$isArray$1(e))return _arrayLikeToArray(e)}var getIteratorMethod$7=getIteratorMethod$a,getIteratorMethod_1=getIteratorMethod$7,parent$Y=getIteratorMethod_1,getIteratorMethod$6=parent$Y,parent$X=getIteratorMethod$6,getIteratorMethod$5=parent$X,parent$W=getIteratorMethod$5,getIteratorMethod$4=parent$W,getIteratorMethod$3=getIteratorMethod$4,_getIteratorMethod$1=getDefaultExportFromCjs(getIteratorMethod$3),anObject$1=anObject$e,iteratorClose=iteratorClose$2,callWithSafeIterationClosing$1=function(e,t,r,n){try{return n?t(anObject$1(r)[0],r[1]):t(r)}catch(t){iteratorClose(e,"throw",t)}},bind$2=functionBindContext,call$2=functionCall,toObject$2=toObject$b,callWithSafeIterationClosing=callWithSafeIterationClosing$1,isArrayIteratorMethod=isArrayIteratorMethod$2,isConstructor3=isConstructor$4,lengthOfArrayLike$2=lengthOfArrayLike$a,createProperty$1=createProperty$6,getIterator$1=getIterator$3,getIteratorMethod$2=getIteratorMethod$a,$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$2(o,n>2?arguments[2]:void 0));var i,s,l,c,p,u,$=getIteratorMethod$2(t),y=0;if(!$||this===$Array&&isArrayIteratorMethod($))for(i=lengthOfArrayLike$2(t),s=r?new this(i):$Array(i);i>y;y++)u=a?o(t[y],y):t[y],createProperty$1(s,y,u);else for(p=(c=getIterator$1(t,$)).next,s=r?new this:[];!(l=call$2(p,c)).done;y++)u=a?callWithSafeIterationClosing(c,o,[l.value,y],!0):l.value,createProperty$1(s,y,u);return s.length=y,s},$$j=_export,from$5=arrayFrom,checkCorrectnessOfIteration=checkCorrectnessOfIteration$2,INCORRECT_ITERATION=!checkCorrectnessOfIteration((function(e){Array.from(e)}));$$j({target:"Array",stat:!0,forced:INCORRECT_ITERATION},{from:from$5});var path$b=path$t,from$4=path$b.Array.from,parent$V=from$4,from$3=parent$V,parent$U=from$3,from$2=parent$U,parent$T=from$2,from$1=parent$T,from2=from$1,_Array$from=getDefaultExportFromCjs(from2);function _iterableToArray(e){if(void 0!==_Symbol$1&&null!=_getIteratorMethod$1(e)||null!=e["@@iterator"])return _Array$from(e)}function _unsupportedIterableToArray(e,t){var r;if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=_sliceInstanceProperty$1(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}}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 entryVirtual$8=entryVirtual$f,concat$7=entryVirtual$8("Array").concat,isPrototypeOf$7=objectIsPrototypeOf,method$6=concat$7,ArrayPrototype$5=Array.prototype,concat$6=function(e){var t=e.concat;return e===ArrayPrototype$5||isPrototypeOf$7(ArrayPrototype$5,e)&&t===ArrayPrototype$5.concat?method$6:t},parent$S=concat$6,concat$5=parent$S,parent$R=concat$5,concat$4=parent$R,parent$Q=concat$4,concat$3=parent$Q,concat$2=concat$3,concat$1=concat$2,_concatInstanceProperty=getDefaultExportFromCjs(concat$1),error=window.VePlayer.error,VeError=error.VeError,LiveErrorCode=function(e){return e[e.INVALID_PARAMETER=200]="INVALID_PARAMETER",e}(LiveErrorCode||{});error.Level;var ErrorCode=_objectSpread2$1(_objectSpread2$1({},LiveErrorCode),error.ErrorCode),ERRORS=_objectSpread2$1(_objectSpread2$1({},error.ERROR_INFO),{},_defineProperty$1({},200,{messageTextKey:"INVALID_PARAMETER",level:error.Level.Fatal}));function create$2(e,t){return new VeError(ERRORS[e],t)}function _arrayWithHoles(e){if(_Array$isArray$1(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:void 0!==_Symbol$1&&_getIteratorMethod$1(e)||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(_pushInstanceProperty(s).call(s,n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}var $$i=_export,uncurryThis$9=functionUncurryThisClause,$indexOf=arrayIncludes.indexOf,arrayMethodIsStrict$1=arrayMethodIsStrict$3,nativeIndexOf=uncurryThis$9([].indexOf),NEGATIVE_ZERO$1=!!nativeIndexOf&&1/nativeIndexOf([1],1,-0)<0,FORCED$3=NEGATIVE_ZERO$1||!arrayMethodIsStrict$1("indexOf");$$i({target:"Array",proto:!0,forced:FORCED$3},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return NEGATIVE_ZERO$1?nativeIndexOf(this,e,t)||0:$indexOf(this,e,t)}});var entryVirtual$7=entryVirtual$f,indexOf$6=entryVirtual$7("Array").indexOf,isPrototypeOf$6=objectIsPrototypeOf,method$5=indexOf$6,ArrayPrototype$4=Array.prototype,indexOf$5=function(e){var t=e.indexOf;return e===ArrayPrototype$4||isPrototypeOf$6(ArrayPrototype$4,e)&&t===ArrayPrototype$4.indexOf?method$5:t},parent$P=indexOf$5,indexOf$4=parent$P,parent$O=indexOf$4,indexOf$3=parent$O,parent$N=indexOf$3,indexOf$2=parent$N,indexOf$1=indexOf$2,_indexOfInstanceProperty$1=getDefaultExportFromCjs(indexOf$1);function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=_Object$keys$1(e);for(n=0;n<a.length;n++)r=a[n],_indexOfInstanceProperty$1(t).call(t,r)>=0||(o[r]=e[r]);return o}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(_Object$getOwnPropertySymbols$1){var a=_Object$getOwnPropertySymbols$1(e);for(n=0;n<a.length;n++)r=a[n],_indexOfInstanceProperty$1(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var promise=promise$1,_Promise=getDefaultExportFromCjs(promise),_excluded=["fallbackUrl"],strategy$1=window.VePlayer.strategy,util$3=window.VePlayer.util,DynamicModule$1=window.VePlayer.DynamicModule,load$1=window.VePlayer.load,Codec$1=window.VePlayer.Codec,Sniffer$2=window.VePlayer.Sniffer,rtmStrategy={options:{},module:DynamicModule$1.PluginRtm},getRtmStrategy=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o,a,i,s,l,c,p,u,$;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.rtm||{},i=a.fallbackUrl,s=_objectWithoutProperties(a,_excluded),"flv"===(l=i&&util$3.getStreamType(i))&&util$3.isMseSupported(Codec$1.H264)?o=strategy$1.createFlvMseStrategy(t):"hls"===l&&("mobile"!==Sniffer$2.device||null!=t&&null!==(r=t.hls)&&void 0!==r&&r.enableMSE)&&util$3.isMseSupported(Codec$1.H264)&&(o=strategy$1.createHlsMseStrategy(t)),e.next=5,_Promise.all([load$1(rtmStrategy.module).catch((function(){})),o&&load$1(o.module).catch((function(){}))]);case 5:return c=e.sent,p=_slicedToArray(c,2),u=p[0],$=p[1],e.abrupt("return",{options:_objectSpread2$1(_objectSpread2$1({},(null===(n=o)||void 0===n?void 0:n.options)||{}),{},{rts:_objectSpread2$1(_objectSpread2$1({retryCount:0},s),{},{backupURL:i,backupConstruct:$})}),plugins:u?[u]:[]});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),RTMCodec=function(e){return e.H264="h264",e}(RTMCodec||{}),isRTMSupported=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,load$1(DynamicModule$1.PluginRtm);case 2:return t=e.sent,e.abrupt("return",t.isSupported());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),isRTMSupportCodec=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,o=arguments;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:"h264",r=o.length>1?o[1]:void 0,e.next=4,load$1(DynamicModule$1.PluginRtm);case 4:if(n=e.sent,"h264"!==t){e.next=7;break}return e.abrupt("return",n.isSupportedH264(null==r?void 0:r.targetProfileLevel));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),util$2=window.VePlayer.util,strategy=window.VePlayer.strategy,getTypeStrategy=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=t.url?util$2.getStreamType(t.url):"")&&"unknown"!==r){e.next=3;break}return e.abrupt("return",{options:{},plugins:[]});case 3:if("rtm"!==r){e.next=7;break}return e.next=6,getRtmStrategy(t);case 6:case 10:case 14:return e.abrupt("return",e.sent);case 7:if("flv"!==r){e.next=11;break}return e.next=10,strategy.getFlvStrategy(t);case 11:if("hls"!==r){e.next=15;break}return e.next=14,strategy.getHlsStrategy(t);case 15:return e.abrupt("return",{options:{},plugins:[]});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),bind$1=bind$4,_bindInstanceProperty=getDefaultExportFromCjs(bind$1),whitespaces$4="\t\n\v\f\r \u2028\u2029\ufeff",uncurryThis$8=functionUncurryThis,requireObjectCoercible$2=requireObjectCoercible$6,toString$4=toString$b,whitespaces$3=whitespaces$4,replace$1=uncurryThis$8("".replace),ltrim=RegExp("^["+whitespaces$3+"]+"),rtrim=RegExp("(^|[^"+whitespaces$3+"])["+whitespaces$3+"]+$"),createMethod=function(e){return function(t){var r=toString$4(requireObjectCoercible$2(t));return 1&e&&(r=replace$1(r,ltrim,"")),2&e&&(r=replace$1(r,rtrim,"$1")),r}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},global$6=global$p,fails$9=fails$y,uncurryThis$7=functionUncurryThis,toString$3=toString$b,trim$8=stringTrim.trim,whitespaces$2=whitespaces$4,$parseInt$1=global$6.parseInt,Symbol$2=global$6.Symbol,ITERATOR$3=Symbol$2&&Symbol$2.iterator,hex=/^[+-]?0x/i,exec=uncurryThis$7(hex.exec),FORCED$2=8!==$parseInt$1(whitespaces$2+"08")||22!==$parseInt$1(whitespaces$2+"0x16")||ITERATOR$3&&!fails$9((function(){$parseInt$1(Object(ITERATOR$3))})),numberParseInt=FORCED$2?function(e,t){var r=trim$8(toString$3(e));return $parseInt$1(r,t>>>0||(exec(hex,r)?16:10))}:$parseInt$1,$$h=_export,$parseInt=numberParseInt;$$h({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt});var path$a=path$t,_parseInt$c=path$a.parseInt,parent$M=_parseInt$c,_parseInt$b=parent$M,parent$L=_parseInt$b,_parseInt$a=parent$L,parent$K=_parseInt$a,_parseInt$9=parent$K,_parseInt$8=_parseInt$9,_parseInt$6=_parseInt$8,_parseInt$7=getDefaultExportFromCjs(_parseInt$6),engineIsBun="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,global$5=global$p,apply$2=functionApply,isCallable$1=isCallable$m,ENGINE_IS_BUN=engineIsBun,USER_AGENT=engineUserAgent,arraySlice$1=arraySlice$5,validateArgumentsLength$1=validateArgumentsLength$3,Function$1=global$5.Function,WRAP=/MSIE .\./.test(USER_AGENT)||ENGINE_IS_BUN&&function(){var e=global$5.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}(),schedulersFix$2=function(e,t){var r=t?2:1;return WRAP?function(n,o){var a=validateArgumentsLength$1(arguments.length,1)>r,i=isCallable$1(n)?n:Function$1(n),s=a?arraySlice$1(arguments,r):[],l=a?function(){apply$2(i,this,s)}:i;return t?e(l,o):e(l)}:e},$$g=_export,global$4=global$p,schedulersFix$1=schedulersFix$2,setInterval$5=schedulersFix$1(global$4.setInterval,!0);$$g({global:!0,bind:!0,forced:global$4.setInterval!==setInterval$5},{setInterval:setInterval$5});var $$f=_export,global$3=global$p,schedulersFix=schedulersFix$2,setTimeout$6=schedulersFix(global$3.setTimeout,!0);$$f({global:!0,bind:!0,forced:global$3.setTimeout!==setTimeout$6},{setTimeout:setTimeout$6});var path$9=path$t,setTimeout$5=path$9.setTimeout,parent$J=setTimeout$5,setTimeout$4=parent$J,parent$I=setTimeout$4,setTimeout$3=parent$I,setTimeout$2=setTimeout$3,setTimeout$1=setTimeout$2,_setTimeout=getDefaultExportFromCjs(setTimeout$1),slice2=slice$1,_sliceInstanceProperty=getDefaultExportFromCjs(slice2),FUNC_ERROR_TEXT="Expected a function",NAN=NaN,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=_parseInt$7,freeGlobal="object"==_typeof(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),objectProto=Object.prototype,objectToString=objectProto.toString,nativeMax=Math.max,nativeMin=Math.min,now$6=function(){return root.Date.now()};function debounce(e,t,r){var n,o,a,i,s,l,c=0,p=!1,u=!1,$=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function y(t){var r=n,a=o;return n=o=void 0,c=t,i=e.apply(a,r)}function f(e){var r=e-l;return void 0===l||r>=t||r<0||u&&e-c>=a}function d(){var e=now$6();if(f(e))return h(e);s=_setTimeout(d,function(e){var r=t-(e-l);return u?nativeMin(r,a-(e-c)):r}(e))}function h(e){return s=void 0,$&&n?y(e):(n=o=void 0,i)}function g(){var e=now$6(),r=f(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return c=e,s=_setTimeout(d,t),p?y(e):i}(l);if(u)return s=_setTimeout(d,t),y(l)}return void 0===s&&(s=_setTimeout(d,t)),i}return t=toNumber(t)||0,isObject$5(r)&&(p=!!r.leading,a=(u="maxWait"in r)?nativeMax(toNumber(r.maxWait)||0,t):a,$="trailing"in r?!!r.trailing:$),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},g.flush=function(){return void 0===s?i:h(now$6())},g}function isObject$5(e){var t=_typeof(e);return!!e&&("object"==t||"function"==t)}function isObjectLike(e){return!!e&&"object"==_typeof(e)}function isSymbol(e){return"symbol"==_typeof(e)||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$5(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$5(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim,"");var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(_sliceInstanceProperty(e).call(e,2),r?2:8):reIsBadHex.test(e)?NAN:+e}var lodash_debounce=debounce,debounce$1=getDefaultExportFromCjs(lodash_debounce),event=window.VePlayer.event,Events=_objectSpread2$1(_objectSpread2$1({},event.Events),{},{TIME_SHIFT_CHANGE:"time_shift_change",REFRESH_CLICK:"refresh_click"});function RefreshIcon(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 2.488a7.48 7.48 0 00-4.154 1.253.908.908 0 101.005 1.512 5.695 5.695 0 018.844 4.746h-.908a.33.33 0 00-.264.528l1.816 2.422a.33.33 0 00.529 0l1.815-2.422A.33.33 0 0018.42 10h-.908A7.511 7.511 0 0010 2.49zM2.489 10a7.511 7.511 0 0011.665 6.26.908.908 0 00-1.005-1.513A5.695 5.695 0 014.305 10h.908a.33.33 0 00.264-.528L3.66 7.05a.33.33 0 00-.528 0L1.317 9.47a.33.33 0 00.264.53h.908z" fill="#fff"/></svg>',"image/svg+xml").firstChild}var refresh="",Plugin$3=window.VePlayer.Plugin,Sniffer$1=window.VePlayer.Sniffer,XGEvents=window.VePlayer.XGEvents,POSITIONS$1=Plugin$3.POSITIONS,Refresh=function(e){_inherits(r,Plugin$3);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass$1(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:RefreshIcon,class:"xgplayer-refresh-svg"}}}},{key:"destroy",value:function(){this.unbind(["touchend","click"],this._handleRefresh)}},{key:"render",value:function(){var e=this.player.config.i18nManager;return'\n <xg-icon class="veplayer-refresh">\n <div class="xgplayer-icon">\n </div>\n <div class="xg-tips" lang-key="refresh">'.concat(e.getText("REFRESH"),"</div>\n </xg-icon>\n ")}},{key:"_handleRefresh",value:function(e){var t=this.player;if(t){var r;if(e.preventDefault(),e.stopPropagation(),t.addClass("xgplayer-is-enter"),t.pause(),t)t.emit(Events.REFRESH_CLICK),null===(r=this.player)||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.veplayer)||void 0===r||r.retry();t.once(XGEvents.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=debounce$1(_bindInstanceProperty(e=this._handleRefresh).call(e,this),200);var t="mobile"===Sniffer$1.device?"touchend":"click";_bindInstanceProperty(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:POSITIONS$1.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(),defineProperty$2=defineProperty$3,_Object$defineProperty=getDefaultExportFromCjs(defineProperty$2),keys3=keys$1,_Object$keys=getDefaultExportFromCjs(keys3),getOwnPropertySymbols2=getOwnPropertySymbols$1,_Object$getOwnPropertySymbols=getDefaultExportFromCjs(getOwnPropertySymbols2),filter2=filter$1,_filterInstanceProperty=getDefaultExportFromCjs(filter2),getOwnPropertyDescriptor$1=getOwnPropertyDescriptor$2,_Object$getOwnPropertyDescriptor=getDefaultExportFromCjs(getOwnPropertyDescriptor$1),forEach2=forEach$1,_forEachInstanceProperty=getDefaultExportFromCjs(forEach2),getOwnPropertyDescriptors2=getOwnPropertyDescriptors$1,_Object$getOwnPropertyDescriptors=getDefaultExportFromCjs(getOwnPropertyDescriptors2),defineProperties4=defineProperties$1,_Object$defineProperties=getDefaultExportFromCjs(defineProperties4),indexOf2=indexOf$1,_indexOfInstanceProperty=getDefaultExportFromCjs(indexOf2),$$e=_export,uncurryThis$6=functionUncurryThis,$Date=Date,thisTimeValue=uncurryThis$6($Date.prototype.getTime);$$e({target:"Date",stat:!0},{now:function(){return thisTimeValue(new $Date)}});var path$8=path$t,now$5=path$8.Date.now,parent$H=now$5,now$4=parent$H,parent$G=now$4,now$3=parent$G,parent$F=now$3,now$2=parent$F,now$1=now$2,now3=now$1,_Date$now=getDefaultExportFromCjs(now3),fails$8=fails$y,wellKnownSymbol$3=wellKnownSymbol$q,DESCRIPTORS$2=descriptors,IS_PURE=isPure,ITERATOR$2=wellKnownSymbol$3("iterator"),urlConstructorDetection=!fails$8((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),IS_PURE&&!e.toJSON||!t.size&&(IS_PURE||!DESCRIPTORS$2)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ITERATOR$2]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),defineBuiltIn$1=defineBuiltIn$7,defineBuiltIns$1=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:defineBuiltIn$1(e,n,t[n],r);return e},arraySlice=arraySliceSimple,floor=Math.floor,mergeSort=function(e,t){var r=e.length,n=floor(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(arraySlice(e,0,n),t),mergeSort(arraySlice(e,n),t),t)},insertionSort=function(e,t){for(var r,n,o=e.length,a=1;a<o;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},merge=function(e,t,r,n){for(var o=t.length,a=r.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?n(t[i],r[s])<=0?t[i++]:r[s++]:i<o?t[i++]:r[s++];return e},arraySort$1=mergeSort,$$d=_export,global$2=global$p,call$1=functionCall,uncurryThis$5=functionUncurryThis,DESCRIPTORS$1=descriptors,USE_NATIVE_URL=urlConstructorDetection,defineBuiltIn=defineBuiltIn$7,defineBuiltInAccessor=defineBuiltInAccessor$3,defineBuiltIns=defineBuiltIns$1,setToStringTag=setToStringTag$7,createIteratorConstructor=iteratorCreateConstructor,InternalStateModule=internalState,anInstance=anInstance$2,isCallable=isCallable$m,hasOwn$1=hasOwnProperty_1,bind2=functionBindContext,classof$2=classof$c,anObject=anObject$e,isObject$4=isObject$k,$toString=toString$b,create$1=objectCreate,createPropertyDescriptor=createPropertyDescriptor$8,getIterator=getIterator$3,getIteratorMethod$1=getIteratorMethod$a,validateArgumentsLength=validateArgumentsLength$3,wellKnownSymbol$2=wellKnownSymbol$q,arraySort=arraySort$1,ITERATOR$1=wellKnownSymbol$2("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState=InternalStateModule.set,getInternalParamsState=InternalStateModule.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR),getOwnPropertyDescriptor5=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(e){if(!DESCRIPTORS$1)return global$2[e];var t=getOwnPropertyDescriptor5(global$2,e);return t&&t.value},nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,RegExp$1=global$2.RegExp,TypeError$1=global$2.TypeError,decodeURIComponent$1=global$2.decodeURIComponent,encodeURIComponent$1=global$2.encodeURIComponent,charAt$1=uncurryThis$5("".charAt),join=uncurryThis$5([].join),push2=uncurryThis$5([].push),replace=uncurryThis$5("".replace),shift=uncurryThis$5([].shift),splice$7=uncurryThis$5([].splice),split=uncurryThis$5("".split),stringSlice$1=uncurryThis$5("".slice),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp$1("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(e){try{return decodeURIComponent$1(e)}catch(t){return e}},deserialize=function(e){var t=replace(e,plus," "),r=4;try{return decodeURIComponent$1(t)}catch(e){for(;r;)t=replace(t,percentSequence(r--),percentDecode);return t}},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replacements[e]},serialize=function(e){return replace(encodeURIComponent$1(e),find,replacer)},URLSearchParamsIterator=createIteratorConstructor((function(e,t){setInternalState(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator(getInternalParamsState(e).entries),kind:t})}),"Iterator",(function(){var e=getInternalIteratorState(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),URLSearchParamsState=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject$4(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt$1(e,0)?stringSlice$1(e,1):e:$toString(e)))};URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,a,i,s,l=getIteratorMethod$1(e);if(l)for(r=(t=getIterator(e,l)).next;!(n=call$1(r,t)).done;){if(a=(o=getIterator(anObject(n.value))).next,(i=call$1(a,o)).done||(s=call$1(a,o)).done||!call$1(a,o).done)throw TypeError$1("Expected sequence with length 2");push2(this.entries,{key:$toString(i.value),value:$toString(s.value)})}else for(var c in e)hasOwn$1(e,c)&&push2(this.entries,{key:c,value:$toString(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=split(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=split(t,"="),push2(this.entries,{key:deserialize(shift(r)),value:deserialize(join(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],push2(r,serialize(e.key)+"="+serialize(e.value));return join(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var URLSearchParamsConstructor=function(){anInstance(this,URLSearchParamsPrototype);var e=setInternalState(this,new URLSearchParamsState(arguments.length>0?arguments[0]:void 0));DESCRIPTORS$1||(this.length=e.entries.length)},URLSearchParamsPrototype=URLSearchParamsConstructor.prototype;if(defineBuiltIns(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength(arguments.length,2);var r=getInternalParamsState(this);push2(r.entries,{key:$toString(e),value:$toString(t)}),DESCRIPTORS$1||this.length++,r.updateURL()},delete:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,n=$toString(e),o=0;o<r.length;)r[o].key===n?splice$7(r,o,1):o++;DESCRIPTORS$1||(this.length=r.length),t.updateURL()},get:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),n=[],o=0;o<t.length;o++)t[o].key===r&&push2(n,t[o].value);return n},has:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength(arguments.length,1);for(var r,n=getInternalParamsState(this),o=n.entries,a=!1,i=$toString(e),s=$toString(t),l=0;l<o.length;l++)(r=o[l]).key===i&&(a?splice$7(o,l--,1):(a=!0,r.value=s));a||push2(o,{key:i,value:s}),DESCRIPTORS$1||(this.length=o.length),n.updateURL()},sort:function(){var e=getInternalParamsState(this);arraySort(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,n=bind2(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn(URLSearchParamsPrototype,ITERATOR$1,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn(URLSearchParamsPrototype,"toString",(function(){return getInternalParamsState(this).serialize()}),{enumerable:!0}),DESCRIPTORS$1&&defineBuiltInAccessor(URLSearchParamsPrototype,"size",{get:function(){return getInternalParamsState(this).entries.length},configurable:!0,enumerable:!0}),setToStringTag(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$d({global:!0,constructor:!0,forced:!USE_NATIVE_URL},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL&&isCallable(Headers)){var headersHas=uncurryThis$5(HeadersPrototype.has),headersSet=uncurryThis$5(HeadersPrototype.set),wrapRequestOptions=function(e){if(isObject$4(e)){var t,r=e.body;if(classof$2(r)===URL_SEARCH_PARAMS)return t=e.headers?new Headers(e.headers):new Headers,headersHas(t,"content-type")||headersSet(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create$1(e,{body:createPropertyDescriptor(0,$toString(r)),headers:createPropertyDescriptor(0,t)})}return e};if(isCallable(nativeFetch)&&$$d({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})}}),isCallable(NativeRequest)){var RequestConstructor=function(e){return anInstance(this,RequestPrototype),new NativeRequest(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})};RequestPrototype.constructor=RequestConstructor,RequestConstructor.prototype=RequestPrototype,$$d({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})}}var path$7=path$t,urlSearchParams$5=path$7.URLSearchParams,parent$E=urlSearchParams$5,urlSearchParams$4=parent$E,parent$D=urlSearchParams$4,urlSearchParams$3=parent$D,parent$C=urlSearchParams$3,urlSearchParams$2=parent$C,urlSearchParams$1=urlSearchParams$2,urlSearchParams=urlSearchParams$1,_URLSearchParams=getDefaultExportFromCjs(urlSearchParams),isObject$3=isObject$k,classof$1=classofRaw$2,wellKnownSymbol$1=wellKnownSymbol$q,MATCH$1=wellKnownSymbol$1("match"),isRegexp=function(e){var t;return isObject$3(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$1(e))},isRegExp=isRegexp,$TypeError$1=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$1("The method doesn't accept regular expressions");return e},wellKnownSymbol=wellKnownSymbol$q,MATCH=wellKnownSymbol("match"),correctIsRegexpLogic=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[MATCH]=!1,"/./"[e](t)}catch(e){}}return!1},$$c=_export,uncurryThis$4=functionUncurryThisClause,toLength=toLength$2,toString$2=toString$b,notARegExp$1=notARegexp,requireObjectCoercible$1=requireObjectCoercible$6,correctIsRegExpLogic$1=correctIsRegexpLogic,nativeStartsWith=uncurryThis$4("".startsWith),stringSlice=uncurryThis$4("".slice),min$2=Math.min,CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic$1("startsWith");$$c({target:"String",proto:!0,forced:!CORRECT_IS_REGEXP_LOGIC},{startsWith:function(e){var t=toString$2(requireObjectCoercible$1(this));notARegExp$1(e);var r=toLength(min$2(arguments.length>1?arguments[1]:void 0,t.length)),n=toString$2(e);return nativeStartsWith?nativeStartsWith(t,n,r):stringSlice(t,r,r+n.length)===n}});var entryVirtual$6=entryVirtual$f,startsWith$6=entryVirtual$6("String").startsWith,isPrototypeOf$5=objectIsPrototypeOf,method$4=startsWith$6,StringPrototype$2=String.prototype,startsWith$5=function(e){var t=e.startsWith;return"string"==typeof e||e===StringPrototype$2||isPrototypeOf$5(StringPrototype$2,e)&&t===StringPrototype$2.startsWith?method$4:t},parent$B=startsWith$5,startsWith$4=parent$B,parent$A=startsWith$4,startsWith$3=parent$A,parent$z=startsWith$3,startsWith$2=parent$z,startsWith$1=startsWith$2,startsWith2=startsWith$1,_startsWithInstanceProperty=getDefaultExportFromCjs(startsWith2),$$b=_export,parseInt$1=numberParseInt;$$b({target:"Number",stat:!0,forced:Number.parseInt!=parseInt$1},{parseInt:parseInt$1});var path$6=path$t,_parseInt$5=path$6.Number.parseInt,parent$y=_parseInt$5,_parseInt$4=parent$y,parent$x=_parseInt$4,_parseInt$3=parent$x,parent$w=_parseInt$3,_parseInt$2=parent$w,_parseInt$1=_parseInt$2,_parseInt=_parseInt$1,_Number$parseInt=getDefaultExportFromCjs(_parseInt),DESCRIPTORS=descriptors,uncurryThis$3=functionUncurryThis,call=functionCall,fails$7=fails$y,objectKeys=objectKeys$3,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$b,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$1=Object.defineProperty,concat2=uncurryThis$3([].concat),objectAssign=!$assign||fails$7((function(){if(DESCRIPTORS&&1!==$assign({b:1},$assign(defineProperty$1({},"a",{enumerable:!0,get:function(){defineProperty$1(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),p=c.length,u=0;p>u;)s=c[u++],DESCRIPTORS&&!call(i,l,s)||(r[s]=l[s]);return r}:$assign,$$a=_export,assign$6=objectAssign;$$a({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$6},{assign:assign$6});var path$5=path$t,assign$5=path$5.Object.assign,parent$v=assign$5,assign$4=parent$v,parent$u=assign$4,assign$3=parent$u,parent$t=assign$3,assign$2=parent$t,assign$1=assign$2,assign2=assign$1,_Object$assign=getDefaultExportFromCjs(assign2),$$9=_export,$includes=arrayIncludes.includes,fails$6=fails$y,BROKEN_ON_SPARSE=fails$6((function(){return!Array(1).includes()}));$$9({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$5=entryVirtual$f,includes$7=entryVirtual$5("Array").includes,$$8=_export,uncurryThis$2=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$6,toString$1=toString$b,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=uncurryThis$2("".indexOf);$$8({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$1(requireObjectCoercible(this)),toString$1(notARegExp(e)),arguments.length>1?arguments[1]:void 0)}});var entryVirtual$4=entryVirtual$f,includes$6=entryVirtual$4("String").includes,isPrototypeOf$4=objectIsPrototypeOf,arrayMethod=includes$7,stringMethod=includes$6,ArrayPrototype$3=Array.prototype,StringPrototype$1=String.prototype,includes$5=function(e){var t=e.includes;return e===ArrayPrototype$3||isPrototypeOf$4(ArrayPrototype$3,e)&&t===ArrayPrototype$3.includes?arrayMethod:"string"==typeof e||e===StringPrototype$1||isPrototypeOf$4(StringPrototype$1,e)&&t===StringPrototype$1.includes?stringMethod:t},parent$s=includes$5,includes$4=parent$s,parent$r=includes$4,includes$3=parent$r,parent$q=includes$3,includes$2=parent$q,includes$1=includes$2,includes3=includes$1,_includesInstanceProperty=getDefaultExportFromCjs(includes3),path$4=path$t,apply$1=functionApply;path$4.JSON||(path$4.JSON={stringify:JSON.stringify});var stringify$5=function(e,t,r){return apply$1(path$4.JSON.stringify,null,arguments)},parent$p=stringify$5,stringify$4=parent$p,parent$o=stringify$4,stringify$3=parent$o,parent$n=stringify$3,stringify$2=parent$n,stringify$1=stringify$2,stringify2=stringify$1,_JSON$stringify=getDefaultExportFromCjs(stringify2),apply=functionApply,toIndexedObject=toIndexedObject$b,toIntegerOrInfinity$1=toIntegerOrInfinity$5,lengthOfArrayLike$1=lengthOfArrayLike$a,arrayMethodIsStrict=arrayMethodIsStrict$3,min$1=Math.min,$lastIndexOf=[].lastIndexOf,NEGATIVE_ZERO=!!$lastIndexOf&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD=arrayMethodIsStrict("lastIndexOf"),FORCED$1=NEGATIVE_ZERO||!STRICT_METHOD,arrayLastIndexOf=FORCED$1?function(e){if(NEGATIVE_ZERO)return apply($lastIndexOf,this,arguments)||0;var t=toIndexedObject(this),r=lengthOfArrayLike$1(t),n=r-1;for(arguments.length>1&&(n=min$1(n,toIntegerOrInfinity$1(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:$lastIndexOf,$$7=_export,lastIndexOf$7=arrayLastIndexOf;$$7({target:"Array",proto:!0,forced:arrayLastIndexOf!==[].lastIndexOf},{lastIndexOf:arrayLastIndexOf});var entryVirtual$3=entryVirtual$f,lastIndexOf$6=entryVirtual$3("Array").lastIndexOf,isPrototypeOf$3=objectIsPrototypeOf,method$3=lastIndexOf$6,ArrayPrototype$2=Array.prototype,lastIndexOf$5=function(e){var t=e.lastIndexOf;return e===ArrayPrototype$2||isPrototypeOf$3(ArrayPrototype$2,e)&&t===ArrayPrototype$2.lastIndexOf?method$3:t},parent$m=lastIndexOf$5,lastIndexOf$4=parent$m,parent$l=lastIndexOf$4,lastIndexOf$3=parent$l,parent$k=lastIndexOf$3,lastIndexOf$2=parent$k,lastIndexOf$1=lastIndexOf$2,lastIndexOf2=lastIndexOf$1,_lastIndexOfInstanceProperty=getDefaultExportFromCjs(lastIndexOf2),global$1=global$p,fails$5=fails$y,uncurryThis$1=functionUncurryThis,toString3=toString$b,trim$7=stringTrim.trim,whitespaces$1=whitespaces$4,charAt=uncurryThis$1("".charAt),$parseFloat$1=global$1.parseFloat,Symbol$1=global$1.Symbol,ITERATOR=Symbol$1&&Symbol$1.iterator,FORCED=1/$parseFloat$1(whitespaces$1+"-0")!=-1/0||ITERATOR&&!fails$5((function(){$parseFloat$1(Object(ITERATOR))})),numberParseFloat=FORCED?function(e){var t=trim$7(toString3(e)),r=$parseFloat$1(t);return 0===r&&"-"==charAt(t,0)?-0:r}:$parseFloat$1,$$6=_export,parseFloat$1=numberParseFloat;$$6({target:"Number",stat:!0,forced:Number.parseFloat!=parseFloat$1},{parseFloat:parseFloat$1});var path$3=path$t,_parseFloat$c=path$3.Number.parseFloat,parent$j=_parseFloat$c,_parseFloat$b=parent$j,parent$i=_parseFloat$b,_parseFloat$a=parent$i,parent$h=_parseFloat$a,_parseFloat$9=parent$h,_parseFloat$8=_parseFloat$9,_parseFloat$7=_parseFloat$8,_Number$parseFloat=getDefaultExportFromCjs(_parseFloat$7),path$2=path$t,setInterval$4=path$2.setInterval,parent$g=setInterval$4,setInterval$3=parent$g,parent$f=setInterval$3,setInterval$2=parent$f,setInterval$1=setInterval$2,setInterval=setInterval$1,_setInterval=getDefaultExportFromCjs(setInterval);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,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _defineProperty(e,t,r){return t in e?_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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=null!=arguments[t]?arguments[t]:{};if(t%2)_forEachInstanceProperty(r=ownKeys2(Object(n),!0)).call(r,(function(t){_defineProperty(e,t,n[t])}));else if(_Object$getOwnPropertyDescriptors)_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(n));else{var o;_forEachInstanceProperty(o=ownKeys2(Object(n))).call(o,(function(t){_Object$defineProperty(e,t,_Object$getOwnPropertyDescriptor(n,t))}))}}return e}var device_id_key="xgplayer_device_id",user_id_key="xgplayer_user_id",getCookie=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var o,a=t[r];if(_indexOfInstanceProperty(o=t[r]).call(o,e)>=0)return a.split("=")[1]||null}},genRandomID$1=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},getDeviceID$1=function(){var e=getCookie(device_id_key);if(e)return e;var t=genRandomID$1(11);return document.cookie=device_id_key+"="+t+";max-age=31536000;path=/",t},getUserId$1=function(){var e=getCookie(user_id_key);if(e)return e;var t=genRandomID$1(12);return document.cookie=user_id_key+"="+t+";max-age=31536000;path=/",t},getLogId=function(){return genRandomID$1(12)};function getBrowser(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:_indexOfInstanceProperty(e).call(e,"chrome")>-1&&_indexOfInstanceProperty(e).call(e,"safari")>-1,Firefox:_indexOfInstanceProperty(e).call(e,"firefox")>-1,Opera:_indexOfInstanceProperty(e).call(e,"opera")>-1,Safari:_indexOfInstanceProperty(e).call(e,"safari")>-1&&-1==_indexOfInstanceProperty(e).call(e,"chrome"),Edge:_indexOfInstanceProperty(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var o="";if("IE"===n)o=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var a in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[a].type&&(n="360");var i=e.match(/chrome\/([\d.]+)/);o=i?i[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);o=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);o=l?l[1]:"-1"}else if("Safari"===n){var c=e.match(/version\/([\d.]+)/);o=c?c[1]:"-1"}else if("Edge"===n){var p=e.match(/edge\/([\d.]+)/);o=p?p[1]:"-1"}else if("QQBrowser"===n){var u=e.match(/qqbrowser\/([\d.]+)/);o=u?u[1]:"-1"}t.type=n,t.versions=_parseInt$7(o)}return t}var sniffer={get device(){return sniffer.os.isPc?"pc":"mobile"},get browser(){var e=getBrowser();return e.type+"_"+e.versions},get os(){var e=navigator.userAgent;navigator.platform.toLowerCase();var t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),o=/(?:Firefox)/.test(e),a=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||o&&/(?:Tablet)/.test(e),i=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:i,isAndroid:n,isPc:!(i||n||r||a),isSymbian:r,isWindowsPhone:t,isFireFox:o}},get operation_os(){for(var e=navigator.userAgent,t=[{s:"windows",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1|Windows 8.1|Windows NT 6.3|Windows 8|Windows NT 6.2|Windows 7|Windows NT 6.1)/},{s:"android",r:/Android/},{s:"linux",r:/(Linux|X11)/},{s:"ios",r:/(iPhone|iPad|iPod)/},{s:"mac",r:/Mac OS X/},{s:"mac",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],r=0;r<t.length;r++){var n=t[r];if(n.r.test(e))return n.s}return"unknown"}};function getCurrentTime(){return _Date$now()}function getPlayFormat(e){var t="unknown";return"string"!=typeof e?t:_indexOfInstanceProperty(e).call(e,".flv")>-1?"flv":_indexOfInstanceProperty(e).call(e,".m3u8")>-1?"m3u8":_indexOfInstanceProperty(e).call(e,".mp4")>-1?"mp4":_indexOfInstanceProperty(e).call(e,".sdp")>-1?"rts":t}function isCodecSupport(e){return"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+e):0}function getUrlQuery(e,t){return new _URLSearchParams(e.split("?")[1]).get(t)}function getDeviceInfo(){var e={cpu_core_number:-1,memory_usage:-1,network_downlink:-1};try{e.cpu_core_number=navigator.hardwareConcurrency||-1,e.memory_usage=navigator.deviceMemory||-1,e.network_downlink=navigator.connection&&navigator.connection.downlink,null==e.network_downlink&&(e.network_downlink=-1)}catch(e){}return e}function getPlayerCore(e){if(e.plugins){if(e.plugins.flv)return e.plugins.flv;if(e.plugins.hls)return e.plugins.hls;if(e.plugins.rts)return e.plugins.rts;if(e.plugins.flvlive)return e.plugins.flvlive;if(e.plugins.hlslive)return e.plugins.hlslive;if(e.plugins.hlsvod)return e.plugins.hlsvod;if(e.plugins.hlslivemobile)return e.plugins.hlslivemobile;if(e.plugins.flvlivemobile)return e.plugins.flvlivemobile}return e.newHls||e.newFlv||e.__core__||e.flv}function getDefaultOptions(e){return{device_id:e.device_id||getDeviceID$1(),user_id:e.user_id||getUserId$1(),error_report_stop:!!e.error_report_stop,project_key:e.project_key||"live",product_line:e.product_line||"live",onReport:e.onReport||function(){}}}function getDefaultLog(){return{start_play:{start_play_time:0,event_key:"start_play"},first_frame:{start:0,first_frame_view:0,event_key:"first_frame",first_sei_delay:0,ntp_sync:0,ntp_delta:0,ttfb:-1,ttdb:-1,ttfb_end:0},first_frame_failed:{code:void 0,msg:"",event_key:"first_frame_failed"},stall_start:{ready_state:-1,stall_start_time:0,event_key:"stall_start"},stalling:{event_key:"stalling"},stall:{reason:0,stall_start:0,stall_end:0,ready_state:0,event_key:"stall"},play_stop:{code:0,stop_time:0,drop_percent:0,is_stream_received:0,stall_count:0,stall_time:0,retry_count:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0,event_key:"play_stop",dns_parse_time:-1,redirect:-1,ttfb:-1,buffered:[],is_firstframe_received:0,meta:null},playing:{index:0,stall_count:0,stall_time:0,play_time:1e4,retry_count:0,is_last:0,video_buffer_time:0,audio_buffer_time:0,speed_switch_count:0,speed_switch_info:"none",download_speed:0,decode_fps:0,render_fps:0,drop_count:0,drop_percent:0,sei_source:"",sei_delay:0,ntp_sync:0,ntp_delta:0,event_key:"playing",stop_time:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0},play_error:{code:void 0,info:"",event_key:"play_error"},play_low_decode:{fps:-1,decode_fps:-1,bitrate:-1,url:-1,msg:"",event_key:"play_low_decode"},play_av_unsync:{aDts:-1,vDts:-1,frameLength:-1,currentTime:-1,duration:0,event_key:"play_av_unsync"},play_loadstream:{loadstream_url:"",event_key:"play_loadstream"},play_stream_loaded:{event_key:"play_stream_loaded"},play_metadata_loaded:{metadata_type:"",event_key:"play_metadata_loaded"},stream_exception:{event_key:"stream_exception"},pause:{event_key:"pause"},play_url_change:{event_key:"play_url_change"},source_opened:{event_key:"source_opened"},source_updateend:{event_key:"source_updateend"},play_result:{event_key:"play_result",result:0,threshold:15e3,is_threshold:0},degrade:{event_key:"degrade",payload:{}},rtcstatechange:{event_key:"rtcstatechange"}}}function getCommonLog(e){var t,r=e.player,n=r.config.mediaType;return _objectSpread2({project_key:e.project_key,live_sdk_version:getPlayerCore(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.5",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:getLogId(),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+_Date$now(),is_preview:e.is_preview?1:0,codec_type:e.codec_type||"h264",width:Math.floor(r.config.width),height:Math.floor(r.config.height),browser:sniffer.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:_Date$now(),play_current_time:0,cdn_play_url:r.config.url&&_startsWithInstanceProperty(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:getPlayFormat(r.config.url),codec_support:-1},e.ext)}function Utf8ArrayToStr(e){var t,r,n,o,a,i;for(t="",n=e.length,r=0;r<n;)switch((o=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(o);break;case 12:case 13:a=e[r++],t+=String.fromCharCode((31&o)<<6|63&a);break;case 14:a=e[r++],i=e[r++],t+=String.fromCharCode((15&o)<<12|(63&a)<<6|(63&i)<<0)}return t}var getResourceTiming=function(e){var t,r=_filterInstanceProperty(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],o=r[r.length-1];return{dns_parse_time:_Number$parseInt(n.domainLookupEnd-n.domainLookupStart),redirect:_Number$parseInt(n.redirectEnd-n.redirectStart),ttfb:_Number$parseInt(o.responseStart-o.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}},video_error={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},Manage=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=_bindInstanceProperty(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}_createClass(e,[{key:"videoSize",get:function(){return this._player&&this._player.video?{width:this._player.video.videoWidth,height:this._player.video.videoHeight}:{width:0,height:0}}}]);var t=e.prototype;return t.push=function(e){var t=this._player.config.url;this._player.video&&(e.play_current_time=this._player.currentTime),e.cdn_play_url=t&&_startsWithInstanceProperty(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=getUrlQuery(t,"session_id"),e.play_format=getPlayFormat(t),e.timestamp=getCurrentTime();var r=getDeviceInfo(),n=r.cpu_core_number,o=r.memory_usage,a=r.network_downlink;e.cpu_core_number=n,e.memory_usage=o,e.network_downlink=a,_Object$assign(e,_objectSpread2({},this.videoSize)),this.send(e)},t.send=function(e){e.event_key&&(this.logOptions.onReport&&this.logOptions.onReport(e.event_key,e),this.Tea(e.event_key,_objectSpread2({},e)))},e}(),navgatorOnlineSupported=function(){return void 0!==navigator.onLine},navigatorConnectionType=function(){var e=navigator.connection;return e&&(e.effectiveType||e.type)},getNetStat=function(){return navgatorOnlineSupported()?navigator.onLine?navigatorConnectionType()||sniffer.device:"none":"unknown"},videoEvts=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],LoggerControl=function(){function e(e){var t,r;this.options=e,this.logger=new XgLiveLogger(e),this.restart=_bindInstanceProperty(t=this.restart).call(t,this),this.bindUrlChange(),_includesInstanceProperty(r=sniffer.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new XgLiveLogger(this.options),this.bindUrlChange(),this.logger.reportStartPlay(),this.logger.handlePlayerComlete()},t.bindUrlChange=function(){this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.on("urlchange",this.restart)},t.setNTP=function(e){this.logger.setNTP(e)},t.updateExt=function(e){this.options.ext=_Object$assign(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.destroy=function(e){this.logger.destroy(e),this.logger=null,this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.off("urlchange",this.restart)},e}(),XgLiveLogger=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=_Object$assign({},e,getDefaultOptions(e)),this._player=this.options.player,this._url=this._player.config.url,this.project_key=e.project_key||"live",this.product_line=e.product_line||"live",this.ntpDelta=this.options.ntp?_Date$now()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new Manage(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}_createClass(e,[{key:"videoSize",get:function(){return this.player?{width:this.player.video.videoWidth,height:this.player.video.videoHeight}:{width:0,height:0}}},{key:"player",get:function(){return this._player}},{key:"logmanager",get:function(){return this._logmanager}},{key:"ntpTime",get:function(){return _Date$now()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=_Date$now()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,o,a,i,s,l,c,p,u,$,y,f,d;this.handlePlayerComlete=_bindInstanceProperty(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=_bindInstanceProperty(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=_bindInstanceProperty(r=this.destroyFunc).call(r,this),this.handleUserLeave=_bindInstanceProperty(n=this.handleUserLeave).call(n,this),this.handlePlayerError=_bindInstanceProperty(o=this.handlePlayerError).call(o,this),this.handlePlayerReady=_bindInstanceProperty(a=this.handlePlayerReady).call(a,this),this.handlePlayerWaiting=_bindInstanceProperty(i=this.handlePlayerWaiting).call(i,this),this.handleAVUnsync=_bindInstanceProperty(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=_bindInstanceProperty(l=this.handlePlayerPause).call(l,this),this.handleTTFB=_bindInstanceProperty(c=this.handleTTFB).call(c,this),this.handleUrlChange=_bindInstanceProperty(p=this.handleUrlChange).call(p,this),this.handleKeyframe=_bindInstanceProperty(u=this.handleKeyframe).call(u,this),this.handleSourceOpen=_bindInstanceProperty($=this.handleSourceOpen).call($,this),this.handleBufferAppend=_bindInstanceProperty(y=this.handleBufferAppend).call(y,this),this.handleCoreEvent=_bindInstanceProperty(f=this.handleCoreEvent).call(f,this),this.handleDegrade=_bindInstanceProperty(d=this.handleDegrade).call(d,this)},t.initLog=function(){var e=this,t=this.options,r=t.player,n=void 0!==r.hlsOps;this.commonParams=_objectSpread2({os:sniffer.operation_os},getCommonLog(t)),this.log=_Object$assign({},getDefaultLog());var o=this;for(var a in this.log){var i=function(t){_Object$defineProperty(e.log[a],t,{get:function(){return null==this["_"+t]?o.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)i(s);n&&_Object$defineProperty(this.log[a],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?_sliceInstanceProperty(e).call(e,0,25e4):""}return""},enumerable:!0}),_Object$defineProperty(this.log[a],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),_Object$defineProperty(this.log[a],"access",{get:function(){return getNetStat()},enumerable:!0})}},t.updateExt=function(e){for(var t in this.log)for(var r in e)this.log[t][r]=e[r]},t.reportStartPlay=function(){this.started||(this.started=!0,this.log.start_play.start_play_time=this.log.start_play.timestamp=getCurrentTime(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===sniffer.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===sniffer.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;_forEachInstanceProperty(videoEvts).call(videoEvts,(function(t){e["handleVideo"+t+"Evt"]=function(){e["handleVideo"+t]&&e["handleVideo"+t]()},e.initWindowListener(),e.bindVideoEvt(t,e["handleVideo"+t+"Evt"])})),t.once("error",this.handlePlayerError),t.once("complete",this.handlePlayerComlete),t.once("playing",this.handlePlayerPlaying),t.once("timeupdate",this.handlePlayerPlaying),t.once("destroy",this.destroyFunc),t.on("ready",this.handlePlayerReady),t.on("waiting",this.handlePlayerWaiting),t.on("pause",this.handlePlayerPause),t.on("urlchange",this.handleUrlChange),t.once("sourceopen",this.handleSourceOpen),t.once("bufferappend",this.handleBufferAppend),t.on("core_event",this.handleCoreEvent),t.on("degrade",this.handleDegrade),this.hiJackPlayerStart()},t.handleCoreEvent=function(e){var t=e.eventName,r=e.headers,n=e.pts,o=e.type,a=e.meta,i=e.sei,s=e.decodeFps,l=e.url,c=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var p=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),p&&(this.commonParams.cdn_ip=p);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(o,a);break;case"core.sei":this.handleSEIParsed(i);break;case"core.lowdecode":this.commonParams.is_wasm&&(_Object$assign(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=getCurrentTime(),this.logmanager.push(this.log.play_low_decode,!0),this.commonParams.is_wasm=0);break;case"core.largeavgap":this.handleAVUnsync(e);break;case"core.loadstart":this.handlePlayerLoadStream(e),this.reportStartPlay();break;case"core.loadcomplete":this.handlePlayerLoadedStream(e);break;case"core.streamexception":this.handleStreamException(e);break;case"core.rtcstatechange":this.logmanager.push(_Object$assign({url:l,state:c},this.log.rtcstatechange))}},t.handleDegrade=function(e){this.log.degrade.payload=e,this.logmanager.push(this.log.degrade,!0)},t.hiJackPlayerStart=function(){var e=arguments,t=this;this.player._start=this.player.start;var r=this.player;r.start=function(){try{if(r._start)return r._start.apply(r,_sliceInstanceProperty(Array.prototype).call(e,0))}catch(e){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0},t.handleUrlChange=function(e){this.logmanager.push(_Object$assign(this.log.play_url_change,{url:e,timestamp:getCurrentTime()}))},t.handleKeyframe=function(e){this.log.play_stop.is_firstframe_received=1,this.log.play_stop.firstframe_pts=e},t.handleSourceOpen=function(){this.log.source_opened.timestamp=getCurrentTime(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=getCurrentTime(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=getCurrentTime(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;_Object$assign(this.log.play_error,_objectSpread2({timestamp:getCurrentTime(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:_JSON$stringify(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(_Object$assign(this.log.first_frame_failed,{code:r||("parse"===t?31:21),msg:e.message}),void 0!==this.log.first_frame_failed.timestamp&&(this.log.first_frame_failed.timestamp=getCurrentTime()),this.logmanager.push(this.log.first_frame_failed,!0),this.log.play_result.is_threshold||(this.clearPlayResultTimer(),this.log.play_result.reason=e.message||"first frame failed",this.log.play_result.code=this.log.play_error.code,this.logmanager.push(this.log.play_result,!0))),this.options.error_report_stop?this.handleUserLeave():this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var o=this.log.play_loadstream;o.timestamp=getCurrentTime(),o.loadstream_url=t,o.offersdp=r,o.sessionId=n,this.logmanager.push(o)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=getCurrentTime(),_Object$assign(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){var t=this.log,r=t.playing,n=t.first_frame;if(100===e.code){var o=Utf8ArrayToStr(e.content);o=_sliceInstanceProperty(o).call(o,_indexOfInstanceProperty(o).call(o,"{"),_lastIndexOfInstanceProperty(o).call(o,"}")+1);try{var a=JSON.parse(o),i=this.getPlayerBuffer()+this.ntpTime-a.ts;r.sei_delay=i,r.sei_source=a.source,r.ntp_sync=this.options.ntp?1:0,r.ntp_delta=this.ntp_delta,n.first_sei_delay=i,n.ntp_sync=this.options.ntp?1:0,n.ntp_delta=this.ntp_delta}catch(e){}}},t.handleMetaDataLoaded=function(e,t){this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=getCurrentTime(),this.log.play_metadata_loaded.metadata_type=e,t&&(this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=t.codec,"video"===e&&(this.commonParams.codec_type=t.codec,this.commonParams.codec_support=isCodecSupport(t.codec))),t||(this.log.play_metadata_loaded.meta=void 0,this.log.play_metadata_loaded.codec=void 0,"video"===e&&(this.commonParams.codec_type="unknown")),this.logmanager.push(this.log.play_metadata_loaded)},t.handleAVUnsync=function(e){_Object$assign(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=getCurrentTime(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(_Object$assign({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=getPlayerCore(this.player),this.core&&(this.commonParams.live_sdk_version="2"),(this.player.config.autoplay||this.player.config.videoInit)&&this.reportStartPlay())},t.getPlayerBuffer=function(){var e=this.player.video.buffered;if(e){var t=Math.max(0,e.length-1);try{var r=_Number$parseInt(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(e){return 0}}},t.getPlayerDownloadSpeed=function(){if(this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo)return this.core.core.speedInfo().speed},t.getPlayerQuality=function(){var e=this.player.video;if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=_Number$parseFloat(this.tempTotalFrameCount/t.totalVideoFrames).toFixed(1),this.log.play_stop.drop_percent=_Number$parseFloat(t.droppedVideoFrames/t.totalVideoFrames).toFixed(1),this.tempDroppedFrameCount=t.droppedVideoFrames,this.tempTotalFrameCount=t.totalVideoFrames}},t.getRtcStats=function(e,t){try{var r=this,n=r.player.plugins.rts||r.player.plugins.rtm,o=n&&n.pc,a={};return o?_Promise.resolve(o.getStats()).then((function(t){return _forEachInstanceProperty(t).call(t,(function(t){var n=t.type,o=t.mediaType,i=t.bytesReceived,s=t.packetsReceived,l=t.audioLevel,c=t.concealmentEvents,p=t.remoteTimestamp,u=t.timestamp,$=t.framesDropped,y=t.keyFramesDecoded,f=t.totalDecodeTime,d=t.framesDecoded,h=t.frameHeight,g=t.frameWidth,m=t.framesReceived,_=t.jitterBufferDelay,b=t.jitterBufferEmittedCount,S=t.jitter,v=t.nackCount,O=t.packetsLost,P=t.pliCount,I=t.totalSamplesReceived,E=t.concealedSamples,w=t.currentRoundTripTime,T=t.decoderImplementation,R=t.mimeType,C=t.freezeCount,A=t.totalFreezesDuration,j=t.totalPausesDuration;switch(n){case"inbound-rtp":"audio"===o?(a.audio_bytes_received=i-(r.cacheRtcStats.audioBytesReceived||0),r.cacheRtcStats.audioBytesReceived=i,a.audio_packets_lost=O-(r.cacheRtcStats.audioPacketsLost||0),a.audio_packets_received=s-(r.cacheRtcStats.audioPacketsReceived||0),r.cacheRtcStats.audioPacketsLost=O,r.cacheRtcStats.audioPacketsReceived=s,a.audio_level=l,a.concealment_event=c,a.audio_fraction_lost=a.audio_packets_lost/a.audio_packets_received,void 0!==r.cacheRtcStats.totalSamplesReceived&&(a.audio_rec_sample_rate=(I-r.cacheRtcStats.totalSamplesReceived)/e),r.cacheRtcStats.totalSamplesReceived=I,a.concealed_samples=E,a.total_samples_received=I):(a.frames_dropped=$,a.iframes_decoded=y,a.video_bytes_received=i-(r.cacheRtcStats.videoBytesReceived||0),r.cacheRtcStats.videoBytesReceived=i,a.video_dec_time=f,a.video_decoded_delay_ms=a.video_dec_elapse/d,a.video_frame_height=h,a.video_frame_width=g,void 0!==r.cacheRtcStats.framesDecoded&&(a.video_decode_framerate=(d-r.cacheRtcStats.framesDecoded)/e),r.cacheRtcStats.framesDecoded=d,void 0!==r.cacheRtcStats.framesReceived&&(a.video_recv_framerate=(m-r.cacheRtcStats.framesReceived)/e),void 0!==r.cacheRtcStats.freezeCount&&(a.freeze_count=C-r.cacheRtcStats.freezeCount,a.freeze_duration=A-r.cacheRtcStats.totalFreezesDuration),r.cacheRtcStats.freezeCount=C,r.cacheRtcStats.totalFreezesDuration=A,r.cacheRtcStats.framesReceived=m,a.total_pauses_duration=j,a.video_jb_delay=_/b*1e3,a.video_jitter=1e3*S,a.video_nack_count=v,a.video_packets_lost=O-(r.cacheRtcStats.videoPacketsLost||0),a.video_packets_received=s-(r.cacheRtcStats.videoPacketsReceived||0),a.video_fraction_lost=a.video_packets_lost/a.video_packets_received,r.cacheRtcStats.videoPacketsLost=O,r.cacheRtcStats.videoPacketsReceived=s,a.video_pli_count=P,a.decoder_name=T);break;case"remote-outbound-rtp":a.e2e_delay_ms=u-p;break;case"track":void 0!==g&&(a.video_frame_width=g,a.video_frame_height=h);break;case"candidate-pair":a.rtt=1e3*w;break;case"codec":_includesInstanceProperty(R).call(R,"video")?a.video_codec=R:a.audio_codec=o}a.total_delay=a.e2e_delay_ms+(a.video_decoded_delay_ms||0)+(a.video_jb_delay||0)})),_Object$assign(r.log.playing,{video_download_size:a.video_bytes_received,decode_fps:a.video_decode_framerate,sei_delay:a.total_delay,sei_network_delay:a.e2e_delay_ms,width:a.video_frame_width,height:a.video_frame_height,current_speed:(a.audio_bytes_received+a.video_bytes_received)/e}),a})):_Promise.resolve(a)}catch(e){return _Promise.reject(e)}},t.reportPlaying=function(e){try{var t=this;t.commonParams.is_wasm&&(t.commonParams.fps=t.player.video.fps,t.log.playing.render_fps=t.player.video.fps,t.log.playing.decode_fps=t.player.video.decodeFps),t.log.playing.index++;var r,n=t.log.playing.timestamp;t.inWaitingStart&&t.inWaitingStart<getCurrentTime()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,getCurrentTime()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var o=getCurrentTime(),a=o-n,i=(r>200?r:0)+t.log.playing.stall_time,s=(r>200?1:0)+t.log.playing.stall_count;return t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=(r>t.options.aggregationDowngradeStallTime?r:0)+(t.log.playing.aggregation_downgrade_stall||0)),_Object$assign(t.log.playing,_objectSpread2({timestamp:o,stop_time:o,duration:e?0:a/1e3,stall_time_per_100sec:i/a*100,stall_count_per_100sec:1e3*s/a*100,stall_count:s,stall_time:i,play_current_time:t.player.currentTime},t.videoSize)),_Promise.resolve(t.getRtcStats(a,e)).then((function(r){t.logmanager.push(_Object$assign({},t.log.playing,_objectSpread2({play_time:e?0:a},r)),!0),t.log.playing.download_speed_array=[],t.log.playing.stall_time=0,t.log.playing.stall_count=0,t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=0)}))}catch(e){return _Promise.reject(e)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return _Promise.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),e.core){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return _Promise.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=_setInterval((function(){try{var r=function(){if(Math.abs(_Date$now()-e.log.playing.timestamp-t)<100||_Date$now()-e.log.playing.timestamp>=t){var r=function(){if(e.player.video){var t=function(){if(!e.player.paused)return _Promise.resolve(e.reportPlaying()).then((function(){}));e.handleVideopause()}();if(t&&t.then)return t.then((function(){}))}else e.destroyFunc()}();if(r&&r.then)return r.then((function(){}))}}();return _Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return _Promise.reject(e)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(e){return _Promise.reject(e)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=getCurrentTime(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=getCurrentTime(),this.playResultTimer=_setTimeout((function(){e.log.play_result.timestamp>=e.log.play_result.start||(e.log.play_result.is_threshold=1,e.logmanager.push(e.log.play_result,!0))}),this.log.play_result.threshold)},t.handlePlayerWaiting=function(){var e=this;!this.inWaitingStart&&this.log.first_frame.timestamp&&(this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=getCurrentTime(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=getCurrentTime(),this.log.stall_start.stall_start_time=getCurrentTime(),this.log.stall_start.video_buffer_time=this.player.video.readyState,this.log.stall_start.play_current_time=this.player.currentTime,this.log.stall.play_current_time=this.player.currentTime,this.log.stall_start.buffered=this.getBuffered(),this.log.stall.buffered=this.log.stall_start.buffered,this.log.stall.current_speed=this.getPlayerDownloadSpeed(),_Object$assign(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=_setTimeout((function(){e.logmanager.push(e.log.stall_start,!0)}),205))},t.handleVideoseeking=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.clearStallTimer())},t.handleVideoseeked=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.log.play_stop.stall_count>0&&this.log.play_stop.stall_count--)},t.handleVideoplay=function(){this.reportStartPlay(),this.removeVideoEvt("play",this.handleVideoplay)},t.handleVideotimeupdate=function(){Math.abs(this.player.currentTime-this.log.stall_start.play_current_time)>.2&&this.stallEnd(),this.saveBuffered()},t.handleVideocanplay=function(){this.stallEnd(),this.reportFirstframe()},t.handleVideoplaying=function(){this.stallEnd(),this.log.play_stop.is_stream_received=1;var e=getCurrentTime();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=getCurrentTime();if(this.inWaitingStart){var t=e-this.inWaitingStart;t>200&&(this.log.play_stop.stall_count++,this.log.play_stop.stall_time+=e-this.inWaitingStart,this.log.playing.stall_time+=e-Math.max(this.inWaitingStart,this.log.playing.timestamp),this.log.stall.stall_end=e,this.log.stall.timestamp=getCurrentTime(),this.log.playing.stall_count++,_Object$assign(this.log.stall,_objectSpread2({},this.videoSize)),this.logmanager.push(this.log.stall,!0)),this.options.aggregationDowngradeStallTime&&t>this.options.aggregationDowngradeStallTime&&(this.log.playing.aggregation_downgrade_stall=(this.log.playing.aggregation_downgrade_stall||0)+(e-Math.max(this.inWaitingStart,this.log.playing.timestamp)))}this.inWaitingStart=0},t.handleVideoloadeddata=function(){this.reportFirstframe()},t.handleVideoratechange=function(){this.log.playing.speed_switch_count++,this.log.playing.speed_switch_info=this.player.video.playbackRate},t.handleVideoended=function(){this.clearPlayingInterval(),this.clearStallTimer(),_Object$assign(this.log.playing,_objectSpread2({timestamp:getCurrentTime(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing)},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;_Object$assign(this.log.play_error,_objectSpread2(_objectSpread2({timestamp:getCurrentTime()},this.videoSize),t&&{code:t.code,info:t.message})),this.logmanager.push(this.log.play_error,!0),0!==e.log.first_frame.first_frame_view||e.log.first_frame_failed.code||t&&(e.log.first_frame_failed.code=t.code,e.log.first_frame_failed.msg=video_error[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=getCurrentTime()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=video_error[t.code]||"first frame failed",e.log.play_result.code=t.code,e.clearPlayResultTimer(),e.logmanager.push(e.log.play_result,!0))),e.options.error_report_stop?e.handleUserLeave():e.updatePlayStopParams()},t.handleVideopause=function(){this.stallEnd(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.player.once("playing",this.handlePlayerPlaying),this.player.once("timeupdate",this.handlePlayerPlaying)},t.destroyFunc=function(e){var t=this;this.destroyed||(e||this.handleUserLeave(),this.destroyed=!0,"pc"===sniffer.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&window.removeEventListener("pagehide",this.handleUserLeave),_forEachInstanceProperty(videoEvts).call(videoEvts,(function(e){t.removeVideoEvt(e,t["handleVideo"+e+"Evt"])})),this.player&&(this.player._start&&(this.player.start=this.player._start,delete this.player._start),this.player.off("destroy",this.destroyFunc),this.player.off("complete",this.handlePlayerComlete),this.player.off("playing",this.handlePlayerPlaying),this.player.off("timeupdate",this.handlePlayerPlaying),this.player.off("ready",this.handlePlayerReady),this.player.off("waiting",this.handlePlayerWaiting),this.player.off("largeavgap",this.handleAVUnsync),this.player.off("error",this.handlePlayerError),this.player.off("SEI_PARSED",this.handleSEIParsed),this.player.off("pause",this.handlePlayerPause),this.player.off("ttfb",this.handleTTFB),this.player.off("urlchange",this.handleUrlChange),this.player.off("isKeyframe",this.handleKeyframe),this.player.off("sourceopen",this.handleSourceOpen),this.player.off("bufferappend",this.handleBufferAppend),this.player.off("core_event",this.handleCoreEvent),this.player.off("degrade",this.handleDegrade),this.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer),this._player=null))},t.handleUserLeave=function(){!this.destroyed&&this.started&&(this.destroyed=!0,this.updatePlayStopParams(),this.reportPlayStop(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.removeWindowListener())},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(e){}},t.getBuffered=function(){try{for(var e=[],t=this.player.video,r=0;r<t.buffered.length;r++)e.push([t.buffered.start(r),t.buffered.end(r)]);return e}catch(e){}},t.reportPlayStop=function(){this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered(),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=getCurrentTime();_Object$assign(this.log.first_frame,_objectSpread2({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){var e=getResourceTiming(this._url),t=getCurrentTime();this.playedTime=t-this.log.start_play.start_play_time;var r=this.log.play_stop;_Object$assign(r,_objectSpread2({},0===r.stall_count&&{stall_time:0})),this.inWaitingStart&&t-this.inWaitingStart>200&&(r.stall_time+=t-this.inWaitingStart),this.inWaitingStart=0,_Object$assign(r,_objectSpread2({stall_time_per_100sec:r.stall_time/this.playedTime*100,stall_count_per_100sec:1e3*r.stall_count/this.playedTime*100},e)),0===this.log.play_stop.stall_count_per_100sec&&(this.log.play_stop.stall_time_per_100sec=0),this.log.play_stop.stall_time_per_100sec>100||this.log.play_stop.stall_time_per_100sec<0||(this.log.playing.index?(_Object$assign(this.log.playing,_objectSpread2({timestamp:getCurrentTime(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing,!0)):(this.log.play_stop.error_code=this.log.play_error.code,this.log.play_stop.error_info=this.log.play_error.info),t=getCurrentTime(),_Object$assign(r,_objectSpread2({timestamp:t,stop_time:t,duration:this.playedTime/1e3,play_time:this.playedTime/1e3},this.videoSize)),0===this.errorNumber&&(r.play_time_on_no_frame=r.stop_time-this.log.start_play.start_play_time))},t.clearPlayingInterval=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},t.clearStallTimer=function(){clearTimeout(this.stallStartTimer)},t.clearPlayResultTimer=function(){clearTimeout(this.playResultTimer)},t.destroy=function(e){this.destroyFunc(!e)},t.bindVideoEvt=function(e,t){this.player&&this.player.video.addEventListener(e,t,!1)},t.removeVideoEvt=function(e,t){this.player&&this.player.video&&this.player.video.removeEventListener(e,t,!1)},t.send=function(e,t){this.logmanager.send(e,t)},e}(),symbol=symbol$1,_Symbol=getDefaultExportFromCjs(symbol),getIteratorMethod=getIteratorMethod$3,_getIteratorMethod=getDefaultExportFromCjs(getIteratorMethod),tryToString=tryToString$6,$TypeError=TypeError,deletePropertyOrThrow$1=function(e,t){if(!delete e[t])throw $TypeError("Cannot delete property "+tryToString(t)+" of "+tryToString(e))},$$5=_export,toObject=toObject$b,toAbsoluteIndex=toAbsoluteIndex$4,toIntegerOrInfinity=toIntegerOrInfinity$5,lengthOfArrayLike=lengthOfArrayLike$a,setArrayLength=arraySetLength,doesNotExceedSafeInteger=doesNotExceedSafeInteger$3,arraySpeciesCreate=arraySpeciesCreate$3,createProperty=createProperty$6,deletePropertyOrThrow=deletePropertyOrThrow$1,arrayMethodHasSpeciesSupport$1=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport$1("splice"),max=Math.max,min=Math.min;$$5({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{splice:function(e,t){var r,n,o,a,i,s,l=toObject(this),c=lengthOfArrayLike(l),p=toAbsoluteIndex(e,c),u=arguments.length;for(0===u?r=n=0:1===u?(r=0,n=c-p):(r=u-2,n=min(max(toIntegerOrInfinity(t),0),c-p)),doesNotExceedSafeInteger(c+r-n),o=arraySpeciesCreate(l,n),a=0;a<n;a++)(i=p+a)in l&&createProperty(o,a,l[i]);if(o.length=n,r<n){for(a=p;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>p;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+p]=arguments[a+2];return setArrayLength(l,c-n+r),o}});var entryVirtual$2=entryVirtual$f,splice$6=entryVirtual$2("Array").splice,isPrototypeOf$2=objectIsPrototypeOf,method$2=splice$6,ArrayPrototype$1=Array.prototype,splice$5=function(e){var t=e.splice;return e===ArrayPrototype$1||isPrototypeOf$2(ArrayPrototype$1,e)&&t===ArrayPrototype$1.splice?method$2:t},parent$e=splice$5,splice$4=parent$e,parent$d=splice$4,splice$3=parent$d,parent$c=splice$3,splice$2=parent$c,splice$1=splice$2,splice2=splice$1,_spliceInstanceProperty=getDefaultExportFromCjs(splice2),$$4=_export,$parseFloat=numberParseFloat;$$4({global:!0,forced:parseFloat!=numberParseFloat},{parseFloat:numberParseFloat});var path$1=path$t,_parseFloat$6=path$1.parseFloat,parent$b=_parseFloat$6,_parseFloat$5=parent$b,parent$a=_parseFloat$5,_parseFloat$4=parent$a,parent$9=_parseFloat$4,_parseFloat$3=parent$9,_parseFloat$2=_parseFloat$3,_parseFloat=_parseFloat$2,_parseFloat$1=getDefaultExportFromCjs(_parseFloat),PROPER_FUNCTION_NAME=functionName.PROPER,fails$4=fails$y,whitespaces=whitespaces$4,non="
",stringTrimForced=function(e){return fails$4((function(){return!!whitespaces[e]()||non[e]()!==non||PROPER_FUNCTION_NAME&&whitespaces[e].name!==e}))},$$3=_export,$trim=stringTrim.trim,forcedStringTrimMethod=stringTrimForced;$$3({target:"String",proto:!0,forced:forcedStringTrimMethod("trim")},{trim:function(){return $trim(this)}});var entryVirtual$1=entryVirtual$f,trim$6=entryVirtual$1("String").trim,isPrototypeOf$1=objectIsPrototypeOf,method$1=trim$6,StringPrototype=String.prototype,trim$5=function(e){var t=e.trim;return"string"==typeof e||e===StringPrototype||isPrototypeOf$1(StringPrototype,e)&&t===StringPrototype.trim?method$1:t},parent$8=trim$5,trim$4=parent$8,parent$7=trim$4,trim$3=parent$7,parent$6=trim$3,trim$2=parent$6,trim$1=trim$2,trim2=trim$1,_trimInstanceProperty=getDefaultExportFromCjs(trim2),create4=create$5,_Object$create=getDefaultExportFromCjs(create4),fails$3=fails$y,freezing=!fails$3((function(){return Object.isExtensible(Object.preventExtensions({}))})),internalMetadata={exports:{}},fails$2=fails$y,arrayBufferNonExtensible=fails$2((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fails$1=fails$y,isObject$2=isObject$k,classof=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE=arrayBufferNonExtensible,$isExtensible=Object.isExtensible,FAILS_ON_PRIMITIVES$1=fails$1((function(){$isExtensible(1)})),objectIsExtensible=FAILS_ON_PRIMITIVES$1||ARRAY_BUFFER_NON_EXTENSIBLE?function(e){return!!isObject$2(e)&&((!ARRAY_BUFFER_NON_EXTENSIBLE||"ArrayBuffer"!=classof(e))&&(!$isExtensible||$isExtensible(e)))}:$isExtensible,$$2=_export,uncurryThis=functionUncurryThis,hiddenKeys=hiddenKeys$6,isObject$1=isObject$k,hasOwn2=hasOwnProperty_1,defineProperty5=objectDefineProperty.f,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertyNamesExternalModule=objectGetOwnPropertyNamesExternal,isExtensible2=objectIsExtensible,uid=uid$4,FREEZING$1=freezing,REQUIRED=!1,METADATA=uid("meta"),id=0,setMetadata=function(e){defineProperty5(e,METADATA,{value:{objectID:"O"+id++,weakData:{}}})},fastKey=function(e,t){if(!isObject$1(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hasOwn2(e,METADATA)){if(!isExtensible2(e))return"F";if(!t)return"E";setMetadata(e)}return e[METADATA].objectID},getWeakData=function(e,t){if(!hasOwn2(e,METADATA)){if(!isExtensible2(e))return!0;if(!t)return!1;setMetadata(e)}return e[METADATA].weakData},onFreeze$1=function(e){return FREEZING$1&&REQUIRED&&isExtensible2(e)&&!hasOwn2(e,METADATA)&&setMetadata(e),e},enable=function(){meta.enable=function(){},REQUIRED=!0;var e=getOwnPropertyNamesModule.f,t=uncurryThis([].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},$$2({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:getOwnPropertyNamesExternalModule.f}))},meta=internalMetadata.exports={enable:enable,fastKey:fastKey,getWeakData:getWeakData,onFreeze:onFreeze$1};hiddenKeys[METADATA]=!0;var internalMetadataExports=internalMetadata.exports,$$1=_export,FREEZING=freezing,fails=fails$y,isObject=isObject$k,onFreeze=internalMetadataExports.onFreeze,$freeze=Object.freeze,FAILS_ON_PRIMITIVES=fails((function(){$freeze(1)}));$$1({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES,sham:!FREEZING},{freeze:function(e){return $freeze&&isObject(e)?$freeze(onFreeze(e)):e}});var path=path$t,freeze$5=path.Object.freeze,parent$5=freeze$5,freeze$4=parent$5,parent$4=freeze$4,freeze$3=parent$4,parent$3=freeze$3,freeze$2=parent$3,freeze$1=freeze$2,freeze2=freeze$1,_Object$freeze=getDefaultExportFromCjs(freeze2),$=_export,$map=arrayIteration.map,arrayMethodHasSpeciesSupport=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("map");$({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{map:function(e){return $map(this,e,arguments.length>1?arguments[1]:void 0)}});var _context6,entryVirtual=entryVirtual$f,map$6=entryVirtual("Array").map,isPrototypeOf=objectIsPrototypeOf,method=map$6,ArrayPrototype=Array.prototype,map$5=function(e){var t=e.map;return e===ArrayPrototype||isPrototypeOf(ArrayPrototype,e)&&t===ArrayPrototype.map?method:t},parent$2=map$5,map$4=parent$2,parent$1=map$4,map$3=parent$1,parent=map$3,map$2=parent,map$1=map$2,map2=map$1,_mapInstanceProperty=getDefaultExportFromCjs(map2),isArray2=isArray$1,_Array$isArray=getDefaultExportFromCjs(isArray2),_e=function(){return _e=_Object$assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_e.apply(this,arguments)};function t(e,t){var r="function"==typeof _Symbol&&_getIteratorMethod(e);if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function i(){for(var e=[],r=0;r<arguments.length;r++)e=_concatInstanceProperty(e).call(e,t(arguments[r]));return e}var n,u,p,l,o=function(){function e(){this._hooks={},this._cache=[],this._hooksCache={}}return e.prototype.on=function(e,t){e&&t&&"function"==typeof t&&(this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t))},e.prototype.once=function(e,t){var r=this;e&&t&&"function"==typeof t&&this.on(e,(function n(o){t(o),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,o=_indexOfInstanceProperty(r=this._hooks[e]).call(r,t);-1!==o&&_spliceInstanceProperty(n=this._hooks[e]).call(n,o,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==_indexOfInstanceProperty(n=this._cache).call(n,r)?this._emit(e,t):(this._hooksCache.hasOwnProperty(r)||(this._hooksCache[r]={}),this._hooksCache[r].hasOwnProperty(e)||(this._hooksCache[r][e]=[]),this._hooksCache[r][e].push(t))}else this._emit(e,t)},e.prototype._emit=function(e,t){var r;e&&this._hooks[e]&&this._hooks[e].length&&_forEachInstanceProperty(r=i(this._hooks[e])).call(r,(function(e){try{e(t)}catch(e){}}))},e.prototype.set=function(e){var t;e&&-1===_indexOfInstanceProperty(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),r=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},s=(n=+_Date$now()+Number(_sliceInstanceProperty(_context6=""+Math.random()).call(_context6,2,8)),function(){return n+=1}),a=function(e){return function(e,t,r){if("string"==typeof e&&"number"==typeof r){var n,o=[];r=r<=25?r:r%25;var a=String.fromCharCode(r+97);n=e.split(a);for(var i=0;i<n.length;i++){var s=_parseInt$7(n[i],r);s=1*s^64;var l=String.fromCharCode(s);o.push(l)}return o.join("")}}(e,0,25)},c=function(e){var t=document.createElement("a");return t.href=e,t},h=function(){function e(e){this.appid=e,this.userAgent=window.navigator.userAgent,this.appVersion=window.navigator.appVersion}return e.prototype.init=function(){var e=window.navigator.userAgent,t=window.navigator.language,r=document.referrer,n=r?c(r).hostname:"";!function(e){var t={};try{var r,n=c(e).search;_forEachInstanceProperty(r=(n=_sliceInstanceProperty(n).call(n,1)).split("&")).call(r,(function(e){var r,n,o=e.split("=");o.length&&(r=o[0],n=o[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(e){t[r]=n}}))}catch(e){}}(window.location.href);var o=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",a=this.browser(),i=this.os();return{browser:a.browser,browser_version:a.browser_version,platform:o,os_name:i.os_name,os_version:i.os_version,userAgent:e,screen_width:window.screen&&window.screen.width,screen_height:window.screen&&window.screen.height,device_model:this.getDeviceModel(i.os_name),language:t,referrer:r,referrer_host:n}},e.prototype.browser=function(){var e,t,r="",n=""+_parseFloat$1(this.appVersion),o=this.userAgent;return-1!==_indexOfInstanceProperty(o).call(o,"Edge")||-1!==_indexOfInstanceProperty(o).call(o,"Edg")?(r="Microsoft Edge",-1!==_indexOfInstanceProperty(o).call(o,"Edge")?(e=_indexOfInstanceProperty(o).call(o,"Edge"),n=o.substring(e+5)):(e=_indexOfInstanceProperty(o).call(o,"Edg"),n=o.substring(e+4))):-1!==(e=_indexOfInstanceProperty(o).call(o,"MSIE"))?(r="Microsoft Internet Explorer",n=o.substring(e+5)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Lark"))?(r="Lark",n=o.substring(e+5,e+11)):-1!==(e=_indexOfInstanceProperty(o).call(o,"MetaSr"))?(r="sougoubrowser",n=o.substring(e+7,e+10)):-1!==_indexOfInstanceProperty(o).call(o,"MQQBrowser")||-1!==_indexOfInstanceProperty(o).call(o,"QQBrowser")?(r="qqbrowser",-1!==_indexOfInstanceProperty(o).call(o,"MQQBrowser")?(e=_indexOfInstanceProperty(o).call(o,"MQQBrowser"),n=o.substring(e+11,e+15)):-1!==_indexOfInstanceProperty(o).call(o,"QQBrowser")&&(e=_indexOfInstanceProperty(o).call(o,"QQBrowser"),n=o.substring(e+10,e+17))):-1!==_indexOfInstanceProperty(o).call(o,"Chrome")?-1!==(e=_indexOfInstanceProperty(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=_indexOfInstanceProperty(o).call(o,"360"))?(r="360browser",n=o.substring(_indexOfInstanceProperty(o).call(o,"Chrome")+7)):-1!==_indexOfInstanceProperty(o).call(o,"baidubrowser")||-1!==_indexOfInstanceProperty(o).call(o,"BIDUBrowser")?(-1!==_indexOfInstanceProperty(o).call(o,"baidubrowser")?(e=_indexOfInstanceProperty(o).call(o,"baidubrowser"),n=o.substring(e+13,e+16)):-1!==_indexOfInstanceProperty(o).call(o,"BIDUBrowser")&&(e=_indexOfInstanceProperty(o).call(o,"BIDUBrowser"),n=o.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=_indexOfInstanceProperty(o).call(o,"xiaomi"))?-1!==_indexOfInstanceProperty(o).call(o,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=o.substring(e+7,e+13)):(r="xiaomi",n=o.substring(e-7,e-1)):-1!==(e=_indexOfInstanceProperty(o).call(o,"TTWebView"))?(r="TTWebView",n=o.substring(e+10,e+23)):(-1!==(e=_indexOfInstanceProperty(o).call(o,"Chrome"))||-1!==(e=_indexOfInstanceProperty(o).call(o,"Chrome")))&&(r="Chrome",n=o.substring(e+7)):-1!==_indexOfInstanceProperty(o).call(o,"Safari")?-1!==(e=_indexOfInstanceProperty(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+10,e+16)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Safari"))&&(r="Safari",n=o.substring(e+7),-1!==(e=_indexOfInstanceProperty(o).call(o,"Version"))&&(n=o.substring(e+8))):-1!==(e=_indexOfInstanceProperty(o).call(o,"Firefox"))?(r="Firefox",n=o.substring(e+8)):-1!==(e=_indexOfInstanceProperty(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=_indexOfInstanceProperty(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+3,e+8)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Opera"))&&(r="Opera",n=o.substring(e+6),-1!==(e=_indexOfInstanceProperty(o).call(o,"Version"))&&(n=o.substring(e+8))),-1!==(t=_indexOfInstanceProperty(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=_indexOfInstanceProperty(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=_indexOfInstanceProperty(n).call(n,")"))&&(n=n.substring(0,t)),{browser:r,browser_version:n}},e.prototype.os=function(){for(var e="",t="",r=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],n=0;n<r.length;n++){var o=r[n];if(o.r.test(this.userAgent)){"Mac OS X"===(e=o.s)&&this.isNewIpad()&&(e="iOS");break}}var a,i,s=function(e,t){var r=e.exec(t);return r&&r[1]?r[1]:""},l=function(e,t){var r=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:"+e+")","i").exec(t);return r?_sliceInstanceProperty(r).call(r,1)[0]:""};switch(/Windows/.test(e)&&(t=s(/Windows (.*)/,e),e="windows"),e){case"Mac OS X":t=l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent),e="mac";break;case"Android":(i=s(/Android ([\.\_\d]+)/,a=this.userAgent))||(i=s(/Android\/([\.\_\d]+)/,a)),t=i,e="android";break;case"iOS":t=this.isNewIpad()?l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent):(t=/OS (\d+)_(\d+)_?(\d+)?/.exec(this.appVersion))?t[1]+"."+t[2]+"."+(0|t[3]):"",e="ios"}return{os_name:e,os_version:t}},e.prototype.getDeviceModel=function(e){var t="";try{var r;if("android"===e)_forEachInstanceProperty(r=navigator.userAgent.split(";")).call(r,(function(e){_indexOfInstanceProperty(e).call(e,"Build/")>-1&&(t=_sliceInstanceProperty(e).call(e,0,_indexOfInstanceProperty(e).call(e,"Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),o=_indexOfInstanceProperty(n).call(n,";");t=_sliceInstanceProperty(n).call(n,0,o)}}catch(e){return _trimInstanceProperty(t).call(t)}return _trimInstanceProperty(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),f=((u=function(e,t){e.exports=function(){function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function o(t,o,a){if("undefined"!=typeof document){"number"==typeof(a=e({},n,a)).expires&&(a.expires=new Date(_Date$now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in a)a[s]&&(i+="; "+s,!0!==a[s]&&(i+="="+a[s].split(";")[0]));return document.cookie=t+"="+r.write(o,t)+i}}return _Object$create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},o=0;o<t.length;o++){var a=t[o].split("="),i=_sliceInstanceProperty(a).call(a,1).join("=");try{var s=decodeURIComponent(a[0]);if(n[s]=r.read(i,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(t,r){o(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:_Object$freeze(n)},converter:{value:_Object$freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=_sliceInstanceProperty(e).call(e,1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()})(p={exports:{}},p.exports),p.exports),d=f,g=function(){function e(){this.cache={}}return e.prototype.setItem=function(e,t){this.cache[e]=t},e.prototype.getItem=function(e){return this.cache[e]},e.prototype.removeItem=function(e){this.cache[e]=void 0},e.prototype.getCookie=function(e){this.getItem(e)},e.prototype.setCookie=function(e,t){this.setItem(e,t)},e}(),m={getItem:function(e){try{var t=localStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(e){}return r||{}}catch(e){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:_JSON$stringify(t);localStorage.setItem(e,r)}catch(e){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(e){}},getCookie:function(e,t){try{return d.get(e,{domain:t||document.domain})}catch(e){return""}},setCookie:function(e,t,r,n){try{var o=n||document.domain,a=+new Date+r;d.set(e,t,{expires:new Date(a),path:"/",domain:o})}catch(e){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(e){return!1}}()},_={getItem:function(e){try{var t=sessionStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(e){}return r||{}}catch(e){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:_JSON$stringify(t);sessionStorage.setItem(e,r)}catch(e){}},removeItem:function(e){try{sessionStorage.removeItem(e)}catch(e){}},getCookie:function(e){this.getItem(e)},setCookie:function(e,t){this.setItem(e,t)},isSupportSession:function(){try{return sessionStorage.setItem("_ranger-test-key","hi"),sessionStorage.getItem("_ranger-test-key"),sessionStorage.removeItem("_ranger-test-key"),!0}catch(e){return!1}}()},v=function(){function e(e,t){this._storage=t&&"session"===t?_:!e&&m.isSupportLS?m:new g}return e.prototype.getItem=function(e){return this._storage.getItem(e)},e.prototype.setItem=function(e,t){this._storage.setItem(e,t)},e.prototype.getCookie=function(e,t){return this._storage.getCookie(e,t)},e.prototype.setCookie=function(e,t,r,n){this._storage.setCookie(e,t,r,n)},e.prototype.removeItem=function(e){this._storage.removeItem(e)},e}(),y={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},w=void 0,b=(new Date).getTimezoneOffset(),k=_parseInt$7(""+-b/60,10),x=60*b,O=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new h(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new v(!1,"session"),this.localStorage=new v(!1,"local");var o=this.localStorage.getItem(n);o&&1==o?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:w,user_type:w,user_id:w,user_is_auth:w,user_is_login:w,device_id:w,web_id:w,user_unique_id_type:w},header:{app_id:w,app_name:w,app_install_id:w,install_id:w,app_package:w,app_channel:w,app_version:w,ab_version:w,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:w,traffic_type:w,client_ip:w,device_brand:w,os_api:w,access:w,language:r.language,region:w,app_language:w,app_region:w,creative_id:w,ad_id:w,campaign_id:w,log_type:w,rnd:w,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:w,city:w,timezone:k,tz_offset:x,tz_name:w,sim_region:w,carrier:w,resolution:r.screen_width+"x"+r.screen_height,browser:r.browser,browser_version:r.browser_version,referrer:r.referrer,referrer_host:r.referrer_host,width:r.screen_width,height:r.screen_height,screen_width:r.screen_width,screen_height:r.screen_height,utm_term:w,utm_content:w,utm_source:w,utm_medium:w,utm_campaign:w,custom:{},wechat_unionid:w,wechat_openid:w}},this.evtParams={},this.reportErrorCallback=function(){},this.initDomain()}return e.prototype.initDomain=function(){var e=this.initConfig.channel_domain;if(e)this.domain=e;else{var t=this.initConfig.channel;this.domain=a(y[t])}},e.prototype.setDomain=function(e){this.domain=e},e.prototype.getDomain=function(){return this.domain},e.prototype.getUrl=function(e){var t="";switch(e){case"event":t=this.initConfig.report_url||"/list";break;case"webid":t="/webid"}return""+this.getDomain()+t},e.prototype.set=function(e){var t,r=this;_forEachInstanceProperty(t=_Object$keys(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=_e({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=_e({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?_indexOfInstanceProperty(n=["user_id","web_id","user_unique_id"]).call(n,t)>-1&&(r.envInfo.user[t]=e[t]?String(e[t]):e[t]):Object.hasOwnProperty.call(r.envInfo.header,t)?r.envInfo.header[t]=e[t]:r.envInfo.header.custom[t]=e[t]}))},e.prototype.get=function(e){try{return e?"evtParams"===e?this.evtParams:"reportErrorCallback"===e?this[e]:Object.hasOwnProperty.call(this.envInfo.user,e)?this.envInfo.user[e]:Object.hasOwnProperty.call(this.envInfo.header,e)?this.envInfo.header[e]:JSON.parse(_JSON$stringify(this.envInfo[e])):JSON.parse(_JSON$stringify(this.envInfo))}catch(e){console.log("get config stringify error ")}},e}();!function(e){e.Init="init",e.Config="config",e.Start="start",e.Ready="ready",e.TokenComplete="token-complete",e.TokenStorage="token-storage",e.TokenFetch="token-fetch",e.TokenError="token-error",e.ConfigUuid="config-uuid",e.TokenChange="token-change",e.TokenReset="token-reset",e.SessionReset="session-reset",e.SessionResetTime="session-reset-time",e.Event="event",e.Events="events",e.EventNow="event-now",e.CleanEvents="clean-events",e.BeconEvent="becon-event"}(l||(l={}));var I=l,S=500,z=5005;function M(e,t,r,n,o,a,i,s,l){try{var c=new XMLHttpRequest,p=s||"POST";c.open(p,""+e,!0),c.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(c.timeout=r,c.ontimeout=function(){a&&a(t,z)}),c.onload=function(){if(o){var e=null;if(c.responseText){try{e=JSON.parse(c.responseText)}catch(t){e={}}o(e,t)}}},c.onerror=function(){c.abort(),a&&a(t,S)},l?c.send(t):c.send(_JSON$stringify(t))}catch(e){}}var T=4003,C=function(){function e(){this.eventLimit=50,this.eventCache=[],this.beconEventCache=[]}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=e.configManager,this.cacheStorgae=new v(!0),this.localStorage=new v(!1),this.maxReport=t.max_report||20,this.reportTime=t.reportTime||30,this.timeout=t.timeout||1e5,this.reportUrl=this.configManager.getUrl("event"),this.eventKey="__tea_cache_events_"+this.configManager.get("app_id"),this.beconKey="__tea_cache_events_becon_"+this.configManager.get("app_id"),this.collect.on(I.Ready,(function(){r.reportAll(!1)})),this.collect.on(I.Event,(function(e){r.event(e)})),this.collect.on(I.BeconEvent,(function(e){r.beconEvent(e)})),this.linster()},e.prototype.linster=function(){var e,t=this;window.addEventListener("unload",(function(){t.reportAll(!0)}),!1),e=function(){t.reportAll(!0)},navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t.reportAll(!0)}),!1)},e.prototype.reportAll=function(e){this.report(e),this.reportBecon()},e.prototype.event=function(e){var t=this;try{var r=i(e,this.cacheStorgae.getItem(this.eventKey)||[]);if(this.cacheStorgae.setItem(this.eventKey,r),this.reportTimeout&&clearTimeout(this.reportTimeout),r.length>=this.maxReport)this.report(!1);else{var n=this.reportTime;this.reportTimeout=_setTimeout((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(e){}},e.prototype.beconEvent=function(e){var t=i(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.destroyInstance||this.collect.tokenManager.getReady()&&this.collect.sdkReady&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(t)),!0))},e.prototype.reportBecon=function(){var e=this.cacheStorgae.getItem(this.beconKey)||[];e&&e.length&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(e)),!0))},e.prototype.report=function(e){if(!this.collect.destroyInstance&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var t=this.cacheStorgae.getItem(this.eventKey)||[];t.length&&(this.cacheStorgae.removeItem(this.eventKey),this.sliceEvent(t,e))}},e.prototype.sliceEvent=function(e,t){if(e.length>this.eventLimit)for(var r=0;r<e.length;r+=this.eventLimit){var n;n=_sliceInstanceProperty(e).call(e,r,r+this.eventLimit);var o=this.split(this.merge(n));this.send(o,t)}else o=this.split(this.merge(e)),this.send(o,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,o=r.user;n.custom=_JSON$stringify(n.custom);var a=this.configManager.get("evtParams"),i=_mapInstanceProperty(e).call(e,(function(e){try{return _Object$keys(a).length&&(e.params=_e({},a,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=_JSON$stringify(e.params),e}catch(t){return e}})),s=[];if(!_Object$keys(o).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(_JSON$stringify({events:i,user:o,header:n}));return l.local_time=Math.floor(_Date$now()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return _mapInstanceProperty(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&_forEachInstanceProperty(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,o=e,a=r.timeout,i=function(e,t){},s=function(e,t){r.configManager.get("reportErrorCallback")(e,t)},!1,t&&window.navigator&&window.navigator.sendBeacon?window.navigator.sendBeacon(n,_JSON$stringify(o))||s(n,o):M(n,o,a,0,i,s,0,"",false)}catch(e){console.warn("something error, "+_JSON$stringify(e.stack))}var n,o,a,i,s}))},e}(),E=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},P=function(){var e;return _sliceInstanceProperty(e=E().replace(/-/g,"")).call(e,0,19)},A=function(){function e(){this.cacheToken={}}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new v(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(I.ConfigUuid,(function(e){r.setUuid(e)})),this.checkStorage()},e.prototype.checkStorage=function(){this.cacheToken=this.storage.getItem(this.tokenKey)||{},this.check()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.remoteWebid()},e.prototype.remoteWebid=function(){var e=this,t=this.configManager.getUrl("webid"),r={app_key:this.config.app_key,app_id:this.config.app_id,url:location.href,user_agent:window.navigator.userAgent,referer:document.referrer,user_unique_id:""},n=P();M(t,r,3e5,0,(function(t){var r;t&&0===t.e?r=t.web_id:(r=n,e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+" get webid error, use local webid~")),e.complete({web_id:e.configManager.get("web_id")||r,user_unique_id:e.configManager.get("user_unique_id")||r})}),(function(){e.complete({web_id:e.configManager.get("web_id")||n,user_unique_id:e.configManager.get("user_unique_id")||n}),e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+", get webid error, use local webid~")}))},e.prototype.complete=function(e){var t=e.web_id,r=e.user_unique_id;t||r?(e.timestamp=_Date$now(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(I.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===_indexOfInstanceProperty(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),o=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===o)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=_Date$now(),this.setStorage(this.cacheToken)}else this.clearUuid()},e.prototype.clearUuid=function(){this.config.enable_ttwebid||this.configManager.get("web_id")&&(this.configManager.set({user_unique_id:this.configManager.get("web_id")}),this.cacheToken&&this.cacheToken.web_id&&(this.cacheToken.user_unique_id=this.cacheToken.web_id,this.cacheToken.timestamp=_Date$now(),this.setStorage(this.cacheToken)),this.collect.emit(I.TokenReset))},e.prototype.setStorage=function(e){e._type_="default",this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e}(),D=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},N=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new v(!1,"session"),this.sessionKey="__tea_session_id_"+t.app_id,this.expireTime=t.expireTime||18e5,this.disableSession=t.disable_session,this.disableSession||(this.setSessionId(),this.collect.on(I.SessionReset,(function(){r.resetSessionId()})),this.collect.on(I.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;_Date$now()-t>this.expireTime?e={sessionId:D(),timestamp:_Date$now()}:e.timestamp=_Date$now(),this.storage.setItem(this.sessionKey,e),this.resetExpTime()}},e.prototype.setSessionId=function(){var e=this,t=this.storage.getItem(this.sessionKey);t&&t.sessionId?t.timestamp=_Date$now():t={sessionId:D(),timestamp:_Date$now()},this.storage.setItem(this.sessionKey,t),this.sessionExp=_setInterval((function(){e.checkEXp()}),this.expireTime)},e.prototype.getSessionId=function(){var e=this.storage.getItem(this.sessionKey);return this.disableSession?"":e&&e.sessionId?e.sessionId:""},e.prototype.resetExpTime=function(){var e=this;this.sessionExp&&(clearInterval(this.sessionExp),this.sessionExp=_setInterval((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:D(),timestamp:_Date$now()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&_Date$now()-e.timestamp+30>=this.expireTime&&(e={sessionId:D(),timestamp:_Date$now()},this.storage.setItem(this.sessionKey,e))},e}(),R=function(){function e(e){this.disableAutoPageView=!1,this.staging=!1,this.sended=!1,this.started=!1,this.adapters={},this.sdkReady=!1,this.name=e,this.hook=new o,this.Types=I,this.adapters.fetch=M,this.adapters.storage=v}return e.prototype.init=function(e){var t,n,o=this;this.inited?console.log("init can be call only one time"):e&&r(e)?e.app_id&&"number"==typeof(n=e.app_id)&&!isNaN(n)?e.app_key&&"string"!=typeof e.app_key?console.warn("app_key param is error, must be string, please check!"):(e.channel_domain||-1!==_indexOfInstanceProperty(t=["cn","sg","va"]).call(t,e.channel)||(console.warn("channel must be `cn`, `sg`,`va` !!!"),e.channel="cn"),this.inited=!0,this.configManager=new O(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new C,this.tokenManager=new A,this.sessionManager=new N,_Promise.all([new _Promise((function(e){o.once(I.TokenComplete,(function(){e(!0)}))})),new _Promise((function(e){o.once(I.Start,(function(){e(!0)}))}))]).then((function(){o.sdkReady=!0,o.emit(I.Ready),console.info("appid: "+e.app_id+", userInfo:"+_JSON$stringify(o.configManager.get("user"))),console.info("appid: "+e.app_id+", sdk is ready, version is 0.0.3-lite, you can report now !!!"),o.pageView()})),this.tokenManager.apply(this,e),this.eventManager.apply(this,e),this.sessionManager.apply(this,e),this.emit(I.Init)):console.warn("app_id param is error, must be number, please check!"):console.warn("init params error,please check")},e.prototype.config=function(e){if(this.inited)if(e&&r(e)){e._staging_flag&&1===e._staging_flag&&(this.staging=!0),e.disable_auto_pv&&(this.disableAutoPageView=!0,delete e.disable_auto_pv);var t=_e({},e);t.user_unique_id;var n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&_indexOfInstanceProperty(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof _Object$getOwnPropertySymbols){var o=0;for(n=_Object$getOwnPropertySymbols(e);o<n.length;o++)_indexOfInstanceProperty(t).call(t,n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(I.ConfigUuid,t.user_unique_id),this.configManager.set(n)}else console.warn("config params is error, please check");else console.warn("config must be use after function init")},e.prototype.getConfig=function(e){return this.configManager.get(e)},e.prototype.start=function(){this.inited&&!this.sended&&(this.sended=!0,this.emit(I.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];_Array$isArray(e)?_forEachInstanceProperty(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(I.Event,n),this.emit(I.SessionResetTime))}catch(e){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(_Array$isArray(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(I.BeconEvent,r),this.emit(I.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=_sliceInstanceProperty(e).call(e,6));var n=t;"object"!=_typeof(n)&&(n={}),n.event_index=s();var o=void 0;return n.local_ms?(o=n.local_ms,delete n.local_ms):o=+new Date,{event:r,params:n,local_time_ms:o}}catch(r){return{event:e,params:t}}},e.prototype.on=function(e,t){this.hook.on(e,t)},e.prototype.once=function(e,t){this.hook.once(e,t)},e.prototype.off=function(e,t){this.hook.off(e,t)},e.prototype.emit=function(e,t,r){this.hook.emit(e,t,r)},e.prototype.set=function(e){this.hook.set(e)},e.prototype.pageView=function(){this.disableAutoPageView||this.predefinePageView()},e.prototype.predefinePageView=function(e){void 0===e&&(e={});var t={title:document.title||location.pathname,url:location.href,url_path:location.pathname,time:_Date$now(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=_e({},t,e);this.event("predefine_pageview",r)},e}(),q=new R("default"),DEVICE_ID_KEY="veplayer_live_device_id",USER_ID_Key="veplayer_live_user_id",genRandomID2=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},getDeviceID2=function(){var e=localStorage.getItem(DEVICE_ID_KEY);return e||(e=genRandomID2(11),localStorage.setItem(DEVICE_ID_KEY,e),e)},getUserId2=function(){var e=localStorage.getItem(USER_ID_Key);return e||(e=genRandomID2(12),localStorage.setItem(USER_ID_Key,e),e)},Plugin$2=window.VePlayer.Plugin,CN_APPID=468759,CHANNEL="cn",CHANNEL_DOMAIN="//mcs.volceapplog.com",Logger=function(e){_inherits(r,Plugin$2);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$1(_assertThisInitialized(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,a))),"_userId",void 0),_defineProperty$1(_assertThisInitialized(n),"_deviceId",void 0),_defineProperty$1(_assertThisInitialized(n),"_liveLogger",void 0),n}return _createClass$1(r,[{key:"afterCreate",value:function(){var e,t;this.config.enable&&(this.config.appId?(this._userId=(null===(e=this.config)||void 0===e?void 0:e.userId)||getUserId2(),this._deviceId=(null===(t=this.config)||void 0===t?void 0:t.deviceId)||getDeviceID2(),this.open()):console.info("not found appId, please generate an appId"))}},{key:"destroy",value:function(){this.close()}},{key:"close",value:function(){var e;null===(e=this._liveLogger)||void 0===e||e.destroy(!1),this._liveLogger=void 0}},{key:"open",value:function(){this._liveLogger||(this._start(),this.config.showUserIdInErrorPanel&&this.player.plugins.error&&(this.player.plugins.error.config.extraTips=[{label:"userId",value:null==q?void 0:q.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){q.init({app_id:CN_APPID,channel:CHANNEL,channel_domain:CHANNEL_DOMAIN}),q.start(),q.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new LoggerControl({Tea:q,player:this.player,aid:this.config.appId,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this._userId,device_id:this._deviceId,ext:{veplayer_version:"2.0.0-rc.0",flv_version:"3.0.0-next.23",hls_version:"3.0.0-next.36-1",rts_version:"0.2.0-alpha.3"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:"",enable:!0,showUserIdInErrorPanel:!0}}}]),r}();function normalizeNumber(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}function getDefaultRow(e){var t,r,n;return{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:normalizeNumber(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:normalizeNumber(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:normalizeNumber(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:_concatInstanceProperty(r="".concat(normalizeNumber(e.height)," * ")).call(r,normalizeNumber(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:normalizeNumber(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:normalizeNumber(e.currentTime,(function(e){return e.toFixed(6)+"s"}))}]}}function getSoftDecodeRow(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:normalizeNumber(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:normalizeNumber(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}var _context,infoPanel="",util$1=window.VePlayer.util,Plugin$1=window.VePlayer.Plugin,XGUtil=window.VePlayer.XGUtil,InfoPanel=function(e){_inherits(r,Plugin$1);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$1(_assertThisInitialized(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,a))),"_pollTimer",void 0),_defineProperty$1(_assertThisInitialized(n),"_visible",void 0),_defineProperty$1(_assertThisInitialized(n),"_playPlugin",void 0),n}return _createClass$1(r,[{key:"_streamType",get:function(){return util$1.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(Events.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(Events.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(_includesInstanceProperty(e=["flv","hls"]).call(e,this._streamType)?this.player.plugins[this._streamType]?(this.root.style.display="block",this._tick(),this._visible=!0):console.warn("不支持或未加载".concat(this._streamType,"插件")):console.warn("仅支持flv和hls格式的信息展示"))}},{key:"close",value:function(){this._visible&&(clearTimeout(this._pollTimer),this.root.innerHTML="",this.root.style.display="none",this._visible=!1)}},{key:"destroy",value:function(){var e=this;this.close(),this.player.off(Events.LOADED_DATA,(function(){return e.open()})),this.player.off(Events.ERROR,(function(){return e.close()}))}},{key:"render",value:function(){return'\n <xg-live-panel class="veplayer-live-panel">\n </xg-live-panel>\n '}},{key:"_tick",value:function(){var e=this;clearTimeout(this._pollTimer),this._renderPanel(),this._pollTimer=_setTimeout((function(){e._tick()}),this.config.interval)}},{key:"_getStats",value:function(){var e;return null===(e=this._playPlugin)||void 0===e?void 0:e.getStats()}},{key:"_getPanelData",value:function(){var e=this._getStats()||{},t="".concat(this._streamType,"_live"),r=this._playPlugin.softDecode,n=[getDefaultRow(_objectSpread2$1(_objectSpread2$1({},e),{},{format:t}))];return r&&n.push(getSoftDecodeRow(e)),n}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",_forEachInstanceProperty(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,o=t.titleTextKey,a=t.rows,i=this.player.config.i18nManager;if(n||o){var s,l=this._genTitleDom(null!==(s=i.getText(o))&&void 0!==s?s:n);e.appendChild(l)}_forEachInstanceProperty(a).call(a,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=XGUtil.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=XGUtil.createDom("xg-live-panel",e,void 0,"veplayer-live-panel-row-title");return t.appendChild(r),t}},{key:"_genRowDom",value:function(e){var t=this.player.config.i18nManager,r=XGUtil.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=XGUtil.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var o=XGUtil.createDom("xg-live-panel",e.value);return r.appendChild(o),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(),BaseEN=window.VePlayer.EN,EN$1=_objectSpread2$1(_objectSpread2$1({},BaseEN),{},{INVALID_PARAMETER:"The imported parameter is empty, please pass in necessary parameters such as the stream address",FORMAT:"format",FPS:"fps",BITRATE:"bitrate",GOP:"gop",RESOLUTION:"resolution",ENCODE_TYPE:"encodeType",BUFFER_END:"bufferEnd",CURRENT_TIME:"currentTime",DECODE_EFFICIENCY:"efficiency",DECODE_COST:"cost",DECODE_INFO:"decodeInfo",REFRESH:"refresh"}),BaseZH_CN=window.VePlayer.ZH_CN,ZH_CN$1=_objectSpread2$1(_objectSpread2$1({},BaseZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",FORMAT:"格式",FPS:"帧率",BITRATE:"码率",GOP:"GOP",RESOLUTION:"视频分辨率",ENCODE_TYPE:"编码方式",BUFFER_END:"Buffer 水位",CURRENT_TIME:"播放进度",DECODE_EFFICIENCY:"解码效率",DECODE_COST:"解码消耗",DECODE_INFO:"软解信息",REFRESH:"刷新"}),DEFAULT_PLUGINS=window.VePlayer.DEFAULT_PLUGINS,VePlayerBase=window.VePlayer.VePlayerBase,VeI18n=window.VePlayer.VeI18n;VeI18n.extend([{LANG:"zh-cn",TEXT:ZH_CN$1},{LANG:"en",TEXT:EN$1}]);var LIVE_DEFAULT_OPTIONS={autoplay:{muted:!0}},LIVE_DEFAULT_PLUGINS=_concatInstanceProperty(_context=[]).call(_context,_toConsumableArray(DEFAULT_PLUGINS),[Refresh,Logger,InfoPanel]),VePlayerLive=function(e){_inherits(r,VePlayerBase);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass$1(r,[{key:"openLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.open()}},{key:"closeLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.close()}},{key:"openInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.open()}},{key:"closeInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.close()}}]),r}();function createLivePlayer(e){return _createLivePlayer.apply(this,arguments)}function _createLivePlayer(){return(_createLivePlayer=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o,a,i;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&(t.url||t.playlist)){e.next=2;break}throw create$2(ErrorCode.INVALID_PARAMETER,new VeI18n);case 2:return o=new VeI18n({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),a=_objectSpread2$1(_objectSpread2$1({},t),{},{plugins:_concatInstanceProperty(r=[]).call(r,_toConsumableArray(LIVE_DEFAULT_PLUGINS),_toConsumableArray(null!==(n=t.plugins)&&void 0!==n?n:[]))}),e.next=6,VePlayerBase.create(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},LIVE_DEFAULT_OPTIONS),a),{},{isLive:!0,i18nManager:o,preparePlugins:function(e){return _asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",getTypeStrategy(_objectSpread2$1(_objectSpread2$1({},a),{},{url:e})));case 1:case"end":return t.stop()}}),t)})))()}}),VePlayerLive);case 6:return i=e.sent,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var live=Object.freeze({__proto__:null,ErrorCode:ErrorCode,Events:Events}),setModuleSystem=window.VePlayer.setModuleSystem,Codec=window.VePlayer.Codec,DecodeType=window.VePlayer.DecodeType,Degradation=window.VePlayer.Degradation,POSITIONS=window.VePlayer.POSITIONS,register=window.VePlayer.register,EN=window.VePlayer.EN,ZH_CN=window.VePlayer.ZH_CN,Plugin=window.VePlayer.Plugin,Sniffer=window.VePlayer.Sniffer,DynamicModule=window.VePlayer.DynamicModule,util=window.VePlayer.util,load=window.VePlayer.load;setModuleSystem("esm");var isMseSupported=util.isMseSupported,isSoftDecodeSupported=util.isSoftDecodeSupported;export{Codec,DecodeType,Degradation,DynamicModule,EN,POSITIONS,Plugin,RTMCodec,Sniffer,ZH_CN,createLivePlayer,isMseSupported,isRTMSupportCodec,isRTMSupported,isSoftDecodeSupported,live,load,register,util};
|
|
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$p=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||commonjsGlobal||Function("return this")(),fails$y=function(e){try{return!!e()}catch(e){return!0}},fails$x=fails$y,functionBindNative=!fails$x((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),NATIVE_BIND$4=functionBindNative,FunctionPrototype$3=Function.prototype,apply$7=FunctionPrototype$3.apply,call$l=FunctionPrototype$3.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$4?call$l.bind(apply$7):function(){return call$l.apply(apply$7,arguments)}),NATIVE_BIND$3=functionBindNative,FunctionPrototype$2=Function.prototype,call$k=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$3&&FunctionPrototype$2.bind.bind(call$k,call$k),functionUncurryThis=NATIVE_BIND$3?uncurryThisWithBind:function(e){return function(){return call$k.apply(e,arguments)}},uncurryThis$x=functionUncurryThis,toString$d=uncurryThis$x({}.toString),stringSlice$3=uncurryThis$x("".slice),classofRaw$2=function(e){return stringSlice$3(toString$d(e),8,-1)},classofRaw$1=classofRaw$2,uncurryThis$w=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw$1(e))return uncurryThis$w(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$m=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},objectGetOwnPropertyDescriptor={},fails$w=fails$y,descriptors=!fails$w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),NATIVE_BIND$2=functionBindNative,call$j=Function.prototype.call,functionCall=NATIVE_BIND$2?call$j.bind(call$j):function(){return call$j.apply(call$j,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable$1={}.propertyIsEnumerable,getOwnPropertyDescriptor$b=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$b&&!$propertyIsEnumerable$1.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){var t=getOwnPropertyDescriptor$b(this,e);return!!t&&t.enumerable}:$propertyIsEnumerable$1;var match,version,createPropertyDescriptor$8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uncurryThis$v=functionUncurryThis,fails$v=fails$y,classof$e=classofRaw$2,$Object$4=Object,split$1=uncurryThis$v("".split),indexedObject=fails$v((function(){return!$Object$4("z").propertyIsEnumerable(0)}))?function(e){return"String"==classof$e(e)?split$1(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$g=TypeError,requireObjectCoercible$6=function(e){if(isNullOrUndefined$3(e))throw $TypeError$g("Can't call method on "+e);return e},IndexedObject$2=indexedObject,requireObjectCoercible$5=requireObjectCoercible$6,toIndexedObject$b=function(e){return IndexedObject$2(requireObjectCoercible$5(e))},isCallable$l=isCallable$m,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$k=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$l(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$l(e)},path$t={},path$s=path$t,global$o=global$p,isCallable$k=isCallable$m,aFunction=function(e){return isCallable$k(e)?e:void 0},getBuiltIn$f=function(e,t){return arguments.length<2?aFunction(path$s[e])||aFunction(global$o[e]):path$s[e]&&path$s[e][t]||global$o[e]&&global$o[e][t]},uncurryThis$u=functionUncurryThis,objectIsPrototypeOf=uncurryThis$u({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$n=global$p,userAgent$3=engineUserAgent,process$4=global$n.process,Deno$1=global$n.Deno,versions=process$4&&process$4.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$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||match[1]>=74)&&(match=userAgent$3.match(/Chrome\/(\d+)/))&&(version=+match[1]);var engineV8Version=version,V8_VERSION$3=engineV8Version,fails$u=fails$y,global$m=global$p,$String$5=global$m.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$u((function(){var e=Symbol();return!$String$5(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$e=getBuiltIn$f,isCallable$j=isCallable$m,isPrototypeOf$i=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$6=USE_SYMBOL_AS_UID$1?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$e("Symbol");return isCallable$j(t)&&isPrototypeOf$i(t.prototype,$Object$3(e))},$String$4=String,tryToString$6=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$i=isCallable$m,tryToString$5=tryToString$6,$TypeError$f=TypeError,aCallable$b=function(e){if(isCallable$i(e))return e;throw $TypeError$f(tryToString$5(e)+" is not a function")},aCallable$a=aCallable$b,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){var r=e[t];return isNullOrUndefined$2(r)?void 0:aCallable$a(r)},call$i=functionCall,isCallable$h=isCallable$m,isObject$j=isObject$k,$TypeError$e=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$h(r=e.toString)&&!isObject$j(n=call$i(r,e)))return n;if(isCallable$h(r=e.valueOf)&&!isObject$j(n=call$i(r,e)))return n;if("string"!==t&&isCallable$h(r=e.toString)&&!isObject$j(n=call$i(r,e)))return n;throw $TypeError$e("Can't convert object to primitive value")},shared$7={exports:{}},isPure=!0,global$l=global$p,defineProperty$d=Object.defineProperty,defineGlobalProperty$1=function(e,t){try{defineProperty$d(global$l,e,{value:t,configurable:!0,writable:!0})}catch(r){global$l[e]=t}return t},global$k=global$p,defineGlobalProperty=defineGlobalProperty$1,SHARED="__core-js_shared__",store$3=global$k[SHARED]||defineGlobalProperty(SHARED,{}),sharedStore=store$3,store$2=sharedStore;(shared$7.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedExports=shared$7.exports,requireObjectCoercible$4=requireObjectCoercible$6,$Object$2=Object,toObject$b=function(e){return $Object$2(requireObjectCoercible$4(e))},uncurryThis$t=functionUncurryThis,toObject$a=toObject$b,hasOwnProperty=uncurryThis$t({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$a(e),t)},uncurryThis$s=functionUncurryThis,id$1=0,postfix=Math.random(),toString$c=uncurryThis$s(1..toString),uid$4=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$c(++id$1+postfix,36)},global$j=global$p,shared$6=sharedExports,hasOwn$h=hasOwnProperty_1,uid$3=uid$4,NATIVE_SYMBOL$4=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$5=global$j.Symbol,WellKnownSymbolsStore$2=shared$6("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$5.for||Symbol$5:Symbol$5&&Symbol$5.withoutSetter||uid$3,wellKnownSymbol$q=function(e){return hasOwn$h(WellKnownSymbolsStore$2,e)||(WellKnownSymbolsStore$2[e]=NATIVE_SYMBOL$4&&hasOwn$h(Symbol$5,e)?Symbol$5[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore$2[e]},call$h=functionCall,isObject$i=isObject$k,isSymbol$5=isSymbol$6,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$p=wellKnownSymbol$q,$TypeError$d=TypeError,TO_PRIMITIVE=wellKnownSymbol$p("toPrimitive"),toPrimitive$6=function(e,t){if(!isObject$i(e)||isSymbol$5(e))return e;var r,n=getMethod$2(e,TO_PRIMITIVE);if(n){if(void 0===t&&(t="default"),r=call$h(n,e,t),!isObject$i(r)||isSymbol$5(r))return r;throw $TypeError$d("Can't convert object to primitive value")}return void 0===t&&(t="number"),ordinaryToPrimitive(e,t)},toPrimitive$5=toPrimitive$6,isSymbol$4=isSymbol$6,toPropertyKey$4=function(e){var t=toPrimitive$5(e,"string");return isSymbol$4(t)?t:t+""},global$i=global$p,isObject$h=isObject$k,document$3=global$i.document,EXISTS$1=isObject$h(document$3)&&isObject$h(document$3.createElement),documentCreateElement$1=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$h=descriptors,fails$t=fails$y,createElement$1=documentCreateElement$1,ie8DomDefine=!DESCRIPTORS$h&&!fails$t((function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a})),DESCRIPTORS$g=descriptors,call$g=functionCall,propertyIsEnumerableModule$2=objectPropertyIsEnumerable,createPropertyDescriptor$7=createPropertyDescriptor$8,toIndexedObject$a=toIndexedObject$b,toPropertyKey$3=toPropertyKey$4,hasOwn$g=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$g?$getOwnPropertyDescriptor$2:function(e,t){if(e=toIndexedObject$a(e),t=toPropertyKey$3(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$2(e,t)}catch(e){}if(hasOwn$g(e,t))return createPropertyDescriptor$7(!call$g(propertyIsEnumerableModule$2.f,e,t),e[t])};var fails$s=fails$y,isCallable$g=isCallable$m,replacement=/#|\.prototype\./,isForced$2=function(e,t){var r=data[normalize(e)];return r==POLYFILL||r!=NATIVE&&(isCallable$g(t)?fails$s(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$r=functionUncurryThisClause,aCallable$9=aCallable$b,NATIVE_BIND$1=functionBindNative,bind$h=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$9(e),void 0===t?e:NATIVE_BIND$1?bind$h(e,t):function(){return e.apply(t,arguments)}},objectDefineProperty={},DESCRIPTORS$f=descriptors,fails$r=fails$y,v8PrototypeDefineBug=DESCRIPTORS$f&&fails$r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),isObject$g=isObject$k,$String$3=String,$TypeError$c=TypeError,anObject$e=function(e){if(isObject$g(e))return e;throw $TypeError$c($String$3(e)+" is not an object")},DESCRIPTORS$e=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey$2=toPropertyKey$4,$TypeError$b=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$d(e),t=toPropertyKey$2(t),anObject$d(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$d(e),t=toPropertyKey$2(t),anObject$d(r),IE8_DOM_DEFINE)try{return $defineProperty$1(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$b("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var DESCRIPTORS$d=descriptors,definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$6=createPropertyDescriptor$8,createNonEnumerableProperty$8=DESCRIPTORS$d?function(e,t,r){return definePropertyModule$4.f(e,t,createPropertyDescriptor$6(1,r))}:function(e,t,r){return e[t]=r,e},global$h=global$p,apply$6=functionApply,uncurryThis$q=functionUncurryThisClause,isCallable$f=isCallable$m,getOwnPropertyDescriptor$a=objectGetOwnPropertyDescriptor.f,isForced$1=isForced_1,path$r=path$t,bind$g=functionBindContext,createNonEnumerableProperty$7=createNonEnumerableProperty$8,hasOwn$f=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$6(e,this,arguments)};return t.prototype=e.prototype,t},_export=function(e,t){var r,n,o,a,i,s,l,c,p,u=e.target,$=e.global,y=e.stat,f=e.proto,d=$?global$h:y?global$h[u]:(global$h[u]||{}).prototype,h=$?path$r:path$r[u]||createNonEnumerableProperty$7(path$r,u,{})[u],g=h.prototype;for(a in t)n=!(r=isForced$1($?a:u+(y?".":"#")+a,e.forced))&&d&&hasOwn$f(d,a),s=h[a],n&&(l=e.dontCallGetSet?(p=getOwnPropertyDescriptor$a(d,a))&&p.value:d[a]),i=n&&l?l:t[a],n&&typeof s==typeof i||(c=e.bind&&n?bind$g(i,global$h):e.wrap&&n?wrapConstructor(i):f&&isCallable$f(i)?uncurryThis$q(i):i,(e.sham||i&&i.sham||s&&s.sham)&&createNonEnumerableProperty$7(c,"sham",!0),createNonEnumerableProperty$7(h,a,c),f&&(hasOwn$f(path$r,o=u+"Prototype")||createNonEnumerableProperty$7(path$r,o,{}),createNonEnumerableProperty$7(path$r[o],a,i),e.real&&g&&(r||!g[a])&&createNonEnumerableProperty$7(g,a,i)))},classof$d=classofRaw$2,isArray$d=Array.isArray||function(e){return"Array"==classof$d(e)},ceil=Math.ceil,floor$1=Math.floor,mathTrunc=Math.trunc||function(e){var t=+e;return(t>0?floor$1:ceil)(t)},trunc2=mathTrunc,toIntegerOrInfinity$5=function(e){var t=+e;return t!=t||0===t?0:trunc2(t)},toIntegerOrInfinity$4=toIntegerOrInfinity$5,min$4=Math.min,toLength$2=function(e){return e>0?min$4(toIntegerOrInfinity$4(e),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$a=function(e){return toLength$1(e.length)},$TypeError$a=TypeError,MAX_SAFE_INTEGER=9007199254740991,doesNotExceedSafeInteger$3=function(e){if(e>MAX_SAFE_INTEGER)throw $TypeError$a("Maximum allowed index exceeded");return e},toPropertyKey$1=toPropertyKey$4,definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$5=createPropertyDescriptor$8,createProperty$6=function(e,t,r){var n=toPropertyKey$1(t);n in e?definePropertyModule$3.f(e,n,createPropertyDescriptor$5(0,r)):e[n]=r},wellKnownSymbol$o=wellKnownSymbol$q,TO_STRING_TAG$4=wellKnownSymbol$o("toStringTag"),test$1={};test$1[TO_STRING_TAG$4]="z";var toStringTagSupport="[object z]"===String(test$1),TO_STRING_TAG_SUPPORT$2=toStringTagSupport,isCallable$e=isCallable$m,classofRaw=classofRaw$2,wellKnownSymbol$n=wellKnownSymbol$q,TO_STRING_TAG$3=wellKnownSymbol$n("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$e(t.callee)?"Arguments":n},uncurryThis$p=functionUncurryThis,isCallable$d=isCallable$m,store$1=sharedStore,functionToString=uncurryThis$p(Function.toString);isCallable$d(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)});var inspectSource$2=store$1.inspectSource,uncurryThis$o=functionUncurryThis,fails$q=fails$y,isCallable$c=isCallable$m,classof$b=classof$c,getBuiltIn$d=getBuiltIn$f,inspectSource$1=inspectSource$2,noop=function(){},empty=[],construct$6=getBuiltIn$d("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$2=uncurryThis$o(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$c(e))return!1;try{return construct$6(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$c(e))return!1;switch(classof$b(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$2(constructorRegExp,inspectSource$1(e))}catch(e){return!0}};isConstructorLegacy.sham=!0;var isConstructor$4=!construct$6||fails$q((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$f=isObject$k,wellKnownSymbol$m=wellKnownSymbol$q,SPECIES$5=wellKnownSymbol$m("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$f(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$p=fails$y,wellKnownSymbol$l=wellKnownSymbol$q,V8_VERSION$2=engineV8Version,SPECIES$4=wellKnownSymbol$l("species"),arrayMethodHasSpeciesSupport$5=function(e){return V8_VERSION$2>=51||!fails$p((function(){var t=[];return(t.constructor={})[SPECIES$4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$$T=_export,fails$o=fails$y,isArray$b=isArray$d,isObject$e=isObject$k,toObject$9=toObject$b,lengthOfArrayLike$9=lengthOfArrayLike$a,doesNotExceedSafeInteger$2=doesNotExceedSafeInteger$3,createProperty$5=createProperty$6,arraySpeciesCreate$2=arraySpeciesCreate$3,arrayMethodHasSpeciesSupport$4=arrayMethodHasSpeciesSupport$5,wellKnownSymbol$k=wellKnownSymbol$q,V8_VERSION$1=engineV8Version,IS_CONCAT_SPREADABLE=wellKnownSymbol$k("isConcatSpreadable"),IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION$1>=51||!fails$o((function(){var e=[];return e[IS_CONCAT_SPREADABLE]=!1,e.concat()[0]!==e})),isConcatSpreadable=function(e){if(!isObject$e(e))return!1;var t=e[IS_CONCAT_SPREADABLE];return void 0!==t?!!t:isArray$b(e)},FORCED$8=!IS_CONCAT_SPREADABLE_SUPPORT||!arrayMethodHasSpeciesSupport$4("concat");$$T({target:"Array",proto:!0,arity:1,forced:FORCED$8},{concat:function(e){var t,r,n,o,a,i=toObject$9(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$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$2=String,toString$b=function(e){if("Symbol"===classof$a(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$2(e)},objectDefineProperties={},toIntegerOrInfinity$3=toIntegerOrInfinity$5,max$3=Math.max,min$3=Math.min,toAbsoluteIndex$4=function(e,t){var r=toIntegerOrInfinity$3(e);return r<0?max$3(r+t,0):min$3(r,t)},toIndexedObject$9=toIndexedObject$b,toAbsoluteIndex$3=toAbsoluteIndex$4,lengthOfArrayLike$8=lengthOfArrayLike$a,createMethod$3=function(e){return function(t,r,n){var o,a=toIndexedObject$9(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$n=functionUncurryThis,hasOwn$e=hasOwnProperty_1,toIndexedObject$8=toIndexedObject$b,indexOf$7=arrayIncludes.indexOf,hiddenKeys$5=hiddenKeys$6,push$c=uncurryThis$n([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$8(e),o=0,a=[];for(r in n)!hasOwn$e(hiddenKeys$5,r)&&hasOwn$e(n,r)&&push$c(a,r);for(;t.length>o;)hasOwn$e(n,r=t[o++])&&(~indexOf$7(a,r)||push$c(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$2=objectDefineProperty,anObject$c=anObject$e,toIndexedObject$7=toIndexedObject$b,objectKeys$2=objectKeys$3;objectDefineProperties.f=DESCRIPTORS$c&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$c(e);for(var r,n=toIndexedObject$7(t),o=objectKeys$2(t),a=o.length,i=0;a>i;)definePropertyModule$2.f(e,r=o[i++],n[r]);return e};var activeXDocument,getBuiltIn$c=getBuiltIn$f,html$2=getBuiltIn$c("document","documentElement"),shared$5=sharedExports,uid$2=uid$4,keys$6=shared$5("keys"),sharedKey$4=function(e){return keys$6[e]||(keys$6[e]=uid$2(e))},anObject$b=anObject$e,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$b(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$6=toIndexedObject$b,$getOwnPropertyNames$1=objectGetOwnPropertyNames.f,arraySlice$6=arraySliceSimple,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return $getOwnPropertyNames$1(e)}catch(e){return arraySlice$6(windowNames)}};objectGetOwnPropertyNamesExternal.f=function(e){return windowNames&&"Window"==classof$9(e)?getWindowNames(e):$getOwnPropertyNames$1(toIndexedObject$6(e))};var objectGetOwnPropertySymbols={};objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols;var createNonEnumerableProperty$6=createNonEnumerableProperty$8,defineBuiltIn$7=function(e,t,r,n){return n&&n.enumerable?e[t]=r:createNonEnumerableProperty$6(e,t,r),e},defineProperty$c=objectDefineProperty,defineBuiltInAccessor$3=function(e,t,r){return defineProperty$c.f(e,t,r)},wellKnownSymbolWrapped={},wellKnownSymbol$j=wellKnownSymbol$q;wellKnownSymbolWrapped.f=wellKnownSymbol$j;var set$1,get,has,path$q=path$t,hasOwn$d=hasOwnProperty_1,wrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,defineProperty$b=objectDefineProperty.f,wellKnownSymbolDefine=function(e){var t=path$q.Symbol||(path$q.Symbol={});hasOwn$d(t,e)||defineProperty$b(t,e,{value:wrappedWellKnownSymbolModule$1.f(e)})},call$f=functionCall,getBuiltIn$b=getBuiltIn$f,wellKnownSymbol$i=wellKnownSymbol$q,defineBuiltIn$6=defineBuiltIn$7,symbolDefineToPrimitive=function(){var e=getBuiltIn$b("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wellKnownSymbol$i("toPrimitive");t&&!t[n]&&defineBuiltIn$6(t,n,(function(e){return call$f(r,this)}),{arity:1})},TO_STRING_TAG_SUPPORT$1=toStringTagSupport,classof$8=classof$c,objectToString$1=TO_STRING_TAG_SUPPORT$1?{}.toString:function(){return"[object "+classof$8(this)+"]"},TO_STRING_TAG_SUPPORT=toStringTagSupport,defineProperty$a=objectDefineProperty.f,createNonEnumerableProperty$5=createNonEnumerableProperty$8,hasOwn$c=hasOwnProperty_1,toString$a=objectToString$1,wellKnownSymbol$h=wellKnownSymbol$q,TO_STRING_TAG$2=wellKnownSymbol$h("toStringTag"),setToStringTag$7=function(e,t,r,n){if(e){var o=r?e:e.prototype;hasOwn$c(o,TO_STRING_TAG$2)||defineProperty$a(o,TO_STRING_TAG$2,{configurable:!0,value:t}),n&&!TO_STRING_TAG_SUPPORT&&createNonEnumerableProperty$5(o,"toString",toString$a)}},global$g=global$p,isCallable$b=isCallable$m,WeakMap$1=global$g.WeakMap,weakMapBasicDetection=isCallable$b(WeakMap$1)&&/native code/.test(String(WeakMap$1)),NATIVE_WEAK_MAP=weakMapBasicDetection,global$f=global$p,isObject$d=isObject$k,createNonEnumerableProperty$4=createNonEnumerableProperty$8,hasOwn$b=hasOwnProperty_1,shared$4=sharedStore,sharedKey$2=sharedKey$4,hiddenKeys$2=hiddenKeys$6,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$f.TypeError,WeakMap=global$f.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(e){return function(t){var r;if(!isObject$d(t)||(r=get(t)).type!==e)throw TypeError$4("Incompatible receiver, "+e+" required");return r}};if(NATIVE_WEAK_MAP||shared$4.state){var store=shared$4.state||(shared$4.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$4(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$b(e,STATE))throw TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$b(e,STATE)?e[STATE]:{}},has=function(e){return hasOwn$b(e,STATE)}}var internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},bind$f=functionBindContext,uncurryThis$m=functionUncurryThis,IndexedObject$1=indexedObject,toObject$8=toObject$b,lengthOfArrayLike$6=lengthOfArrayLike$a,arraySpeciesCreate$1=arraySpeciesCreate$3,push$b=uncurryThis$m([].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,p,u){for(var $,y,f=toObject$8(l),d=IndexedObject$1(f),h=bind$f(c,p),g=lengthOfArrayLike$6(d),m=0,_=u||arraySpeciesCreate$1,b=t?_(l,g):r||i?_(l,0):void 0;g>m;m++)if((s||m in d)&&(y=h($=d[m],m,f),e))if(t)b[m]=y;else if(y)switch(e){case 3:return!0;case 5:return $;case 6:return m;case 2:push$b(b,$)}else switch(e){case 4:return!1;case 7:push$b(b,$)}return a?-1:n||o?o:b}},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)},$$S=_export,global$e=global$p,call$e=functionCall,uncurryThis$l=functionUncurryThis,DESCRIPTORS$b=descriptors,NATIVE_SYMBOL$3=symbolConstructorDetection,fails$n=fails$y,hasOwn$a=hasOwnProperty_1,isPrototypeOf$h=objectIsPrototypeOf,anObject$a=anObject$e,toIndexedObject$5=toIndexedObject$b,toPropertyKey=toPropertyKey$4,$toString$1=toString$b,createPropertyDescriptor$4=createPropertyDescriptor$8,nativeObjectCreate=objectCreate,objectKeys$1=objectKeys$3,getOwnPropertyNamesModule$2=objectGetOwnPropertyNames,getOwnPropertyNamesExternal=objectGetOwnPropertyNamesExternal,getOwnPropertySymbolsModule$3=objectGetOwnPropertySymbols,getOwnPropertyDescriptorModule$2=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,definePropertiesModule=objectDefineProperties,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,defineBuiltIn$5=defineBuiltIn$7,defineBuiltInAccessor$2=defineBuiltInAccessor$3,shared$3=sharedExports,sharedKey$1=sharedKey$4,hiddenKeys$1=hiddenKeys$6,uid$1=uid$4,wellKnownSymbol$g=wellKnownSymbol$q,wrappedWellKnownSymbolModule=wellKnownSymbolWrapped,defineWellKnownSymbol$l=wellKnownSymbolDefine,defineSymbolToPrimitive$1=symbolDefineToPrimitive,setToStringTag$6=setToStringTag$7,InternalStateModule$4=internalState,$forEach$1=arrayIteration.forEach,HIDDEN=sharedKey$1("hidden"),SYMBOL="Symbol",PROTOTYPE="prototype",setInternalState$4=InternalStateModule$4.set,getInternalState$2=InternalStateModule$4.getterFor(SYMBOL),ObjectPrototype$2=Object[PROTOTYPE],$Symbol=global$e.Symbol,SymbolPrototype=$Symbol&&$Symbol[PROTOTYPE],TypeError$3=global$e.TypeError,QObject=global$e.QObject,nativeGetOwnPropertyDescriptor$1=getOwnPropertyDescriptorModule$2.f,nativeDefineProperty=definePropertyModule$1.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule$1.f,push$a=uncurryThis$l([].push),AllSymbols=shared$3("symbols"),ObjectPrototypeSymbols=shared$3("op-symbols"),WellKnownSymbolsStore$1=shared$3("wks"),USE_SETTER=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild,setSymbolDescriptor=DESCRIPTORS$b&&fails$n((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$4(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$a(e);var n=toPropertyKey(t);return anObject$a(r),hasOwn$a(AllSymbols,n)?(r.enumerable?(hasOwn$a(e,HIDDEN)&&e[HIDDEN][n]&&(e[HIDDEN][n]=!1),r=nativeObjectCreate(r,{enumerable:createPropertyDescriptor$4(0,!1)})):(hasOwn$a(e,HIDDEN)||nativeDefineProperty(e,HIDDEN,createPropertyDescriptor$4(1,{})),e[HIDDEN][n]=!0),setSymbolDescriptor(e,n,r)):nativeDefineProperty(e,n,r)},$defineProperties=function(e,t){anObject$a(e);var r=toIndexedObject$5(t),n=objectKeys$1(r).concat($getOwnPropertySymbols(r));return $forEach$1(n,(function(t){DESCRIPTORS$b&&!call$e($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$e(nativePropertyIsEnumerable,this,t);return!(this===ObjectPrototype$2&&hasOwn$a(AllSymbols,t)&&!hasOwn$a(ObjectPrototypeSymbols,t))&&(!(r||!hasOwn$a(this,t)||!hasOwn$a(AllSymbols,t)||hasOwn$a(this,HIDDEN)&&this[HIDDEN][t])||r)},$getOwnPropertyDescriptor=function(e,t){var r=toIndexedObject$5(e),n=toPropertyKey(t);if(r!==ObjectPrototype$2||!hasOwn$a(AllSymbols,n)||hasOwn$a(ObjectPrototypeSymbols,n)){var o=nativeGetOwnPropertyDescriptor$1(r,n);return!o||!hasOwn$a(AllSymbols,n)||hasOwn$a(r,HIDDEN)&&r[HIDDEN][n]||(o.enumerable=!0),o}},$getOwnPropertyNames=function(e){var t=nativeGetOwnPropertyNames(toIndexedObject$5(e)),r=[];return $forEach$1(t,(function(e){hasOwn$a(AllSymbols,e)||hasOwn$a(hiddenKeys$1,e)||push$a(r,e)})),r},$getOwnPropertySymbols=function(e){var t=e===ObjectPrototype$2,r=nativeGetOwnPropertyNames(t?ObjectPrototypeSymbols:toIndexedObject$5(e)),n=[];return $forEach$1(r,(function(e){!hasOwn$a(AllSymbols,e)||t&&!hasOwn$a(ObjectPrototype$2,e)||push$a(n,AllSymbols[e])})),n};NATIVE_SYMBOL$3||(defineBuiltIn$5(SymbolPrototype=($Symbol=function(){if(isPrototypeOf$h(SymbolPrototype,this))throw TypeError$3("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?$toString$1(arguments[0]):void 0,t=uid$1(e),r=function(e){this===ObjectPrototype$2&&call$e(r,ObjectPrototypeSymbols,e),hasOwn$a(this,HIDDEN)&&hasOwn$a(this[HIDDEN],t)&&(this[HIDDEN][t]=!1),setSymbolDescriptor(this,t,createPropertyDescriptor$4(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$5($Symbol,"withoutSetter",(function(e){return wrap(uid$1(e),e)})),propertyIsEnumerableModule$1.f=$propertyIsEnumerable,definePropertyModule$1.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$g(e),e)},DESCRIPTORS$b&&defineBuiltInAccessor$2(SymbolPrototype,"description",{configurable:!0,get:function(){return getInternalState$2(this).description}})),$$S({global:!0,constructor:!0,wrap:!0,forced:!NATIVE_SYMBOL$3,sham:!NATIVE_SYMBOL$3},{Symbol:$Symbol}),$forEach$1(objectKeys$1(WellKnownSymbolsStore$1),(function(e){defineWellKnownSymbol$l(e)})),$$S({target:SYMBOL,stat:!0,forced:!NATIVE_SYMBOL$3},{useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}}),$$S({target:"Object",stat:!0,forced:!NATIVE_SYMBOL$3,sham:!DESCRIPTORS$b},{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor}),$$S({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,$$R=_export,getBuiltIn$a=getBuiltIn$f,hasOwn$9=hasOwnProperty_1,toString$9=toString$b,shared$2=sharedExports,NATIVE_SYMBOL_REGISTRY$1=symbolRegistryDetection,StringToSymbolRegistry=shared$2("string-to-symbol-registry"),SymbolToStringRegistry$1=shared$2("symbol-to-string-registry");$$R({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY$1},{for:function(e){var t=toString$9(e);if(hasOwn$9(StringToSymbolRegistry,t))return StringToSymbolRegistry[t];var r=getBuiltIn$a("Symbol")(t);return StringToSymbolRegistry[t]=r,SymbolToStringRegistry$1[r]=t,r}});var $$Q=_export,hasOwn$8=hasOwnProperty_1,isSymbol$3=isSymbol$6,tryToString$4=tryToString$6,shared$1=sharedExports,NATIVE_SYMBOL_REGISTRY=symbolRegistryDetection,SymbolToStringRegistry=shared$1("symbol-to-string-registry");$$Q({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL_REGISTRY},{keyFor:function(e){if(!isSymbol$3(e))throw TypeError(tryToString$4(e)+" is not a symbol");if(hasOwn$8(SymbolToStringRegistry,e))return SymbolToStringRegistry[e]}});var uncurryThis$k=functionUncurryThis,arraySlice$5=uncurryThis$k([].slice),uncurryThis$j=functionUncurryThis,isArray$a=isArray$d,isCallable$a=isCallable$m,classof$7=classofRaw$2,toString$8=toString$b,push$9=uncurryThis$j([].push),getJsonReplacerFunction=function(e){if(isCallable$a(e))return e;if(isArray$a(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?push$9(r,o):"number"!=typeof o&&"Number"!=classof$7(o)&&"String"!=classof$7(o)||push$9(r,toString$8(o))}var a=r.length,i=!0;return function(e,t){if(i)return i=!1,t;if(isArray$a(this))return t;for(var n=0;n<a;n++)if(r[n]===e)return t}}},$$P=_export,getBuiltIn$9=getBuiltIn$f,apply$5=functionApply,call$d=functionCall,uncurryThis$i=functionUncurryThis,fails$m=fails$y,isCallable$9=isCallable$m,isSymbol$2=isSymbol$6,arraySlice$4=arraySlice$5,getReplacerFunction=getJsonReplacerFunction,NATIVE_SYMBOL$1=symbolConstructorDetection,$String$1=String,$stringify=getBuiltIn$9("JSON","stringify"),exec$1=uncurryThis$i(/./.exec),charAt$4=uncurryThis$i("".charAt),charCodeAt$1=uncurryThis$i("".charCodeAt),replace$3=uncurryThis$i("".replace),numberToString=uncurryThis$i(1..toString),tester=/[\uD800-\uDFFF]/g,low=/^[\uD800-\uDBFF]$/,hi=/^[\uDC00-\uDFFF]$/,WRONG_SYMBOLS_CONVERSION=!NATIVE_SYMBOL$1||fails$m((function(){var e=getBuiltIn$9("Symbol")();return"[null]"!=$stringify([e])||"{}"!=$stringify({a:e})||"{}"!=$stringify(Object(e))})),ILL_FORMED_UNICODE=fails$m((function(){return'"\\udf06\\ud834"'!==$stringify("\udf06\ud834")||'"\\udead"'!==$stringify("\udead")})),stringifyWithSymbolsFix=function(e,t){var r=arraySlice$4(arguments),n=getReplacerFunction(t);if(isCallable$9(n)||void 0!==e&&!isSymbol$2(e))return r[1]=function(e,t){if(isCallable$9(n)&&(t=call$d(n,this,$String$1(e),t)),!isSymbol$2(t))return t},apply$5($stringify,null,r)},fixIllFormed=function(e,t,r){var n=charAt$4(r,t-1),o=charAt$4(r,t+1);return exec$1(low,e)&&!exec$1(hi,o)||exec$1(hi,e)&&!exec$1(low,n)?"\\u"+numberToString(charCodeAt$1(e,0),16):e};$stringify&&$$P({target:"JSON",stat:!0,arity:3,forced:WRONG_SYMBOLS_CONVERSION||ILL_FORMED_UNICODE},{stringify:function(e,t,r){var n=arraySlice$4(arguments),o=apply$5(WRONG_SYMBOLS_CONVERSION?stringifyWithSymbolsFix:$stringify,null,n);return ILL_FORMED_UNICODE&&"string"==typeof o?replace$3(o,tester,fixIllFormed):o}});var $$O=_export,NATIVE_SYMBOL=symbolConstructorDetection,fails$l=fails$y,getOwnPropertySymbolsModule$2=objectGetOwnPropertySymbols,toObject$7=toObject$b,FORCED$7=!NATIVE_SYMBOL||fails$l((function(){getOwnPropertySymbolsModule$2.f(1)}));$$O({target:"Object",stat:!0,forced:FORCED$7},{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$8=getBuiltIn$f,defineWellKnownSymbol$9=wellKnownSymbolDefine,setToStringTag$5=setToStringTag$7;defineWellKnownSymbol$9("toStringTag"),setToStringTag$5(getBuiltIn$8("Symbol"),"Symbol");var defineWellKnownSymbol$8=wellKnownSymbolDefine;defineWellKnownSymbol$8("unscopables");var global$d=global$p,setToStringTag$4=setToStringTag$7;setToStringTag$4(global$d.JSON,"JSON",!0);var IteratorPrototype$1,PrototypeOfArrayIteratorPrototype,arrayIterator,path$p=path$t,symbol$5=path$p.Symbol,iterators={},DESCRIPTORS$a=descriptors,hasOwn$7=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$a&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$7(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$k=fails$y,correctPrototypeGetter=!fails$k((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hasOwn$6=hasOwnProperty_1,isCallable$8=isCallable$m,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$6(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$j=fails$y,isCallable$7=isCallable$m,isObject$c=isObject$k,create$c=objectCreate,getPrototypeOf$7=objectGetPrototypeOf,defineBuiltIn$4=defineBuiltIn$7,wellKnownSymbol$f=wellKnownSymbol$q,ITERATOR$8=wellKnownSymbol$f("iterator"),BUGGY_SAFARI_ITERATORS$1=!1;[].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$7(getPrototypeOf$7(arrayIterator)))!==Object.prototype&&(IteratorPrototype$1=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0);var NEW_ITERATOR_PROTOTYPE=!isObject$c(IteratorPrototype$1)||fails$j((function(){var e={};return IteratorPrototype$1[ITERATOR$8].call(e)!==e}));isCallable$7((IteratorPrototype$1=NEW_ITERATOR_PROTOTYPE?{}:create$c(IteratorPrototype$1))[ITERATOR$8])||defineBuiltIn$4(IteratorPrototype$1,ITERATOR$8,(function(){return this}));var iteratorsCore={IteratorPrototype:IteratorPrototype$1,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1},IteratorPrototype=iteratorsCore.IteratorPrototype,create$b=objectCreate,createPropertyDescriptor$3=createPropertyDescriptor$8,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$b(IteratorPrototype,{next:createPropertyDescriptor$3(+!n,r)}),setToStringTag$3(e,o,!1,!0),Iterators$5[o]=returnThis$1,e},uncurryThis$h=functionUncurryThis,aCallable$8=aCallable$b,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$h(aCallable$8(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isCallable$6=isCallable$m,$String=String,$TypeError$9=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$6(e))return e;throw $TypeError$9("Can't set "+$String(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$9=anObject$e,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=uncurryThisAccessor(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return anObject$9(r),aPossiblePrototype(n),t?e(r,n):r.__proto__=n,r}}():void 0),$$N=_export,call$c=functionCall,FunctionName=functionName,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf$6=objectGetPrototypeOf,setToStringTag$2=setToStringTag$7,defineBuiltIn$3=defineBuiltIn$7,wellKnownSymbol$e=wellKnownSymbol$q,Iterators$4=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName.PROPER;FunctionName.CONFIGURABLE,IteratorsCore.IteratorPrototype;var BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$7=wellKnownSymbol$e("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,a,i){createIteratorConstructor$1(r,t,n);var s,l,c,p=function(e){if(e===o&&d)return d;if(!BUGGY_SAFARI_ITERATORS&&e in y)return y[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}},u=t+" Iterator",$=!1,y=e.prototype,f=y[ITERATOR$7]||y["@@iterator"]||o&&y[o],d=!BUGGY_SAFARI_ITERATORS&&f||p(o),h="Array"==t&&y.entries||f;if(h&&(s=getPrototypeOf$6(h.call(new e)))!==Object.prototype&&s.next&&(setToStringTag$2(s,u,!0,!0),Iterators$4[u]=returnThis),PROPER_FUNCTION_NAME$1&&o==VALUES&&f&&f.name!==VALUES&&($=!0,d=function(){return call$c(f,this)}),o)if(l={values:p(VALUES),keys:a?d:p(KEYS),entries:p(ENTRIES)},i)for(c in l)(BUGGY_SAFARI_ITERATORS||$||!(c in y))&&defineBuiltIn$3(y,c,l[c]);else $$N({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||$},l);return i&&y[ITERATOR$7]!==d&&defineBuiltIn$3(y,ITERATOR$7,d,{name:o}),Iterators$4[t]=d,l},createIterResultObject$2=function(e,t){return{value:e,done:t}},toIndexedObject$4=toIndexedObject$b,Iterators$3=iterators,InternalStateModule$3=internalState;objectDefineProperty.f;var defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$2,ARRAY_ITERATOR="Array Iterator",setInternalState$3=InternalStateModule$3.set,getInternalState$1=InternalStateModule$3.getterFor(ARRAY_ITERATOR);defineIterator$1(Array,"Array",(function(e,t){setInternalState$3(this,{type:ARRAY_ITERATOR,target:toIndexedObject$4(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$1(void 0,!0)):createIterResultObject$1("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$1=domIterables,global$c=global$p,classof$6=classof$c,createNonEnumerableProperty$3=createNonEnumerableProperty$8,Iterators$2=iterators,wellKnownSymbol$d=wellKnownSymbol$q,TO_STRING_TAG$1=wellKnownSymbol$d("toStringTag");for(var COLLECTION_NAME in DOMIterables$1){var Collection=global$c[COLLECTION_NAME],CollectionPrototype=Collection&&Collection.prototype;CollectionPrototype&&classof$6(CollectionPrototype)!==TO_STRING_TAG$1&&createNonEnumerableProperty$3(CollectionPrototype,TO_STRING_TAG$1,COLLECTION_NAME),Iterators$2[COLLECTION_NAME]=Iterators$2.Array}var parent$1X=symbol$5,symbol$4=parent$1X,defineWellKnownSymbol$7=wellKnownSymbolDefine;defineWellKnownSymbol$7("dispose");var parent$1W=symbol$4,symbol$3=parent$1W,defineWellKnownSymbol$6=wellKnownSymbolDefine;defineWellKnownSymbol$6("asyncDispose");var $$M=_export,getBuiltIn$7=getBuiltIn$f,uncurryThis$g=functionUncurryThis,Symbol$4=getBuiltIn$7("Symbol"),keyFor2=Symbol$4.keyFor,thisSymbolValue$1=uncurryThis$g(Symbol$4.prototype.valueOf);$$M({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==keyFor2(thisSymbolValue$1(e))}catch(e){return!1}}});for(var $$L=_export,shared=sharedExports,getBuiltIn$6=getBuiltIn$f,uncurryThis$f=functionUncurryThis,isSymbol$1=isSymbol$6,wellKnownSymbol$c=wellKnownSymbol$q,Symbol$3=getBuiltIn$6("Symbol"),$isWellKnown=Symbol$3.isWellKnown,getOwnPropertyNames4=getBuiltIn$6("Object","getOwnPropertyNames"),thisSymbolValue=uncurryThis$f(Symbol$3.prototype.valueOf),WellKnownSymbolsStore=shared("wks"),i$1=0,symbolKeys=getOwnPropertyNames4(Symbol$3),symbolKeysLength=symbolKeys.length;i$1<symbolKeysLength;i$1++)try{var symbolKey=symbolKeys[i$1];isSymbol$1(Symbol$3[symbolKey])&&wellKnownSymbol$c(symbolKey)}catch(e){}$$L({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if($isWellKnown&&$isWellKnown(e))return!0;try{for(var t=thisSymbolValue(e),r=0,n=getOwnPropertyNames4(WellKnownSymbolsStore),o=n.length;r<o;r++)if(WellKnownSymbolsStore[n[r]]==t)return!0}catch(e){}return!1}});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$1V=symbol$3,symbol$2=parent$1V,symbol$1=symbol$2,_Symbol$1=getDefaultExportFromCjs(symbol$1),uncurryThis$e=functionUncurryThis,toIntegerOrInfinity$2=toIntegerOrInfinity$5,toString$7=toString$b,requireObjectCoercible$3=requireObjectCoercible$6,charAt$3=uncurryThis$e("".charAt),charCodeAt=uncurryThis$e("".charCodeAt),stringSlice$2=uncurryThis$e("".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$3(a,i):n:e?stringSlice$2(a,i,i+2):o-56320+(n-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt$2=stringMultibyte.charAt,toString$6=toString$b,InternalStateModule$2=internalState,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$2,STRING_ITERATOR="String Iterator",setInternalState$2=InternalStateModule$2.set,getInternalState=InternalStateModule$2.getterFor(STRING_ITERATOR);defineIterator(String,"String",(function(e){setInternalState$2(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(void 0,!0):(e=charAt$2(r,n),t.index+=e.length,createIterResultObject(e,!1))}));var WrappedWellKnownSymbolModule$1=wellKnownSymbolWrapped,iterator$4=WrappedWellKnownSymbolModule$1.f("iterator"),parent$1U=iterator$4,iterator$3=parent$1U,parent$1T=iterator$3,iterator$2=parent$1T,parent$1S=iterator$2,iterator$1=parent$1S,iterator=iterator$1,_Symbol$iterator=getDefaultExportFromCjs(iterator);function _typeof(e){return(_typeof="function"==typeof _Symbol$1&&"symbol"==typeof _Symbol$iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof _Symbol$1&&e.constructor===_Symbol$1&&e!==_Symbol$1.prototype?"symbol":typeof e})(e)}var defineProperty$9={exports:{}},$$K=_export,DESCRIPTORS$9=descriptors,defineProperty$8=objectDefineProperty.f;$$K({target:"Object",stat:!0,forced:Object.defineProperty!==defineProperty$8,sham:!DESCRIPTORS$9},{defineProperty:defineProperty$8});var path$o=path$t,Object$4=path$o.Object,defineProperty$7=defineProperty$9.exports=function(e,t,r){return Object$4.defineProperty(e,t,r)};Object$4.defineProperty.sham&&(defineProperty$7.sham=!0);var definePropertyExports=defineProperty$9.exports,parent$1R=definePropertyExports,defineProperty$6=parent$1R,parent$1Q=defineProperty$6,defineProperty$5=parent$1Q,parent$1P=defineProperty$5,defineProperty$4=parent$1P,defineProperty$3=defineProperty$4,_Object$defineProperty$1=getDefaultExportFromCjs(defineProperty$3),$$J=_export,DESCRIPTORS$8=descriptors,create$a=objectCreate;$$J({target:"Object",stat:!0,sham:!DESCRIPTORS$8},{create:create$a});var path$n=path$t,Object$3=path$n.Object,create$9=function(e,t){return Object$3.create(e,t)},parent$1O=create$9,create$8=parent$1O,parent$1N=create$8,create$7=parent$1N,parent$1M=create$7,create$6=parent$1M,create$5=create$6,_Object$create$1=getDefaultExportFromCjs(create$5),$$I=_export,fails$i=fails$y,toObject$5=toObject$b,nativeGetPrototypeOf=objectGetPrototypeOf,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,FAILS_ON_PRIMITIVES$3=fails$i((function(){nativeGetPrototypeOf(1)}));$$I({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$3,sham:!CORRECT_PROTOTYPE_GETTER},{getPrototypeOf:function(e){return nativeGetPrototypeOf(toObject$5(e))}});var path$m=path$t,getPrototypeOf$5=path$m.Object.getPrototypeOf,parent$1L=getPrototypeOf$5,getPrototypeOf$4=parent$1L,parent$1K=getPrototypeOf$4,getPrototypeOf$3=parent$1K,parent$1J=getPrototypeOf$3,getPrototypeOf$2=parent$1J,getPrototypeOf$1=getPrototypeOf$2,_Object$getPrototypeOf=getDefaultExportFromCjs(getPrototypeOf$1),fails$h=fails$y,arrayMethodIsStrict$3=function(e,t){var r=[][e];return!!r&&fails$h((function(){r.call(null,t||function(){return 1},1)}))},$forEach=arrayIteration.forEach,arrayMethodIsStrict$2=arrayMethodIsStrict$3,STRICT_METHOD$1=arrayMethodIsStrict$2("forEach"),arrayForEach=STRICT_METHOD$1?[].forEach:function(e){return $forEach(this,e,arguments.length>1?arguments[1]:void 0)},$$H=_export,forEach$7=arrayForEach;$$H({target:"Array",proto:!0,forced:[].forEach!=arrayForEach},{forEach:arrayForEach});var path$l=path$t,entryVirtual$f=function(e){return path$l[e+"Prototype"]},entryVirtual$e=entryVirtual$f,forEach$6=entryVirtual$e("Array").forEach,parent$1I=forEach$6,forEach$5=parent$1I,classof$5=classof$c,hasOwn$5=hasOwnProperty_1,isPrototypeOf$g=objectIsPrototypeOf,method$c=forEach$5,ArrayPrototype$b=Array.prototype,DOMIterables={DOMTokenList:!0,NodeList:!0},forEach$4=function(e){var t=e.forEach;return e===ArrayPrototype$b||isPrototypeOf$g(ArrayPrototype$b,e)&&t===ArrayPrototype$b.forEach||hasOwn$5(DOMIterables,classof$5(e))?method$c:t},parent$1H=forEach$4,forEach$3=parent$1H,parent$1G=forEach$3,forEach$2=parent$1G,forEach$1=forEach$2,_forEachInstanceProperty$1=getDefaultExportFromCjs(forEach$1),DESCRIPTORS$7=descriptors,isArray$9=isArray$d,$TypeError$8=TypeError,getOwnPropertyDescriptor$9=Object.getOwnPropertyDescriptor,SILENT_ON_NON_WRITABLE_LENGTH_SET=DESCRIPTORS$7&&!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$9(e)&&!getOwnPropertyDescriptor$9(e,"length").writable)throw $TypeError$8("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},$$G=_export,toObject$4=toObject$b,lengthOfArrayLike$5=lengthOfArrayLike$a,setArrayLength$1=arraySetLength,doesNotExceedSafeInteger$1=doesNotExceedSafeInteger$3,fails$g=fails$y,INCORRECT_TO_LENGTH=fails$g((function(){return 4294967297!==[].push.call({length:4294967296},1)})),properErrorOnNonWritableLength=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},FORCED$6=INCORRECT_TO_LENGTH||!properErrorOnNonWritableLength();$$G({target:"Array",proto:!0,arity:1,forced:FORCED$6},{push:function(e){var t=toObject$4(this),r=lengthOfArrayLike$5(t),n=arguments.length;doesNotExceedSafeInteger$1(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return setArrayLength$1(t,r),r}});var entryVirtual$d=entryVirtual$f,push$8=entryVirtual$d("Array").push,isPrototypeOf$f=objectIsPrototypeOf,method$b=push$8,ArrayPrototype$a=Array.prototype,push$7=function(e){var t=e.push;return e===ArrayPrototype$a||isPrototypeOf$f(ArrayPrototype$a,e)&&t===ArrayPrototype$a.push?method$b:t},parent$1F=push$7,push$6=parent$1F,parent$1E=push$6,push$5=parent$1E,parent$1D=push$5,push$4=parent$1D,push$3=push$4,_pushInstanceProperty=getDefaultExportFromCjs(push$3),$$F=_export,setPrototypeOf$6=objectSetPrototypeOf;$$F({target:"Object",stat:!0},{setPrototypeOf:setPrototypeOf$6});var path$k=path$t,setPrototypeOf$5=path$k.Object.setPrototypeOf,parent$1C=setPrototypeOf$5,setPrototypeOf$4=parent$1C,parent$1B=setPrototypeOf$4,setPrototypeOf$3=parent$1B,parent$1A=setPrototypeOf$3,setPrototypeOf$2=parent$1A,setPrototypeOf$1=setPrototypeOf$2,_Object$setPrototypeOf=getDefaultExportFromCjs(setPrototypeOf$1),getBuiltIn$5=getBuiltIn$f,uncurryThis$d=functionUncurryThis,getOwnPropertyNamesModule$1=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$8=anObject$e,concat$9=uncurryThis$d([].concat),ownKeys$4=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule$1.f(anObject$8(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$9(t,r(e)):t},hasOwn$4=hasOwnProperty_1,ownKeys$3=ownKeys$4,getOwnPropertyDescriptorModule$1=objectGetOwnPropertyDescriptor,definePropertyModule=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var n=ownKeys$3(t),o=definePropertyModule.f,a=getOwnPropertyDescriptorModule$1.f,i=0;i<n.length;i++){var s=n[i];hasOwn$4(e,s)||r&&hasOwn$4(r,s)||o(e,s,a(t,s))}},isObject$b=isObject$k,createNonEnumerableProperty$2=createNonEnumerableProperty$8,installErrorCause$1=function(e,t){isObject$b(t)&&"cause"in t&&createNonEnumerableProperty$2(e,"cause",t.cause)},uncurryThis$c=functionUncurryThis,$Error$1=Error,replace$2=uncurryThis$c("".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$2(e,V8_OR_CHAKRA_STACK_ENTRY,"");return e},fails$f=fails$y,createPropertyDescriptor$2=createPropertyDescriptor$8,errorStackInstallable=!fails$f((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",createPropertyDescriptor$2(1,7)),7!==e.stack)})),createNonEnumerableProperty$1=createNonEnumerableProperty$8,clearErrorStack=errorStackClear,ERROR_STACK_INSTALLABLE=errorStackInstallable,captureStackTrace=Error.captureStackTrace,errorStackInstall=function(e,t,r,n){ERROR_STACK_INSTALLABLE&&(captureStackTrace?captureStackTrace(e,t):createNonEnumerableProperty$1(e,"stack",clearErrorStack(r,n)))},wellKnownSymbol$b=wellKnownSymbol$q,Iterators$1=iterators,ITERATOR$6=wellKnownSymbol$b("iterator"),ArrayPrototype$9=Array.prototype,isArrayIteratorMethod$2=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype$9[ITERATOR$6]===e)},classof$4=classof$c,getMethod$1=getMethod$3,isNullOrUndefined$1=isNullOrUndefined$4,Iterators=iterators,wellKnownSymbol$a=wellKnownSymbol$q,ITERATOR$5=wellKnownSymbol$a("iterator"),getIteratorMethod$a=function(e){if(!isNullOrUndefined$1(e))return getMethod$1(e,ITERATOR$5)||getMethod$1(e,"@@iterator")||Iterators[classof$4(e)]},call$b=functionCall,aCallable$7=aCallable$b,anObject$7=anObject$e,tryToString$3=tryToString$6,getIteratorMethod$9=getIteratorMethod$a,$TypeError$7=TypeError,getIterator$3=function(e,t){var r=arguments.length<2?getIteratorMethod$9(e):t;if(aCallable$7(r))return anObject$7(call$b(r,e));throw $TypeError$7(tryToString$3(e)+" is not iterable")},call$a=functionCall,anObject$6=anObject$e,getMethod=getMethod$3,iteratorClose$2=function(e,t,r){var n,o;anObject$6(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw r;return r}n=call$a(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return anObject$6(n),r},bind$e=functionBindContext,call$9=functionCall,anObject$5=anObject$e,tryToString$2=tryToString$6,isArrayIteratorMethod$1=isArrayIteratorMethod$2,lengthOfArrayLike$4=lengthOfArrayLike$a,isPrototypeOf$e=objectIsPrototypeOf,getIterator$2=getIterator$3,getIteratorMethod$8=getIteratorMethod$a,iteratorClose$1=iteratorClose$2,$TypeError$6=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$5=function(e,t,r){var n,o,a,i,s,l,c,p=r&&r.that,u=!(!r||!r.AS_ENTRIES),$=!(!r||!r.IS_RECORD),y=!(!r||!r.IS_ITERATOR),f=!(!r||!r.INTERRUPTED),d=bind$e(t,p),h=function(e){return n&&iteratorClose$1(n,"normal",e),new Result(!0,e)},g=function(e){return u?(anObject$5(e),f?d(e[0],e[1],h):d(e[0],e[1])):f?d(e,h):d(e)};if($)n=e.iterator;else if(y)n=e;else{if(!(o=getIteratorMethod$8(e)))throw $TypeError$6(tryToString$2(e)+" is not iterable");if(isArrayIteratorMethod$1(o)){for(a=0,i=lengthOfArrayLike$4(e);i>a;a++)if((s=g(e[a]))&&isPrototypeOf$e(ResultPrototype,s))return s;return new Result(!1)}n=getIterator$2(e,o)}for(l=$?e.next:n.next;!(c=call$9(l,n)).done;){try{s=g(c.value)}catch(e){iteratorClose$1(n,"throw",e)}if("object"==typeof s&&s&&isPrototypeOf$e(ResultPrototype,s))return s}return new Result(!1)},toString$5=toString$b,normalizeStringArgument$1=function(e,t){return void 0===e?arguments.length<2?"":t:toString$5(e)},$$E=_export,isPrototypeOf$d=objectIsPrototypeOf,getPrototypeOf2=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,copyConstructorProperties=copyConstructorProperties$1,create$4=objectCreate,createNonEnumerableProperty=createNonEnumerableProperty$8,createPropertyDescriptor$1=createPropertyDescriptor$8,installErrorCause=installErrorCause$1,installErrorStack=errorStackInstall,iterate$4=iterate$5,normalizeStringArgument=normalizeStringArgument$1,wellKnownSymbol$9=wellKnownSymbol$q,TO_STRING_TAG=wellKnownSymbol$9("toStringTag"),$Error=Error,push$2=[].push,$AggregateError=function(e,t){var r,n=isPrototypeOf$d(AggregateErrorPrototype,this);setPrototypeOf?r=setPrototypeOf($Error(),n?getPrototypeOf2(this):AggregateErrorPrototype):(r=n?this:create$4(AggregateErrorPrototype),createNonEnumerableProperty(r,TO_STRING_TAG,"Error")),void 0!==t&&createNonEnumerableProperty(r,"message",normalizeStringArgument(t)),installErrorStack(r,$AggregateError,r.stack,1),arguments.length>2&&installErrorCause(r,arguments[2]);var o=[];return iterate$4(e,push$2,{that:o}),createNonEnumerableProperty(r,"errors",o),r};setPrototypeOf?setPrototypeOf($AggregateError,$Error):copyConstructorProperties($AggregateError,$Error,{name:!0});var AggregateErrorPrototype=$AggregateError.prototype=create$4($Error.prototype,{constructor:createPropertyDescriptor$1(1,$AggregateError),message:createPropertyDescriptor$1(1,""),name:createPropertyDescriptor$1(1,"AggregateError")});$$E({global:!0,constructor:!0,arity:2},{AggregateError:$AggregateError});var $location,defer,channel,port,classof$3=classofRaw$2,engineIsNode="undefined"!=typeof process&&"process"==classof$3(process),getBuiltIn$4=getBuiltIn$f,defineBuiltInAccessor$1=defineBuiltInAccessor$3,wellKnownSymbol$8=wellKnownSymbol$q,DESCRIPTORS$6=descriptors,SPECIES$3=wellKnownSymbol$8("species"),setSpecies$1=function(e){var t=getBuiltIn$4(e);DESCRIPTORS$6&&t&&!t[SPECIES$3]&&defineBuiltInAccessor$1(t,SPECIES$3,{configurable:!0,get:function(){return this}})},isPrototypeOf$c=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$2=function(e,t){if(isPrototypeOf$c(t,e))return e;throw $TypeError$5("Incorrect invocation")},isConstructor$2=isConstructor$4,tryToString$1=tryToString$6,$TypeError$4=TypeError,aConstructor$2=function(e){if(isConstructor$2(e))return e;throw $TypeError$4(tryToString$1(e)+" is not a constructor")},anObject$4=anObject$e,aConstructor$1=aConstructor$2,isNullOrUndefined=isNullOrUndefined$4,wellKnownSymbol$7=wellKnownSymbol$q,SPECIES$2=wellKnownSymbol$7("species"),speciesConstructor$2=function(e,t){var r,n=anObject$4(e).constructor;return void 0===n||isNullOrUndefined(r=anObject$4(n)[SPECIES$2])?t:aConstructor$1(r)},$TypeError$3=TypeError,validateArgumentsLength$3=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$b=global$p,apply$4=functionApply,bind$d=functionBindContext,isCallable$5=isCallable$m,hasOwn$3=hasOwnProperty_1,fails$e=fails$y,html=html$2,arraySlice$3=arraySlice$5,createElement=documentCreateElement$1,validateArgumentsLength$2=validateArgumentsLength$3,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$b.setImmediate,clear=global$b.clearImmediate,process$3=global$b.process,Dispatch=global$b.Dispatch,Function$2=global$b.Function,MessageChannel=global$b.MessageChannel,String$1=global$b.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange";fails$e((function(){$location=global$b.location}));var run=function(e){if(hasOwn$3(queue$2,e)){var t=queue$2[e];delete queue$2[e],t()}},runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$b.postMessage(String$1(e),$location.protocol+"//"+$location.host)};set&&clear||(set=function(e){validateArgumentsLength$2(arguments.length,1);var t=isCallable$5(e)?e:Function$2(e),r=arraySlice$3(arguments,1);return queue$2[++counter]=function(){apply$4(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.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=eventListener,defer=bind$d(port.postMessage,port)):global$b.addEventListener&&isCallable$5(global$b.postMessage)&&!global$b.importScripts&&$location&&"file:"!==$location.protocol&&!fails$e(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$b.addEventListener("message",eventListener,!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 task$1={set:set,clear:clear},Queue$2=function(){this.head=null,this.tail=null};Queue$2.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var notify$1,toggle,node,promise$6,then,queue$1=Queue$2,userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$a=global$p,bind$c=functionBindContext,getOwnPropertyDescriptor$8=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$a.MutationObserver||global$a.WebKitMutationObserver,document$2=global$a.document,process$2=global$a.process,Promise$1=global$a.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor$8(global$a,"queueMicrotask"),microtask$1=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value;if(!microtask$1){var queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&¬ify$1(),e}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$c(promise$6.then,promise$6),notify$1=function(){then(flush)}):IS_NODE$2?notify$1=function(){process$2.nextTick(flush)}:(macrotask=bind$c(macrotask,global$a),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}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}}var microtask_1=microtask$1,hostReportErrors$1=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$6=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$9=global$p,promiseNativeConstructor=global$9.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$8=global$p,NativePromiseConstructor$5=promiseNativeConstructor,isCallable$4=isCallable$m,isForced=isForced_1,inspectSource=inspectSource$2,wellKnownSymbol$6=wellKnownSymbol$q,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,NativePromisePrototype$2=NativePromiseConstructor$5&&NativePromiseConstructor$5.prototype,SPECIES$1=wellKnownSymbol$6("species"),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$4(global$8.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$6=aCallable$b,$TypeError$2=TypeError,PromiseCapability=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw $TypeError$2("Bad Promise constructor");t=e,r=n})),this.resolve=aCallable$6(t),this.reject=aCallable$6(r)};newPromiseCapability$2.f=function(e){return new PromiseCapability(e)};var $$D=_export,IS_NODE=engineIsNode,global$7=global$p,call$8=functionCall,defineBuiltIn$2=defineBuiltIn$7,setToStringTag$1=setToStringTag$7,setSpecies=setSpecies$1,aCallable$5=aCallable$b,isCallable$3=isCallable$m,isObject$a=isObject$k,anInstance$1=anInstance$2,speciesConstructor$1=speciesConstructor$2,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$5=perform$6,Queue=queue$1,InternalStateModule$1=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$1.getterFor(PROMISE),setInternalState$1=InternalStateModule$1.set,NativePromisePrototype$1=NativePromiseConstructor$4&&NativePromiseConstructor$4.prototype,PromiseConstructor=NativePromiseConstructor$4,PromisePrototype=NativePromisePrototype$1,TypeError$2=global$7.TypeError,document$1=global$7.document,process$1=global$7.process,newPromiseCapability$1=newPromiseCapabilityModule$6.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$7.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$a(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,p=e.domain;try{s?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=a:(p&&p.enter(),r=s(a),p&&(p.exit(),o=!0)),r===e.promise?c(TypeError$2("Promise-chain cycle")):(n=isThenable(r))?call$8(n,r,l,c):l(r)):c(a)}catch(e){p&&!o&&p.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$7.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(o=global$7["on"+e])?o(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(e){call$8(task,global$7,(function(){var t,r=e.facade,n=e.value;if(isUnhandled(e)&&(t=perform$5((function(){IS_NODE?process$1.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$8(task,global$7,(function(){var t=e.facade;IS_NODE?process$1.emit("rejectionHandled",t):dispatchEvent(REJECTION_HANDLED,t,e.value)}))},bind$b=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$2("Promise can't be resolved itself");var n=isThenable(t);n?microtask((function(){var r={done:!1};try{call$8(n,t,bind$b(internalResolve,r,e),bind$b(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$1(this,PromisePrototype),aCallable$5(e),call$8(Internal,this);var t=getInternalPromiseState(this);try{e(bind$b(internalResolve,t),bind$b(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState$1(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$2(PromisePrototype,"then",(function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor$1(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$3(e)||e,n.fail=isCallable$3(t)&&t,n.domain=IS_NODE?process$1.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$b(internalResolve,t),this.reject=bind$b(internalReject,t)},newPromiseCapabilityModule$6.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)}),$$D({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag$1(PromiseConstructor,PROMISE,!1,!0),setSpecies(PROMISE);var wellKnownSymbol$5=wellKnownSymbol$q,ITERATOR$4=wellKnownSymbol$5("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR$4]=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$4]=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(){}))})),$$C=_export,call$7=functionCall,aCallable$4=aCallable$b,newPromiseCapabilityModule$5=newPromiseCapability$2,perform$4=perform$6,iterate$3=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$3=promiseStaticsIncorrectIteration;$$C({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$3},{all:function(e){var t=this,r=newPromiseCapabilityModule$5.f(t),n=r.resolve,o=r.reject,a=perform$4((function(){var r=aCallable$4(t.resolve),a=[],i=0,s=1;iterate$3(e,(function(e){var l=i++,c=!1;s++,call$7(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 $$B=_export,FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor$2=promiseNativeConstructor;promiseNativeConstructor&&promiseNativeConstructor.prototype,$$B({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}});var $$A=_export,call$6=functionCall,aCallable$3=aCallable$b,newPromiseCapabilityModule$4=newPromiseCapability$2,perform$3=perform$6,iterate$2=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$2=promiseStaticsIncorrectIteration;$$A({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$2},{race:function(e){var t=this,r=newPromiseCapabilityModule$4.f(t),n=r.reject,o=perform$3((function(){var o=aCallable$3(t.resolve);iterate$2(e,(function(e){call$6(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var $$z=_export,call$5=functionCall,newPromiseCapabilityModule$3=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR;$$z({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule$3.f(this);return call$5(t.reject,void 0,e),t.promise}});var anObject$3=anObject$e,isObject$9=isObject$k,newPromiseCapability=newPromiseCapability$2,promiseResolve$2=function(e,t){if(anObject$3(e),isObject$9(t)&&t.constructor===e)return t;var r=newPromiseCapability.f(e);return(0,r.resolve)(t),r.promise},$$y=_export,getBuiltIn$3=getBuiltIn$f,IS_PURE$1=isPure,NativePromiseConstructor$1=promiseNativeConstructor,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve$1=promiseResolve$2,PromiseConstructorWrapper=getBuiltIn$3("Promise"),CHECK_WRAPPER=!FORCED_PROMISE_CONSTRUCTOR;$$y({target:"Promise",stat:!0,forced:IS_PURE$1},{resolve:function(e){return promiseResolve$1(CHECK_WRAPPER&&this===PromiseConstructorWrapper?NativePromiseConstructor$1:this,e)}});var $$x=_export,call$4=functionCall,aCallable$2=aCallable$b,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$2=perform$6,iterate$1=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration;$$x({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION$1},{allSettled:function(e){var t=this,r=newPromiseCapabilityModule$2.f(t),n=r.resolve,o=r.reject,a=perform$2((function(){var r=aCallable$2(t.resolve),o=[],a=0,i=1;iterate$1(e,(function(e){var s=a++,l=!1;i++,call$4(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 $$w=_export,call$3=functionCall,aCallable$1=aCallable$b,getBuiltIn$2=getBuiltIn$f,newPromiseCapabilityModule$1=newPromiseCapability$2,perform$1=perform$6,iterate=iterate$5,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,PROMISE_ANY_ERROR="No one promise resolved";$$w({target:"Promise",stat:!0,forced:PROMISE_STATICS_INCORRECT_ITERATION},{any:function(e){var t=this,r=getBuiltIn$2("AggregateError"),n=newPromiseCapabilityModule$1.f(t),o=n.resolve,a=n.reject,i=perform$1((function(){var n=aCallable$1(t.resolve),i=[],s=0,l=1,c=!1;iterate(e,(function(e){var p=s++,u=!1;l++,call$3(n,t,e).then((function(e){u||c||(c=!0,o(e))}),(function(e){u||c||(u=!0,i[p]=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 $$v=_export,NativePromiseConstructor=promiseNativeConstructor,fails$d=fails$y,getBuiltIn$1=getBuiltIn$f,isCallable$2=isCallable$m,speciesConstructor=speciesConstructor$2,promiseResolve=promiseResolve$2,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,NON_GENERIC=!!NativePromiseConstructor&&fails$d((function(){NativePromisePrototype.finally.call({then:function(){}},(function(){}))}));$$v({target:"Promise",proto:!0,real:!0,forced:NON_GENERIC},{finally:function(e){var t=speciesConstructor(this,getBuiltIn$1("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$j=path$t,promise$5=path$j.Promise,parent$1z=promise$5,promise$4=parent$1z,parent$1y=promise$4,promise$3=parent$1y,$$u=_export,newPromiseCapabilityModule=newPromiseCapability$2,perform=perform$6;$$u({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$1x=promise$3,promise$2=parent$1x,promise$1=promise$2,_Promise$1=getDefaultExportFromCjs(promise$1),$$t=_export,uncurryThis$b=functionUncurryThis,isArray$8=isArray$d,nativeReverse=uncurryThis$b([].reverse),test=[1,2];$$t({target:"Array",proto:!0,forced:String(test)===String(test.reverse())},{reverse:function(){return isArray$8(this)&&(this.length=this.length),nativeReverse(this)}});var entryVirtual$c=entryVirtual$f,reverse$5=entryVirtual$c("Array").reverse,isPrototypeOf$b=objectIsPrototypeOf,method$a=reverse$5,ArrayPrototype$8=Array.prototype,reverse$4=function(e){var t=e.reverse;return e===ArrayPrototype$8||isPrototypeOf$b(ArrayPrototype$8,e)&&t===ArrayPrototype$8.reverse?method$a:t},parent$1w=reverse$4,reverse$3=parent$1w,parent$1v=reverse$3,reverse$2=parent$1v,parent$1u=reverse$2,reverse$1=parent$1u,reverse2=reverse$1,_reverseInstanceProperty=getDefaultExportFromCjs(reverse2),$$s=_export,isArray$7=isArray$d,isConstructor$1=isConstructor$4,isObject$8=isObject$k,toAbsoluteIndex$1=toAbsoluteIndex$4,lengthOfArrayLike$3=lengthOfArrayLike$a,toIndexedObject$3=toIndexedObject$b,createProperty$3=createProperty$6,wellKnownSymbol$4=wellKnownSymbol$q,arrayMethodHasSpeciesSupport$3=arrayMethodHasSpeciesSupport$5,nativeSlice=arraySlice$5,HAS_SPECIES_SUPPORT$3=arrayMethodHasSpeciesSupport$3("slice"),SPECIES=wellKnownSymbol$4("species"),$Array$1=Array,max$1=Math.max;$$s({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$3},{slice:function(e,t){var r,n,o,a=toIndexedObject$3(this),i=lengthOfArrayLike$3(a),s=toAbsoluteIndex$1(e,i),l=toAbsoluteIndex$1(void 0===t?i:t,i);if(isArray$7(a)&&(r=a.constructor,(isConstructor$1(r)&&(r===$Array$1||isArray$7(r.prototype))||isObject$8(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$b=entryVirtual$f,slice$6=entryVirtual$b("Array").slice,isPrototypeOf$a=objectIsPrototypeOf,method$9=slice$6,ArrayPrototype$7=Array.prototype,slice$5=function(e){var t=e.slice;return e===ArrayPrototype$7||isPrototypeOf$a(ArrayPrototype$7,e)&&t===ArrayPrototype$7.slice?method$9:t},parent$1t=slice$5,slice$4=parent$1t,parent$1s=slice$4,slice$3=parent$1s,parent$1r=slice$3,slice$2=parent$1r,slice$1=slice$2,_sliceInstanceProperty$1=getDefaultExportFromCjs(slice$1);function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=_Object$defineProperty$1||function(e,t,r){e[t]=r.value},o="function"==typeof _Symbol$1?_Symbol$1:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return _Object$defineProperty$1(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 $?t:$,i=_Object$create$1(a.prototype),s=new P(o||[]);return n(i,"_invoke",{value:b(e,r,s)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function $(){}function y(){}function f(){}var d={};l(d,a,(function(){return this}));var h=_Object$getPrototypeOf&&_Object$getPrototypeOf(_Object$getPrototypeOf(I([])));h&&h!==t&&r.call(h,a)&&(d=h);var g=f.prototype=$.prototype=_Object$create$1(d);function m(e){var t;_forEachInstanceProperty$1(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,a,i,s){var l=p(e[n],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==_typeof(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){o("next",e,i,s)}),(function(e){o("throw",e,i,s)})):t.resolve(u).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 b(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=S(i,r);if(s){if(s===u)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=p(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function S(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,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),u;var o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,u;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,u):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function v(e){var t,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),_pushInstanceProperty(t=this.tryEntries).call(t,r)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],_forEachInstanceProperty$1(e).call(e,v,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:E}}function E(){return{value:void 0,done:!0}}return y.prototype=f,n(g,"constructor",{value:f,configurable:!0}),n(f,"constructor",{value:y,configurable:!0}),y.displayName=l(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return _Object$setPrototypeOf?_Object$setPrototypeOf(e,f):(e.__proto__=f,l(e,s,"GeneratorFunction")),e.prototype=_Object$create$1(g),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,i,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,a){void 0===a&&(a=_Promise$1);var i=new _(c(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},m(g),l(g,s,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)_pushInstanceProperty(r).call(r,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,P.prototype={constructor:P,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$1(t=this.tryEntries).call(t,O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+_sliceInstanceProperty$1(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,u):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),u},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),u}},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),u}},e}var $$r=_export,toObject$3=toObject$b,nativeKeys=objectKeys$3,fails$c=fails$y,FAILS_ON_PRIMITIVES$2=fails$c((function(){nativeKeys(1)}));$$r({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES$2},{keys:function(e){return nativeKeys(toObject$3(e))}});var path$i=path$t,keys$5=path$i.Object.keys,parent$1q=keys$5,keys$4=parent$1q,parent$1p=keys$4,keys$3=parent$1p,parent$1o=keys$3,keys$2=parent$1o,keys$1=keys$2,_Object$keys$1=getDefaultExportFromCjs(keys$1),path$h=path$t,getOwnPropertySymbols$5=path$h.Object.getOwnPropertySymbols,parent$1n=getOwnPropertySymbols$5,getOwnPropertySymbols$4=parent$1n,parent$1m=getOwnPropertySymbols$4,getOwnPropertySymbols$3=parent$1m,parent$1l=getOwnPropertySymbols$3,getOwnPropertySymbols$2=parent$1l,getOwnPropertySymbols$1=getOwnPropertySymbols$2,_Object$getOwnPropertySymbols$1=getDefaultExportFromCjs(getOwnPropertySymbols$1),$$q=_export,$filter=arrayIteration.filter,arrayMethodHasSpeciesSupport$2=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$2=arrayMethodHasSpeciesSupport$2("filter");$$q({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$9=objectIsPrototypeOf,method$8=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$8:t},parent$1k=filter$5,filter$4=parent$1k,parent$1j=filter$4,filter$3=parent$1j,parent$1i=filter$3,filter$2=parent$1i,filter$1=filter$2,_filterInstanceProperty$1=getDefaultExportFromCjs(filter$1),getOwnPropertyDescriptor$7={exports:{}},$$p=_export,fails$b=fails$y,toIndexedObject$2=toIndexedObject$b,nativeGetOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,DESCRIPTORS$5=descriptors,FORCED$5=!DESCRIPTORS$5||fails$b((function(){nativeGetOwnPropertyDescriptor(1)}));$$p({target:"Object",stat:!0,forced:FORCED$5,sham:!DESCRIPTORS$5},{getOwnPropertyDescriptor:function(e,t){return nativeGetOwnPropertyDescriptor(toIndexedObject$2(e),t)}});var path$g=path$t,Object$2=path$g.Object,getOwnPropertyDescriptor$6=getOwnPropertyDescriptor$7.exports=function(e,t){return Object$2.getOwnPropertyDescriptor(e,t)};Object$2.getOwnPropertyDescriptor.sham&&(getOwnPropertyDescriptor$6.sham=!0);var getOwnPropertyDescriptorExports=getOwnPropertyDescriptor$7.exports,parent$1h=getOwnPropertyDescriptorExports,getOwnPropertyDescriptor$5=parent$1h,parent$1g=getOwnPropertyDescriptor$5,getOwnPropertyDescriptor$4=parent$1g,parent$1f=getOwnPropertyDescriptor$4,getOwnPropertyDescriptor$3=parent$1f,getOwnPropertyDescriptor$2=getOwnPropertyDescriptor$3,_Object$getOwnPropertyDescriptor$1=getDefaultExportFromCjs(getOwnPropertyDescriptor$2),$$o=_export,DESCRIPTORS$4=descriptors,ownKeys$2=ownKeys$4,toIndexedObject$1=toIndexedObject$b,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,createProperty$2=createProperty$6;$$o({target:"Object",stat:!0,sham:!DESCRIPTORS$4},{getOwnPropertyDescriptors:function(e){for(var t,r,n=toIndexedObject$1(e),o=getOwnPropertyDescriptorModule.f,a=ownKeys$2(n),i={},s=0;a.length>s;)void 0!==(r=o(n,t=a[s++]))&&createProperty$2(i,t,r);return i}});var path$f=path$t,getOwnPropertyDescriptors$5=path$f.Object.getOwnPropertyDescriptors,parent$1e=getOwnPropertyDescriptors$5,getOwnPropertyDescriptors$4=parent$1e,parent$1d=getOwnPropertyDescriptors$4,getOwnPropertyDescriptors$3=parent$1d,parent$1c=getOwnPropertyDescriptors$3,getOwnPropertyDescriptors$2=parent$1c,getOwnPropertyDescriptors$1=getOwnPropertyDescriptors$2,_Object$getOwnPropertyDescriptors$1=getDefaultExportFromCjs(getOwnPropertyDescriptors$1),defineProperties$7={exports:{}},$$n=_export,DESCRIPTORS$3=descriptors,defineProperties$6=objectDefineProperties.f;$$n({target:"Object",stat:!0,forced:Object.defineProperties!==defineProperties$6,sham:!DESCRIPTORS$3},{defineProperties:defineProperties$6});var path$e=path$t,Object$1=path$e.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$1b=definePropertiesExports,defineProperties$4=parent$1b,parent$1a=defineProperties$4,defineProperties$3=parent$1a,parent$19=defineProperties$3,defineProperties$2=parent$19,defineProperties$1=defineProperties$2,_Object$defineProperties$1=getDefaultExportFromCjs(defineProperties$1),WrappedWellKnownSymbolModule=wellKnownSymbolWrapped,toPrimitive$4=WrappedWellKnownSymbolModule.f("toPrimitive"),parent$18=toPrimitive$4,toPrimitive$3=parent$18,parent$17=toPrimitive$3,toPrimitive$2=parent$17,parent$16=toPrimitive$2,toPrimitive$1=parent$16,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 _defineProperty$1(e,t,r){return(t=_toPropertyKey(t))in e?_Object$defineProperty$1(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys$1(e,t){var r=_Object$keys$1(e);if(_Object$getOwnPropertySymbols$1){var n=_Object$getOwnPropertySymbols$1(e);t&&(n=_filterInstanceProperty$1(n).call(n,(function(t){return _Object$getOwnPropertyDescriptor$1(e,t).enumerable}))),_pushInstanceProperty(r).apply(r,n)}return r}function _objectSpread2$1(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?_forEachInstanceProperty$1(r=ownKeys$1(Object(o),!0)).call(r,(function(t){_defineProperty$1(e,t,o[t])})):_Object$getOwnPropertyDescriptors$1?_Object$defineProperties$1(e,_Object$getOwnPropertyDescriptors$1(o)):_forEachInstanceProperty$1(n=ownKeys$1(Object(o))).call(n,(function(t){_Object$defineProperty$1(e,t,_Object$getOwnPropertyDescriptor$1(o,t))}))}return 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$1.resolve(l).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new _Promise$1((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")}function _defineProperties$1(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$1(e,_toPropertyKey(n.key),n)}}function _createClass$1(e,t,r){return t&&_defineProperties$1(e.prototype,t),r&&_defineProperties$1(e,r),_Object$defineProperty$1(e,"prototype",{writable:!1}),e}var uncurryThis$a=functionUncurryThis,aCallable=aCallable$b,isObject$7=isObject$k,hasOwn$2=hasOwnProperty_1,arraySlice$2=arraySlice$5,NATIVE_BIND=functionBindNative,$Function=Function,concat$8=uncurryThis$a([].concat),join$1=uncurryThis$a([].join),factories={},construct$5=function(e,t,r){if(!hasOwn$2(factories,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";factories[t]=$Function("C,a","return new C("+join$1(n,",")+")")}return factories[t](e,r)},functionBind=NATIVE_BIND?$Function.bind:function(e){var t=aCallable(this),r=t.prototype,n=arraySlice$2(arguments,1),o=function(){var r=concat$8(n,arraySlice$2(arguments));return this instanceof o?construct$5(t,r.length,r):t.apply(e,r)};return isObject$7(r)&&(o.prototype=r),o},$$m=_export,bind$a=functionBind;$$m({target:"Function",proto:!0,forced:Function.bind!==bind$a},{bind:bind$a});var entryVirtual$9=entryVirtual$f,bind$9=entryVirtual$9("Function").bind,isPrototypeOf$8=objectIsPrototypeOf,method$7=bind$9,FunctionPrototype=Function.prototype,bind$8=function(e){var t=e.bind;return e===FunctionPrototype||isPrototypeOf$8(FunctionPrototype,e)&&t===FunctionPrototype.bind?method$7:t},parent$15=bind$8,bind$7=parent$15,parent$14=bind$7,bind$6=parent$14,parent$13=bind$6,bind$5=parent$13,bind$4=bind$5,_bindInstanceProperty$1=getDefaultExportFromCjs(bind$4);function _setPrototypeOf(e,t){var r;return(_setPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty$1(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$1(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),_Object$defineProperty$1(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}var $$l=_export,getBuiltIn=getBuiltIn$f,apply$3=functionApply,bind$3=functionBind,aConstructor=aConstructor$2,anObject$2=anObject$e,isObject$6=isObject$k,create$3=objectCreate,fails$a=fails$y,nativeConstruct=getBuiltIn("Reflect","construct"),ObjectPrototype=Object.prototype,push$1=[].push,NEW_TARGET_BUG=fails$a((function(){function e(){}return!(nativeConstruct((function(){}),[],e)instanceof e)})),ARGS_BUG=!fails$a((function(){nativeConstruct((function(){}))})),FORCED$4=NEW_TARGET_BUG||ARGS_BUG;$$l({target:"Reflect",stat:!0,forced:FORCED$4,sham:FORCED$4},{construct:function(e,t){aConstructor(e),anObject$2(t);var r=arguments.length<3?e:aConstructor(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$3(push$1,n,t),new(apply$3(bind$3,e,n))}var o=r.prototype,a=create$3(isObject$6(o)?o:ObjectPrototype),i=apply$3(e,a,t);return isObject$6(i)?i:a}});var path$d=path$t,construct$4=path$d.Reflect.construct,parent$12=construct$4,construct$3=parent$12,parent$11=construct$3,construct$2=parent$11,parent$10=construct$2,construct$1=parent$10,construct2=construct$1,_Reflect$construct=getDefaultExportFromCjs(construct2);function _getPrototypeOf(e){var t;return(_getPrototypeOf=_Object$setPrototypeOf?_bindInstanceProperty$1(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 _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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)}}var $$k=_export,isArray$6=isArray$d;$$k({target:"Array",stat:!0},{isArray:isArray$6});var path$c=path$t,isArray$5=path$c.Array.isArray,parent$$=isArray$5,isArray$4=parent$$,parent$_=isArray$4,isArray$3=parent$_,parent$Z=isArray$3,isArray$2=parent$Z,isArray$1=isArray$2,_Array$isArray$1=getDefaultExportFromCjs(isArray$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 _arrayWithoutHoles(e){if(_Array$isArray$1(e))return _arrayLikeToArray(e)}var getIteratorMethod$7=getIteratorMethod$a,getIteratorMethod_1=getIteratorMethod$7,parent$Y=getIteratorMethod_1,getIteratorMethod$6=parent$Y,parent$X=getIteratorMethod$6,getIteratorMethod$5=parent$X,parent$W=getIteratorMethod$5,getIteratorMethod$4=parent$W,getIteratorMethod$3=getIteratorMethod$4,_getIteratorMethod$1=getDefaultExportFromCjs(getIteratorMethod$3),anObject$1=anObject$e,iteratorClose=iteratorClose$2,callWithSafeIterationClosing$1=function(e,t,r,n){try{return n?t(anObject$1(r)[0],r[1]):t(r)}catch(t){iteratorClose(e,"throw",t)}},bind$2=functionBindContext,call$2=functionCall,toObject$2=toObject$b,callWithSafeIterationClosing=callWithSafeIterationClosing$1,isArrayIteratorMethod=isArrayIteratorMethod$2,isConstructor3=isConstructor$4,lengthOfArrayLike$2=lengthOfArrayLike$a,createProperty$1=createProperty$6,getIterator$1=getIterator$3,getIteratorMethod$2=getIteratorMethod$a,$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$2(o,n>2?arguments[2]:void 0));var i,s,l,c,p,u,$=getIteratorMethod$2(t),y=0;if(!$||this===$Array&&isArrayIteratorMethod($))for(i=lengthOfArrayLike$2(t),s=r?new this(i):$Array(i);i>y;y++)u=a?o(t[y],y):t[y],createProperty$1(s,y,u);else for(p=(c=getIterator$1(t,$)).next,s=r?new this:[];!(l=call$2(p,c)).done;y++)u=a?callWithSafeIterationClosing(c,o,[l.value,y],!0):l.value,createProperty$1(s,y,u);return s.length=y,s},$$j=_export,from$5=arrayFrom,checkCorrectnessOfIteration=checkCorrectnessOfIteration$2,INCORRECT_ITERATION=!checkCorrectnessOfIteration((function(e){Array.from(e)}));$$j({target:"Array",stat:!0,forced:INCORRECT_ITERATION},{from:from$5});var path$b=path$t,from$4=path$b.Array.from,parent$V=from$4,from$3=parent$V,parent$U=from$3,from$2=parent$U,parent$T=from$2,from$1=parent$T,from2=from$1,_Array$from=getDefaultExportFromCjs(from2);function _iterableToArray(e){if(void 0!==_Symbol$1&&null!=_getIteratorMethod$1(e)||null!=e["@@iterator"])return _Array$from(e)}function _unsupportedIterableToArray(e,t){var r;if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=_sliceInstanceProperty$1(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}}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 entryVirtual$8=entryVirtual$f,concat$7=entryVirtual$8("Array").concat,isPrototypeOf$7=objectIsPrototypeOf,method$6=concat$7,ArrayPrototype$5=Array.prototype,concat$6=function(e){var t=e.concat;return e===ArrayPrototype$5||isPrototypeOf$7(ArrayPrototype$5,e)&&t===ArrayPrototype$5.concat?method$6:t},parent$S=concat$6,concat$5=parent$S,parent$R=concat$5,concat$4=parent$R,parent$Q=concat$4,concat$3=parent$Q,concat$2=concat$3,concat$1=concat$2,_concatInstanceProperty=getDefaultExportFromCjs(concat$1),error=window.VePlayer.error,VeError=error.VeError,LiveErrorCode=function(e){return e[e.INVALID_PARAMETER=210]="INVALID_PARAMETER",e}(LiveErrorCode||{});error.Level;var ErrorCode=_objectSpread2$1(_objectSpread2$1({},LiveErrorCode),error.ErrorCode),ERRORS=_objectSpread2$1(_objectSpread2$1({},error.ERROR_INFO),{},_defineProperty$1({},210,{messageTextKey:"INVALID_PARAMETER",level:error.Level.Fatal}));function create$2(e,t){return new VeError(ERRORS[e],t)}function _arrayWithHoles(e){if(_Array$isArray$1(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:void 0!==_Symbol$1&&_getIteratorMethod$1(e)||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(_pushInstanceProperty(s).call(s,n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}var $$i=_export,uncurryThis$9=functionUncurryThisClause,$indexOf=arrayIncludes.indexOf,arrayMethodIsStrict$1=arrayMethodIsStrict$3,nativeIndexOf=uncurryThis$9([].indexOf),NEGATIVE_ZERO$1=!!nativeIndexOf&&1/nativeIndexOf([1],1,-0)<0,FORCED$3=NEGATIVE_ZERO$1||!arrayMethodIsStrict$1("indexOf");$$i({target:"Array",proto:!0,forced:FORCED$3},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return NEGATIVE_ZERO$1?nativeIndexOf(this,e,t)||0:$indexOf(this,e,t)}});var entryVirtual$7=entryVirtual$f,indexOf$6=entryVirtual$7("Array").indexOf,isPrototypeOf$6=objectIsPrototypeOf,method$5=indexOf$6,ArrayPrototype$4=Array.prototype,indexOf$5=function(e){var t=e.indexOf;return e===ArrayPrototype$4||isPrototypeOf$6(ArrayPrototype$4,e)&&t===ArrayPrototype$4.indexOf?method$5:t},parent$P=indexOf$5,indexOf$4=parent$P,parent$O=indexOf$4,indexOf$3=parent$O,parent$N=indexOf$3,indexOf$2=parent$N,indexOf$1=indexOf$2,_indexOfInstanceProperty$1=getDefaultExportFromCjs(indexOf$1);function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=_Object$keys$1(e);for(n=0;n<a.length;n++)r=a[n],_indexOfInstanceProperty$1(t).call(t,r)>=0||(o[r]=e[r]);return o}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(_Object$getOwnPropertySymbols$1){var a=_Object$getOwnPropertySymbols$1(e);for(n=0;n<a.length;n++)r=a[n],_indexOfInstanceProperty$1(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var promise=promise$1,_Promise=getDefaultExportFromCjs(promise),_excluded=["fallbackUrl"],strategy$1=window.VePlayer.strategy,util$3=window.VePlayer.util,DynamicModule$1=window.VePlayer.DynamicModule,load$1=window.VePlayer.load,Codec$1=window.VePlayer.Codec,Sniffer$2=window.VePlayer.Sniffer,rtmStrategy={options:{},module:DynamicModule$1.PluginRtm},getRtmStrategy=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o,a,i,s,l,c,p,u,$;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.rtm||{},i=a.fallbackUrl,s=_objectWithoutProperties(a,_excluded),"flv"===(l=i&&util$3.getStreamType(i))&&util$3.isMseSupported(Codec$1.H264)?o=strategy$1.createFlvMseStrategy(t):"hls"===l&&("mobile"!==Sniffer$2.device||null!=t&&null!==(r=t.hls)&&void 0!==r&&r.enableMSE)&&util$3.isMseSupported(Codec$1.H264)&&(o=strategy$1.createHlsMseStrategy(t)),e.next=5,_Promise.all([load$1(rtmStrategy.module).catch((function(){})),o&&load$1(o.module).catch((function(){}))]);case 5:return c=e.sent,p=_slicedToArray(c,2),u=p[0],$=p[1],e.abrupt("return",{options:_objectSpread2$1(_objectSpread2$1({},(null===(n=o)||void 0===n?void 0:n.options)||{}),{},{rts:_objectSpread2$1(_objectSpread2$1({retryCount:0},s),{},{backupURL:i,backupConstruct:$})}),plugins:u?[u]:[]});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),RTMCodec=function(e){return e.H264="h264",e}(RTMCodec||{}),isRTMSupported=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,load$1(DynamicModule$1.PluginRtm);case 2:return t=e.sent,e.abrupt("return",t.isSupported());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),isRTMSupportCodec=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n=arguments;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:"h264",e.next=3,load$1(DynamicModule$1.PluginRtm);case 3:if(r=e.sent,"h264"!==t){e.next=6;break}return e.abrupt("return",r.isSupportedH264());case 6:return e.abrupt("return",!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),util$2=window.VePlayer.util,strategy=window.VePlayer.strategy,getTypeStrategy=function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=t.url?util$2.getStreamType(t.url):"")&&"unknown"!==r){e.next=3;break}return e.abrupt("return",{options:{},plugins:[]});case 3:if("rtm"!==r){e.next=7;break}return e.next=6,getRtmStrategy(t);case 6:case 10:case 14:return e.abrupt("return",e.sent);case 7:if("flv"!==r){e.next=11;break}return e.next=10,strategy.getFlvStrategy(t);case 11:if("hls"!==r){e.next=15;break}return e.next=14,strategy.getHlsStrategy(t);case 15:return e.abrupt("return",{options:{},plugins:[]});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),bind$1=bind$4,_bindInstanceProperty=getDefaultExportFromCjs(bind$1),whitespaces$4="\t\n\v\f\r \u2028\u2029\ufeff",uncurryThis$8=functionUncurryThis,requireObjectCoercible$2=requireObjectCoercible$6,toString$4=toString$b,whitespaces$3=whitespaces$4,replace$1=uncurryThis$8("".replace),ltrim=RegExp("^["+whitespaces$3+"]+"),rtrim=RegExp("(^|[^"+whitespaces$3+"])["+whitespaces$3+"]+$"),createMethod=function(e){return function(t){var r=toString$4(requireObjectCoercible$2(t));return 1&e&&(r=replace$1(r,ltrim,"")),2&e&&(r=replace$1(r,rtrim,"$1")),r}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},global$6=global$p,fails$9=fails$y,uncurryThis$7=functionUncurryThis,toString$3=toString$b,trim$8=stringTrim.trim,whitespaces$2=whitespaces$4,$parseInt$1=global$6.parseInt,Symbol$2=global$6.Symbol,ITERATOR$3=Symbol$2&&Symbol$2.iterator,hex=/^[+-]?0x/i,exec=uncurryThis$7(hex.exec),FORCED$2=8!==$parseInt$1(whitespaces$2+"08")||22!==$parseInt$1(whitespaces$2+"0x16")||ITERATOR$3&&!fails$9((function(){$parseInt$1(Object(ITERATOR$3))})),numberParseInt=FORCED$2?function(e,t){var r=trim$8(toString$3(e));return $parseInt$1(r,t>>>0||(exec(hex,r)?16:10))}:$parseInt$1,$$h=_export,$parseInt=numberParseInt;$$h({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt});var path$a=path$t,_parseInt$c=path$a.parseInt,parent$M=_parseInt$c,_parseInt$b=parent$M,parent$L=_parseInt$b,_parseInt$a=parent$L,parent$K=_parseInt$a,_parseInt$9=parent$K,_parseInt$8=_parseInt$9,_parseInt$6=_parseInt$8,_parseInt$7=getDefaultExportFromCjs(_parseInt$6),engineIsBun="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,global$5=global$p,apply$2=functionApply,isCallable$1=isCallable$m,ENGINE_IS_BUN=engineIsBun,USER_AGENT=engineUserAgent,arraySlice$1=arraySlice$5,validateArgumentsLength$1=validateArgumentsLength$3,Function$1=global$5.Function,WRAP=/MSIE .\./.test(USER_AGENT)||ENGINE_IS_BUN&&function(){var e=global$5.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}(),schedulersFix$2=function(e,t){var r=t?2:1;return WRAP?function(n,o){var a=validateArgumentsLength$1(arguments.length,1)>r,i=isCallable$1(n)?n:Function$1(n),s=a?arraySlice$1(arguments,r):[],l=a?function(){apply$2(i,this,s)}:i;return t?e(l,o):e(l)}:e},$$g=_export,global$4=global$p,schedulersFix$1=schedulersFix$2,setInterval$5=schedulersFix$1(global$4.setInterval,!0);$$g({global:!0,bind:!0,forced:global$4.setInterval!==setInterval$5},{setInterval:setInterval$5});var $$f=_export,global$3=global$p,schedulersFix=schedulersFix$2,setTimeout$6=schedulersFix(global$3.setTimeout,!0);$$f({global:!0,bind:!0,forced:global$3.setTimeout!==setTimeout$6},{setTimeout:setTimeout$6});var path$9=path$t,setTimeout$5=path$9.setTimeout,parent$J=setTimeout$5,setTimeout$4=parent$J,parent$I=setTimeout$4,setTimeout$3=parent$I,setTimeout$2=setTimeout$3,setTimeout$1=setTimeout$2,_setTimeout=getDefaultExportFromCjs(setTimeout$1),slice2=slice$1,_sliceInstanceProperty=getDefaultExportFromCjs(slice2),FUNC_ERROR_TEXT="Expected a function",NAN=NaN,symbolTag="[object Symbol]",reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=_parseInt$7,freeGlobal="object"==_typeof(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,freeSelf="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),objectProto=Object.prototype,objectToString=objectProto.toString,nativeMax=Math.max,nativeMin=Math.min,now$6=function(){return root.Date.now()};function debounce(e,t,r){var n,o,a,i,s,l,c=0,p=!1,u=!1,$=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function y(t){var r=n,a=o;return n=o=void 0,c=t,i=e.apply(a,r)}function f(e){var r=e-l;return void 0===l||r>=t||r<0||u&&e-c>=a}function d(){var e=now$6();if(f(e))return h(e);s=_setTimeout(d,function(e){var r=t-(e-l);return u?nativeMin(r,a-(e-c)):r}(e))}function h(e){return s=void 0,$&&n?y(e):(n=o=void 0,i)}function g(){var e=now$6(),r=f(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return c=e,s=_setTimeout(d,t),p?y(e):i}(l);if(u)return s=_setTimeout(d,t),y(l)}return void 0===s&&(s=_setTimeout(d,t)),i}return t=toNumber(t)||0,isObject$5(r)&&(p=!!r.leading,a=(u="maxWait"in r)?nativeMax(toNumber(r.maxWait)||0,t):a,$="trailing"in r?!!r.trailing:$),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},g.flush=function(){return void 0===s?i:h(now$6())},g}function isObject$5(e){var t=_typeof(e);return!!e&&("object"==t||"function"==t)}function isObjectLike(e){return!!e&&"object"==_typeof(e)}function isSymbol(e){return"symbol"==_typeof(e)||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$5(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$5(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(reTrim,"");var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(_sliceInstanceProperty(e).call(e,2),r?2:8):reIsBadHex.test(e)?NAN:+e}var lodash_debounce=debounce,debounce$1=getDefaultExportFromCjs(lodash_debounce),event=window.VePlayer.event,Events=_objectSpread2$1(_objectSpread2$1({},event.Events),{},{TIME_SHIFT_CHANGE:"time_shift_change",REFRESH_CLICK:"refresh_click"});function RefreshIcon(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 2.488a7.48 7.48 0 00-4.154 1.253.908.908 0 101.005 1.512 5.695 5.695 0 018.844 4.746h-.908a.33.33 0 00-.264.528l1.816 2.422a.33.33 0 00.529 0l1.815-2.422A.33.33 0 0018.42 10h-.908A7.511 7.511 0 0010 2.49zM2.489 10a7.511 7.511 0 0011.665 6.26.908.908 0 00-1.005-1.513A5.695 5.695 0 014.305 10h.908a.33.33 0 00.264-.528L3.66 7.05a.33.33 0 00-.528 0L1.317 9.47a.33.33 0 00.264.53h.908z" fill="#fff"/></svg>',"image/svg+xml").firstChild}var refresh="",Plugin$3=window.VePlayer.Plugin,Sniffer$1=window.VePlayer.Sniffer,XGEvents=window.VePlayer.XGEvents,POSITIONS$1=Plugin$3.POSITIONS,Refresh=function(e){_inherits(r,Plugin$3);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass$1(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:RefreshIcon,class:"xgplayer-refresh-svg"}}}},{key:"destroy",value:function(){this.unbind(["touchend","click"],this._handleRefresh)}},{key:"render",value:function(){var e=this.player.config.i18nManager;return'\n <xg-icon class="veplayer-refresh">\n <div class="xgplayer-icon">\n </div>\n <div class="xg-tips" lang-key="refresh">'.concat(e.getText("REFRESH"),"</div>\n </xg-icon>\n ")}},{key:"_handleRefresh",value:function(e){var t=this.player;if(t){var r;if(e.preventDefault(),e.stopPropagation(),t.addClass("xgplayer-is-enter"),t.pause(),t)t.emit(Events.REFRESH_CLICK),null===(r=this.player)||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.veplayer)||void 0===r||r.retry();t.once(XGEvents.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=debounce$1(_bindInstanceProperty(e=this._handleRefresh).call(e,this),200);var t="mobile"===Sniffer$1.device?"touchend":"click";_bindInstanceProperty(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:POSITIONS$1.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(),defineProperty$2=defineProperty$3,_Object$defineProperty=getDefaultExportFromCjs(defineProperty$2),keys3=keys$1,_Object$keys=getDefaultExportFromCjs(keys3),getOwnPropertySymbols2=getOwnPropertySymbols$1,_Object$getOwnPropertySymbols=getDefaultExportFromCjs(getOwnPropertySymbols2),filter2=filter$1,_filterInstanceProperty=getDefaultExportFromCjs(filter2),getOwnPropertyDescriptor$1=getOwnPropertyDescriptor$2,_Object$getOwnPropertyDescriptor=getDefaultExportFromCjs(getOwnPropertyDescriptor$1),forEach2=forEach$1,_forEachInstanceProperty=getDefaultExportFromCjs(forEach2),getOwnPropertyDescriptors2=getOwnPropertyDescriptors$1,_Object$getOwnPropertyDescriptors=getDefaultExportFromCjs(getOwnPropertyDescriptors2),defineProperties4=defineProperties$1,_Object$defineProperties=getDefaultExportFromCjs(defineProperties4),indexOf2=indexOf$1,_indexOfInstanceProperty=getDefaultExportFromCjs(indexOf2),$$e=_export,uncurryThis$6=functionUncurryThis,$Date=Date,thisTimeValue=uncurryThis$6($Date.prototype.getTime);$$e({target:"Date",stat:!0},{now:function(){return thisTimeValue(new $Date)}});var path$8=path$t,now$5=path$8.Date.now,parent$H=now$5,now$4=parent$H,parent$G=now$4,now$3=parent$G,parent$F=now$3,now$2=parent$F,now$1=now$2,now3=now$1,_Date$now=getDefaultExportFromCjs(now3),fails$8=fails$y,wellKnownSymbol$3=wellKnownSymbol$q,DESCRIPTORS$2=descriptors,IS_PURE=isPure,ITERATOR$2=wellKnownSymbol$3("iterator"),urlConstructorDetection=!fails$8((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),IS_PURE&&!e.toJSON||!t.size&&(IS_PURE||!DESCRIPTORS$2)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[ITERATOR$2]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),defineBuiltIn$1=defineBuiltIn$7,defineBuiltIns$1=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:defineBuiltIn$1(e,n,t[n],r);return e},arraySlice=arraySliceSimple,floor=Math.floor,mergeSort=function(e,t){var r=e.length,n=floor(r/2);return r<8?insertionSort(e,t):merge(e,mergeSort(arraySlice(e,0,n),t),mergeSort(arraySlice(e,n),t),t)},insertionSort=function(e,t){for(var r,n,o=e.length,a=1;a<o;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},merge=function(e,t,r,n){for(var o=t.length,a=r.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?n(t[i],r[s])<=0?t[i++]:r[s++]:i<o?t[i++]:r[s++];return e},arraySort$1=mergeSort,$$d=_export,global$2=global$p,call$1=functionCall,uncurryThis$5=functionUncurryThis,DESCRIPTORS$1=descriptors,USE_NATIVE_URL=urlConstructorDetection,defineBuiltIn=defineBuiltIn$7,defineBuiltInAccessor=defineBuiltInAccessor$3,defineBuiltIns=defineBuiltIns$1,setToStringTag=setToStringTag$7,createIteratorConstructor=iteratorCreateConstructor,InternalStateModule=internalState,anInstance=anInstance$2,isCallable=isCallable$m,hasOwn$1=hasOwnProperty_1,bind2=functionBindContext,classof$2=classof$c,anObject=anObject$e,isObject$4=isObject$k,$toString=toString$b,create$1=objectCreate,createPropertyDescriptor=createPropertyDescriptor$8,getIterator=getIterator$3,getIteratorMethod$1=getIteratorMethod$a,validateArgumentsLength=validateArgumentsLength$3,wellKnownSymbol$2=wellKnownSymbol$q,arraySort=arraySort$1,ITERATOR$1=wellKnownSymbol$2("iterator"),URL_SEARCH_PARAMS="URLSearchParams",URL_SEARCH_PARAMS_ITERATOR=URL_SEARCH_PARAMS+"Iterator",setInternalState=InternalStateModule.set,getInternalParamsState=InternalStateModule.getterFor(URL_SEARCH_PARAMS),getInternalIteratorState=InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR),getOwnPropertyDescriptor5=Object.getOwnPropertyDescriptor,safeGetBuiltIn=function(e){if(!DESCRIPTORS$1)return global$2[e];var t=getOwnPropertyDescriptor5(global$2,e);return t&&t.value},nativeFetch=safeGetBuiltIn("fetch"),NativeRequest=safeGetBuiltIn("Request"),Headers=safeGetBuiltIn("Headers"),RequestPrototype=NativeRequest&&NativeRequest.prototype,HeadersPrototype=Headers&&Headers.prototype,RegExp$1=global$2.RegExp,TypeError$1=global$2.TypeError,decodeURIComponent$1=global$2.decodeURIComponent,encodeURIComponent$1=global$2.encodeURIComponent,charAt$1=uncurryThis$5("".charAt),join=uncurryThis$5([].join),push2=uncurryThis$5([].push),replace=uncurryThis$5("".replace),shift=uncurryThis$5([].shift),splice$7=uncurryThis$5([].splice),split=uncurryThis$5("".split),stringSlice$1=uncurryThis$5("".slice),plus=/\+/g,sequences=Array(4),percentSequence=function(e){return sequences[e-1]||(sequences[e-1]=RegExp$1("((?:%[\\da-f]{2}){"+e+"})","gi"))},percentDecode=function(e){try{return decodeURIComponent$1(e)}catch(t){return e}},deserialize=function(e){var t=replace(e,plus," "),r=4;try{return decodeURIComponent$1(t)}catch(e){for(;r;)t=replace(t,percentSequence(r--),percentDecode);return t}},find=/[!'()~]|%20/g,replacements={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(e){return replacements[e]},serialize=function(e){return replace(encodeURIComponent$1(e),find,replacer)},URLSearchParamsIterator=createIteratorConstructor((function(e,t){setInternalState(this,{type:URL_SEARCH_PARAMS_ITERATOR,iterator:getIterator(getInternalParamsState(e).entries),kind:t})}),"Iterator",(function(){var e=getInternalIteratorState(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),URLSearchParamsState=function(e){this.entries=[],this.url=null,void 0!==e&&(isObject$4(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===charAt$1(e,0)?stringSlice$1(e,1):e:$toString(e)))};URLSearchParamsState.prototype={type:URL_SEARCH_PARAMS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,a,i,s,l=getIteratorMethod$1(e);if(l)for(r=(t=getIterator(e,l)).next;!(n=call$1(r,t)).done;){if(a=(o=getIterator(anObject(n.value))).next,(i=call$1(a,o)).done||(s=call$1(a,o)).done||!call$1(a,o).done)throw TypeError$1("Expected sequence with length 2");push2(this.entries,{key:$toString(i.value),value:$toString(s.value)})}else for(var c in e)hasOwn$1(e,c)&&push2(this.entries,{key:c,value:$toString(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=split(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=split(t,"="),push2(this.entries,{key:deserialize(shift(r)),value:deserialize(join(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],push2(r,serialize(e.key)+"="+serialize(e.value));return join(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var URLSearchParamsConstructor=function(){anInstance(this,URLSearchParamsPrototype);var e=setInternalState(this,new URLSearchParamsState(arguments.length>0?arguments[0]:void 0));DESCRIPTORS$1||(this.length=e.entries.length)},URLSearchParamsPrototype=URLSearchParamsConstructor.prototype;if(defineBuiltIns(URLSearchParamsPrototype,{append:function(e,t){validateArgumentsLength(arguments.length,2);var r=getInternalParamsState(this);push2(r.entries,{key:$toString(e),value:$toString(t)}),DESCRIPTORS$1||this.length++,r.updateURL()},delete:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this),r=t.entries,n=$toString(e),o=0;o<r.length;)r[o].key===n?splice$7(r,o,1):o++;DESCRIPTORS$1||(this.length=r.length),t.updateURL()},get:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),n=[],o=0;o<t.length;o++)t[o].key===r&&push2(n,t[o].value);return n},has:function(e){validateArgumentsLength(arguments.length,1);for(var t=getInternalParamsState(this).entries,r=$toString(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){validateArgumentsLength(arguments.length,1);for(var r,n=getInternalParamsState(this),o=n.entries,a=!1,i=$toString(e),s=$toString(t),l=0;l<o.length;l++)(r=o[l]).key===i&&(a?splice$7(o,l--,1):(a=!0,r.value=s));a||push2(o,{key:i,value:s}),DESCRIPTORS$1||(this.length=o.length),n.updateURL()},sort:function(){var e=getInternalParamsState(this);arraySort(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=getInternalParamsState(this).entries,n=bind2(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0}),defineBuiltIn(URLSearchParamsPrototype,ITERATOR$1,URLSearchParamsPrototype.entries,{name:"entries"}),defineBuiltIn(URLSearchParamsPrototype,"toString",(function(){return getInternalParamsState(this).serialize()}),{enumerable:!0}),DESCRIPTORS$1&&defineBuiltInAccessor(URLSearchParamsPrototype,"size",{get:function(){return getInternalParamsState(this).entries.length},configurable:!0,enumerable:!0}),setToStringTag(URLSearchParamsConstructor,URL_SEARCH_PARAMS),$$d({global:!0,constructor:!0,forced:!USE_NATIVE_URL},{URLSearchParams:URLSearchParamsConstructor}),!USE_NATIVE_URL&&isCallable(Headers)){var headersHas=uncurryThis$5(HeadersPrototype.has),headersSet=uncurryThis$5(HeadersPrototype.set),wrapRequestOptions=function(e){if(isObject$4(e)){var t,r=e.body;if(classof$2(r)===URL_SEARCH_PARAMS)return t=e.headers?new Headers(e.headers):new Headers,headersHas(t,"content-type")||headersSet(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),create$1(e,{body:createPropertyDescriptor(0,$toString(r)),headers:createPropertyDescriptor(0,t)})}return e};if(isCallable(nativeFetch)&&$$d({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nativeFetch(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})}}),isCallable(NativeRequest)){var RequestConstructor=function(e){return anInstance(this,RequestPrototype),new NativeRequest(e,arguments.length>1?wrapRequestOptions(arguments[1]):{})};RequestPrototype.constructor=RequestConstructor,RequestConstructor.prototype=RequestPrototype,$$d({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:RequestConstructor})}}var path$7=path$t,urlSearchParams$5=path$7.URLSearchParams,parent$E=urlSearchParams$5,urlSearchParams$4=parent$E,parent$D=urlSearchParams$4,urlSearchParams$3=parent$D,parent$C=urlSearchParams$3,urlSearchParams$2=parent$C,urlSearchParams$1=urlSearchParams$2,urlSearchParams=urlSearchParams$1,_URLSearchParams=getDefaultExportFromCjs(urlSearchParams),isObject$3=isObject$k,classof$1=classofRaw$2,wellKnownSymbol$1=wellKnownSymbol$q,MATCH$1=wellKnownSymbol$1("match"),isRegexp=function(e){var t;return isObject$3(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$1(e))},isRegExp=isRegexp,$TypeError$1=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError$1("The method doesn't accept regular expressions");return e},wellKnownSymbol=wellKnownSymbol$q,MATCH=wellKnownSymbol("match"),correctIsRegexpLogic=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[MATCH]=!1,"/./"[e](t)}catch(e){}}return!1},$$c=_export,uncurryThis$4=functionUncurryThisClause,toLength=toLength$2,toString$2=toString$b,notARegExp$1=notARegexp,requireObjectCoercible$1=requireObjectCoercible$6,correctIsRegExpLogic$1=correctIsRegexpLogic,nativeStartsWith=uncurryThis$4("".startsWith),stringSlice=uncurryThis$4("".slice),min$2=Math.min,CORRECT_IS_REGEXP_LOGIC=correctIsRegExpLogic$1("startsWith");$$c({target:"String",proto:!0,forced:!CORRECT_IS_REGEXP_LOGIC},{startsWith:function(e){var t=toString$2(requireObjectCoercible$1(this));notARegExp$1(e);var r=toLength(min$2(arguments.length>1?arguments[1]:void 0,t.length)),n=toString$2(e);return nativeStartsWith?nativeStartsWith(t,n,r):stringSlice(t,r,r+n.length)===n}});var entryVirtual$6=entryVirtual$f,startsWith$6=entryVirtual$6("String").startsWith,isPrototypeOf$5=objectIsPrototypeOf,method$4=startsWith$6,StringPrototype$2=String.prototype,startsWith$5=function(e){var t=e.startsWith;return"string"==typeof e||e===StringPrototype$2||isPrototypeOf$5(StringPrototype$2,e)&&t===StringPrototype$2.startsWith?method$4:t},parent$B=startsWith$5,startsWith$4=parent$B,parent$A=startsWith$4,startsWith$3=parent$A,parent$z=startsWith$3,startsWith$2=parent$z,startsWith$1=startsWith$2,startsWith2=startsWith$1,_startsWithInstanceProperty=getDefaultExportFromCjs(startsWith2),$$b=_export,parseInt$1=numberParseInt;$$b({target:"Number",stat:!0,forced:Number.parseInt!=parseInt$1},{parseInt:parseInt$1});var path$6=path$t,_parseInt$5=path$6.Number.parseInt,parent$y=_parseInt$5,_parseInt$4=parent$y,parent$x=_parseInt$4,_parseInt$3=parent$x,parent$w=_parseInt$3,_parseInt$2=parent$w,_parseInt$1=_parseInt$2,_parseInt=_parseInt$1,_Number$parseInt=getDefaultExportFromCjs(_parseInt),DESCRIPTORS=descriptors,uncurryThis$3=functionUncurryThis,call=functionCall,fails$7=fails$y,objectKeys=objectKeys$3,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$b,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$1=Object.defineProperty,concat2=uncurryThis$3([].concat),objectAssign=!$assign||fails$7((function(){if(DESCRIPTORS&&1!==$assign({b:1},$assign(defineProperty$1({},"a",{enumerable:!0,get:function(){defineProperty$1(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),p=c.length,u=0;p>u;)s=c[u++],DESCRIPTORS&&!call(i,l,s)||(r[s]=l[s]);return r}:$assign,$$a=_export,assign$6=objectAssign;$$a({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$6},{assign:assign$6});var path$5=path$t,assign$5=path$5.Object.assign,parent$v=assign$5,assign$4=parent$v,parent$u=assign$4,assign$3=parent$u,parent$t=assign$3,assign$2=parent$t,assign$1=assign$2,assign2=assign$1,_Object$assign=getDefaultExportFromCjs(assign2),$$9=_export,$includes=arrayIncludes.includes,fails$6=fails$y,BROKEN_ON_SPARSE=fails$6((function(){return!Array(1).includes()}));$$9({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,arguments.length>1?arguments[1]:void 0)}});var entryVirtual$5=entryVirtual$f,includes$7=entryVirtual$5("Array").includes,$$8=_export,uncurryThis$2=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$6,toString$1=toString$b,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=uncurryThis$2("".indexOf);$$8({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$1(requireObjectCoercible(this)),toString$1(notARegExp(e)),arguments.length>1?arguments[1]:void 0)}});var entryVirtual$4=entryVirtual$f,includes$6=entryVirtual$4("String").includes,isPrototypeOf$4=objectIsPrototypeOf,arrayMethod=includes$7,stringMethod=includes$6,ArrayPrototype$3=Array.prototype,StringPrototype$1=String.prototype,includes$5=function(e){var t=e.includes;return e===ArrayPrototype$3||isPrototypeOf$4(ArrayPrototype$3,e)&&t===ArrayPrototype$3.includes?arrayMethod:"string"==typeof e||e===StringPrototype$1||isPrototypeOf$4(StringPrototype$1,e)&&t===StringPrototype$1.includes?stringMethod:t},parent$s=includes$5,includes$4=parent$s,parent$r=includes$4,includes$3=parent$r,parent$q=includes$3,includes$2=parent$q,includes$1=includes$2,includes3=includes$1,_includesInstanceProperty=getDefaultExportFromCjs(includes3),path$4=path$t,apply$1=functionApply;path$4.JSON||(path$4.JSON={stringify:JSON.stringify});var stringify$5=function(e,t,r){return apply$1(path$4.JSON.stringify,null,arguments)},parent$p=stringify$5,stringify$4=parent$p,parent$o=stringify$4,stringify$3=parent$o,parent$n=stringify$3,stringify$2=parent$n,stringify$1=stringify$2,stringify2=stringify$1,_JSON$stringify=getDefaultExportFromCjs(stringify2),apply=functionApply,toIndexedObject=toIndexedObject$b,toIntegerOrInfinity$1=toIntegerOrInfinity$5,lengthOfArrayLike$1=lengthOfArrayLike$a,arrayMethodIsStrict=arrayMethodIsStrict$3,min$1=Math.min,$lastIndexOf=[].lastIndexOf,NEGATIVE_ZERO=!!$lastIndexOf&&1/[1].lastIndexOf(1,-0)<0,STRICT_METHOD=arrayMethodIsStrict("lastIndexOf"),FORCED$1=NEGATIVE_ZERO||!STRICT_METHOD,arrayLastIndexOf=FORCED$1?function(e){if(NEGATIVE_ZERO)return apply($lastIndexOf,this,arguments)||0;var t=toIndexedObject(this),r=lengthOfArrayLike$1(t),n=r-1;for(arguments.length>1&&(n=min$1(n,toIntegerOrInfinity$1(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:$lastIndexOf,$$7=_export,lastIndexOf$7=arrayLastIndexOf;$$7({target:"Array",proto:!0,forced:arrayLastIndexOf!==[].lastIndexOf},{lastIndexOf:arrayLastIndexOf});var entryVirtual$3=entryVirtual$f,lastIndexOf$6=entryVirtual$3("Array").lastIndexOf,isPrototypeOf$3=objectIsPrototypeOf,method$3=lastIndexOf$6,ArrayPrototype$2=Array.prototype,lastIndexOf$5=function(e){var t=e.lastIndexOf;return e===ArrayPrototype$2||isPrototypeOf$3(ArrayPrototype$2,e)&&t===ArrayPrototype$2.lastIndexOf?method$3:t},parent$m=lastIndexOf$5,lastIndexOf$4=parent$m,parent$l=lastIndexOf$4,lastIndexOf$3=parent$l,parent$k=lastIndexOf$3,lastIndexOf$2=parent$k,lastIndexOf$1=lastIndexOf$2,lastIndexOf2=lastIndexOf$1,_lastIndexOfInstanceProperty=getDefaultExportFromCjs(lastIndexOf2),global$1=global$p,fails$5=fails$y,uncurryThis$1=functionUncurryThis,toString3=toString$b,trim$7=stringTrim.trim,whitespaces$1=whitespaces$4,charAt=uncurryThis$1("".charAt),$parseFloat$1=global$1.parseFloat,Symbol$1=global$1.Symbol,ITERATOR=Symbol$1&&Symbol$1.iterator,FORCED=1/$parseFloat$1(whitespaces$1+"-0")!=-1/0||ITERATOR&&!fails$5((function(){$parseFloat$1(Object(ITERATOR))})),numberParseFloat=FORCED?function(e){var t=trim$7(toString3(e)),r=$parseFloat$1(t);return 0===r&&"-"==charAt(t,0)?-0:r}:$parseFloat$1,$$6=_export,parseFloat$1=numberParseFloat;$$6({target:"Number",stat:!0,forced:Number.parseFloat!=parseFloat$1},{parseFloat:parseFloat$1});var path$3=path$t,_parseFloat$c=path$3.Number.parseFloat,parent$j=_parseFloat$c,_parseFloat$b=parent$j,parent$i=_parseFloat$b,_parseFloat$a=parent$i,parent$h=_parseFloat$a,_parseFloat$9=parent$h,_parseFloat$8=_parseFloat$9,_parseFloat$7=_parseFloat$8,_Number$parseFloat=getDefaultExportFromCjs(_parseFloat$7),path$2=path$t,setInterval$4=path$2.setInterval,parent$g=setInterval$4,setInterval$3=parent$g,parent$f=setInterval$3,setInterval$2=parent$f,setInterval$1=setInterval$2,setInterval=setInterval$1,_setInterval=getDefaultExportFromCjs(setInterval);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,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _defineProperty(e,t,r){return t in e?_Object$defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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=null!=arguments[t]?arguments[t]:{};if(t%2)_forEachInstanceProperty(r=ownKeys2(Object(n),!0)).call(r,(function(t){_defineProperty(e,t,n[t])}));else if(_Object$getOwnPropertyDescriptors)_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(n));else{var o;_forEachInstanceProperty(o=ownKeys2(Object(n))).call(o,(function(t){_Object$defineProperty(e,t,_Object$getOwnPropertyDescriptor(n,t))}))}}return e}var device_id_key="xgplayer_device_id",user_id_key="xgplayer_user_id",getCookie=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var o,a=t[r];if(_indexOfInstanceProperty(o=t[r]).call(o,e)>=0)return a.split("=")[1]||null}},genRandomID$1=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},getDeviceID$1=function(){var e=getCookie(device_id_key);if(e)return e;var t=genRandomID$1(11);return document.cookie=device_id_key+"="+t+";max-age=31536000;path=/",t},getUserId$1=function(){var e=getCookie(user_id_key);if(e)return e;var t=genRandomID$1(12);return document.cookie=user_id_key+"="+t+";max-age=31536000;path=/",t},getLogId=function(){return genRandomID$1(12)};function getBrowser(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:_indexOfInstanceProperty(e).call(e,"chrome")>-1&&_indexOfInstanceProperty(e).call(e,"safari")>-1,Firefox:_indexOfInstanceProperty(e).call(e,"firefox")>-1,Opera:_indexOfInstanceProperty(e).call(e,"opera")>-1,Safari:_indexOfInstanceProperty(e).call(e,"safari")>-1&&-1==_indexOfInstanceProperty(e).call(e,"chrome"),Edge:_indexOfInstanceProperty(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var o="";if("IE"===n)o=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var a in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[a].type&&(n="360");var i=e.match(/chrome\/([\d.]+)/);o=i?i[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);o=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);o=l?l[1]:"-1"}else if("Safari"===n){var c=e.match(/version\/([\d.]+)/);o=c?c[1]:"-1"}else if("Edge"===n){var p=e.match(/edge\/([\d.]+)/);o=p?p[1]:"-1"}else if("QQBrowser"===n){var u=e.match(/qqbrowser\/([\d.]+)/);o=u?u[1]:"-1"}t.type=n,t.versions=_parseInt$7(o)}return t}var sniffer={get device(){return sniffer.os.isPc?"pc":"mobile"},get browser(){var e=getBrowser();return e.type+"_"+e.versions},get os(){var e=navigator.userAgent;navigator.platform.toLowerCase();var t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),o=/(?:Firefox)/.test(e),a=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||o&&/(?:Tablet)/.test(e),i=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:i,isAndroid:n,isPc:!(i||n||r||a),isSymbian:r,isWindowsPhone:t,isFireFox:o}},get operation_os(){for(var e=navigator.userAgent,t=[{s:"windows",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1|Windows 8.1|Windows NT 6.3|Windows 8|Windows NT 6.2|Windows 7|Windows NT 6.1)/},{s:"android",r:/Android/},{s:"linux",r:/(Linux|X11)/},{s:"ios",r:/(iPhone|iPad|iPod)/},{s:"mac",r:/Mac OS X/},{s:"mac",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],r=0;r<t.length;r++){var n=t[r];if(n.r.test(e))return n.s}return"unknown"}};function getCurrentTime(){return _Date$now()}function getPlayFormat(e){var t="unknown";return"string"!=typeof e?t:_indexOfInstanceProperty(e).call(e,".flv")>-1?"flv":_indexOfInstanceProperty(e).call(e,".m3u8")>-1?"m3u8":_indexOfInstanceProperty(e).call(e,".mp4")>-1?"mp4":_indexOfInstanceProperty(e).call(e,".sdp")>-1?"rts":t}function isCodecSupport(e){return"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+e):0}function getUrlQuery(e,t){return new _URLSearchParams(e.split("?")[1]).get(t)}function getDeviceInfo(){var e={cpu_core_number:-1,memory_usage:-1,network_downlink:-1};try{e.cpu_core_number=navigator.hardwareConcurrency||-1,e.memory_usage=navigator.deviceMemory||-1,e.network_downlink=navigator.connection&&navigator.connection.downlink,null==e.network_downlink&&(e.network_downlink=-1)}catch(e){}return e}function getPlayerCore(e){if(e.plugins){if(e.plugins.flv)return e.plugins.flv;if(e.plugins.hls)return e.plugins.hls;if(e.plugins.rts)return e.plugins.rts;if(e.plugins.flvlive)return e.plugins.flvlive;if(e.plugins.hlslive)return e.plugins.hlslive;if(e.plugins.hlsvod)return e.plugins.hlsvod;if(e.plugins.hlslivemobile)return e.plugins.hlslivemobile;if(e.plugins.flvlivemobile)return e.plugins.flvlivemobile}return e.newHls||e.newFlv||e.__core__||e.flv}function getDefaultOptions(e){return{device_id:e.device_id||getDeviceID$1(),user_id:e.user_id||getUserId$1(),error_report_stop:!!e.error_report_stop,project_key:e.project_key||"live",product_line:e.product_line||"live",onReport:e.onReport||function(){}}}function getDefaultLog(){return{start_play:{start_play_time:0,event_key:"start_play"},first_frame:{start:0,first_frame_view:0,event_key:"first_frame",first_sei_delay:0,ntp_sync:0,ntp_delta:0,ttfb:-1,ttdb:-1,ttfb_end:0},first_frame_failed:{code:void 0,msg:"",event_key:"first_frame_failed"},stall_start:{ready_state:-1,stall_start_time:0,event_key:"stall_start"},stalling:{event_key:"stalling"},stall:{reason:0,stall_start:0,stall_end:0,ready_state:0,event_key:"stall"},play_stop:{code:0,stop_time:0,drop_percent:0,is_stream_received:0,stall_count:0,stall_time:0,retry_count:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0,event_key:"play_stop",dns_parse_time:-1,redirect:-1,ttfb:-1,buffered:[],is_firstframe_received:0,meta:null},playing:{index:0,stall_count:0,stall_time:0,play_time:1e4,retry_count:0,is_last:0,video_buffer_time:0,audio_buffer_time:0,speed_switch_count:0,speed_switch_info:"none",download_speed:0,decode_fps:0,render_fps:0,drop_count:0,drop_percent:0,sei_source:"",sei_delay:0,ntp_sync:0,ntp_delta:0,event_key:"playing",stop_time:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0},play_error:{code:void 0,info:"",event_key:"play_error"},play_low_decode:{fps:-1,decode_fps:-1,bitrate:-1,url:-1,msg:"",event_key:"play_low_decode"},play_av_unsync:{aDts:-1,vDts:-1,frameLength:-1,currentTime:-1,duration:0,event_key:"play_av_unsync"},play_loadstream:{loadstream_url:"",event_key:"play_loadstream"},play_stream_loaded:{event_key:"play_stream_loaded"},play_metadata_loaded:{metadata_type:"",event_key:"play_metadata_loaded"},stream_exception:{event_key:"stream_exception"},pause:{event_key:"pause"},play_url_change:{event_key:"play_url_change"},source_opened:{event_key:"source_opened"},source_updateend:{event_key:"source_updateend"},play_result:{event_key:"play_result",result:0,threshold:15e3,is_threshold:0},degrade:{event_key:"degrade",payload:{}},rtcstatechange:{event_key:"rtcstatechange"}}}function getCommonLog(e){var t,r=e.player,n=r.config.mediaType;return _objectSpread2({project_key:e.project_key,live_sdk_version:getPlayerCore(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.5",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:getLogId(),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+_Date$now(),is_preview:e.is_preview?1:0,codec_type:e.codec_type||"h264",width:Math.floor(r.config.width),height:Math.floor(r.config.height),browser:sniffer.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:_Date$now(),play_current_time:0,cdn_play_url:r.config.url&&_startsWithInstanceProperty(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:getPlayFormat(r.config.url),codec_support:-1},e.ext)}function Utf8ArrayToStr(e){var t,r,n,o,a,i;for(t="",n=e.length,r=0;r<n;)switch((o=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(o);break;case 12:case 13:a=e[r++],t+=String.fromCharCode((31&o)<<6|63&a);break;case 14:a=e[r++],i=e[r++],t+=String.fromCharCode((15&o)<<12|(63&a)<<6|(63&i)<<0)}return t}var getResourceTiming=function(e){var t,r=_filterInstanceProperty(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],o=r[r.length-1];return{dns_parse_time:_Number$parseInt(n.domainLookupEnd-n.domainLookupStart),redirect:_Number$parseInt(n.redirectEnd-n.redirectStart),ttfb:_Number$parseInt(o.responseStart-o.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}},video_error={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},Manage=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=_bindInstanceProperty(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}_createClass(e,[{key:"videoSize",get:function(){return this._player&&this._player.video?{width:this._player.video.videoWidth,height:this._player.video.videoHeight}:{width:0,height:0}}}]);var t=e.prototype;return t.push=function(e){var t=this._player.config.url;this._player.video&&(e.play_current_time=this._player.currentTime),e.cdn_play_url=t&&_startsWithInstanceProperty(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=getUrlQuery(t,"session_id"),e.play_format=getPlayFormat(t),e.timestamp=getCurrentTime();var r=getDeviceInfo(),n=r.cpu_core_number,o=r.memory_usage,a=r.network_downlink;e.cpu_core_number=n,e.memory_usage=o,e.network_downlink=a,_Object$assign(e,_objectSpread2({},this.videoSize)),this.send(e)},t.send=function(e){e.event_key&&(this.logOptions.onReport&&this.logOptions.onReport(e.event_key,e),this.Tea(e.event_key,_objectSpread2({},e)))},e}(),navgatorOnlineSupported=function(){return void 0!==navigator.onLine},navigatorConnectionType=function(){var e=navigator.connection;return e&&(e.effectiveType||e.type)},getNetStat=function(){return navgatorOnlineSupported()?navigator.onLine?navigatorConnectionType()||sniffer.device:"none":"unknown"},videoEvts=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],LoggerControl=function(){function e(e){var t,r;this.options=e,this.logger=new XgLiveLogger(e),this.restart=_bindInstanceProperty(t=this.restart).call(t,this),this.bindUrlChange(),_includesInstanceProperty(r=sniffer.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new XgLiveLogger(this.options),this.bindUrlChange(),this.logger.reportStartPlay(),this.logger.handlePlayerComlete()},t.bindUrlChange=function(){this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.on("urlchange",this.restart)},t.setNTP=function(e){this.logger.setNTP(e)},t.updateExt=function(e){this.options.ext=_Object$assign(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.destroy=function(e){this.logger.destroy(e),this.logger=null,this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.off("urlchange",this.restart)},e}(),XgLiveLogger=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=_Object$assign({},e,getDefaultOptions(e)),this._player=this.options.player,this._url=this._player.config.url,this.project_key=e.project_key||"live",this.product_line=e.product_line||"live",this.ntpDelta=this.options.ntp?_Date$now()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new Manage(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}_createClass(e,[{key:"videoSize",get:function(){return this.player?{width:this.player.video.videoWidth,height:this.player.video.videoHeight}:{width:0,height:0}}},{key:"player",get:function(){return this._player}},{key:"logmanager",get:function(){return this._logmanager}},{key:"ntpTime",get:function(){return _Date$now()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=_Date$now()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,o,a,i,s,l,c,p,u,$,y,f,d;this.handlePlayerComlete=_bindInstanceProperty(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=_bindInstanceProperty(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=_bindInstanceProperty(r=this.destroyFunc).call(r,this),this.handleUserLeave=_bindInstanceProperty(n=this.handleUserLeave).call(n,this),this.handlePlayerError=_bindInstanceProperty(o=this.handlePlayerError).call(o,this),this.handlePlayerReady=_bindInstanceProperty(a=this.handlePlayerReady).call(a,this),this.handlePlayerWaiting=_bindInstanceProperty(i=this.handlePlayerWaiting).call(i,this),this.handleAVUnsync=_bindInstanceProperty(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=_bindInstanceProperty(l=this.handlePlayerPause).call(l,this),this.handleTTFB=_bindInstanceProperty(c=this.handleTTFB).call(c,this),this.handleUrlChange=_bindInstanceProperty(p=this.handleUrlChange).call(p,this),this.handleKeyframe=_bindInstanceProperty(u=this.handleKeyframe).call(u,this),this.handleSourceOpen=_bindInstanceProperty($=this.handleSourceOpen).call($,this),this.handleBufferAppend=_bindInstanceProperty(y=this.handleBufferAppend).call(y,this),this.handleCoreEvent=_bindInstanceProperty(f=this.handleCoreEvent).call(f,this),this.handleDegrade=_bindInstanceProperty(d=this.handleDegrade).call(d,this)},t.initLog=function(){var e=this,t=this.options,r=t.player,n=void 0!==r.hlsOps;this.commonParams=_objectSpread2({os:sniffer.operation_os},getCommonLog(t)),this.log=_Object$assign({},getDefaultLog());var o=this;for(var a in this.log){var i=function(t){_Object$defineProperty(e.log[a],t,{get:function(){return null==this["_"+t]?o.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)i(s);n&&_Object$defineProperty(this.log[a],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?_sliceInstanceProperty(e).call(e,0,25e4):""}return""},enumerable:!0}),_Object$defineProperty(this.log[a],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),_Object$defineProperty(this.log[a],"access",{get:function(){return getNetStat()},enumerable:!0})}},t.updateExt=function(e){for(var t in this.log)for(var r in e)this.log[t][r]=e[r]},t.reportStartPlay=function(){this.started||(this.started=!0,this.log.start_play.start_play_time=this.log.start_play.timestamp=getCurrentTime(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===sniffer.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===sniffer.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;_forEachInstanceProperty(videoEvts).call(videoEvts,(function(t){e["handleVideo"+t+"Evt"]=function(){e["handleVideo"+t]&&e["handleVideo"+t]()},e.initWindowListener(),e.bindVideoEvt(t,e["handleVideo"+t+"Evt"])})),t.once("error",this.handlePlayerError),t.once("complete",this.handlePlayerComlete),t.once("playing",this.handlePlayerPlaying),t.once("timeupdate",this.handlePlayerPlaying),t.once("destroy",this.destroyFunc),t.on("ready",this.handlePlayerReady),t.on("waiting",this.handlePlayerWaiting),t.on("pause",this.handlePlayerPause),t.on("urlchange",this.handleUrlChange),t.once("sourceopen",this.handleSourceOpen),t.once("bufferappend",this.handleBufferAppend),t.on("core_event",this.handleCoreEvent),t.on("degrade",this.handleDegrade),this.hiJackPlayerStart()},t.handleCoreEvent=function(e){var t=e.eventName,r=e.headers,n=e.pts,o=e.type,a=e.meta,i=e.sei,s=e.decodeFps,l=e.url,c=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var p=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),p&&(this.commonParams.cdn_ip=p);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(o,a);break;case"core.sei":this.handleSEIParsed(i);break;case"core.lowdecode":this.commonParams.is_wasm&&(_Object$assign(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=getCurrentTime(),this.logmanager.push(this.log.play_low_decode,!0),this.commonParams.is_wasm=0);break;case"core.largeavgap":this.handleAVUnsync(e);break;case"core.loadstart":this.handlePlayerLoadStream(e),this.reportStartPlay();break;case"core.loadcomplete":this.handlePlayerLoadedStream(e);break;case"core.streamexception":this.handleStreamException(e);break;case"core.rtcstatechange":this.logmanager.push(_Object$assign({url:l,state:c},this.log.rtcstatechange))}},t.handleDegrade=function(e){this.log.degrade.payload=e,this.logmanager.push(this.log.degrade,!0)},t.hiJackPlayerStart=function(){var e=arguments,t=this;this.player._start=this.player.start;var r=this.player;r.start=function(){try{if(r._start)return r._start.apply(r,_sliceInstanceProperty(Array.prototype).call(e,0))}catch(e){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0},t.handleUrlChange=function(e){this.logmanager.push(_Object$assign(this.log.play_url_change,{url:e,timestamp:getCurrentTime()}))},t.handleKeyframe=function(e){this.log.play_stop.is_firstframe_received=1,this.log.play_stop.firstframe_pts=e},t.handleSourceOpen=function(){this.log.source_opened.timestamp=getCurrentTime(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=getCurrentTime(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=getCurrentTime(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;_Object$assign(this.log.play_error,_objectSpread2({timestamp:getCurrentTime(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:_JSON$stringify(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(_Object$assign(this.log.first_frame_failed,{code:r||("parse"===t?31:21),msg:e.message}),void 0!==this.log.first_frame_failed.timestamp&&(this.log.first_frame_failed.timestamp=getCurrentTime()),this.logmanager.push(this.log.first_frame_failed,!0),this.log.play_result.is_threshold||(this.clearPlayResultTimer(),this.log.play_result.reason=e.message||"first frame failed",this.log.play_result.code=this.log.play_error.code,this.logmanager.push(this.log.play_result,!0))),this.options.error_report_stop?this.handleUserLeave():this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var o=this.log.play_loadstream;o.timestamp=getCurrentTime(),o.loadstream_url=t,o.offersdp=r,o.sessionId=n,this.logmanager.push(o)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=getCurrentTime(),_Object$assign(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){var t=this.log,r=t.playing,n=t.first_frame;if(100===e.code){var o=Utf8ArrayToStr(e.content);o=_sliceInstanceProperty(o).call(o,_indexOfInstanceProperty(o).call(o,"{"),_lastIndexOfInstanceProperty(o).call(o,"}")+1);try{var a=JSON.parse(o),i=this.getPlayerBuffer()+this.ntpTime-a.ts;r.sei_delay=i,r.sei_source=a.source,r.ntp_sync=this.options.ntp?1:0,r.ntp_delta=this.ntp_delta,n.first_sei_delay=i,n.ntp_sync=this.options.ntp?1:0,n.ntp_delta=this.ntp_delta}catch(e){}}},t.handleMetaDataLoaded=function(e,t){this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=getCurrentTime(),this.log.play_metadata_loaded.metadata_type=e,t&&(this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=t.codec,"video"===e&&(this.commonParams.codec_type=t.codec,this.commonParams.codec_support=isCodecSupport(t.codec))),t||(this.log.play_metadata_loaded.meta=void 0,this.log.play_metadata_loaded.codec=void 0,"video"===e&&(this.commonParams.codec_type="unknown")),this.logmanager.push(this.log.play_metadata_loaded)},t.handleAVUnsync=function(e){_Object$assign(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=getCurrentTime(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(_Object$assign({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=getPlayerCore(this.player),this.core&&(this.commonParams.live_sdk_version="2"),(this.player.config.autoplay||this.player.config.videoInit)&&this.reportStartPlay())},t.getPlayerBuffer=function(){var e=this.player.video.buffered;if(e){var t=Math.max(0,e.length-1);try{var r=_Number$parseInt(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(e){return 0}}},t.getPlayerDownloadSpeed=function(){if(this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo)return this.core.core.speedInfo().speed},t.getPlayerQuality=function(){var e=this.player.video;if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=_Number$parseFloat(this.tempTotalFrameCount/t.totalVideoFrames).toFixed(1),this.log.play_stop.drop_percent=_Number$parseFloat(t.droppedVideoFrames/t.totalVideoFrames).toFixed(1),this.tempDroppedFrameCount=t.droppedVideoFrames,this.tempTotalFrameCount=t.totalVideoFrames}},t.getRtcStats=function(e,t){try{var r=this,n=r.player.plugins.rts||r.player.plugins.rtm,o=n&&n.pc,a={};return o?_Promise.resolve(o.getStats()).then((function(t){return _forEachInstanceProperty(t).call(t,(function(t){var n=t.type,o=t.mediaType,i=t.bytesReceived,s=t.packetsReceived,l=t.audioLevel,c=t.concealmentEvents,p=t.remoteTimestamp,u=t.timestamp,$=t.framesDropped,y=t.keyFramesDecoded,f=t.totalDecodeTime,d=t.framesDecoded,h=t.frameHeight,g=t.frameWidth,m=t.framesReceived,_=t.jitterBufferDelay,b=t.jitterBufferEmittedCount,S=t.jitter,v=t.nackCount,O=t.packetsLost,P=t.pliCount,I=t.totalSamplesReceived,E=t.concealedSamples,w=t.currentRoundTripTime,T=t.decoderImplementation,R=t.mimeType,C=t.freezeCount,A=t.totalFreezesDuration,j=t.totalPausesDuration;switch(n){case"inbound-rtp":"audio"===o?(a.audio_bytes_received=i-(r.cacheRtcStats.audioBytesReceived||0),r.cacheRtcStats.audioBytesReceived=i,a.audio_packets_lost=O-(r.cacheRtcStats.audioPacketsLost||0),a.audio_packets_received=s-(r.cacheRtcStats.audioPacketsReceived||0),r.cacheRtcStats.audioPacketsLost=O,r.cacheRtcStats.audioPacketsReceived=s,a.audio_level=l,a.concealment_event=c,a.audio_fraction_lost=a.audio_packets_lost/a.audio_packets_received,void 0!==r.cacheRtcStats.totalSamplesReceived&&(a.audio_rec_sample_rate=(I-r.cacheRtcStats.totalSamplesReceived)/e),r.cacheRtcStats.totalSamplesReceived=I,a.concealed_samples=E,a.total_samples_received=I):(a.frames_dropped=$,a.iframes_decoded=y,a.video_bytes_received=i-(r.cacheRtcStats.videoBytesReceived||0),r.cacheRtcStats.videoBytesReceived=i,a.video_dec_time=f,a.video_decoded_delay_ms=a.video_dec_elapse/d,a.video_frame_height=h,a.video_frame_width=g,void 0!==r.cacheRtcStats.framesDecoded&&(a.video_decode_framerate=(d-r.cacheRtcStats.framesDecoded)/e),r.cacheRtcStats.framesDecoded=d,void 0!==r.cacheRtcStats.framesReceived&&(a.video_recv_framerate=(m-r.cacheRtcStats.framesReceived)/e),void 0!==r.cacheRtcStats.freezeCount&&(a.freeze_count=C-r.cacheRtcStats.freezeCount,a.freeze_duration=A-r.cacheRtcStats.totalFreezesDuration),r.cacheRtcStats.freezeCount=C,r.cacheRtcStats.totalFreezesDuration=A,r.cacheRtcStats.framesReceived=m,a.total_pauses_duration=j,a.video_jb_delay=_/b*1e3,a.video_jitter=1e3*S,a.video_nack_count=v,a.video_packets_lost=O-(r.cacheRtcStats.videoPacketsLost||0),a.video_packets_received=s-(r.cacheRtcStats.videoPacketsReceived||0),a.video_fraction_lost=a.video_packets_lost/a.video_packets_received,r.cacheRtcStats.videoPacketsLost=O,r.cacheRtcStats.videoPacketsReceived=s,a.video_pli_count=P,a.decoder_name=T);break;case"remote-outbound-rtp":a.e2e_delay_ms=u-p;break;case"track":void 0!==g&&(a.video_frame_width=g,a.video_frame_height=h);break;case"candidate-pair":a.rtt=1e3*w;break;case"codec":_includesInstanceProperty(R).call(R,"video")?a.video_codec=R:a.audio_codec=o}a.total_delay=a.e2e_delay_ms+(a.video_decoded_delay_ms||0)+(a.video_jb_delay||0)})),_Object$assign(r.log.playing,{video_download_size:a.video_bytes_received,decode_fps:a.video_decode_framerate,sei_delay:a.total_delay,sei_network_delay:a.e2e_delay_ms,width:a.video_frame_width,height:a.video_frame_height,current_speed:(a.audio_bytes_received+a.video_bytes_received)/e}),a})):_Promise.resolve(a)}catch(e){return _Promise.reject(e)}},t.reportPlaying=function(e){try{var t=this;t.commonParams.is_wasm&&(t.commonParams.fps=t.player.video.fps,t.log.playing.render_fps=t.player.video.fps,t.log.playing.decode_fps=t.player.video.decodeFps),t.log.playing.index++;var r,n=t.log.playing.timestamp;t.inWaitingStart&&t.inWaitingStart<getCurrentTime()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,getCurrentTime()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var o=getCurrentTime(),a=o-n,i=(r>200?r:0)+t.log.playing.stall_time,s=(r>200?1:0)+t.log.playing.stall_count;return t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=(r>t.options.aggregationDowngradeStallTime?r:0)+(t.log.playing.aggregation_downgrade_stall||0)),_Object$assign(t.log.playing,_objectSpread2({timestamp:o,stop_time:o,duration:e?0:a/1e3,stall_time_per_100sec:i/a*100,stall_count_per_100sec:1e3*s/a*100,stall_count:s,stall_time:i,play_current_time:t.player.currentTime},t.videoSize)),_Promise.resolve(t.getRtcStats(a,e)).then((function(r){t.logmanager.push(_Object$assign({},t.log.playing,_objectSpread2({play_time:e?0:a},r)),!0),t.log.playing.download_speed_array=[],t.log.playing.stall_time=0,t.log.playing.stall_count=0,t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=0)}))}catch(e){return _Promise.reject(e)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return _Promise.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),e.core){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return _Promise.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=_setInterval((function(){try{var r=function(){if(Math.abs(_Date$now()-e.log.playing.timestamp-t)<100||_Date$now()-e.log.playing.timestamp>=t){var r=function(){if(e.player.video){var t=function(){if(!e.player.paused)return _Promise.resolve(e.reportPlaying()).then((function(){}));e.handleVideopause()}();if(t&&t.then)return t.then((function(){}))}else e.destroyFunc()}();if(r&&r.then)return r.then((function(){}))}}();return _Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return _Promise.reject(e)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(e){return _Promise.reject(e)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=getCurrentTime(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=getCurrentTime(),this.playResultTimer=_setTimeout((function(){e.log.play_result.timestamp>=e.log.play_result.start||(e.log.play_result.is_threshold=1,e.logmanager.push(e.log.play_result,!0))}),this.log.play_result.threshold)},t.handlePlayerWaiting=function(){var e=this;!this.inWaitingStart&&this.log.first_frame.timestamp&&(this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=getCurrentTime(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=getCurrentTime(),this.log.stall_start.stall_start_time=getCurrentTime(),this.log.stall_start.video_buffer_time=this.player.video.readyState,this.log.stall_start.play_current_time=this.player.currentTime,this.log.stall.play_current_time=this.player.currentTime,this.log.stall_start.buffered=this.getBuffered(),this.log.stall.buffered=this.log.stall_start.buffered,this.log.stall.current_speed=this.getPlayerDownloadSpeed(),_Object$assign(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=_setTimeout((function(){e.logmanager.push(e.log.stall_start,!0)}),205))},t.handleVideoseeking=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.clearStallTimer())},t.handleVideoseeked=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.log.play_stop.stall_count>0&&this.log.play_stop.stall_count--)},t.handleVideoplay=function(){this.reportStartPlay(),this.removeVideoEvt("play",this.handleVideoplay)},t.handleVideotimeupdate=function(){Math.abs(this.player.currentTime-this.log.stall_start.play_current_time)>.2&&this.stallEnd(),this.saveBuffered()},t.handleVideocanplay=function(){this.stallEnd(),this.reportFirstframe()},t.handleVideoplaying=function(){this.stallEnd(),this.log.play_stop.is_stream_received=1;var e=getCurrentTime();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=getCurrentTime();if(this.inWaitingStart){var t=e-this.inWaitingStart;t>200&&(this.log.play_stop.stall_count++,this.log.play_stop.stall_time+=e-this.inWaitingStart,this.log.playing.stall_time+=e-Math.max(this.inWaitingStart,this.log.playing.timestamp),this.log.stall.stall_end=e,this.log.stall.timestamp=getCurrentTime(),this.log.playing.stall_count++,_Object$assign(this.log.stall,_objectSpread2({},this.videoSize)),this.logmanager.push(this.log.stall,!0)),this.options.aggregationDowngradeStallTime&&t>this.options.aggregationDowngradeStallTime&&(this.log.playing.aggregation_downgrade_stall=(this.log.playing.aggregation_downgrade_stall||0)+(e-Math.max(this.inWaitingStart,this.log.playing.timestamp)))}this.inWaitingStart=0},t.handleVideoloadeddata=function(){this.reportFirstframe()},t.handleVideoratechange=function(){this.log.playing.speed_switch_count++,this.log.playing.speed_switch_info=this.player.video.playbackRate},t.handleVideoended=function(){this.clearPlayingInterval(),this.clearStallTimer(),_Object$assign(this.log.playing,_objectSpread2({timestamp:getCurrentTime(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing)},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;_Object$assign(this.log.play_error,_objectSpread2(_objectSpread2({timestamp:getCurrentTime()},this.videoSize),t&&{code:t.code,info:t.message})),this.logmanager.push(this.log.play_error,!0),0!==e.log.first_frame.first_frame_view||e.log.first_frame_failed.code||t&&(e.log.first_frame_failed.code=t.code,e.log.first_frame_failed.msg=video_error[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=getCurrentTime()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=video_error[t.code]||"first frame failed",e.log.play_result.code=t.code,e.clearPlayResultTimer(),e.logmanager.push(e.log.play_result,!0))),e.options.error_report_stop?e.handleUserLeave():e.updatePlayStopParams()},t.handleVideopause=function(){this.stallEnd(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.player.once("playing",this.handlePlayerPlaying),this.player.once("timeupdate",this.handlePlayerPlaying)},t.destroyFunc=function(e){var t=this;this.destroyed||(e||this.handleUserLeave(),this.destroyed=!0,"pc"===sniffer.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===sniffer.device&&window.removeEventListener("pagehide",this.handleUserLeave),_forEachInstanceProperty(videoEvts).call(videoEvts,(function(e){t.removeVideoEvt(e,t["handleVideo"+e+"Evt"])})),this.player&&(this.player._start&&(this.player.start=this.player._start,delete this.player._start),this.player.off("destroy",this.destroyFunc),this.player.off("complete",this.handlePlayerComlete),this.player.off("playing",this.handlePlayerPlaying),this.player.off("timeupdate",this.handlePlayerPlaying),this.player.off("ready",this.handlePlayerReady),this.player.off("waiting",this.handlePlayerWaiting),this.player.off("largeavgap",this.handleAVUnsync),this.player.off("error",this.handlePlayerError),this.player.off("SEI_PARSED",this.handleSEIParsed),this.player.off("pause",this.handlePlayerPause),this.player.off("ttfb",this.handleTTFB),this.player.off("urlchange",this.handleUrlChange),this.player.off("isKeyframe",this.handleKeyframe),this.player.off("sourceopen",this.handleSourceOpen),this.player.off("bufferappend",this.handleBufferAppend),this.player.off("core_event",this.handleCoreEvent),this.player.off("degrade",this.handleDegrade),this.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer),this._player=null))},t.handleUserLeave=function(){!this.destroyed&&this.started&&(this.destroyed=!0,this.updatePlayStopParams(),this.reportPlayStop(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.removeWindowListener())},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(e){}},t.getBuffered=function(){try{for(var e=[],t=this.player.video,r=0;r<t.buffered.length;r++)e.push([t.buffered.start(r),t.buffered.end(r)]);return e}catch(e){}},t.reportPlayStop=function(){this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered(),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=getCurrentTime();_Object$assign(this.log.first_frame,_objectSpread2({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){var e=getResourceTiming(this._url),t=getCurrentTime();this.playedTime=t-this.log.start_play.start_play_time;var r=this.log.play_stop;_Object$assign(r,_objectSpread2({},0===r.stall_count&&{stall_time:0})),this.inWaitingStart&&t-this.inWaitingStart>200&&(r.stall_time+=t-this.inWaitingStart),this.inWaitingStart=0,_Object$assign(r,_objectSpread2({stall_time_per_100sec:r.stall_time/this.playedTime*100,stall_count_per_100sec:1e3*r.stall_count/this.playedTime*100},e)),0===this.log.play_stop.stall_count_per_100sec&&(this.log.play_stop.stall_time_per_100sec=0),this.log.play_stop.stall_time_per_100sec>100||this.log.play_stop.stall_time_per_100sec<0||(this.log.playing.index?(_Object$assign(this.log.playing,_objectSpread2({timestamp:getCurrentTime(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing,!0)):(this.log.play_stop.error_code=this.log.play_error.code,this.log.play_stop.error_info=this.log.play_error.info),t=getCurrentTime(),_Object$assign(r,_objectSpread2({timestamp:t,stop_time:t,duration:this.playedTime/1e3,play_time:this.playedTime/1e3},this.videoSize)),0===this.errorNumber&&(r.play_time_on_no_frame=r.stop_time-this.log.start_play.start_play_time))},t.clearPlayingInterval=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},t.clearStallTimer=function(){clearTimeout(this.stallStartTimer)},t.clearPlayResultTimer=function(){clearTimeout(this.playResultTimer)},t.destroy=function(e){this.destroyFunc(!e)},t.bindVideoEvt=function(e,t){this.player&&this.player.video.addEventListener(e,t,!1)},t.removeVideoEvt=function(e,t){this.player&&this.player.video&&this.player.video.removeEventListener(e,t,!1)},t.send=function(e,t){this.logmanager.send(e,t)},e}(),symbol=symbol$1,_Symbol=getDefaultExportFromCjs(symbol),getIteratorMethod=getIteratorMethod$3,_getIteratorMethod=getDefaultExportFromCjs(getIteratorMethod),tryToString=tryToString$6,$TypeError=TypeError,deletePropertyOrThrow$1=function(e,t){if(!delete e[t])throw $TypeError("Cannot delete property "+tryToString(t)+" of "+tryToString(e))},$$5=_export,toObject=toObject$b,toAbsoluteIndex=toAbsoluteIndex$4,toIntegerOrInfinity=toIntegerOrInfinity$5,lengthOfArrayLike=lengthOfArrayLike$a,setArrayLength=arraySetLength,doesNotExceedSafeInteger=doesNotExceedSafeInteger$3,arraySpeciesCreate=arraySpeciesCreate$3,createProperty=createProperty$6,deletePropertyOrThrow=deletePropertyOrThrow$1,arrayMethodHasSpeciesSupport$1=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT$1=arrayMethodHasSpeciesSupport$1("splice"),max=Math.max,min=Math.min;$$5({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT$1},{splice:function(e,t){var r,n,o,a,i,s,l=toObject(this),c=lengthOfArrayLike(l),p=toAbsoluteIndex(e,c),u=arguments.length;for(0===u?r=n=0:1===u?(r=0,n=c-p):(r=u-2,n=min(max(toIntegerOrInfinity(t),0),c-p)),doesNotExceedSafeInteger(c+r-n),o=arraySpeciesCreate(l,n),a=0;a<n;a++)(i=p+a)in l&&createProperty(o,a,l[i]);if(o.length=n,r<n){for(a=p;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>p;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+p]=arguments[a+2];return setArrayLength(l,c-n+r),o}});var entryVirtual$2=entryVirtual$f,splice$6=entryVirtual$2("Array").splice,isPrototypeOf$2=objectIsPrototypeOf,method$2=splice$6,ArrayPrototype$1=Array.prototype,splice$5=function(e){var t=e.splice;return e===ArrayPrototype$1||isPrototypeOf$2(ArrayPrototype$1,e)&&t===ArrayPrototype$1.splice?method$2:t},parent$e=splice$5,splice$4=parent$e,parent$d=splice$4,splice$3=parent$d,parent$c=splice$3,splice$2=parent$c,splice$1=splice$2,splice2=splice$1,_spliceInstanceProperty=getDefaultExportFromCjs(splice2),$$4=_export,$parseFloat=numberParseFloat;$$4({global:!0,forced:parseFloat!=numberParseFloat},{parseFloat:numberParseFloat});var path$1=path$t,_parseFloat$6=path$1.parseFloat,parent$b=_parseFloat$6,_parseFloat$5=parent$b,parent$a=_parseFloat$5,_parseFloat$4=parent$a,parent$9=_parseFloat$4,_parseFloat$3=parent$9,_parseFloat$2=_parseFloat$3,_parseFloat=_parseFloat$2,_parseFloat$1=getDefaultExportFromCjs(_parseFloat),PROPER_FUNCTION_NAME=functionName.PROPER,fails$4=fails$y,whitespaces=whitespaces$4,non="
",stringTrimForced=function(e){return fails$4((function(){return!!whitespaces[e]()||non[e]()!==non||PROPER_FUNCTION_NAME&&whitespaces[e].name!==e}))},$$3=_export,$trim=stringTrim.trim,forcedStringTrimMethod=stringTrimForced;$$3({target:"String",proto:!0,forced:forcedStringTrimMethod("trim")},{trim:function(){return $trim(this)}});var entryVirtual$1=entryVirtual$f,trim$6=entryVirtual$1("String").trim,isPrototypeOf$1=objectIsPrototypeOf,method$1=trim$6,StringPrototype=String.prototype,trim$5=function(e){var t=e.trim;return"string"==typeof e||e===StringPrototype||isPrototypeOf$1(StringPrototype,e)&&t===StringPrototype.trim?method$1:t},parent$8=trim$5,trim$4=parent$8,parent$7=trim$4,trim$3=parent$7,parent$6=trim$3,trim$2=parent$6,trim$1=trim$2,trim2=trim$1,_trimInstanceProperty=getDefaultExportFromCjs(trim2),create4=create$5,_Object$create=getDefaultExportFromCjs(create4),fails$3=fails$y,freezing=!fails$3((function(){return Object.isExtensible(Object.preventExtensions({}))})),internalMetadata={exports:{}},fails$2=fails$y,arrayBufferNonExtensible=fails$2((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fails$1=fails$y,isObject$2=isObject$k,classof=classofRaw$2,ARRAY_BUFFER_NON_EXTENSIBLE=arrayBufferNonExtensible,$isExtensible=Object.isExtensible,FAILS_ON_PRIMITIVES$1=fails$1((function(){$isExtensible(1)})),objectIsExtensible=FAILS_ON_PRIMITIVES$1||ARRAY_BUFFER_NON_EXTENSIBLE?function(e){return!!isObject$2(e)&&((!ARRAY_BUFFER_NON_EXTENSIBLE||"ArrayBuffer"!=classof(e))&&(!$isExtensible||$isExtensible(e)))}:$isExtensible,$$2=_export,uncurryThis=functionUncurryThis,hiddenKeys=hiddenKeys$6,isObject$1=isObject$k,hasOwn2=hasOwnProperty_1,defineProperty5=objectDefineProperty.f,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertyNamesExternalModule=objectGetOwnPropertyNamesExternal,isExtensible2=objectIsExtensible,uid=uid$4,FREEZING$1=freezing,REQUIRED=!1,METADATA=uid("meta"),id=0,setMetadata=function(e){defineProperty5(e,METADATA,{value:{objectID:"O"+id++,weakData:{}}})},fastKey=function(e,t){if(!isObject$1(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hasOwn2(e,METADATA)){if(!isExtensible2(e))return"F";if(!t)return"E";setMetadata(e)}return e[METADATA].objectID},getWeakData=function(e,t){if(!hasOwn2(e,METADATA)){if(!isExtensible2(e))return!0;if(!t)return!1;setMetadata(e)}return e[METADATA].weakData},onFreeze$1=function(e){return FREEZING$1&&REQUIRED&&isExtensible2(e)&&!hasOwn2(e,METADATA)&&setMetadata(e),e},enable=function(){meta.enable=function(){},REQUIRED=!0;var e=getOwnPropertyNamesModule.f,t=uncurryThis([].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},$$2({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:getOwnPropertyNamesExternalModule.f}))},meta=internalMetadata.exports={enable:enable,fastKey:fastKey,getWeakData:getWeakData,onFreeze:onFreeze$1};hiddenKeys[METADATA]=!0;var internalMetadataExports=internalMetadata.exports,$$1=_export,FREEZING=freezing,fails=fails$y,isObject=isObject$k,onFreeze=internalMetadataExports.onFreeze,$freeze=Object.freeze,FAILS_ON_PRIMITIVES=fails((function(){$freeze(1)}));$$1({target:"Object",stat:!0,forced:FAILS_ON_PRIMITIVES,sham:!FREEZING},{freeze:function(e){return $freeze&&isObject(e)?$freeze(onFreeze(e)):e}});var path=path$t,freeze$5=path.Object.freeze,parent$5=freeze$5,freeze$4=parent$5,parent$4=freeze$4,freeze$3=parent$4,parent$3=freeze$3,freeze$2=parent$3,freeze$1=freeze$2,freeze2=freeze$1,_Object$freeze=getDefaultExportFromCjs(freeze2),$=_export,$map=arrayIteration.map,arrayMethodHasSpeciesSupport=arrayMethodHasSpeciesSupport$5,HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("map");$({target:"Array",proto:!0,forced:!HAS_SPECIES_SUPPORT},{map:function(e){return $map(this,e,arguments.length>1?arguments[1]:void 0)}});var _context6,entryVirtual=entryVirtual$f,map$6=entryVirtual("Array").map,isPrototypeOf=objectIsPrototypeOf,method=map$6,ArrayPrototype=Array.prototype,map$5=function(e){var t=e.map;return e===ArrayPrototype||isPrototypeOf(ArrayPrototype,e)&&t===ArrayPrototype.map?method:t},parent$2=map$5,map$4=parent$2,parent$1=map$4,map$3=parent$1,parent=map$3,map$2=parent,map$1=map$2,map2=map$1,_mapInstanceProperty=getDefaultExportFromCjs(map2),isArray2=isArray$1,_Array$isArray=getDefaultExportFromCjs(isArray2),_e=function(){return _e=_Object$assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_e.apply(this,arguments)};function t(e,t){var r="function"==typeof _Symbol&&_getIteratorMethod(e);if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function i(){for(var e=[],r=0;r<arguments.length;r++)e=_concatInstanceProperty(e).call(e,t(arguments[r]));return e}var n,u,p,l,o=function(){function e(){this._hooks={},this._cache=[],this._hooksCache={}}return e.prototype.on=function(e,t){e&&t&&"function"==typeof t&&(this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t))},e.prototype.once=function(e,t){var r=this;e&&t&&"function"==typeof t&&this.on(e,(function n(o){t(o),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,o=_indexOfInstanceProperty(r=this._hooks[e]).call(r,t);-1!==o&&_spliceInstanceProperty(n=this._hooks[e]).call(n,o,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==_indexOfInstanceProperty(n=this._cache).call(n,r)?this._emit(e,t):(this._hooksCache.hasOwnProperty(r)||(this._hooksCache[r]={}),this._hooksCache[r].hasOwnProperty(e)||(this._hooksCache[r][e]=[]),this._hooksCache[r][e].push(t))}else this._emit(e,t)},e.prototype._emit=function(e,t){var r;e&&this._hooks[e]&&this._hooks[e].length&&_forEachInstanceProperty(r=i(this._hooks[e])).call(r,(function(e){try{e(t)}catch(e){}}))},e.prototype.set=function(e){var t;e&&-1===_indexOfInstanceProperty(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),r=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},s=(n=+_Date$now()+Number(_sliceInstanceProperty(_context6=""+Math.random()).call(_context6,2,8)),function(){return n+=1}),a=function(e){return function(e,t,r){if("string"==typeof e&&"number"==typeof r){var n,o=[];r=r<=25?r:r%25;var a=String.fromCharCode(r+97);n=e.split(a);for(var i=0;i<n.length;i++){var s=_parseInt$7(n[i],r);s=1*s^64;var l=String.fromCharCode(s);o.push(l)}return o.join("")}}(e,0,25)},c=function(e){var t=document.createElement("a");return t.href=e,t},h=function(){function e(e){this.appid=e,this.userAgent=window.navigator.userAgent,this.appVersion=window.navigator.appVersion}return e.prototype.init=function(){var e=window.navigator.userAgent,t=window.navigator.language,r=document.referrer,n=r?c(r).hostname:"";!function(e){var t={};try{var r,n=c(e).search;_forEachInstanceProperty(r=(n=_sliceInstanceProperty(n).call(n,1)).split("&")).call(r,(function(e){var r,n,o=e.split("=");o.length&&(r=o[0],n=o[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(e){t[r]=n}}))}catch(e){}}(window.location.href);var o=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",a=this.browser(),i=this.os();return{browser:a.browser,browser_version:a.browser_version,platform:o,os_name:i.os_name,os_version:i.os_version,userAgent:e,screen_width:window.screen&&window.screen.width,screen_height:window.screen&&window.screen.height,device_model:this.getDeviceModel(i.os_name),language:t,referrer:r,referrer_host:n}},e.prototype.browser=function(){var e,t,r="",n=""+_parseFloat$1(this.appVersion),o=this.userAgent;return-1!==_indexOfInstanceProperty(o).call(o,"Edge")||-1!==_indexOfInstanceProperty(o).call(o,"Edg")?(r="Microsoft Edge",-1!==_indexOfInstanceProperty(o).call(o,"Edge")?(e=_indexOfInstanceProperty(o).call(o,"Edge"),n=o.substring(e+5)):(e=_indexOfInstanceProperty(o).call(o,"Edg"),n=o.substring(e+4))):-1!==(e=_indexOfInstanceProperty(o).call(o,"MSIE"))?(r="Microsoft Internet Explorer",n=o.substring(e+5)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Lark"))?(r="Lark",n=o.substring(e+5,e+11)):-1!==(e=_indexOfInstanceProperty(o).call(o,"MetaSr"))?(r="sougoubrowser",n=o.substring(e+7,e+10)):-1!==_indexOfInstanceProperty(o).call(o,"MQQBrowser")||-1!==_indexOfInstanceProperty(o).call(o,"QQBrowser")?(r="qqbrowser",-1!==_indexOfInstanceProperty(o).call(o,"MQQBrowser")?(e=_indexOfInstanceProperty(o).call(o,"MQQBrowser"),n=o.substring(e+11,e+15)):-1!==_indexOfInstanceProperty(o).call(o,"QQBrowser")&&(e=_indexOfInstanceProperty(o).call(o,"QQBrowser"),n=o.substring(e+10,e+17))):-1!==_indexOfInstanceProperty(o).call(o,"Chrome")?-1!==(e=_indexOfInstanceProperty(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=_indexOfInstanceProperty(o).call(o,"360"))?(r="360browser",n=o.substring(_indexOfInstanceProperty(o).call(o,"Chrome")+7)):-1!==_indexOfInstanceProperty(o).call(o,"baidubrowser")||-1!==_indexOfInstanceProperty(o).call(o,"BIDUBrowser")?(-1!==_indexOfInstanceProperty(o).call(o,"baidubrowser")?(e=_indexOfInstanceProperty(o).call(o,"baidubrowser"),n=o.substring(e+13,e+16)):-1!==_indexOfInstanceProperty(o).call(o,"BIDUBrowser")&&(e=_indexOfInstanceProperty(o).call(o,"BIDUBrowser"),n=o.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=_indexOfInstanceProperty(o).call(o,"xiaomi"))?-1!==_indexOfInstanceProperty(o).call(o,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=o.substring(e+7,e+13)):(r="xiaomi",n=o.substring(e-7,e-1)):-1!==(e=_indexOfInstanceProperty(o).call(o,"TTWebView"))?(r="TTWebView",n=o.substring(e+10,e+23)):(-1!==(e=_indexOfInstanceProperty(o).call(o,"Chrome"))||-1!==(e=_indexOfInstanceProperty(o).call(o,"Chrome")))&&(r="Chrome",n=o.substring(e+7)):-1!==_indexOfInstanceProperty(o).call(o,"Safari")?-1!==(e=_indexOfInstanceProperty(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+10,e+16)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Safari"))&&(r="Safari",n=o.substring(e+7),-1!==(e=_indexOfInstanceProperty(o).call(o,"Version"))&&(n=o.substring(e+8))):-1!==(e=_indexOfInstanceProperty(o).call(o,"Firefox"))?(r="Firefox",n=o.substring(e+8)):-1!==(e=_indexOfInstanceProperty(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=_indexOfInstanceProperty(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+3,e+8)):-1!==(e=_indexOfInstanceProperty(o).call(o,"Opera"))&&(r="Opera",n=o.substring(e+6),-1!==(e=_indexOfInstanceProperty(o).call(o,"Version"))&&(n=o.substring(e+8))),-1!==(t=_indexOfInstanceProperty(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=_indexOfInstanceProperty(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=_indexOfInstanceProperty(n).call(n,")"))&&(n=n.substring(0,t)),{browser:r,browser_version:n}},e.prototype.os=function(){for(var e="",t="",r=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],n=0;n<r.length;n++){var o=r[n];if(o.r.test(this.userAgent)){"Mac OS X"===(e=o.s)&&this.isNewIpad()&&(e="iOS");break}}var a,i,s=function(e,t){var r=e.exec(t);return r&&r[1]?r[1]:""},l=function(e,t){var r=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:"+e+")","i").exec(t);return r?_sliceInstanceProperty(r).call(r,1)[0]:""};switch(/Windows/.test(e)&&(t=s(/Windows (.*)/,e),e="windows"),e){case"Mac OS X":t=l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent),e="mac";break;case"Android":(i=s(/Android ([\.\_\d]+)/,a=this.userAgent))||(i=s(/Android\/([\.\_\d]+)/,a)),t=i,e="android";break;case"iOS":t=this.isNewIpad()?l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent):(t=/OS (\d+)_(\d+)_?(\d+)?/.exec(this.appVersion))?t[1]+"."+t[2]+"."+(0|t[3]):"",e="ios"}return{os_name:e,os_version:t}},e.prototype.getDeviceModel=function(e){var t="";try{var r;if("android"===e)_forEachInstanceProperty(r=navigator.userAgent.split(";")).call(r,(function(e){_indexOfInstanceProperty(e).call(e,"Build/")>-1&&(t=_sliceInstanceProperty(e).call(e,0,_indexOfInstanceProperty(e).call(e,"Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),o=_indexOfInstanceProperty(n).call(n,";");t=_sliceInstanceProperty(n).call(n,0,o)}}catch(e){return _trimInstanceProperty(t).call(t)}return _trimInstanceProperty(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),f=((u=function(e,t){e.exports=function(){function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function o(t,o,a){if("undefined"!=typeof document){"number"==typeof(a=e({},n,a)).expires&&(a.expires=new Date(_Date$now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in a)a[s]&&(i+="; "+s,!0!==a[s]&&(i+="="+a[s].split(";")[0]));return document.cookie=t+"="+r.write(o,t)+i}}return _Object$create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},o=0;o<t.length;o++){var a=t[o].split("="),i=_sliceInstanceProperty(a).call(a,1).join("=");try{var s=decodeURIComponent(a[0]);if(n[s]=r.read(i,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(t,r){o(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:_Object$freeze(n)},converter:{value:_Object$freeze(r)}})}({read:function(e){return'"'===e[0]&&(e=_sliceInstanceProperty(e).call(e,1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()})(p={exports:{}},p.exports),p.exports),d=f,g=function(){function e(){this.cache={}}return e.prototype.setItem=function(e,t){this.cache[e]=t},e.prototype.getItem=function(e){return this.cache[e]},e.prototype.removeItem=function(e){this.cache[e]=void 0},e.prototype.getCookie=function(e){this.getItem(e)},e.prototype.setCookie=function(e,t){this.setItem(e,t)},e}(),m={getItem:function(e){try{var t=localStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(e){}return r||{}}catch(e){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:_JSON$stringify(t);localStorage.setItem(e,r)}catch(e){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(e){}},getCookie:function(e,t){try{return d.get(e,{domain:t||document.domain})}catch(e){return""}},setCookie:function(e,t,r,n){try{var o=n||document.domain,a=+new Date+r;d.set(e,t,{expires:new Date(a),path:"/",domain:o})}catch(e){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(e){return!1}}()},_={getItem:function(e){try{var t=sessionStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(e){}return r||{}}catch(e){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:_JSON$stringify(t);sessionStorage.setItem(e,r)}catch(e){}},removeItem:function(e){try{sessionStorage.removeItem(e)}catch(e){}},getCookie:function(e){this.getItem(e)},setCookie:function(e,t){this.setItem(e,t)},isSupportSession:function(){try{return sessionStorage.setItem("_ranger-test-key","hi"),sessionStorage.getItem("_ranger-test-key"),sessionStorage.removeItem("_ranger-test-key"),!0}catch(e){return!1}}()},v=function(){function e(e,t){this._storage=t&&"session"===t?_:!e&&m.isSupportLS?m:new g}return e.prototype.getItem=function(e){return this._storage.getItem(e)},e.prototype.setItem=function(e,t){this._storage.setItem(e,t)},e.prototype.getCookie=function(e,t){return this._storage.getCookie(e,t)},e.prototype.setCookie=function(e,t,r,n){this._storage.setCookie(e,t,r,n)},e.prototype.removeItem=function(e){this._storage.removeItem(e)},e}(),y={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},w=void 0,b=(new Date).getTimezoneOffset(),k=_parseInt$7(""+-b/60,10),x=60*b,O=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new h(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new v(!1,"session"),this.localStorage=new v(!1,"local");var o=this.localStorage.getItem(n);o&&1==o?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:w,user_type:w,user_id:w,user_is_auth:w,user_is_login:w,device_id:w,web_id:w,user_unique_id_type:w},header:{app_id:w,app_name:w,app_install_id:w,install_id:w,app_package:w,app_channel:w,app_version:w,ab_version:w,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:w,traffic_type:w,client_ip:w,device_brand:w,os_api:w,access:w,language:r.language,region:w,app_language:w,app_region:w,creative_id:w,ad_id:w,campaign_id:w,log_type:w,rnd:w,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:w,city:w,timezone:k,tz_offset:x,tz_name:w,sim_region:w,carrier:w,resolution:r.screen_width+"x"+r.screen_height,browser:r.browser,browser_version:r.browser_version,referrer:r.referrer,referrer_host:r.referrer_host,width:r.screen_width,height:r.screen_height,screen_width:r.screen_width,screen_height:r.screen_height,utm_term:w,utm_content:w,utm_source:w,utm_medium:w,utm_campaign:w,custom:{},wechat_unionid:w,wechat_openid:w}},this.evtParams={},this.reportErrorCallback=function(){},this.initDomain()}return e.prototype.initDomain=function(){var e=this.initConfig.channel_domain;if(e)this.domain=e;else{var t=this.initConfig.channel;this.domain=a(y[t])}},e.prototype.setDomain=function(e){this.domain=e},e.prototype.getDomain=function(){return this.domain},e.prototype.getUrl=function(e){var t="";switch(e){case"event":t=this.initConfig.report_url||"/list";break;case"webid":t="/webid"}return""+this.getDomain()+t},e.prototype.set=function(e){var t,r=this;_forEachInstanceProperty(t=_Object$keys(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=_e({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=_e({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?_indexOfInstanceProperty(n=["user_id","web_id","user_unique_id"]).call(n,t)>-1&&(r.envInfo.user[t]=e[t]?String(e[t]):e[t]):Object.hasOwnProperty.call(r.envInfo.header,t)?r.envInfo.header[t]=e[t]:r.envInfo.header.custom[t]=e[t]}))},e.prototype.get=function(e){try{return e?"evtParams"===e?this.evtParams:"reportErrorCallback"===e?this[e]:Object.hasOwnProperty.call(this.envInfo.user,e)?this.envInfo.user[e]:Object.hasOwnProperty.call(this.envInfo.header,e)?this.envInfo.header[e]:JSON.parse(_JSON$stringify(this.envInfo[e])):JSON.parse(_JSON$stringify(this.envInfo))}catch(e){console.log("get config stringify error ")}},e}();!function(e){e.Init="init",e.Config="config",e.Start="start",e.Ready="ready",e.TokenComplete="token-complete",e.TokenStorage="token-storage",e.TokenFetch="token-fetch",e.TokenError="token-error",e.ConfigUuid="config-uuid",e.TokenChange="token-change",e.TokenReset="token-reset",e.SessionReset="session-reset",e.SessionResetTime="session-reset-time",e.Event="event",e.Events="events",e.EventNow="event-now",e.CleanEvents="clean-events",e.BeconEvent="becon-event"}(l||(l={}));var I=l,S=500,z=5005;function M(e,t,r,n,o,a,i,s,l){try{var c=new XMLHttpRequest,p=s||"POST";c.open(p,""+e,!0),c.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(c.timeout=r,c.ontimeout=function(){a&&a(t,z)}),c.onload=function(){if(o){var e=null;if(c.responseText){try{e=JSON.parse(c.responseText)}catch(t){e={}}o(e,t)}}},c.onerror=function(){c.abort(),a&&a(t,S)},l?c.send(t):c.send(_JSON$stringify(t))}catch(e){}}var T=4003,C=function(){function e(){this.eventLimit=50,this.eventCache=[],this.beconEventCache=[]}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=e.configManager,this.cacheStorgae=new v(!0),this.localStorage=new v(!1),this.maxReport=t.max_report||20,this.reportTime=t.reportTime||30,this.timeout=t.timeout||1e5,this.reportUrl=this.configManager.getUrl("event"),this.eventKey="__tea_cache_events_"+this.configManager.get("app_id"),this.beconKey="__tea_cache_events_becon_"+this.configManager.get("app_id"),this.collect.on(I.Ready,(function(){r.reportAll(!1)})),this.collect.on(I.Event,(function(e){r.event(e)})),this.collect.on(I.BeconEvent,(function(e){r.beconEvent(e)})),this.linster()},e.prototype.linster=function(){var e,t=this;window.addEventListener("unload",(function(){t.reportAll(!0)}),!1),e=function(){t.reportAll(!0)},navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t.reportAll(!0)}),!1)},e.prototype.reportAll=function(e){this.report(e),this.reportBecon()},e.prototype.event=function(e){var t=this;try{var r=i(e,this.cacheStorgae.getItem(this.eventKey)||[]);if(this.cacheStorgae.setItem(this.eventKey,r),this.reportTimeout&&clearTimeout(this.reportTimeout),r.length>=this.maxReport)this.report(!1);else{var n=this.reportTime;this.reportTimeout=_setTimeout((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(e){}},e.prototype.beconEvent=function(e){var t=i(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.destroyInstance||this.collect.tokenManager.getReady()&&this.collect.sdkReady&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(t)),!0))},e.prototype.reportBecon=function(){var e=this.cacheStorgae.getItem(this.beconKey)||[];e&&e.length&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(e)),!0))},e.prototype.report=function(e){if(!this.collect.destroyInstance&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var t=this.cacheStorgae.getItem(this.eventKey)||[];t.length&&(this.cacheStorgae.removeItem(this.eventKey),this.sliceEvent(t,e))}},e.prototype.sliceEvent=function(e,t){if(e.length>this.eventLimit)for(var r=0;r<e.length;r+=this.eventLimit){var n;n=_sliceInstanceProperty(e).call(e,r,r+this.eventLimit);var o=this.split(this.merge(n));this.send(o,t)}else o=this.split(this.merge(e)),this.send(o,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,o=r.user;n.custom=_JSON$stringify(n.custom);var a=this.configManager.get("evtParams"),i=_mapInstanceProperty(e).call(e,(function(e){try{return _Object$keys(a).length&&(e.params=_e({},a,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=_JSON$stringify(e.params),e}catch(t){return e}})),s=[];if(!_Object$keys(o).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(_JSON$stringify({events:i,user:o,header:n}));return l.local_time=Math.floor(_Date$now()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return _mapInstanceProperty(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&_forEachInstanceProperty(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,o=e,a=r.timeout,i=function(e,t){},s=function(e,t){r.configManager.get("reportErrorCallback")(e,t)},!1,t&&window.navigator&&window.navigator.sendBeacon?window.navigator.sendBeacon(n,_JSON$stringify(o))||s(n,o):M(n,o,a,0,i,s,0,"",false)}catch(e){console.warn("something error, "+_JSON$stringify(e.stack))}var n,o,a,i,s}))},e}(),E=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},P=function(){var e;return _sliceInstanceProperty(e=E().replace(/-/g,"")).call(e,0,19)},A=function(){function e(){this.cacheToken={}}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new v(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(I.ConfigUuid,(function(e){r.setUuid(e)})),this.checkStorage()},e.prototype.checkStorage=function(){this.cacheToken=this.storage.getItem(this.tokenKey)||{},this.check()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.remoteWebid()},e.prototype.remoteWebid=function(){var e=this,t=this.configManager.getUrl("webid"),r={app_key:this.config.app_key,app_id:this.config.app_id,url:location.href,user_agent:window.navigator.userAgent,referer:document.referrer,user_unique_id:""},n=P();M(t,r,3e5,0,(function(t){var r;t&&0===t.e?r=t.web_id:(r=n,e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+" get webid error, use local webid~")),e.complete({web_id:e.configManager.get("web_id")||r,user_unique_id:e.configManager.get("user_unique_id")||r})}),(function(){e.complete({web_id:e.configManager.get("web_id")||n,user_unique_id:e.configManager.get("user_unique_id")||n}),e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+", get webid error, use local webid~")}))},e.prototype.complete=function(e){var t=e.web_id,r=e.user_unique_id;t||r?(e.timestamp=_Date$now(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(I.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===_indexOfInstanceProperty(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),o=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===o)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=_Date$now(),this.setStorage(this.cacheToken)}else this.clearUuid()},e.prototype.clearUuid=function(){this.config.enable_ttwebid||this.configManager.get("web_id")&&(this.configManager.set({user_unique_id:this.configManager.get("web_id")}),this.cacheToken&&this.cacheToken.web_id&&(this.cacheToken.user_unique_id=this.cacheToken.web_id,this.cacheToken.timestamp=_Date$now(),this.setStorage(this.cacheToken)),this.collect.emit(I.TokenReset))},e.prototype.setStorage=function(e){e._type_="default",this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e}(),D=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},N=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new v(!1,"session"),this.sessionKey="__tea_session_id_"+t.app_id,this.expireTime=t.expireTime||18e5,this.disableSession=t.disable_session,this.disableSession||(this.setSessionId(),this.collect.on(I.SessionReset,(function(){r.resetSessionId()})),this.collect.on(I.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;_Date$now()-t>this.expireTime?e={sessionId:D(),timestamp:_Date$now()}:e.timestamp=_Date$now(),this.storage.setItem(this.sessionKey,e),this.resetExpTime()}},e.prototype.setSessionId=function(){var e=this,t=this.storage.getItem(this.sessionKey);t&&t.sessionId?t.timestamp=_Date$now():t={sessionId:D(),timestamp:_Date$now()},this.storage.setItem(this.sessionKey,t),this.sessionExp=_setInterval((function(){e.checkEXp()}),this.expireTime)},e.prototype.getSessionId=function(){var e=this.storage.getItem(this.sessionKey);return this.disableSession?"":e&&e.sessionId?e.sessionId:""},e.prototype.resetExpTime=function(){var e=this;this.sessionExp&&(clearInterval(this.sessionExp),this.sessionExp=_setInterval((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:D(),timestamp:_Date$now()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&_Date$now()-e.timestamp+30>=this.expireTime&&(e={sessionId:D(),timestamp:_Date$now()},this.storage.setItem(this.sessionKey,e))},e}(),R=function(){function e(e){this.disableAutoPageView=!1,this.staging=!1,this.sended=!1,this.started=!1,this.adapters={},this.sdkReady=!1,this.name=e,this.hook=new o,this.Types=I,this.adapters.fetch=M,this.adapters.storage=v}return e.prototype.init=function(e){var t,n,o=this;this.inited?console.log("init can be call only one time"):e&&r(e)?e.app_id&&"number"==typeof(n=e.app_id)&&!isNaN(n)?e.app_key&&"string"!=typeof e.app_key?console.warn("app_key param is error, must be string, please check!"):(e.channel_domain||-1!==_indexOfInstanceProperty(t=["cn","sg","va"]).call(t,e.channel)||(console.warn("channel must be `cn`, `sg`,`va` !!!"),e.channel="cn"),this.inited=!0,this.configManager=new O(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new C,this.tokenManager=new A,this.sessionManager=new N,_Promise.all([new _Promise((function(e){o.once(I.TokenComplete,(function(){e(!0)}))})),new _Promise((function(e){o.once(I.Start,(function(){e(!0)}))}))]).then((function(){o.sdkReady=!0,o.emit(I.Ready),console.info("appid: "+e.app_id+", userInfo:"+_JSON$stringify(o.configManager.get("user"))),console.info("appid: "+e.app_id+", sdk is ready, version is 0.0.3-lite, you can report now !!!"),o.pageView()})),this.tokenManager.apply(this,e),this.eventManager.apply(this,e),this.sessionManager.apply(this,e),this.emit(I.Init)):console.warn("app_id param is error, must be number, please check!"):console.warn("init params error,please check")},e.prototype.config=function(e){if(this.inited)if(e&&r(e)){e._staging_flag&&1===e._staging_flag&&(this.staging=!0),e.disable_auto_pv&&(this.disableAutoPageView=!0,delete e.disable_auto_pv);var t=_e({},e);t.user_unique_id;var n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&_indexOfInstanceProperty(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof _Object$getOwnPropertySymbols){var o=0;for(n=_Object$getOwnPropertySymbols(e);o<n.length;o++)_indexOfInstanceProperty(t).call(t,n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(I.ConfigUuid,t.user_unique_id),this.configManager.set(n)}else console.warn("config params is error, please check");else console.warn("config must be use after function init")},e.prototype.getConfig=function(e){return this.configManager.get(e)},e.prototype.start=function(){this.inited&&!this.sended&&(this.sended=!0,this.emit(I.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];_Array$isArray(e)?_forEachInstanceProperty(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(I.Event,n),this.emit(I.SessionResetTime))}catch(e){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(_Array$isArray(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(I.BeconEvent,r),this.emit(I.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=_sliceInstanceProperty(e).call(e,6));var n=t;"object"!=_typeof(n)&&(n={}),n.event_index=s();var o=void 0;return n.local_ms?(o=n.local_ms,delete n.local_ms):o=+new Date,{event:r,params:n,local_time_ms:o}}catch(r){return{event:e,params:t}}},e.prototype.on=function(e,t){this.hook.on(e,t)},e.prototype.once=function(e,t){this.hook.once(e,t)},e.prototype.off=function(e,t){this.hook.off(e,t)},e.prototype.emit=function(e,t,r){this.hook.emit(e,t,r)},e.prototype.set=function(e){this.hook.set(e)},e.prototype.pageView=function(){this.disableAutoPageView||this.predefinePageView()},e.prototype.predefinePageView=function(e){void 0===e&&(e={});var t={title:document.title||location.pathname,url:location.href,url_path:location.pathname,time:_Date$now(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=_e({},t,e);this.event("predefine_pageview",r)},e}(),q=new R("default"),DEVICE_ID_KEY="veplayer_live_device_id",USER_ID_Key="veplayer_live_user_id",genRandomID2=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},getDeviceID2=function(){var e=localStorage.getItem(DEVICE_ID_KEY);return e||(e=genRandomID2(11),localStorage.setItem(DEVICE_ID_KEY,e),e)},getUserId2=function(){var e=localStorage.getItem(USER_ID_Key);return e||(e=genRandomID2(12),localStorage.setItem(USER_ID_Key,e),e)},Plugin$2=window.VePlayer.Plugin,CN_APPID=468759,CHANNEL="cn",CHANNEL_DOMAIN="//mcs.volceapplog.com",Logger=function(e){_inherits(r,Plugin$2);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$1(_assertThisInitialized(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,a))),"_userId",void 0),_defineProperty$1(_assertThisInitialized(n),"_deviceId",void 0),_defineProperty$1(_assertThisInitialized(n),"_liveLogger",void 0),n}return _createClass$1(r,[{key:"afterCreate",value:function(){var e,t;this.config.enable&&(this.config.appId?(this._userId=(null===(e=this.config)||void 0===e?void 0:e.userId)||getUserId2(),this._deviceId=(null===(t=this.config)||void 0===t?void 0:t.deviceId)||getDeviceID2(),this.open()):console.info("not found appId, please generate an appId"))}},{key:"destroy",value:function(){this.close()}},{key:"close",value:function(){var e;null===(e=this._liveLogger)||void 0===e||e.destroy(!1),this._liveLogger=void 0}},{key:"open",value:function(){this._liveLogger||(this._start(),this.config.showUserIdInErrorPanel&&this.player.plugins.error&&(this.player.plugins.error.config.extraTips=[{label:"userId",value:null==q?void 0:q.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){q.init({app_id:CN_APPID,channel:CHANNEL,channel_domain:CHANNEL_DOMAIN}),q.start(),q.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new LoggerControl({Tea:q,player:this.player,aid:this.config.appId,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this._userId,device_id:this._deviceId,ext:{veplayer_version:"2.0.0-rc.1",flv_version:"3.0.0-next.23",hls_version:"3.0.0-next.36-1",rts_version:"0.2.0-alpha.3"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:"",enable:!0,showUserIdInErrorPanel:!0}}}]),r}();function normalizeNumber(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}function getDefaultRow(e){var t,r,n;return{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:normalizeNumber(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:normalizeNumber(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:normalizeNumber(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:_concatInstanceProperty(r="".concat(normalizeNumber(e.height)," * ")).call(r,normalizeNumber(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:normalizeNumber(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:normalizeNumber(e.currentTime,(function(e){return e.toFixed(6)+"s"}))}]}}function getSoftDecodeRow(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:normalizeNumber(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:normalizeNumber(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}var _context,infoPanel="",util$1=window.VePlayer.util,Plugin$1=window.VePlayer.Plugin,XGUtil=window.VePlayer.XGUtil,InfoPanel=function(e){_inherits(r,Plugin$1);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$1(_assertThisInitialized(n=t.call.apply(t,_concatInstanceProperty(e=[this]).call(e,a))),"_pollTimer",void 0),_defineProperty$1(_assertThisInitialized(n),"_visible",void 0),_defineProperty$1(_assertThisInitialized(n),"_playPlugin",void 0),n}return _createClass$1(r,[{key:"_streamType",get:function(){return util$1.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(Events.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(Events.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(_includesInstanceProperty(e=["flv","hls"]).call(e,this._streamType)?this.player.plugins[this._streamType]?(this.root.style.display="block",this._tick(),this._visible=!0):console.warn("不支持或未加载".concat(this._streamType,"插件")):console.warn("仅支持flv和hls格式的信息展示"))}},{key:"close",value:function(){this._visible&&(clearTimeout(this._pollTimer),this.root.innerHTML="",this.root.style.display="none",this._visible=!1)}},{key:"destroy",value:function(){var e=this;this.close(),this.player.off(Events.LOADED_DATA,(function(){return e.open()})),this.player.off(Events.ERROR,(function(){return e.close()}))}},{key:"render",value:function(){return'\n <xg-live-panel class="veplayer-live-panel">\n </xg-live-panel>\n '}},{key:"_tick",value:function(){var e=this;clearTimeout(this._pollTimer),this._renderPanel(),this._pollTimer=_setTimeout((function(){e._tick()}),this.config.interval)}},{key:"_getStats",value:function(){var e;return null===(e=this._playPlugin)||void 0===e?void 0:e.getStats()}},{key:"_getPanelData",value:function(){var e=this._getStats()||{},t="".concat(this._streamType,"_live"),r=this._playPlugin.softDecode,n=[getDefaultRow(_objectSpread2$1(_objectSpread2$1({},e),{},{format:t}))];return r&&n.push(getSoftDecodeRow(e)),n}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",_forEachInstanceProperty(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,o=t.titleTextKey,a=t.rows,i=this.player.config.i18nManager;if(n||o){var s,l=this._genTitleDom(null!==(s=i.getText(o))&&void 0!==s?s:n);e.appendChild(l)}_forEachInstanceProperty(a).call(a,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=XGUtil.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=XGUtil.createDom("xg-live-panel",e,void 0,"veplayer-live-panel-row-title");return t.appendChild(r),t}},{key:"_genRowDom",value:function(e){var t=this.player.config.i18nManager,r=XGUtil.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=XGUtil.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var o=XGUtil.createDom("xg-live-panel",e.value);return r.appendChild(o),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(),BaseEN=window.VePlayer.EN,EN$1=_objectSpread2$1(_objectSpread2$1({},BaseEN),{},{INVALID_PARAMETER:"The imported parameter is empty, please pass in necessary parameters such as the stream address",FORMAT:"format",FPS:"fps",BITRATE:"bitrate",GOP:"gop",RESOLUTION:"resolution",ENCODE_TYPE:"encodeType",BUFFER_END:"bufferEnd",CURRENT_TIME:"currentTime",DECODE_EFFICIENCY:"efficiency",DECODE_COST:"cost",DECODE_INFO:"decodeInfo",REFRESH:"refresh"}),BaseZH_CN=window.VePlayer.ZH_CN,ZH_CN$1=_objectSpread2$1(_objectSpread2$1({},BaseZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",FORMAT:"格式",FPS:"帧率",BITRATE:"码率",GOP:"GOP",RESOLUTION:"视频分辨率",ENCODE_TYPE:"编码方式",BUFFER_END:"Buffer 水位",CURRENT_TIME:"播放进度",DECODE_EFFICIENCY:"解码效率",DECODE_COST:"解码消耗",DECODE_INFO:"软解信息",REFRESH:"刷新"}),DEFAULT_PLUGINS=window.VePlayer.DEFAULT_PLUGINS,VePlayerBase=window.VePlayer.VePlayerBase,VeI18n=window.VePlayer.VeI18n;VeI18n.extend([{LANG:"zh-cn",TEXT:ZH_CN$1},{LANG:"en",TEXT:EN$1}]);var LIVE_DEFAULT_OPTIONS={autoplay:{muted:!0}},LIVE_DEFAULT_PLUGINS=_concatInstanceProperty(_context=[]).call(_context,_toConsumableArray(DEFAULT_PLUGINS),[Refresh,Logger,InfoPanel]),VePlayerLive=function(e){_inherits(r,VePlayerBase);var t=_createSuper(r);function r(e){return _classCallCheck(this,r),t.call(this,e)}return _createClass$1(r,[{key:"openLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.open()}},{key:"closeLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.close()}},{key:"openInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.open()}},{key:"closeInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.close()}}]),r}();function createLivePlayer(e){return _createLivePlayer.apply(this,arguments)}function _createLivePlayer(){return(_createLivePlayer=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,o,a,i;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&(t.url||t.playlist)){e.next=2;break}throw create$2(ErrorCode.INVALID_PARAMETER,new VeI18n);case 2:return o=new VeI18n({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),a=_objectSpread2$1(_objectSpread2$1({},t),{},{plugins:_concatInstanceProperty(r=[]).call(r,_toConsumableArray(LIVE_DEFAULT_PLUGINS),_toConsumableArray(null!==(n=t.plugins)&&void 0!==n?n:[]))}),e.next=6,VePlayerBase.create(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},LIVE_DEFAULT_OPTIONS),a),{},{isLive:!0,i18nManager:o,preparePlugins:function(e){return _asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",getTypeStrategy(_objectSpread2$1(_objectSpread2$1({},a),{},{url:e})));case 1:case"end":return t.stop()}}),t)})))()}}),VePlayerLive);case 6:return i=e.sent,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var live=Object.freeze({__proto__:null,ErrorCode:ErrorCode,Events:Events}),setModuleSystem=window.VePlayer.setModuleSystem,Codec=window.VePlayer.Codec,DecodeType=window.VePlayer.DecodeType,Degradation=window.VePlayer.Degradation,POSITIONS=window.VePlayer.POSITIONS,register=window.VePlayer.register,EN=window.VePlayer.EN,ZH_CN=window.VePlayer.ZH_CN,Plugin=window.VePlayer.Plugin,Sniffer=window.VePlayer.Sniffer,DynamicModule=window.VePlayer.DynamicModule,util=window.VePlayer.util,load=window.VePlayer.load;setModuleSystem("esm");var isMseSupported=util.isMseSupported,isSoftDecodeSupported=util.isSoftDecodeSupported;export{Codec,DecodeType,Degradation,DynamicModule,EN,POSITIONS,Plugin,RTMCodec,Sniffer,ZH_CN,createLivePlayer,isMseSupported,isRTMSupportCodec,isRTMSupported,isSoftDecodeSupported,live,load,register,util};
|
|
2
2
|
//# sourceMappingURL=esm/veplayer.biz.live.production.js.map
|