mazey 3.11.5 → 3.11.6
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/LICENSE +1 -1
- package/README.md +51 -51
- package/lib/index.cjs.js +0 -5
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +0 -5
- package/lib/mazey.min.js +0 -5
- package/lib/typing.d.ts +2 -2
- package/package.json +4 -3
- package/scripts/README.md +5 -3
- package/scripts/git-helper.js +7 -5
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
English | [简体中文](https://github.com/mazeyqian/mazey/blob/
|
|
1
|
+
English | [简体中文](https://github.com/mazeyqian/mazey/blob/main/README_ZH.md)
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# Mazey
|
|
4
4
|
|
|
5
5
|
[![NPM version][npm-image]][npm-url]
|
|
6
6
|
[![l][l-image]][l-url]
|
|
@@ -10,17 +10,17 @@ English | [简体中文](https://github.com/mazeyqian/mazey/blob/master/README_Z
|
|
|
10
10
|
[l-image]: https://img.shields.io/npm/l/mazey
|
|
11
11
|
[l-url]: https://github.com/mazeyqian/mazey
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Mazey is a functional library for daily front-end work. There are already many excellent libraries for front-end development, but creating a file named `utils.js` or `common.js` is generally used to supply common functions in projects. It's boring to copy similar functions across multiple projects. That's why I've created this library and will keep updating it to serve as a reliable resource for front-end needs.
|
|
14
14
|
|
|
15
15
|
## Install
|
|
16
16
|
|
|
17
|
-
Use
|
|
17
|
+
Use Mazey via [npm](https://www.npmjs.com/package/mazey).
|
|
18
18
|
|
|
19
19
|
```shell
|
|
20
20
|
npm install mazey --save
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Use
|
|
23
|
+
Use Mazey from CDN.
|
|
24
24
|
|
|
25
25
|
```html
|
|
26
26
|
<script type="text/javascript" src="//i.mazey.net/mazey/lib/mazey.min.js"></script>
|
|
@@ -59,51 +59,51 @@ There are some examples maintained by hand below. For more information, please c
|
|
|
59
59
|
|
|
60
60
|
### Table of Contents
|
|
61
61
|
|
|
62
|
-
<!-- toc - begin -->
|
|
63
|
-
- Generated with ❤️
|
|
64
|
-
- [Load Resource](#load-resource)
|
|
65
|
-
- [loadScript](#loadscript)
|
|
66
|
-
- [loadScriptIfUndefined](#loadscriptifundefined)
|
|
67
|
-
- [loadCSS](#loadcss)
|
|
68
|
-
- [loadImage](#loadimage)
|
|
69
|
-
- [windowLoaded](#windowloaded)
|
|
70
|
-
- [Util](#util)
|
|
71
|
-
- [isNumber](#isnumber)
|
|
72
|
-
- [isJSONString](#isjsonstring)
|
|
73
|
-
- [isValidData](#isvaliddata)
|
|
74
|
-
- [genRndNumString](#genrndnumstring)
|
|
75
|
-
- [formatDate](#formatdate)
|
|
76
|
-
- [debounce](#debounce)
|
|
77
|
-
- [throttle](#throttle)
|
|
78
|
-
- [convertCamelToKebab](#convertcameltokebab)
|
|
79
|
-
- [convertCamelToUnder](#convertcameltounder)
|
|
80
|
-
- [deepCopy](#deepcopy)
|
|
81
|
-
- [URL](#url)
|
|
82
|
-
- [getQueryParam](#getqueryparam)
|
|
83
|
-
- [getUrlParam](#geturlparam)
|
|
84
|
-
- [getHashQueryParam](#gethashqueryparam)
|
|
85
|
-
- [getDomain](#getdomain)
|
|
86
|
-
- [updateQueryParam](#updatequeryparam)
|
|
87
|
-
- [isValidUrl](#isvalidurl)
|
|
88
|
-
- [isValidHttpUrl](#isvalidhttpurl)
|
|
89
|
-
- [Cache Data](#cache-data)
|
|
90
|
-
- [Cookie](#cookie)
|
|
91
|
-
- [Storage](#storage)
|
|
92
|
-
- [DOM](#dom)
|
|
93
|
-
- [addStyle](#addstyle)
|
|
94
|
-
- [Class](#class)
|
|
95
|
-
- [newLine](#newline)
|
|
96
|
-
- [Calculate and Formula](#calculate-and-formula)
|
|
97
|
-
- [inRate](#inrate)
|
|
98
|
-
- [longestComSubstring](#longestcomsubstring)
|
|
99
|
-
- [longestComSubsequence](#longestcomsubsequence)
|
|
100
|
-
- [Browser Information](#browser-information)
|
|
101
|
-
- [getBrowserInfo](#getbrowserinfo)
|
|
102
|
-
- [isSafePWAEnv](#issafepwaenv)
|
|
103
|
-
- [Web Performance](#web-performance)
|
|
104
|
-
- [getPerformance](#getperformance)
|
|
105
|
-
- [Debug](#debug)
|
|
106
|
-
- [genCustomConsole](#gencustomconsole)
|
|
62
|
+
<!-- toc - begin -->
|
|
63
|
+
- Generated with ❤️
|
|
64
|
+
- [Load Resource](#load-resource)
|
|
65
|
+
- [loadScript](#loadscript)
|
|
66
|
+
- [loadScriptIfUndefined](#loadscriptifundefined)
|
|
67
|
+
- [loadCSS](#loadcss)
|
|
68
|
+
- [loadImage](#loadimage)
|
|
69
|
+
- [windowLoaded](#windowloaded)
|
|
70
|
+
- [Util](#util)
|
|
71
|
+
- [isNumber](#isnumber)
|
|
72
|
+
- [isJSONString](#isjsonstring)
|
|
73
|
+
- [isValidData](#isvaliddata)
|
|
74
|
+
- [genRndNumString](#genrndnumstring)
|
|
75
|
+
- [formatDate](#formatdate)
|
|
76
|
+
- [debounce](#debounce)
|
|
77
|
+
- [throttle](#throttle)
|
|
78
|
+
- [convertCamelToKebab](#convertcameltokebab)
|
|
79
|
+
- [convertCamelToUnder](#convertcameltounder)
|
|
80
|
+
- [deepCopy](#deepcopy)
|
|
81
|
+
- [URL](#url)
|
|
82
|
+
- [getQueryParam](#getqueryparam)
|
|
83
|
+
- [getUrlParam](#geturlparam)
|
|
84
|
+
- [getHashQueryParam](#gethashqueryparam)
|
|
85
|
+
- [getDomain](#getdomain)
|
|
86
|
+
- [updateQueryParam](#updatequeryparam)
|
|
87
|
+
- [isValidUrl](#isvalidurl)
|
|
88
|
+
- [isValidHttpUrl](#isvalidhttpurl)
|
|
89
|
+
- [Cache Data](#cache-data)
|
|
90
|
+
- [Cookie](#cookie)
|
|
91
|
+
- [Storage](#storage)
|
|
92
|
+
- [DOM](#dom)
|
|
93
|
+
- [addStyle](#addstyle)
|
|
94
|
+
- [Class](#class)
|
|
95
|
+
- [newLine](#newline)
|
|
96
|
+
- [Calculate and Formula](#calculate-and-formula)
|
|
97
|
+
- [inRate](#inrate)
|
|
98
|
+
- [longestComSubstring](#longestcomsubstring)
|
|
99
|
+
- [longestComSubsequence](#longestcomsubsequence)
|
|
100
|
+
- [Browser Information](#browser-information)
|
|
101
|
+
- [getBrowserInfo](#getbrowserinfo)
|
|
102
|
+
- [isSafePWAEnv](#issafepwaenv)
|
|
103
|
+
- [Web Performance](#web-performance)
|
|
104
|
+
- [getPerformance](#getperformance)
|
|
105
|
+
- [Debug](#debug)
|
|
106
|
+
- [genCustomConsole](#gencustomconsole)
|
|
107
107
|
<!-- toc - end -->
|
|
108
108
|
|
|
109
109
|
### Load Resource
|
|
@@ -988,4 +988,4 @@ npm run test
|
|
|
988
988
|
|
|
989
989
|
## License
|
|
990
990
|
|
|
991
|
-
This software is released under the terms of the [MIT license](https://github.com/mazeyqian/mazey/blob/
|
|
991
|
+
This software is released under the terms of the [MIT license](https://github.com/mazeyqian/mazey/blob/main/LICENSE).
|
package/lib/index.cjs.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* mazey v3.11.5 https://www.npmjs.com/package/mazey
|
|
3
|
-
* (c) 2018-2023 Mazey Chu
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o,i=e((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),a=(n=i)&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,u=function(t){return t&&t.Math==Math&&t},c=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},f=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),d=Function.prototype.call,p=l?d.bind(d):function(){return d.apply(d,arguments)},v={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,h=g&&!v.call({1:2},1)?function(t){var e=g(this,t);return!!e&&e.enumerable}:v,m={f:h},y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w=Function.prototype,b=w.call,x=l&&w.bind.bind(b,b),S=l?x:function(t){return function(){return b.apply(t,arguments)}},E=S({}.toString),O=S("".slice),T=function(t){return O(E(t),8,-1)},A=Object,j=S("".split),I=s((function(){return!A("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?j(t,""):A(t)}:A,P=function(t){return null==t},R=TypeError,C=function(t){if(P(t))throw R("Can't call method on "+t);return t},M=function(t){return I(C(t))},N="object"==typeof document&&document.all,_={all:N,IS_HTMLDDA:void 0===N&&void 0!==N},k=_.all,L=_.IS_HTMLDDA?function(t){return"function"==typeof t||t===k}:function(t){return"function"==typeof t},F=_.all,D=_.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===F}:function(t){return"object"==typeof t?null!==t:L(t)},U=function(t,e){return arguments.length<2?(n=c[t],L(n)?n:void 0):c[t]&&c[t][e];var n},B=S({}.isPrototypeOf),$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",V=c.process,z=c.Deno,q=V&&V.versions||z&&z.version,W=q&&q.v8;W&&(o=(r=W.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&$&&(!(r=$.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=$.match(/Chrome\/(\d+)/))&&(o=+r[1]);var G=o,H=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G&&G<41})),Y=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=Object,J=Y?function(t){return"symbol"==typeof t}:function(t){var e=U("Symbol");return L(e)&&B(e.prototype,Z(t))},K=String,Q=function(t){try{return K(t)}catch(t){return"Object"}},X=TypeError,tt=function(t){if(L(t))return t;throw X(Q(t)+" is not a function")},et=function(t,e){var n=t[e];return P(n)?void 0:tt(n)},nt=TypeError,rt=Object.defineProperty,ot=function(t,e){try{rt(c,t,{value:e,configurable:!0,writable:!0})}catch(n){c[t]=e}return e},it="__core-js_shared__",at=c[it]||ot(it,{}),ut=e((function(t){(t.exports=function(t,e){return at[t]||(at[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ct=Object,st=function(t){return ct(C(t))},ft=S({}.hasOwnProperty),lt=Object.hasOwn||function(t,e){return ft(st(t),e)},dt=0,pt=Math.random(),vt=S(1..toString),gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+vt(++dt+pt,36)},ht=c.Symbol,mt=ut("wks"),yt=Y?ht.for||ht:ht&&ht.withoutSetter||gt,wt=function(t){return lt(mt,t)||(mt[t]=H&<(ht,t)?ht[t]:yt("Symbol."+t)),mt[t]},bt=TypeError,xt=wt("toPrimitive"),St=function(t,e){if(!D(t)||J(t))return t;var n,r=et(t,xt);if(r){if(void 0===e&&(e="default"),n=p(r,t,e),!D(n)||J(n))return n;throw bt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&L(n=t.toString)&&!D(r=p(n,t)))return r;if(L(n=t.valueOf)&&!D(r=p(n,t)))return r;if("string"!==e&&L(n=t.toString)&&!D(r=p(n,t)))return r;throw nt("Can't convert object to primitive value")}(t,e)},Et=function(t){var e=St(t,"string");return J(e)?e:e+""},Ot=c.document,Tt=D(Ot)&&D(Ot.createElement),At=function(t){return Tt?Ot.createElement(t):{}},jt=!f&&!s((function(){return 7!=Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),It=Object.getOwnPropertyDescriptor,Pt={f:f?It:function(t,e){if(t=M(t),e=Et(e),jt)try{return It(t,e)}catch(t){}if(lt(t,e))return y(!p(m.f,t,e),t[e])}},Rt=f&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,Mt=TypeError,Nt=function(t){if(D(t))return t;throw Mt(Ct(t)+" is not an object")},_t=TypeError,kt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,Ft="enumerable",Dt="configurable",Ut="writable",Bt={f:f?Rt?function(t,e,n){if(Nt(t),e=Et(e),Nt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ut in n&&!n[Ut]){var r=Lt(t,e);r&&r[Ut]&&(t[e]=n.value,n={configurable:Dt in n?n[Dt]:r[Dt],enumerable:Ft in n?n[Ft]:r[Ft],writable:!1})}return kt(t,e,n)}:kt:function(t,e,n){if(Nt(t),e=Et(e),Nt(n),jt)try{return kt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw _t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},$t=f?function(t,e,n){return Bt.f(t,e,y(1,n))}:function(t,e,n){return t[e]=n,t},Vt=Function.prototype,zt=f&&Object.getOwnPropertyDescriptor,qt=lt(Vt,"name"),Wt={EXISTS:qt,PROPER:qt&&"something"===function(){}.name,CONFIGURABLE:qt&&(!f||f&&zt(Vt,"name").configurable)},Gt=S(Function.toString);L(at.inspectSource)||(at.inspectSource=function(t){return Gt(t)});var Ht,Yt,Zt,Jt=at.inspectSource,Kt=c.WeakMap,Qt=L(Kt)&&/native code/.test(String(Kt)),Xt=ut("keys"),te=function(t){return Xt[t]||(Xt[t]=gt(t))},ee={},ne="Object already initialized",re=c.TypeError,oe=c.WeakMap;if(Qt||at.state){var ie=at.state||(at.state=new oe);ie.get=ie.get,ie.has=ie.has,ie.set=ie.set,Ht=function(t,e){if(ie.has(t))throw re(ne);return e.facade=t,ie.set(t,e),e},Yt=function(t){return ie.get(t)||{}},Zt=function(t){return ie.has(t)}}else{var ae=te("state");ee[ae]=!0,Ht=function(t,e){if(lt(t,ae))throw re(ne);return e.facade=t,$t(t,ae,e),e},Yt=function(t){return lt(t,ae)?t[ae]:{}},Zt=function(t){return lt(t,ae)}}var ue,ce={set:Ht,get:Yt,has:Zt,enforce:function(t){return Zt(t)?Yt(t):Ht(t,{})},getterFor:function(t){return function(e){var n;if(!D(e)||(n=Yt(e)).type!==t)throw re("Incompatible receiver, "+t+" required");return n}}},se=e((function(t){var e=Wt.CONFIGURABLE,n=ce.enforce,r=ce.get,o=String,i=Object.defineProperty,a=S("".slice),u=S("".replace),c=S([].join),l=f&&!s((function(){return 8!==i((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=t.exports=function(t,r,s){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!lt(t,"name")||e&&t.name!==r)&&(f?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&s&<(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&<(s,"constructor")&&s.constructor?f&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return lt(p,"source")||(p.source=c(d,"string"==typeof r?r:"")),t};Function.prototype.toString=p((function(){return L(this)&&r(this).source||Jt(this)}),"toString")})),fe=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(L(n)&&se(n,i,r),r.global)o?t[e]=n:ot(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Bt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},le=Math.ceil,de=Math.floor,pe=Math.trunc||function(t){var e=+t;return(e>0?de:le)(e)},ve=function(t){var e=+t;return e!=e||0===e?0:pe(e)},ge=Math.max,he=Math.min,me=function(t,e){var n=ve(t);return n<0?ge(n+e,0):he(n,e)},ye=Math.min,we=function(t){return t>0?ye(ve(t),9007199254740991):0},be=function(t){return we(t.length)},xe=function(t){return function(e,n,r){var o,i=M(e),a=be(i),u=me(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Se={includes:xe(!0),indexOf:xe(!1)},Ee=Se.indexOf,Oe=S([].push),Te=function(t,e){var n,r=M(t),o=0,i=[];for(n in r)!lt(ee,n)&<(r,n)&&Oe(i,n);for(;e.length>o;)lt(r,n=e[o++])&&(~Ee(i,n)||Oe(i,n));return i},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=Ae.concat("length","prototype"),Ie={f:Object.getOwnPropertyNames||function(t){return Te(t,je)}},Pe={f:Object.getOwnPropertySymbols},Re=S([].concat),Ce=U("Reflect","ownKeys")||function(t){var e=Ie.f(Nt(t)),n=Pe.f;return n?Re(e,n(t)):e},Me=function(t,e,n){for(var r=Ce(e),o=Bt.f,i=Pt.f,a=0;a<r.length;a++){var u=r[a];lt(t,u)||n&<(n,u)||o(t,u,i(e,u))}},Ne=/#|\.prototype\./,_e=function(t,e){var n=Le[ke(t)];return n==De||n!=Fe&&(L(e)?s(e):!!e)},ke=_e.normalize=function(t){return String(t).replace(Ne,".").toLowerCase()},Le=_e.data={},Fe=_e.NATIVE="N",De=_e.POLYFILL="P",Ue=_e,Be=Pt.f,$e=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,f=t.stat;if(n=s?c:f?c[u]||ot(u,{}):(c[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=Be(n,r))&&a.value:n[r],!Ue(s?r:u+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Me(i,o)}(t.sham||o&&o.sham)&&$t(i,"sham",!0),fe(n,r,i,t)}},Ve=Object.keys||function(t){return Te(t,Ae)},ze=f&&!Rt?Object.defineProperties:function(t,e){Nt(t);for(var n,r=M(e),o=Ve(e),i=o.length,a=0;i>a;)Bt.f(t,n=o[a++],r[n]);return t},qe={f:ze},We=U("document","documentElement"),Ge="prototype",He="script",Ye=te("IE_PROTO"),Ze=function(){},Je=function(t){return"<"+He+">"+t+"</"+He+">"},Ke=function(t){t.write(Je("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qe=function(){try{ue=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Qe="undefined"!=typeof document?document.domain&&ue?Ke(ue):(e=At("iframe"),n="java"+He+":",e.style.display="none",We.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Je("document.F=Object")),t.close(),t.F):Ke(ue);for(var r=Ae.length;r--;)delete Qe[Ge][Ae[r]];return Qe()};ee[Ye]=!0;var Xe=Object.create||function(t,e){var n;return null!==t?(Ze[Ge]=Nt(t),n=new Ze,Ze[Ge]=null,n[Ye]=t):n=Qe(),void 0===e?n:qe.f(n,e)},tn=Bt.f,en=wt("unscopables"),nn=Array.prototype;null==nn[en]&&tn(nn,en,{configurable:!0,value:Xe(null)});var rn=function(t){nn[en][t]=!0};$e({target:"Array",proto:!0},{fill:function(t){for(var e=st(this),n=be(e),r=arguments.length,o=me(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:me(i,n);a>o;)e[o++]=t;return e}}),rn("fill");var on=Array.isArray||function(t){return"Array"==T(t)},an=TypeError,un=function(t){if(t>9007199254740991)throw an("Maximum allowed index exceeded");return t},cn=function(t,e,n){var r=Et(e);r in t?Bt.f(t,r,y(0,n)):t[r]=n},sn={};sn[wt("toStringTag")]="z";var fn="[object z]"===String(sn),ln=wt("toStringTag"),dn=Object,pn="Arguments"==T(function(){return arguments}()),vn=fn?T:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=dn(t),ln))?n:pn?T(e):"Object"==(r=T(e))&&L(e.callee)?"Arguments":r},gn=function(){},hn=[],mn=U("Reflect","construct"),yn=/^\s*(?:class|function)\b/,wn=S(yn.exec),bn=!yn.exec(gn),xn=function(t){if(!L(t))return!1;try{return mn(gn,hn,t),!0}catch(t){return!1}},Sn=function(t){if(!L(t))return!1;switch(vn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bn||!!wn(yn,Jt(t))}catch(t){return!0}};Sn.sham=!0;var En=!mn||s((function(){var t;return xn(xn.call)||!xn(Object)||!xn((function(){t=!0}))||t}))?Sn:xn,On=wt("species"),Tn=Array,An=function(t,e){return new(function(t){var e;return on(t)&&(e=t.constructor,(En(e)&&(e===Tn||on(e.prototype))||D(e)&&null===(e=e[On]))&&(e=void 0)),void 0===e?Tn:e}(t))(0===e?0:e)},jn=wt("species"),In=function(t){return G>=51||!s((function(){var e=[];return(e.constructor={})[jn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Pn=wt("isConcatSpreadable"),Rn=G>=51||!s((function(){var t=[];return t[Pn]=!1,t.concat()[0]!==t})),Cn=function(t){if(!D(t))return!1;var e=t[Pn];return void 0!==e?!!e:on(t)},Mn=!Rn||!In("concat");$e({target:"Array",proto:!0,arity:1,forced:Mn},{concat:function(t){var e,n,r,o,i,a=st(this),u=An(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Cn(i=-1===e?a:arguments[e]))for(o=be(i),un(c+o),n=0;n<o;n++,c++)n in i&&cn(u,c,i[n]);else un(c+1),cn(u,c++,i);return u.length=c,u}});var Nn=String,_n=TypeError,kn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return S(tt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Nt(n),function(t){if("object"==typeof t||L(t))return t;throw _n("Can't set "+Nn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Ln=function(t,e,n){var r,o;return kn&&L(r=e.constructor)&&r!==n&&D(o=r.prototype)&&o!==n.prototype&&kn(t,o),t},Fn=wt("match"),Dn=function(t){var e;return D(t)&&(void 0!==(e=t[Fn])?!!e:"RegExp"==T(t))},Un=String,Bn=function(t){if("Symbol"===vn(t))throw TypeError("Cannot convert a Symbol value to a string");return Un(t)},$n=function(){var t=Nt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Vn=RegExp.prototype,zn=function(t){var e=t.flags;return void 0!==e||"flags"in Vn||lt(t,"flags")||!B(Vn,t)?e:p($n,t)},qn=c.RegExp,Wn=s((function(){var t=qn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Gn=Wn||s((function(){return!qn("a","y").sticky})),Hn={BROKEN_CARET:Wn||s((function(){var t=qn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Gn,UNSUPPORTED_Y:Wn},Yn=Bt.f,Zn=function(t,e,n){n in t||Yn(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Jn=function(t,e,n){return n.get&&se(n.get,e,{getter:!0}),n.set&&se(n.set,e,{setter:!0}),Bt.f(t,e,n)},Kn=wt("species"),Qn=function(t){var e=U(t);f&&e&&!e[Kn]&&Jn(e,Kn,{configurable:!0,get:function(){return this}})},Xn=c.RegExp,tr=s((function(){var t=Xn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),er=c.RegExp,nr=s((function(){var t=er("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),rr=Ie.f,or=ce.enforce,ir=wt("match"),ar=c.RegExp,ur=ar.prototype,cr=c.SyntaxError,sr=S(ur.exec),fr=S("".charAt),lr=S("".replace),dr=S("".indexOf),pr=S("".slice),vr=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,gr=/a/g,hr=/a/g,mr=new ar(gr)!==gr,yr=Hn.MISSED_STICKY,wr=Hn.UNSUPPORTED_Y,br=f&&(!mr||yr||tr||nr||s((function(){return hr[ir]=!1,ar(gr)!=gr||ar(hr)==hr||"/a/i"!=ar(gr,"i")})));if(Ue("RegExp",br)){for(var xr=function(t,e){var n,r,o,i,a,u,c=B(ur,this),s=Dn(t),f=void 0===e,l=[],d=t;if(!c&&s&&f&&t.constructor===xr)return t;if((s||B(ur,t))&&(t=t.source,f&&(e=zn(d))),t=void 0===t?"":Bn(t),e=void 0===e?"":Bn(e),d=t,tr&&"dotAll"in gr&&(r=!!e&&dr(e,"s")>-1)&&(e=lr(e,/s/g,"")),n=e,yr&&"sticky"in gr&&(o=!!e&&dr(e,"y")>-1)&&wr&&(e=lr(e,/y/g,"")),nr&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},u=!1,c=!1,s=0,f="";r<=n;r++){if("\\"===(e=fr(t,r)))e+=fr(t,++r);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:sr(vr,pr(t,r+1))&&(r+=2,c=!0),o+=e,s++;continue;case">"===e&&c:if(""===f||lt(a,f))throw new cr("Invalid capture group name");a[f]=!0,i[i.length]=[f,s],c=!1,f="";continue}c?f+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Ln(ar(t,e),c?this:ur,xr),(r||o||l.length)&&(u=or(a),r&&(u.dotAll=!0,u.raw=xr(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=fr(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+fr(t,++r);return o}(t),n)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==d)try{$t(a,"source",""===d?"(?:)":d)}catch(t){}return a},Sr=rr(ar),Er=0;Sr.length>Er;)Zn(xr,ar,Sr[Er++]);ur.constructor=xr,xr.prototype=ur,fe(c,"RegExp",xr,{constructor:!0})}Qn("RegExp");var Or=ce.get,Tr=ut("native-string-replace",String.prototype.replace),Ar=RegExp.prototype.exec,jr=Ar,Ir=S("".charAt),Pr=S("".indexOf),Rr=S("".replace),Cr=S("".slice),Mr=function(){var t=/a/,e=/b*/g;return p(Ar,t,"a"),p(Ar,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Nr=Hn.BROKEN_CARET,_r=void 0!==/()??/.exec("")[1];(Mr||_r||Nr||tr||nr)&&(jr=function(t){var e,n,r,o,i,a,u,c=this,s=Or(c),f=Bn(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=p(jr,l,f),c.lastIndex=l.lastIndex,e;var d=s.groups,v=Nr&&c.sticky,g=p($n,c),h=c.source,m=0,y=f;if(v&&(g=Rr(g,"y",""),-1===Pr(g,"g")&&(g+="g"),y=Cr(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ir(f,c.lastIndex-1))&&(h="(?: "+h+")",y=" "+y,m++),n=new RegExp("^(?:"+h+")",g)),_r&&(n=new RegExp("^"+h+"$(?!\\s)",g)),Mr&&(r=c.lastIndex),o=p(Ar,v?n:c,y),v?o?(o.input=Cr(o.input,m),o[0]=Cr(o[0],m),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Mr&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),_r&&o&&o.length>1&&p(Tr,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Xe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var kr=jr;$e({target:"RegExp",proto:!0,forced:/./.exec!==kr},{exec:kr});var Lr=Wt.PROPER,Fr="toString",Dr=RegExp.prototype[Fr],Ur=s((function(){return"/a/b"!=Dr.call({source:"a",flags:"b"})})),Br=Lr&&Dr.name!=Fr;(Ur||Br)&&fe(RegExp.prototype,Fr,(function(){var t=Nt(this);return"/"+Bn(t.source)+"/"+Bn(zn(t))}),{unsafe:!0});var $r=function(t){if("Function"===T(t))return S(t)},Vr=wt("species"),zr=RegExp.prototype,qr=function(t,e,n,r){var o=wt(t),i=!s((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!s((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Vr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var u=$r(/./[o]),c=e(o,""[t],(function(t,e,n,r,o){var a=$r(t),c=e.exec;return c===kr||c===zr.exec?i&&!o?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));fe(String.prototype,t,c[0]),fe(zr,o,c[1])}r&&$t(zr[o],"sham",!0)},Wr=S("".charAt),Gr=S("".charCodeAt),Hr=S("".slice),Yr=function(t){return function(e,n){var r,o,i=Bn(C(e)),a=ve(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Gr(i,a))<55296||r>56319||a+1===u||(o=Gr(i,a+1))<56320||o>57343?t?Wr(i,a):r:t?Hr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Zr={codeAt:Yr(!1),charAt:Yr(!0)},Jr=Zr.charAt,Kr=function(t,e,n){return e+(n?Jr(t,e).length:1)},Qr=TypeError,Xr=function(t,e){var n=t.exec;if(L(n)){var r=p(n,t,e);return null!==r&&Nt(r),r}if("RegExp"===T(t))return p(kr,t,e);throw Qr("RegExp#exec called on incompatible receiver")};qr("match",(function(t,e,n){return[function(e){var n=C(this),r=P(e)?void 0:et(e,t);return r?p(r,e,n):new RegExp(e)[t](Bn(n))},function(t){var r=Nt(this),o=Bn(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Xr(r,o);var a=r.unicode;r.lastIndex=0;for(var u,c=[],s=0;null!==(u=Xr(r,o));){var f=Bn(u[0]);c[s]=f,""===f&&(r.lastIndex=Kr(o,we(r.lastIndex),a)),s++}return 0===s?null:c}]}));var to=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};qr("search",(function(t,e,n){return[function(e){var n=C(this),r=P(e)?void 0:et(e,t);return r?p(r,e,n):new RegExp(e)[t](Bn(n))},function(t){var r=Nt(this),o=Bn(t),i=n(e,r,o);if(i.done)return i.value;var a=r.lastIndex;to(a,0)||(r.lastIndex=0);var u=Xr(r,o);return to(r.lastIndex,a)||(r.lastIndex=a),null===u?-1:u.index}]}));var eo=Function.prototype,no=eo.apply,ro=eo.call,oo="object"==typeof Reflect&&Reflect.apply||(l?ro.bind(no):function(){return ro.apply(no,arguments)}),io=Math.floor,ao=S("".charAt),uo=S("".replace),co=S("".slice),so=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,fo=/\$([$&'`]|\d{1,2})/g,lo=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,c=fo;return void 0!==o&&(o=st(o),c=so),uo(i,c,(function(i,c){var s;switch(ao(c,0)){case"$":return"$";case"&":return t;case"`":return co(e,0,n);case"'":return co(e,a);case"<":s=o[co(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>u){var l=io(f/10);return 0===l?i:l<=u?void 0===r[l-1]?ao(c,1):r[l-1]+ao(c,1):i}s=r[f-1]}return void 0===s?"":s}))},po=wt("replace"),vo=Math.max,go=Math.min,ho=S([].concat),mo=S([].push),yo=S("".indexOf),wo=S("".slice),bo="$0"==="a".replace(/./,"$0"),xo=!!/./[po]&&""===/./[po]("a","$0");qr("replace",(function(t,e,n){var r=xo?"$":"$0";return[function(t,n){var r=C(this),o=P(t)?void 0:et(t,po);return o?p(o,t,r,n):p(e,Bn(r),t,n)},function(t,o){var i=Nt(this),a=Bn(t);if("string"==typeof o&&-1===yo(o,r)&&-1===yo(o,"$<")){var u=n(e,i,a,o);if(u.done)return u.value}var c=L(o);c||(o=Bn(o));var s=i.global;if(s){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var d=Xr(i,a);if(null===d)break;if(mo(l,d),!s)break;""===Bn(d[0])&&(i.lastIndex=Kr(a,we(i.lastIndex),f))}for(var p,v="",g=0,h=0;h<l.length;h++){for(var m=Bn((d=l[h])[0]),y=vo(go(ve(d.index),a.length),0),w=[],b=1;b<d.length;b++)mo(w,void 0===(p=d[b])?p:String(p));var x=d.groups;if(c){var S=ho([m],w,y,a);void 0!==x&&mo(S,x);var E=Bn(oo(o,void 0,S))}else E=lo(m,a,y,w,x,o);y>=g&&(v+=wo(a,g,y)+E,g=y+m.length)}return v+wo(a,g)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!bo||xo);var So=function(t,e){var n=[][t];return!!n&&s((function(){n.call(null,e||function(){return 1},1)}))},Eo=Se.indexOf,Oo=$r([].indexOf),To=!!Oo&&1/Oo([1],1,-0)<0,Ao=To||!So("indexOf");$e({target:"Array",proto:!0,forced:Ao},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return To?Oo(this,t,e)||0:Eo(this,t,e)}});var jo=TypeError,Io=function(t){return function(e,n,r,o){tt(n);var i=st(e),a=I(i),u=be(i),c=t?u-1:0,s=t?-1:1;if(r<2)for(;;){if(c in a){o=a[c],c+=s;break}if(c+=s,t?c<0:u<=c)throw jo("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=s)c in a&&(o=n(o,a[c],c,i));return o}},Po={left:Io(!1),right:Io(!0)},Ro="undefined"!=typeof process&&"process"==T(process),Co=Po.left,Mo=!Ro&&G>79&&G<83||!So("reduce");$e({target:"Array",proto:!0,forced:Mo},{reduce:function(t){var e=arguments.length;return Co(this,t,e,e>1?arguments[1]:void 0)}});var No=fn?{}.toString:function(){return"[object "+vn(this)+"]"};fn||fe(Object.prototype,"toString",No,{unsafe:!0});var _o=S([].slice),ko=In("slice"),Lo=wt("species"),Fo=Array,Do=Math.max;$e({target:"Array",proto:!0,forced:!ko},{slice:function(t,e){var n,r,o,i=M(this),a=be(i),u=me(t,a),c=me(void 0===e?a:e,a);if(on(i)&&(n=i.constructor,(En(n)&&(n===Fo||on(n.prototype))||D(n)&&null===(n=n[Lo]))&&(n=void 0),n===Fo||void 0===n))return _o(i,u,c);for(r=new(void 0===n?Fo:n)(Do(c-u,0)),o=0;u<c;u++,o++)u in i&&cn(r,o,i[u]);return r.length=o,r}});var Uo=S(m.f),Bo=S([].push),$o=function(t){return function(e){for(var n,r=M(e),o=Ve(r),i=o.length,a=0,u=[];i>a;)n=o[a++],f&&!Uo(r,n)||Bo(u,t?[n,r[n]]:r[n]);return u}},Vo={entries:$o(!0),values:$o(!1)}.values;$e({target:"Object",stat:!0},{values:function(t){return Vo(t)}});var zo=$r($r.bind),qo=function(t,e){return tt(t),void 0===e?t:l?zo(t,e):function(){return t.apply(e,arguments)}},Wo=S([].push),Go=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,s,f,l){for(var d,p,v=st(c),g=I(v),h=qo(s,f),m=be(g),y=0,w=l||An,b=e?w(c,m):n||a?w(c,0):void 0;m>y;y++)if((u||y in g)&&(p=h(d=g[y],y,v),t))if(e)b[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:Wo(b,d)}else switch(t){case 4:return!1;case 7:Wo(b,d)}return i?-1:r||o?o:b}},Ho={forEach:Go(0),map:Go(1),filter:Go(2),some:Go(3),every:Go(4),find:Go(5),findIndex:Go(6),filterReject:Go(7)},Yo=Ho.every,Zo=So("every");$e({target:"Array",proto:!0,forced:!Zo},{every:function(t){return Yo(this,t,arguments.length>1?arguments[1]:void 0)}});var Jo=Se.includes,Ko=s((function(){return!Array(1).includes()}));$e({target:"Array",proto:!0,forced:Ko},{includes:function(t){return Jo(this,t,arguments.length>1?arguments[1]:void 0)}}),rn("includes");var Qo=S(1..valueOf),Xo=RangeError,ti=RangeError,ei=String,ni=Math.floor,ri=S((function(t){var e=Bn(C(this)),n="",r=ve(t);if(r<0||r==1/0)throw Xo("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),oi=S("".slice),ii=S(1..toFixed),ai=function(t,e,n){return 0===e?n:e%2==1?ai(t,e-1,n*t):ai(t*t,e/2,n)},ui=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=ni(o/1e7)},ci=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=ni(r/e),r=r%e*1e7},si=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=ei(t[e]);n=""===n?r:n+ri("0",7-r.length)+r}return n},fi=s((function(){return"0.000"!==ii(8e-5,3)||"1"!==ii(.9,0)||"1.25"!==ii(1.255,2)||"1000000000000000128"!==ii(0xde0b6b3a7640080,0)}))||!s((function(){ii({})}));$e({target:"Number",proto:!0,forced:fi},{toFixed:function(t){var e,n,r,o,i=Qo(this),a=ve(t),u=[0,0,0,0,0,0],c="",s="0";if(a<0||a>20)throw ti("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return ei(i);if(i<0&&(c="-",i=-i),i>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*ai(2,69,1))-69,n=e<0?i*ai(2,-e,1):i/ai(2,e,1),n*=4503599627370496,(e=52-e)>0){for(ui(u,0,n),r=a;r>=7;)ui(u,1e7,0),r-=7;for(ui(u,ai(10,r,1),0),r=e-1;r>=23;)ci(u,1<<23),r-=23;ci(u,1<<r),ui(u,1,1),ci(u,2),s=si(u)}else ui(u,0,n),ui(u,1<<-e,0),s=si(u)+ri("0",a);return s=a>0?c+((o=s.length)<=a?"0."+ri("0",a-o)+s:oi(s,0,o-a)+"."+oi(s,o-a)):c+s}});var li="\t\n\v\f\r \u2028\u2029\ufeff",di=S("".replace),pi=RegExp("^["+li+"]+"),vi=RegExp("(^|[^"+li+"])["+li+"]+$"),gi=function(t){return function(e){var n=Bn(C(e));return 1&t&&(n=di(n,pi,"")),2&t&&(n=di(n,vi,"$1")),n}},hi={start:gi(1),end:gi(2),trim:gi(3)},mi=hi.trim,yi=S("".charAt),wi=c.parseFloat,bi=c.Symbol,xi=bi&&bi.iterator,Si=1/wi(li+"-0")!=-1/0||xi&&!s((function(){wi(Object(xi))}))?function(t){var e=mi(Bn(t)),n=wi(e);return 0===n&&"-"==yi(e,0)?-0:n}:wi;$e({global:!0,forced:parseFloat!=Si},{parseFloat:Si});var Ei=TypeError,Oi=wt("species"),Ti=function(t,e){var n,r=Nt(t).constructor;return void 0===r||P(n=Nt(r)[Oi])?e:function(t){if(En(t))return t;throw Ei(Q(t)+" is not a constructor")}(n)},Ai=Array,ji=Math.max,Ii=function(t,e,n){for(var r=be(t),o=me(e,r),i=me(void 0===n?r:n,r),a=Ai(ji(i-o,0)),u=0;o<i;o++,u++)cn(a,u,t[o]);return a.length=u,a},Pi=Hn.UNSUPPORTED_Y,Ri=4294967295,Ci=Math.min,Mi=[].push,Ni=S(/./.exec),_i=S(Mi),ki=S("".slice);qr("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=Bn(C(this)),o=void 0===n?Ri:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Dn(t))return p(e,r,t,o);for(var i,a,u,c=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,l=new RegExp(t.source,s+"g");(i=p(kr,l,r))&&!((a=l.lastIndex)>f&&(_i(c,ki(r,f,i.index)),i.length>1&&i.index<r.length&&oo(Mi,c,Ii(i,1)),u=i[0].length,f=a,c.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return f===r.length?!u&&Ni(l,"")||_i(c,""):_i(c,ki(r,f)),c.length>o?Ii(c,0,o):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:p(e,this,t,n)}:e,[function(e,n){var o=C(this),i=P(e)?void 0:et(e,t);return i?p(i,e,o,n):p(r,Bn(o),e,n)},function(t,o){var i=Nt(this),a=Bn(t),u=n(r,i,a,o,r!==e);if(u.done)return u.value;var c=Ti(i,RegExp),s=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Pi?"g":"y"),l=new c(Pi?"^(?:"+i.source+")":i,f),d=void 0===o?Ri:o>>>0;if(0===d)return[];if(0===a.length)return null===Xr(l,a)?[a]:[];for(var p=0,v=0,g=[];v<a.length;){l.lastIndex=Pi?0:v;var h,m=Xr(l,Pi?ki(a,v):a);if(null===m||(h=Ci(we(l.lastIndex+(Pi?v:0)),a.length))===p)v=Kr(a,v,s);else{if(_i(g,ki(a,p,v)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(_i(g,m[y]),g.length===d)return g;v=p=h}}return _i(g,ki(a,p)),g}]}),!!s((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Pi);var Li=Object.assign,Fi=Object.defineProperty,Di=S([].concat),Ui=!Li||s((function(){if(f&&1!==Li({b:1},Li(Fi({},"a",{enumerable:!0,get:function(){Fi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Li({},t)[n]||Ve(Li({},e)).join("")!=r}))?function(t,e){for(var n=st(t),r=arguments.length,o=1,i=Pe.f,a=m.f;r>o;)for(var u,c=I(arguments[o++]),s=i?Di(Ve(c),i(c)):Ve(c),l=s.length,d=0;l>d;)u=s[d++],f&&!p(a,c,u)||(n[u]=c[u]);return n}:Li;$e({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ui},{assign:Ui});var Bi=c,$i=Ie.f,Vi=Pt.f,zi=Bt.f,qi=hi.trim,Wi="Number",Gi=c[Wi];Bi[Wi];var Hi=Gi.prototype,Yi=c.TypeError,Zi=S("".slice),Ji=S("".charCodeAt),Ki=function(t){var e,n,r,o,i,a,u,c,s=St(t,"number");if(J(s))throw Yi("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=qi(s),43===(e=Ji(s,0))||45===e){if(88===(n=Ji(s,2))||120===n)return NaN}else if(48===e){switch(Ji(s,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(a=(i=Zi(s,2)).length,u=0;u<a;u++)if((c=Ji(i,u))<48||c>o)return NaN;return parseInt(i,r)}return+s},Qi=Ue(Wi,!Gi(" 0o1")||!Gi("0b1")||Gi("+0x1")),Xi=function(t){var e,n=arguments.length<1?0:Gi(function(t){var e=St(t,"number");return"bigint"==typeof e?e:Ki(e)}(t));return B(Hi,e=this)&&s((function(){Qo(e)}))?Ln(Object(n),this,Xi):n};Xi.prototype=Hi,Qi&&(Hi.constructor=Xi),$e({global:!0,constructor:!0,wrap:!0,forced:Qi},{Number:Xi});Qi&&function(t,e){for(var n,r=f?$i(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)lt(e,n=r[o])&&!lt(t,n)&&zi(t,n,Vi(e,n))}(Bi[Wi],Gi);var ta,ea,na,ra,oa=Bt.f,ia=wt("toStringTag"),aa=function(t,e,n){t&&!n&&(t=t.prototype),t&&!lt(t,ia)&&oa(t,ia,{configurable:!0,value:e})},ua=TypeError,ca=TypeError,sa=/(?:ipad|iphone|ipod).*applewebkit/i.test($),fa=c.setImmediate,la=c.clearImmediate,da=c.process,pa=c.Dispatch,va=c.Function,ga=c.MessageChannel,ha=c.String,ma=0,ya={},wa="onreadystatechange";s((function(){ta=c.location}));var ba=function(t){if(lt(ya,t)){var e=ya[t];delete ya[t],e()}},xa=function(t){return function(){ba(t)}},Sa=function(t){ba(t.data)},Ea=function(t){c.postMessage(ha(t),ta.protocol+"//"+ta.host)};fa&&la||(fa=function(t){!function(t,e){if(t<e)throw ca("Not enough arguments")}(arguments.length,1);var e=L(t)?t:va(t),n=_o(arguments,1);return ya[++ma]=function(){oo(e,void 0,n)},ea(ma),ma},la=function(t){delete ya[t]},Ro?ea=function(t){da.nextTick(xa(t))}:pa&&pa.now?ea=function(t){pa.now(xa(t))}:ga&&!sa?(ra=(na=new ga).port2,na.port1.onmessage=Sa,ea=qo(ra.postMessage,ra)):c.addEventListener&&L(c.postMessage)&&!c.importScripts&&ta&&"file:"!==ta.protocol&&!s(Ea)?(ea=Ea,c.addEventListener("message",Sa,!1)):ea=wa in At("script")?function(t){We.appendChild(At("script"))[wa]=function(){We.removeChild(this),ba(t)}}:function(t){setTimeout(xa(t),0)});var Oa={set:fa,clear:la},Ta=function(){this.head=null,this.tail=null};Ta.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Aa,ja,Ia,Pa,Ra,Ca=Ta,Ma=/ipad|iphone|ipod/i.test($)&&"undefined"!=typeof Pebble,Na=/web0s(?!.*chrome)/i.test($),_a=Pt.f,ka=Oa.set,La=c.MutationObserver||c.WebKitMutationObserver,Fa=c.document,Da=c.process,Ua=c.Promise,Ba=_a(c,"queueMicrotask"),$a=Ba&&Ba.value;if(!$a){var Va=new Ca,za=function(){var t,e;for(Ro&&(t=Da.domain)&&t.exit();e=Va.get();)try{e()}catch(t){throw Va.head&&Aa(),t}t&&t.enter()};sa||Ro||Na||!La||!Fa?!Ma&&Ua&&Ua.resolve?((Pa=Ua.resolve(void 0)).constructor=Ua,Ra=qo(Pa.then,Pa),Aa=function(){Ra(za)}):Ro?Aa=function(){Da.nextTick(za)}:(ka=qo(ka,c),Aa=function(){ka(za)}):(ja=!0,Ia=Fa.createTextNode(""),new La(za).observe(Ia,{characterData:!0}),Aa=function(){Ia.data=ja=!ja}),$a=function(t){Va.head||Aa(),Va.add(t)}}var qa=$a,Wa=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ga=c.Promise,Ha="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ya=!Ha&&!Ro&&"object"==typeof window&&"object"==typeof document;Ga&&Ga.prototype;var Za,Ja,Ka,Qa=wt("species"),Xa=!1,tu=L(c.PromiseRejectionEvent),eu=Ue("Promise",(function(){var t=Jt(Ga),e=t!==String(Ga);if(!e&&66===G)return!0;if(!G||G<51||!/native code/.test(t)){var n=new Ga((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Qa]=r,!(Xa=n.then((function(){}))instanceof r))return!0}return!e&&(Ya||Ha)&&!tu})),nu={CONSTRUCTOR:eu,REJECTION_EVENT:tu,SUBCLASSING:Xa},ru=TypeError,ou=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw ru("Bad Promise constructor");e=t,n=r})),this.resolve=tt(e),this.reject=tt(n)},iu={f:function(t){return new ou(t)}},au=Oa.set,uu="Promise",cu=nu.CONSTRUCTOR,su=nu.REJECTION_EVENT,fu=nu.SUBCLASSING,lu=ce.getterFor(uu),du=ce.set,pu=Ga&&Ga.prototype,vu=Ga,gu=pu,hu=c.TypeError,mu=c.document,yu=c.process,wu=iu.f,bu=wu,xu=!!(mu&&mu.createEvent&&c.dispatchEvent),Su="unhandledrejection",Eu=function(t){var e;return!(!D(t)||!L(e=t.then))&&e},Ou=function(t,e){var n,r,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,c=t.resolve,s=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&Pu(e),e.rejection=1),!0===u?n=i:(f&&f.enter(),n=u(i),f&&(f.exit(),o=!0)),n===t.promise?s(hu("Promise-chain cycle")):(r=Eu(n))?p(r,n,c,s):c(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},Tu=function(t,e){t.notified||(t.notified=!0,qa((function(){for(var n,r=t.reactions;n=r.get();)Ou(n,t);t.notified=!1,e&&!t.rejection&&ju(t)})))},Au=function(t,e,n){var r,o;xu?((r=mu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!su&&(o=c["on"+t])?o(r):t===Su&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},ju=function(t){p(au,c,(function(){var e,n=t.facade,r=t.value;if(Iu(t)&&(e=Wa((function(){Ro?yu.emit("unhandledRejection",r,n):Au(Su,n,r)})),t.rejection=Ro||Iu(t)?2:1,e.error))throw e.value}))},Iu=function(t){return 1!==t.rejection&&!t.parent},Pu=function(t){p(au,c,(function(){var e=t.facade;Ro?yu.emit("rejectionHandled",e):Au("rejectionhandled",e,t.value)}))},Ru=function(t,e,n){return function(r){t(e,r,n)}},Cu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Tu(t,!0))},Mu=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw hu("Promise can't be resolved itself");var r=Eu(e);r?qa((function(){var n={done:!1};try{p(r,e,Ru(Mu,n,t),Ru(Cu,n,t))}catch(e){Cu(n,e,t)}})):(t.value=e,t.state=1,Tu(t,!1))}catch(e){Cu({done:!1},e,t)}}};if(cu&&(gu=(vu=function(t){!function(t,e){if(B(e,t))return t;throw ua("Incorrect invocation")}(this,gu),tt(t),p(Za,this);var e=lu(this);try{t(Ru(Mu,e),Ru(Cu,e))}catch(t){Cu(e,t)}}).prototype,(Za=function(t){du(this,{type:uu,done:!1,notified:!1,parent:!1,reactions:new Ca,rejection:!1,state:0,value:void 0})}).prototype=fe(gu,"then",(function(t,e){var n=lu(this),r=wu(Ti(this,vu));return n.parent=!0,r.ok=!L(t)||t,r.fail=L(e)&&e,r.domain=Ro?yu.domain:void 0,0==n.state?n.reactions.add(r):qa((function(){Ou(r,n)})),r.promise})),Ja=function(){var t=new Za,e=lu(t);this.promise=t,this.resolve=Ru(Mu,e),this.reject=Ru(Cu,e)},iu.f=wu=function(t){return t===vu||undefined===t?new Ja(t):bu(t)},L(Ga)&&pu!==Object.prototype)){Ka=pu.then,fu||fe(pu,"then",(function(t,e){var n=this;return new vu((function(t,e){p(Ka,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete pu.constructor}catch(t){}kn&&kn(pu,gu)}$e({global:!0,constructor:!0,wrap:!0,forced:cu},{Promise:vu}),aa(vu,uu,!1),Qn(uu);var Nu={},_u=wt("iterator"),ku=Array.prototype,Lu=function(t){return void 0!==t&&(Nu.Array===t||ku[_u]===t)},Fu=wt("iterator"),Du=function(t){if(!P(t))return et(t,Fu)||et(t,"@@iterator")||Nu[vn(t)]},Uu=TypeError,Bu=function(t,e){var n=arguments.length<2?Du(t):e;if(tt(n))return Nt(p(n,t));throw Uu(Q(t)+" is not iterable")},$u=function(t,e,n){var r,o;Nt(t);try{if(!(r=et(t,"return"))){if("throw"===e)throw n;return n}r=p(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Nt(r),n},Vu=TypeError,zu=function(t,e){this.stopped=t,this.result=e},qu=zu.prototype,Wu=function(t,e,n){var r,o,i,a,u,c,s,f=n&&n.that,l=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),h=qo(e,f),m=function(t){return r&&$u(r,"normal",t),new zu(!0,t)},y=function(t){return l?(Nt(t),g?h(t[0],t[1],m):h(t[0],t[1])):g?h(t,m):h(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=Du(t)))throw Vu(Q(t)+" is not iterable");if(Lu(o)){for(i=0,a=be(t);a>i;i++)if((u=y(t[i]))&&B(qu,u))return u;return new zu(!1)}r=Bu(t,o)}for(c=d?t.next:r.next;!(s=p(c,r)).done;){try{u=y(s.value)}catch(t){$u(r,"throw",t)}if("object"==typeof u&&u&&B(qu,u))return u}return new zu(!1)},Gu=wt("iterator"),Hu=!1;try{var Yu=0,Zu={next:function(){return{done:!!Yu++}},return:function(){Hu=!0}};Zu[Gu]=function(){return this},Array.from(Zu,(function(){throw 2}))}catch(t){}var Ju=function(t,e){if(!e&&!Hu)return!1;var n=!1;try{var r={};r[Gu]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Ku=nu.CONSTRUCTOR||!Ju((function(t){Ga.all(t).then(void 0,(function(){}))}));$e({target:"Promise",stat:!0,forced:Ku},{all:function(t){var e=this,n=iu.f(e),r=n.resolve,o=n.reject,i=Wa((function(){var n=tt(e.resolve),i=[],a=0,u=1;Wu(t,(function(t){var c=a++,s=!1;u++,p(n,e,t).then((function(t){s||(s=!0,i[c]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var Qu=nu.CONSTRUCTOR,Xu=Ga&&Ga.prototype;if($e({target:"Promise",proto:!0,forced:Qu,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(Ga)){var tc=U("Promise").prototype.catch;Xu.catch!==tc&&fe(Xu,"catch",tc,{unsafe:!0})}$e({target:"Promise",stat:!0,forced:Ku},{race:function(t){var e=this,n=iu.f(e),r=n.reject,o=Wa((function(){var o=tt(e.resolve);Wu(t,(function(t){p(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),$e({target:"Promise",stat:!0,forced:nu.CONSTRUCTOR},{reject:function(t){var e=iu.f(this);return p(e.reject,void 0,t),e.promise}});var ec=nu.CONSTRUCTOR;U("Promise"),$e({target:"Promise",stat:!0,forced:ec},{resolve:function(t){return function(t,e){if(Nt(t),D(e)&&e.constructor===t)return e;var n=iu.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var nc=Wt.EXISTS,rc=Function.prototype,oc=S(rc.toString),ic=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ac=S(ic.exec);f&&!nc&&Jn(rc,"name",{configurable:!0,get:function(){try{return ac(ic,oc(this))[1]}catch(t){return""}}});var uc=S([].join),cc=I!=Object||!So("join",",");$e({target:"Array",proto:!0,forced:cc},{join:function(t){return uc(M(this),void 0===t?",":t)}});var sc,fc=Wt.PROPER,lc=hi.trim;$e({target:"String",proto:!0,forced:(sc="trim",s((function(){return!!li[sc]()||"
"!=="
"[sc]()||fc&&li[sc].name!==sc})))},{trim:function(){return lc(this)}});var dc,pc=TypeError,vc=function(t){if(Dn(t))throw pc("The method doesn't accept regular expressions");return t},gc=wt("match"),hc=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[gc]=!1,"/./"[t](e)}catch(t){}}return!1},mc=Pt.f,yc=$r("".startsWith),wc=$r("".slice),bc=Math.min,xc=hc("startsWith"),Sc=!(xc||(dc=mc(String.prototype,"startsWith"),!dc||dc.writable));$e({target:"String",proto:!0,forced:!Sc&&!xc},{startsWith:function(t){var e=Bn(C(this));vc(t);var n=we(bc(arguments.length>1?arguments[1]:void 0,e.length)),r=Bn(t);return yc?yc(e,r,n):wc(e,n,n+r.length)===r}});var Ec=S("".indexOf);$e({target:"String",proto:!0,forced:!hc("includes")},{includes:function(t){return!!~Ec(Bn(C(this)),Bn(vc(t)),arguments.length>1?arguments[1]:void 0)}});var Oc=Ho.find,Tc="find",Ac=!0;Tc in[]&&Array(1)[Tc]((function(){Ac=!1})),$e({target:"Array",proto:!0,forced:Ac},{find:function(t){return Oc(this,t,arguments.length>1?arguments[1]:void 0)}}),rn(Tc);var jc=Ho.forEach,Ic=So("forEach")?[].forEach:function(t){return jc(this,t,arguments.length>1?arguments[1]:void 0)};$e({target:"Array",proto:!0,forced:[].forEach!=Ic},{forEach:Ic});var Pc={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},Rc=At("span").classList,Cc=Rc&&Rc.constructor&&Rc.constructor.prototype,Mc=Cc===Object.prototype?void 0:Cc,Nc=function(t){if(t&&t.forEach!==Ic)try{$t(t,"forEach",Ic)}catch(e){t.forEach=Ic}};for(var _c in Pc)Pc[_c]&&Nc(c[_c]&&c[_c].prototype);Nc(Mc);var kc=s((function(){Ve(1)}));$e({target:"Object",stat:!0,forced:kc},{keys:function(t){return Ve(st(t))}});var Lc,Fc,Dc,Uc=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Bc=te("IE_PROTO"),$c=Object,Vc=$c.prototype,zc=Uc?$c.getPrototypeOf:function(t){var e=st(t);if(lt(e,Bc))return e[Bc];var n=e.constructor;return L(n)&&e instanceof n?n.prototype:e instanceof $c?Vc:null},qc=wt("iterator"),Wc=!1;[].keys&&("next"in(Dc=[].keys())?(Fc=zc(zc(Dc)))!==Object.prototype&&(Lc=Fc):Wc=!0);var Gc=!D(Lc)||s((function(){var t={};return Lc[qc].call(t)!==t}));Gc&&(Lc={}),L(Lc[qc])||fe(Lc,qc,(function(){return this}));var Hc={IteratorPrototype:Lc,BUGGY_SAFARI_ITERATORS:Wc},Yc=Hc.IteratorPrototype,Zc=function(){return this},Jc=Wt.PROPER,Kc=Wt.CONFIGURABLE,Qc=Hc.IteratorPrototype,Xc=Hc.BUGGY_SAFARI_ITERATORS,ts=wt("iterator"),es="keys",ns="values",rs="entries",os=function(){return this},is=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Xe(Yc,{next:y(+!r,n)}),aa(t,o,!1),Nu[o]=Zc}(n,e,r);var u,c,s,f=function(t){if(t===o&&h)return h;if(!Xc&&t in v)return v[t];switch(t){case es:case ns:case rs:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,v=t.prototype,g=v[ts]||v["@@iterator"]||o&&v[o],h=!Xc&&g||f(o),m="Array"==e&&v.entries||g;if(m&&(u=zc(m.call(new t)))!==Object.prototype&&u.next&&(zc(u)!==Qc&&(kn?kn(u,Qc):L(u[ts])||fe(u,ts,os)),aa(u,l,!0)),Jc&&o==ns&&g&&g.name!==ns&&(Kc?$t(v,"name",ns):(d=!0,h=function(){return p(g,this)})),o)if(c={values:f(ns),keys:i?h:f(es),entries:f(rs)},a)for(s in c)(Xc||d||!(s in v))&&fe(v,s,c[s]);else $e({target:e,proto:!0,forced:Xc||d},c);return v[ts]!==h&&fe(v,ts,h,{name:o}),Nu[e]=h,c},as=function(t,e){return{value:t,done:e}},us=Bt.f,cs="Array Iterator",ss=ce.set,fs=ce.getterFor(cs),ls=is(Array,"Array",(function(t,e){ss(this,{type:cs,target:M(t),index:0,kind:e})}),(function(){var t=fs(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,as(void 0,!0)):as("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),ds=Nu.Arguments=Nu.Array;if(rn("keys"),rn("values"),rn("entries"),f&&"values"!==ds.name)try{us(ds,"name",{value:"values"})}catch(t){}var ps=Zr.charAt,vs="String Iterator",gs=ce.set,hs=ce.getterFor(vs);is(String,"String",(function(t){gs(this,{type:vs,string:Bn(t),index:0})}),(function(){var t,e=hs(this),n=e.string,r=e.index;return r>=n.length?as(void 0,!0):(t=ps(n,r),e.index+=t.length,as(t,!1))}));var ms=wt("iterator"),ys=wt("toStringTag"),ws=ls.values,bs=function(t,e){if(t){if(t[ms]!==ws)try{$t(t,ms,ws)}catch(e){t[ms]=ws}if(t[ys]||$t(t,ys,e),Pc[e])for(var n in ls)if(t[n]!==ls[n])try{$t(t,n,ls[n])}catch(e){t[n]=ls[n]}}};for(var xs in Pc)bs(c[xs]&&c[xs].prototype,xs);bs(Mc,"DOMTokenList");var Ss=s((function(){zc(1)}));$e({target:"Object",stat:!0,forced:Ss,sham:!Uc},{getPrototypeOf:function(t){return zc(st(t))}});var Es=TypeError,Os=Object.getOwnPropertyDescriptor,Ts=f&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(on(t)&&!Os(t,"length").writable)throw Es("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},As=TypeError,js=function(t,e){if(!delete t[e])throw As("Cannot delete property "+Q(e)+" of "+Q(t))},Is=In("splice"),Ps=Math.max,Rs=Math.min;$e({target:"Array",proto:!0,forced:!Is},{splice:function(t,e){var n,r,o,i,a,u,c=st(this),s=be(c),f=me(t,s),l=arguments.length;for(0===l?n=r=0:1===l?(n=0,r=s-f):(n=l-2,r=Rs(Ps(ve(e),0),s-f)),un(s+n-r),o=An(c,r),i=0;i<r;i++)(a=f+i)in c&&cn(o,i,c[a]);if(o.length=r,n<r){for(i=f;i<s-r;i++)u=i+n,(a=i+r)in c?c[u]=c[a]:js(c,u);for(i=s;i>s-r+n;i--)js(c,i-1)}else if(n>r)for(i=s-r;i>f;i--)u=i+n-1,(a=i+r-1)in c?c[u]=c[a]:js(c,u);for(i=0;i<n;i++)c[i+f]=arguments[i+2];return Ts(c,s-r+n),o}});var Cs=function(t,e,n,r){try{return r?e(Nt(n)[0],n[1]):e(n)}catch(e){$u(t,"throw",e)}},Ms=Array,Ns=!Ju((function(t){Array.from(t)}));$e({target:"Array",stat:!0,forced:Ns},{from:function(t){var e=st(t),n=En(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=qo(o,r>2?arguments[2]:void 0));var a,u,c,s,f,l,d=Du(e),v=0;if(!d||this===Ms&&Lu(d))for(a=be(e),u=n?new this(a):Ms(a);a>v;v++)l=i?o(e[v],v):e[v],cn(u,v,l);else for(f=(s=Bu(e,d)).next,u=n?new this:[];!(c=p(f,s)).done;v++)l=i?Cs(s,o,[c.value,v],!0):c.value,cn(u,v,l);return u.length=v,u}});var _s=function(){return _s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},_s.apply(this,arguments)};function ks(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}function Ls(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function Fs(t,e){for(var n=t.length,r=e.length,o=Vs(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}var c=Array.prototype.concat.apply([],o);return Math.max.apply(Math,c)}function Ds(t,e){for(var n=t.length,r=e.length,o=Vs(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}else{var c=[0,0],s=c[0],f=c[1];a>0&&(s=o[i][a-1]),i>0&&(f=o[i-1][a]),o[i][a]=Math.max(s,f)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)}function Us(t){var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substring(1):e}function Bs(t){var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substring(1):e}function $s(t){return Bs(t)}function Vs(t){if("object"!==a(t))return t;var e=["string","number","boolean","undefined"];return Object.values(t).every((function(t){return e.includes(a(t))}))?_s({},t):JSON.parse(JSON.stringify(t))}function zs(t){try{if("object"===a(JSON.parse(t)))return!0}catch(t){}return!1}function qs(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}function Ws(t){return void 0===t&&(t=5),qs(t)}function Gs(t){void 0===t&&(t=3);var e=[Ks(),Ws(t||3)];return e[0]+e[1]}var Hs={type:"d"};function Ys(t,e){void 0===e&&(e={});var n=e.isNaNAsNumber,r=void 0!==n&&n,o=e.isInfinityAsNumber,i=void 0!==o&&o,a=e.isUnFiniteAsNumber;return"number"==typeof t&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(t))&&!(!r&&isNaN(t)))}function Zs(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=null;return t&&"function"==typeof t&&(r=t.apply(void 0,e)),r}function Js(t,e){void 0===e&&(e={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},e),i=o.id,a=o.callback,u=o.timeout,c=o.isDefer,s=document.createElement("script");s||Promise.reject("Not support create script element");var f=document.getElementsByTagName("script")[0];return s.type="text/javascript",c&&(s.defer=!0),i&&(s.id=i),s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,Zs(a),Zs(n,"loaded"))}:s.onload=function(){Zs(a),Zs(n,"loaded")},s.src=t,f&&f.parentNode.insertBefore(s,f),new Promise((function(t,e){var o;n=(o=[t,e])[0],r=o[1],u&&setTimeout(r.bind(null,"timeout"),u)}))}function Ks(){return Date.now?Date.now():(new Date).getTime()}function Qs(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}function Xs(t){var e=[],n=window.PerformanceObserver;return!!n&&(of(n.supportedEntryTypes)&&(e=n.supportedEntryTypes),e.includes(t))}function tf(){return ks(this,void 0,void 0,(function(){return Ls(this,(function(t){return Xs("paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-contentful-paint"===t.name}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function ef(){return ks(this,void 0,void 0,(function(){return Ls(this,(function(t){return Xs("paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-paint"===t.name}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function nf(){if(window.MAZEY_BROWSER_INFO&&"object"===a(window.MAZEY_BROWSER_INFO))return window.MAZEY_BROWSER_INFO;var t={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""};try{var e=navigator.userAgent.toLowerCase();if(!e)return t;var n=function(t){return t.test(e)},r=function(t){var n="",r=e.match(t);return r&&of(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},o="",i="";n(/windows|win32|win64|wow32|wow64/g)?o="windows":n(/macintosh|macintel/g)?o="macos":n(/x11/g)?o="linux":n(/android|adr/g)?o="android":n(/ios|iphone|ipad|ipod|iwatch/g)&&(o="ios",n(/ipad/g)?i="ipad":n(/iphone/g)?i="iphone":n(/iwatch/g)?i="iwatch":n(/ipod/g)&&(i="ipod")),t=_s(_s({},t),{system:o,appleType:i});var u="";"windows"===o?n(/windows nt 5.0|windows 2000/g)?u="2000":n(/windows nt 5.1|windows xp/g)?u="xp":n(/windows nt 5.2|windows 2003/g)?u="2003":n(/windows nt 6.0|windows vista/g)?u="vista":n(/windows nt 6.1|windows 7/g)?u="7":n(/windows nt 6.2|windows 8/g)?u="8":n(/windows nt 6.3|windows 8.1/g)?u="8.1":n(/windows nt 10.0|windows 10/g)&&(u="10"):"macos"===o?u=r(/os x [\d._]+/g):"android"===o?u=r(/android [\d._]+/g):"ios"===o&&(u=r(/os [\d._]+/g)),t=_s(_s({},t),{systemVs:u});var c="";"windows"===o||"macos"===o||"linux"===o?c="desktop":("android"===o||"ios"===o||n(/mobile/g))&&(c="mobile"),t=_s(_s({},t),{platform:c});var s="",f="";n(/applewebkit/g)?(s="webkit",n(/edge/g)?f="edge":n(/opr/g)?f="opera":n(/chrome/g)?f="chrome":n(/safari/g)&&(f="safari")):n(/gecko/g)&&n(/firefox/g)?(s="gecko",f="firefox"):n(/presto/g)?(s="presto",f="opera"):n(/trident|compatible|msie/g)&&(s="trident",f="iexplore"),t=_s(_s({},t),{engine:s,supporter:f});var l="";"webkit"===s?l=r(/applewebkit\/[\d._]+/g):"gecko"===s?l=r(/gecko\/[\d._]+/g):"presto"===s?l=r(/presto\/[\d._]+/g):"trident"===s&&(l=r(/trident\/[\d._]+/g)),t=_s(_s({},t),{engineVs:l});var d="";"chrome"===f?d=r(/chrome\/[\d._]+/g):"safari"===f?d=r(/version\/[\d._]+/g):"firefox"===f?d=r(/firefox\/[\d._]+/g):"opera"===f?d=r(/opr\/[\d._]+/g):"iexplore"===f?d=r(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===f&&(d=r(/edge\/[\d._]+/g)),t=_s(_s({},t),{supporterVs:d});var p="",v="";return n(/micromessenger/g)?(p="wechat",v=r(/micromessenger\/[\d._]+/g)):n(/qqbrowser/g)?(p="qq_browser",v=r(/qqbrowser\/[\d._]+/g)):n(/\sqq/g)?p="qq_app":n(/ucbrowser/g)?(p="uc",v=r(/ucbrowser\/[\d._]+/g)):n(/qihu 360se/g)?p="360":n(/2345explorer/g)?(p="2345",v=r(/2345explorer\/[\d._]+/g)):n(/metasr/g)?p="sougou":n(/lbbrowser/g)?p="liebao":n(/maxthon/g)?(p="maxthon",v=r(/maxthon\/[\d._]+/g)):n(/biliapp/g)&&(p="bilibili"),t=_s(_s({},t),{shell:p,shellVs:v}),window.MAZEY_BROWSER_INFO=t,t}catch(e){return console.warn("MazeyCon:",e),t}}function rf(t,e,n){if(void 0===n&&(n=!1),""!=t&&t){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",u=t.replace(i,"**").length,c=0;c<u&&(null!=(a=t.charAt(c).toString()).match(i)?r+=2:r++,!(r>e));c++)o+=a;return n&&u>e&&(o+="..."),o}return""}function of(t){var e=!1;return Array.isArray(t)&&t.length&&(e=!0),e}function af(){var t=window.MAZEY_DEFINE_LISTENERS;return"object"!==a(t)&&(t={},window.MAZEY_DEFINE_LISTENERS=t),t}function uf(t){return ks(this,void 0,void 0,(function(){return Ls(this,(function(e){return[2,new Promise((function(e){setTimeout((function(){e(t)}),t)}))]}))}))}exports.addClass=function(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n},exports.addEvent=function(t,e){var n=af();void 0===n[t]&&(n[t]=[]),"function"==typeof e&&n[t].push(e)},exports.addStyle=function(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return e.id?(o="".concat(e.id),(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n)),!0},exports.calLongestCommonSubsequence=function(t,e){return Ds(t,e)},exports.calLongestCommonSubstring=function(t,e){return Fs(t,e)},exports.camelCase2Underscore=$s,exports.camelCaseToKebabCase=function(t){return Us(t)},exports.cancelBubble=function(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},exports.clearHtml=function(t,e){void 0===e&&(e={});var n=e.removeNewLine,r=void 0!==n&&n,o="";return t&&(o=t.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o},exports.convert10To26=function(t){for(var e="";t>0;){var n=t%26;0===n&&(n=26),e=String.fromCharCode(n+96)+e,t=(t-n)/26}return e},exports.convertCamelToKebab=Us,exports.convertCamelToUnder=Bs,exports.cutCHSString=function(t,e,n){return void 0===n&&(n=!1),rf(t,e,n)},exports.debounce=function(t,e,n){var r=null,o=null,i=null,a=null,u=null,c=function c(){var s=Ks()-i;s<e&&s>=0?o=setTimeout(c,e-s):(o=null,n||(u=t.apply(r,a),o||(r=a=null)))};return function(){for(var s=[],f=0;f<arguments.length;f++)s[f]=arguments[f];r=this,a=s,i=Ks();var l=n&&!o;return o||(o=setTimeout(c,e)),l&&(u=t.apply(r,a),r=a=null),u}},exports.deepCopy=Vs,exports.deepCopyObject=function(t){return Vs(t)},exports.delCookie=function(t){for(var e=document.cookie.split(";"),n=0;n<e.length;n++){var r=e[n].trim();if(r.startsWith("".concat(t,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1},exports.doFn=Zs,exports.floatFixed=function(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)},exports.floatToPercent=function(t,e){void 0===e&&(e=0);var n="";return n=e?(100*t).toFixed(e):String(Math.floor(100*t)),"".concat(n,"%")},exports.formatDate=function(t,e){void 0===e&&(e="yyyy-MM-dd"),t||(t=new Date);var n=new Date(t),r={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate()<10?"0"+n.getDate():n.getDate(),hh:n.getHours()<10?"0"+n.getHours():n.getHours(),mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds()},o=e||"yyyy-MM-dd";return Object.keys(r).forEach((function(t){var e=r[t];"MM"===t&&Number(e)<=9&&(e="0".concat(e)),o=o.replace(t,String(e))})),o},exports.genCustomConsole=function(t,e){void 0===t&&(t=""),void 0===e&&(e={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},e),r=n.isClosed,o=n.showWrap,i=n.showDate,a=n.locales,u=n.logFn,c=n.errorFn,s=Object.create(null),f=function(){return(new Date).toLocaleDateString(a,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(e){s[e]=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r)return!1;var s=t,l=t;if("string"==typeof t&&t.length>=2){var d=t.length;s=":"===t[d-1]?t.substring(0,d-1):t}o&&console.log("--- ".concat(s," - begin ---")),i&&(l=t?"".concat(f()," ").concat(t):"".concat(f())),t||i?console[e].apply(console,function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}([l],n)):console[e].apply(console,n),"log"===e&&u(),"error"===e&&c(),o&&console.log("--- ".concat(s," - end ---"))}})),s},exports.genHashCode=function(t){var e,n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},exports.genRndNumString=qs,exports.genStyleString=function(t,e){var n="";return e&&e.length>0&&(n=e.join(";")+";"),"".concat(t,"{").concat(n,"}")},exports.genUniqueNumString=Gs,exports.generateRndNum=Ws,exports.generateUniqueNum=function(t){return void 0===t&&(t=3),Gs(t)},exports.getBrowserInfo=nf,exports.getCLS=function(){return ks(this,void 0,void 0,(function(){return Ls(this,(function(t){return Xs("layout-shift")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().reduce((function(t,e){var n=0;return Ys(e.value)&&(n=e.value),t+n}),0);e.disconnect(),t(r)}));e.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))},exports.getCookie=Qs,exports.getCurrentVersion=function(){return"v3"},exports.getDefineListeners=af,exports.getDomain=function(t,e){void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")},exports.getFCP=tf,exports.getFID=function(){return ks(this,void 0,void 0,(function(){return Ls(this,(function(t){return Xs("first-input")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-input"===t.entryType}));if(r){e.disconnect();var o=r.processingStart;t(o?Math.round(r.processingStart-r.startTime):0)}}));e.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))},exports.getFP=ef,exports.getFileSize=function(t){var e=function(t){return String(Math.ceil(t))};if(!t)return"";var n=1024;return t<n?t+" B":t<Math.pow(n,2)?e(t/n)+" KB":t<Math.pow(n,3)?e(t/Math.pow(n,2))+" MB":t<Math.pow(n,4)?e(t/Math.pow(n,3))+" G":e(t/Math.pow(n,4))+" T"},exports.getFriendlyInterval=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=Hs);var r=(n=Object.assign(Hs,n)).type;Ys(t)||(t=new Date(t).getTime()),Ys(e)||(e=new Date(e).getTime());var o=Number(e)-Number(t),i="",a=new Array(4).fill(0),u=a[0],c=(a[1],a[2],a[3]),s=decodeURIComponent("%20%E5%A4%A9%20"),f=decodeURIComponent("%20%E6%97%B6%20"),l=decodeURIComponent("%20%E5%88%86%20"),d=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(u=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),c=Math.floor(o/1e3),r){case"d":i=u;break;case"text":i=(u=Math.floor(o/1e3/60/60/24))+s+Math.floor(o/1e3/60/60%24)+f+Math.floor(o/1e3/60%60)+l+(c=Math.floor(o/1e3%60))+d;break;default:i=c}return i},exports.getHashQueryParam=function(t){var e=location.hash.split("?");if(1===e.length)return"";var n=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)")),r=e[1].match(n);return r?r[2]:""},exports.getLCP=function(){return ks(this,void 0,void 0,(function(){return Ls(this,(function(t){return Xs("largest-contentful-paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"largest-contentful-paint"===t.entryType}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))},exports.getLocalStorage=function(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e},exports.getPerformance=function(t){return void 0===t&&(t=!1),ks(this,void 0,void 0,(function(){function e(){var e={source:_,os:n(),osVersion:r(),deviceType:o(),network:i(),screenDirection:a(),unloadTime:v-g,redirectTime:h-m,dnsTime:y-w,tcpTime:b-x,sslTime:u(b,S),responseTime:E-O,downloadTime:T-E,firstPaintTime:F,firstContentfulPaintTime:D,domReadyTime:A-k,onloadTime:j-k,whiteTime:E-k,renderTime:I-k,decodedBodySize:C,encodedBodySize:M};Object.keys(e).forEach((function(t){Ys(e[t])&&(e[t]<0?e[t]=0:e[t]=Math.round(e[t]))})),Ys(e.whiteTime)&&e.whiteTime>e.onloadTime&&(e.whiteTime=0);var c={};t||Object.keys(e).forEach((function(t){c[$s(t)]=e[t]})),Object.keys(c).length?s(c):s(e)}function n(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function r(){var t="",e=navigator.userAgent,n=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return t;var i=o[1];return i?(n&&(t=(i.match(/\d+\.\d+/g)||[])[0]),r&&(t=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),t||(t=""),t):t}function o(){var t,e=navigator.userAgent.toLowerCase(),n=e.match(/(ipad)/i)&&"ipad",r=e.match(/iphone os/i)&&"iphone os",o=e.match(/midp/i)&&"midp",i=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=e.match(/ucweb/i)&&"ucweb",u=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",s=e.match(/windows mobile/i)&&"windows mobile";return(t=n||r||o||i||a||u||c||s?r||o||i||a||u||c||s?"phone":n?"ipad":void 0:"pc")||(t=""),t}function i(){var t="",e=window.navigator;if(e.connection&&e.connection.effectiveType)switch(e.connection.effectiveType){case"wifi":t="wifi";break;case"4g":t="4g";break;case"2g":t="2g";break;case"3g":t="3g";break;case"ethernet":t="ethernet";break;case"default":t=void 0}return t||(t=""),t}function a(){var t="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(t="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(t="-")),t}function u(t,e){var n=0;return e&&(n=t-e),n}var c,s,f,l,d,p,v,g,h,m,y,w,b,x,S,E,O,T,A,j,I,P,R,C,M,N,_,k,L,F,D;return Ls(this,(function(t){switch(t.label){case 0:if(!Xs("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(c=window.performance)||"function"!=typeof c.getEntries||"function"!=typeof c.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(f=new Promise((function(t){s=[t][0]})),l=null,of(d=c.getEntriesByType("navigation"))&&(l=d[0]),p=new Array(19).fill(0),v=p[0],g=p[1],h=p[2],m=p[3],y=p[4],w=p[5],b=p[6],x=p[7],S=p[8],E=p[9],O=p[10],T=p[11],A=p[12],j=p[13],I=p[14],P=p[15],R=p[16],C=p[17],M=p[18],N=c.timing,_="",l)_="PerformanceNavigationTiming",C=l.decodedBodySize,M=l.encodedBodySize,v=l.unloadEventEnd,g=l.unloadEventStart,h=l.redirectEnd,m=l.redirectStart,y=l.domainLookupEnd,w=l.domainLookupStart,b=l.connectEnd,x=l.connectStart,S=l.secureConnectionStart,E=l.responseStart,O=l.requestStart,T=l.responseEnd,A=l.domContentLoadedEventStart,j=l.loadEventStart,I=l.loadEventEnd,P=l.startTime,R=l.fetchStart;else{if(!N)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];_="PerformanceTiming",v=N.unloadEventEnd,g=N.unloadEventStart,h=N.redirectEnd,m=N.redirectStart,y=N.domainLookupEnd,w=N.domainLookupStart,b=N.connectEnd,x=N.connectStart,S=N.secureConnectionStart,E=N.responseStart,O=N.requestStart,T=N.responseEnd,A=N.domContentLoadedEventStart,j=N.loadEventStart,I=N.loadEventEnd,P=N.navigationStart,R=N.fetchStart}if(k=0,Ys(P))k=P;else{if(!Ys(R))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];k=R}return[4,Promise.all([ef(),tf()])];case 1:return L=t.sent(),F=L[0],D=L[1],Ys(I)&&I>0?e():window.addEventListener("load",(function(){window.setTimeout((function(){e()}),0)})),[2,f]}}))}))},exports.getQueryParam=function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substring(1).match(e);return null!==n?decodeURIComponent(n[2]):""},exports.getScriptQueryParam=function(t,e){void 0===e&&(e=""),e||(e=".js");for(var n=new RegExp("[?&]".concat(t,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(e,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(e)){var a=i.match(n);if(a)return decodeURIComponent(a[1])}}return""},exports.getSessionStorage=function(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e},exports.getTTFB=function(){return ks(this,void 0,void 0,(function(){var t,e;return Ls(this,(function(n){return Xs("navigation")&&window.performance&&window.performance.getEntriesByType?(t=performance.getEntriesByType("navigation")[0],0,t?(e=t.responseStart-t.requestStart,[2,Math.round(e)]):[2,0]):[2,0]}))}))},exports.getUrlFileType=function(t){var e="";if("string"!=typeof t||""==t)return e;var n=/\.[^/?#]+$/.exec(t);return n?(n[0].length>1&&(e=n[0].substring(1)),e):e},exports.getUrlParam=function(t,e){var n={};return t.replace(/\??(\w+)=([^&]*)&?/g,(function(t,e,r){if(void 0!==n[e]){var o=n[e];n[e]=[].concat(o,r)}else n[e]=r;return""})),n[e]||""},exports.hasClass=function(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},exports.inRate=function(t){return Math.random()<t},exports.invokeEvent=function(t){var e=af()[t];if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)"function"==typeof e[n]&&e[n]({type:t})},exports.isJSONString=zs,exports.isJsonString=function(t){return zs(t)},exports.isNonEmptyArray=of,exports.isNumber=Ys,exports.isSafePWAEnv=function(){var t=nf();return!(!("serviceWorker"in navigator&&function(){var t;try{return t=new Function("return async function(){};")(),null!=Object.getPrototypeOf(t).constructor}catch(t){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||t.shell)},exports.isSupportWebp=function(){return new Promise((function(t){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},exports.isValidData=function(t,e,n){var r=!1;return"object"!==a(t)||e.reduce((function(t,e){return void 0===t[e]?Object.create(null):t=t[e]}),t)===n&&(r=!0),r},exports.isValidEmail=function(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},exports.isValidHttpUrl=function(t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/.test(t)},exports.isValidPhoneNumber=function(t){return/^1\d{10}$/.test(t)},exports.isValidUrl=function(t){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(t)},exports.loadCSS=function(t,e){void 0===e&&(e={id:""});var n,r=e.id,o=function(){},i=new Promise((function(t,e){var r;n=(r=[t,e])[0],o=r[1]})),a=function(){n("loaded")},u=document.createElement("link");u||o(new Error("Not support create link element"));var c="onload"in u,s=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(u.rel="stylesheet",u.type="text/css",u.href=t,void 0!==r&&(u.id=r),document.getElementsByTagName("head")[0].appendChild(u),s||!c)return setTimeout((function(){l(u,a,0)}),1),i;function f(){u&&(u.onload=u.onerror=u.onreadystatechange=null),u=null,a()}function l(t,e,n){if(t){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t&&(t=null),void e();if(s)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(t){var i=t;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?e():l(t,e,n)}),20)}}return c?(u.onload=f,u.onerror=function(){f()}):u.onreadystatechange=function(){u&&/loaded|complete/.test(u.readyState)&&f()},i},exports.loadImage=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=function(t){n(t)},r.src=t}))},exports.loadScript=Js,exports.loadScriptIfUndefined=function(t,e){return window[t]?Promise.resolve("defined"):Js(e)},exports.longestComSubsequence=Ds,exports.longestComSubstring=Fs,exports.mNow=Ks,exports.mTrim=function(t){for(var e=(t=t.replace(/^\s+/,"")).length-1,n=/\s/;n.test(t.charAt(e));)e--;return t.slice(0,e+1)},exports.newLine=function(t){if(!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")},exports.removeClass=function(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n},exports.removeEvent=function(t,e){var n=af(),r=n[t];if("string"==typeof t&&r instanceof Array)if("function"==typeof e){for(var o=0,i=r.length;o<i;o++)if(r[o]===e){n[t].splice(o,1);break}}else delete n[t]},exports.repeatUntilConditionMet=function(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=function(t){return!0===t});var o=e.interval,i=void 0===o?1e3:o,a=e.times,u=void 0===a?10:a,c=e.context,s=e.args,f=0;"function"!=typeof t&&console.error("Expected a function."),("number"!=typeof i||i<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for times."),function e(){setTimeout((function(){return ks(r,void 0,void 0,(function(){var r;return Ls(this,(function(o){switch(o.label){case 0:return[4,t.apply(c,s)];case 1:return r=o.sent(),n(r)||++f>=u?[2]:(e(),[2])}}))}))}),i)}()},exports.sanitizeInput=function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/[&<>"'/]/g,(function(t){return e[t]}))},exports.setCookie=function(t,e,n,r){var o,i;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var u=location.host;1===u.split(".").length?document.cookie=t+"="+e+i+"; path=/":((o=u.split(".")).shift(),r=r||"."+o.join("."),document.cookie=t+"="+e+i+"; path=/; domain="+r,null!==Qs(t)&&Qs(t)===e||(r=r||"."+u,document.cookie=t+"="+e+i+"; path=/; domain="+r))},exports.setImgWidHeiBySrc=function(){var t,e=window.jQuery||window.$;return e?!(!(t=e("img"))||!t.length)&&(t.each((function(){var t=e(this);if(t){var n=t.attr("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&of(r)&&r[1]&&t.width(r[1]),o&&of(o)&&o[1]&&t.height(o[1])}}})),!0):(t=document.getElementsByTagName("img")).length>0&&(Array.from(t).forEach((function(t){var e=t;if(e){var n=e.getAttribute("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&of(r)&&r[1]&&(e.style.width=r[1]),o&&of(o)&&o[1]&&(e.style.height=o[1])}}})),!0)},exports.setLocalStorage=function(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))},exports.setSessionStorage=function(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))},exports.sleep=function(t){return ks(this,void 0,void 0,(function(){return Ls(this,(function(e){return[2,uf(t)]}))}))},exports.throttle=function(t,e,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],u=a[0],c=a[1],s=function(){c=!1===n.leading?0:Ks(),i=null,u=t.apply(this,o),i||(r=o=null)};return function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var l=Ks();c||!1!==n.leading||(c=l);var d=e-(l-c);return r=this,o=a,d<=0||d>e?(i&&(clearTimeout(i),i=null),c=l,u=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(s.bind(r),d)),u}},exports.truncateZHString=rf,exports.unsanitize=function(t){var e={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/(&|<|>|"|'|/)/g,(function(t){return e[t]}))},exports.updateQueryParam=function(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n},exports.waitTime=uf,exports.windowLoaded=function(t){void 0===t&&(t=90);var e,n=function(){},r=new Promise((function(t,r){n=t,e=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return e(Error("timeout"))}),1e3*t),r},exports.zAxiosIsValidRes=function(t,e){void 0===e&&(e={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},e),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(t&&t.status&&2===r.length&&t.status>=r[0]&&t.status<r[1]){var a=t.data;a&&o.includes(a.code)&&(i=!0)}return i};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author:
|
|
2
|
+
* @author: Cheng
|
|
3
3
|
*/
|
|
4
|
+
/// <reference types="global" />
|
|
4
5
|
import { BrowserInfo, DefineListeners, ThrottleFunc, DebounceFunc, IsNumberOptions, AnyFunction, ZResResponse, ZResIsValidResOptions, RepeatUntilOptions, LoadScriptReturns, SimpleType, UnknownFnParams, UnknownFnReturn, UnknownObject, UnknownFn } from './typing';
|
|
5
6
|
/**
|
|
6
7
|
* EN: Computes the longest common substring of two strings.
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAIH,OAAO,EACL,WAAW,EACX,eAAe,EAIf,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EAEV,eAAe,EACf,eAAe,EACf,aAAa,EACb,SAAS,EAEV,MAAM,UAAU,CAAC;AAElB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAqBtE;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5E;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CA8BxE;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQnD;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAczE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAQlF;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQvD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,WAAiB,GAAG,MAAM,CAOrE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQzC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM3C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAkBrC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAE3C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CASjD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEjD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAI,GAAG,MAAM,CAM7C;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAI,GAAG,MAAM,CAE5C;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAI,GAAG,MAAM,CAGhD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAI,GAAG,MAAM,CAE/C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,SAAI,GAAG,MAAM,CAQ/D;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,SAAI,GAAG,MAAM,CAExD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,CAS3C;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAS/D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAS5D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAQ/D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,eAAe,KAAK,eAAe,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,YAAY,CAAC,CAAC,CAAC,CAsCjL;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,eAAe,KAAK,eAAe,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC,CAmC7I;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,GAAE,MAAM,GAAG,MAAM,GAAG,IAAQ,EAAE,GAAG,GAAE,MAAM,GAAG,MAAM,GAAG,IAAQ,EAAE,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAsC,GAAG,MAAM,GAAG,MAAM,CAkCvL;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAgB7E;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,GAAG,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAMxG;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,CAAC,GAAG,IAAW,GAAG,IAAI,CAI9E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAS1D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,CAAC,GAAG,IAAW,GAAG,IAAI,CAI5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CASxD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CA2G5F;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACP,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,eAAe,KAAK,eAAe,CAAC;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CAQnB,GACA,iBAAiB,CAmDnB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,IAAI,IAAI,MAAM,CAQ7B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAoC3F;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAW9C;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAqB/C;AAED;;GAEG;AACH,UAAU,cAAc;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAChC;AAcD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAe9C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAe7C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAe9C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAoB9C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAmB9C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAc/C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,cAAc,CAAC,SAAS,UAAQ,GAAG,OAAO,CAAC,cAAc,GAAG,KAAK,CAAC,CA+QvF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK5C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,IAAI,OAAO,CA4BtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,cAAc,IAAI,WAAW,CA+M5C;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,MAAM,CAWxF;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAcnD;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAehD;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,MAAM,CA4BjF;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,MAAM,CAE7E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAAC,OAAO,SAAK,GAAG,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,CAelE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAe,GAAG,OAAO,CAiCtF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,SAAK,EACX,OAAO,GAAE;IACP,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CAQtB,GACA,OAAO,CA0ET;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,YAAY,GAAG,SAAS,EAC7B,OAAO,GAAE,qBAGR,GACA,OAAO,CAmBT;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,OAAO,CAMzD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAiBtG;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBhD;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAYhD;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAU/C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,EAAE,MAAM,SAAe,GAAG,MAAM,CAwB1F;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CAOpD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,GAAG,IAAI,CAQ1D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAY9C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,GAAG,IAAI,CAe7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAG/C;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAG1D;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGnD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAWjD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAa5D;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CA6C3C;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAMlF;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAWhE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,eAAe,KAAK,eAAe,EAC7F,QAAQ,EAAE,CAAC,EACX,OAAO,GAAE,kBAAuB,EAChC,SAAS,GAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAErC,GACA,IAAI,CA2BN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAK7F;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,SAAK,GAAG,MAAM,CAgB3E;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAM5D;AAED;;;;GAIG;AACH,wBAAsB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEzD"}
|
package/lib/index.esm.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* mazey v3.11.5 https://www.npmjs.com/package/mazey
|
|
3
|
-
* (c) 2018-2023 Mazey Chu
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o,i=e((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),a=(n=i)&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,u=function(t){return t&&t.Math==Math&&t},c=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof t&&t)||function(){return this}()||Function("return this")(),f=function(t){try{return!!t()}catch(t){return!0}},s=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!f((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),d=Function.prototype.call,p=l?d.bind(d):function(){return d.apply(d,arguments)},v={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,g=h&&!v.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:v,y={f:g},m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w=Function.prototype,b=w.call,E=l&&w.bind.bind(b,b),S=l?E:function(t){return function(){return b.apply(t,arguments)}},x=S({}.toString),O=S("".slice),T=function(t){return O(x(t),8,-1)},A=Object,j=S("".split),I=f((function(){return!A("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?j(t,""):A(t)}:A,R=function(t){return null==t},P=TypeError,M=function(t){if(R(t))throw P("Can't call method on "+t);return t},_=function(t){return I(M(t))},N="object"==typeof document&&document.all,C={all:N,IS_HTMLDDA:void 0===N&&void 0!==N},k=C.all,L=C.IS_HTMLDDA?function(t){return"function"==typeof t||t===k}:function(t){return"function"==typeof t},F=C.all,D=C.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===F}:function(t){return"object"==typeof t?null!==t:L(t)},B=function(t,e){return arguments.length<2?(n=c[t],L(n)?n:void 0):c[t]&&c[t][e];var n},U=S({}.isPrototypeOf),$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",z=c.process,q=c.Deno,G=z&&z.versions||q&&q.version,V=G&&G.v8;V&&(o=(r=V.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&$&&(!(r=$.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=$.match(/Chrome\/(\d+)/))&&(o=+r[1]);var W=o,Y=!!Object.getOwnPropertySymbols&&!f((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41})),Z=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=Object,J=Z?function(t){return"symbol"==typeof t}:function(t){var e=B("Symbol");return L(e)&&U(e.prototype,H(t))},K=String,X=function(t){try{return K(t)}catch(t){return"Object"}},Q=TypeError,tt=function(t){if(L(t))return t;throw Q(X(t)+" is not a function")},et=function(t,e){var n=t[e];return R(n)?void 0:tt(n)},nt=TypeError,rt=Object.defineProperty,ot=function(t,e){try{rt(c,t,{value:e,configurable:!0,writable:!0})}catch(n){c[t]=e}return e},it="__core-js_shared__",at=c[it]||ot(it,{}),ut=e((function(t){(t.exports=function(t,e){return at[t]||(at[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ct=Object,ft=function(t){return ct(M(t))},st=S({}.hasOwnProperty),lt=Object.hasOwn||function(t,e){return st(ft(t),e)},dt=0,pt=Math.random(),vt=S(1..toString),ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+vt(++dt+pt,36)},gt=c.Symbol,yt=ut("wks"),mt=Z?gt.for||gt:gt&>.withoutSetter||ht,wt=function(t){return lt(yt,t)||(yt[t]=Y&<(gt,t)?gt[t]:mt("Symbol."+t)),yt[t]},bt=TypeError,Et=wt("toPrimitive"),St=function(t,e){if(!D(t)||J(t))return t;var n,r=et(t,Et);if(r){if(void 0===e&&(e="default"),n=p(r,t,e),!D(n)||J(n))return n;throw bt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&L(n=t.toString)&&!D(r=p(n,t)))return r;if(L(n=t.valueOf)&&!D(r=p(n,t)))return r;if("string"!==e&&L(n=t.toString)&&!D(r=p(n,t)))return r;throw nt("Can't convert object to primitive value")}(t,e)},xt=function(t){var e=St(t,"string");return J(e)?e:e+""},Ot=c.document,Tt=D(Ot)&&D(Ot.createElement),At=function(t){return Tt?Ot.createElement(t):{}},jt=!s&&!f((function(){return 7!=Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),It=Object.getOwnPropertyDescriptor,Rt={f:s?It:function(t,e){if(t=_(t),e=xt(e),jt)try{return It(t,e)}catch(t){}if(lt(t,e))return m(!p(y.f,t,e),t[e])}},Pt=s&&f((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Mt=String,_t=TypeError,Nt=function(t){if(D(t))return t;throw _t(Mt(t)+" is not an object")},Ct=TypeError,kt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,Ft="enumerable",Dt="configurable",Bt="writable",Ut={f:s?Pt?function(t,e,n){if(Nt(t),e=xt(e),Nt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Bt in n&&!n[Bt]){var r=Lt(t,e);r&&r[Bt]&&(t[e]=n.value,n={configurable:Dt in n?n[Dt]:r[Dt],enumerable:Ft in n?n[Ft]:r[Ft],writable:!1})}return kt(t,e,n)}:kt:function(t,e,n){if(Nt(t),e=xt(e),Nt(n),jt)try{return kt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ct("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},$t=s?function(t,e,n){return Ut.f(t,e,m(1,n))}:function(t,e,n){return t[e]=n,t},zt=Function.prototype,qt=s&&Object.getOwnPropertyDescriptor,Gt=lt(zt,"name"),Vt={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!s||s&&qt(zt,"name").configurable)},Wt=S(Function.toString);L(at.inspectSource)||(at.inspectSource=function(t){return Wt(t)});var Yt,Zt,Ht,Jt=at.inspectSource,Kt=c.WeakMap,Xt=L(Kt)&&/native code/.test(String(Kt)),Qt=ut("keys"),te=function(t){return Qt[t]||(Qt[t]=ht(t))},ee={},ne="Object already initialized",re=c.TypeError,oe=c.WeakMap;if(Xt||at.state){var ie=at.state||(at.state=new oe);ie.get=ie.get,ie.has=ie.has,ie.set=ie.set,Yt=function(t,e){if(ie.has(t))throw re(ne);return e.facade=t,ie.set(t,e),e},Zt=function(t){return ie.get(t)||{}},Ht=function(t){return ie.has(t)}}else{var ae=te("state");ee[ae]=!0,Yt=function(t,e){if(lt(t,ae))throw re(ne);return e.facade=t,$t(t,ae,e),e},Zt=function(t){return lt(t,ae)?t[ae]:{}},Ht=function(t){return lt(t,ae)}}var ue,ce={set:Yt,get:Zt,has:Ht,enforce:function(t){return Ht(t)?Zt(t):Yt(t,{})},getterFor:function(t){return function(e){var n;if(!D(e)||(n=Zt(e)).type!==t)throw re("Incompatible receiver, "+t+" required");return n}}},fe=e((function(t){var e=Vt.CONFIGURABLE,n=ce.enforce,r=ce.get,o=String,i=Object.defineProperty,a=S("".slice),u=S("".replace),c=S([].join),l=s&&!f((function(){return 8!==i((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=t.exports=function(t,r,f){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!lt(t,"name")||e&&t.name!==r)&&(s?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&f&<(f,"arity")&&t.length!==f.arity&&i(t,"length",{value:f.arity});try{f&<(f,"constructor")&&f.constructor?s&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return lt(p,"source")||(p.source=c(d,"string"==typeof r?r:"")),t};Function.prototype.toString=p((function(){return L(this)&&r(this).source||Jt(this)}),"toString")})),se=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(L(n)&&fe(n,i,r),r.global)o?t[e]=n:ot(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ut.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},le=Math.ceil,de=Math.floor,pe=Math.trunc||function(t){var e=+t;return(e>0?de:le)(e)},ve=function(t){var e=+t;return e!=e||0===e?0:pe(e)},he=Math.max,ge=Math.min,ye=function(t,e){var n=ve(t);return n<0?he(n+e,0):ge(n,e)},me=Math.min,we=function(t){return t>0?me(ve(t),9007199254740991):0},be=function(t){return we(t.length)},Ee=function(t){return function(e,n,r){var o,i=_(e),a=be(i),u=ye(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Se={includes:Ee(!0),indexOf:Ee(!1)},xe=Se.indexOf,Oe=S([].push),Te=function(t,e){var n,r=_(t),o=0,i=[];for(n in r)!lt(ee,n)&<(r,n)&&Oe(i,n);for(;e.length>o;)lt(r,n=e[o++])&&(~xe(i,n)||Oe(i,n));return i},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=Ae.concat("length","prototype"),Ie={f:Object.getOwnPropertyNames||function(t){return Te(t,je)}},Re={f:Object.getOwnPropertySymbols},Pe=S([].concat),Me=B("Reflect","ownKeys")||function(t){var e=Ie.f(Nt(t)),n=Re.f;return n?Pe(e,n(t)):e},_e=function(t,e,n){for(var r=Me(e),o=Ut.f,i=Rt.f,a=0;a<r.length;a++){var u=r[a];lt(t,u)||n&<(n,u)||o(t,u,i(e,u))}},Ne=/#|\.prototype\./,Ce=function(t,e){var n=Le[ke(t)];return n==De||n!=Fe&&(L(e)?f(e):!!e)},ke=Ce.normalize=function(t){return String(t).replace(Ne,".").toLowerCase()},Le=Ce.data={},Fe=Ce.NATIVE="N",De=Ce.POLYFILL="P",Be=Ce,Ue=Rt.f,$e=function(t,e){var n,r,o,i,a,u=t.target,f=t.global,s=t.stat;if(n=f?c:s?c[u]||ot(u,{}):(c[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=Ue(n,r))&&a.value:n[r],!Be(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;_e(i,o)}(t.sham||o&&o.sham)&&$t(i,"sham",!0),se(n,r,i,t)}},ze=Object.keys||function(t){return Te(t,Ae)},qe=s&&!Pt?Object.defineProperties:function(t,e){Nt(t);for(var n,r=_(e),o=ze(e),i=o.length,a=0;i>a;)Ut.f(t,n=o[a++],r[n]);return t},Ge={f:qe},Ve=B("document","documentElement"),We="prototype",Ye="script",Ze=te("IE_PROTO"),He=function(){},Je=function(t){return"<"+Ye+">"+t+"</"+Ye+">"},Ke=function(t){t.write(Je("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xe=function(){try{ue=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Xe="undefined"!=typeof document?document.domain&&ue?Ke(ue):(e=At("iframe"),n="java"+Ye+":",e.style.display="none",Ve.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Je("document.F=Object")),t.close(),t.F):Ke(ue);for(var r=Ae.length;r--;)delete Xe[We][Ae[r]];return Xe()};ee[Ze]=!0;var Qe=Object.create||function(t,e){var n;return null!==t?(He[We]=Nt(t),n=new He,He[We]=null,n[Ze]=t):n=Xe(),void 0===e?n:Ge.f(n,e)},tn=Ut.f,en=wt("unscopables"),nn=Array.prototype;null==nn[en]&&tn(nn,en,{configurable:!0,value:Qe(null)});var rn=function(t){nn[en][t]=!0};$e({target:"Array",proto:!0},{fill:function(t){for(var e=ft(this),n=be(e),r=arguments.length,o=ye(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:ye(i,n);a>o;)e[o++]=t;return e}}),rn("fill");var on=Array.isArray||function(t){return"Array"==T(t)},an=TypeError,un=function(t){if(t>9007199254740991)throw an("Maximum allowed index exceeded");return t},cn=function(t,e,n){var r=xt(e);r in t?Ut.f(t,r,m(0,n)):t[r]=n},fn={};fn[wt("toStringTag")]="z";var sn="[object z]"===String(fn),ln=wt("toStringTag"),dn=Object,pn="Arguments"==T(function(){return arguments}()),vn=sn?T:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=dn(t),ln))?n:pn?T(e):"Object"==(r=T(e))&&L(e.callee)?"Arguments":r},hn=function(){},gn=[],yn=B("Reflect","construct"),mn=/^\s*(?:class|function)\b/,wn=S(mn.exec),bn=!mn.exec(hn),En=function(t){if(!L(t))return!1;try{return yn(hn,gn,t),!0}catch(t){return!1}},Sn=function(t){if(!L(t))return!1;switch(vn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bn||!!wn(mn,Jt(t))}catch(t){return!0}};Sn.sham=!0;var xn=!yn||f((function(){var t;return En(En.call)||!En(Object)||!En((function(){t=!0}))||t}))?Sn:En,On=wt("species"),Tn=Array,An=function(t,e){return new(function(t){var e;return on(t)&&(e=t.constructor,(xn(e)&&(e===Tn||on(e.prototype))||D(e)&&null===(e=e[On]))&&(e=void 0)),void 0===e?Tn:e}(t))(0===e?0:e)},jn=wt("species"),In=function(t){return W>=51||!f((function(){var e=[];return(e.constructor={})[jn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Rn=wt("isConcatSpreadable"),Pn=W>=51||!f((function(){var t=[];return t[Rn]=!1,t.concat()[0]!==t})),Mn=function(t){if(!D(t))return!1;var e=t[Rn];return void 0!==e?!!e:on(t)},_n=!Pn||!In("concat");$e({target:"Array",proto:!0,arity:1,forced:_n},{concat:function(t){var e,n,r,o,i,a=ft(this),u=An(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Mn(i=-1===e?a:arguments[e]))for(o=be(i),un(c+o),n=0;n<o;n++,c++)n in i&&cn(u,c,i[n]);else un(c+1),cn(u,c++,i);return u.length=c,u}});var Nn=String,Cn=TypeError,kn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return S(tt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Nt(n),function(t){if("object"==typeof t||L(t))return t;throw Cn("Can't set "+Nn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Ln=function(t,e,n){var r,o;return kn&&L(r=e.constructor)&&r!==n&&D(o=r.prototype)&&o!==n.prototype&&kn(t,o),t},Fn=wt("match"),Dn=function(t){var e;return D(t)&&(void 0!==(e=t[Fn])?!!e:"RegExp"==T(t))},Bn=String,Un=function(t){if("Symbol"===vn(t))throw TypeError("Cannot convert a Symbol value to a string");return Bn(t)},$n=function(){var t=Nt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},zn=RegExp.prototype,qn=function(t){var e=t.flags;return void 0!==e||"flags"in zn||lt(t,"flags")||!U(zn,t)?e:p($n,t)},Gn=c.RegExp,Vn=f((function(){var t=Gn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Wn=Vn||f((function(){return!Gn("a","y").sticky})),Yn={BROKEN_CARET:Vn||f((function(){var t=Gn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Wn,UNSUPPORTED_Y:Vn},Zn=Ut.f,Hn=function(t,e,n){n in t||Zn(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Jn=function(t,e,n){return n.get&&fe(n.get,e,{getter:!0}),n.set&&fe(n.set,e,{setter:!0}),Ut.f(t,e,n)},Kn=wt("species"),Xn=function(t){var e=B(t);s&&e&&!e[Kn]&&Jn(e,Kn,{configurable:!0,get:function(){return this}})},Qn=c.RegExp,tr=f((function(){var t=Qn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),er=c.RegExp,nr=f((function(){var t=er("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),rr=Ie.f,or=ce.enforce,ir=wt("match"),ar=c.RegExp,ur=ar.prototype,cr=c.SyntaxError,fr=S(ur.exec),sr=S("".charAt),lr=S("".replace),dr=S("".indexOf),pr=S("".slice),vr=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,hr=/a/g,gr=/a/g,yr=new ar(hr)!==hr,mr=Yn.MISSED_STICKY,wr=Yn.UNSUPPORTED_Y,br=s&&(!yr||mr||tr||nr||f((function(){return gr[ir]=!1,ar(hr)!=hr||ar(gr)==gr||"/a/i"!=ar(hr,"i")})));if(Be("RegExp",br)){for(var Er=function(t,e){var n,r,o,i,a,u,c=U(ur,this),f=Dn(t),s=void 0===e,l=[],d=t;if(!c&&f&&s&&t.constructor===Er)return t;if((f||U(ur,t))&&(t=t.source,s&&(e=qn(d))),t=void 0===t?"":Un(t),e=void 0===e?"":Un(e),d=t,tr&&"dotAll"in hr&&(r=!!e&&dr(e,"s")>-1)&&(e=lr(e,/s/g,"")),n=e,mr&&"sticky"in hr&&(o=!!e&&dr(e,"y")>-1)&&wr&&(e=lr(e,/y/g,"")),nr&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},u=!1,c=!1,f=0,s="";r<=n;r++){if("\\"===(e=sr(t,r)))e+=sr(t,++r);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:fr(vr,pr(t,r+1))&&(r+=2,c=!0),o+=e,f++;continue;case">"===e&&c:if(""===s||lt(a,s))throw new cr("Invalid capture group name");a[s]=!0,i[i.length]=[s,f],c=!1,s="";continue}c?s+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Ln(ar(t,e),c?this:ur,Er),(r||o||l.length)&&(u=or(a),r&&(u.dotAll=!0,u.raw=Er(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=sr(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+sr(t,++r);return o}(t),n)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==d)try{$t(a,"source",""===d?"(?:)":d)}catch(t){}return a},Sr=rr(ar),xr=0;Sr.length>xr;)Hn(Er,ar,Sr[xr++]);ur.constructor=Er,Er.prototype=ur,se(c,"RegExp",Er,{constructor:!0})}Xn("RegExp");var Or=ce.get,Tr=ut("native-string-replace",String.prototype.replace),Ar=RegExp.prototype.exec,jr=Ar,Ir=S("".charAt),Rr=S("".indexOf),Pr=S("".replace),Mr=S("".slice),_r=function(){var t=/a/,e=/b*/g;return p(Ar,t,"a"),p(Ar,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Nr=Yn.BROKEN_CARET,Cr=void 0!==/()??/.exec("")[1];(_r||Cr||Nr||tr||nr)&&(jr=function(t){var e,n,r,o,i,a,u,c=this,f=Or(c),s=Un(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,e=p(jr,l,s),c.lastIndex=l.lastIndex,e;var d=f.groups,v=Nr&&c.sticky,h=p($n,c),g=c.source,y=0,m=s;if(v&&(h=Pr(h,"y",""),-1===Rr(h,"g")&&(h+="g"),m=Mr(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ir(s,c.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,y++),n=new RegExp("^(?:"+g+")",h)),Cr&&(n=new RegExp("^"+g+"$(?!\\s)",h)),_r&&(r=c.lastIndex),o=p(Ar,v?n:c,m),v?o?(o.input=Mr(o.input,y),o[0]=Mr(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:_r&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Cr&&o&&o.length>1&&p(Tr,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Qe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var kr=jr;$e({target:"RegExp",proto:!0,forced:/./.exec!==kr},{exec:kr});var Lr=Vt.PROPER,Fr="toString",Dr=RegExp.prototype[Fr],Br=f((function(){return"/a/b"!=Dr.call({source:"a",flags:"b"})})),Ur=Lr&&Dr.name!=Fr;(Br||Ur)&&se(RegExp.prototype,Fr,(function(){var t=Nt(this);return"/"+Un(t.source)+"/"+Un(qn(t))}),{unsafe:!0});var $r=function(t){if("Function"===T(t))return S(t)},zr=wt("species"),qr=RegExp.prototype,Gr=function(t,e,n,r){var o=wt(t),i=!f((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!f((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[zr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var u=$r(/./[o]),c=e(o,""[t],(function(t,e,n,r,o){var a=$r(t),c=e.exec;return c===kr||c===qr.exec?i&&!o?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));se(String.prototype,t,c[0]),se(qr,o,c[1])}r&&$t(qr[o],"sham",!0)},Vr=S("".charAt),Wr=S("".charCodeAt),Yr=S("".slice),Zr=function(t){return function(e,n){var r,o,i=Un(M(e)),a=ve(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Wr(i,a))<55296||r>56319||a+1===u||(o=Wr(i,a+1))<56320||o>57343?t?Vr(i,a):r:t?Yr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Hr={codeAt:Zr(!1),charAt:Zr(!0)},Jr=Hr.charAt,Kr=function(t,e,n){return e+(n?Jr(t,e).length:1)},Xr=TypeError,Qr=function(t,e){var n=t.exec;if(L(n)){var r=p(n,t,e);return null!==r&&Nt(r),r}if("RegExp"===T(t))return p(kr,t,e);throw Xr("RegExp#exec called on incompatible receiver")};Gr("match",(function(t,e,n){return[function(e){var n=M(this),r=R(e)?void 0:et(e,t);return r?p(r,e,n):new RegExp(e)[t](Un(n))},function(t){var r=Nt(this),o=Un(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Qr(r,o);var a=r.unicode;r.lastIndex=0;for(var u,c=[],f=0;null!==(u=Qr(r,o));){var s=Un(u[0]);c[f]=s,""===s&&(r.lastIndex=Kr(o,we(r.lastIndex),a)),f++}return 0===f?null:c}]}));var to=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Gr("search",(function(t,e,n){return[function(e){var n=M(this),r=R(e)?void 0:et(e,t);return r?p(r,e,n):new RegExp(e)[t](Un(n))},function(t){var r=Nt(this),o=Un(t),i=n(e,r,o);if(i.done)return i.value;var a=r.lastIndex;to(a,0)||(r.lastIndex=0);var u=Qr(r,o);return to(r.lastIndex,a)||(r.lastIndex=a),null===u?-1:u.index}]}));var eo=Function.prototype,no=eo.apply,ro=eo.call,oo="object"==typeof Reflect&&Reflect.apply||(l?ro.bind(no):function(){return ro.apply(no,arguments)}),io=Math.floor,ao=S("".charAt),uo=S("".replace),co=S("".slice),fo=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,so=/\$([$&'`]|\d{1,2})/g,lo=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,c=so;return void 0!==o&&(o=ft(o),c=fo),uo(i,c,(function(i,c){var f;switch(ao(c,0)){case"$":return"$";case"&":return t;case"`":return co(e,0,n);case"'":return co(e,a);case"<":f=o[co(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>u){var l=io(s/10);return 0===l?i:l<=u?void 0===r[l-1]?ao(c,1):r[l-1]+ao(c,1):i}f=r[s-1]}return void 0===f?"":f}))},po=wt("replace"),vo=Math.max,ho=Math.min,go=S([].concat),yo=S([].push),mo=S("".indexOf),wo=S("".slice),bo="$0"==="a".replace(/./,"$0"),Eo=!!/./[po]&&""===/./[po]("a","$0");Gr("replace",(function(t,e,n){var r=Eo?"$":"$0";return[function(t,n){var r=M(this),o=R(t)?void 0:et(t,po);return o?p(o,t,r,n):p(e,Un(r),t,n)},function(t,o){var i=Nt(this),a=Un(t);if("string"==typeof o&&-1===mo(o,r)&&-1===mo(o,"$<")){var u=n(e,i,a,o);if(u.done)return u.value}var c=L(o);c||(o=Un(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var d=Qr(i,a);if(null===d)break;if(yo(l,d),!f)break;""===Un(d[0])&&(i.lastIndex=Kr(a,we(i.lastIndex),s))}for(var p,v="",h=0,g=0;g<l.length;g++){for(var y=Un((d=l[g])[0]),m=vo(ho(ve(d.index),a.length),0),w=[],b=1;b<d.length;b++)yo(w,void 0===(p=d[b])?p:String(p));var E=d.groups;if(c){var S=go([y],w,m,a);void 0!==E&&yo(S,E);var x=Un(oo(o,void 0,S))}else x=lo(y,a,m,w,E,o);m>=h&&(v+=wo(a,h,m)+x,h=m+y.length)}return v+wo(a,h)}]}),!!f((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!bo||Eo);var So=function(t,e){var n=[][t];return!!n&&f((function(){n.call(null,e||function(){return 1},1)}))},xo=Se.indexOf,Oo=$r([].indexOf),To=!!Oo&&1/Oo([1],1,-0)<0,Ao=To||!So("indexOf");$e({target:"Array",proto:!0,forced:Ao},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return To?Oo(this,t,e)||0:xo(this,t,e)}});var jo=TypeError,Io=function(t){return function(e,n,r,o){tt(n);var i=ft(e),a=I(i),u=be(i),c=t?u-1:0,f=t?-1:1;if(r<2)for(;;){if(c in a){o=a[c],c+=f;break}if(c+=f,t?c<0:u<=c)throw jo("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=f)c in a&&(o=n(o,a[c],c,i));return o}},Ro={left:Io(!1),right:Io(!0)},Po="undefined"!=typeof process&&"process"==T(process),Mo=Ro.left,_o=!Po&&W>79&&W<83||!So("reduce");$e({target:"Array",proto:!0,forced:_o},{reduce:function(t){var e=arguments.length;return Mo(this,t,e,e>1?arguments[1]:void 0)}});var No=sn?{}.toString:function(){return"[object "+vn(this)+"]"};sn||se(Object.prototype,"toString",No,{unsafe:!0});var Co=S([].slice),ko=In("slice"),Lo=wt("species"),Fo=Array,Do=Math.max;$e({target:"Array",proto:!0,forced:!ko},{slice:function(t,e){var n,r,o,i=_(this),a=be(i),u=ye(t,a),c=ye(void 0===e?a:e,a);if(on(i)&&(n=i.constructor,(xn(n)&&(n===Fo||on(n.prototype))||D(n)&&null===(n=n[Lo]))&&(n=void 0),n===Fo||void 0===n))return Co(i,u,c);for(r=new(void 0===n?Fo:n)(Do(c-u,0)),o=0;u<c;u++,o++)u in i&&cn(r,o,i[u]);return r.length=o,r}});var Bo=S(y.f),Uo=S([].push),$o=function(t){return function(e){for(var n,r=_(e),o=ze(r),i=o.length,a=0,u=[];i>a;)n=o[a++],s&&!Bo(r,n)||Uo(u,t?[n,r[n]]:r[n]);return u}},zo={entries:$o(!0),values:$o(!1)}.values;$e({target:"Object",stat:!0},{values:function(t){return zo(t)}});var qo=$r($r.bind),Go=function(t,e){return tt(t),void 0===e?t:l?qo(t,e):function(){return t.apply(e,arguments)}},Vo=S([].push),Wo=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,f,s,l){for(var d,p,v=ft(c),h=I(v),g=Go(f,s),y=be(h),m=0,w=l||An,b=e?w(c,y):n||a?w(c,0):void 0;y>m;m++)if((u||m in h)&&(p=g(d=h[m],m,v),t))if(e)b[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:Vo(b,d)}else switch(t){case 4:return!1;case 7:Vo(b,d)}return i?-1:r||o?o:b}},Yo={forEach:Wo(0),map:Wo(1),filter:Wo(2),some:Wo(3),every:Wo(4),find:Wo(5),findIndex:Wo(6),filterReject:Wo(7)},Zo=Yo.every,Ho=So("every");$e({target:"Array",proto:!0,forced:!Ho},{every:function(t){return Zo(this,t,arguments.length>1?arguments[1]:void 0)}});var Jo=Se.includes,Ko=f((function(){return!Array(1).includes()}));$e({target:"Array",proto:!0,forced:Ko},{includes:function(t){return Jo(this,t,arguments.length>1?arguments[1]:void 0)}}),rn("includes");var Xo=S(1..valueOf),Qo=RangeError,ti=RangeError,ei=String,ni=Math.floor,ri=S((function(t){var e=Un(M(this)),n="",r=ve(t);if(r<0||r==1/0)throw Qo("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),oi=S("".slice),ii=S(1..toFixed),ai=function(t,e,n){return 0===e?n:e%2==1?ai(t,e-1,n*t):ai(t*t,e/2,n)},ui=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=ni(o/1e7)},ci=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=ni(r/e),r=r%e*1e7},fi=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=ei(t[e]);n=""===n?r:n+ri("0",7-r.length)+r}return n},si=f((function(){return"0.000"!==ii(8e-5,3)||"1"!==ii(.9,0)||"1.25"!==ii(1.255,2)||"1000000000000000128"!==ii(0xde0b6b3a7640080,0)}))||!f((function(){ii({})}));$e({target:"Number",proto:!0,forced:si},{toFixed:function(t){var e,n,r,o,i=Xo(this),a=ve(t),u=[0,0,0,0,0,0],c="",f="0";if(a<0||a>20)throw ti("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return ei(i);if(i<0&&(c="-",i=-i),i>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*ai(2,69,1))-69,n=e<0?i*ai(2,-e,1):i/ai(2,e,1),n*=4503599627370496,(e=52-e)>0){for(ui(u,0,n),r=a;r>=7;)ui(u,1e7,0),r-=7;for(ui(u,ai(10,r,1),0),r=e-1;r>=23;)ci(u,1<<23),r-=23;ci(u,1<<r),ui(u,1,1),ci(u,2),f=fi(u)}else ui(u,0,n),ui(u,1<<-e,0),f=fi(u)+ri("0",a);return f=a>0?c+((o=f.length)<=a?"0."+ri("0",a-o)+f:oi(f,0,o-a)+"."+oi(f,o-a)):c+f}});var li="\t\n\v\f\r \u2028\u2029\ufeff",di=S("".replace),pi=RegExp("^["+li+"]+"),vi=RegExp("(^|[^"+li+"])["+li+"]+$"),hi=function(t){return function(e){var n=Un(M(e));return 1&t&&(n=di(n,pi,"")),2&t&&(n=di(n,vi,"$1")),n}},gi={start:hi(1),end:hi(2),trim:hi(3)},yi=gi.trim,mi=S("".charAt),wi=c.parseFloat,bi=c.Symbol,Ei=bi&&bi.iterator,Si=1/wi(li+"-0")!=-1/0||Ei&&!f((function(){wi(Object(Ei))}))?function(t){var e=yi(Un(t)),n=wi(e);return 0===n&&"-"==mi(e,0)?-0:n}:wi;$e({global:!0,forced:parseFloat!=Si},{parseFloat:Si});var xi=TypeError,Oi=wt("species"),Ti=function(t,e){var n,r=Nt(t).constructor;return void 0===r||R(n=Nt(r)[Oi])?e:function(t){if(xn(t))return t;throw xi(X(t)+" is not a constructor")}(n)},Ai=Array,ji=Math.max,Ii=function(t,e,n){for(var r=be(t),o=ye(e,r),i=ye(void 0===n?r:n,r),a=Ai(ji(i-o,0)),u=0;o<i;o++,u++)cn(a,u,t[o]);return a.length=u,a},Ri=Yn.UNSUPPORTED_Y,Pi=4294967295,Mi=Math.min,_i=[].push,Ni=S(/./.exec),Ci=S(_i),ki=S("".slice);Gr("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=Un(M(this)),o=void 0===n?Pi:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Dn(t))return p(e,r,t,o);for(var i,a,u,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,f+"g");(i=p(kr,l,r))&&!((a=l.lastIndex)>s&&(Ci(c,ki(r,s,i.index)),i.length>1&&i.index<r.length&&oo(_i,c,Ii(i,1)),u=i[0].length,s=a,c.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===r.length?!u&&Ni(l,"")||Ci(c,""):Ci(c,ki(r,s)),c.length>o?Ii(c,0,o):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:p(e,this,t,n)}:e,[function(e,n){var o=M(this),i=R(e)?void 0:et(e,t);return i?p(i,e,o,n):p(r,Un(o),e,n)},function(t,o){var i=Nt(this),a=Un(t),u=n(r,i,a,o,r!==e);if(u.done)return u.value;var c=Ti(i,RegExp),f=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ri?"g":"y"),l=new c(Ri?"^(?:"+i.source+")":i,s),d=void 0===o?Pi:o>>>0;if(0===d)return[];if(0===a.length)return null===Qr(l,a)?[a]:[];for(var p=0,v=0,h=[];v<a.length;){l.lastIndex=Ri?0:v;var g,y=Qr(l,Ri?ki(a,v):a);if(null===y||(g=Mi(we(l.lastIndex+(Ri?v:0)),a.length))===p)v=Kr(a,v,f);else{if(Ci(h,ki(a,p,v)),h.length===d)return h;for(var m=1;m<=y.length-1;m++)if(Ci(h,y[m]),h.length===d)return h;v=p=g}}return Ci(h,ki(a,p)),h}]}),!!f((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ri);var Li=Object.assign,Fi=Object.defineProperty,Di=S([].concat),Bi=!Li||f((function(){if(s&&1!==Li({b:1},Li(Fi({},"a",{enumerable:!0,get:function(){Fi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Li({},t)[n]||ze(Li({},e)).join("")!=r}))?function(t,e){for(var n=ft(t),r=arguments.length,o=1,i=Re.f,a=y.f;r>o;)for(var u,c=I(arguments[o++]),f=i?Di(ze(c),i(c)):ze(c),l=f.length,d=0;l>d;)u=f[d++],s&&!p(a,c,u)||(n[u]=c[u]);return n}:Li;$e({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bi},{assign:Bi});var Ui=c,$i=Ie.f,zi=Rt.f,qi=Ut.f,Gi=gi.trim,Vi="Number",Wi=c[Vi];Ui[Vi];var Yi=Wi.prototype,Zi=c.TypeError,Hi=S("".slice),Ji=S("".charCodeAt),Ki=function(t){var e,n,r,o,i,a,u,c,f=St(t,"number");if(J(f))throw Zi("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=Gi(f),43===(e=Ji(f,0))||45===e){if(88===(n=Ji(f,2))||120===n)return NaN}else if(48===e){switch(Ji(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(a=(i=Hi(f,2)).length,u=0;u<a;u++)if((c=Ji(i,u))<48||c>o)return NaN;return parseInt(i,r)}return+f},Xi=Be(Vi,!Wi(" 0o1")||!Wi("0b1")||Wi("+0x1")),Qi=function(t){var e,n=arguments.length<1?0:Wi(function(t){var e=St(t,"number");return"bigint"==typeof e?e:Ki(e)}(t));return U(Yi,e=this)&&f((function(){Xo(e)}))?Ln(Object(n),this,Qi):n};Qi.prototype=Yi,Xi&&(Yi.constructor=Qi),$e({global:!0,constructor:!0,wrap:!0,forced:Xi},{Number:Qi});Xi&&function(t,e){for(var n,r=s?$i(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)lt(e,n=r[o])&&!lt(t,n)&&qi(t,n,zi(e,n))}(Ui[Vi],Wi);var ta,ea,na,ra,oa=Ut.f,ia=wt("toStringTag"),aa=function(t,e,n){t&&!n&&(t=t.prototype),t&&!lt(t,ia)&&oa(t,ia,{configurable:!0,value:e})},ua=TypeError,ca=TypeError,fa=/(?:ipad|iphone|ipod).*applewebkit/i.test($),sa=c.setImmediate,la=c.clearImmediate,da=c.process,pa=c.Dispatch,va=c.Function,ha=c.MessageChannel,ga=c.String,ya=0,ma={},wa="onreadystatechange";f((function(){ta=c.location}));var ba=function(t){if(lt(ma,t)){var e=ma[t];delete ma[t],e()}},Ea=function(t){return function(){ba(t)}},Sa=function(t){ba(t.data)},xa=function(t){c.postMessage(ga(t),ta.protocol+"//"+ta.host)};sa&&la||(sa=function(t){!function(t,e){if(t<e)throw ca("Not enough arguments")}(arguments.length,1);var e=L(t)?t:va(t),n=Co(arguments,1);return ma[++ya]=function(){oo(e,void 0,n)},ea(ya),ya},la=function(t){delete ma[t]},Po?ea=function(t){da.nextTick(Ea(t))}:pa&&pa.now?ea=function(t){pa.now(Ea(t))}:ha&&!fa?(ra=(na=new ha).port2,na.port1.onmessage=Sa,ea=Go(ra.postMessage,ra)):c.addEventListener&&L(c.postMessage)&&!c.importScripts&&ta&&"file:"!==ta.protocol&&!f(xa)?(ea=xa,c.addEventListener("message",Sa,!1)):ea=wa in At("script")?function(t){Ve.appendChild(At("script"))[wa]=function(){Ve.removeChild(this),ba(t)}}:function(t){setTimeout(Ea(t),0)});var Oa={set:sa,clear:la},Ta=function(){this.head=null,this.tail=null};Ta.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Aa,ja,Ia,Ra,Pa,Ma=Ta,_a=/ipad|iphone|ipod/i.test($)&&"undefined"!=typeof Pebble,Na=/web0s(?!.*chrome)/i.test($),Ca=Rt.f,ka=Oa.set,La=c.MutationObserver||c.WebKitMutationObserver,Fa=c.document,Da=c.process,Ba=c.Promise,Ua=Ca(c,"queueMicrotask"),$a=Ua&&Ua.value;if(!$a){var za=new Ma,qa=function(){var t,e;for(Po&&(t=Da.domain)&&t.exit();e=za.get();)try{e()}catch(t){throw za.head&&Aa(),t}t&&t.enter()};fa||Po||Na||!La||!Fa?!_a&&Ba&&Ba.resolve?((Ra=Ba.resolve(void 0)).constructor=Ba,Pa=Go(Ra.then,Ra),Aa=function(){Pa(qa)}):Po?Aa=function(){Da.nextTick(qa)}:(ka=Go(ka,c),Aa=function(){ka(qa)}):(ja=!0,Ia=Fa.createTextNode(""),new La(qa).observe(Ia,{characterData:!0}),Aa=function(){Ia.data=ja=!ja}),$a=function(t){za.head||Aa(),za.add(t)}}var Ga=$a,Va=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Wa=c.Promise,Ya="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Za=!Ya&&!Po&&"object"==typeof window&&"object"==typeof document;Wa&&Wa.prototype;var Ha,Ja,Ka,Xa=wt("species"),Qa=!1,tu=L(c.PromiseRejectionEvent),eu=Be("Promise",(function(){var t=Jt(Wa),e=t!==String(Wa);if(!e&&66===W)return!0;if(!W||W<51||!/native code/.test(t)){var n=new Wa((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Xa]=r,!(Qa=n.then((function(){}))instanceof r))return!0}return!e&&(Za||Ya)&&!tu})),nu={CONSTRUCTOR:eu,REJECTION_EVENT:tu,SUBCLASSING:Qa},ru=TypeError,ou=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw ru("Bad Promise constructor");e=t,n=r})),this.resolve=tt(e),this.reject=tt(n)},iu={f:function(t){return new ou(t)}},au=Oa.set,uu="Promise",cu=nu.CONSTRUCTOR,fu=nu.REJECTION_EVENT,su=nu.SUBCLASSING,lu=ce.getterFor(uu),du=ce.set,pu=Wa&&Wa.prototype,vu=Wa,hu=pu,gu=c.TypeError,yu=c.document,mu=c.process,wu=iu.f,bu=wu,Eu=!!(yu&&yu.createEvent&&c.dispatchEvent),Su="unhandledrejection",xu=function(t){var e;return!(!D(t)||!L(e=t.then))&&e},Ou=function(t,e){var n,r,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,c=t.resolve,f=t.reject,s=t.domain;try{u?(a||(2===e.rejection&&Ru(e),e.rejection=1),!0===u?n=i:(s&&s.enter(),n=u(i),s&&(s.exit(),o=!0)),n===t.promise?f(gu("Promise-chain cycle")):(r=xu(n))?p(r,n,c,f):c(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},Tu=function(t,e){t.notified||(t.notified=!0,Ga((function(){for(var n,r=t.reactions;n=r.get();)Ou(n,t);t.notified=!1,e&&!t.rejection&&ju(t)})))},Au=function(t,e,n){var r,o;Eu?((r=yu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!fu&&(o=c["on"+t])?o(r):t===Su&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},ju=function(t){p(au,c,(function(){var e,n=t.facade,r=t.value;if(Iu(t)&&(e=Va((function(){Po?mu.emit("unhandledRejection",r,n):Au(Su,n,r)})),t.rejection=Po||Iu(t)?2:1,e.error))throw e.value}))},Iu=function(t){return 1!==t.rejection&&!t.parent},Ru=function(t){p(au,c,(function(){var e=t.facade;Po?mu.emit("rejectionHandled",e):Au("rejectionhandled",e,t.value)}))},Pu=function(t,e,n){return function(r){t(e,r,n)}},Mu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Tu(t,!0))},_u=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw gu("Promise can't be resolved itself");var r=xu(e);r?Ga((function(){var n={done:!1};try{p(r,e,Pu(_u,n,t),Pu(Mu,n,t))}catch(e){Mu(n,e,t)}})):(t.value=e,t.state=1,Tu(t,!1))}catch(e){Mu({done:!1},e,t)}}};if(cu&&(hu=(vu=function(t){!function(t,e){if(U(e,t))return t;throw ua("Incorrect invocation")}(this,hu),tt(t),p(Ha,this);var e=lu(this);try{t(Pu(_u,e),Pu(Mu,e))}catch(t){Mu(e,t)}}).prototype,(Ha=function(t){du(this,{type:uu,done:!1,notified:!1,parent:!1,reactions:new Ma,rejection:!1,state:0,value:void 0})}).prototype=se(hu,"then",(function(t,e){var n=lu(this),r=wu(Ti(this,vu));return n.parent=!0,r.ok=!L(t)||t,r.fail=L(e)&&e,r.domain=Po?mu.domain:void 0,0==n.state?n.reactions.add(r):Ga((function(){Ou(r,n)})),r.promise})),Ja=function(){var t=new Ha,e=lu(t);this.promise=t,this.resolve=Pu(_u,e),this.reject=Pu(Mu,e)},iu.f=wu=function(t){return t===vu||undefined===t?new Ja(t):bu(t)},L(Wa)&&pu!==Object.prototype)){Ka=pu.then,su||se(pu,"then",(function(t,e){var n=this;return new vu((function(t,e){p(Ka,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete pu.constructor}catch(t){}kn&&kn(pu,hu)}$e({global:!0,constructor:!0,wrap:!0,forced:cu},{Promise:vu}),aa(vu,uu,!1),Xn(uu);var Nu={},Cu=wt("iterator"),ku=Array.prototype,Lu=function(t){return void 0!==t&&(Nu.Array===t||ku[Cu]===t)},Fu=wt("iterator"),Du=function(t){if(!R(t))return et(t,Fu)||et(t,"@@iterator")||Nu[vn(t)]},Bu=TypeError,Uu=function(t,e){var n=arguments.length<2?Du(t):e;if(tt(n))return Nt(p(n,t));throw Bu(X(t)+" is not iterable")},$u=function(t,e,n){var r,o;Nt(t);try{if(!(r=et(t,"return"))){if("throw"===e)throw n;return n}r=p(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Nt(r),n},zu=TypeError,qu=function(t,e){this.stopped=t,this.result=e},Gu=qu.prototype,Vu=function(t,e,n){var r,o,i,a,u,c,f,s=n&&n.that,l=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Go(e,s),y=function(t){return r&&$u(r,"normal",t),new qu(!0,t)},m=function(t){return l?(Nt(t),h?g(t[0],t[1],y):g(t[0],t[1])):h?g(t,y):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=Du(t)))throw zu(X(t)+" is not iterable");if(Lu(o)){for(i=0,a=be(t);a>i;i++)if((u=m(t[i]))&&U(Gu,u))return u;return new qu(!1)}r=Uu(t,o)}for(c=d?t.next:r.next;!(f=p(c,r)).done;){try{u=m(f.value)}catch(t){$u(r,"throw",t)}if("object"==typeof u&&u&&U(Gu,u))return u}return new qu(!1)},Wu=wt("iterator"),Yu=!1;try{var Zu=0,Hu={next:function(){return{done:!!Zu++}},return:function(){Yu=!0}};Hu[Wu]=function(){return this},Array.from(Hu,(function(){throw 2}))}catch(t){}var Ju=function(t,e){if(!e&&!Yu)return!1;var n=!1;try{var r={};r[Wu]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Ku=nu.CONSTRUCTOR||!Ju((function(t){Wa.all(t).then(void 0,(function(){}))}));$e({target:"Promise",stat:!0,forced:Ku},{all:function(t){var e=this,n=iu.f(e),r=n.resolve,o=n.reject,i=Va((function(){var n=tt(e.resolve),i=[],a=0,u=1;Vu(t,(function(t){var c=a++,f=!1;u++,p(n,e,t).then((function(t){f||(f=!0,i[c]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var Xu=nu.CONSTRUCTOR,Qu=Wa&&Wa.prototype;if($e({target:"Promise",proto:!0,forced:Xu,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(Wa)){var tc=B("Promise").prototype.catch;Qu.catch!==tc&&se(Qu,"catch",tc,{unsafe:!0})}$e({target:"Promise",stat:!0,forced:Ku},{race:function(t){var e=this,n=iu.f(e),r=n.reject,o=Va((function(){var o=tt(e.resolve);Vu(t,(function(t){p(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),$e({target:"Promise",stat:!0,forced:nu.CONSTRUCTOR},{reject:function(t){var e=iu.f(this);return p(e.reject,void 0,t),e.promise}});var ec=nu.CONSTRUCTOR;B("Promise"),$e({target:"Promise",stat:!0,forced:ec},{resolve:function(t){return function(t,e){if(Nt(t),D(e)&&e.constructor===t)return e;var n=iu.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var nc=Vt.EXISTS,rc=Function.prototype,oc=S(rc.toString),ic=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ac=S(ic.exec);s&&!nc&&Jn(rc,"name",{configurable:!0,get:function(){try{return ac(ic,oc(this))[1]}catch(t){return""}}});var uc=S([].join),cc=I!=Object||!So("join",",");$e({target:"Array",proto:!0,forced:cc},{join:function(t){return uc(_(this),void 0===t?",":t)}});var fc,sc=Vt.PROPER,lc=gi.trim;$e({target:"String",proto:!0,forced:(fc="trim",f((function(){return!!li[fc]()||"
"!=="
"[fc]()||sc&&li[fc].name!==fc})))},{trim:function(){return lc(this)}});var dc,pc=TypeError,vc=function(t){if(Dn(t))throw pc("The method doesn't accept regular expressions");return t},hc=wt("match"),gc=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[hc]=!1,"/./"[t](e)}catch(t){}}return!1},yc=Rt.f,mc=$r("".startsWith),wc=$r("".slice),bc=Math.min,Ec=gc("startsWith"),Sc=!(Ec||(dc=yc(String.prototype,"startsWith"),!dc||dc.writable));$e({target:"String",proto:!0,forced:!Sc&&!Ec},{startsWith:function(t){var e=Un(M(this));vc(t);var n=we(bc(arguments.length>1?arguments[1]:void 0,e.length)),r=Un(t);return mc?mc(e,r,n):wc(e,n,n+r.length)===r}});var xc=S("".indexOf);$e({target:"String",proto:!0,forced:!gc("includes")},{includes:function(t){return!!~xc(Un(M(this)),Un(vc(t)),arguments.length>1?arguments[1]:void 0)}});var Oc=Yo.find,Tc="find",Ac=!0;Tc in[]&&Array(1)[Tc]((function(){Ac=!1})),$e({target:"Array",proto:!0,forced:Ac},{find:function(t){return Oc(this,t,arguments.length>1?arguments[1]:void 0)}}),rn(Tc);var jc=Yo.forEach,Ic=So("forEach")?[].forEach:function(t){return jc(this,t,arguments.length>1?arguments[1]:void 0)};$e({target:"Array",proto:!0,forced:[].forEach!=Ic},{forEach:Ic});var Rc={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},Pc=At("span").classList,Mc=Pc&&Pc.constructor&&Pc.constructor.prototype,_c=Mc===Object.prototype?void 0:Mc,Nc=function(t){if(t&&t.forEach!==Ic)try{$t(t,"forEach",Ic)}catch(e){t.forEach=Ic}};for(var Cc in Rc)Rc[Cc]&&Nc(c[Cc]&&c[Cc].prototype);Nc(_c);var kc=f((function(){ze(1)}));$e({target:"Object",stat:!0,forced:kc},{keys:function(t){return ze(ft(t))}});var Lc,Fc,Dc,Bc=!f((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Uc=te("IE_PROTO"),$c=Object,zc=$c.prototype,qc=Bc?$c.getPrototypeOf:function(t){var e=ft(t);if(lt(e,Uc))return e[Uc];var n=e.constructor;return L(n)&&e instanceof n?n.prototype:e instanceof $c?zc:null},Gc=wt("iterator"),Vc=!1;[].keys&&("next"in(Dc=[].keys())?(Fc=qc(qc(Dc)))!==Object.prototype&&(Lc=Fc):Vc=!0);var Wc=!D(Lc)||f((function(){var t={};return Lc[Gc].call(t)!==t}));Wc&&(Lc={}),L(Lc[Gc])||se(Lc,Gc,(function(){return this}));var Yc={IteratorPrototype:Lc,BUGGY_SAFARI_ITERATORS:Vc},Zc=Yc.IteratorPrototype,Hc=function(){return this},Jc=Vt.PROPER,Kc=Vt.CONFIGURABLE,Xc=Yc.IteratorPrototype,Qc=Yc.BUGGY_SAFARI_ITERATORS,tf=wt("iterator"),ef="keys",nf="values",rf="entries",of=function(){return this},af=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Qe(Zc,{next:m(+!r,n)}),aa(t,o,!1),Nu[o]=Hc}(n,e,r);var u,c,f,s=function(t){if(t===o&&g)return g;if(!Qc&&t in v)return v[t];switch(t){case ef:case nf:case rf:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,v=t.prototype,h=v[tf]||v["@@iterator"]||o&&v[o],g=!Qc&&h||s(o),y="Array"==e&&v.entries||h;if(y&&(u=qc(y.call(new t)))!==Object.prototype&&u.next&&(qc(u)!==Xc&&(kn?kn(u,Xc):L(u[tf])||se(u,tf,of)),aa(u,l,!0)),Jc&&o==nf&&h&&h.name!==nf&&(Kc?$t(v,"name",nf):(d=!0,g=function(){return p(h,this)})),o)if(c={values:s(nf),keys:i?g:s(ef),entries:s(rf)},a)for(f in c)(Qc||d||!(f in v))&&se(v,f,c[f]);else $e({target:e,proto:!0,forced:Qc||d},c);return v[tf]!==g&&se(v,tf,g,{name:o}),Nu[e]=g,c},uf=function(t,e){return{value:t,done:e}},cf=Ut.f,ff="Array Iterator",sf=ce.set,lf=ce.getterFor(ff),df=af(Array,"Array",(function(t,e){sf(this,{type:ff,target:_(t),index:0,kind:e})}),(function(){var t=lf(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,uf(void 0,!0)):uf("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),pf=Nu.Arguments=Nu.Array;if(rn("keys"),rn("values"),rn("entries"),s&&"values"!==pf.name)try{cf(pf,"name",{value:"values"})}catch(t){}var vf=Hr.charAt,hf="String Iterator",gf=ce.set,yf=ce.getterFor(hf);af(String,"String",(function(t){gf(this,{type:hf,string:Un(t),index:0})}),(function(){var t,e=yf(this),n=e.string,r=e.index;return r>=n.length?uf(void 0,!0):(t=vf(n,r),e.index+=t.length,uf(t,!1))}));var mf=wt("iterator"),wf=wt("toStringTag"),bf=df.values,Ef=function(t,e){if(t){if(t[mf]!==bf)try{$t(t,mf,bf)}catch(e){t[mf]=bf}if(t[wf]||$t(t,wf,e),Rc[e])for(var n in df)if(t[n]!==df[n])try{$t(t,n,df[n])}catch(e){t[n]=df[n]}}};for(var Sf in Rc)Ef(c[Sf]&&c[Sf].prototype,Sf);Ef(_c,"DOMTokenList");var xf=f((function(){qc(1)}));$e({target:"Object",stat:!0,forced:xf,sham:!Bc},{getPrototypeOf:function(t){return qc(ft(t))}});var Of=TypeError,Tf=Object.getOwnPropertyDescriptor,Af=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(on(t)&&!Tf(t,"length").writable)throw Of("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},jf=TypeError,If=function(t,e){if(!delete t[e])throw jf("Cannot delete property "+X(e)+" of "+X(t))},Rf=In("splice"),Pf=Math.max,Mf=Math.min;$e({target:"Array",proto:!0,forced:!Rf},{splice:function(t,e){var n,r,o,i,a,u,c=ft(this),f=be(c),s=ye(t,f),l=arguments.length;for(0===l?n=r=0:1===l?(n=0,r=f-s):(n=l-2,r=Mf(Pf(ve(e),0),f-s)),un(f+n-r),o=An(c,r),i=0;i<r;i++)(a=s+i)in c&&cn(o,i,c[a]);if(o.length=r,n<r){for(i=s;i<f-r;i++)u=i+n,(a=i+r)in c?c[u]=c[a]:If(c,u);for(i=f;i>f-r+n;i--)If(c,i-1)}else if(n>r)for(i=f-r;i>s;i--)u=i+n-1,(a=i+r-1)in c?c[u]=c[a]:If(c,u);for(i=0;i<n;i++)c[i+s]=arguments[i+2];return Af(c,f-r+n),o}});var _f=function(t,e,n,r){try{return r?e(Nt(n)[0],n[1]):e(n)}catch(e){$u(t,"throw",e)}},Nf=Array,Cf=!Ju((function(t){Array.from(t)}));$e({target:"Array",stat:!0,forced:Cf},{from:function(t){var e=ft(t),n=xn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Go(o,r>2?arguments[2]:void 0));var a,u,c,f,s,l,d=Du(e),v=0;if(!d||this===Nf&&Lu(d))for(a=be(e),u=n?new this(a):Nf(a);a>v;v++)l=i?o(e[v],v):e[v],cn(u,v,l);else for(s=(f=Uu(e,d)).next,u=n?new this:[];!(c=p(s,f)).done;v++)l=i?_f(f,o,[c.value,v],!0):c.value,cn(u,v,l);return u.length=v,u}});var kf=function(){return kf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},kf.apply(this,arguments)};function Lf(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}function Ff(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function Df(t,e){for(var n=t.length,r=e.length,o=Qf(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}var c=Array.prototype.concat.apply([],o);return Math.max.apply(Math,c)}function Bf(t,e){return Df(t,e)}function Uf(t,e){for(var n=t.length,r=e.length,o=Qf(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}else{var c=[0,0],f=c[0],s=c[1];a>0&&(f=o[i][a-1]),i>0&&(s=o[i-1][a]),o[i][a]=Math.max(f,s)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)}function $f(t,e){return Uf(t,e)}function zf(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substring(1).match(e);return null!==n?decodeURIComponent(n[2]):""}function qf(t,e){var n={};return t.replace(/\??(\w+)=([^&]*)&?/g,(function(t,e,r){if(void 0!==n[e]){var o=n[e];n[e]=[].concat(o,r)}else n[e]=r;return""})),n[e]||""}function Gf(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n}function Vf(t){var e=location.hash.split("?");if(1===e.length)return"";var n=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)")),r=e[1].match(n);return r?r[2]:""}function Wf(t,e){void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")}function Yf(t){var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substring(1):e}function Zf(t){return Yf(t)}function Hf(t){var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substring(1):e}function Jf(t){return Hf(t)}function Kf(t){for(var e=(t=t.replace(/^\s+/,"")).length-1,n=/\s/;n.test(t.charAt(e));)e--;return t.slice(0,e+1)}function Xf(t){if(!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")}function Qf(t){if("object"!==a(t))return t;var e=["string","number","boolean","undefined"];return Object.values(t).every((function(t){return e.includes(a(t))}))?kf({},t):JSON.parse(JSON.stringify(t))}function ts(t){return Qf(t)}function es(t){try{if("object"===a(JSON.parse(t)))return!0}catch(t){}return!1}function ns(t){return es(t)}function rs(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}function os(t){return void 0===t&&(t=5),rs(t)}function is(t){void 0===t&&(t=3);var e=[Ts(),os(t||3)];return e[0]+e[1]}function as(t){return void 0===t&&(t=3),is(t)}function us(t,e){void 0===e&&(e=0);var n="";return n=e?(100*t).toFixed(e):String(Math.floor(100*t)),"".concat(n,"%")}function cs(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)}function fs(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ss(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1}function ls(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n}function ds(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n}function ps(t,e,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],u=a[0],c=a[1],f=function(){c=!1===n.leading?0:Ts(),i=null,u=t.apply(this,o),i||(r=o=null)};return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=Ts();c||!1!==n.leading||(c=l);var d=e-(l-c);return r=this,o=a,d<=0||d>e?(i&&(clearTimeout(i),i=null),c=l,u=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f.bind(r),d)),u}}function vs(t,e,n){var r=null,o=null,i=null,a=null,u=null,c=function c(){var f=Ts()-i;f<e&&f>=0?o=setTimeout(c,e-f):(o=null,n||(u=t.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],s=0;s<arguments.length;s++)f[s]=arguments[s];r=this,a=f,i=Ts();var l=n&&!o;return o||(o=setTimeout(c,e)),l&&(u=t.apply(r,a),r=a=null),u}}var hs={type:"d"};function gs(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=hs);var r=(n=Object.assign(hs,n)).type;ys(t)||(t=new Date(t).getTime()),ys(e)||(e=new Date(e).getTime());var o=Number(e)-Number(t),i="",a=new Array(4).fill(0),u=a[0],c=(a[1],a[2],a[3]),f=decodeURIComponent("%20%E5%A4%A9%20"),s=decodeURIComponent("%20%E6%97%B6%20"),l=decodeURIComponent("%20%E5%88%86%20"),d=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(u=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),c=Math.floor(o/1e3),r){case"d":i=u;break;case"text":i=(u=Math.floor(o/1e3/60/60/24))+f+Math.floor(o/1e3/60/60%24)+s+Math.floor(o/1e3/60%60)+l+(c=Math.floor(o/1e3%60))+d;break;default:i=c}return i}function ys(t,e){void 0===e&&(e={});var n=e.isNaNAsNumber,r=void 0!==n&&n,o=e.isInfinityAsNumber,i=void 0!==o&&o,a=e.isUnFiniteAsNumber;return"number"==typeof t&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(t))&&!(!r&&isNaN(t)))}function ms(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=null;return t&&"function"==typeof t&&(r=t.apply(void 0,e)),r}function ws(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))}function bs(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function Es(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))}function Ss(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e}function xs(t,e){void 0===e&&(e={id:""});var n,r=e.id,o=function(){},i=new Promise((function(t,e){var r;n=(r=[t,e])[0],o=r[1]})),a=function(){n("loaded")},u=document.createElement("link");u||o(new Error("Not support create link element"));var c="onload"in u,f=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(u.rel="stylesheet",u.type="text/css",u.href=t,void 0!==r&&(u.id=r),document.getElementsByTagName("head")[0].appendChild(u),f||!c)return setTimeout((function(){l(u,a,0)}),1),i;function s(){u&&(u.onload=u.onerror=u.onreadystatechange=null),u=null,a()}function l(t,e,n){if(t){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t&&(t=null),void e();if(f)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(t){var i=t;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?e():l(t,e,n)}),20)}}return c?(u.onload=s,u.onerror=function(){s()}):u.onreadystatechange=function(){u&&/loaded|complete/.test(u.readyState)&&s()},i}function Os(t,e){void 0===e&&(e={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},e),i=o.id,a=o.callback,u=o.timeout,c=o.isDefer,f=document.createElement("script");f||Promise.reject("Not support create script element");var s=document.getElementsByTagName("script")[0];return f.type="text/javascript",c&&(f.defer=!0),i&&(f.id=i),f.readyState?f.onreadystatechange=function(){"loaded"!==f.readyState&&"complete"!==f.readyState||(f.onreadystatechange=null,ms(a),ms(n,"loaded"))}:f.onload=function(){ms(a),ms(n,"loaded")},f.src=t,s&&s.parentNode.insertBefore(f,s),new Promise((function(t,e){var o;n=(o=[t,e])[0],r=o[1],u&&setTimeout(r.bind(null,"timeout"),u)}))}function Ts(){return Date.now?Date.now():(new Date).getTime()}function As(t,e,n,r){var o,i;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var u=location.host;1===u.split(".").length?document.cookie=t+"="+e+i+"; path=/":((o=u.split(".")).shift(),r=r||"."+o.join("."),document.cookie=t+"="+e+i+"; path=/; domain="+r,null!==js(t)&&js(t)===e||(r=r||"."+u,document.cookie=t+"="+e+i+"; path=/; domain="+r))}function js(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}function Is(t){for(var e=document.cookie.split(";"),n=0;n<e.length;n++){var r=e[n].trim();if(r.startsWith("".concat(t,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1}function Rs(t){var e=[],n=window.PerformanceObserver;return!!n&&(Hs(n.supportedEntryTypes)&&(e=n.supportedEntryTypes),e.includes(t))}function Ps(){return Lf(this,void 0,void 0,(function(){return Ff(this,(function(t){return Rs("paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-contentful-paint"===t.name}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function Ms(){return Lf(this,void 0,void 0,(function(){return Ff(this,(function(t){return Rs("paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-paint"===t.name}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function _s(){return Lf(this,void 0,void 0,(function(){return Ff(this,(function(t){return Rs("largest-contentful-paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"largest-contentful-paint"===t.entryType}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))}function Ns(){return Lf(this,void 0,void 0,(function(){return Ff(this,(function(t){return Rs("first-input")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-input"===t.entryType}));if(r){e.disconnect();var o=r.processingStart;t(o?Math.round(r.processingStart-r.startTime):0)}}));e.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))}function Cs(){return Lf(this,void 0,void 0,(function(){return Ff(this,(function(t){return Rs("layout-shift")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().reduce((function(t,e){var n=0;return ys(e.value)&&(n=e.value),t+n}),0);e.disconnect(),t(r)}));e.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))}function ks(){return Lf(this,void 0,void 0,(function(){var t,e;return Ff(this,(function(n){return Rs("navigation")&&window.performance&&window.performance.getEntriesByType?(t=performance.getEntriesByType("navigation")[0],0,t?(e=t.responseStart-t.requestStart,[2,Math.round(e)]):[2,0]):[2,0]}))}))}function Ls(t){return void 0===t&&(t=!1),Lf(this,void 0,void 0,(function(){function e(){var e={source:C,os:n(),osVersion:r(),deviceType:o(),network:i(),screenDirection:a(),unloadTime:v-h,redirectTime:g-y,dnsTime:m-w,tcpTime:b-E,sslTime:u(b,S),responseTime:x-O,downloadTime:T-x,firstPaintTime:F,firstContentfulPaintTime:D,domReadyTime:A-k,onloadTime:j-k,whiteTime:x-k,renderTime:I-k,decodedBodySize:M,encodedBodySize:_};Object.keys(e).forEach((function(t){ys(e[t])&&(e[t]<0?e[t]=0:e[t]=Math.round(e[t]))})),ys(e.whiteTime)&&e.whiteTime>e.onloadTime&&(e.whiteTime=0);var c={};t||Object.keys(e).forEach((function(t){c[Jf(t)]=e[t]})),Object.keys(c).length?f(c):f(e)}function n(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function r(){var t="",e=navigator.userAgent,n=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return t;var i=o[1];return i?(n&&(t=(i.match(/\d+\.\d+/g)||[])[0]),r&&(t=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),t||(t=""),t):t}function o(){var t,e=navigator.userAgent.toLowerCase(),n=e.match(/(ipad)/i)&&"ipad",r=e.match(/iphone os/i)&&"iphone os",o=e.match(/midp/i)&&"midp",i=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=e.match(/ucweb/i)&&"ucweb",u=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",f=e.match(/windows mobile/i)&&"windows mobile";return(t=n||r||o||i||a||u||c||f?r||o||i||a||u||c||f?"phone":n?"ipad":void 0:"pc")||(t=""),t}function i(){var t="",e=window.navigator;if(e.connection&&e.connection.effectiveType)switch(e.connection.effectiveType){case"wifi":t="wifi";break;case"4g":t="4g";break;case"2g":t="2g";break;case"3g":t="3g";break;case"ethernet":t="ethernet";break;case"default":t=void 0}return t||(t=""),t}function a(){var t="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(t="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(t="-")),t}function u(t,e){var n=0;return e&&(n=t-e),n}var c,f,s,l,d,p,v,h,g,y,m,w,b,E,S,x,O,T,A,j,I,R,P,M,_,N,C,k,L,F,D;return Ff(this,(function(t){switch(t.label){case 0:if(!Rs("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(c=window.performance)||"function"!=typeof c.getEntries||"function"!=typeof c.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(s=new Promise((function(t){f=[t][0]})),l=null,Hs(d=c.getEntriesByType("navigation"))&&(l=d[0]),p=new Array(19).fill(0),v=p[0],h=p[1],g=p[2],y=p[3],m=p[4],w=p[5],b=p[6],E=p[7],S=p[8],x=p[9],O=p[10],T=p[11],A=p[12],j=p[13],I=p[14],R=p[15],P=p[16],M=p[17],_=p[18],N=c.timing,C="",l)C="PerformanceNavigationTiming",M=l.decodedBodySize,_=l.encodedBodySize,v=l.unloadEventEnd,h=l.unloadEventStart,g=l.redirectEnd,y=l.redirectStart,m=l.domainLookupEnd,w=l.domainLookupStart,b=l.connectEnd,E=l.connectStart,S=l.secureConnectionStart,x=l.responseStart,O=l.requestStart,T=l.responseEnd,A=l.domContentLoadedEventStart,j=l.loadEventStart,I=l.loadEventEnd,R=l.startTime,P=l.fetchStart;else{if(!N)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];C="PerformanceTiming",v=N.unloadEventEnd,h=N.unloadEventStart,g=N.redirectEnd,y=N.redirectStart,m=N.domainLookupEnd,w=N.domainLookupStart,b=N.connectEnd,E=N.connectStart,S=N.secureConnectionStart,x=N.responseStart,O=N.requestStart,T=N.responseEnd,A=N.domContentLoadedEventStart,j=N.loadEventStart,I=N.loadEventEnd,R=N.navigationStart,P=N.fetchStart}if(k=0,ys(R))k=R;else{if(!ys(P))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];k=P}return[4,Promise.all([Ms(),Ps()])];case 1:return L=t.sent(),F=L[0],D=L[1],ys(I)&&I>0?e():window.addEventListener("load",(function(){window.setTimeout((function(){e()}),0)})),[2,s]}}))}))}function Fs(t){return Math.random()<t}function Ds(){var t=Bs();return!(!("serviceWorker"in navigator&&function(){var t;try{return t=new Function("return async function(){};")(),null!=Object.getPrototypeOf(t).constructor}catch(t){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||t.shell)}function Bs(){if(window.MAZEY_BROWSER_INFO&&"object"===a(window.MAZEY_BROWSER_INFO))return window.MAZEY_BROWSER_INFO;var t={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""};try{var e=navigator.userAgent.toLowerCase();if(!e)return t;var n=function(t){return t.test(e)},r=function(t){var n="",r=e.match(t);return r&&Hs(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},o="",i="";n(/windows|win32|win64|wow32|wow64/g)?o="windows":n(/macintosh|macintel/g)?o="macos":n(/x11/g)?o="linux":n(/android|adr/g)?o="android":n(/ios|iphone|ipad|ipod|iwatch/g)&&(o="ios",n(/ipad/g)?i="ipad":n(/iphone/g)?i="iphone":n(/iwatch/g)?i="iwatch":n(/ipod/g)&&(i="ipod")),t=kf(kf({},t),{system:o,appleType:i});var u="";"windows"===o?n(/windows nt 5.0|windows 2000/g)?u="2000":n(/windows nt 5.1|windows xp/g)?u="xp":n(/windows nt 5.2|windows 2003/g)?u="2003":n(/windows nt 6.0|windows vista/g)?u="vista":n(/windows nt 6.1|windows 7/g)?u="7":n(/windows nt 6.2|windows 8/g)?u="8":n(/windows nt 6.3|windows 8.1/g)?u="8.1":n(/windows nt 10.0|windows 10/g)&&(u="10"):"macos"===o?u=r(/os x [\d._]+/g):"android"===o?u=r(/android [\d._]+/g):"ios"===o&&(u=r(/os [\d._]+/g)),t=kf(kf({},t),{systemVs:u});var c="";"windows"===o||"macos"===o||"linux"===o?c="desktop":("android"===o||"ios"===o||n(/mobile/g))&&(c="mobile"),t=kf(kf({},t),{platform:c});var f="",s="";n(/applewebkit/g)?(f="webkit",n(/edge/g)?s="edge":n(/opr/g)?s="opera":n(/chrome/g)?s="chrome":n(/safari/g)&&(s="safari")):n(/gecko/g)&&n(/firefox/g)?(f="gecko",s="firefox"):n(/presto/g)?(f="presto",s="opera"):n(/trident|compatible|msie/g)&&(f="trident",s="iexplore"),t=kf(kf({},t),{engine:f,supporter:s});var l="";"webkit"===f?l=r(/applewebkit\/[\d._]+/g):"gecko"===f?l=r(/gecko\/[\d._]+/g):"presto"===f?l=r(/presto\/[\d._]+/g):"trident"===f&&(l=r(/trident\/[\d._]+/g)),t=kf(kf({},t),{engineVs:l});var d="";"chrome"===s?d=r(/chrome\/[\d._]+/g):"safari"===s?d=r(/version\/[\d._]+/g):"firefox"===s?d=r(/firefox\/[\d._]+/g):"opera"===s?d=r(/opr\/[\d._]+/g):"iexplore"===s?d=r(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===s&&(d=r(/edge\/[\d._]+/g)),t=kf(kf({},t),{supporterVs:d});var p="",v="";return n(/micromessenger/g)?(p="wechat",v=r(/micromessenger\/[\d._]+/g)):n(/qqbrowser/g)?(p="qq_browser",v=r(/qqbrowser\/[\d._]+/g)):n(/\sqq/g)?p="qq_app":n(/ucbrowser/g)?(p="uc",v=r(/ucbrowser\/[\d._]+/g)):n(/qihu 360se/g)?p="360":n(/2345explorer/g)?(p="2345",v=r(/2345explorer\/[\d._]+/g)):n(/metasr/g)?p="sougou":n(/lbbrowser/g)?p="liebao":n(/maxthon/g)?(p="maxthon",v=r(/maxthon\/[\d._]+/g)):n(/biliapp/g)&&(p="bilibili"),t=kf(kf({},t),{shell:p,shellVs:v}),window.MAZEY_BROWSER_INFO=t,t}catch(e){return console.warn("MazeyCon:",e),t}}function Us(t,e){void 0===e&&(e={});var n=e.removeNewLine,r=void 0!==n&&n,o="";return t&&(o=t.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o}function $s(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/[&<>"'/]/g,(function(t){return e[t]}))}function zs(t){var e={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/(&|<|>|"|'|/)/g,(function(t){return e[t]}))}function qs(t,e,n){if(void 0===n&&(n=!1),""!=t&&t){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",u=t.replace(i,"**").length,c=0;c<u&&(null!=(a=t.charAt(c).toString()).match(i)?r+=2:r++,!(r>e));c++)o+=a;return n&&u>e&&(o+="..."),o}return""}function Gs(t,e,n){return void 0===n&&(n=!1),qs(t,e,n)}function Vs(t){void 0===t&&(t=90);var e,n=function(){},r=new Promise((function(t,r){n=t,e=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return e(Error("timeout"))}),1e3*t),r}function Ws(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return e.id?(o="".concat(e.id),(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n)),!0}function Ys(t,e){void 0===t&&(t=""),void 0===e&&(e={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},e),r=n.isClosed,o=n.showWrap,i=n.showDate,a=n.locales,u=n.logFn,c=n.errorFn,f=Object.create(null),s=function(){return(new Date).toLocaleDateString(a,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(e){f[e]=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r)return!1;var f=t,l=t;if("string"==typeof t&&t.length>=2){var d=t.length;f=":"===t[d-1]?t.substring(0,d-1):t}o&&console.log("--- ".concat(f," - begin ---")),i&&(l=t?"".concat(s()," ").concat(t):"".concat(s())),t||i?console[e].apply(console,function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}([l],n)):console[e].apply(console,n),"log"===e&&u(),"error"===e&&c(),o&&console.log("--- ".concat(f," - end ---"))}})),f}function Zs(t,e){void 0===e&&(e={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},e),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(t&&t.status&&2===r.length&&t.status>=r[0]&&t.status<r[1]){var a=t.data;a&&o.includes(a.code)&&(i=!0)}return i}function Hs(t){var e=!1;return Array.isArray(t)&&t.length&&(e=!0),e}function Js(t,e,n){var r=!1;return"object"!==a(t)||e.reduce((function(t,e){return void 0===t[e]?Object.create(null):t=t[e]}),t)===n&&(r=!0),r}function Ks(t){var e=function(t){return String(Math.ceil(t))};if(!t)return"";var n=1024;return t<n?t+" B":t<Math.pow(n,2)?e(t/n)+" KB":t<Math.pow(n,3)?e(t/Math.pow(n,2))+" MB":t<Math.pow(n,4)?e(t/Math.pow(n,3))+" G":e(t/Math.pow(n,4))+" T"}function Xs(){return new Promise((function(t){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}function Qs(t){var e,n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n}function tl(t,e){void 0===e&&(e="yyyy-MM-dd"),t||(t=new Date);var n=new Date(t),r={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate()<10?"0"+n.getDate():n.getDate(),hh:n.getHours()<10?"0"+n.getHours():n.getHours(),mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds()},o=e||"yyyy-MM-dd";return Object.keys(r).forEach((function(t){var e=r[t];"MM"===t&&Number(e)<=9&&(e="0".concat(e)),o=o.replace(t,String(e))})),o}function el(){var t=window.MAZEY_DEFINE_LISTENERS;return"object"!==a(t)&&(t={},window.MAZEY_DEFINE_LISTENERS=t),t}function nl(t,e){var n=el();void 0===n[t]&&(n[t]=[]),"function"==typeof e&&n[t].push(e)}function rl(t){var e=el()[t];if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)"function"==typeof e[n]&&e[n]({type:t})}function ol(t,e){var n=el(),r=n[t];if("string"==typeof t&&r instanceof Array)if("function"==typeof e){for(var o=0,i=r.length;o<i;o++)if(r[o]===e){n[t].splice(o,1);break}}else delete n[t]}function il(t){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(t)}function al(t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/.test(t)}function ul(t){return/^1\d{10}$/.test(t)}function cl(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)}function fl(t){for(var e="";t>0;){var n=t%26;0===n&&(n=26),e=String.fromCharCode(n+96)+e,t=(t-n)/26}return e}function sl(t){var e="";if("string"!=typeof t||""==t)return e;var n=/\.[^/?#]+$/.exec(t);return n?(n[0].length>1&&(e=n[0].substring(1)),e):e}function ll(){var t,e=window.jQuery||window.$;return e?!(!(t=e("img"))||!t.length)&&(t.each((function(){var t=e(this);if(t){var n=t.attr("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&Hs(r)&&r[1]&&t.width(r[1]),o&&Hs(o)&&o[1]&&t.height(o[1])}}})),!0):(t=document.getElementsByTagName("img")).length>0&&(Array.from(t).forEach((function(t){var e=t;if(e){var n=e.getAttribute("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&Hs(r)&&r[1]&&(e.style.width=r[1]),o&&Hs(o)&&o[1]&&(e.style.height=o[1])}}})),!0)}function dl(t,e){var n="";return e&&e.length>0&&(n=e.join(";")+";"),"".concat(t,"{").concat(n,"}")}function pl(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=function(t){n(t)},r.src=t}))}function vl(){return"v3"}function hl(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=function(t){return!0===t});var o=e.interval,i=void 0===o?1e3:o,a=e.times,u=void 0===a?10:a,c=e.context,f=e.args,s=0;"function"!=typeof t&&console.error("Expected a function."),("number"!=typeof i||i<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for times."),function e(){setTimeout((function(){return Lf(r,void 0,void 0,(function(){var r;return Ff(this,(function(o){switch(o.label){case 0:return[4,t.apply(c,f)];case 1:return r=o.sent(),n(r)||++s>=u?[2]:(e(),[2])}}))}))}),i)}()}function gl(t,e){return window[t]?Promise.resolve("defined"):Os(e)}function yl(t,e){void 0===e&&(e=""),e||(e=".js");for(var n=new RegExp("[?&]".concat(t,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(e,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(e)){var a=i.match(n);if(a)return decodeURIComponent(a[1])}}return""}function ml(t){return Lf(this,void 0,void 0,(function(){return Ff(this,(function(e){return[2,new Promise((function(e){setTimeout((function(){e(t)}),t)}))]}))}))}function wl(t){return Lf(this,void 0,void 0,(function(){return Ff(this,(function(e){return[2,ml(t)]}))}))}export{ls as addClass,nl as addEvent,Ws as addStyle,$f as calLongestCommonSubsequence,Bf as calLongestCommonSubstring,Jf as camelCase2Underscore,Zf as camelCaseToKebabCase,fs as cancelBubble,Us as clearHtml,fl as convert10To26,Yf as convertCamelToKebab,Hf as convertCamelToUnder,Gs as cutCHSString,vs as debounce,Qf as deepCopy,ts as deepCopyObject,Is as delCookie,ms as doFn,cs as floatFixed,us as floatToPercent,tl as formatDate,Ys as genCustomConsole,Qs as genHashCode,rs as genRndNumString,dl as genStyleString,is as genUniqueNumString,os as generateRndNum,as as generateUniqueNum,Bs as getBrowserInfo,Cs as getCLS,js as getCookie,vl as getCurrentVersion,el as getDefineListeners,Wf as getDomain,Ps as getFCP,Ns as getFID,Ms as getFP,Ks as getFileSize,gs as getFriendlyInterval,Vf as getHashQueryParam,_s as getLCP,Ss as getLocalStorage,Ls as getPerformance,zf as getQueryParam,yl as getScriptQueryParam,bs as getSessionStorage,ks as getTTFB,sl as getUrlFileType,qf as getUrlParam,ss as hasClass,Fs as inRate,rl as invokeEvent,es as isJSONString,ns as isJsonString,Hs as isNonEmptyArray,ys as isNumber,Ds as isSafePWAEnv,Xs as isSupportWebp,Js as isValidData,cl as isValidEmail,al as isValidHttpUrl,ul as isValidPhoneNumber,il as isValidUrl,xs as loadCSS,pl as loadImage,Os as loadScript,gl as loadScriptIfUndefined,Uf as longestComSubsequence,Df as longestComSubstring,Ts as mNow,Kf as mTrim,Xf as newLine,ds as removeClass,ol as removeEvent,hl as repeatUntilConditionMet,$s as sanitizeInput,As as setCookie,ll as setImgWidHeiBySrc,Es as setLocalStorage,ws as setSessionStorage,wl as sleep,ps as throttle,qs as truncateZHString,zs as unsanitize,Gf as updateQueryParam,ml as waitTime,Vs as windowLoaded,Zs as zAxiosIsValidRes};
|
package/lib/mazey.min.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* mazey v3.11.5 https://www.npmjs.com/package/mazey
|
|
3
|
-
* (c) 2018-2023 Mazey Chu
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/
|
|
6
1
|
var mazey=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r,o,i,a=n((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),u=(r=a)&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r,c=function(t){return t&&t.Math==Math&&t},f=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof e&&e)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},l=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),p=Function.prototype.call,v=d?p.bind(p):function(){return p.apply(p,arguments)},g={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,m=h&&!g.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:g,y={f:m},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},b=Function.prototype,S=b.call,E=d&&b.bind.bind(S,S),x=d?E:function(t){return function(){return S.apply(t,arguments)}},O=x({}.toString),T=x("".slice),A=function(t){return T(O(t),8,-1)},j=Object,I=x("".split),P=s((function(){return!j("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?I(t,""):j(t)}:j,R=function(t){return null==t},C=TypeError,M=function(t){if(R(t))throw C("Can't call method on "+t);return t},N=function(t){return P(M(t))},_="object"==typeof document&&document.all,k={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},L=k.all,F=k.IS_HTMLDDA?function(t){return"function"==typeof t||t===L}:function(t){return"function"==typeof t},D=k.all,U=k.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:F(t)||t===D}:function(t){return"object"==typeof t?null!==t:F(t)},B=function(t,e){return arguments.length<2?(n=f[t],F(n)?n:void 0):f[t]&&f[t][e];var n},$=x({}.isPrototypeOf),z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",V=f.process,q=f.Deno,W=V&&V.versions||q&&q.version,G=W&&W.v8;G&&(i=(o=G.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&z&&(!(o=z.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=z.match(/Chrome\/(\d+)/))&&(i=+o[1]);var H=i,Y=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&H&&H<41})),Z=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=Object,K=Z?function(t){return"symbol"==typeof t}:function(t){var e=B("Symbol");return F(e)&&$(e.prototype,J(t))},Q=String,X=function(t){try{return Q(t)}catch(t){return"Object"}},tt=TypeError,et=function(t){if(F(t))return t;throw tt(X(t)+" is not a function")},nt=function(t,e){var n=t[e];return R(n)?void 0:et(n)},rt=TypeError,ot=Object.defineProperty,it=function(t,e){try{ot(f,t,{value:e,configurable:!0,writable:!0})}catch(n){f[t]=e}return e},at="__core-js_shared__",ut=f[at]||it(at,{}),ct=n((function(t){(t.exports=function(t,e){return ut[t]||(ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ft=Object,st=function(t){return ft(M(t))},lt=x({}.hasOwnProperty),dt=Object.hasOwn||function(t,e){return lt(st(t),e)},pt=0,vt=Math.random(),gt=x(1..toString),ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+gt(++pt+vt,36)},mt=f.Symbol,yt=ct("wks"),wt=Z?mt.for||mt:mt&&mt.withoutSetter||ht,bt=function(t){return dt(yt,t)||(yt[t]=Y&&dt(mt,t)?mt[t]:wt("Symbol."+t)),yt[t]},St=TypeError,Et=bt("toPrimitive"),xt=function(t,e){if(!U(t)||K(t))return t;var n,r=nt(t,Et);if(r){if(void 0===e&&(e="default"),n=v(r,t,e),!U(n)||K(n))return n;throw St("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&F(n=t.toString)&&!U(r=v(n,t)))return r;if(F(n=t.valueOf)&&!U(r=v(n,t)))return r;if("string"!==e&&F(n=t.toString)&&!U(r=v(n,t)))return r;throw rt("Can't convert object to primitive value")}(t,e)},Ot=function(t){var e=xt(t,"string");return K(e)?e:e+""},Tt=f.document,At=U(Tt)&&U(Tt.createElement),jt=function(t){return At?Tt.createElement(t):{}},It=!l&&!s((function(){return 7!=Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),Pt=Object.getOwnPropertyDescriptor,Rt={f:l?Pt:function(t,e){if(t=N(t),e=Ot(e),It)try{return Pt(t,e)}catch(t){}if(dt(t,e))return w(!v(y.f,t,e),t[e])}},Ct=l&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Mt=String,Nt=TypeError,_t=function(t){if(U(t))return t;throw Nt(Mt(t)+" is not an object")},kt=TypeError,Lt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Dt="enumerable",Ut="configurable",Bt="writable",$t={f:l?Ct?function(t,e,n){if(_t(t),e=Ot(e),_t(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Bt in n&&!n[Bt]){var r=Ft(t,e);r&&r[Bt]&&(t[e]=n.value,n={configurable:Ut in n?n[Ut]:r[Ut],enumerable:Dt in n?n[Dt]:r[Dt],writable:!1})}return Lt(t,e,n)}:Lt:function(t,e,n){if(_t(t),e=Ot(e),_t(n),It)try{return Lt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw kt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},zt=l?function(t,e,n){return $t.f(t,e,w(1,n))}:function(t,e,n){return t[e]=n,t},Vt=Function.prototype,qt=l&&Object.getOwnPropertyDescriptor,Wt=dt(Vt,"name"),Gt={EXISTS:Wt,PROPER:Wt&&"something"===function(){}.name,CONFIGURABLE:Wt&&(!l||l&&qt(Vt,"name").configurable)},Ht=x(Function.toString);F(ut.inspectSource)||(ut.inspectSource=function(t){return Ht(t)});var Yt,Zt,Jt,Kt=ut.inspectSource,Qt=f.WeakMap,Xt=F(Qt)&&/native code/.test(String(Qt)),te=ct("keys"),ee=function(t){return te[t]||(te[t]=ht(t))},ne={},re="Object already initialized",oe=f.TypeError,ie=f.WeakMap;if(Xt||ut.state){var ae=ut.state||(ut.state=new ie);ae.get=ae.get,ae.has=ae.has,ae.set=ae.set,Yt=function(t,e){if(ae.has(t))throw oe(re);return e.facade=t,ae.set(t,e),e},Zt=function(t){return ae.get(t)||{}},Jt=function(t){return ae.has(t)}}else{var ue=ee("state");ne[ue]=!0,Yt=function(t,e){if(dt(t,ue))throw oe(re);return e.facade=t,zt(t,ue,e),e},Zt=function(t){return dt(t,ue)?t[ue]:{}},Jt=function(t){return dt(t,ue)}}var ce,fe={set:Yt,get:Zt,has:Jt,enforce:function(t){return Jt(t)?Zt(t):Yt(t,{})},getterFor:function(t){return function(e){var n;if(!U(e)||(n=Zt(e)).type!==t)throw oe("Incompatible receiver, "+t+" required");return n}}},se=n((function(t){var e=Gt.CONFIGURABLE,n=fe.enforce,r=fe.get,o=String,i=Object.defineProperty,a=x("".slice),u=x("".replace),c=x([].join),f=l&&!s((function(){return 8!==i((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=t.exports=function(t,r,s){"Symbol("===a(o(r),0,7)&&(r="["+u(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!dt(t,"name")||e&&t.name!==r)&&(l?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&s&&dt(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&&dt(s,"constructor")&&s.constructor?l&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return dt(p,"source")||(p.source=c(d,"string"==typeof r?r:"")),t};Function.prototype.toString=p((function(){return F(this)&&r(this).source||Kt(this)}),"toString")})),le=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(F(n)&&se(n,i,r),r.global)o?t[e]=n:it(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:$t.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},de=Math.ceil,pe=Math.floor,ve=Math.trunc||function(t){var e=+t;return(e>0?pe:de)(e)},ge=function(t){var e=+t;return e!=e||0===e?0:ve(e)},he=Math.max,me=Math.min,ye=function(t,e){var n=ge(t);return n<0?he(n+e,0):me(n,e)},we=Math.min,be=function(t){return t>0?we(ge(t),9007199254740991):0},Se=function(t){return be(t.length)},Ee=function(t){return function(e,n,r){var o,i=N(e),a=Se(i),u=ye(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},xe={includes:Ee(!0),indexOf:Ee(!1)},Oe=xe.indexOf,Te=x([].push),Ae=function(t,e){var n,r=N(t),o=0,i=[];for(n in r)!dt(ne,n)&&dt(r,n)&&Te(i,n);for(;e.length>o;)dt(r,n=e[o++])&&(~Oe(i,n)||Te(i,n));return i},je=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ie=je.concat("length","prototype"),Pe={f:Object.getOwnPropertyNames||function(t){return Ae(t,Ie)}},Re={f:Object.getOwnPropertySymbols},Ce=x([].concat),Me=B("Reflect","ownKeys")||function(t){var e=Pe.f(_t(t)),n=Re.f;return n?Ce(e,n(t)):e},Ne=function(t,e,n){for(var r=Me(e),o=$t.f,i=Rt.f,a=0;a<r.length;a++){var u=r[a];dt(t,u)||n&&dt(n,u)||o(t,u,i(e,u))}},_e=/#|\.prototype\./,ke=function(t,e){var n=Fe[Le(t)];return n==Ue||n!=De&&(F(e)?s(e):!!e)},Le=ke.normalize=function(t){return String(t).replace(_e,".").toLowerCase()},Fe=ke.data={},De=ke.NATIVE="N",Ue=ke.POLYFILL="P",Be=ke,$e=Rt.f,ze=function(t,e){var n,r,o,i,a,u=t.target,c=t.global,s=t.stat;if(n=c?f:s?f[u]||it(u,{}):(f[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=$e(n,r))&&a.value:n[r],!Be(c?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ne(i,o)}(t.sham||o&&o.sham)&&zt(i,"sham",!0),le(n,r,i,t)}},Ve=Object.keys||function(t){return Ae(t,je)},qe=l&&!Ct?Object.defineProperties:function(t,e){_t(t);for(var n,r=N(e),o=Ve(e),i=o.length,a=0;i>a;)$t.f(t,n=o[a++],r[n]);return t},We={f:qe},Ge=B("document","documentElement"),He="prototype",Ye="script",Ze=ee("IE_PROTO"),Je=function(){},Ke=function(t){return"<"+Ye+">"+t+"</"+Ye+">"},Qe=function(t){t.write(Ke("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xe=function(){try{ce=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Xe="undefined"!=typeof document?document.domain&&ce?Qe(ce):(e=jt("iframe"),n="java"+Ye+":",e.style.display="none",Ge.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ke("document.F=Object")),t.close(),t.F):Qe(ce);for(var r=je.length;r--;)delete Xe[He][je[r]];return Xe()};ne[Ze]=!0;var tn=Object.create||function(t,e){var n;return null!==t?(Je[He]=_t(t),n=new Je,Je[He]=null,n[Ze]=t):n=Xe(),void 0===e?n:We.f(n,e)},en=$t.f,nn=bt("unscopables"),rn=Array.prototype;null==rn[nn]&&en(rn,nn,{configurable:!0,value:tn(null)});var on=function(t){rn[nn][t]=!0};ze({target:"Array",proto:!0},{fill:function(t){for(var e=st(this),n=Se(e),r=arguments.length,o=ye(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:ye(i,n);a>o;)e[o++]=t;return e}}),on("fill");var an=Array.isArray||function(t){return"Array"==A(t)},un=TypeError,cn=function(t){if(t>9007199254740991)throw un("Maximum allowed index exceeded");return t},fn=function(t,e,n){var r=Ot(e);r in t?$t.f(t,r,w(0,n)):t[r]=n},sn={};sn[bt("toStringTag")]="z";var ln="[object z]"===String(sn),dn=bt("toStringTag"),pn=Object,vn="Arguments"==A(function(){return arguments}()),gn=ln?A:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=pn(t),dn))?n:vn?A(e):"Object"==(r=A(e))&&F(e.callee)?"Arguments":r},hn=function(){},mn=[],yn=B("Reflect","construct"),wn=/^\s*(?:class|function)\b/,bn=x(wn.exec),Sn=!wn.exec(hn),En=function(t){if(!F(t))return!1;try{return yn(hn,mn,t),!0}catch(t){return!1}},xn=function(t){if(!F(t))return!1;switch(gn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Sn||!!bn(wn,Kt(t))}catch(t){return!0}};xn.sham=!0;var On=!yn||s((function(){var t;return En(En.call)||!En(Object)||!En((function(){t=!0}))||t}))?xn:En,Tn=bt("species"),An=Array,jn=function(t,e){return new(function(t){var e;return an(t)&&(e=t.constructor,(On(e)&&(e===An||an(e.prototype))||U(e)&&null===(e=e[Tn]))&&(e=void 0)),void 0===e?An:e}(t))(0===e?0:e)},In=bt("species"),Pn=function(t){return H>=51||!s((function(){var e=[];return(e.constructor={})[In]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Rn=bt("isConcatSpreadable"),Cn=H>=51||!s((function(){var t=[];return t[Rn]=!1,t.concat()[0]!==t})),Mn=function(t){if(!U(t))return!1;var e=t[Rn];return void 0!==e?!!e:an(t)},Nn=!Cn||!Pn("concat");ze({target:"Array",proto:!0,arity:1,forced:Nn},{concat:function(t){var e,n,r,o,i,a=st(this),u=jn(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Mn(i=-1===e?a:arguments[e]))for(o=Se(i),cn(c+o),n=0;n<o;n++,c++)n in i&&fn(u,c,i[n]);else cn(c+1),fn(u,c++,i);return u.length=c,u}});var _n=String,kn=TypeError,Ln=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return x(et(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return _t(n),function(t){if("object"==typeof t||F(t))return t;throw kn("Can't set "+_n(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Fn=function(t,e,n){var r,o;return Ln&&F(r=e.constructor)&&r!==n&&U(o=r.prototype)&&o!==n.prototype&&Ln(t,o),t},Dn=bt("match"),Un=function(t){var e;return U(t)&&(void 0!==(e=t[Dn])?!!e:"RegExp"==A(t))},Bn=String,$n=function(t){if("Symbol"===gn(t))throw TypeError("Cannot convert a Symbol value to a string");return Bn(t)},zn=function(){var t=_t(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Vn=RegExp.prototype,qn=function(t){var e=t.flags;return void 0!==e||"flags"in Vn||dt(t,"flags")||!$(Vn,t)?e:v(zn,t)},Wn=f.RegExp,Gn=s((function(){var t=Wn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Hn=Gn||s((function(){return!Wn("a","y").sticky})),Yn={BROKEN_CARET:Gn||s((function(){var t=Wn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Hn,UNSUPPORTED_Y:Gn},Zn=$t.f,Jn=function(t,e,n){n in t||Zn(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Kn=function(t,e,n){return n.get&&se(n.get,e,{getter:!0}),n.set&&se(n.set,e,{setter:!0}),$t.f(t,e,n)},Qn=bt("species"),Xn=function(t){var e=B(t);l&&e&&!e[Qn]&&Kn(e,Qn,{configurable:!0,get:function(){return this}})},tr=f.RegExp,er=s((function(){var t=tr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),nr=f.RegExp,rr=s((function(){var t=nr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),or=Pe.f,ir=fe.enforce,ar=bt("match"),ur=f.RegExp,cr=ur.prototype,fr=f.SyntaxError,sr=x(cr.exec),lr=x("".charAt),dr=x("".replace),pr=x("".indexOf),vr=x("".slice),gr=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,hr=/a/g,mr=/a/g,yr=new ur(hr)!==hr,wr=Yn.MISSED_STICKY,br=Yn.UNSUPPORTED_Y,Sr=l&&(!yr||wr||er||rr||s((function(){return mr[ar]=!1,ur(hr)!=hr||ur(mr)==mr||"/a/i"!=ur(hr,"i")})));if(Be("RegExp",Sr)){for(var Er=function(t,e){var n,r,o,i,a,u,c=$(cr,this),f=Un(t),s=void 0===e,l=[],d=t;if(!c&&f&&s&&t.constructor===Er)return t;if((f||$(cr,t))&&(t=t.source,s&&(e=qn(d))),t=void 0===t?"":$n(t),e=void 0===e?"":$n(e),d=t,er&&"dotAll"in hr&&(r=!!e&&pr(e,"s")>-1)&&(e=dr(e,/s/g,"")),n=e,wr&&"sticky"in hr&&(o=!!e&&pr(e,"y")>-1)&&br&&(e=dr(e,/y/g,"")),rr&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},u=!1,c=!1,f=0,s="";r<=n;r++){if("\\"===(e=lr(t,r)))e+=lr(t,++r);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:sr(gr,vr(t,r+1))&&(r+=2,c=!0),o+=e,f++;continue;case">"===e&&c:if(""===s||dt(a,s))throw new fr("Invalid capture group name");a[s]=!0,i[i.length]=[s,f],c=!1,s="";continue}c?s+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Fn(ur(t,e),c?this:cr,Er),(r||o||l.length)&&(u=ir(a),r&&(u.dotAll=!0,u.raw=Er(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=lr(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+lr(t,++r);return o}(t),n)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==d)try{zt(a,"source",""===d?"(?:)":d)}catch(t){}return a},xr=or(ur),Or=0;xr.length>Or;)Jn(Er,ur,xr[Or++]);cr.constructor=Er,Er.prototype=cr,le(f,"RegExp",Er,{constructor:!0})}Xn("RegExp");var Tr=fe.get,Ar=ct("native-string-replace",String.prototype.replace),jr=RegExp.prototype.exec,Ir=jr,Pr=x("".charAt),Rr=x("".indexOf),Cr=x("".replace),Mr=x("".slice),Nr=function(){var t=/a/,e=/b*/g;return v(jr,t,"a"),v(jr,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_r=Yn.BROKEN_CARET,kr=void 0!==/()??/.exec("")[1];(Nr||kr||_r||er||rr)&&(Ir=function(t){var e,n,r,o,i,a,u,c=this,f=Tr(c),s=$n(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,e=v(Ir,l,s),c.lastIndex=l.lastIndex,e;var d=f.groups,p=_r&&c.sticky,g=v(zn,c),h=c.source,m=0,y=s;if(p&&(g=Cr(g,"y",""),-1===Rr(g,"g")&&(g+="g"),y=Mr(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Pr(s,c.lastIndex-1))&&(h="(?: "+h+")",y=" "+y,m++),n=new RegExp("^(?:"+h+")",g)),kr&&(n=new RegExp("^"+h+"$(?!\\s)",g)),Nr&&(r=c.lastIndex),o=v(jr,p?n:c,y),p?o?(o.input=Mr(o.input,m),o[0]=Mr(o[0],m),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Nr&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),kr&&o&&o.length>1&&v(Ar,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=tn(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Lr=Ir;ze({target:"RegExp",proto:!0,forced:/./.exec!==Lr},{exec:Lr});var Fr=Gt.PROPER,Dr="toString",Ur=RegExp.prototype[Dr],Br=s((function(){return"/a/b"!=Ur.call({source:"a",flags:"b"})})),$r=Fr&&Ur.name!=Dr;(Br||$r)&&le(RegExp.prototype,Dr,(function(){var t=_t(this);return"/"+$n(t.source)+"/"+$n(qn(t))}),{unsafe:!0});var zr=function(t){if("Function"===A(t))return x(t)},Vr=bt("species"),qr=RegExp.prototype,Wr=function(t,e,n,r){var o=bt(t),i=!s((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!s((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Vr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var u=zr(/./[o]),c=e(o,""[t],(function(t,e,n,r,o){var a=zr(t),c=e.exec;return c===Lr||c===qr.exec?i&&!o?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));le(String.prototype,t,c[0]),le(qr,o,c[1])}r&&zt(qr[o],"sham",!0)},Gr=x("".charAt),Hr=x("".charCodeAt),Yr=x("".slice),Zr=function(t){return function(e,n){var r,o,i=$n(M(e)),a=ge(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Hr(i,a))<55296||r>56319||a+1===u||(o=Hr(i,a+1))<56320||o>57343?t?Gr(i,a):r:t?Yr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Jr={codeAt:Zr(!1),charAt:Zr(!0)},Kr=Jr.charAt,Qr=function(t,e,n){return e+(n?Kr(t,e).length:1)},Xr=TypeError,to=function(t,e){var n=t.exec;if(F(n)){var r=v(n,t,e);return null!==r&&_t(r),r}if("RegExp"===A(t))return v(Lr,t,e);throw Xr("RegExp#exec called on incompatible receiver")};Wr("match",(function(t,e,n){return[function(e){var n=M(this),r=R(e)?void 0:nt(e,t);return r?v(r,e,n):new RegExp(e)[t]($n(n))},function(t){var r=_t(this),o=$n(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return to(r,o);var a=r.unicode;r.lastIndex=0;for(var u,c=[],f=0;null!==(u=to(r,o));){var s=$n(u[0]);c[f]=s,""===s&&(r.lastIndex=Qr(o,be(r.lastIndex),a)),f++}return 0===f?null:c}]}));var eo=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Wr("search",(function(t,e,n){return[function(e){var n=M(this),r=R(e)?void 0:nt(e,t);return r?v(r,e,n):new RegExp(e)[t]($n(n))},function(t){var r=_t(this),o=$n(t),i=n(e,r,o);if(i.done)return i.value;var a=r.lastIndex;eo(a,0)||(r.lastIndex=0);var u=to(r,o);return eo(r.lastIndex,a)||(r.lastIndex=a),null===u?-1:u.index}]}));var no=Function.prototype,ro=no.apply,oo=no.call,io="object"==typeof Reflect&&Reflect.apply||(d?oo.bind(ro):function(){return oo.apply(ro,arguments)}),ao=Math.floor,uo=x("".charAt),co=x("".replace),fo=x("".slice),so=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lo=/\$([$&'`]|\d{1,2})/g,po=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,c=lo;return void 0!==o&&(o=st(o),c=so),co(i,c,(function(i,c){var f;switch(uo(c,0)){case"$":return"$";case"&":return t;case"`":return fo(e,0,n);case"'":return fo(e,a);case"<":f=o[fo(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>u){var l=ao(s/10);return 0===l?i:l<=u?void 0===r[l-1]?uo(c,1):r[l-1]+uo(c,1):i}f=r[s-1]}return void 0===f?"":f}))},vo=bt("replace"),go=Math.max,ho=Math.min,mo=x([].concat),yo=x([].push),wo=x("".indexOf),bo=x("".slice),So="$0"==="a".replace(/./,"$0"),Eo=!!/./[vo]&&""===/./[vo]("a","$0");Wr("replace",(function(t,e,n){var r=Eo?"$":"$0";return[function(t,n){var r=M(this),o=R(t)?void 0:nt(t,vo);return o?v(o,t,r,n):v(e,$n(r),t,n)},function(t,o){var i=_t(this),a=$n(t);if("string"==typeof o&&-1===wo(o,r)&&-1===wo(o,"$<")){var u=n(e,i,a,o);if(u.done)return u.value}var c=F(o);c||(o=$n(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var d=to(i,a);if(null===d)break;if(yo(l,d),!f)break;""===$n(d[0])&&(i.lastIndex=Qr(a,be(i.lastIndex),s))}for(var p,v="",g=0,h=0;h<l.length;h++){for(var m=$n((d=l[h])[0]),y=go(ho(ge(d.index),a.length),0),w=[],b=1;b<d.length;b++)yo(w,void 0===(p=d[b])?p:String(p));var S=d.groups;if(c){var E=mo([m],w,y,a);void 0!==S&&yo(E,S);var x=$n(io(o,void 0,E))}else x=po(m,a,y,w,S,o);y>=g&&(v+=bo(a,g,y)+x,g=y+m.length)}return v+bo(a,g)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!So||Eo);var xo=function(t,e){var n=[][t];return!!n&&s((function(){n.call(null,e||function(){return 1},1)}))},Oo=xe.indexOf,To=zr([].indexOf),Ao=!!To&&1/To([1],1,-0)<0,jo=Ao||!xo("indexOf");ze({target:"Array",proto:!0,forced:jo},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Ao?To(this,t,e)||0:Oo(this,t,e)}});var Io=TypeError,Po=function(t){return function(e,n,r,o){et(n);var i=st(e),a=P(i),u=Se(i),c=t?u-1:0,f=t?-1:1;if(r<2)for(;;){if(c in a){o=a[c],c+=f;break}if(c+=f,t?c<0:u<=c)throw Io("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=f)c in a&&(o=n(o,a[c],c,i));return o}},Ro={left:Po(!1),right:Po(!0)},Co="undefined"!=typeof process&&"process"==A(process),Mo=Ro.left,No=!Co&&H>79&&H<83||!xo("reduce");ze({target:"Array",proto:!0,forced:No},{reduce:function(t){var e=arguments.length;return Mo(this,t,e,e>1?arguments[1]:void 0)}});var _o=ln?{}.toString:function(){return"[object "+gn(this)+"]"};ln||le(Object.prototype,"toString",_o,{unsafe:!0});var ko=x([].slice),Lo=Pn("slice"),Fo=bt("species"),Do=Array,Uo=Math.max;ze({target:"Array",proto:!0,forced:!Lo},{slice:function(t,e){var n,r,o,i=N(this),a=Se(i),u=ye(t,a),c=ye(void 0===e?a:e,a);if(an(i)&&(n=i.constructor,(On(n)&&(n===Do||an(n.prototype))||U(n)&&null===(n=n[Fo]))&&(n=void 0),n===Do||void 0===n))return ko(i,u,c);for(r=new(void 0===n?Do:n)(Uo(c-u,0)),o=0;u<c;u++,o++)u in i&&fn(r,o,i[u]);return r.length=o,r}});var Bo=x(y.f),$o=x([].push),zo=function(t){return function(e){for(var n,r=N(e),o=Ve(r),i=o.length,a=0,u=[];i>a;)n=o[a++],l&&!Bo(r,n)||$o(u,t?[n,r[n]]:r[n]);return u}},Vo={entries:zo(!0),values:zo(!1)}.values;ze({target:"Object",stat:!0},{values:function(t){return Vo(t)}});var qo=zr(zr.bind),Wo=function(t,e){return et(t),void 0===e?t:d?qo(t,e):function(){return t.apply(e,arguments)}},Go=x([].push),Ho=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,f,s,l){for(var d,p,v=st(c),g=P(v),h=Wo(f,s),m=Se(g),y=0,w=l||jn,b=e?w(c,m):n||a?w(c,0):void 0;m>y;y++)if((u||y in g)&&(p=h(d=g[y],y,v),t))if(e)b[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:Go(b,d)}else switch(t){case 4:return!1;case 7:Go(b,d)}return i?-1:r||o?o:b}},Yo={forEach:Ho(0),map:Ho(1),filter:Ho(2),some:Ho(3),every:Ho(4),find:Ho(5),findIndex:Ho(6),filterReject:Ho(7)},Zo=Yo.every,Jo=xo("every");ze({target:"Array",proto:!0,forced:!Jo},{every:function(t){return Zo(this,t,arguments.length>1?arguments[1]:void 0)}});var Ko=xe.includes,Qo=s((function(){return!Array(1).includes()}));ze({target:"Array",proto:!0,forced:Qo},{includes:function(t){return Ko(this,t,arguments.length>1?arguments[1]:void 0)}}),on("includes");var Xo=x(1..valueOf),ti=RangeError,ei=RangeError,ni=String,ri=Math.floor,oi=x((function(t){var e=$n(M(this)),n="",r=ge(t);if(r<0||r==1/0)throw ti("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),ii=x("".slice),ai=x(1..toFixed),ui=function(t,e,n){return 0===e?n:e%2==1?ui(t,e-1,n*t):ui(t*t,e/2,n)},ci=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=ri(o/1e7)},fi=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=ri(r/e),r=r%e*1e7},si=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=ni(t[e]);n=""===n?r:n+oi("0",7-r.length)+r}return n},li=s((function(){return"0.000"!==ai(8e-5,3)||"1"!==ai(.9,0)||"1.25"!==ai(1.255,2)||"1000000000000000128"!==ai(0xde0b6b3a7640080,0)}))||!s((function(){ai({})}));ze({target:"Number",proto:!0,forced:li},{toFixed:function(t){var e,n,r,o,i=Xo(this),a=ge(t),u=[0,0,0,0,0,0],c="",f="0";if(a<0||a>20)throw ei("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return ni(i);if(i<0&&(c="-",i=-i),i>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*ui(2,69,1))-69,n=e<0?i*ui(2,-e,1):i/ui(2,e,1),n*=4503599627370496,(e=52-e)>0){for(ci(u,0,n),r=a;r>=7;)ci(u,1e7,0),r-=7;for(ci(u,ui(10,r,1),0),r=e-1;r>=23;)fi(u,1<<23),r-=23;fi(u,1<<r),ci(u,1,1),fi(u,2),f=si(u)}else ci(u,0,n),ci(u,1<<-e,0),f=si(u)+oi("0",a);return f=a>0?c+((o=f.length)<=a?"0."+oi("0",a-o)+f:ii(f,0,o-a)+"."+ii(f,o-a)):c+f}});var di="\t\n\v\f\r \u2028\u2029\ufeff",pi=x("".replace),vi=RegExp("^["+di+"]+"),gi=RegExp("(^|[^"+di+"])["+di+"]+$"),hi=function(t){return function(e){var n=$n(M(e));return 1&t&&(n=pi(n,vi,"")),2&t&&(n=pi(n,gi,"$1")),n}},mi={start:hi(1),end:hi(2),trim:hi(3)},yi=mi.trim,wi=x("".charAt),bi=f.parseFloat,Si=f.Symbol,Ei=Si&&Si.iterator,xi=1/bi(di+"-0")!=-1/0||Ei&&!s((function(){bi(Object(Ei))}))?function(t){var e=yi($n(t)),n=bi(e);return 0===n&&"-"==wi(e,0)?-0:n}:bi;ze({global:!0,forced:parseFloat!=xi},{parseFloat:xi});var Oi=TypeError,Ti=bt("species"),Ai=function(t,e){var n,r=_t(t).constructor;return void 0===r||R(n=_t(r)[Ti])?e:function(t){if(On(t))return t;throw Oi(X(t)+" is not a constructor")}(n)},ji=Array,Ii=Math.max,Pi=function(t,e,n){for(var r=Se(t),o=ye(e,r),i=ye(void 0===n?r:n,r),a=ji(Ii(i-o,0)),u=0;o<i;o++,u++)fn(a,u,t[o]);return a.length=u,a},Ri=Yn.UNSUPPORTED_Y,Ci=4294967295,Mi=Math.min,Ni=[].push,_i=x(/./.exec),ki=x(Ni),Li=x("".slice),Fi=!s((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));Wr("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=$n(M(this)),o=void 0===n?Ci:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Un(t))return v(e,r,t,o);for(var i,a,u,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,f+"g");(i=v(Lr,l,r))&&!((a=l.lastIndex)>s&&(ki(c,Li(r,s,i.index)),i.length>1&&i.index<r.length&&io(Ni,c,Pi(i,1)),u=i[0].length,s=a,c.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===r.length?!u&&_i(l,"")||ki(c,""):ki(c,Li(r,s)),c.length>o?Pi(c,0,o):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:v(e,this,t,n)}:e,[function(e,n){var o=M(this),i=R(e)?void 0:nt(e,t);return i?v(i,e,o,n):v(r,$n(o),e,n)},function(t,o){var i=_t(this),a=$n(t),u=n(r,i,a,o,r!==e);if(u.done)return u.value;var c=Ai(i,RegExp),f=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ri?"g":"y"),l=new c(Ri?"^(?:"+i.source+")":i,s),d=void 0===o?Ci:o>>>0;if(0===d)return[];if(0===a.length)return null===to(l,a)?[a]:[];for(var p=0,v=0,g=[];v<a.length;){l.lastIndex=Ri?0:v;var h,m=to(l,Ri?Li(a,v):a);if(null===m||(h=Mi(be(l.lastIndex+(Ri?v:0)),a.length))===p)v=Qr(a,v,f);else{if(ki(g,Li(a,p,v)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(ki(g,m[y]),g.length===d)return g;v=p=h}}return ki(g,Li(a,p)),g}]}),!Fi,Ri);var Di=Object.assign,Ui=Object.defineProperty,Bi=x([].concat),$i=!Di||s((function(){if(l&&1!==Di({b:1},Di(Ui({},"a",{enumerable:!0,get:function(){Ui(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Di({},t)[n]||Ve(Di({},e)).join("")!=r}))?function(t,e){for(var n=st(t),r=arguments.length,o=1,i=Re.f,a=y.f;r>o;)for(var u,c=P(arguments[o++]),f=i?Bi(Ve(c),i(c)):Ve(c),s=f.length,d=0;s>d;)u=f[d++],l&&!v(a,c,u)||(n[u]=c[u]);return n}:Di;ze({target:"Object",stat:!0,arity:2,forced:Object.assign!==$i},{assign:$i});var zi=f,Vi=Pe.f,qi=Rt.f,Wi=$t.f,Gi=mi.trim,Hi="Number",Yi=f[Hi];zi[Hi];var Zi=Yi.prototype,Ji=f.TypeError,Ki=x("".slice),Qi=x("".charCodeAt),Xi=function(t){var e,n,r,o,i,a,u,c,f=xt(t,"number");if(K(f))throw Ji("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=Gi(f),43===(e=Qi(f,0))||45===e){if(88===(n=Qi(f,2))||120===n)return NaN}else if(48===e){switch(Qi(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(a=(i=Ki(f,2)).length,u=0;u<a;u++)if((c=Qi(i,u))<48||c>o)return NaN;return parseInt(i,r)}return+f},ta=Be(Hi,!Yi(" 0o1")||!Yi("0b1")||Yi("+0x1")),ea=function(t){var e,n=arguments.length<1?0:Yi(function(t){var e=xt(t,"number");return"bigint"==typeof e?e:Xi(e)}(t));return $(Zi,e=this)&&s((function(){Xo(e)}))?Fn(Object(n),this,ea):n};ea.prototype=Zi,ta&&(Zi.constructor=ea),ze({global:!0,constructor:!0,wrap:!0,forced:ta},{Number:ea});ta&&function(t,e){for(var n,r=l?Vi(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)dt(e,n=r[o])&&!dt(t,n)&&Wi(t,n,qi(e,n))}(zi[Hi],Yi);var na,ra,oa,ia,aa=$t.f,ua=bt("toStringTag"),ca=function(t,e,n){t&&!n&&(t=t.prototype),t&&!dt(t,ua)&&aa(t,ua,{configurable:!0,value:e})},fa=TypeError,sa=TypeError,la=/(?:ipad|iphone|ipod).*applewebkit/i.test(z),da=f.setImmediate,pa=f.clearImmediate,va=f.process,ga=f.Dispatch,ha=f.Function,ma=f.MessageChannel,ya=f.String,wa=0,ba={},Sa="onreadystatechange";s((function(){na=f.location}));var Ea=function(t){if(dt(ba,t)){var e=ba[t];delete ba[t],e()}},xa=function(t){return function(){Ea(t)}},Oa=function(t){Ea(t.data)},Ta=function(t){f.postMessage(ya(t),na.protocol+"//"+na.host)};da&&pa||(da=function(t){!function(t,e){if(t<e)throw sa("Not enough arguments")}(arguments.length,1);var e=F(t)?t:ha(t),n=ko(arguments,1);return ba[++wa]=function(){io(e,void 0,n)},ra(wa),wa},pa=function(t){delete ba[t]},Co?ra=function(t){va.nextTick(xa(t))}:ga&&ga.now?ra=function(t){ga.now(xa(t))}:ma&&!la?(ia=(oa=new ma).port2,oa.port1.onmessage=Oa,ra=Wo(ia.postMessage,ia)):f.addEventListener&&F(f.postMessage)&&!f.importScripts&&na&&"file:"!==na.protocol&&!s(Ta)?(ra=Ta,f.addEventListener("message",Oa,!1)):ra=Sa in jt("script")?function(t){Ge.appendChild(jt("script"))[Sa]=function(){Ge.removeChild(this),Ea(t)}}:function(t){setTimeout(xa(t),0)});var Aa={set:da,clear:pa},ja=function(){this.head=null,this.tail=null};ja.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ia,Pa,Ra,Ca,Ma,Na=ja,_a=/ipad|iphone|ipod/i.test(z)&&"undefined"!=typeof Pebble,ka=/web0s(?!.*chrome)/i.test(z),La=Rt.f,Fa=Aa.set,Da=f.MutationObserver||f.WebKitMutationObserver,Ua=f.document,Ba=f.process,$a=f.Promise,za=La(f,"queueMicrotask"),Va=za&&za.value;if(!Va){var qa=new Na,Wa=function(){var t,e;for(Co&&(t=Ba.domain)&&t.exit();e=qa.get();)try{e()}catch(t){throw qa.head&&Ia(),t}t&&t.enter()};la||Co||ka||!Da||!Ua?!_a&&$a&&$a.resolve?((Ca=$a.resolve(void 0)).constructor=$a,Ma=Wo(Ca.then,Ca),Ia=function(){Ma(Wa)}):Co?Ia=function(){Ba.nextTick(Wa)}:(Fa=Wo(Fa,f),Ia=function(){Fa(Wa)}):(Pa=!0,Ra=Ua.createTextNode(""),new Da(Wa).observe(Ra,{characterData:!0}),Ia=function(){Ra.data=Pa=!Pa}),Va=function(t){qa.head||Ia(),qa.add(t)}}var Ga=Va,Ha=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ya=f.Promise,Za="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ja=!Za&&!Co&&"object"==typeof window&&"object"==typeof document;Ya&&Ya.prototype;var Ka,Qa,Xa,tu=bt("species"),eu=!1,nu=F(f.PromiseRejectionEvent),ru=Be("Promise",(function(){var t=Kt(Ya),e=t!==String(Ya);if(!e&&66===H)return!0;if(!H||H<51||!/native code/.test(t)){var n=new Ya((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[tu]=r,!(eu=n.then((function(){}))instanceof r))return!0}return!e&&(Ja||Za)&&!nu})),ou={CONSTRUCTOR:ru,REJECTION_EVENT:nu,SUBCLASSING:eu},iu=TypeError,au=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw iu("Bad Promise constructor");e=t,n=r})),this.resolve=et(e),this.reject=et(n)},uu={f:function(t){return new au(t)}},cu=Aa.set,fu="Promise",su=ou.CONSTRUCTOR,lu=ou.REJECTION_EVENT,du=ou.SUBCLASSING,pu=fe.getterFor(fu),vu=fe.set,gu=Ya&&Ya.prototype,hu=Ya,mu=gu,yu=f.TypeError,wu=f.document,bu=f.process,Su=uu.f,Eu=Su,xu=!!(wu&&wu.createEvent&&f.dispatchEvent),Ou="unhandledrejection",Tu=function(t){var e;return!(!U(t)||!F(e=t.then))&&e},Au=function(t,e){var n,r,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,c=t.resolve,f=t.reject,s=t.domain;try{u?(a||(2===e.rejection&&Cu(e),e.rejection=1),!0===u?n=i:(s&&s.enter(),n=u(i),s&&(s.exit(),o=!0)),n===t.promise?f(yu("Promise-chain cycle")):(r=Tu(n))?v(r,n,c,f):c(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},ju=function(t,e){t.notified||(t.notified=!0,Ga((function(){for(var n,r=t.reactions;n=r.get();)Au(n,t);t.notified=!1,e&&!t.rejection&&Pu(t)})))},Iu=function(t,e,n){var r,o;xu?((r=wu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),f.dispatchEvent(r)):r={promise:e,reason:n},!lu&&(o=f["on"+t])?o(r):t===Ou&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},Pu=function(t){v(cu,f,(function(){var e,n=t.facade,r=t.value;if(Ru(t)&&(e=Ha((function(){Co?bu.emit("unhandledRejection",r,n):Iu(Ou,n,r)})),t.rejection=Co||Ru(t)?2:1,e.error))throw e.value}))},Ru=function(t){return 1!==t.rejection&&!t.parent},Cu=function(t){v(cu,f,(function(){var e=t.facade;Co?bu.emit("rejectionHandled",e):Iu("rejectionhandled",e,t.value)}))},Mu=function(t,e,n){return function(r){t(e,r,n)}},Nu=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ju(t,!0))},_u=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw yu("Promise can't be resolved itself");var r=Tu(e);r?Ga((function(){var n={done:!1};try{v(r,e,Mu(_u,n,t),Mu(Nu,n,t))}catch(e){Nu(n,e,t)}})):(t.value=e,t.state=1,ju(t,!1))}catch(e){Nu({done:!1},e,t)}}};if(su&&(mu=(hu=function(t){!function(t,e){if($(e,t))return t;throw fa("Incorrect invocation")}(this,mu),et(t),v(Ka,this);var e=pu(this);try{t(Mu(_u,e),Mu(Nu,e))}catch(t){Nu(e,t)}}).prototype,(Ka=function(t){vu(this,{type:fu,done:!1,notified:!1,parent:!1,reactions:new Na,rejection:!1,state:0,value:void 0})}).prototype=le(mu,"then",(function(t,e){var n=pu(this),r=Su(Ai(this,hu));return n.parent=!0,r.ok=!F(t)||t,r.fail=F(e)&&e,r.domain=Co?bu.domain:void 0,0==n.state?n.reactions.add(r):Ga((function(){Au(r,n)})),r.promise})),Qa=function(){var t=new Ka,e=pu(t);this.promise=t,this.resolve=Mu(_u,e),this.reject=Mu(Nu,e)},uu.f=Su=function(t){return t===hu||undefined===t?new Qa(t):Eu(t)},F(Ya)&&gu!==Object.prototype)){Xa=gu.then,du||le(gu,"then",(function(t,e){var n=this;return new hu((function(t,e){v(Xa,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete gu.constructor}catch(t){}Ln&&Ln(gu,mu)}ze({global:!0,constructor:!0,wrap:!0,forced:su},{Promise:hu}),ca(hu,fu,!1),Xn(fu);var ku={},Lu=bt("iterator"),Fu=Array.prototype,Du=function(t){return void 0!==t&&(ku.Array===t||Fu[Lu]===t)},Uu=bt("iterator"),Bu=function(t){if(!R(t))return nt(t,Uu)||nt(t,"@@iterator")||ku[gn(t)]},$u=TypeError,zu=function(t,e){var n=arguments.length<2?Bu(t):e;if(et(n))return _t(v(n,t));throw $u(X(t)+" is not iterable")},Vu=function(t,e,n){var r,o;_t(t);try{if(!(r=nt(t,"return"))){if("throw"===e)throw n;return n}r=v(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return _t(r),n},qu=TypeError,Wu=function(t,e){this.stopped=t,this.result=e},Gu=Wu.prototype,Hu=function(t,e,n){var r,o,i,a,u,c,f,s=n&&n.that,l=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),g=!(!n||!n.INTERRUPTED),h=Wo(e,s),m=function(t){return r&&Vu(r,"normal",t),new Wu(!0,t)},y=function(t){return l?(_t(t),g?h(t[0],t[1],m):h(t[0],t[1])):g?h(t,m):h(t)};if(d)r=t.iterator;else if(p)r=t;else{if(!(o=Bu(t)))throw qu(X(t)+" is not iterable");if(Du(o)){for(i=0,a=Se(t);a>i;i++)if((u=y(t[i]))&&$(Gu,u))return u;return new Wu(!1)}r=zu(t,o)}for(c=d?t.next:r.next;!(f=v(c,r)).done;){try{u=y(f.value)}catch(t){Vu(r,"throw",t)}if("object"==typeof u&&u&&$(Gu,u))return u}return new Wu(!1)},Yu=bt("iterator"),Zu=!1;try{var Ju=0,Ku={next:function(){return{done:!!Ju++}},return:function(){Zu=!0}};Ku[Yu]=function(){return this},Array.from(Ku,(function(){throw 2}))}catch(t){}var Qu=function(t,e){if(!e&&!Zu)return!1;var n=!1;try{var r={};r[Yu]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Xu=ou.CONSTRUCTOR||!Qu((function(t){Ya.all(t).then(void 0,(function(){}))}));ze({target:"Promise",stat:!0,forced:Xu},{all:function(t){var e=this,n=uu.f(e),r=n.resolve,o=n.reject,i=Ha((function(){var n=et(e.resolve),i=[],a=0,u=1;Hu(t,(function(t){var c=a++,f=!1;u++,v(n,e,t).then((function(t){f||(f=!0,i[c]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise}});var tc=ou.CONSTRUCTOR,ec=Ya&&Ya.prototype;if(ze({target:"Promise",proto:!0,forced:tc,real:!0},{catch:function(t){return this.then(void 0,t)}}),F(Ya)){var nc=B("Promise").prototype.catch;ec.catch!==nc&&le(ec,"catch",nc,{unsafe:!0})}ze({target:"Promise",stat:!0,forced:Xu},{race:function(t){var e=this,n=uu.f(e),r=n.reject,o=Ha((function(){var o=et(e.resolve);Hu(t,(function(t){v(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),ze({target:"Promise",stat:!0,forced:ou.CONSTRUCTOR},{reject:function(t){var e=uu.f(this);return v(e.reject,void 0,t),e.promise}});var rc=ou.CONSTRUCTOR;B("Promise"),ze({target:"Promise",stat:!0,forced:rc},{resolve:function(t){return function(t,e){if(_t(t),U(e)&&e.constructor===t)return e;var n=uu.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var oc=Gt.EXISTS,ic=Function.prototype,ac=x(ic.toString),uc=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,cc=x(uc.exec);l&&!oc&&Kn(ic,"name",{configurable:!0,get:function(){try{return cc(uc,ac(this))[1]}catch(t){return""}}});var fc=x([].join),sc=P!=Object||!xo("join",",");ze({target:"Array",proto:!0,forced:sc},{join:function(t){return fc(N(this),void 0===t?",":t)}});var lc,dc=Gt.PROPER,pc=mi.trim;ze({target:"String",proto:!0,forced:(lc="trim",s((function(){return!!di[lc]()||"
"!=="
"[lc]()||dc&&di[lc].name!==lc})))},{trim:function(){return pc(this)}});var vc,gc=TypeError,hc=function(t){if(Un(t))throw gc("The method doesn't accept regular expressions");return t},mc=bt("match"),yc=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[mc]=!1,"/./"[t](e)}catch(t){}}return!1},wc=Rt.f,bc=zr("".startsWith),Sc=zr("".slice),Ec=Math.min,xc=yc("startsWith"),Oc=!(xc||(vc=wc(String.prototype,"startsWith"),!vc||vc.writable));ze({target:"String",proto:!0,forced:!Oc&&!xc},{startsWith:function(t){var e=$n(M(this));hc(t);var n=be(Ec(arguments.length>1?arguments[1]:void 0,e.length)),r=$n(t);return bc?bc(e,r,n):Sc(e,n,n+r.length)===r}});var Tc=x("".indexOf);ze({target:"String",proto:!0,forced:!yc("includes")},{includes:function(t){return!!~Tc($n(M(this)),$n(hc(t)),arguments.length>1?arguments[1]:void 0)}});var Ac=Yo.find,jc="find",Ic=!0;jc in[]&&Array(1)[jc]((function(){Ic=!1})),ze({target:"Array",proto:!0,forced:Ic},{find:function(t){return Ac(this,t,arguments.length>1?arguments[1]:void 0)}}),on(jc);var Pc=Yo.forEach,Rc=xo("forEach")?[].forEach:function(t){return Pc(this,t,arguments.length>1?arguments[1]:void 0)};ze({target:"Array",proto:!0,forced:[].forEach!=Rc},{forEach:Rc});var Cc={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},Mc=jt("span").classList,Nc=Mc&&Mc.constructor&&Mc.constructor.prototype,_c=Nc===Object.prototype?void 0:Nc,kc=function(t){if(t&&t.forEach!==Rc)try{zt(t,"forEach",Rc)}catch(e){t.forEach=Rc}};for(var Lc in Cc)Cc[Lc]&&kc(f[Lc]&&f[Lc].prototype);kc(_c);var Fc=s((function(){Ve(1)}));ze({target:"Object",stat:!0,forced:Fc},{keys:function(t){return Ve(st(t))}});var Dc,Uc,Bc,$c=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),zc=ee("IE_PROTO"),Vc=Object,qc=Vc.prototype,Wc=$c?Vc.getPrototypeOf:function(t){var e=st(t);if(dt(e,zc))return e[zc];var n=e.constructor;return F(n)&&e instanceof n?n.prototype:e instanceof Vc?qc:null},Gc=bt("iterator"),Hc=!1;[].keys&&("next"in(Bc=[].keys())?(Uc=Wc(Wc(Bc)))!==Object.prototype&&(Dc=Uc):Hc=!0);var Yc=!U(Dc)||s((function(){var t={};return Dc[Gc].call(t)!==t}));Yc&&(Dc={}),F(Dc[Gc])||le(Dc,Gc,(function(){return this}));var Zc={IteratorPrototype:Dc,BUGGY_SAFARI_ITERATORS:Hc},Jc=Zc.IteratorPrototype,Kc=function(){return this},Qc=Gt.PROPER,Xc=Gt.CONFIGURABLE,tf=Zc.IteratorPrototype,ef=Zc.BUGGY_SAFARI_ITERATORS,nf=bt("iterator"),rf="keys",of="values",af="entries",uf=function(){return this},cf=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=tn(Jc,{next:w(+!r,n)}),ca(t,o,!1),ku[o]=Kc}(n,e,r);var u,c,f,s=function(t){if(t===o&&h)return h;if(!ef&&t in p)return p[t];switch(t){case rf:case of:case af:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,p=t.prototype,g=p[nf]||p["@@iterator"]||o&&p[o],h=!ef&&g||s(o),m="Array"==e&&p.entries||g;if(m&&(u=Wc(m.call(new t)))!==Object.prototype&&u.next&&(Wc(u)!==tf&&(Ln?Ln(u,tf):F(u[nf])||le(u,nf,uf)),ca(u,l,!0)),Qc&&o==of&&g&&g.name!==of&&(Xc?zt(p,"name",of):(d=!0,h=function(){return v(g,this)})),o)if(c={values:s(of),keys:i?h:s(rf),entries:s(af)},a)for(f in c)(ef||d||!(f in p))&&le(p,f,c[f]);else ze({target:e,proto:!0,forced:ef||d},c);return p[nf]!==h&&le(p,nf,h,{name:o}),ku[e]=h,c},ff=function(t,e){return{value:t,done:e}},sf=$t.f,lf="Array Iterator",df=fe.set,pf=fe.getterFor(lf),vf=cf(Array,"Array",(function(t,e){df(this,{type:lf,target:N(t),index:0,kind:e})}),(function(){var t=pf(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,ff(void 0,!0)):ff("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),gf=ku.Arguments=ku.Array;if(on("keys"),on("values"),on("entries"),l&&"values"!==gf.name)try{sf(gf,"name",{value:"values"})}catch(t){}var hf=Jr.charAt,mf="String Iterator",yf=fe.set,wf=fe.getterFor(mf);cf(String,"String",(function(t){yf(this,{type:mf,string:$n(t),index:0})}),(function(){var t,e=wf(this),n=e.string,r=e.index;return r>=n.length?ff(void 0,!0):(t=hf(n,r),e.index+=t.length,ff(t,!1))}));var bf=bt("iterator"),Sf=bt("toStringTag"),Ef=vf.values,xf=function(t,e){if(t){if(t[bf]!==Ef)try{zt(t,bf,Ef)}catch(e){t[bf]=Ef}if(t[Sf]||zt(t,Sf,e),Cc[e])for(var n in vf)if(t[n]!==vf[n])try{zt(t,n,vf[n])}catch(e){t[n]=vf[n]}}};for(var Of in Cc)xf(f[Of]&&f[Of].prototype,Of);xf(_c,"DOMTokenList");var Tf=s((function(){Wc(1)}));ze({target:"Object",stat:!0,forced:Tf,sham:!$c},{getPrototypeOf:function(t){return Wc(st(t))}});var Af=TypeError,jf=Object.getOwnPropertyDescriptor,If=l&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(an(t)&&!jf(t,"length").writable)throw Af("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Pf=TypeError,Rf=function(t,e){if(!delete t[e])throw Pf("Cannot delete property "+X(e)+" of "+X(t))},Cf=Pn("splice"),Mf=Math.max,Nf=Math.min;ze({target:"Array",proto:!0,forced:!Cf},{splice:function(t,e){var n,r,o,i,a,u,c=st(this),f=Se(c),s=ye(t,f),l=arguments.length;for(0===l?n=r=0:1===l?(n=0,r=f-s):(n=l-2,r=Nf(Mf(ge(e),0),f-s)),cn(f+n-r),o=jn(c,r),i=0;i<r;i++)(a=s+i)in c&&fn(o,i,c[a]);if(o.length=r,n<r){for(i=s;i<f-r;i++)u=i+n,(a=i+r)in c?c[u]=c[a]:Rf(c,u);for(i=f;i>f-r+n;i--)Rf(c,i-1)}else if(n>r)for(i=f-r;i>s;i--)u=i+n-1,(a=i+r-1)in c?c[u]=c[a]:Rf(c,u);for(i=0;i<n;i++)c[i+s]=arguments[i+2];return If(c,f-r+n),o}});var _f=function(t,e,n,r){try{return r?e(_t(n)[0],n[1]):e(n)}catch(e){Vu(t,"throw",e)}},kf=Array,Lf=!Qu((function(t){Array.from(t)}));ze({target:"Array",stat:!0,forced:Lf},{from:function(t){var e=st(t),n=On(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Wo(o,r>2?arguments[2]:void 0));var a,u,c,f,s,l,d=Bu(e),p=0;if(!d||this===kf&&Du(d))for(a=Se(e),u=n?new this(a):kf(a);a>p;p++)l=i?o(e[p],p):e[p],fn(u,p,l);else for(s=(f=zu(e,d)).next,u=n?new this:[];!(c=v(s,f)).done;p++)l=i?_f(f,o,[c.value,p],!0):c.value,fn(u,p,l);return u.length=p,u}});var Ff=function(){return Ff=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ff.apply(this,arguments)};function Df(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}function Uf(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function Bf(t,e){for(var n=t.length,r=e.length,o=Wf(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}var c=Array.prototype.concat.apply([],o);return Math.max.apply(Math,c)}function $f(t,e){for(var n=t.length,r=e.length,o=Wf(new Array(n).fill(new Array(r).fill(0))),i=0;i<n;++i)for(var a=0;a<r;++a)if(t[i]===e[a]){var u=0;i>0&&a>0&&(u=o[i-1][a-1]),o[i][a]=u+1}else{var c=[0,0],f=c[0],s=c[1];a>0&&(f=o[i][a-1]),i>0&&(s=o[i-1][a]),o[i][a]=Math.max(f,s)}var l=Array.prototype.concat.apply([],o);return Math.max.apply(Math,l)}function zf(t){var e=t.replace(/([A-Z])/g,"-$1").toLowerCase();return"-"===e[0]?e.substring(1):e}function Vf(t){var e=t.replace(/([A-Z])/g,"_$1").toLowerCase();return"_"===e[0]?e.substring(1):e}function qf(t){return Vf(t)}function Wf(t){if("object"!==u(t))return t;var e=["string","number","boolean","undefined"];return Object.values(t).every((function(t){return e.includes(u(t))}))?Ff({},t):JSON.parse(JSON.stringify(t))}function Gf(t){try{if("object"===u(JSON.parse(t)))return!0}catch(t){}return!1}function Hf(t){void 0===t&&(t=5);for(var e="";t--;)e+=Math.floor(10*Math.random());return e}function Yf(t){return void 0===t&&(t=5),Hf(t)}function Zf(t){void 0===t&&(t=3);var e=[ts(),Yf(t||3)];return e[0]+e[1]}var Jf={type:"d"};function Kf(t,e){void 0===e&&(e={});var n=e.isNaNAsNumber,r=void 0!==n&&n,o=e.isInfinityAsNumber,i=void 0!==o&&o,a=e.isUnFiniteAsNumber;return"number"==typeof t&&(!(!0!==i&&!0!==(void 0!==a&&a)&&!isFinite(t))&&!(!r&&isNaN(t)))}function Qf(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=null;return t&&"function"==typeof t&&(r=t.apply(void 0,e)),r}function Xf(t,e){void 0===e&&(e={id:"",callback:function(){},timeout:5e3,isDefer:!1});var n,r,o=Object.assign({id:"",callback:function(){},timeout:5e3,isDefer:!1},e),i=o.id,a=o.callback,u=o.timeout,c=o.isDefer,f=document.createElement("script");f||Promise.reject("Not support create script element");var s=document.getElementsByTagName("script")[0];return f.type="text/javascript",c&&(f.defer=!0),i&&(f.id=i),f.readyState?f.onreadystatechange=function(){"loaded"!==f.readyState&&"complete"!==f.readyState||(f.onreadystatechange=null,Qf(a),Qf(n,"loaded"))}:f.onload=function(){Qf(a),Qf(n,"loaded")},f.src=t,s&&s.parentNode.insertBefore(f,s),new Promise((function(t,e){var o;n=(o=[t,e])[0],r=o[1],u&&setTimeout(r.bind(null,"timeout"),u)}))}function ts(){return Date.now?Date.now():(new Date).getTime()}function es(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""}function ns(t){var e=[],n=window.PerformanceObserver;return!!n&&(us(n.supportedEntryTypes)&&(e=n.supportedEntryTypes),e.includes(t))}function rs(){return Df(this,void 0,void 0,(function(){return Uf(this,(function(t){return ns("paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-contentful-paint"===t.name}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function os(){return Df(this,void 0,void 0,(function(){return Uf(this,(function(t){return ns("paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-paint"===t.name}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"paint",buffered:!0})}))]:[2,0]}))}))}function is(){if(window.MAZEY_BROWSER_INFO&&"object"===u(window.MAZEY_BROWSER_INFO))return window.MAZEY_BROWSER_INFO;var t={engine:"",engineVs:"",platform:"",supporter:"",supporterVs:"",system:"",systemVs:""};try{var e=navigator.userAgent.toLowerCase();if(!e)return t;var n=function(t){return t.test(e)},r=function(t){var n="",r=e.match(t);return r&&us(r)&&(n=(n=(n=r.toString()).replace(/[^0-9|_.]/g,"")).replace(/_/g,".")),n},o="",i="";n(/windows|win32|win64|wow32|wow64/g)?o="windows":n(/macintosh|macintel/g)?o="macos":n(/x11/g)?o="linux":n(/android|adr/g)?o="android":n(/ios|iphone|ipad|ipod|iwatch/g)&&(o="ios",n(/ipad/g)?i="ipad":n(/iphone/g)?i="iphone":n(/iwatch/g)?i="iwatch":n(/ipod/g)&&(i="ipod")),t=Ff(Ff({},t),{system:o,appleType:i});var a="";"windows"===o?n(/windows nt 5.0|windows 2000/g)?a="2000":n(/windows nt 5.1|windows xp/g)?a="xp":n(/windows nt 5.2|windows 2003/g)?a="2003":n(/windows nt 6.0|windows vista/g)?a="vista":n(/windows nt 6.1|windows 7/g)?a="7":n(/windows nt 6.2|windows 8/g)?a="8":n(/windows nt 6.3|windows 8.1/g)?a="8.1":n(/windows nt 10.0|windows 10/g)&&(a="10"):"macos"===o?a=r(/os x [\d._]+/g):"android"===o?a=r(/android [\d._]+/g):"ios"===o&&(a=r(/os [\d._]+/g)),t=Ff(Ff({},t),{systemVs:a});var c="";"windows"===o||"macos"===o||"linux"===o?c="desktop":("android"===o||"ios"===o||n(/mobile/g))&&(c="mobile"),t=Ff(Ff({},t),{platform:c});var f="",s="";n(/applewebkit/g)?(f="webkit",n(/edge/g)?s="edge":n(/opr/g)?s="opera":n(/chrome/g)?s="chrome":n(/safari/g)&&(s="safari")):n(/gecko/g)&&n(/firefox/g)?(f="gecko",s="firefox"):n(/presto/g)?(f="presto",s="opera"):n(/trident|compatible|msie/g)&&(f="trident",s="iexplore"),t=Ff(Ff({},t),{engine:f,supporter:s});var l="";"webkit"===f?l=r(/applewebkit\/[\d._]+/g):"gecko"===f?l=r(/gecko\/[\d._]+/g):"presto"===f?l=r(/presto\/[\d._]+/g):"trident"===f&&(l=r(/trident\/[\d._]+/g)),t=Ff(Ff({},t),{engineVs:l});var d="";"chrome"===s?d=r(/chrome\/[\d._]+/g):"safari"===s?d=r(/version\/[\d._]+/g):"firefox"===s?d=r(/firefox\/[\d._]+/g):"opera"===s?d=r(/opr\/[\d._]+/g):"iexplore"===s?d=r(/(msie [\d._]+)|(rv:[\d._]+)/g):"edge"===s&&(d=r(/edge\/[\d._]+/g)),t=Ff(Ff({},t),{supporterVs:d});var p="",v="";return n(/micromessenger/g)?(p="wechat",v=r(/micromessenger\/[\d._]+/g)):n(/qqbrowser/g)?(p="qq_browser",v=r(/qqbrowser\/[\d._]+/g)):n(/\sqq/g)?p="qq_app":n(/ucbrowser/g)?(p="uc",v=r(/ucbrowser\/[\d._]+/g)):n(/qihu 360se/g)?p="360":n(/2345explorer/g)?(p="2345",v=r(/2345explorer\/[\d._]+/g)):n(/metasr/g)?p="sougou":n(/lbbrowser/g)?p="liebao":n(/maxthon/g)?(p="maxthon",v=r(/maxthon\/[\d._]+/g)):n(/biliapp/g)&&(p="bilibili"),t=Ff(Ff({},t),{shell:p,shellVs:v}),window.MAZEY_BROWSER_INFO=t,t}catch(e){return console.warn("MazeyCon:",e),t}}function as(t,e,n){if(void 0===n&&(n=!1),""!=t&&t){for(var r=0,o="",i=/[^\x00-\xff]/g,a="",u=t.replace(i,"**").length,c=0;c<u&&(null!=(a=t.charAt(c).toString()).match(i)?r+=2:r++,!(r>e));c++)o+=a;return n&&u>e&&(o+="..."),o}return""}function us(t){var e=!1;return Array.isArray(t)&&t.length&&(e=!0),e}function cs(){var t=window.MAZEY_DEFINE_LISTENERS;return"object"!==u(t)&&(t={},window.MAZEY_DEFINE_LISTENERS=t),t}function fs(t){return Df(this,void 0,void 0,(function(){return Uf(this,(function(e){return[2,new Promise((function(e){setTimeout((function(){e(t)}),t)}))]}))}))}return t.addClass=function(t,e){var n,r=t.className,o="";""!==r&&(o=" "),n=r+o+e,t.className=n},t.addEvent=function(t,e){var n=cs();void 0===n[t]&&(n[t]=[]),"function"==typeof e&&n[t].push(e)},t.addStyle=function(t,e){if(void 0===e&&(e={id:""}),!t)return!1;var n=document.createDocumentFragment(),r=null,o="",i=document.createElement("style");return e.id?(o="".concat(e.id),(r=document.getElementById(o))?r.innerHTML=t:(i.setAttribute("id",e.id),i.innerHTML=t,n.appendChild(i),document.head.appendChild(n))):(i.innerHTML=t,n.appendChild(i),document.head.appendChild(n)),!0},t.calLongestCommonSubsequence=function(t,e){return $f(t,e)},t.calLongestCommonSubstring=function(t,e){return Bf(t,e)},t.camelCase2Underscore=qf,t.camelCaseToKebabCase=function(t){return zf(t)},t.cancelBubble=function(t){var e=t||window.event;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.clearHtml=function(t,e){void 0===e&&(e={});var n=e.removeNewLine,r=void 0!==n&&n,o="";return t&&(o=t.replace(/<\/?.+?>/g,""),r&&(o=o.replace(/[\r\n]/g,""))),o},t.convert10To26=function(t){for(var e="";t>0;){var n=t%26;0===n&&(n=26),e=String.fromCharCode(n+96)+e,t=(t-n)/26}return e},t.convertCamelToKebab=zf,t.convertCamelToUnder=Vf,t.cutCHSString=function(t,e,n){return void 0===n&&(n=!1),as(t,e,n)},t.debounce=function(t,e,n){var r=null,o=null,i=null,a=null,u=null,c=function c(){var f=ts()-i;f<e&&f>=0?o=setTimeout(c,e-f):(o=null,n||(u=t.apply(r,a),o||(r=a=null)))};return function(){for(var f=[],s=0;s<arguments.length;s++)f[s]=arguments[s];r=this,a=f,i=ts();var l=n&&!o;return o||(o=setTimeout(c,e)),l&&(u=t.apply(r,a),r=a=null),u}},t.deepCopy=Wf,t.deepCopyObject=function(t){return Wf(t)},t.delCookie=function(t){for(var e=document.cookie.split(";"),n=0;n<e.length;n++){var r=e[n].trim();if(r.startsWith("".concat(t,"="))){var o=r.split("=")[0],i=new Date;return i.setTime(i.getTime()-1),document.cookie="".concat(o,"=;expires=").concat(i.toUTCString()),!0}}return!1},t.doFn=Qf,t.floatFixed=function(t,e){return void 0===e&&(e=0),parseFloat(t).toFixed(e)},t.floatToPercent=function(t,e){void 0===e&&(e=0);var n="";return n=e?(100*t).toFixed(e):String(Math.floor(100*t)),"".concat(n,"%")},t.formatDate=function(t,e){void 0===e&&(e="yyyy-MM-dd"),t||(t=new Date);var n=new Date(t),r={yyyy:n.getFullYear(),MM:n.getMonth()+1,dd:n.getDate()<10?"0"+n.getDate():n.getDate(),hh:n.getHours()<10?"0"+n.getHours():n.getHours(),mm:n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),ss:n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds()},o=e||"yyyy-MM-dd";return Object.keys(r).forEach((function(t){var e=r[t];"MM"===t&&Number(e)<=9&&(e="0".concat(e)),o=o.replace(t,String(e))})),o},t.genCustomConsole=function(t,e){void 0===t&&(t=""),void 0===e&&(e={isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}});var n=Object.assign({isClosed:!1,showWrap:!1,showDate:!1,locales:"en-US",logFn:function(){},errorFn:function(){}},e),r=n.isClosed,o=n.showWrap,i=n.showDate,a=n.locales,u=n.logFn,c=n.errorFn,f=Object.create(null),s=function(){return(new Date).toLocaleDateString(a,{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})};return["log","info","warn","error"].forEach((function(e){f[e]=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r)return!1;var f=t,l=t;if("string"==typeof t&&t.length>=2){var d=t.length;f=":"===t[d-1]?t.substring(0,d-1):t}o&&console.log("--- ".concat(f," - begin ---")),i&&(l=t?"".concat(s()," ").concat(t):"".concat(s())),t||i?console[e].apply(console,function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}([l],n)):console[e].apply(console,n),"log"===e&&u(),"error"===e&&c(),o&&console.log("--- ".concat(f," - end ---"))}})),f},t.genHashCode=function(t){var e,n=0;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},t.genRndNumString=Hf,t.genStyleString=function(t,e){var n="";return e&&e.length>0&&(n=e.join(";")+";"),"".concat(t,"{").concat(n,"}")},t.genUniqueNumString=Zf,t.generateRndNum=Yf,t.generateUniqueNum=function(t){return void 0===t&&(t=3),Zf(t)},t.getBrowserInfo=is,t.getCLS=function(){return Df(this,void 0,void 0,(function(){return Uf(this,(function(t){return ns("layout-shift")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().reduce((function(t,e){var n=0;return Kf(e.value)&&(n=e.value),t+n}),0);e.disconnect(),t(r)}));e.observe({type:"layout-shift",buffered:!0})}))]:[2,0]}))}))},t.getCookie=es,t.getCurrentVersion=function(){return"v3"},t.getDefineListeners=cs,t.getDomain=function(t,e){void 0===e&&(e=["hostname"]);var n=document.createElement("a");return n.href=t,e.reduce((function(t,e){return t+=n[e]}),"")},t.getFCP=rs,t.getFID=function(){return Df(this,void 0,void 0,(function(){return Uf(this,(function(t){return ns("first-input")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"first-input"===t.entryType}));if(r){e.disconnect();var o=r.processingStart;t(o?Math.round(r.processingStart-r.startTime):0)}}));e.observe({type:"first-input",buffered:!0})}))]:[2,0]}))}))},t.getFP=os,t.getFileSize=function(t){var e=function(t){return String(Math.ceil(t))};if(!t)return"";var n=1024;return t<n?t+" B":t<Math.pow(n,2)?e(t/n)+" KB":t<Math.pow(n,3)?e(t/Math.pow(n,2))+" MB":t<Math.pow(n,4)?e(t/Math.pow(n,3))+" G":e(t/Math.pow(n,4))+" T"},t.getFriendlyInterval=function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=Jf);var r=(n=Object.assign(Jf,n)).type;Kf(t)||(t=new Date(t).getTime()),Kf(e)||(e=new Date(e).getTime());var o=Number(e)-Number(t),i="",a=new Array(4).fill(0),u=a[0],c=(a[1],a[2],a[3]),f=decodeURIComponent("%20%E5%A4%A9%20"),s=decodeURIComponent("%20%E6%97%B6%20"),l=decodeURIComponent("%20%E5%88%86%20"),d=decodeURIComponent("%20%E7%A7%92");if(o>=0)switch(u=Math.floor(o/1e3/60/60/24),Math.floor(o/1e3/60/60),Math.floor(o/1e3/60),c=Math.floor(o/1e3),r){case"d":i=u;break;case"text":i=(u=Math.floor(o/1e3/60/60/24))+f+Math.floor(o/1e3/60/60%24)+s+Math.floor(o/1e3/60%60)+l+(c=Math.floor(o/1e3%60))+d;break;default:i=c}return i},t.getHashQueryParam=function(t){var e=location.hash.split("?");if(1===e.length)return"";var n=new RegExp("(^|&)".concat(t,"=([^&]*)(&|$)")),r=e[1].match(n);return r?r[2]:""},t.getLCP=function(){return Df(this,void 0,void 0,(function(){return Uf(this,(function(t){return ns("largest-contentful-paint")?[2,new Promise((function(t){var e=new PerformanceObserver((function(n){var r=n.getEntries().find((function(t){return"largest-contentful-paint"===t.entryType}));r&&(e.disconnect(),t(Math.round(r.startTime)))}));e.observe({type:"largest-contentful-paint",buffered:!0})}))]:[2,0]}))}))},t.getLocalStorage=function(t){var e=null;if(t){var n=localStorage.getItem(t);n&&(e=JSON.parse(n))}return e},t.getPerformance=function(t){return void 0===t&&(t=!1),Df(this,void 0,void 0,(function(){function e(){var e={source:_,os:n(),osVersion:r(),deviceType:o(),network:i(),screenDirection:a(),unloadTime:v-g,redirectTime:h-m,dnsTime:y-w,tcpTime:b-S,sslTime:u(b,E),responseTime:x-O,downloadTime:T-x,firstPaintTime:F,firstContentfulPaintTime:D,domReadyTime:A-k,onloadTime:j-k,whiteTime:x-k,renderTime:I-k,decodedBodySize:C,encodedBodySize:M};Object.keys(e).forEach((function(t){Kf(e[t])&&(e[t]<0?e[t]=0:e[t]=Math.round(e[t]))})),Kf(e.whiteTime)&&e.whiteTime>e.onloadTime&&(e.whiteTime=0);var c={};t||Object.keys(e).forEach((function(t){c[qf(t)]=e[t]})),Object.keys(c).length?f(c):f(e)}function n(){return navigator.userAgent.indexOf("Android")>-1||navigator.userAgent.indexOf("Linux")>-1?"android":navigator.userAgent.indexOf("iPhone")>-1?"ios":navigator.userAgent.indexOf("Windows Phone")>-1?"wp":"others"}function r(){var t="",e=navigator.userAgent,n=e.indexOf("Android")>-1||e.indexOf("Linux")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),o=navigator.userAgent.split(";");if(o.length<2)return t;var i=o[1];return i?(n&&(t=(i.match(/\d+\.\d+/g)||[])[0]),r&&(t=(i.match(/(\d+)_(\d+)_?(\d+)?/)||[])[0]),t||(t=""),t):t}function o(){var t,e=navigator.userAgent.toLowerCase(),n=e.match(/(ipad)/i)&&"ipad",r=e.match(/iphone os/i)&&"iphone os",o=e.match(/midp/i)&&"midp",i=e.match(/rv:1.2.3.4/i)&&"rv:1.2.3.4",a=e.match(/ucweb/i)&&"ucweb",u=e.match(/android/i)&&"android",c=e.match(/windows ce/i)&&"windows ce",f=e.match(/windows mobile/i)&&"windows mobile";return(t=n||r||o||i||a||u||c||f?r||o||i||a||u||c||f?"phone":n?"ipad":void 0:"pc")||(t=""),t}function i(){var t="",e=window.navigator;if(e.connection&&e.connection.effectiveType)switch(e.connection.effectiveType){case"wifi":t="wifi";break;case"4g":t="4g";break;case"2g":t="2g";break;case"3g":t="3g";break;case"ethernet":t="ethernet";break;case"default":t=void 0}return t||(t=""),t}function a(){var t="";return window.screen&&window.screen.orientation&&window.screen.orientation.angle&&(180!==window.screen.orientation.angle&&0!==window.screen.orientation.angle||(t="|"),90!==window.screen.orientation.angle&&-90!==window.screen.orientation.angle||(t="-")),t}function u(t,e){var n=0;return e&&(n=t-e),n}var c,f,s,l,d,p,v,g,h,m,y,w,b,S,E,x,O,T,A,j,I,P,R,C,M,N,_,k,L,F,D;return Uf(this,(function(t){switch(t.label){case 0:if(!ns("navigation"))return[2,Promise.reject(new Error("navigation is not supported"))];if(!(c=window.performance)||"function"!=typeof c.getEntries||"function"!=typeof c.getEntriesByType)return[2,Promise.reject(new Error("performance is not supported"))];if(s=new Promise((function(t){f=[t][0]})),l=null,us(d=c.getEntriesByType("navigation"))&&(l=d[0]),p=new Array(19).fill(0),v=p[0],g=p[1],h=p[2],m=p[3],y=p[4],w=p[5],b=p[6],S=p[7],E=p[8],x=p[9],O=p[10],T=p[11],A=p[12],j=p[13],I=p[14],P=p[15],R=p[16],C=p[17],M=p[18],N=c.timing,_="",l)_="PerformanceNavigationTiming",C=l.decodedBodySize,M=l.encodedBodySize,v=l.unloadEventEnd,g=l.unloadEventStart,h=l.redirectEnd,m=l.redirectStart,y=l.domainLookupEnd,w=l.domainLookupStart,b=l.connectEnd,S=l.connectStart,E=l.secureConnectionStart,x=l.responseStart,O=l.requestStart,T=l.responseEnd,A=l.domContentLoadedEventStart,j=l.loadEventStart,I=l.loadEventEnd,P=l.startTime,R=l.fetchStart;else{if(!N)return[2,Promise.reject(new Error("NavigationTiming and Timing are not supported"))];_="PerformanceTiming",v=N.unloadEventEnd,g=N.unloadEventStart,h=N.redirectEnd,m=N.redirectStart,y=N.domainLookupEnd,w=N.domainLookupStart,b=N.connectEnd,S=N.connectStart,E=N.secureConnectionStart,x=N.responseStart,O=N.requestStart,T=N.responseEnd,A=N.domContentLoadedEventStart,j=N.loadEventStart,I=N.loadEventEnd,P=N.navigationStart,R=N.fetchStart}if(k=0,Kf(P))k=P;else{if(!Kf(R))return[2,Promise.reject(new Error("startTime, navigationStart or fetchStart are required"))];k=R}return[4,Promise.all([os(),rs()])];case 1:return L=t.sent(),F=L[0],D=L[1],Kf(I)&&I>0?e():window.addEventListener("load",(function(){window.setTimeout((function(){e()}),0)})),[2,s]}}))}))},t.getQueryParam=function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),n=location.search.substring(1).match(e);return null!==n?decodeURIComponent(n[2]):""},t.getScriptQueryParam=function(t,e){void 0===e&&(e=""),e||(e=".js");for(var n=new RegExp("[?&]".concat(t,"=([^&]*)")),r=document.querySelectorAll('script[src*="'.concat(e,'"]')),o=0;o<r.length;o++){var i=r[o].getAttribute("src");if(i&&-1!==i.indexOf(e)){var a=i.match(n);if(a)return decodeURIComponent(a[1])}}return""},t.getSessionStorage=function(t){var e=null;if(t){var n=sessionStorage.getItem(t);n&&(e=JSON.parse(n))}return e},t.getTTFB=function(){return Df(this,void 0,void 0,(function(){var t,e;return Uf(this,(function(n){return ns("navigation")&&window.performance&&window.performance.getEntriesByType?(t=performance.getEntriesByType("navigation")[0],0,t?(e=t.responseStart-t.requestStart,[2,Math.round(e)]):[2,0]):[2,0]}))}))},t.getUrlFileType=function(t){var e="";if("string"!=typeof t||""==t)return e;var n=/\.[^/?#]+$/.exec(t);return n?(n[0].length>1&&(e=n[0].substring(1)),e):e},t.getUrlParam=function(t,e){var n={};return t.replace(/\??(\w+)=([^&]*)&?/g,(function(t,e,r){if(void 0!==n[e]){var o=n[e];n[e]=[].concat(o,r)}else n[e]=r;return""})),n[e]||""},t.hasClass=function(t,e){for(var n=t.className.split(/\s+/),r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},t.inRate=function(t){return Math.random()<t},t.invokeEvent=function(t){var e=cs()[t];if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)"function"==typeof e[n]&&e[n]({type:t})},t.isJSONString=Gf,t.isJsonString=function(t){return Gf(t)},t.isNonEmptyArray=us,t.isNumber=Kf,t.isSafePWAEnv=function(){var t=is();return!(!("serviceWorker"in navigator&&function(){var t;try{return t=new Function("return async function(){};")(),null!=Object.getPrototypeOf(t).constructor}catch(t){return!1}}()&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")&&Boolean(window.fetch)&&Boolean(window.indexedDB)&&Boolean(window.caches))||t.shell)},t.isSupportWebp=function(){return new Promise((function(t){var e=new Image;e.onload=function(){t(e.width>0&&e.height>0)},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))},t.isValidData=function(t,e,n){var r=!1;return"object"!==u(t)||e.reduce((function(t,e){return void 0===t[e]?Object.create(null):t=t[e]}),t)===n&&(r=!0),r},t.isValidEmail=function(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},t.isValidHttpUrl=function(t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)/.test(t)},t.isValidPhoneNumber=function(t){return/^1\d{10}$/.test(t)},t.isValidUrl=function(t){return/^[a-zA-Z0-9]+:\/\/[-a-zA-Z0-9@:%._+~#=]{1,256}\b([-a-zA-Z0-9\u4E00-\u9FA5()!@:%_+.~#?&//=]*)$/.test(t)},t.loadCSS=function(t,e){void 0===e&&(e={id:""});var n,r=e.id,o=function(){},i=new Promise((function(t,e){var r;n=(r=[t,e])[0],o=r[1]})),a=function(){n("loaded")},u=document.createElement("link");u||o(new Error("Not support create link element"));var c="onload"in u,f=+navigator.userAgent.replace(/.*(?:AppleWebKit|AndroidWebKit)\/?(\d+).*/i,"$1")<536;if(u.rel="stylesheet",u.type="text/css",u.href=t,void 0!==r&&(u.id=r),document.getElementsByTagName("head")[0].appendChild(u),f||!c)return setTimeout((function(){l(u,a,0)}),1),i;function s(){u&&(u.onload=u.onerror=u.onreadystatechange=null),u=null,a()}function l(t,e,n){if(t){var r,o=t.sheet;if((n+=1)>3e5)return r=!0,t&&(t=null),void e();if(f)o&&(r=!0);else if(o)try{o.cssRules&&(r=!0)}catch(t){var i=t;if(!i.name)return;"NS_ERROR_DOM_SECURITY_ERR"===i.name&&(r=!0)}setTimeout((function(){r?e():l(t,e,n)}),20)}}return c?(u.onload=s,u.onerror=function(){s()}):u.onreadystatechange=function(){u&&/loaded|complete/.test(u.readyState)&&s()},i},t.loadImage=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=function(t){n(t)},r.src=t}))},t.loadScript=Xf,t.loadScriptIfUndefined=function(t,e){return window[t]?Promise.resolve("defined"):Xf(e)},t.longestComSubsequence=$f,t.longestComSubstring=Bf,t.mNow=ts,t.mTrim=function(t){for(var e=(t=t.replace(/^\s+/,"")).length-1,n=/\s/;n.test(t.charAt(e));)e--;return t.slice(0,e+1)},t.newLine=function(t){if(!t)return"";var e=new RegExp("\\n","g");return t.replace(e,"<br />")},t.removeClass=function(t,e){var n;n=(n=(n=(n=" "+t.className+" ").replace(/(\s+)/gi," ")).replace(" "+e+" "," ")).replace(/(^\s+)|(\s+$)/g,""),t.className=n},t.removeEvent=function(t,e){var n=cs(),r=n[t];if("string"==typeof t&&r instanceof Array)if("function"==typeof e){for(var o=0,i=r.length;o<i;o++)if(r[o]===e){n[t].splice(o,1);break}}else delete n[t]},t.repeatUntilConditionMet=function(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=function(t){return!0===t});var o=e.interval,i=void 0===o?1e3:o,a=e.times,u=void 0===a?10:a,c=e.context,f=e.args,s=0;"function"!=typeof t&&console.error("Expected a function."),("number"!=typeof i||i<0)&&console.error("Expected a non-negative number for interval."),("number"!=typeof u||u<0)&&console.error("Expected a non-negative number for times."),function e(){setTimeout((function(){return Df(r,void 0,void 0,(function(){var r;return Uf(this,(function(o){switch(o.label){case 0:return[4,t.apply(c,f)];case 1:return r=o.sent(),n(r)||++s>=u?[2]:(e(),[2])}}))}))}),i)}()},t.sanitizeInput=function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/[&<>"'/]/g,(function(t){return e[t]}))},t.setCookie=function(t,e,n,r){var o,i;if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),i="; expires="+a.toUTCString()}else i="";var u=location.host;1===u.split(".").length?document.cookie=t+"="+e+i+"; path=/":((o=u.split(".")).shift(),r=r||"."+o.join("."),document.cookie=t+"="+e+i+"; path=/; domain="+r,null!==es(t)&&es(t)===e||(r=r||"."+u,document.cookie=t+"="+e+i+"; path=/; domain="+r))},t.setImgWidHeiBySrc=function(){var t,e=window.jQuery||window.$;return e?!(!(t=e("img"))||!t.length)&&(t.each((function(){var t=e(this);if(t){var n=t.attr("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&us(r)&&r[1]&&t.width(r[1]),o&&us(o)&&o[1]&&t.height(o[1])}}})),!0):(t=document.getElementsByTagName("img")).length>0&&(Array.from(t).forEach((function(t){var e=t;if(e){var n=e.getAttribute("src");if(n&&"string"==typeof n&&n.length){var r=n.match(/width=([0-9]+[a-z%]*)/),o=n.match(/height=([0-9]+[a-z%]*)/);r&&us(r)&&r[1]&&(e.style.width=r[1]),o&&us(o)&&o[1]&&(e.style.height=o[1])}}})),!0)},t.setLocalStorage=function(t,e){void 0===e&&(e=null),t&&localStorage.setItem(t,JSON.stringify(e))},t.setSessionStorage=function(t,e){void 0===e&&(e=null),t&&sessionStorage.setItem(t,JSON.stringify(e))},t.sleep=function(t){return Df(this,void 0,void 0,(function(){return Uf(this,(function(e){return[2,fs(t)]}))}))},t.throttle=function(t,e,n){void 0===n&&(n={}),n=Object.assign({},n);var r=null,o=null,i=null,a=[null,0],u=a[0],c=a[1],f=function(){c=!1===n.leading?0:ts(),i=null,u=t.apply(this,o),i||(r=o=null)};return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=ts();c||!1!==n.leading||(c=l);var d=e-(l-c);return r=this,o=a,d<=0||d>e?(i&&(clearTimeout(i),i=null),c=l,u=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(f.bind(r),d)),u}},t.truncateZHString=as,t.unsanitize=function(t){var e={"&":"&","<":"<",">":">",""":'"',"'":"'","/":"/"};if("string"!=typeof t)throw new Error("Input must be a string");return t.replace(/(&|<|>|"|'|/)/g,(function(t){return e[t]}))},t.updateQueryParam=function(t,e,n){var r=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==t.indexOf("?")?"&":"?";return t.match(r)?t.replace(r,"$1"+e+"="+n+"$2"):t+o+e+"="+n},t.waitTime=fs,t.windowLoaded=function(t){void 0===t&&(t=90);var e,n=function(){},r=new Promise((function(t,r){n=t,e=r}));return"complete"===document.readyState?n("complete"):window.addEventListener("load",(function(){return n("load")})),setTimeout((function(){return e(Error("timeout"))}),1e3*t),r},t.zAxiosIsValidRes=function(t,e){void 0===e&&(e={validStatusRange:[200,300],validCode:[0]});var n=Object.assign({validStatusRange:[200,300],validCode:[0]},e),r=n.validStatusRange,o=n.validCode;2!==r.length&&console.error("valid validStatusRange is required");var i=!1;if(t&&t.status&&2===r.length&&t.status>=r[0]&&t.status<r[1]){var a=t.data;a&&o.includes(a.code)&&(i=!0)}return i},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
package/lib/typing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author:
|
|
2
|
+
* @author: Cheng
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
interface BrowserInfo {
|
|
@@ -61,7 +61,7 @@ type LoadScriptReturns = Promise<boolean | string | Error | void>;
|
|
|
61
61
|
|
|
62
62
|
type SimpleType = string | number | boolean | null | undefined;
|
|
63
63
|
type SimpleObject = {
|
|
64
|
-
[key: string]:
|
|
64
|
+
[key: string]: SimpleType | SimpleType[] | SimpleObject | SimpleObject[];
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
type UnknownObject = any; // Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mazey",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.6",
|
|
4
4
|
"description": "A functional library for daily front-end work.",
|
|
5
5
|
"main": "lib/index.cjs.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"url": "git+https://github.com/mazeyqian/mazey.git"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
|
+
"front-end",
|
|
30
31
|
"load",
|
|
31
32
|
"math",
|
|
32
33
|
"url",
|
|
@@ -52,9 +53,9 @@
|
|
|
52
53
|
"typescript"
|
|
53
54
|
],
|
|
54
55
|
"author": {
|
|
55
|
-
"name": "
|
|
56
|
+
"name": "Cheng",
|
|
56
57
|
"email": "mazeyqian@gmail.com",
|
|
57
|
-
"url": "https://
|
|
58
|
+
"url": "https://github.com/mazeyqian"
|
|
58
59
|
},
|
|
59
60
|
"license": "MIT",
|
|
60
61
|
"bugs": {
|
package/scripts/README.md
CHANGED
|
@@ -6,21 +6,23 @@ Release this project with version by `process.env.VERSION` or `package.json`.
|
|
|
6
6
|
|
|
7
7
|
Usage:
|
|
8
8
|
|
|
9
|
-
```
|
|
9
|
+
```javascript
|
|
10
10
|
const pkgVersion = process.env.VERSION || require('../package.json').version;
|
|
11
11
|
release(pkgVersion);
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
It will be more straightforward if you use the development dependence CrossEnv.
|
|
15
15
|
|
|
16
|
-
```
|
|
16
|
+
```shell
|
|
17
17
|
# Install
|
|
18
18
|
npm i cross-env -D
|
|
19
19
|
|
|
20
20
|
# scripts
|
|
21
21
|
cross-env SCRIPTS_NPM_PACKAGE_VERSION=$npm_package_version node ./scripts/release.js
|
|
22
|
+
```
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
```javascript
|
|
25
|
+
// release.js
|
|
24
26
|
release();
|
|
25
27
|
```
|
|
26
28
|
|
package/scripts/git-helper.js
CHANGED
|
@@ -8,28 +8,30 @@ const execa = require('execa');
|
|
|
8
8
|
*
|
|
9
9
|
* Usage:
|
|
10
10
|
*
|
|
11
|
-
* ```
|
|
11
|
+
* ```javascript
|
|
12
12
|
* const pkgVersion = process.env.VERSION || require('../package.json').version;
|
|
13
13
|
* release(pkgVersion);
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
16
|
* It will be more straightforward if you use the development dependence CrossEnv.
|
|
17
17
|
*
|
|
18
|
-
* ```
|
|
18
|
+
* ```shell
|
|
19
19
|
* # Install
|
|
20
20
|
* npm i cross-env -D
|
|
21
21
|
*
|
|
22
22
|
* # scripts
|
|
23
23
|
* cross-env SCRIPTS_NPM_PACKAGE_VERSION=$npm_package_version node ./scripts/release.js
|
|
24
|
+
* ```
|
|
24
25
|
*
|
|
25
|
-
*
|
|
26
|
+
* ```javascript
|
|
27
|
+
* // release.js
|
|
26
28
|
* release();
|
|
27
29
|
* ```
|
|
28
30
|
*
|
|
29
31
|
* @param {string} ver Version
|
|
30
32
|
* @returns {void}
|
|
31
33
|
*/
|
|
32
|
-
async function release (ver, { canGenerateToc = false, defaultBranch = '
|
|
34
|
+
async function release (ver, { canGenerateToc = false, defaultBranch = 'main' } = {}) {
|
|
33
35
|
if (!ver) {
|
|
34
36
|
ver = process.env.SCRIPTS_NPM_PACKAGE_VERSION;
|
|
35
37
|
}
|
|
@@ -105,7 +107,7 @@ async function gitPush () {
|
|
|
105
107
|
/**
|
|
106
108
|
* Merge master to current branch.
|
|
107
109
|
*/
|
|
108
|
-
async function gitMergeMaster2Release (defaultBranch = '
|
|
110
|
+
async function gitMergeMaster2Release (defaultBranch = 'main') {
|
|
109
111
|
const currentBranch = await getGitCurrentBranch();
|
|
110
112
|
await execa('git', [ 'checkout', defaultBranch ]);
|
|
111
113
|
await execa('git', [ 'pull' ]);
|