@fe-hl/shared
Version:
javascript常用工具库,支持typescript
6 lines • 54.7 kB
JavaScript
/*!
* @fe-hl/shared v1.0.6
* (c) 2022-2024 hl
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).FE_COMMON={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={exports:{}};!function(t,e){t.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",o="minute",u="hour",c="day",a="week",f="month",s="quarter",l="year",d="date",h="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},y=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},b={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+y(n,2,"0")+":"+y(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,f),o=r-i<0,u=e.clone().add(n+(o?-1:1),f);return+(-(n+(r-i)/(o?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:l,w:a,d:c,D:d,h:u,m:o,s:i,ms:n,Q:s}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},m="en",w={};w[m]=g;var S="$isDayjsObject",x=function(t){return t instanceof M||!(!t||!t[S])},O=function t(e,r,n){var i;if(!e)return m;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),r&&(w[o]=r,i=o);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else{var c=e.name;w[c]=e,i=c}return!n&&i&&(m=i),i||!n&&m},E=function(t,e){if(x(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new M(r)},$=b;$.l=O,$.i=x,$.w=function(t,e){return E(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var M=function(){function g(t){this.$L=O(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[S]=!0}var y=g.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if($.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(v);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return $},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(t,e){var r=E(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return E(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<E(t)},y.$g=function(t,e,r){return $.u(t)?this[e]:this.set(r,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var r=this,n=!!$.u(e)||e,s=$.p(t),h=function(t,e){var i=$.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(c)},v=function(t,e){return $.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},p=this.$W,g=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(s){case l:return n?h(1,0):h(31,11);case f:return n?h(1,g):h(0,g+1);case a:var m=this.$locale().weekStart||0,w=(p<m?p+7:p)-m;return h(n?y-w:y+(6-w),g);case c:case d:return v(b+"Hours",0);case u:return v(b+"Minutes",1);case o:return v(b+"Seconds",2);case i:return v(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var r,a=$.p(t),s="set"+(this.$u?"UTC":""),h=(r={},r[c]=s+"Date",r[d]=s+"Date",r[f]=s+"Month",r[l]=s+"FullYear",r[u]=s+"Hours",r[o]=s+"Minutes",r[i]=s+"Seconds",r[n]=s+"Milliseconds",r)[a],v=a===c?this.$D+(e-this.$W):e;if(a===f||a===l){var p=this.clone().set(d,1);p.$d[h](v),p.init(),this.$d=p.set(d,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](v);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[$.p(t)]()},y.add=function(n,s){var d,h=this;n=Number(n);var v=$.p(s),p=function(t){var e=E(h);return $.w(e.date(e.date()+Math.round(t*n)),h)};if(v===f)return this.set(f,this.$M+n);if(v===l)return this.set(l,this.$y+n);if(v===c)return p(1);if(v===a)return p(7);var g=(d={},d[o]=e,d[u]=r,d[i]=t,d)[v]||1,y=this.$d.getTime()+n*g;return $.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=$.z(this),o=this.$H,u=this.$m,c=this.$M,a=r.weekdays,f=r.months,s=r.meridiem,l=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},d=function(t){return $.s(o%12||12,t,"0")},v=s||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(p,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return $.s(e.$y,4,"0");case"M":return c+1;case"MM":return $.s(c+1,2,"0");case"MMM":return l(r.monthsShort,c,f,3);case"MMMM":return l(f,c);case"D":return e.$D;case"DD":return $.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return l(r.weekdaysMin,e.$W,a,2);case"ddd":return l(r.weekdaysShort,e.$W,a,3);case"dddd":return a[e.$W];case"H":return String(o);case"HH":return $.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return v(o,u,!0);case"A":return v(o,u,!1);case"m":return String(u);case"mm":return $.s(u,2,"0");case"s":return String(e.$s);case"ss":return $.s(e.$s,2,"0");case"SSS":return $.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,d,h){var v,p=this,g=$.p(d),y=E(n),b=(y.utcOffset()-this.utcOffset())*e,m=this-y,w=function(){return $.m(p,y)};switch(g){case l:v=w()/12;break;case f:v=w();break;case s:v=w()/3;break;case a:v=(m-b)/6048e5;break;case c:v=(m-b)/864e5;break;case u:v=m/r;break;case o:v=m/e;break;case i:v=m/t;break;default:v=m}return h?v:$.a(v)},y.daysInMonth=function(){return this.endOf(f).$D},y.$locale=function(){return w[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=O(t,e,!0);return n&&(r.$L=n),r},y.clone=function(){return $.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),D=M.prototype;return E.prototype=D,[["$ms",n],["$s",i],["$m",o],["$H",u],["$W",c],["$M",f],["$y",l],["$D",d]].forEach((function(t){D[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),E.extend=function(t,e){return t.$i||(t(e,M,E),t.$i=!0),E},E.locale=O,E.isDayjs=x,E.unix=function(t){return E(1e3*t)},E.en=w[m],E.Ls=w,E.p={},E}()}(r);var n=r.exports,i=function(t){return t&&t.Math===Math&&t},o=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u={},c=function(t){try{return!!t()}catch(t){return!0}},a=!c((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=f,l=Function.prototype.call,d=s?l.bind(l):function(){return l.apply(l,arguments)},h={},v={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,g=p&&!v.call({1:2},1);h.f=g?function(t){var e=p(this,t);return!!e&&e.enumerable}:v;var y,b,m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w=f,S=Function.prototype,x=S.call,O=w&&S.bind.bind(x,x),E=w?O:function(t){return function(){return x.apply(t,arguments)}},$=E,M=$({}.toString),D=$("".slice),A=function(t){return D(M(t),8,-1)},I=c,j=A,R=Object,T=E("".split),N=I((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"===j(t)?T(t,""):R(t)}:R,P=function(t){return null==t},_=P,Y=TypeError,F=function(t){if(_(t))throw new Y("Can't call method on "+t);return t},k=N,C=F,L=function(t){return k(C(t))},U="object"==typeof document&&document.all,H={all:U,IS_HTMLDDA:void 0===U&&void 0!==U},G=H.all,W=H.IS_HTMLDDA?function(t){return"function"==typeof t||t===G}:function(t){return"function"==typeof t},q=W,z=H.all,B=H.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:q(t)||t===z}:function(t){return"object"==typeof t?null!==t:q(t)},K=o,J=W,V=function(t,e){return arguments.length<2?(r=K[t],J(r)?r:void 0):K[t]&&K[t][e];var r},X=E({}.isPrototypeOf),Q=o,Z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",tt=Q.process,et=Q.Deno,rt=tt&&tt.versions||et&&et.version,nt=rt&&rt.v8;nt&&(b=(y=nt.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!b&&Z&&(!(y=Z.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=Z.match(/Chrome\/(\d+)/))&&(b=+y[1]);var it=b,ot=it,ut=c,ct=o.String,at=!!Object.getOwnPropertySymbols&&!ut((function(){var t=Symbol("symbol detection");return!ct(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ot&&ot<41})),ft=at&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,st=V,lt=W,dt=X,ht=Object,vt=ft?function(t){return"symbol"==typeof t}:function(t){var e=st("Symbol");return lt(e)&&dt(e.prototype,ht(t))},pt=String,gt=function(t){try{return pt(t)}catch(t){return"Object"}},yt=W,bt=gt,mt=TypeError,wt=function(t){if(yt(t))return t;throw new mt(bt(t)+" is not a function")},St=wt,xt=P,Ot=function(t,e){var r=t[e];return xt(r)?void 0:St(r)},Et=d,$t=W,Mt=B,Dt=TypeError,At={exports:{}},It=o,jt=Object.defineProperty,Rt=function(t,e){try{jt(It,t,{value:e,configurable:!0,writable:!0})}catch(r){It[t]=e}return e},Tt=Rt,Nt="__core-js_shared__",Pt=o[Nt]||Tt(Nt,{}),_t=Pt;(At.exports=function(t,e){return _t[t]||(_t[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.3",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"});var Yt=F,Ft=Object,kt=function(t){return Ft(Yt(t))},Ct=kt,Lt=E({}.hasOwnProperty),Ut=Object.hasOwn||function(t,e){return Lt(Ct(t),e)},Ht=E,Gt=0,Wt=Math.random(),qt=Ht(1..toString),zt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Gt+Wt,36)},Bt=o,Kt=At.exports,Jt=Ut,Vt=zt,Xt=at,Qt=ft,Zt=Bt.Symbol,te=Kt("wks"),ee=Qt?Zt.for||Zt:Zt&&Zt.withoutSetter||Vt,re=function(t){return Jt(te,t)||(te[t]=Xt&&Jt(Zt,t)?Zt[t]:ee("Symbol."+t)),te[t]},ne=d,ie=B,oe=vt,ue=Ot,ce=function(t,e){var r,n;if("string"===e&&$t(r=t.toString)&&!Mt(n=Et(r,t)))return n;if($t(r=t.valueOf)&&!Mt(n=Et(r,t)))return n;if("string"!==e&&$t(r=t.toString)&&!Mt(n=Et(r,t)))return n;throw new Dt("Can't convert object to primitive value")},ae=TypeError,fe=re("toPrimitive"),se=function(t,e){if(!ie(t)||oe(t))return t;var r,n=ue(t,fe);if(n){if(void 0===e&&(e="default"),r=ne(n,t,e),!ie(r)||oe(r))return r;throw new ae("Can't convert object to primitive value")}return void 0===e&&(e="number"),ce(t,e)},le=se,de=vt,he=function(t){var e=le(t,"string");return de(e)?e:e+""},ve=B,pe=o.document,ge=ve(pe)&&ve(pe.createElement),ye=function(t){return ge?pe.createElement(t):{}},be=ye,me=!a&&!c((function(){return 7!==Object.defineProperty(be("div"),"a",{get:function(){return 7}}).a})),we=a,Se=d,xe=h,Oe=m,Ee=L,$e=he,Me=Ut,De=me,Ae=Object.getOwnPropertyDescriptor;u.f=we?Ae:function(t,e){if(t=Ee(t),e=$e(e),De)try{return Ae(t,e)}catch(t){}if(Me(t,e))return Oe(!Se(xe.f,t,e),t[e])};var Ie={},je=a&&c((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Re=B,Te=String,Ne=TypeError,Pe=function(t){if(Re(t))return t;throw new Ne(Te(t)+" is not an object")},_e=a,Ye=me,Fe=je,ke=Pe,Ce=he,Le=TypeError,Ue=Object.defineProperty,He=Object.getOwnPropertyDescriptor,Ge="enumerable",We="configurable",qe="writable";Ie.f=_e?Fe?function(t,e,r){if(ke(t),e=Ce(e),ke(r),"function"==typeof t&&"prototype"===e&&"value"in r&&qe in r&&!r[qe]){var n=He(t,e);n&&n[qe]&&(t[e]=r.value,r={configurable:We in r?r[We]:n[We],enumerable:Ge in r?r[Ge]:n[Ge],writable:!1})}return Ue(t,e,r)}:Ue:function(t,e,r){if(ke(t),e=Ce(e),ke(r),Ye)try{return Ue(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new Le("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var ze=Ie,Be=m,Ke=a?function(t,e,r){return ze.f(t,e,Be(1,r))}:function(t,e,r){return t[e]=r,t},Je={exports:{}},Ve=a,Xe=Ut,Qe=Function.prototype,Ze=Ve&&Object.getOwnPropertyDescriptor,tr=Xe(Qe,"name"),er={EXISTS:tr,PROPER:tr&&"something"===function(){}.name,CONFIGURABLE:tr&&(!Ve||Ve&&Ze(Qe,"name").configurable)},rr=W,nr=Pt,ir=E(Function.toString);rr(nr.inspectSource)||(nr.inspectSource=function(t){return ir(t)});var or,ur,cr,ar=nr.inspectSource,fr=W,sr=o.WeakMap,lr=fr(sr)&&/native code/.test(String(sr)),dr=At.exports,hr=zt,vr=dr("keys"),pr=function(t){return vr[t]||(vr[t]=hr(t))},gr={},yr=lr,br=o,mr=B,wr=Ke,Sr=Ut,xr=Pt,Or=pr,Er=gr,$r="Object already initialized",Mr=br.TypeError,Dr=br.WeakMap;if(yr||xr.state){var Ar=xr.state||(xr.state=new Dr);Ar.get=Ar.get,Ar.has=Ar.has,Ar.set=Ar.set,or=function(t,e){if(Ar.has(t))throw new Mr($r);return e.facade=t,Ar.set(t,e),e},ur=function(t){return Ar.get(t)||{}},cr=function(t){return Ar.has(t)}}else{var Ir=Or("state");Er[Ir]=!0,or=function(t,e){if(Sr(t,Ir))throw new Mr($r);return e.facade=t,wr(t,Ir,e),e},ur=function(t){return Sr(t,Ir)?t[Ir]:{}},cr=function(t){return Sr(t,Ir)}}var jr={set:or,get:ur,has:cr,enforce:function(t){return cr(t)?ur(t):or(t,{})},getterFor:function(t){return function(e){var r;if(!mr(e)||(r=ur(e)).type!==t)throw new Mr("Incompatible receiver, "+t+" required");return r}}},Rr=E,Tr=c,Nr=W,Pr=Ut,_r=a,Yr=er.CONFIGURABLE,Fr=ar,kr=jr.enforce,Cr=jr.get,Lr=String,Ur=Object.defineProperty,Hr=Rr("".slice),Gr=Rr("".replace),Wr=Rr([].join),qr=_r&&!Tr((function(){return 8!==Ur((function(){}),"length",{value:8}).length})),zr=String(String).split("String"),Br=Je.exports=function(t,e,r){"Symbol("===Hr(Lr(e),0,7)&&(e="["+Gr(Lr(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Pr(t,"name")||Yr&&t.name!==e)&&(_r?Ur(t,"name",{value:e,configurable:!0}):t.name=e),qr&&r&&Pr(r,"arity")&&t.length!==r.arity&&Ur(t,"length",{value:r.arity});try{r&&Pr(r,"constructor")&&r.constructor?_r&&Ur(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=kr(t);return Pr(n,"source")||(n.source=Wr(zr,"string"==typeof e?e:"")),t};Function.prototype.toString=Br((function(){return Nr(this)&&Cr(this).source||Fr(this)}),"toString");var Kr=W,Jr=Ie,Vr=Je.exports,Xr=Rt,Qr=function(t,e,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:e;if(Kr(r)&&Vr(r,o,n),n.global)i?t[e]=r:Xr(e,r);else{try{n.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=r:Jr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Zr={},tn=Math.ceil,en=Math.floor,rn=Math.trunc||function(t){var e=+t;return(e>0?en:tn)(e)},nn=function(t){var e=+t;return e!=e||0===e?0:rn(e)},on=nn,un=Math.max,cn=Math.min,an=function(t,e){var r=on(t);return r<0?un(r+e,0):cn(r,e)},fn=nn,sn=Math.min,ln=function(t){return t>0?sn(fn(t),9007199254740991):0},dn=ln,hn=function(t){return dn(t.length)},vn=L,pn=an,gn=hn,yn=function(t){return function(e,r,n){var i,o=vn(e),u=gn(o),c=pn(n,u);if(t&&r!=r){for(;u>c;)if((i=o[c++])!=i)return!0}else for(;u>c;c++)if((t||c in o)&&o[c]===r)return t||c||0;return!t&&-1}},bn={includes:yn(!0),indexOf:yn(!1)},mn=Ut,wn=L,Sn=bn.indexOf,xn=gr,On=E([].push),En=function(t,e){var r,n=wn(t),i=0,o=[];for(r in n)!mn(xn,r)&&mn(n,r)&&On(o,r);for(;e.length>i;)mn(n,r=e[i++])&&(~Sn(o,r)||On(o,r));return o},$n=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mn=En,Dn=$n.concat("length","prototype");Zr.f=Object.getOwnPropertyNames||function(t){return Mn(t,Dn)};var An={};An.f=Object.getOwnPropertySymbols;var In=V,jn=Zr,Rn=An,Tn=Pe,Nn=E([].concat),Pn=In("Reflect","ownKeys")||function(t){var e=jn.f(Tn(t)),r=Rn.f;return r?Nn(e,r(t)):e},_n=Ut,Yn=Pn,Fn=u,kn=Ie,Cn=c,Ln=W,Un=/#|\.prototype\./,Hn=function(t,e){var r=Wn[Gn(t)];return r===zn||r!==qn&&(Ln(e)?Cn(e):!!e)},Gn=Hn.normalize=function(t){return String(t).replace(Un,".").toLowerCase()},Wn=Hn.data={},qn=Hn.NATIVE="N",zn=Hn.POLYFILL="P",Bn=Hn,Kn=o,Jn=u.f,Vn=Ke,Xn=Qr,Qn=Rt,Zn=function(t,e,r){for(var n=Yn(e),i=kn.f,o=Fn.f,u=0;u<n.length;u++){var c=n[u];_n(t,c)||r&&_n(r,c)||i(t,c,o(e,c))}},ti=Bn,ei=function(t,e){var r,n,i,o,u,c=t.target,a=t.global,f=t.stat;if(r=a?Kn:f?Kn[c]||Qn(c,{}):(Kn[c]||{}).prototype)for(n in e){if(o=e[n],i=t.dontCallGetSet?(u=Jn(r,n))&&u.value:r[n],!ti(a?n:c+(f?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Zn(o,i)}(t.sham||i&&i.sham)&&Vn(o,"sham",!0),Xn(r,n,o,t)}},ri=A,ni=Array.isArray||function(t){return"Array"===ri(t)},ii=TypeError,oi=he,ui=Ie,ci=m,ai=function(t,e,r){var n=oi(e);n in t?ui.f(t,n,ci(0,r)):t[n]=r},fi={};fi[re("toStringTag")]="z";var si="[object z]"===String(fi),li=si,di=W,hi=A,vi=re("toStringTag"),pi=Object,gi="Arguments"===hi(function(){return arguments}()),yi=li?hi:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=pi(t),vi))?r:gi?hi(e):"Object"===(n=hi(e))&&di(e.callee)?"Arguments":n},bi=E,mi=c,wi=W,Si=yi,xi=ar,Oi=function(){},Ei=[],$i=V("Reflect","construct"),Mi=/^\s*(?:class|function)\b/,Di=bi(Mi.exec),Ai=!Mi.test(Oi),Ii=function(t){if(!wi(t))return!1;try{return $i(Oi,Ei,t),!0}catch(t){return!1}},ji=function(t){if(!wi(t))return!1;switch(Si(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ai||!!Di(Mi,xi(t))}catch(t){return!0}};ji.sham=!0;var Ri=!$i||mi((function(){var t;return Ii(Ii.call)||!Ii(Object)||!Ii((function(){t=!0}))||t}))?ji:Ii,Ti=ni,Ni=Ri,Pi=B,_i=re("species"),Yi=Array,Fi=function(t){var e;return Ti(t)&&(e=t.constructor,(Ni(e)&&(e===Yi||Ti(e.prototype))||Pi(e)&&null===(e=e[_i]))&&(e=void 0)),void 0===e?Yi:e},ki=c,Ci=it,Li=re("species"),Ui=function(t){return Ci>=51||!ki((function(){var e=[];return(e.constructor={})[Li]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Hi=ei,Gi=c,Wi=ni,qi=B,zi=kt,Bi=hn,Ki=function(t){if(t>9007199254740991)throw ii("Maximum allowed index exceeded");return t},Ji=ai,Vi=function(t,e){return new(Fi(t))(0===e?0:e)},Xi=Ui,Qi=it,Zi=re("isConcatSpreadable"),to=Qi>=51||!Gi((function(){var t=[];return t[Zi]=!1,t.concat()[0]!==t})),eo=function(t){if(!qi(t))return!1;var e=t[Zi];return void 0!==e?!!e:Wi(t)};Hi({target:"Array",proto:!0,arity:1,forced:!to||!Xi("concat")},{concat:function(t){var e,r,n,i,o,u=zi(this),c=Vi(u,0),a=0;for(e=-1,n=arguments.length;e<n;e++)if(eo(o=-1===e?u:arguments[e]))for(i=Bi(o),Ki(a+i),r=0;r<i;r++,a++)r in o&&Ji(c,a,o[r]);else Ki(a+1),Ji(c,a++,o);return c.length=a,c}});var ro=En,no=$n,io=Object.keys||function(t){return ro(t,no)},oo=kt,uo=io;ei({target:"Object",stat:!0,forced:c((function(){uo(1)}))},{keys:function(t){return uo(oo(t))}});var co,ao=f,fo=Function.prototype,so=fo.apply,lo=fo.call,ho="object"==typeof Reflect&&Reflect.apply||(ao?lo.bind(so):function(){return lo.apply(so,arguments)}),vo=E([].slice),po=yi,go=String,yo=function(t){if("Symbol"===po(t))throw new TypeError("Cannot convert a Symbol value to a string");return go(t)},bo=ni,mo=W,wo=A,So=yo,xo=E([].push),Oo=ei,Eo=V,$o=ho,Mo=d,Do=E,Ao=c,Io=W,jo=vt,Ro=vo,To=function(t){if(mo(t))return t;if(bo(t)){for(var e=t.length,r=[],n=0;n<e;n++){var i=t[n];"string"==typeof i?xo(r,i):"number"!=typeof i&&"Number"!==wo(i)&&"String"!==wo(i)||xo(r,So(i))}var o=r.length,u=!0;return function(t,e){if(u)return u=!1,e;if(bo(this))return e;for(var n=0;n<o;n++)if(r[n]===t)return e}}},No=at,Po=String,_o=Eo("JSON","stringify"),Yo=Do(/./.exec),Fo=Do("".charAt),ko=Do("".charCodeAt),Co=Do("".replace),Lo=Do(1..toString),Uo=/[\uD800-\uDFFF]/g,Ho=/^[\uD800-\uDBFF]$/,Go=/^[\uDC00-\uDFFF]$/,Wo=!No||Ao((function(){var t=Eo("Symbol")("stringify detection");return"[null]"!==_o([t])||"{}"!==_o({a:t})||"{}"!==_o(Object(t))})),qo=Ao((function(){return'"\\udf06\\ud834"'!==_o("\udf06\ud834")||'"\\udead"'!==_o("\udead")})),zo=function(t,e){var r=Ro(arguments),n=To(e);if(Io(n)||void 0!==t&&!jo(t))return r[1]=function(t,e){if(Io(n)&&(e=Mo(n,this,Po(t),e)),!jo(e))return e},$o(_o,null,r)},Bo=function(t,e,r){var n=Fo(r,e-1),i=Fo(r,e+1);return Yo(Ho,t)&&!Yo(Go,i)||Yo(Go,t)&&!Yo(Ho,n)?"\\u"+Lo(ko(t,0),16):t};_o&&Oo({target:"JSON",stat:!0,arity:3,forced:Wo||qo},{stringify:function(t,e,r){var n=Ro(arguments),i=$o(Wo?zo:_o,null,n);return qo&&"string"==typeof i?Co(i,Uo,Bo):i}}),t.STORAGE=void 0,(co=t.STORAGE||(t.STORAGE={})).LOCAL="localStorage",co.SESSION="sessionStorage";var Ko="STORAGE_",Jo=Pe,Vo=function(){var t=Jo(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},Xo=c,Qo=o.RegExp,Zo=Xo((function(){var t=Qo("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),tu=Zo||Xo((function(){return!Qo("a","y").sticky})),eu=Zo||Xo((function(){var t=Qo("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),ru={BROKEN_CARET:eu,MISSED_STICKY:tu,UNSUPPORTED_Y:Zo},nu={},iu=a,ou=je,uu=Ie,cu=Pe,au=L,fu=io;nu.f=iu&&!ou?Object.defineProperties:function(t,e){cu(t);for(var r,n=au(e),i=fu(e),o=i.length,u=0;o>u;)uu.f(t,r=i[u++],n[r]);return t};var su,lu=V("document","documentElement"),du=Pe,hu=nu,vu=$n,pu=gr,gu=lu,yu=ye,bu="prototype",mu="script",wu=pr("IE_PROTO"),Su=function(){},xu=function(t){return"<"+mu+">"+t+"</"+mu+">"},Ou=function(t){t.write(xu("")),t.close();var e=t.parentWindow.Object;return t=null,e},Eu=function(){try{su=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Eu="undefined"!=typeof document?document.domain&&su?Ou(su):(e=yu("iframe"),r="java"+mu+":",e.style.display="none",gu.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(xu("document.F=Object")),t.close(),t.F):Ou(su);for(var n=vu.length;n--;)delete Eu[bu][vu[n]];return Eu()};pu[wu]=!0;var $u=Object.create||function(t,e){var r;return null!==t?(Su[bu]=du(t),r=new Su,Su[bu]=null,r[wu]=t):r=Eu(),void 0===e?r:hu.f(r,e)},Mu=c,Du=o.RegExp,Au=Mu((function(){var t=Du(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),Iu=c,ju=o.RegExp,Ru=Iu((function(){var t=ju("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Tu=d,Nu=E,Pu=yo,_u=Vo,Yu=ru,Fu=At.exports,ku=$u,Cu=jr.get,Lu=Au,Uu=Ru,Hu=Fu("native-string-replace",String.prototype.replace),Gu=RegExp.prototype.exec,Wu=Gu,qu=Nu("".charAt),zu=Nu("".indexOf),Bu=Nu("".replace),Ku=Nu("".slice),Ju=function(){var t=/a/,e=/b*/g;return Tu(Gu,t,"a"),Tu(Gu,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Vu=Yu.BROKEN_CARET,Xu=void 0!==/()??/.exec("")[1];(Ju||Xu||Vu||Lu||Uu)&&(Wu=function(t){var e,r,n,i,o,u,c,a=this,f=Cu(a),s=Pu(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,e=Tu(Wu,l,s),a.lastIndex=l.lastIndex,e;var d=f.groups,h=Vu&&a.sticky,v=Tu(_u,a),p=a.source,g=0,y=s;if(h&&(v=Bu(v,"y",""),-1===zu(v,"g")&&(v+="g"),y=Ku(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==qu(s,a.lastIndex-1))&&(p="(?: "+p+")",y=" "+y,g++),r=new RegExp("^(?:"+p+")",v)),Xu&&(r=new RegExp("^"+p+"$(?!\\s)",v)),Ju&&(n=a.lastIndex),i=Tu(Gu,h?r:a,y),h?i?(i.input=Ku(i.input,g),i[0]=Ku(i[0],g),i.index=a.lastIndex,a.lastIndex+=i[0].length):a.lastIndex=0:Ju&&i&&(a.lastIndex=a.global?i.index+i[0].length:n),Xu&&i&&i.length>1&&Tu(Hu,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=u=ku(null),o=0;o<d.length;o++)u[(c=d[o])[0]]=i[c[1]];return i});var Qu=Wu;ei({target:"RegExp",proto:!0,forced:/./.exec!==Qu},{exec:Qu});var Zu,tc,ec=ei,rc=d,nc=W,ic=Pe,oc=yo,uc=(Zu=!1,(tc=/[ac]/).exec=function(){return Zu=!0,/./.exec.apply(this,arguments)},!0===tc.test("abc")&&Zu),cc=/./.test;ec({target:"RegExp",proto:!0,forced:!uc},{test:function(t){var e=ic(this),r=oc(t),n=e.exec;if(!nc(n))return rc(cc,e,r);var i=rc(n,e,r);return null!==i&&(ic(i),!0)}});var ac=E,fc=wt,sc=W,lc=String,dc=TypeError,hc=function(t,e,r){try{return ac(fc(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},vc=Pe,pc=function(t){if("object"==typeof t||sc(t))return t;throw new dc("Can't set "+lc(t)+" as a prototype")},gc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=hc(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return vc(r),pc(n),e?t(r,n):r.__proto__=n,r}}():void 0),yc=W,bc=B,mc=gc,wc=function(t,e,r){var n,i;return mc&&yc(n=e.constructor)&&n!==r&&bc(i=n.prototype)&&i!==r.prototype&&mc(t,i),t},Sc=B,xc=A,Oc=re("match"),Ec=function(t){var e;return Sc(t)&&(void 0!==(e=t[Oc])?!!e:"RegExp"===xc(t))},$c=d,Mc=Ut,Dc=X,Ac=Vo,Ic=RegExp.prototype,jc=function(t){var e=t.flags;return void 0!==e||"flags"in Ic||Mc(t,"flags")||!Dc(Ic,t)?e:$c(Ac,t)},Rc=Ie.f,Tc=Je.exports,Nc=Ie,Pc=function(t,e,r){return r.get&&Tc(r.get,e,{getter:!0}),r.set&&Tc(r.set,e,{setter:!0}),Nc.f(t,e,r)},_c=V,Yc=Pc,Fc=a,kc=re("species"),Cc=a,Lc=o,Uc=E,Hc=Bn,Gc=wc,Wc=Ke,qc=Zr.f,zc=X,Bc=Ec,Kc=yo,Jc=jc,Vc=ru,Xc=function(t,e,r){r in t||Rc(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})},Qc=Qr,Zc=c,ta=Ut,ea=jr.enforce,ra=function(t){var e=_c(t);Fc&&e&&!e[kc]&&Yc(e,kc,{configurable:!0,get:function(){return this}})},na=Au,ia=Ru,oa=re("match"),ua=Lc.RegExp,ca=ua.prototype,aa=Lc.SyntaxError,fa=Uc(ca.exec),sa=Uc("".charAt),la=Uc("".replace),da=Uc("".indexOf),ha=Uc("".slice),va=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,pa=/a/g,ga=/a/g,ya=new ua(pa)!==pa,ba=Vc.MISSED_STICKY,ma=Vc.UNSUPPORTED_Y,wa=Cc&&(!ya||ba||na||ia||Zc((function(){return ga[oa]=!1,ua(pa)!==pa||ua(ga)===ga||"/a/i"!==String(ua(pa,"i"))})));if(Hc("RegExp",wa)){for(var Sa=function(t,e){var r,n,i,o,u,c,a=zc(ca,this),f=Bc(t),s=void 0===e,l=[],d=t;if(!a&&f&&s&&t.constructor===Sa)return t;if((f||zc(ca,t))&&(t=t.source,s&&(e=Jc(d))),t=void 0===t?"":Kc(t),e=void 0===e?"":Kc(e),d=t,na&&"dotAll"in pa&&(n=!!e&&da(e,"s")>-1)&&(e=la(e,/s/g,"")),r=e,ba&&"sticky"in pa&&(i=!!e&&da(e,"y")>-1)&&ma&&(e=la(e,/y/g,"")),ia&&(o=function(t){for(var e,r=t.length,n=0,i="",o=[],u={},c=!1,a=!1,f=0,s="";n<=r;n++){if("\\"===(e=sa(t,n)))e+=sa(t,++n);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:fa(va,ha(t,n+1))&&(n+=2,a=!0),i+=e,f++;continue;case">"===e&&a:if(""===s||ta(u,s))throw new aa("Invalid capture group name");u[s]=!0,o[o.length]=[s,f],a=!1,s="";continue}a?s+=e:i+=e}return[i,o]}(t),t=o[0],l=o[1]),u=Gc(ua(t,e),a?this:ca,Sa),(n||i||l.length)&&(c=ea(u),n&&(c.dotAll=!0,c.raw=Sa(function(t){for(var e,r=t.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(e=sa(t,n))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+sa(t,++n);return i}(t),r)),i&&(c.sticky=!0),l.length&&(c.groups=l)),t!==d)try{Wc(u,"source",""===d?"(?:)":d)}catch(t){}return u},xa=qc(ua),Oa=0;xa.length>Oa;)Xc(Sa,ua,xa[Oa++]);ca.constructor=Sa,Sa.prototype=ca,Qc(Lc,"RegExp",Sa,{constructor:!0})}ra("RegExp");var Ea=a,$a=Au,Ma=A,Da=Pc,Aa=jr.get,Ia=RegExp.prototype,ja=TypeError;Ea&&$a&&Da(Ia,"dotAll",{configurable:!0,get:function(){if(this!==Ia){if("RegExp"===Ma(this))return!!Aa(this).dotAll;throw new ja("Incompatible receiver, RegExp required")}}});var Ra=a,Ta=ru.MISSED_STICKY,Na=A,Pa=Pc,_a=jr.get,Ya=RegExp.prototype,Fa=TypeError;Ra&&Ta&&Pa(Ya,"sticky",{configurable:!0,get:function(){if(this!==Ya){if("RegExp"===Na(this))return!!_a(this).sticky;throw new Fa("Incompatible receiver, RegExp required")}}});var ka=er.PROPER,Ca=Qr,La=Pe,Ua=yo,Ha=c,Ga=jc,Wa="toString",qa=RegExp.prototype[Wa],za=Ha((function(){return"/a/b"!==qa.call({source:"a",flags:"b"})})),Ba=ka&&qa.name!==Wa;(za||Ba)&&Ca(RegExp.prototype,Wa,(function(){var t=La(this);return"/"+Ua(t.source)+"/"+Ua(Ga(t))}),{unsafe:!0});var Ka=/^(1[3-9])\d{9}$/i,Ja=function(){return new RegExp("^\\d{".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,"}$"))},Va=/\D+/g,Xa=/^(\d{6})(\d{4})(\d{2})(\d{2})(\d{2})(\d)(\d|X|x)$/,Qa=/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/,Za=/^(0\d{2,3}-\d{7,8})(-\d{1,4})?$/,tf=/^(?:(http|https|ftp):\/\/)?((?:[\w]+\.)+[a-z0-9]+)((?:\/[^/?#]*)+)?(\?[^#]+)?(#.+)?$/i,ef=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:17;return new RegExp("^[a-zA-Z]\\w{".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,",").concat(t,"}$"))},rf=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return new RegExp("^\\d+(\\.\\d{".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,",").concat(t,"})?$"))},nf=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return new RegExp("^[\\u4E00-\\u9FA5]{".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,",").concat(t,"}$"))},of=yi,uf=si?{}.toString:function(){return"[object "+of(this)+"]"};si||Qr(Object.prototype,"toString",uf,{unsafe:!0});var cf=wt,af=kt,ff=N,sf=hn,lf=TypeError,df=function(t){return function(e,r,n,i){cf(r);var o=af(e),u=ff(o),c=sf(o),a=t?c-1:0,f=t?-1:1;if(n<2)for(;;){if(a in u){i=u[a],a+=f;break}if(a+=f,t?a<0:c<=a)throw new lf("Reduce of empty array with no initial value")}for(;t?a>=0:c>a;a+=f)a in u&&(i=r(i,u[a],a,o));return i}},hf={left:df(!1),right:df(!0)},vf=c,pf=function(t,e){var r=[][t];return!!r&&vf((function(){r.call(null,e||function(){return 1},1)}))},gf="process"===A(o.process),yf=hf.left;ei({target:"Array",proto:!0,forced:!gf&&it>79&&it<83||!pf("reduce")},{reduce:function(t){var e=arguments.length;return yf(this,t,e,e>1?arguments[1]:void 0)}});var bf=E(1..valueOf),mf=nn,wf=yo,Sf=F,xf=RangeError,Of=ei,Ef=E,$f=nn,Mf=bf,Df=function(t){var e=wf(Sf(this)),r="",n=mf(t);if(n<0||n===1/0)throw new xf("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},Af=c,If=RangeError,jf=String,Rf=Math.floor,Tf=Ef(Df),Nf=Ef("".slice),Pf=Ef(1..toFixed),_f=function(t,e,r){return 0===e?r:e%2==1?_f(t,e-1,r*t):_f(t*t,e/2,r)},Yf=function(t,e,r){for(var n=-1,i=r;++n<6;)i+=e*t[n],t[n]=i%1e7,i=Rf(i/1e7)},Ff=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=Rf(n/e),n=n%e*1e7},kf=function(t){for(var e=6,r="";--e>=0;)if(""!==r||0===e||0!==t[e]){var n=jf(t[e]);r=""===r?n:r+Tf("0",7-n.length)+n}return r};Of({target:"Number",proto:!0,forced:Af((function(){return"0.000"!==Pf(8e-5,3)||"1"!==Pf(.9,0)||"1.25"!==Pf(1.255,2)||"1000000000000000128"!==Pf(0xde0b6b3a7640080,0)}))||!Af((function(){Pf({})}))},{toFixed:function(t){var e,r,n,i,o=Mf(this),u=$f(t),c=[0,0,0,0,0,0],a="",f="0";if(u<0||u>20)throw new If("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return jf(o);if(o<0&&(a="-",o=-o),o>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(o*_f(2,69,1))-69)<0?o*_f(2,-e,1):o/_f(2,e,1),r*=4503599627370496,(e=52-e)>0){for(Yf(c,0,r),n=u;n>=7;)Yf(c,1e7,0),n-=7;for(Yf(c,_f(10,n,1),0),n=e-1;n>=23;)Ff(c,1<<23),n-=23;Ff(c,1<<n),Yf(c,1,1),Ff(c,2),f=kf(c)}else Yf(c,0,r),Yf(c,1<<-e,0),f=kf(c)+Tf("0",u);return f=u>0?a+((i=f.length)<=u?"0."+Tf("0",u-i)+f:Nf(f,0,i-u)+"."+Nf(f,i-u)):a+f}});var Cf=o,Lf="\t\n\v\f\r \u2028\u2029\ufeff",Uf=F,Hf=yo,Gf=Lf,Wf=E("".replace),qf=RegExp("^["+Gf+"]+"),zf=RegExp("(^|[^"+Gf+"])["+Gf+"]+$"),Bf=function(t){return function(e){var r=Hf(Uf(e));return 1&t&&(r=Wf(r,qf,"")),2&t&&(r=Wf(r,zf,"$1")),r}},Kf={start:Bf(1),end:Bf(2),trim:Bf(3)},Jf=ei,Vf=a,Xf=o,Qf=Cf,Zf=E,ts=Bn,es=Ut,rs=wc,ns=X,is=vt,os=se,us=c,cs=Zr.f,as=u.f,fs=Ie.f,ss=bf,ls=Kf.trim,ds="Number",hs=Xf[ds];Qf[ds];var vs=hs.prototype,ps=Xf.TypeError,gs=Zf("".slice),ys=Zf("".charCodeAt),bs=function(t){var e,r,n,i,o,u,c,a,f=os(t,"number");if(is(f))throw new ps("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=ls(f),43===(e=ys(f,0))||45===e){if(88===(r=ys(f,2))||120===r)return NaN}else if(48===e){switch(ys(f,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+f}for(u=(o=gs(f,2)).length,c=0;c<u;c++)if((a=ys(o,c))<48||a>i)return NaN;return parseInt(o,n)}return+f},ms=ts(ds,!hs(" 0o1")||!hs("0b1")||hs("+0x1")),ws=function(t){var e,r=arguments.length<1?0:hs(function(t){var e=os(t,"number");return"bigint"==typeof e?e:bs(e)}(t));return ns(vs,e=this)&&us((function(){ss(e)}))?rs(Object(r),this,ws):r};ws.prototype=vs,ms&&(vs.constructor=ws),Jf({global:!0,constructor:!0,wrap:!0,forced:ms},{Number:ws});ms&&function(t,e){for(var r,n=Vf?cs(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(","),i=0;n.length>i;i++)es(e,r=n[i])&&!es(t,r)&&fs(t,r,as(e,r))}(Qf[ds],hs);var Ss=ei,xs=N,Os=L,Es=pf,$s=E([].join);Ss({target:"Array",proto:!0,forced:xs!==Object||!Es("join",",")},{join:function(t){return $s(Os(this),void 0===t?",":t)}});var Ms=kt,Ds=an,As=hn,Is=re,js=$u,Rs=Ie.f,Ts=Is("unscopables"),Ns=Array.prototype;void 0===Ns[Ts]&&Rs(Ns,Ts,{configurable:!0,value:js(null)});var Ps=function(t){Ns[Ts][t]=!0},_s=function(t){for(var e=Ms(this),r=As(e),n=arguments.length,i=Ds(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,u=void 0===o?r:Ds(o,r);u>i;)e[i++]=t;return e},Ys=Ps;ei({target:"Array",proto:!0},{fill:_s}),Ys("fill");var Fs=1e6,ks=1e6,Cs="[big.js] ",Ls=Cs+"Invalid ",Us=Ls+"decimal places",Hs=Ls+"rounding mode",Gs=Cs+"Division by zero",Ws={},qs=void 0,zs=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Bs(t,e,r,n){var i=t.c;if(r===qs&&(r=t.constructor.RM),0!==r&&1!==r&&2!==r&&3!==r)throw Error(Hs);if(e<1)n=3===r&&(n||!!i[0])||0===e&&(1===r&&i[0]>=5||2===r&&(i[0]>5||5===i[0]&&(n||i[1]!==qs))),i.length=1,n?(t.e=t.e-e+1,i[0]=1):i[0]=t.e=0;else if(e<i.length){if(n=1===r&&i[e]>=5||2===r&&(i[e]>5||5===i[e]&&(n||i[e+1]!==qs||1&i[e-1]))||3===r&&(n||!!i[0]),i.length=e,n)for(;++i[--e]>9;)if(i[e]=0,0===e){++t.e,i.unshift(1);break}for(e=i.length;!i[--e];)i.pop()}return t}function Ks(t,e,r){var n=t.e,i=t.c.join(""),o=i.length;if(e)i=i.charAt(0)+(o>1?"."+i.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)i="0"+i;i="0."+i}else if(n>0)if(++n>o)for(n-=o;n--;)i+="0";else n<o&&(i=i.slice(0,n)+"."+i.slice(n));else o>1&&(i=i.charAt(0)+"."+i.slice(1));return t.s<0&&r?"-"+i:i}Ws.abs=function(){var t=new this.constructor(this);return t.s=1,t},Ws.cmp=function(t){var e,r=this,n=r.c,i=(t=new r.constructor(t)).c,o=r.s,u=t.s,c=r.e,a=t.e;if(!n[0]||!i[0])return n[0]?o:i[0]?-u:0;if(o!=u)return o;if(e=o<0,c!=a)return c>a^e?1:-1;for(u=(c=n.length)<(a=i.length)?c:a,o=-1;++o<u;)if(n[o]!=i[o])return n[o]>i[o]^e?1:-1;return c==a?0:c>a^e?1:-1},Ws.div=function(t){var e=this,r=e.constructor,n=e.c,i=(t=new r(t)).c,o=e.s==t.s?1:-1,u=r.DP;if(u!==~~u||u<0||u>Fs)throw Error(Us);if(!i[0])throw Error(Gs);if(!n[0])return t.s=o,t.c=[t.e=0],t;var c,a,f,s,l,d=i.slice(),h=c=i.length,v=n.length,p=n.slice(0,c),g=p.length,y=t,b=y.c=[],m=0,w=u+(y.e=e.e-t.e)+1;for(y.s=o,o=w<0?0:w,d.unshift(0);g++<c;)p.push(0);do{for(f=0;f<10;f++){if(c!=(g=p.length))s=c>g?1:-1;else for(l=-1,s=0;++l<c;)if(i[l]!=p[l]){s=i[l]>p[l]?1:-1;break}if(!(s<0))break;for(a=g==c?i:d;g;){if(p[--g]<a[g]){for(l=g;l&&!p[--l];)p[l]=9;--p[l],p[g]+=10}p[g]-=a[g]}for(;!p[0];)p.shift()}b[m++]=s?f:++f,p[0]&&s?p[g]=n[h]||0:p=[n[h]]}while((h++<v||p[0]!==qs)&&o--);return b[0]||1==m||(b.shift(),y.e--,w--),m>w&&Bs(y,w,r.RM,p[0]!==qs),y},Ws.eq=function(t){return 0===this.cmp(t)},Ws.gt=function(t){return this.cmp(t)>0},Ws.gte=function(t){return this.cmp(t)>-1},Ws.lt=function(t){return this.cmp(t)<0},Ws.lte=function(t){return this.cmp(t)<1},Ws.minus=Ws.sub=function(t){var e,r,n,i,o=this,u=o.constructor,c=o.s,a=(t=new u(t)).s;if(c!=a)return t.s=-a,o.plus(t);var f=o.c.slice(),s=o.e,l=t.c,d=t.e;if(!f[0]||!l[0])return l[0]?t.s=-a:f[0]?t=new u(o):t.s=1,t;if(c=s-d){for((i=c<0)?(c=-c,n=f):(d=s,n=l),n.reverse(),a=c;a--;)n.push(0);n.reverse()}else for(r=((i=f.length<l.length)?f:l).length,c=a=0;a<r;a++)if(f[a]!=l[a]){i=f[a]<l[a];break}if(i&&(n=f,f=l,l=n,t.s=-t.s),(a=(r=l.length)-(e=f.length))>0)for(;a--;)f[e++]=0;for(a=e;r>c;){if(f[--r]<l[r]){for(e=r;e&&!f[--e];)f[e]=9;--f[e],f[r]+=10}f[r]-=l[r]}for(;0===f[--a];)f.pop();for(;0===f[0];)f.shift(),--d;return f[0]||(t.s=1,f=[d=0]),t.c=f,t.e=d,t},Ws.mod=function(t){var e,r=this,n=r.constructor,i=r.s,o=(t=new n(t)).s;if(!t.c[0])throw Error(Gs);return r.s=t.s=1,e=1==t.cmp(r),r.s=i,t.s=o,e?new n(r):(i=n.DP,o=n.RM,n.DP=n.RM=0,r=r.div(t),n.DP=i,n.RM=o,this.minus(r.times(t)))},Ws.neg=function(){var t=new this.constructor(this);return t.s=-t.s,t},Ws.plus=Ws.add=function(t){var e,r,n,i=this,o=i.constructor;if(t=new o(t),i.s!=t.s)return t.s=-t.s,i.minus(t);var u=i.e,c=i.c,a=t.e,f=t.c;if(!c[0]||!f[0])return f[0]||(c[0]?t=new o(i):t.s=i.s),t;if(c=c.slice(),e=u-a){for(e>0?(a=u,n=f):(e=-e,n=c),n.reverse();e--;)n.push(0);n.reverse()}for(c.length-f.length<0&&(n=f,f=c,c=n),e=f.length,r=0;e;c[e]%=10)r=(c[--e]=c[e]+f[e]+r)/10|0;for(r&&(c.unshift(r),++a),e=c.length;0===c[--e];)c.pop();return t.c=c,t.e=a,t},Ws.pow=function(t){var e=this,r=new e.constructor("1"),n=r,i=t<0;if(t!==~~t||t<-1e6||t>ks)throw Error(Ls+"exponent");for(i&&(t=-t);1&t&&(n=n.times(e)),t>>=1;)e=e.times(e);return i?r.div(n):n},Ws.prec=function(t,e){if(t!==~~t||t<1||t>Fs)throw Error(Ls+"precision");return Bs(new this.constructor(this),t,e)},Ws.round=function(t,e){if(t===qs)t=0;else if(t!==~~t||t<-Fs||t>Fs)throw Error(Us);return Bs(new this.constructor(this),t+this.e+1,e)},Ws.sqrt=function(){var t,e,r,n=this,i=n.constructor,o=n.s,u=n.e,c=new i("0.5");if(!n.c[0])return new i(n);if(o<0)throw Error(Cs+"No square root");0===(o=Math.sqrt(n+""))||o===1/0?((e=n.c.join("")).length+u&1||(e+="0"),u=((u+1)/2|0)-(u<0||1&u),t=new i(((o=Math.sqrt(e))==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+u)):t=new i(o+""),u=t.e+(i.DP+=4);do{r=t,t=c.times(r.plus(n.div(r)))}while(r.c.slice(0,u).join("")!==t.c.slice(0,u).join(""));return Bs(t,(i.DP-=4)+t.e+1,i.RM)},Ws.times=Ws.mul=function(t){var e,r=this,n=r.constructor,i=r.c,o=(t=new n(t)).c,u=i.length,c=o.length,a=r.e,f=t.e;if(t.s=r.s==t.s?1:-1,!i[0]||!o[0])return t.c=[t.e=0],t;for(t.e=a+f,u<c&&(e=i,i=o,o=e,f=u,u=c,c=f),e=new Array(f=u+c);f--;)e[f]=0;for(a=c;a--;){for(c=0,f=u+a;f>a;)c=e[f]+o[a]*i[f-a-1]+c,e[f--]=c%10,c=c/10|0;e[f]=c}for(c?++t.e:e.shift(),a=e.length;!e[--a];)e.pop();return t.c=e,t},Ws.toExponential=function(t,e){var r=this,n=r.c[0];if(t!==qs){if(t!==~~t||t<0||t>Fs)throw Error(Us);for(r=Bs(new r.constructor(r),++t,e);r.c.length<t;)r.c.push(0)}return Ks(r,!0,!!n)},Ws.toFixed=function(t,e){var r=this,n=r.c[0];if(t!==qs){if(t!==~~t||t<0||t>Fs)throw Error(Us);for(t=t+(r=Bs(new r.constructor(r),t+r.e+1,e)).e+1;r.c.length<t;)r.c.push(0)}return Ks(r,!1,!!n)},Ws[Symbol.for("nodejs.util.inspect.custom")]=Ws.toJSON=Ws.toString=function(){var t=this,e=t.constructor;return Ks(t,t.e<=e.NE||t.e>=e.PE,!!t.c[0])},Ws.toNumber=function(){var t=Number(Ks(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(t.toString()))throw Error(Cs+"Imprecise conversion");return t},Ws.toPrecision=function(t,e){var r=this,n=r.constructor,i=r.c[0];if(t!==qs){if(t!==~~t||t<1||t>Fs)throw Error(Ls+"precision");for(r=Bs(new n(r),t,e);r.c.length<t;)r.c.push(0)}return Ks(r,t<=r.e||r.e<=n.NE||r.e>=n.PE,!!i)},Ws.valueOf=function(){var t=this,e=t.constructor;if(!0===e.strict)throw Error(Cs+"valueOf disallowed");return Ks(t,t.e<=e.NE||t.e>=e.PE,!0)};var Js=function t(){function e(r){var n=this;if(!(n instanceof e))return r===qs?t():new e(r);if(r instanceof e)n.s=r.s,n.e=r.e,n.c=r.c.slice();else{if("string"!=typeof r){if(!0===e.strict&&"bigint"!=typeof r)throw TypeError(Ls+"value");r=0===r&&1/r<0?"-0":String(r)}!function(t,e){var r,n,i;if(!zs.test(e))throw Error(Ls+"number");t.s="-"==e.charAt(0)?(e=e.slice(1),-1):1,(r=e.indexOf("."))>-1&&(e=e.replace(".",""));(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length);for(i=e.length,n=0;n<i&&"0"==e.charAt(n);)++n;if(n==i)t.c=[t.e=0];else{for(;i>0&&"0"==e.charAt(--i););for(t.e=r-n-1,t.c=[],r=0;n<=i;)t.c[r++]=+e.charAt(n++)}}(n,r)}n.constructor=e}return e.prototype=Ws,e.DP=20,e.RM=1,e.NE=-7,e.PE=21,e.strict=false,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}(),Vs=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.reduce((function(t,e){return new Js(t).times(new Js(e))})).toString()},Xs=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.reduce((function(t,e){return new Js(t).div(new Js(e))})).toString()},Qs=o,Zs=c,tl=yo,el=Kf.trim,rl=Lf,nl=E("".charAt),il=Qs.parseFloat,ol=Qs.Symbol,ul=ol&&ol.iterator,cl=1/il(rl+"-0")!=-1/0||ul&&!Zs((function(){il(Object(ul))}))?function(t){var e=el(tl(t)),r=il(e);return 0===r&&"-"===nl(e,0)?-0:r}:il;ei({global:!0,forced:parseFloat!==cl},{parseFloat:cl});var al=A,fl=E,sl=function(t){if("Function"===al(t))return fl(t)},ll=Qr,dl=Qu,hl=c,vl=re,pl=Ke,gl=vl("species"),yl=RegExp.prototype,bl=function(t,e,r,n){var i=vl(t),o=!hl((function(){var e={};return e[i]=function(){return 7},7!==""[t](e)})),u=o&&!hl((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[gl]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return e=!0,null},r[i](""),!e}));if(!o||!u||r){var c=sl(/./[i]),a=e(i,""[t],(function(t,e,r,n,i){var u=sl(t),a=e.exec;return a===dl||a===yl.exec?o&&!i?{done:!0,value:c(e,r,n)}:{done:!0,value:u(r,e,n)}:{done:!1}}));ll(String.prototype,t,a[0]),ll(yl,i,a[1])}n&&pl(yl[i],"sham",!0)},ml=E,wl=nn,Sl=yo,xl=F,Ol=ml("".charAt),El=ml("".charCodeAt),$l=ml("".slice),Ml=function(t){return function(e,r){var n,i,o=Sl(xl(e)),u=wl(r),c=o.length;return u<0||u>=c?t?"":void 0:(n=El(o,u))<55296||n>56319||u+1===c||(i=El(o,u+1))<56320||i>57343?t?Ol(o,u):n:t?$l(o,u,u+2):i-56320+(n-55296<<10)+65536}},Dl={codeAt:Ml(!1),charAt:Ml(!0)}.charAt,Al=function(t,e,r){return e+(r?Dl(t,e).length:1)},Il=E,jl=kt,Rl=Math.floor,Tl=Il("".charAt),Nl=Il("".replace),Pl=Il("".slice),_l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Yl=/\$([$&'`]|\d{1,2})/g,Fl=d,kl=Pe,Cl=W,Ll=A,Ul=Qu,Hl=TypeError,Gl=function(t,e){var r=t.exec;if(Cl(r)){var n=Fl(r,t,e);return null!==n&&kl(n),n}if("RegExp"===Ll(t))return Fl(Ul,t,e);throw new Hl("RegExp#exec called on incompatible receiver")},Wl=ho,ql=d,zl=E,Bl=bl,Kl=c,Jl=Pe,Vl=W,Xl=P,Ql=nn,Zl=ln,td=yo,ed=F,rd=Al,nd=Ot,id=function(t,e,r,n,i,o){var u=r+t.length,c=n.length,a=Yl;return void 0!==i&&(i=jl(i),a=_l),Nl(o,a,(function(o,a){var f;switch(Tl(a,0)){case"$":return"$";case"&":return t;case"`":return Pl(e,0,r);case"'":return Pl(e,u);case"<":f=i[Pl(a,1,-1)];break;default:var s=+a;if(0===s)return o;if(s>c){var l=Rl(s/10);return 0===l?o:l<=c?void 0===n[l-1]?Tl(a,1):n[l-1]+Tl(a,1):o}f=n[s-1]}return void 0===f?"":f}))},od=Gl,ud=re("replace"),cd=Math.max,ad=Math.min,fd=zl([].concat),sd=zl([].push),ld=zl("".indexOf),dd=zl("".slice),hd="$0"==="a".replace(/./,"$0"),vd=!!/./[ud]&&""===/./[ud]("a","$0"),pd=!Kl((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));Bl("replace",(function(t,e,r){var n=vd?"$":"$0";return[function(t,r){var n=ed(this),i=Xl(t)?void 0:nd(t,ud);return i?ql(i,t,n,r):ql(e,td(n),t,r)},function(t,i){var o=Jl(this),u=td(t);if("string"==typeof i&&-1===ld(i,n)&&-1===ld(i,"$<")){var c=r(e,o,u,i);if(c.done)return c.value}var a=Vl(i);a||(i=td(i));var f,s=o.global;s&&(f=o.unicode,o.lastIndex=0);for(var l,d=[];null!==(l=od(o,u))&&(sd(d,l),s);){""===td(l[0])&&(o.lastIndex=rd(u,Zl(o.lastIndex),f))}for(var h,v="",p=0,g=0;g<d.length;g++){for(var y,b=td((l=d[g])[0]),m=cd(ad(Ql(l.index),u.length),0),w=[],S=1;S<l.length;S++)sd(w,void 0===(h=l[S])?h:String(h));var x=l.groups;if(a){var O=fd([b],w,m,u);void 0!==x&&sd(O,x),y=td(Wl(i,void 0,O))}else y=id(b,u,m,w,x,i);m>=p&&(v+=dd(u,p,m)+y,p=m+b.length)}return v+dd(u,p)}]}),!pd||!hd||vd);var gd=er.PROPER,yd=c,bd=Lf,md=Kf.trim;ei({target:"String",proto:!0,forced:function(t){return yd((function(){return!!bd[t]()||"
"!=="
"[t]()||gd&&bd[t].name!==t}))}("trim")},{trim:function(){return md(this)}});var wd=ei,Sd=ni,xd=Ri,Od=B,Ed=an,$d=hn,Md=L,Dd=ai,Ad=re,Id=vo,jd=Ui("slice"),Rd=Ad("species"),Td=Array,Nd=Math.max;wd({target:"Array",proto:!0,forced:!jd},{slice:function(t,e){var r,n,i,o=Md(this),u=$d(o),c=Ed(t,u),a=Ed(void 0===e?u:e,u);if(Sd(o)&&(r=o.constructor,(xd(r)&&(r===Td||Sd(r.prototype))||Od(r)&&null===(r=r[Rd]))&&(r=void 0),r===Td||void 0===r))return Id(o,c,a);for(n=new(void 0===r?Td:r)(Nd(a-c,0)),i=0;c<a;c++,i++)c in o&&Dd(n,i,o[c]);return n.length=i,n}});var Pd=bn.includes,_d=Ps;ei({target:"Array",proto:!0,forced:c((function(){return!Array(1).includes()}))},{includes:function(t){return Pd(this,t,arguments.length>1?arguments[1]:void 0)}}),_d("includes");var Yd=d,Fd=Pe,kd=P,Cd=ln,Ld=yo,Ud=F,Hd=Ot,Gd=Al,Wd=Gl;bl("match",(function(t,e,r){return[function(e){var r=Ud(this),n=kd(e)?void 0:Hd(e,t);return n?Yd(n,e,r):new RegExp(e)[t](Ld(r))},function(t){var n=Fd(this),i=Ld(t),o=r(e,n,i);if(o.done)return o.value;if(!n.global)return Wd(n,i);var u=n.unicode;n.lastIndex=0;for(var c,a=[],f=0;null!==(c=Wd(n,i));){var s=Ld(c[0]);a[f]=s,""===s&&(n.lastIndex=Gd(i,Cd(n.lastIndex),u)),f++}return 0===f?null:a}]}));var qd=Ri,zd=gt,Bd=TypeError,Kd=Pe,Jd=function(t){if(qd(t))return t;throw new Bd(zd(t)+" is not a constructor")},Vd=P,Xd=re("species"),Qd=an,Zd=hn,th=ai,eh=Array,rh=Math.max,nh=ho,ih=d,oh=E,uh=bl,ch=Pe,ah=P,fh=Ec,sh=F,lh=function(t,e){var r,n=Kd(t).constructor;return void 0===n||Vd(r=Kd(n)[Xd])?e:Jd(r)},dh=Al,hh=ln,vh=yo,ph=Ot,gh=function(t,e,r){for(var n=Zd(t),i=Qd(e,n),o=Qd(void 0===r?n:r,n),u=eh(rh(o-i,0)),c=0;i<o;i++,c++)th(u,c,t[i]);return u.length=c,u},yh=Gl,bh=Qu,mh=c,wh=ru.UNSUPPORTED_Y,Sh=4294967295,xh=Math.min,Oh=[].push,Eh=oh(/./.exec),$h=oh(Oh),Mh=oh("".slice),Dh=!mh((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));uh("split",(function(t,e,r){var n;return n="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,r){var n=vh(sh(this)),i=void 0===r?Sh:r>>>0;if(0===i)return[];if(void 0===t)return[n];if(!fh(t))return ih(e,n,t,i);for(var o,u,c,a=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,f+"g");(o=ih(bh,l,n))&&!((u=l.lastIndex)>s&&($h(a,Mh(n,s,o.index)),o.length>1&&o.index<n.length&&nh(Oh,a,gh(o,1)),c=o[0].length,s=u,a.length>=i));)l.lastIndex===o.index&&l.lastIndex++;return s===n.length?!c&&Eh(l,"")||$h(a,""):$h(a,Mh(n,s)),a.length>i?gh(a,0,i):a}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:ih(e,this,t,r)}:e,[function(e,r){var i=sh(this),o=ah(e)?void 0:ph(e,t);return o?ih(o,e,i,r):ih(n,vh(i),e,r)},function(t,i){var o=ch(this),u=vh(t),c=r(n,o,u,i,n!==e);if(c.done)return c.value;var a=lh(o,RegExp),f=o.unicode,s=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(wh?"g":"y"),l=new a(wh?"^(?:"+o.source+")":o,s),d=void 0===i?Sh:i>>>0;if(0===d)return[];if(0===u.length)return null===yh(l,u)?[u]:[];for(var h=0,v=0,p=[];v<u.length;){l.lastIndex=wh?0:v;var g,y=yh(l,wh?Mh(u,v):u);if(null===y||(g=xh(hh(l.lastIndex+(wh?v:0)),u.length))===h)v=dh(u,v,f);else{if($h(p,Mh(u,h,v)),p.length===d)return p;for(var b=1;b<=y.length-1;b++)if($h(p,y[b]),p.length===d)return p;v=h=g}}return $h(p,Mh(u,h)),p}]}),!Dh,wh);t.bankCardFormat=function(t){var e,r=t.replace(/\s|\D/gi,"");return null===(e=/(\d{4})?(\d{1,4})?(\d{1,4})?(\d{1,4})?(\d{1,4})?/.exec(r))||void 0===e?void 0:e.slice(1,6).join(" ").trim()},t.bigDivide=Xs,t.bigFenToYuan=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(Xs(t,100)).toFixed(e)},t.bigMultiply=Vs,t.bigPlus=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.reduce((function(t,e){return new Js(t).plus(new Js(e))}),0).toString()},t.bigRound=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return new Js(t).round(e).toString()},t.bigSubtract=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.reduce((function(t,e){return new Js(t).minus(new Js(e))})).toString()},t.bigYuanToFen=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(Vs(t,100)).toFixed(e)},t.bigYuanTowan=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return t?Number(Xs(t,1e4)).toFixed(e):e>0?"0."+new Array(e).fill(0).join(""):"0"},t.cardFormat=function(t){var e,r=t.replace(/\s|\D/gi,""),n=null===(e=/(\d{6})?(\d{1,8})?(\d{1,4})?/.exec(r))||void 0===e?void 0:e.slice(1,4).join(" ").trim(),i=t[19];return["x","X"].includes(i)?"".concat(n).concat(i):n},t.colorHexToRGB=function(t){var e=t.replace("#","0x");return"rgb("+(e>>16)+","+(e>>8&255)+","+(255&e)+")"},t.colorRGBToHex=function(t){var e=t.split(/[^\d]+/);return"#"+(e[1]<<16|e[2]<<8|e[3]).toString(16)},t.dateAddDay=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return n(e).add(t,"day").format(r)},t.dateAddMonth=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return n(e).add(t,"month").format(r)},t.dateAddYears=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return n(e).add(t,"years").form