@nocobase/app 1.6.0-alpha.3 → 1.6.0-alpha.31
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/client/.umirc.ts +9 -6
- package/client/public/browser-checker.js +10 -0
- package/client/src/.umi-production/core/helmet.ts +1 -1
- package/client/src/.umi-production/core/history.ts +1 -1
- package/client/src/.umi-production/core/historyIntelli.ts +1 -1
- package/client/src/.umi-production/core/polyfill.ts +233 -233
- package/client/src/.umi-production/exports.ts +3 -3
- package/client/src/.umi-production/testBrowser.tsx +1 -1
- package/client/src/.umi-production/tsconfig.json +1 -1
- package/client/src/.umi-production/umi.ts +2 -2
- package/dist/client/4750.667c5051.async.js +69 -0
- package/dist/client/browser-checker.js +10 -0
- package/dist/client/index.html +4 -4
- package/dist/client/index.html.tpl +4 -4
- package/dist/client/npm._at_ant-design.5ba41bf5.async.js +139 -0
- package/dist/client/{npm._at_formily.16deb97f.async.js → npm._at_formily.07fa921d.async.js} +2 -2
- package/dist/client/npm._at_formulajs.0bdd8ac2.async.js +1 -0
- package/dist/client/npm._at_umijs.7f6c4722.async.js +7 -0
- package/dist/client/{npm.antd.aedb4432.async.js → npm.antd.483a9a61.async.js} +96 -96
- package/dist/client/{npm.highlight.js.8a8320c8.async.js → npm.highlight.js.83fe0142.async.js} +1 -1
- package/dist/client/{npm.lodash-es.c06b3dd5.async.js → npm.lodash-es.99877438.async.js} +1 -1
- package/dist/client/{npm.rc-picker.ef8a3e8b.async.js → npm.rc-picker.9e629062.async.js} +1 -1
- package/dist/client/npm.react-router-dom.2109af81.async.js +1 -0
- package/dist/client/p__index.b415ed71.chunk.css +1 -0
- package/dist/client/p__index.e01e4ced.async.js +1586 -0
- package/dist/client/{umi.4bb47824.js → umi.4047f557.js} +11 -11
- package/lib/config/cache.d.ts +1 -0
- package/lib/config/index.d.ts +1 -0
- package/lib/index.js +1 -4
- package/package.json +6 -6
- package/src/index.ts +1 -4
- package/dist/client/5415.e54e63e7.async.js +0 -73
- package/dist/client/npm._at_ant-design.736bcf26.async.js +0 -109
- package/dist/client/npm._at_formulajs.ff63776b.async.js +0 -1
- package/dist/client/npm._at_remix-run.9a0418a9.async.js +0 -2
- package/dist/client/npm.react-router-dom.832efba3.async.js +0 -1
- package/dist/client/p__index.9a8aaa6c.chunk.css +0 -1
- package/dist/client/p__index.c2222913.async.js +0 -1575
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[3607],{11590:function(Qc,An,Pt){Pt.r(An),Pt.d(An,{ABS:function(){return he},ACCRINT:function(){return Gi},ACCRINTM:function(){return Bi},ACOS:function(){return Ie},ACOSH:function(){return ge},ACOT:function(){return Me},ACOTH:function(){return Ne},AGGREGATE:function(){return Te},AMORDEGRC:function(){return Yi},AMORLINC:function(){return Xi},AND:function(){return Fc},ARABIC:function(){return Se},ASC:function(){return _u},ASIN:function(){return Ae},ASINH:function(){return De},ATAN:function(){return Re},ATAN2:function(){return Ce},ATANH:function(){return Oe},AVEDEV:function(){return Yr},AVERAGE:function(){return rt},AVERAGEA:function(){return vt},AVERAGEIF:function(){return Xr},AVERAGEIFS:function(){return pr},BAHTTEXT:function(){return tf},BASE:function(){return Le},BESSELI:function(){return af},BESSELJ:function(){return Vf},BESSELK:function(){return Ff},BESSELY:function(){return wf},BETA:function(){return St},BETADIST:function(){return Io},BETAINV:function(){return go},BIN2DEC:function(){return Hf},BIN2HEX:function(){return Gf},BIN2OCT:function(){return Bf},BINOM:function(){return It},BINOMDIST:function(){return Mo},BITAND:function(){return Yf},BITLSHIFT:function(){return Xf},BITOR:function(){return pf},BITRSHIFT:function(){return Wf},BITXOR:function(){return jf},CEILING:function(){return x},CEILINGMATH:function(){return No},CEILINGPRECISE:function(){return To},CELL:function(){return sr},CHAR:function(){return Zn},CHIDIST:function(){return So},CHIDISTRT:function(){return Ao},CHIINV:function(){return Do},CHIINVRT:function(){return Ro},CHISQ:function(){return Z},CHITEST:function(){return Co},CHOOSE:function(){return Or},CLEAN:function(){return nf},CODE:function(){return zn},COLUMN:function(){return Lr},COLUMNS:function(){return Pr},COMBIN:function(){return Nt},COMBINA:function(){return Pe},COMPLEX:function(){return B},CONCAT:function(){return rf},CONCATENATE:function(){return Jn},CONFIDENCE:function(){return mt},CONVERT:function(){return Kf},CORREL:function(){return Wr},COS:function(){return Ue},COSH:function(){return ae},COT:function(){return Ve},COTH:function(){return Fe},COUNT:function(){return At},COUNTA:function(){return Dt},COUNTBLANK:function(){return Hn},COUNTIF:function(){return jr},COUNTIFS:function(){return Kr},COUPDAYBS:function(){return pi},COUPDAYS:function(){return Wi},COUPDAYSNC:function(){return ji},COUPNCD:function(){return Ki},COUPNUM:function(){return qi},COUPPCD:function(){return Qi},COVAR:function(){return Oo},COVARIANCE:function(){return gt},COVARIANCEP:function(){return Lo},COVARIANCES:function(){return Po},CRITBINOM:function(){return Uo},CSC:function(){return we},CSCH:function(){return He},CUMIPMT:function(){return $i},CUMPRINC:function(){return Zi},DATE:function(){return Wu},DATEDIF:function(){return ot},DATEVALUE:function(){return ju},DAVERAGE:function(){return Di},DAY:function(){return Ku},DAYS:function(){return it},DAYS360:function(){return b},DB:function(){return zi},DBCS:function(){return ef},DCOUNT:function(){return Ri},DCOUNTA:function(){return Ci},DDB:function(){return Ji},DEC2BIN:function(){return qf},DEC2HEX:function(){return Qf},DEC2OCT:function(){return $f},DECIMAL:function(){return Ge},DEGREES:function(){return Be},DELTA:function(){return Zf},DEVSQ:function(){return qr},DGET:function(){return Oi},DISC:function(){return ki},DMAX:function(){return Li},DMIN:function(){return Pi},DOLLAR:function(){return uf},DOLLARDE:function(){return di},DOLLARFR:function(){return yi},DPRODUCT:function(){return Ui},DSTDEV:function(){return ai},DSTDEVP:function(){return Vi},DSUM:function(){return Fi},DURATION:function(){return xi},DVAR:function(){return wi},DVARP:function(){return Hi},EDATE:function(){return qu},EFFECT:function(){return vi},EOMONTH:function(){return Qu},ERF:function(){return En},ERFC:function(){return hn},ERFCPRECISE:function(){return ao},ERFPRECISE:function(){return Vo},ERROR:function(){return Un},EVEN:function(){return Ye},EXACT:function(){return ff},EXP:function(){return Xe},EXPON:function(){return bt},EXPONDIST:function(){return Fo},F:function(){return z},FACT:function(){return v},FACTDOUBLE:function(){return Kn},FALSE:function(){return wc},FDIST:function(){return wo},FDISTRT:function(){return Ho},FIND:function(){return of},FINV:function(){return Go},FINVRT:function(){return Bo},FISHER:function(){return Qr},FISHERINV:function(){return $r},FIXED:function(){return kn},FLOOR:function(){return ft},FLOORMATH:function(){return Yo},FLOORPRECISE:function(){return Xo},FORECAST:function(){return Gn},FREQUENCY:function(){return Zr},FTEST:function(){return po},FV:function(){return st},FVSCHEDULE:function(){return mi},GAMMA:function(){return Rt},GAMMADIST:function(){return Wo},GAMMAINV:function(){return jo},GAMMALN:function(){return _t},GAMMALNPRECISE:function(){return Ko},GAUSS:function(){return zr},GCD:function(){return pe},GEOMEAN:function(){return Jr},GESTEP:function(){return zf},GROWTH:function(){return kr},HARMEAN:function(){return dr},HEX2BIN:function(){return Jf},HEX2DEC:function(){return kf},HEX2OCT:function(){return df},HLOOKUP:function(){return Ur},HOUR:function(){return $u},HYPGEOM:function(){return tn},HYPGEOMDIST:function(){return qo},IF:function(){return Hc},IFERROR:function(){return Bc},IFNA:function(){return Yc},IFS:function(){return Gc},IMABS:function(){return In},IMAGINARY:function(){return U},IMARGUMENT:function(){return gn},IMCONJUGATE:function(){return yf},IMCOS:function(){return $t},IMCOSH:function(){return dn},IMCOT:function(){return xf},IMCSC:function(){return fo},IMCSCH:function(){return oo},IMDIV:function(){return ct},IMEXP:function(){return vf},IMLN:function(){return mf},IMLOG10:function(){return bf},IMLOG2:function(){return _f},IMPOWER:function(){return to},IMPRODUCT:function(){return no},IMREAL:function(){return a},IMSEC:function(){return ro},IMSECH:function(){return eo},IMSIN:function(){return Zt},IMSINH:function(){return yn},IMSQRT:function(){return uo},IMSUB:function(){return io},IMSUM:function(){return co},IMTAN:function(){return so},INDEX:function(){return ar},INFO:function(){return lr},INT:function(){return We},INTERCEPT:function(){return yr},INTRATE:function(){return bi},IPMT:function(){return xn},IRR:function(){return _i},ISBLANK:function(){return Er},ISERR:function(){return an},ISERROR:function(){return Ht},ISEVEN:function(){return hr},ISFORMULA:function(){return Ir},ISLOGICAL:function(){return Vn},ISNA:function(){return gr},ISNONTEXT:function(){return Mr},ISNUMBER:function(){return Gt},ISO:function(){return je},ISODD:function(){return Nr},ISOWEEKNUM:function(){return Qn},ISPMT:function(){return tc},ISREF:function(){return Tr},ISTEXT:function(){return Fn},KURT:function(){return xr},LARGE:function(){return Bn},LCM:function(){return Ke},LEFT:function(){return cf},LEN:function(){return sf},LINEST:function(){return nn},LN:function(){return qe},LOG:function(){return Qe},LOG10:function(){return $e},LOGEST:function(){return vr},LOGINV:function(){return Qo},LOGNORM:function(){return Mt},LOGNORMDIST:function(){return $o},LOGNORMINV:function(){return Zo},LOOKUP:function(){return Vr},LOWER:function(){return lf},MATCH:function(){return Fr},MAX:function(){return Bt},MAXA:function(){return mr},MDURATION:function(){return nc},MEDIAN:function(){return Yn},MID:function(){return Ef},MIN:function(){return Yt},MINA:function(){return br},MINUTE:function(){return Zu},MIRR:function(){return rc},MMULT:function(){return Ze},MOD:function(){return ze},MODE:function(){return et},MODEMULT:function(){return zo},MODESNGL:function(){return Jo},MONTH:function(){return zu},MROUND:function(){return Je},MULTINOMIAL:function(){return ke},MUNIT:function(){return de},N:function(){return Sr},NA:function(){return Ar},NEGBINOM:function(){return rn},NEGBINOMDIST:function(){return ko},NETWORKDAYS:function(){return Kt},NETWORKDAYSINTL:function(){return yo},NOMINAL:function(){return ec},NORM:function(){return J},NORMDIST:function(){return xo},NORMINV:function(){return vo},NORMSDIST:function(){return mo},NORMSINV:function(){return bo},NOT:function(){return Xc},NOW:function(){return Ju},NPER:function(){return uc},NPV:function(){return Sn},NUMBERVALUE:function(){return hf},OCT2BIN:function(){return lo},OCT2DEC:function(){return Eo},OCT2HEX:function(){return ho},ODD:function(){return ye},ODDFPRICE:function(){return fc},ODDFYIELD:function(){return oc},ODDLPRICE:function(){return ic},ODDLYIELD:function(){return cc},OR:function(){return pc},PDURATION:function(){return sc},PEARSON:function(){return Xn},PERCENTILE:function(){return j},PERCENTILEEXC:function(){return _o},PERCENTILEINC:function(){return ti},PERCENTRANK:function(){return Ct},PERCENTRANKEXC:function(){return ni},PERCENTRANKINC:function(){return ri},PERMUT:function(){return _r},PERMUTATIONA:function(){return te},PHI:function(){return ne},PI:function(){return xe},PMT:function(){return Lt},POISSON:function(){return en},POISSONDIST:function(){return ei},POWER:function(){return qn},PPMT:function(){return lc},PRICE:function(){return Ec},PRICEDISC:function(){return hc},PRICEMAT:function(){return Ic},PROB:function(){return re},PRODUCT:function(){return pt},PRONETIC:function(){return If},PROPER:function(){return gf},PV:function(){return gc},QUARTILE:function(){return ut},QUARTILEEXC:function(){return ui},QUARTILEINC:function(){return fi},QUOTIENT:function(){return ve},RADIANS:function(){return me},RAND:function(){return be},RANDBETWEEN:function(){return _e},RANK:function(){return Ot},RANKAVG:function(){return oi},RANKEQ:function(){return ii},RATE:function(){return Mc},RECEIVED:function(){return Nc},REPLACE:function(){return Mf},REPT:function(){return q},RIGHT:function(){return Nf},ROMAN:function(){return tu},ROUND:function(){return d},ROUNDDOWN:function(){return nu},ROUNDUP:function(){return ru},ROW:function(){return ee},ROWS:function(){return wr},RRI:function(){return Tc},RSQ:function(){return ue},SEARCH:function(){return Tf},SEC:function(){return eu},SECH:function(){return uu},SECOND:function(){return ku},SERIESSUM:function(){return fu},SHEET:function(){return Dr},SHEETS:function(){return Rr},SIGN:function(){return ou},SIN:function(){return iu},SINH:function(){return cu},SKEW:function(){return un},SKEWP:function(){return ci},SLN:function(){return Sc},SLOPE:function(){return fe},SMALL:function(){return pn},SORT:function(){return Hr},SQRT:function(){return su},SQRTPI:function(){return lu},STANDARDIZE:function(){return oe},STDEV:function(){return X},STDEVA:function(){return ie},STDEVP:function(){return si},STDEVPA:function(){return ce},STDEVS:function(){return li},STEYX:function(){return se},SUBSTITUTE:function(){return Sf},SUBTOTAL:function(){return Eu},SUM:function(){return m},SUMIF:function(){return hu},SUMIFS:function(){return Iu},SUMPRODUCT:function(){return gu},SUMSQ:function(){return Mu},SUMX2MY2:function(){return Nu},SUMX2PY2:function(){return Tu},SUMXMY2:function(){return Su},SWITCH:function(){return Kc},SYD:function(){return Ac},T:function(){return Af},TAN:function(){return Au},TANH:function(){return Du},TBILLEQ:function(){return Dc},TBILLPRICE:function(){return Rc},TBILLYIELD:function(){return Cc},TDIST:function(){return Ei},TDISTRT:function(){return hi},TEXT:function(){return Df},TEXTJOIN:function(){return Rf},TIME:function(){return du},TIMEVALUE:function(){return yu},TINV:function(){return Ii},TODAY:function(){return xu},TRANSPOSE:function(){return Gr},TREND:function(){return le},TRIM:function(){return Cf},TRIMMEAN:function(){return Ee},TRUE:function(){return Wc},TRUNC:function(){return Ru},TTEST:function(){return gi},TYPE:function(){return Cr},UNICHAR:function(){return Of},UNICODE:function(){return Lf},UNIQUE:function(){return xt},UPPER:function(){return Pf},VALUE:function(){return Uf},VAR:function(){return Y},VARA:function(){return Wn},VARP:function(){return Mi},VARPA:function(){return jn},VARS:function(){return Ni},VDB:function(){return Oc},VLOOKUP:function(){return wn},WEEKDAY:function(){return vu},WEEKNUM:function(){return mu},WEIBULL:function(){return fn},WEIBULLDIST:function(){return Ti},WORKDAY:function(){return qt},WORKDAYINTL:function(){return Si},XIRR:function(){return Lc},XNPV:function(){return Pc},XOR:function(){return jc},YEAR:function(){return bu},YEARFRAC:function(){return sn},YIELD:function(){return Uc},YIELDDISC:function(){return ac},YIELDMAT:function(){return Vc},Z:function(){return on},ZTEST:function(){return Ai},utils:function(){return qc}});var M=Pt(2162),Ut=Pt(15765);const zt=new Error("#NULL!"),H=new Error("#DIV/0!"),c=new Error("#VALUE!"),lt=new Error("#REF!"),at=new Error("#NAME?"),E=new Error("#NUM!"),A=new Error("#N/A"),Jt=new Error("#ERROR!"),Dn=new Error("#GETTING_DATA");var vn=Object.freeze({__proto__:null,data:Dn,div0:H,error:Jt,na:A,name:at,nil:zt,num:E,ref:lt,value:c});function Tt(t){const n=[];return G(t,r=>{n.push(r)}),n}function G(t,n){let r=-1;const e=t.length;for(;++r<e&&n(t[r],r,t)!==!1;);return t}function kt(t){let n=t.length,r;for(;n--;)if(r=t[n],typeof r!="number"){if(r===!0){t[n]=1;continue}if(r===!1){t[n]=0;continue}if(typeof r=="string"){const e=o(r);t[n]=e instanceof Error?0:e}}return t}function Rn(t,n){if(!t)return c;(!t.every(u=>Array.isArray(u))||t.length===0)&&(t=[[...t]]),t.map((u,f)=>{u.map((i,s)=>{i||(t[f][s]=0)})});const r=t.reduce((u,f,i)=>f.length>t[u].length?i:u,0),e=t[r].length;return t.map(u=>[...u,...Array(e-u.length).fill(n||0)])}function g(){let t;if(arguments.length===1){const n=arguments[0];t=bn(n)?Tt.apply(null,arguments):[n]}else t=Array.from(arguments);for(;!_n(t);)t=dt(t);return t}function dt(t){return!t||!t.reduce?[t]:t.reduce((n,r)=>{const e=Array.isArray(n),u=Array.isArray(r);return e&&u?n.concat(r):e?(n.push(r),n):u?[n].concat(r):[n,r]})}function mn(t,n){return n=n||1,!t||typeof t.slice!="function"?t:t.slice(0,t.length-n)}function bn(t){return t!=null&&typeof t.length=="number"&&typeof t!="string"}function _n(t){if(!t)return!1;for(let n=0;n<t.length;++n)if(Array.isArray(t[n]))return!1;return!0}function V(t,n){return n=n||1,!t||typeof t.slice!="function"?t:t.slice(n)}function Vt(t){return t?t[0].map((n,r)=>t.map(e=>e[r])):c}function Q(t,n){let r=null;return G(t,(e,u)=>{if(e[0]===n)return r=u,!1}),r??c}function O(){for(let t=0;t<arguments.length;t++)if(arguments[t]instanceof Error)return arguments[t]}function h(){let t=arguments.length;for(;t--;)if(arguments[t]instanceof Error)return!0;return!1}function Cn(t){return Math.round(t*1e14)/1e14}function Et(){return g.apply(null,arguments).filter(n=>typeof n=="number")}function tr(t){t<60&&(t+=1);const r=Math.floor(t-25569)*86400,e=new Date(r*1e3),u=t-Math.floor(t)+1e-7;let f=Math.floor(86400*u);const i=f%60;f-=i;const s=Math.floor(f/(60*60)),l=Math.floor(f/60)%60;let I=e.getUTCDate(),T=e.getUTCMonth();return t>=60&&t<61&&(I=29,T=1),new Date(e.getUTCFullYear(),T,I,s,l,i)}function yt(t){if(typeof t=="boolean"||t instanceof Error)return t;if(typeof t=="number")return t!==0;if(typeof t=="string"){const n=t.toUpperCase();if(n==="TRUE")return!0;if(n==="FALSE")return!1}return t instanceof Date&&!isNaN(t)?!0:c}function L(t){if(!isNaN(t)){if(t instanceof Date)return new Date(t);const n=parseFloat(t);return n<0||n>=2958466?E:tr(n)}return typeof t=="string"&&(t=/(\d{4})-(\d\d?)-(\d\d?)$/.test(t)?new Date(t+"T00:00:00.000"):new Date(t),!isNaN(t))?t:c}function On(t){let n=t.length,r;for(;n--;){if(r=L(t[n]),r===c)return r;t[n]=r}return t}function o(t){return t instanceof Error?t:t==null?0:(typeof t=="boolean"&&(t=+t),!isNaN(t)&&t!==""?parseFloat(t):c)}function N(t){let n;if(!t||(n=t.length)===0)return c;let r;for(;n--;){if(t[n]instanceof Error)return t[n];if(r=o(t[n]),r instanceof Error)return r;t[n]=r}return t}function F(t){return t instanceof Error?t:t==null?"":t.toString()}function Ft(){let t=arguments.length;for(;t--;)if(typeof arguments[t]=="string")return!0;return!1}function ht(t){return t!=null}const nr="=",rr=[">",">=","<","<=","=","<>"],Ln="operator",Pn="literal",er=[Ln,Pn],wt=Ln,y=Pn;function k(t,n){if(er.indexOf(n)===-1)throw new Error("Unsupported token type: "+n);return{value:t,type:n}}function ur(t){return typeof t!="string"||/^\d+(\.\d+)?$/.test(t)&&(t=t.indexOf(".")===-1?parseInt(t,10):parseFloat(t)),t}function fr(t){const n=t.length,r=[];let e=0,u="",f="";for(;e<n;){const i=t.charAt(e);switch(i){case">":case"<":case"=":f=f+i,u.length>0&&(r.push(u),u="");break;default:f.length>0&&(r.push(f),f=""),u=u+i;break}e++}return u.length>0&&r.push(u),f.length>0&&r.push(f),r}function or(t){let n="";const r=[];for(let e=0;e<t.length;e++){const u=t[e];e===0&&rr.indexOf(u)>=0?r.push(k(u,wt)):n+=u}return n.length>0&&r.push(k(ur(n),y)),r.length>0&&r[0].type!==wt&&r.unshift(k(nr,wt)),r}function ir(t){const n=[];let r;for(let e=0;e<t.length;e++){const u=t[e];switch(u.type){case wt:r=u.value;break;case y:n.push(u.value);break}}return cr(n,r)}function cr(t,n){let r=!1;switch(n){case">":r=t[0]>t[1];break;case">=":r=t[0]>=t[1];break;case"<":r=t[0]<t[1];break;case"<=":r=t[0]<=t[1];break;case"=":r=t[0]==t[1];break;case"<>":r=t[0]!=t[1];break}return r}function tt(t){return or(fr(t))}const nt=ir;function sr(){throw new Error("CELL is not implemented")}const Un={};Un.TYPE=t=>{switch(t){case zt:return 1;case H:return 2;case c:return 3;case lt:return 4;case at:return 5;case E:return 6;case A:return 7;case Dn:return 8}return A};function lr(){throw new Error("INFO is not implemented")}function Er(t){return t===null}function an(t){return[c,lt,H,E,at,zt].indexOf(t)>=0||typeof t=="number"&&(isNaN(t)||!isFinite(t))}function Ht(t){return an(t)||t===A}function hr(t){return!(Math.floor(Math.abs(t))&1)}function Ir(){throw new Error("ISFORMULA is not implemented")}function Vn(t){return t===!0||t===!1}function gr(t){return t===A}function Mr(t){return typeof t!="string"}function Gt(t){return typeof t=="number"&&!isNaN(t)&&isFinite(t)}function Nr(t){return!!(Math.floor(Math.abs(t))&1)}function Tr(){throw new Error("ISREF is not implemented")}function Fn(t){return typeof t=="string"}function Sr(t){return Gt(t)?t:t instanceof Date?t.getTime():t===!0?1:t===!1?0:Ht(t)?t:0}function Ar(){return A}function Dr(){throw new Error("SHEET is not implemented")}function Rr(){throw new Error("SHEETS is not implemented")}function Cr(t){if(Gt(t))return 1;if(Fn(t))return 2;if(Vn(t))return 4;if(Ht(t))return 16;if(Array.isArray(t))return 64}function Or(){if(arguments.length<2)return A;const t=arguments[0];return t<1||t>254||arguments.length<t+1?c:arguments[t]}function Lr(t,n){if(arguments.length!==2)return A;if(n<0)return E;if(!(t instanceof Array)||typeof n!="number")return c;if(t.length!==0)return M.col(t,n)}function Pr(t){return arguments.length!==1?A:t instanceof Array?t.length===0?0:M.cols(t):c}function Ur(t,n,r,e){return wn(t,Vt(n),r,e)}function ar(t,n,r){const e=O(t,n,r);if(e)return e;if(!Array.isArray(t))return c;const u=t.length>0&&!Array.isArray(t[0]);return u&&!r?(r=n,n=1):(r=r||1,n=n||1),r<0||n<0?c:u&&n===1&&r<=t.length?t[r-1]:n<=t.length&&r<=t[n-1].length?t[n-1][r-1]:lt}function Vr(t,n,r){n=g(n),r=r?g(r):n;const e=typeof t=="number";let u=A;for(let f=0;f<n.length;f++){if(n[f]===t)return r[f];if(e&&n[f]<=t||typeof n[f]=="string"&&n[f].localeCompare(t)<0)u=r[f];else if(e&&n[f]>t)return u}return u}function Fr(t,n,r){if(!t||!n||(arguments.length===2&&(r=1),n=g(n),!(n instanceof Array))||r!==-1&&r!==0&&r!==1)return A;let e,u;for(let f=0;f<n.length;f++)if(r===1){if(n[f]===t)return f+1;n[f]<t&&(u?n[f]>u&&(e=f+1,u=n[f]):(e=f+1,u=n[f]))}else if(r===0){if(typeof t=="string"&&typeof n[f]=="string"){const i=t.toLowerCase().replace(/\?/g,".").replace(/\*/g,".*").replace(/~/g,"\\");if(new RegExp("^"+i+"$").test(n[f].toLowerCase()))return f+1}else if(n[f]===t)return f+1}else if(r===-1){if(n[f]===t)return f+1;n[f]>t&&(u?n[f]<u&&(e=f+1,u=n[f]):(e=f+1,u=n[f]))}return e||A}function wr(t){return arguments.length!==1?A:t instanceof Array?t.length===0?0:M.rows(t):c}function Hr(t,n=1,r=1,e=!1){if(!t||!Array.isArray(t))return A;if(t.length===0)return 0;if(n=o(n),!n||n<1||(r=o(r),r!==1&&r!==-1))return c;if(e=yt(e),typeof e!="boolean")return at;const u=s=>s.sort((l,I)=>(l=F(l[n-1]),I=F(I[n-1]),r===1?l<I?r*-1:r:l>I?r:r*-1)),f=Rn(t),i=e?Vt(f):f;return n>=1&&n<=i[0].length?e?Vt(u(i)):u(i):c}function Gr(t){if(!t)return A;const n=Rn(t);return Vt(n)}function xt(){const t=[];for(let n=0;n<arguments.length;++n){let r=!1;const e=arguments[n];for(let u=0;u<t.length&&(r=t[u]===e,!r);++u);r||t.push(e)}return t}function wn(t,n,r,e){if(!n||!r)return A;e=!(e===0||e===!1);let u=A;const f=typeof t=="number";let i=!1;for(let s=0;s<n.length;s++){const l=n[s];if(l[0]===t){u=r<l.length+1?l[r-1]:lt;break}else!i&&(f&&e&&l[0]<=t||e&&typeof l[0]=="string"&&l[0].localeCompare(t)<0)&&(u=r<l.length+1?l[r-1]:lt);f&&l[0]>t&&(i=!0)}return u}const Br=2.5066282746310002;function Yr(){const n=g(arguments).filter(ht);if(n.length===0)return E;const r=N(n);return r instanceof Error?r:M.sum(M(r).subtract(M.mean(r)).abs()[0])/r.length}function rt(){const n=g(arguments).filter(ht);if(n.length===0)return H;const r=O.apply(void 0,n);if(r)return r;const e=Et(n),u=e.length;let f=0,i=0,s;for(let l=0;l<u;l++)f+=e[l],i+=1;return s=f/i,isNaN(s)&&(s=E),s}function vt(){const n=g(arguments).filter(ht);if(n.length===0)return H;const r=O.apply(void 0,n);if(r)return r;const e=n,u=e.length;let f=0,i=0,s;for(let l=0;l<u;l++){const I=e[l];typeof I=="number"&&(f+=I),I===!0&&f++,I!==null&&i++}return s=f/i,isNaN(s)&&(s=E),s}function Xr(t,n,r){if(arguments.length<=1)return A;r=r||t;const u=g(r).filter(ht);if(r=N(u),t=g(t),r instanceof Error)return r;let f=0,i=0;const s=n===void 0||n==="*",l=s?null:tt(n+"");for(let I=0;I<t.length;I++){const T=t[I];if(s)i+=r[I],f++;else{const D=[k(T,y)].concat(l);nt(D)&&(i+=r[I],f++)}}return i/f}function pr(){const t=Tt(arguments),n=(t.length-1)/2,r=g(t[0]);let e=0,u=0;for(let i=0;i<r.length;i++){let s=!1;for(let l=0;l<n;l++){const I=t[2*l+1][i],T=t[2*l+2],D=T===void 0||T==="*";let R=!1;if(D)R=!0;else{const S=tt(T+""),C=[k(I,y)].concat(S);R=nt(C)}if(!R){s=!1;break}s=!0}s&&(u+=r[i],e++)}const f=u/e;return isNaN(f)?0:f}const St={};St.DIST=function(t,n,r,e,u,f){return arguments.length<4||(u=u===void 0?0:u,f=f===void 0?1:f,t=o(t),n=o(n),r=o(r),u=o(u),f=o(f),h(t,n,r,u,f))?c:(t=(t-u)/(f-u),e?M.beta.cdf(t,n,r):M.beta.pdf(t,n,r))},St.INV=(t,n,r,e,u)=>(e=e===void 0?0:e,u=u===void 0?1:u,t=o(t),n=o(n),r=o(r),e=o(e),u=o(u),h(t,n,r,e,u)?c:M.beta.inv(t,n,r)*(u-e)+e);const It={};It.DIST=(t,n,r,e)=>(t=o(t),n=o(n),r=o(r),e=o(e),h(t,n,r,e)?c:e?M.binomial.cdf(t,n,r):M.binomial.pdf(t,n,r)),It.DIST.RANGE=(t,n,r,e)=>{if(e=e===void 0?r:e,t=o(t),n=o(n),r=o(r),e=o(e),h(t,n,r,e))return c;let u=0;for(let f=r;f<=e;f++)u+=Nt(t,f)*Math.pow(n,f)*Math.pow(1-n,t-f);return u},It.INV=(t,n,r)=>{if(t=o(t),n=o(n),r=o(r),h(t,n,r))return c;let e=0;for(;e<=t;){if(M.binomial.cdf(e,t,n)>=r)return e;e++}};const Z={};Z.DIST=(t,n,r)=>(t=o(t),n=o(n),h(t,n)?c:r?M.chisquare.cdf(t,n):M.chisquare.pdf(t,n)),Z.DIST.RT=(t,n)=>!t|!n?A:t<1||n>Math.pow(10,10)?E:typeof t!="number"||typeof n!="number"?c:1-M.chisquare.cdf(t,n),Z.INV=(t,n)=>(t=o(t),n=o(n),h(t,n)?c:M.chisquare.inv(t,n)),Z.INV.RT=(t,n)=>!t|!n?A:t<0||t>1||n<1||n>Math.pow(10,10)?E:typeof t!="number"||typeof n!="number"?c:M.chisquare.inv(1-t,n),Z.TEST=function(t,n){if(arguments.length!==2)return A;if(!(t instanceof Array)||!(n instanceof Array)||t.length!==n.length||t[0]&&n[0]&&t[0].length!==n[0].length)return c;const r=t.length;let e,u,f;for(u=0;u<r;u++)t[u]instanceof Array||(e=t[u],t[u]=[],t[u].push(e)),n[u]instanceof Array||(e=n[u],n[u]=[],n[u].push(e));const i=t[0].length,s=i===1?r-1:(r-1)*(i-1);let l=0;const I=Math.PI;for(u=0;u<r;u++)for(f=0;f<i;f++)l+=Math.pow(t[u][f]-n[u][f],2)/n[u][f];function T(D,R){let S=Math.exp(-.5*D);R%2===1&&(S=S*Math.sqrt(2*D/I));let C=R;for(;C>=2;)S=S*D/C,C=C-2;let P=S,p=R;for(;P>1e-10*S;)p=p+2,P=P*D/p,S=S+P;return 1-S}return Math.round(T(l,s)*1e6)/1e6};const mt={};mt.NORM=(t,n,r)=>(t=o(t),n=o(n),r=o(r),h(t,n,r)?c:M.normalci(1,t,n,r)[1]-1),mt.T=(t,n,r)=>(t=o(t),n=o(n),r=o(r),h(t,n,r)?c:M.tci(1,t,n,r)[1]-1);function Wr(t,n){return t=N(g(t)),n=N(g(n)),h(t,n)?c:M.corrcoeff(t,n)}function At(){const t=g(arguments);return Et(t).length}function Dt(){const t=g(arguments);return t.length-Hn(t)}function Hn(){const t=g(arguments);let n=0,r;for(let e=0;e<t.length;e++)r=t[e],(r==null||r==="")&&n++;return n}function jr(t,n){if(t=g(t),n===void 0||n==="*")return t.length;let e=0;const u=tt(n+"");for(let f=0;f<t.length;f++){const i=t[f],s=[k(i,y)].concat(u);nt(s)&&e++}return e}function Kr(){const t=Tt(arguments),n=new Array(g(t[0]).length);for(let e=0;e<n.length;e++)n[e]=!0;for(let e=0;e<t.length;e+=2){const u=g(t[e]),f=t[e+1];if(!(f===void 0||f==="*")){const s=tt(f+"");for(let l=0;l<u.length;l++){const I=u[l],T=[k(I,y)].concat(s);n[l]=n[l]&&nt(T)}}}let r=0;for(let e=0;e<n.length;e++)n[e]&&r++;return r}const gt={};gt.P=(t,n)=>{if(t=N(g(t)),n=N(g(n)),h(t,n))return c;const r=M.mean(t),e=M.mean(n);let u=0;const f=t.length;for(let i=0;i<f;i++)u+=(t[i]-r)*(n[i]-e);return u/f},gt.S=(t,n)=>(t=N(g(t)),n=N(g(n)),h(t,n)?c:M.covariance(t,n));function qr(){const t=N(g(arguments));if(t instanceof Error)return t;const n=M.mean(t);let r=0;for(let e=0;e<t.length;e++)r+=Math.pow(t[e]-n,2);return r}const bt={};bt.DIST=(t,n,r)=>(t=o(t),n=o(n),h(t,n)?c:r?M.exponential.cdf(t,n):M.exponential.pdf(t,n));const z={};z.DIST=(t,n,r,e)=>(t=o(t),n=o(n),r=o(r),h(t,n,r)?c:e?M.centralF.cdf(t,n,r):M.centralF.pdf(t,n,r)),z.DIST.RT=function(t,n,r){return arguments.length!==3?A:t<0||n<1||r<1?E:typeof t!="number"||typeof n!="number"||typeof r!="number"?c:1-M.centralF.cdf(t,n,r)},z.INV=(t,n,r)=>(t=o(t),n=o(n),r=o(r),h(t,n,r)?c:t<=0||t>1?E:M.centralF.inv(t,n,r)),z.INV.RT=function(t,n,r){return arguments.length!==3?A:t<0||t>1||n<1||n>Math.pow(10,10)||r<1||r>Math.pow(10,10)?E:typeof t!="number"||typeof n!="number"||typeof r!="number"?c:M.centralF.inv(1-t,n,r)},z.TEST=(t,n)=>{if(!t||!n||!(t instanceof Array)||!(n instanceof Array))return A;if(t.length<2||n.length<2)return H;const r=(s,l)=>{let I=0;for(let T=0;T<s.length;T++)I+=Math.pow(s[T]-l,2);return I},e=m(t)/t.length,u=m(n)/n.length,f=r(t,e)/(t.length-1),i=r(n,u)/(n.length-1);return f/i};function Qr(t){return t=o(t),t instanceof Error?t:Math.log((1+t)/(1-t))/2}function $r(t){if(t=o(t),t instanceof Error)return t;const n=Math.exp(2*t);return(n-1)/(n+1)}function Gn(t,n,r){if(t=o(t),n=N(g(n)),r=N(g(r)),h(t,n,r))return c;const e=M.mean(r),u=M.mean(n),f=r.length;let i=0,s=0;for(let T=0;T<f;T++)i+=(r[T]-e)*(n[T]-u),s+=Math.pow(r[T]-e,2);const l=i/s;return u-l*e+l*t}function Zr(t,n){if(t=N(g(t)),n=N(g(n)),h(t,n))return c;const r=t.length,e=n.length,u=[];for(let f=0;f<=e;f++){u[f]=0;for(let i=0;i<r;i++)f===0?t[i]<=n[0]&&(u[0]+=1):f<e?t[i]>n[f-1]&&t[i]<=n[f]&&(u[f]+=1):f===e&&t[i]>n[e-1]&&(u[e]+=1)}return u}function Rt(t){return t=o(t),t instanceof Error?t:t===0||parseInt(t,10)===t&&t<0?E:M.gammafn(t)}Rt.DIST=function(t,n,r,e){return arguments.length!==4?A:t<0||n<=0||r<=0||typeof t!="number"||typeof n!="number"||typeof r!="number"?c:e?M.gamma.cdf(t,n,r,!0):M.gamma.pdf(t,n,r,!1)},Rt.INV=function(t,n,r){return arguments.length!==3?A:t<0||t>1||n<=0||r<=0?E:typeof t!="number"||typeof n!="number"||typeof r!="number"?c:M.gamma.inv(t,n,r)};function _t(t){return t=o(t),t instanceof Error?t:M.gammaln(t)}_t.PRECISE=function(t){return arguments.length!==1?A:t<=0?E:typeof t!="number"?c:M.gammaln(t)};function zr(t){return t=o(t),t instanceof Error?t:M.normal.cdf(t,0,1)-.5}function Jr(){const t=N(g(arguments));return t instanceof Error?t:M.geomean(t)}function kr(t,n,r,e){if(t=N(t),t instanceof Error)return t;let u;if(n===void 0)for(n=[],u=1;u<=t.length;u++)n.push(u);if(r===void 0)for(r=[],u=1;u<=t.length;u++)r.push(u);if(n=N(n),r=N(r),h(n,r))return c;e===void 0&&(e=!0);const f=t.length;let i=0,s=0,l=0,I=0;for(u=0;u<f;u++){const S=n[u],C=Math.log(t[u]);i+=S,s+=C,l+=S*C,I+=S*S}i/=f,s/=f,l/=f,I/=f;let T,D;e?(T=(l-i*s)/(I-i*i),D=s-T*i):(T=l/I,D=0);const R=[];for(u=0;u<r.length;u++)R.push(Math.exp(D+T*r[u]));return R}function dr(){const t=N(g(arguments));if(t instanceof Error)return t;const n=t.length;let r=0;for(let e=0;e<n;e++)r+=1/t[e];return n/r}const tn={};tn.DIST=(t,n,r,e,u)=>{if(t=o(t),n=o(n),r=o(r),e=o(e),h(t,n,r,e))return c;function f(s,l,I,T){return Nt(I,s)*Nt(T-I,l-s)/Nt(T,l)}function i(s,l,I,T){let D=0;for(let R=0;R<=s;R++)D+=f(R,l,I,T);return D}return u?i(t,n,r,e):f(t,n,r,e)};function yr(t,n){return t=N(t),n=N(n),h(t,n)?c:t.length!==n.length?A:Gn(0,t,n)}function xr(){const t=N(g(arguments));if(t instanceof Error)return t;const n=M.mean(t),r=t.length;let e=0;for(let u=0;u<r;u++)e+=Math.pow(t[u]-n,4);return e=e/Math.pow(M.stdev(t,!0),4),r*(r+1)/((r-1)*(r-2)*(r-3))*e-3*(r-1)*(r-1)/((r-2)*(r-3))}function Bn(t,n){return t=N(g(t)),n=o(n),h(t,n)?t:n<0||t.length<n?c:t.sort((r,e)=>e-r)[n-1]}function nn(t,n){if(t=N(g(t)),n=N(g(n)),h(t,n))return c;const r=M.mean(t),e=M.mean(n),u=n.length;let f=0,i=0;for(let I=0;I<u;I++)f+=(n[I]-e)*(t[I]-r),i+=Math.pow(n[I]-e,2);const s=f/i,l=r-s*e;return[s,l]}function vr(t,n){if(t=N(g(t)),n=N(g(n)),h(t,n)||t.length!==n.length)return c;for(let e=0;e<t.length;e++)t[e]=Math.log(t[e]);const r=nn(t,n);return r[0]=Math.round(Math.exp(r[0])*1e6)/1e6,r[1]=Math.round(Math.exp(r[1])*1e6)/1e6,r}const Mt={};Mt.DIST=(t,n,r,e)=>(t=o(t),n=o(n),r=o(r),h(t,n,r)?c:e?M.lognormal.cdf(t,n,r):M.lognormal.pdf(t,n,r)),Mt.INV=(t,n,r)=>(t=o(t),n=o(n),r=o(r),h(t,n,r)?c:M.lognormal.inv(t,n,r));function Bt(){const t=g(arguments),n=O.apply(void 0,t);if(n)return n;const r=Et(t);return r.length===0?0:Math.max.apply(Math,r)}function mr(){const t=g(arguments),n=O.apply(void 0,t);if(n)return n;let r=kt(t);return r=r.map(e=>e??0),r.length===0?0:Math.max.apply(Math,r)}function Yn(){const t=g(arguments),n=O.apply(void 0,t);if(n)return n;const r=kt(t);let e=M.median(r);return isNaN(e)&&(e=E),e}function Yt(){const t=g(arguments),n=O.apply(void 0,t);if(n)return n;const r=Et(t);return r.length===0?0:Math.min.apply(Math,r)}function br(){const t=g(arguments),n=O.apply(void 0,t);if(n)return n;let r=kt(t);return r=r.map(e=>e??0),r.length===0?0:Math.min.apply(Math,r)}const et={};et.MULT=function(){const t=N(g(arguments));if(t instanceof Error)return t;const n=t.length,r={};let e=[],u=0,f;for(let i=0;i<n;i++)f=t[i],r[f]=r[f]?r[f]+1:1,r[f]>u&&(u=r[f],e=[]),r[f]===u&&(e[e.length]=f);return e},et.SNGL=function(){const t=N(g(arguments));return t instanceof Error?t:et.MULT(t).sort((n,r)=>n-r)[0]};const rn={};rn.DIST=(t,n,r,e)=>(t=o(t),n=o(n),r=o(r),h(t,n,r)?c:e?M.negbin.cdf(t,n,r):M.negbin.pdf(t,n,r));const J={};J.DIST=(t,n,r,e)=>(t=o(t),n=o(n),r=o(r),h(t,n,r)?c:r<=0?E:e?M.normal.cdf(t,n,r):M.normal.pdf(t,n,r)),J.INV=(t,n,r)=>(t=o(t),n=o(n),r=o(r),h(t,n,r)?c:M.normal.inv(t,n,r)),J.S={},J.S.DIST=(t,n)=>(t=o(t),t instanceof Error?c:n?M.normal.cdf(t,0,1):M.normal.pdf(t,0,1)),J.S.INV=t=>(t=o(t),t instanceof Error?c:M.normal.inv(t,0,1));function Xn(t,n){if(n=N(g(n)),t=N(g(t)),h(n,t))return c;const r=M.mean(t),e=M.mean(n),u=t.length;let f=0,i=0,s=0;for(let l=0;l<u;l++)f+=(t[l]-r)*(n[l]-e),i+=Math.pow(t[l]-r,2),s+=Math.pow(n[l]-e,2);return f/Math.sqrt(i*s)}const j={};j.EXC=(t,n)=>{if(t=N(g(t)),n=o(n),h(t,n))return c;t=t.sort((f,i)=>f-i);const r=t.length;if(n<1/(r+1)||n>1-1/(r+1))return E;const e=n*(r+1)-1,u=Math.floor(e);return Cn(e===u?t[e]:t[u]+(e-u)*(t[u+1]-t[u]))},j.INC=(t,n)=>{if(t=N(g(t)),n=o(n),h(t,n))return c;t=t.sort((f,i)=>f-i);const r=t.length,e=n*(r-1),u=Math.floor(e);return Cn(e===u?t[e]:t[u]+(e-u)*(t[u+1]-t[u]))};const Ct={};Ct.EXC=(t,n,r)=>{if(r=r===void 0?3:r,t=N(g(t)),n=o(n),r=o(r),h(t,n,r))return c;t=t.sort((T,D)=>T-D);const e=xt.apply(null,t),u=t.length,f=e.length,i=Math.pow(10,r);let s=0,l=!1,I=0;for(;!l&&I<f;)n===e[I]?(s=(t.indexOf(e[I])+1)/(u+1),l=!0):n>=e[I]&&(n<e[I+1]||I===f-1)&&(s=(t.indexOf(e[I])+1+(n-e[I])/(e[I+1]-e[I]))/(u+1),l=!0),I++;return Math.floor(s*i)/i},Ct.INC=(t,n,r)=>{if(r=r===void 0?3:r,t=N(g(t)),n=o(n),r=o(r),h(t,n,r))return c;t=t.sort((T,D)=>T-D);const e=xt.apply(null,t),u=t.length,f=e.length,i=Math.pow(10,r);let s=0,l=!1,I=0;for(;!l&&I<f;)n===e[I]?(s=t.indexOf(e[I])/(u-1),l=!0):n>=e[I]&&(n<e[I+1]||I===f-1)&&(s=(t.indexOf(e[I])+(n-e[I])/(e[I+1]-e[I]))/(u-1),l=!0),I++;return Math.floor(s*i)/i};function _r(t,n){return t=o(t),n=o(n),h(t,n)?c:v(t)/v(t-n)}function te(t,n){return t=o(t),n=o(n),h(t,n)?c:Math.pow(t,n)}function ne(t){return t=o(t),t instanceof Error?c:Math.exp(-.5*t*t)/Br}const en={};en.DIST=(t,n,r)=>(t=o(t),n=o(n),h(t,n)?c:r?M.poisson.cdf(t,n):M.poisson.pdf(t,n));function re(t,n,r,e){if(r===void 0)return 0;if(e=e===void 0?r:e,t=N(g(t)),n=N(g(n)),r=o(r),e=o(e),h(t,n,r,e))return c;if(r===e)return t.indexOf(r)>=0?n[t.indexOf(r)]:0;const u=t.sort((s,l)=>s-l),f=u.length;let i=0;for(let s=0;s<f;s++)u[s]>=r&&u[s]<=e&&(i+=n[t.indexOf(u[s])]);return i}const ut={};ut.EXC=(t,n)=>{if(t=N(g(t)),n=o(n),h(t,n))return c;switch(n){case 1:return j.EXC(t,.25);case 2:return j.EXC(t,.5);case 3:return j.EXC(t,.75);default:return E}},ut.INC=(t,n)=>{if(t=N(g(t)),n=o(n),h(t,n))return c;switch(n){case 1:return j.INC(t,.25);case 2:return j.INC(t,.5);case 3:return j.INC(t,.75);default:return E}};const Ot={};Ot.AVG=(t,n,r)=>{if(t=o(t),n=N(g(n)),h(t,n))return c;n=g(n),r=r||!1;const e=r?(i,s)=>i-s:(i,s)=>s-i;n=n.sort(e);const u=n.length;let f=0;for(let i=0;i<u;i++)n[i]===t&&f++;return f>1?(2*n.indexOf(t)+f+1)/2:n.indexOf(t)+1},Ot.EQ=(t,n,r)=>{if(t=o(t),n=N(g(n)),h(t,n))return c;r=r||!1;const e=r?(u,f)=>u-f:(u,f)=>f-u;return n=n.sort(e),n.indexOf(t)+1};function ee(t,n){if(arguments.length!==2)return A;if(n<0)return E;if(!(t instanceof Array)||typeof n!="number")return c;if(t.length!==0)return M.row(t,n)}function ue(t,n){return t=N(g(t)),n=N(g(n)),h(t,n)?c:Math.pow(Xn(t,n),2)}function un(){const t=N(g(arguments));if(t instanceof Error)return t;const n=M.mean(t),r=t.length;let e=0;for(let u=0;u<r;u++)e+=Math.pow(t[u]-n,3);return r*e/((r-1)*(r-2)*Math.pow(M.stdev(t,!0),3))}un.P=function(){const t=N(g(arguments));if(t instanceof Error)return t;const n=M.mean(t),r=t.length;let e=0,u=0;for(let f=0;f<r;f++)u+=Math.pow(t[f]-n,3),e+=Math.pow(t[f]-n,2);return u=u/r,e=e/r,u/Math.pow(e,3/2)};function fe(t,n){if(t=N(g(t)),n=N(g(n)),h(t,n))return c;const r=M.mean(n),e=M.mean(t),u=n.length;let f=0,i=0;for(let s=0;s<u;s++)f+=(n[s]-r)*(t[s]-e),i+=Math.pow(n[s]-r,2);return f/i}function pn(t,n){return t=N(g(t)),n=o(n),h(t,n)?t:t.sort((r,e)=>r-e)[n-1]}function oe(t,n,r){return t=o(t),n=o(n),r=o(r),h(t,n,r)?c:(t-n)/r}const X={};X.P=function(){const t=Y.P.apply(this,arguments);let n=Math.sqrt(t);return isNaN(n)&&(n=E),n},X.S=function(){const t=Y.S.apply(this,arguments);return Math.sqrt(t)};function ie(){const t=Wn.apply(this,arguments);return Math.sqrt(t)}function ce(){const t=jn.apply(this,arguments);let n=Math.sqrt(t);return isNaN(n)&&(n=E),n}function se(t,n){if(t=N(g(t)),n=N(g(n)),h(t,n))return c;const r=M.mean(n),e=M.mean(t),u=n.length;let f=0,i=0,s=0;for(let l=0;l<u;l++)f+=Math.pow(t[l]-e,2),i+=(n[l]-r)*(t[l]-e),s+=Math.pow(n[l]-r,2);return Math.sqrt((f-i*i/s)/(u-2))}const K={};K.DIST=(t,n,r)=>r!==1&&r!==2?E:r===1?K.DIST.RT(t,n):K.DIST["2T"](t,n),K.DIST["2T"]=function(t,n){return arguments.length!==2?A:t<0||n<1?E:typeof t!="number"||typeof n!="number"?c:(1-M.studentt.cdf(t,n))*2},K.DIST.RT=function(t,n){return arguments.length!==2?A:t<0||n<1?E:typeof t!="number"||typeof n!="number"?c:1-M.studentt.cdf(t,n)},K.INV=(t,n)=>(t=o(t),n=o(n),h(t,n)?c:M.studentt.inv(t,n)),K.INV["2T"]=(t,n)=>(t=o(t),n=o(n),t<=0||t>1||n<1?E:h(t,n)?c:Math.abs(M.studentt.inv(t/2,n))),K.TEST=(t,n)=>{if(t=N(g(t)),n=N(g(n)),h(t,n))return c;const r=M.mean(t),e=M.mean(n);let u=0,f=0,i;for(i=0;i<t.length;i++)u+=Math.pow(t[i]-r,2);for(i=0;i<n.length;i++)f+=Math.pow(n[i]-e,2);u=u/(t.length-1),f=f/(n.length-1);const s=Math.abs(r-e)/Math.sqrt(u/t.length+f/n.length);return K.DIST["2T"](s,t.length+n.length-2)};function le(t,n,r){if(t=N(g(t)),n=N(g(n)),r=N(g(r)),h(t,n,r))return c;const e=nn(t,n),u=e[0],f=e[1],i=[];return r.forEach(s=>{i.push(u*s+f)}),i}function Ee(t,n){if(t=N(g(t)),n=o(n),h(t,n))return c;const r=ft(t.length*n,2)/2;return M.mean(mn(V(t.sort((e,u)=>e-u),r),r))}const Y={};Y.P=function(){const t=Et(g(arguments)),n=t.length;let r=0;const e=rt(t);let u;for(let f=0;f<n;f++)r+=Math.pow(t[f]-e,2);return u=r/n,isNaN(u)&&(u=E),u},Y.S=function(){const t=Et(g(arguments)),n=t.length;let r=0;const e=rt(t);for(let u=0;u<n;u++)r+=Math.pow(t[u]-e,2);return r/(n-1)};function Wn(){const t=g(arguments),n=t.length;let r=0,e=0;const u=vt(t);for(let f=0;f<n;f++){const i=t[f];typeof i=="number"?r+=Math.pow(i-u,2):i===!0?r+=Math.pow(1-u,2):r+=Math.pow(0-u,2),i!==null&&e++}return r/(e-1)}function jn(){const t=g(arguments),n=t.length;let r=0,e=0;const u=vt(t);let f;for(let i=0;i<n;i++){const s=t[i];typeof s=="number"?r+=Math.pow(s-u,2):s===!0?r+=Math.pow(1-u,2):r+=Math.pow(0-u,2),s!==null&&e++}return f=r/e,isNaN(f)&&(f=E),f}const fn={};fn.DIST=(t,n,r,e)=>(t=o(t),n=o(n),r=o(r),h(t,n,r)?c:e?1-Math.exp(-Math.pow(t/r,n)):Math.pow(t,n-1)*Math.exp(-Math.pow(t/r,n))*n/Math.pow(r,n));const on={};on.TEST=(t,n,r)=>{if(t=N(g(t)),n=o(n),h(t,n))return c;r=r||X.S(t);const e=t.length;return 1-J.S.DIST((rt(t)-n)/(r/Math.sqrt(e)),!0)};function he(t){return t=o(t),t instanceof Error?t:Math.abs(t)}function Ie(t){if(t=o(t),t instanceof Error)return t;let n=Math.acos(t);return isNaN(n)&&(n=E),n}function ge(t){if(t=o(t),t instanceof Error)return t;let n=Math.log(t+Math.sqrt(t*t-1));return isNaN(n)&&(n=E),n}function Me(t){return t=o(t),t instanceof Error?t:Math.atan(1/t)}function Ne(t){if(t=o(t),t instanceof Error)return t;let n=.5*Math.log((t+1)/(t-1));return isNaN(n)&&(n=E),n}function Te(t,n,r,e){if(t=o(t),n=o(t),h(t,n))return c;switch(t){case 1:return rt(r);case 2:return At(r);case 3:return Dt(r);case 4:return Bt(r);case 5:return Yt(r);case 6:return pt(r);case 7:return X.S(r);case 8:return X.P(r);case 9:return m(r);case 10:return Y.S(r);case 11:return Y.P(r);case 12:return Yn(r);case 13:return et.SNGL(r);case 14:return Bn(r,e);case 15:return pn(r,e);case 16:return j.INC(r,e);case 17:return ut.INC(r,e);case 18:return j.EXC(r,e);case 19:return ut.EXC(r,e)}}function Se(t){if(t==null)return 0;if(t instanceof Error)return t;if(!/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(t))return c;let n=0;return t.replace(/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g,r=>{n+={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1}[r]}),n}function Ae(t){if(t=o(t),t instanceof Error)return t;let n=Math.asin(t);return isNaN(n)&&(n=E),n}function De(t){return t=o(t),t instanceof Error?t:Math.log(t+Math.sqrt(t*t+1))}function Re(t){return t=o(t),t instanceof Error?t:Math.atan(t)}function Ce(t,n){t=o(t),n=o(n);const r=O(t,n);return r||Math.atan2(t,n)}function Oe(t){if(t=o(t),t instanceof Error)return t;let n=Math.log((1+t)/(1-t))/2;return isNaN(n)&&(n=E),n}function Le(t,n,r){t=o(t),n=o(n),r=o(r);const e=O(t,n,r);if(e)return e;if(n===0)return E;const u=t.toString(n);return new Array(Math.max(r+1-u.length,0)).join("0")+u}function x(t,n,r){t=o(t),n=o(n),r=o(r);const e=O(t,n,r);if(e)return e;if(n===0)return 0;n=Math.abs(n);const u=-Math.floor(Math.log(n)/Math.log(10));return t>=0?d(Math.ceil(t/n)*n,u):r===0?-d(Math.floor(Math.abs(t)/n)*n,u):-d(Math.ceil(Math.abs(t)/n)*n,u)}x.MATH=x,x.PRECISE=x;function Nt(t,n){t=o(t),n=o(n);const r=O(t,n);return r||(t<n?E:v(t)/(v(n)*v(t-n)))}function Pe(t,n){t=o(t),n=o(n);const r=O(t,n);return r||(t<n?E:t===0&&n===0?1:Nt(t+n-1,t-1))}function Ue(t){return t=o(t),t instanceof Error?t:Math.cos(t)}function ae(t){return t=o(t),t instanceof Error?t:(Math.exp(t)+Math.exp(-t))/2}function Ve(t){return t=o(t),t instanceof Error?t:t===0?H:1/Math.tan(t)}function Fe(t){if(t=o(t),t instanceof Error)return t;if(t===0)return H;const n=Math.exp(2*t);return(n+1)/(n-1)}function we(t){return t=o(t),t instanceof Error?t:t===0?H:1/Math.sin(t)}function He(t){return t=o(t),t instanceof Error?t:t===0?H:2/(Math.exp(t)-Math.exp(-t))}function Ge(t,n){if(arguments.length<1)return c;t=o(t),n=o(n);const r=O(t,n);return r||(n===0?E:parseInt(t,n))}function Be(t){return t=o(t),t instanceof Error?t:t*180/Math.PI}function Ye(t){return t=o(t),t instanceof Error?t:x(t,-2,-1)}function Xe(t){return arguments.length<1?A:arguments.length>1?Jt:(t=o(t),t instanceof Error||(t=Math.exp(t)),t)}const Xt=[];function v(t){if(t=o(t),t instanceof Error)return t;const n=Math.floor(t);return n===0||n===1?1:(Xt[n]>0||(Xt[n]=v(n-1)*n),Xt[n])}function Kn(t){if(t=o(t),t instanceof Error)return t;const n=Math.floor(t);return n<=0?1:n*Kn(n-2)}function ft(t,n){t=o(t),n=o(n);const r=O(t,n);if(r)return r;if(n===0)return 0;if(!(t>=0&&n>0)&&!(t<=0&&n<0))return E;n=Math.abs(n);const e=-Math.floor(Math.log(n)/Math.log(10));return t>=0?d(Math.floor(t/n)*n,e):-d(Math.ceil(Math.abs(t)/n),e)}ft.MATH=(t,n,r)=>{if(n instanceof Error)return n;n=n===void 0?0:n,t=o(t),n=o(n),r=o(r);const e=O(t,n,r);if(e)return e;if(n===0)return 0;n=n?Math.abs(n):1;const u=-Math.floor(Math.log(n)/Math.log(10));return t>=0?d(Math.floor(t/n)*n,u):r===0||r===void 0?-d(Math.ceil(Math.abs(t)/n)*n,u):-d(Math.floor(Math.abs(t)/n)*n,u)},ft.PRECISE=ft.MATH;function pe(){const t=N(g(arguments));if(t instanceof Error)return t;const n=t.length,r=t[0];let e=r<0?-r:r;for(let u=1;u<n;u++){const f=t[u];let i=f<0?-f:f;for(;e&&i;)e>i?e%=i:i%=e;e+=i}return e}function We(t){return t=o(t),t instanceof Error?t:Math.floor(t)}const je={CEILING:x};function Ke(){const t=N(g(arguments));if(t instanceof Error)return t;for(var n,r,e,u,f=1;(e=t.pop())!==void 0;){if(e===0)return 0;for(;e>1;){if(e%2){for(n=3,r=Math.floor(Math.sqrt(e));n<=r&&e%n;n+=2);u=n<=r?n:e}else u=2;for(e/=u,f*=u,n=t.length;n;t[--n]%u===0&&(t[n]/=u)===1&&t.splice(n,1));}}return f}function qe(t){return t=o(t),t instanceof Error?t:t===0?E:Math.log(t)}function Qe(t,n){t=o(t),n=o(n);const r=O(t,n);return r||(t===0||n===0?E:Math.log(t)/Math.log(n))}function $e(t){return t=o(t),t instanceof Error?t:t===0?E:Math.log(t)/Math.log(10)}function Ze(t,n){return!Array.isArray(t)||!Array.isArray(n)||t.some(e=>!e.length)||n.some(e=>!e.length)||dt(t).some(e=>typeof e!="number")||dt(n).some(e=>typeof e!="number")||t[0].length!==n.length?c:Array(t.length).fill(0).map(()=>Array(n[0].length).fill(0)).map((e,u)=>e.map((f,i)=>t[u].reduce((s,l,I)=>s+l*n[I][i],0)))}function ze(t,n){t=o(t),n=o(n);const r=O(t,n);if(r)return r;if(n===0)return H;let e=Math.abs(t%n);return e=t<0?n-e:e,n>0?e:-e}function Je(t,n){t=o(t),n=o(n);const r=O(t,n);return r||(t*n===0?0:t*n<0?E:Math.round(t/n)*n)}function ke(){const t=N(g(arguments));if(t instanceof Error)return t;let n=0,r=1;for(let e=0;e<t.length;e++)n+=t[e],r*=v(t[e]);return v(n)/r}function de(t){return arguments.length>1?A:(t=parseInt(t),!t||t<=0?c:Array(t).fill(0).map(()=>Array(t).fill(0)).map((n,r)=>(n[r]=1,n)))}function ye(t){if(t=o(t),t instanceof Error)return t;let n=Math.ceil(Math.abs(t));return n=n&1?n:n+1,t>=0?n:-n}function xe(){return Math.PI}function qn(t,n){t=o(t),n=o(n);const r=O(t,n);if(r)return r;if(t===0&&n===0)return E;const e=Math.pow(t,n);return isNaN(e)?E:e}function pt(){const n=g(arguments).filter(u=>u!=null);if(n.length===0)return 0;const r=N(n);if(r instanceof Error)return r;let e=1;for(let u=0;u<r.length;u++)e*=r[u];return e}function ve(t,n){t=o(t),n=o(n);const r=O(t,n);return r||parseInt(t/n,10)}function me(t){return t=o(t),t instanceof Error?t:t*Math.PI/180}function be(){return Math.random()}function _e(t,n){t=o(t),n=o(n);const r=O(t,n);return r||t+Math.ceil((n-t+1)*Math.random())-1}function tu(t){if(t=o(t),t instanceof Error)return t;const n=String(t).split(""),r=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];let e="",u=3;for(;u--;)e=(r[+n.pop()+u*10]||"")+e;return new Array(+n.join("")+1).join("M")+e}function d(t,n){t=o(t),n=o(n);const r=O(t,n);return r||+(Math.round(+(t+"e"+n))+"e"+n*-1)}function nu(t,n){t=o(t),n=o(n);const r=O(t,n);return r||(t>0?1:-1)*Math.floor(Math.abs(t)*Math.pow(10,n))/Math.pow(10,n)}function ru(t,n){t=o(t),n=o(n);const r=O(t,n);return r||(t>0?1:-1)*Math.ceil(Math.abs(t)*Math.pow(10,n))/Math.pow(10,n)}function eu(t){return t=o(t),t instanceof Error?t:1/Math.cos(t)}function uu(t){return t=o(t),t instanceof Error?t:2/(Math.exp(t)+Math.exp(-t))}function fu(t,n,r,e){if(t=o(t),n=o(n),r=o(r),e=N(e),h(t,n,r,e))return c;let u=e[0]*Math.pow(t,n);for(let f=1;f<e.length;f++)u+=e[f]*Math.pow(t,n+f*r);return u}function ou(t){return t=o(t),t instanceof Error?t:t<0?-1:t===0?0:1}function iu(t){return t=o(t),t instanceof Error?t:Math.sin(t)}function cu(t){return t=o(t),t instanceof Error?t:(Math.exp(t)-Math.exp(-t))/2}function su(t){return t=o(t),t instanceof Error?t:t<0?E:Math.sqrt(t)}function lu(t){return t=o(t),t instanceof Error?t:Math.sqrt(t*Math.PI)}function Eu(t,n){if(t=o(t),t instanceof Error)return t;switch(t){case 1:return rt(n);case 2:return At(n);case 3:return Dt(n);case 4:return Bt(n);case 5:return Yt(n);case 6:return pt(n);case 7:return X.S(n);case 8:return X.P(n);case 9:return m(n);case 10:return Y.S(n);case 11:return Y.P(n);case 101:return rt(n);case 102:return At(n);case 103:return Dt(n);case 104:return Bt(n);case 105:return Yt(n);case 106:return pt(n);case 107:return X.S(n);case 108:return X.P(n);case 109:return m(n);case 110:return Y.S(n);case 111:return Y.P(n)}}function m(){let t=0;return G(Tt(arguments),n=>{if(t instanceof Error)return!1;if(n instanceof Error)t=n;else if(typeof n=="number")t+=n;else if(typeof n=="string"){const r=parseFloat(n);!isNaN(r)&&(t+=r)}else if(Array.isArray(n)){const r=m.apply(null,n);r instanceof Error?t=r:t+=r}}),t}function hu(t,n,r){if(t=g(t),r=r?g(r):t,t instanceof Error)return t;if(n==null||n instanceof Error)return 0;let e=0;const u=n==="*",f=u?null:tt(n+"");for(let i=0;i<t.length;i++){const s=t[i],l=r[i];if(u)e+=s;else{const I=[k(s,y)].concat(f);e+=nt(I)?l:0}}return e}function Iu(){const t=Tt(arguments),n=N(g(t.shift()));if(n instanceof Error)return n;const r=t,e=r.length/2;for(let f=0;f<e;f++)r[f*2]=g(r[f*2]);let u=0;for(let f=0;f<n.length;f++){let i=!1;for(let s=0;s<e;s++){const l=r[s*2][f],I=r[s*2+1],T=I===void 0||I==="*";let D=!1;if(T)D=!0;else{const R=tt(I+""),S=[k(l,y)].concat(R);D=nt(S)}if(!D){i=!1;break}i=!0}i&&(u+=n[f])}return u}function gu(){if(!arguments||arguments.length===0)return c;const t=arguments.length+1;let n=0,r,e,u,f;for(let i=0;i<arguments[0].length;i++)if(arguments[0][i]instanceof Array)for(let s=0;s<arguments[0][i].length;s++){for(r=1,e=1;e<t;e++){const l=arguments[e-1][i][s];if(l instanceof Error)return l;if(f=o(l),f instanceof Error)return f;r*=f}n+=r}else{for(r=1,e=1;e<t;e++){const s=arguments[e-1][i];if(s instanceof Error)return s;if(u=o(s),u instanceof Error)return u;r*=u}n+=r}return n}function Mu(){const t=N(g(arguments));if(t instanceof Error)return t;let n=0;const r=t.length;for(let e=0;e<r;e++)n+=Gt(t[e])?t[e]*t[e]:0;return n}function Nu(t,n){if(t=N(g(t)),n=N(g(n)),h(t,n))return c;let r=0;for(let e=0;e<t.length;e++)r+=t[e]*t[e]-n[e]*n[e];return r}function Tu(t,n){if(t=N(g(t)),n=N(g(n)),h(t,n))return c;let r=0;t=N(g(t)),n=N(g(n));for(let e=0;e<t.length;e++)r+=t[e]*t[e]+n[e]*n[e];return r}function Su(t,n){if(t=N(g(t)),n=N(g(n)),h(t,n))return c;let r=0;t=g(t),n=g(n);for(let e=0;e<t.length;e++)r+=Math.pow(t[e]-n[e],2);return r}function Au(t){return t=o(t),t instanceof Error?t:Math.tan(t)}function Du(t){if(t=o(t),t instanceof Error)return t;const n=Math.exp(2*t);return(n-1)/(n+1)}function Ru(t,n){t=o(t),n=o(n);const r=O(t,n);return r||(t>0?1:-1)*Math.floor(Math.abs(t)*Math.pow(10,n))/Math.pow(10,n)}function Cu(t,n){if(arguments.length!==2)return A;t=o(t),n=o(n);const r=O(t,n);return r||t+n}function Ou(t,n){if(arguments.length!==2)return A;t=o(t),n=o(n);const r=O(t,n);return r||(n===0?H:t/n)}function Lu(t,n){return arguments.length!==2?A:t instanceof Error?t:n instanceof Error?n:(t===null&&(t=void 0),n===null&&(n=void 0),t===n)}function Pu(t,n){if(arguments.length!==2)return A;if(t instanceof Error)return t;if(n instanceof Error)return n;Ft(t,n)?(t=F(t),n=F(n)):(t=o(t),n=o(n));const r=O(t,n);return r||t>n}function Uu(t,n){if(arguments.length!==2)return A;Ft(t,n)?(t=F(t),n=F(n)):(t=o(t),n=o(n));const r=O(t,n);return r||t>=n}function au(t,n){if(arguments.length!==2)return A;Ft(t,n)?(t=F(t),n=F(n)):(t=o(t),n=o(n));const r=O(t,n);return r||t<n}function Vu(t,n){if(arguments.length!==2)return A;Ft(t,n)?(t=F(t),n=F(n)):(t=o(t),n=o(n));const r=O(t,n);return r||t<=n}function Fu(t,n){if(arguments.length!==2)return A;t=o(t),n=o(n);const r=O(t,n);return r||t-n}function wu(t,n){if(arguments.length!==2)return A;t=o(t),n=o(n);const r=O(t,n);return r||t*n}function Hu(t,n){return arguments.length!==2?A:t instanceof Error?t:n instanceof Error?n:(t===null&&(t=void 0),n===null&&(n=void 0),t!==n)}function Gu(t,n){return arguments.length!==2?A:qn(t,n)}var Bu=Object.freeze({__proto__:null,ADD:Cu,DIVIDE:Ou,EQ:Lu,GT:Pu,GTE:Uu,LT:au,LTE:Vu,MINUS:Fu,MULTIPLY:wu,NE:Hu,POW:Gu});const Yu=new Date(Date.UTC(1900,0,1)),Xu=[void 0,0,1,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,1,2,3,4,5,6,0],pu=[[],[1,2,3,4,5,6,7],[7,1,2,3,4,5,6],[6,0,1,2,3,4,5],[],[],[],[],[],[],[],[7,1,2,3,4,5,6],[6,7,1,2,3,4,5],[5,6,7,1,2,3,4],[4,5,6,7,1,2,3],[3,4,5,6,7,1,2],[2,3,4,5,6,7,1],[1,2,3,4,5,6,7]],Wt=[[],[6,0],[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],void 0,void 0,void 0,[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6]];function Wu(t,n,r){let e;return t=o(t),n=o(n),r=o(r),h(t,n,r)?e=c:(e=new Date(t,n-1,r),e.getFullYear()<0&&(e=E)),e}function ot(t,n,r){r=r.toUpperCase(),t=L(t),n=L(n);const e=t.getFullYear(),u=t.getMonth(),f=t.getDate(),i=n.getFullYear(),s=n.getMonth(),l=n.getDate();let I;switch(r){case"Y":I=Math.floor(sn(t,n));break;case"D":I=it(n,t);break;case"M":I=s-u+12*(i-e),l<f&&I--;break;case"MD":f<=l?I=l-f:(s===0?(t.setFullYear(i-1),t.setMonth(12)):(t.setFullYear(i),t.setMonth(s-1)),I=it(n,t));break;case"YM":I=s-u+12*(i-e),l<f&&I--,I=I%12;break;case"YD":s>u||s===u&&l<f?t.setFullYear(i):t.setFullYear(i-1),I=it(n,t);break}return I}function ju(t){if(typeof t!="string")return c;const n=Date.parse(t);return isNaN(n)?c:new Date(t)}function Ku(t){const n=L(t);return n instanceof Error?n:n.getDate()}function jt(t){const n=new Date(t);return n.setHours(0,0,0,0),n}function it(t,n){return t=L(t),n=L(n),t instanceof Error?t:n instanceof Error?n:$n(jt(t))-$n(jt(n))}function b(t,n,r){if(r=yt(r||"false"),t=L(t),n=L(n),t instanceof Error)return t;if(n instanceof Error)return n;if(r instanceof Error)return r;const e=t.getMonth();let u=n.getMonth(),f,i;if(r)f=t.getDate()===31?30:t.getDate(),i=n.getDate()===31?30:n.getDate();else{const s=new Date(t.getFullYear(),e+1,0).getDate(),l=new Date(n.getFullYear(),u+1,0).getDate();f=t.getDate()===s?30:t.getDate(),n.getDate()===l?f<30?(u++,i=1):i=30:i=n.getDate()}return 360*(n.getFullYear()-t.getFullYear())+30*(u-e)+(i-f)}function qu(t,n){return t=L(t),t instanceof Error?t:isNaN(n)?c:(n=parseInt(n,10),t.setMonth(t.getMonth()+n),t)}function Qu(t,n){return t=L(t),t instanceof Error?t:isNaN(n)?c:(n=parseInt(n,10),new Date(t.getFullYear(),t.getMonth()+n+1,0))}function $u(t){return t=L(t),t instanceof Error?t:t.getHours()}function Qn(t){if(t=L(t),t instanceof Error)return t;t=jt(t),t.setDate(t.getDate()+4-(t.getDay()||7));const n=new Date(t.getFullYear(),0,1);return Math.ceil(((t-n)/864e5+1)/7)}function Zu(t){return t=L(t),t instanceof Error?t:t.getMinutes()}function zu(t){return t=L(t),t instanceof Error?t:t.getMonth()+1}function Kt(t,n,r){return Kt.INTL(t,n,1,r)}Kt.INTL=(t,n,r,e)=>{if(t=L(t),t instanceof Error)return t;if(n=L(n),n instanceof Error)return n;let u=!1;const f=[],i=[1,2,3,4,5,6,0],s=new RegExp("^[0|1]{7}$");if(r===void 0)r=Wt[1];else if(typeof r=="string"&&s.test(r)){u=!0,r=r.split("");for(let D=0;D<r.length;D++)r[D]==="1"&&f.push(i[D])}else r=Wt[r];if(!(r instanceof Array))return c;e===void 0?e=[]:e instanceof Array||(e=[e]);for(let D=0;D<e.length;D++){const R=L(e[D]);if(R instanceof Error)return R;e[D]=R}const l=Math.round((n-t)/(1e3*60*60*24))+1;let I=l;const T=t;for(let D=0;D<l;D++){const R=new Date().getTimezoneOffset()>0?T.getUTCDay():T.getDay();let S=u?f.includes(R):R===r[0]||R===r[1];for(let C=0;C<e.length;C++){const P=e[C];if(P.getDate()===T.getDate()&&P.getMonth()===T.getMonth()&&P.getFullYear()===T.getFullYear()){S=!0;break}}S&&I--,T.setDate(T.getDate()+1)}return I};function Ju(){return new Date}function ku(t){return t=L(t),t instanceof Error?t:t.getSeconds()}function du(t,n,r){return t=o(t),n=o(n),r=o(r),h(t,n,r)?c:t<0||n<0||r<0?E:(3600*t+60*n+r)/86400}function yu(t){return t=L(t),t instanceof Error?t:(3600*t.getHours()+60*t.getMinutes()+t.getSeconds())/86400}function xu(){return jt(new Date)}function vu(t,n){if(t=L(t),t instanceof Error)return t;n===void 0&&(n=1);const r=t.getDay();return pu[n][r]}function mu(t,n){if(t=L(t),t instanceof Error)return t;if(n===void 0&&(n=1),n===21)return Qn(t);const r=Xu[n];let e=new Date(t.getFullYear(),0,1);const u=e.getDay()<r?1:0;return e-=Math.abs(e.getDay()-r)*24*60*60*1e3,Math.floor((t-e)/(1e3*60*60*24)/7+1)+u}function qt(t,n,r){return qt.INTL(t,n,1,r)}qt.INTL=(t,n,r,e)=>{if(t=L(t),t instanceof Error)return t;if(n=o(n),n instanceof Error)return n;if(n<0)return E;if(r===void 0?r=Wt[1]:r=Wt[r],!(r instanceof Array))return c;e===void 0?e=[]:e instanceof Array||(e=[e]);for(let f=0;f<e.length;f++){const i=L(e[f]);if(i instanceof Error)return i;e[f]=i}let u=0;for(;u<n;){t.setDate(t.getDate()+1);const f=t.getDay();if(!(f===r[0]||f===r[1])){for(let i=0;i<e.length;i++){const s=e[i];if(s.getDate()===t.getDate()&&s.getMonth()===t.getMonth()&&s.getFullYear()===t.getFullYear()){u--;break}}u++}}return t};function bu(t){return t=L(t),t instanceof Error?t:t.getFullYear()}function cn(t){return new Date(t,1,29).getMonth()===1}function Qt(t,n){return Math.ceil((n-t)/1e3/60/60/24)}function sn(t,n,r){if(t=L(t),t instanceof Error)return t;if(n=L(n),n instanceof Error)return n;r=r||0;let e=t.getDate();const u=t.getMonth()+1,f=t.getFullYear();let i=n.getDate();const s=n.getMonth()+1,l=n.getFullYear();switch(r){case 0:return e===31&&i===31?(e=30,i=30):e===31?e=30:e===30&&i===31&&(i=30),(i+s*30+l*360-(e+u*30+f*360))/360;case 1:{const I=(C,P)=>{const p=C.getFullYear(),W=new Date(p,2,1);if(cn(p)&&C<W&&P>=W)return!0;const w=P.getFullYear(),_=new Date(w,2,1);return cn(w)&&P>=_&&C<_};let T=365;if(f===l||f+1===l&&(u>s||u===s&&e>=i))return(f===l&&cn(f)||I(t,n)||s===1&&i===29)&&(T=366),Qt(t,n)/T;const D=l-f+1,S=(new Date(l+1,0,1)-new Date(f,0,1))/1e3/60/60/24/D;return Qt(t,n)/S}case 2:return Qt(t,n)/360;case 3:return Qt(t,n)/365;case 4:return(i+s*30+l*360-(e+u*30+f*360))/360}}function $n(t){const n=t>-22038912e5?2:1;return Math.ceil((t-Yu)/864e5)+n}function _u(){throw new Error("ASC is not implemented")}function tf(){throw new Error("BAHTTEXT is not implemented")}function Zn(t){return t=o(t),t===0?c:t instanceof Error?t:String.fromCharCode(t)}function nf(t){if(h(t))return t;t=t||"";const n=/[\0-\x1F]/g;return t.replace(n,"")}function zn(t){if(h(t))return t;t=t||"";let n=t.charCodeAt(0);return isNaN(n)&&(n=c),n}function Jn(){const t=g(arguments),n=O.apply(void 0,t);if(n)return n;let r=0;for(;(r=t.indexOf(!0))>-1;)t[r]="TRUE";let e=0;for(;(e=t.indexOf(!1))>-1;)t[e]="FALSE";return t.join("")}const rf=Jn;function ef(){throw new Error("DBCS is not implemented")}function uf(t,n=2){if(t=o(t),isNaN(t))return c;t=d(t,n);const r={style:"currency",currency:"USD",minimumFractionDigits:n>=0?n:0,maximumFractionDigits:n>=0?n:0},e=t.toLocaleString("en-US",r);return t<0?"$("+e.slice(2)+")":e}function ff(t,n){if(arguments.length!==2)return A;const r=O(t,n);return r||(t=F(t),n=F(n),t===n)}function of(t,n,r){if(arguments.length<2)return A;t=F(t),n=F(n),r=r===void 0?0:r;const e=n.indexOf(t,r-1);return e===-1?c:e+1}function kn(t,n=2,r=!1){if(t=o(t),isNaN(t)||(n=o(n),isNaN(n)))return c;if(n<0){const e=Math.pow(10,-n);t=Math.round(t/e)*e}else t=t.toFixed(n);if(r)t=t.toString().replace(/,/g,"");else{const e=t.toString().split(".");e[0]=e[0].replace(/\B(?=(\d{3})+$)/g,","),t=e.join(".")}return t}function cf(t,n){const r=O(t,n);return r||(t=F(t),n=n===void 0?1:n,n=o(n),n instanceof Error||typeof t!="string"?c:t.substring(0,n))}function sf(t){return arguments.length===0?Jt:t instanceof Error?t:Array.isArray(t)?c:F(t).length}function lf(t){return arguments.length!==1?c:(t=F(t),h(t)?t:t.toLowerCase())}function Ef(t,n,r){if(n==null)return c;if(n=o(n),r=o(r),h(n,r)||typeof t!="string")return r;const e=n-1,u=e+r;return t.substring(e,u)}function hf(t,n,r){return t=ht(t)?t:"",typeof t=="number"?t:typeof t!="string"?A:(n=typeof n>"u"?".":n,r=typeof r>"u"?",":r,Number(t.replace(n,".").replace(r,"")))}function If(){throw new Error("PRONETIC is not implemented")}function gf(t){return h(t)?t:isNaN(t)&&typeof t=="number"?c:(t=F(t),t.replace(/\w\S*/g,n=>n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()))}function Mf(t,n,r,e){return n=o(n),r=o(r),h(n,r)||typeof t!="string"||typeof e!="string"?c:t.substr(0,n-1)+e+t.substr(n-1+r)}function q(t,n){const r=O(t,n);return r||(t=F(t),n=o(n),n instanceof Error?n:new Array(n+1).join(t))}function Nf(t,n){const r=O(t,n);return r||(t=F(t),n=n===void 0?1:n,n=o(n),n instanceof Error?n:t.substring(t.length-n))}function Tf(t,n,r){let e;return typeof t!="string"||typeof n!="string"?c:(r=r===void 0?0:r,e=n.toLowerCase().indexOf(t.toLowerCase(),r-1)+1,e===0?c:e)}function Sf(t,n,r,e){if(arguments.length<3)return A;if(!t||!n)return t;if(e===void 0)return t.split(n).join(r);{if(e=Math.floor(Number(e)),Number.isNaN(e)||e<=0)return c;let u=0,f=0;for(;u>-1&&t.indexOf(n,u)>-1;)if(u=t.indexOf(n,u+1),f++,u>-1&&f===e)return t.substring(0,u)+r+t.substring(u+n.length);return t}}function Af(t){return t instanceof Error||typeof t=="string"?t:""}function Df(t,n){if(t===void 0||t instanceof Error||n instanceof Error)return A;if(n==null)return"";if(typeof n=="number")return String(n);if(typeof n!="string")return c;const r=n.startsWith("$")?"$":"",e=n.endsWith("%");n=n.replace(/%/g,"").replace(/\$/g,"");const u=n.split(".")[1].match(/0/g).length,f=!n.includes(",");return e&&(t=t*100),t=kn(t,u,f),t.startsWith("-")?(t=t.replace("-",""),t="-"+r+t):t=r+t,e&&(t=t+"%"),t}function Rf(t,n,...r){if(typeof n!="boolean"&&(n=yt(n)),arguments.length<3)return A;t=t??"";let e=g(r),u=n?e.filter(f=>f):e;if(Array.isArray(t)){t=g(t);let f=u.map(s=>[s]),i=0;for(let s=0;s<f.length-1;s++)f[s].push(t[i]),i++,i===t.length&&(i=0);return u=g(f),u.join("")}return u.join(t)}function Cf(t){return t=F(t),t instanceof Error?t:t.replace(/\s+/g," ").trim()}const Of=Zn,Lf=zn;function Pf(t){return t=F(t),t instanceof Error?t:t.toUpperCase()}function Uf(t){const n=O(t);if(n)return n;if(typeof t=="number")return t;if(ht(t)||(t=""),typeof t!="string")return c;const r=/(%)$/.test(t)||/^(%)/.test(t);if(t=t.replace(/^[^0-9-]{0,3}/,""),t=t.replace(/[^0-9]{0,3}$/,""),t=t.replace(/[ ,]/g,""),t==="")return 0;let e=Number(t);return isNaN(e)?c:(e=e||0,r&&(e=e*.01),e)}function ln(t){return/^[01]{1,10}$/.test(t)}function af(t,n){return t=o(t),n=o(n),h(t,n)?c:Ut.besseli(t,n)}function Vf(t,n){return t=o(t),n=o(n),h(t,n)?c:Ut.besselj(t,n)}function Ff(t,n){return t=o(t),n=o(n),h(t,n)?c:Ut.besselk(t,n)}function wf(t,n){return t=o(t),n=o(n),h(t,n)?c:Ut.bessely(t,n)}function Hf(t){if(!ln(t))return E;const n=parseInt(t,2),r=t.toString();return r.length===10&&r.substring(0,1)==="1"?parseInt(r.substring(1),2)-512:n}function Gf(t,n){if(!ln(t))return E;const r=t.toString();if(r.length===10&&r.substring(0,1)==="1")return(0xfffffffe00+parseInt(r.substring(1),2)).toString(16);const e=parseInt(t,2).toString(16);return n===void 0?e:isNaN(n)?c:n<0?E:(n=Math.floor(n),n>=e.length?q("0",n-e.length)+e:E)}function Bf(t,n){if(!ln(t))return E;const r=t.toString();if(r.length===10&&r.substring(0,1)==="1")return(1073741312+parseInt(r.substring(1),2)).toString(8);const e=parseInt(t,2).toString(8);return n===void 0?e:isNaN(n)?c:n<0?E:(n=Math.floor(n),n>=e.length?q("0",n-e.length)+e:E)}function Yf(t,n){return t=o(t),n=o(n),h(t,n)?c:t<0||n<0||Math.floor(t)!==t||Math.floor(n)!==n||t>0xffffffffffff||n>0xffffffffffff?E:t&n}function Xf(t,n){return t=o(t),n=o(n),h(t,n)?c:t<0||Math.floor(t)!==t||t>0xffffffffffff||Math.abs(n)>53?E:n>=0?t<<n:t>>-n}function pf(t,n){return t=o(t),n=o(n),h(t,n)?c:t<0||n<0||Math.floor(t)!==t||Math.floor(n)!==n||t>0xffffffffffff||n>0xffffffffffff?E:t|n}function Wf(t,n){return t=o(t),n=o(n),h(t,n)?c:t<0||Math.floor(t)!==t||t>0xffffffffffff||Math.abs(n)>53?E:n>=0?t>>n:t<<-n}function jf(t,n){return t=o(t),n=o(n),h(t,n)?c:t<0||n<0||Math.floor(t)!==t||Math.floor(n)!==n||t>0xffffffffffff||n>0xffffffffffff?E:t^n}function B(t,n,r){if(t=o(t),n=o(n),h(t,n))return t;if(r=r===void 0?"i":r,r!=="i"&&r!=="j")return c;if(t===0&&n===0)return 0;if(t===0)return n===1?r:n.toString()+r;if(n===0)return t.toString();{const e=n>0?"+":"";return t.toString()+e+(n===1?r:n.toString()+r)}}function Kf(t,n,r){if(t=o(t),t instanceof Error)return t;const e=[["a.u. of action","?",null,"action",!1,!1,105457168181818e-48],["a.u. of charge","e",null,"electric_charge",!1,!1,160217653141414e-33],["a.u. of energy","Eh",null,"energy",!1,!1,435974417757576e-32],["a.u. of length","a?",null,"length",!1,!1,529177210818182e-25],["a.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["a.u. of time","?/Eh",null,"time",!1,!1,241888432650516e-31],["admiralty knot","admkn",null,"speed",!1,!0,.514773333],["ampere","A",null,"electric_current",!0,!1,1],["ampere per meter","A/m",null,"magnetic_field_intensity",!0,!1,1],["\xE5ngstr\xF6m","\xC5",["ang"],"length",!1,!0,1e-10],["are","ar",null,"area",!1,!0,100],["astronomical unit","ua",null,"length",!1,!1,149597870691667e-25],["bar","bar",null,"pressure",!1,!1,1e5],["barn","b",null,"area",!1,!1,1e-28],["becquerel","Bq",null,"radioactivity",!0,!1,1],["bit","bit",["b"],"information",!1,!0,1],["btu","BTU",["btu"],"energy",!1,!0,1055.05585262],["byte","byte",null,"information",!1,!0,8],["candela","cd",null,"luminous_intensity",!0,!1,1],["candela per square metre","cd/m?",null,"luminance",!0,!1,1],["coulomb","C",null,"electric_charge",!0,!1,1],["cubic \xE5ngstr\xF6m","ang3",["ang^3"],"volume",!1,!0,1e-30],["cubic foot","ft3",["ft^3"],"volume",!1,!0,.028316846592],["cubic inch","in3",["in^3"],"volume",!1,!0,16387064e-12],["cubic light-year","ly3",["ly^3"],"volume",!1,!0,846786664623715e-61],["cubic metre","m?",null,"volume",!0,!0,1],["cubic mile","mi3",["mi^3"],"volume",!1,!0,416818182544058e-5],["cubic nautical mile","Nmi3",["Nmi^3"],"volume",!1,!0,6352182208],["cubic Pica","Pica3",["Picapt3","Pica^3","Picapt^3"],"volume",!1,!0,758660370370369e-22],["cubic yard","yd3",["yd^3"],"volume",!1,!0,.764554857984],["cup","cup",null,"volume",!1,!0,.0002365882365],["dalton","Da",["u"],"mass",!1,!1,166053886282828e-41],["day","d",["day"],"time",!1,!0,86400],["degree","\xB0",null,"angle",!1,!1,.0174532925199433],["degrees Rankine","Rank",null,"temperature",!1,!0,.555555555555556],["dyne","dyn",["dy"],"force",!1,!0,1e-5],["electronvolt","eV",["ev"],"energy",!1,!0,1.60217656514141],["ell","ell",null,"length",!1,!0,1.143],["erg","erg",["e"],"energy",!1,!0,1e-7],["farad","F",null,"electric_capacitance",!0,!1,1],["fluid ounce","oz",null,"volume",!1,!0,295735295625e-16],["foot","ft",null,"length",!1,!0,.3048],["foot-pound","flb",null,"energy",!1,!0,1.3558179483314],["gal","Gal",null,"acceleration",!1,!1,.01],["gallon","gal",null,"volume",!1,!0,.003785411784],["gauss","G",["ga"],"magnetic_flux_density",!1,!0,1],["grain","grain",null,"mass",!1,!0,647989e-10],["gram","g",null,"mass",!1,!0,.001],["gray","Gy",null,"absorbed_dose",!0,!1,1],["gross registered ton","GRT",["regton"],"volume",!1,!0,2.8316846592],["hectare","ha",null,"area",!1,!0,1e4],["henry","H",null,"inductance",!0,!1,1],["hertz","Hz",null,"frequency",!0,!1,1],["horsepower","HP",["h"],"power",!1,!0,745.69987158227],["horsepower-hour","HPh",["hh","hph"],"energy",!1,!0,2684519538e-3],["hour","h",["hr"],"time",!1,!0,3600],["imperial gallon (U.K.)","uk_gal",null,"volume",!1,!0,.00454609],["imperial hundredweight","lcwt",["uk_cwt","hweight"],"mass",!1,!0,50.802345],["imperial quart (U.K)","uk_qt",null,"volume",!1,!0,.0011365225],["imperial ton","brton",["uk_ton","LTON"],"mass",!1,!0,1016.046909],["inch","in",null,"length",!1,!0,.0254],["international acre","uk_acre",null,"area",!1,!0,4046.8564224],["IT calorie","cal",null,"energy",!1,!0,4.1868],["joule","J",null,"energy",!0,!0,1],["katal","kat",null,"catalytic_activity",!0,!1,1],["kelvin","K",["kel"],"temperature",!0,!0,1],["kilogram","kg",null,"mass",!0,!0,1],["knot","kn",null,"speed",!1,!0,.514444444444444],["light-year","ly",null,"length",!1,!0,9460730472580800],["litre","L",["l","lt"],"volume",!1,!0,.001],["lumen","lm",null,"luminous_flux",!0,!1,1],["lux","lx",null,"illuminance",!0,!1,1],["maxwell","Mx",null,"magnetic_flux",!1,!1,1e-18],["measurement ton","MTON",null,"volume",!1,!0,1.13267386368],["meter per hour","m/h",["m/hr"],"speed",!1,!0,.00027777777777778],["meter per second","m/s",["m/sec"],"speed",!0,!0,1],["meter per second squared","m?s??",null,"acceleration",!0,!1,1],["parsec","pc",["parsec"],"length",!1,!0,0x6da012f958ee1c],["meter squared per second","m?/s",null,"kinematic_viscosity",!0,!1,1],["metre","m",null,"length",!0,!0,1],["miles per hour","mph",null,"speed",!1,!0,.44704],["millimetre of mercury","mmHg",null,"pressure",!1,!1,133.322],["minute","?",null,"angle",!1,!1,.000290888208665722],["minute","min",["mn"],"time",!1,!0,60],["modern teaspoon","tspm",null,"volume",!1,!0,5e-6],["mole","mol",null,"amount_of_substance",!0,!1,1],["morgen","Morgen",null,"area",!1,!0,2500],["n.u. of action","?",null,"action",!1,!1,105457168181818e-48],["n.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["n.u. of speed","c?",null,"speed",!1,!1,299792458],["n.u. of time","?/(me?c??)",null,"time",!1,!1,128808866778687e-35],["nautical mile","M",["Nmi"],"length",!1,!0,1852],["newton","N",null,"force",!0,!0,1],["\u0153rsted","Oe ",null,"magnetic_field_intensity",!1,!1,79.5774715459477],["ohm","\u03A9",null,"electric_resistance",!0,!1,1],["ounce mass","ozm",null,"mass",!1,!0,.028349523125],["pascal","Pa",null,"pressure",!0,!1,1],["pascal second","Pa?s",null,"dynamic_viscosity",!0,!1,1],["pferdest\xE4rke","PS",null,"power",!1,!0,735.49875],["phot","ph",null,"illuminance",!1,!1,1e-4],["pica (1/6 inch)","pica",null,"length",!1,!0,.00035277777777778],["pica (1/72 inch)","Pica",["Picapt"],"length",!1,!0,.00423333333333333],["poise","P",null,"dynamic_viscosity",!1,!1,.1],["pond","pond",null,"force",!1,!0,.00980665],["pound force","lbf",null,"force",!1,!0,4.4482216152605],["pound mass","lbm",null,"mass",!1,!0,.45359237],["quart","qt",null,"volume",!1,!0,.000946352946],["radian","rad",null,"angle",!0,!1,1],["second","?",null,"angle",!1,!1,484813681109536e-20],["second","s",["sec"],"time",!0,!0,1],["short hundredweight","cwt",["shweight"],"mass",!1,!0,45.359237],["siemens","S",null,"electrical_conductance",!0,!1,1],["sievert","Sv",null,"equivalent_dose",!0,!1,1],["slug","sg",null,"mass",!1,!0,14.59390294],["square \xE5ngstr\xF6m","ang2",["ang^2"],"area",!1,!0,1e-20],["square foot","ft2",["ft^2"],"area",!1,!0,.09290304],["square inch","in2",["in^2"],"area",!1,!0,64516e-8],["square light-year","ly2",["ly^2"],"area",!1,!0,895054210748189e17],["square meter","m?",null,"area",!0,!0,1],["square mile","mi2",["mi^2"],"area",!1,!0,2589988110336e-6],["square nautical mile","Nmi2",["Nmi^2"],"area",!1,!0,3429904],["square Pica","Pica2",["Picapt2","Pica^2","Picapt^2"],"area",!1,!0,1792111111111e-17],["square yard","yd2",["yd^2"],"area",!1,!0,.83612736],["statute mile","mi",null,"length",!1,!0,1609.344],["steradian","sr",null,"solid_angle",!0,!1,1],["stilb","sb",null,"luminance",!1,!1,1e-4],["stokes","St",null,"kinematic_viscosity",!1,!1,1e-4],["stone","stone",null,"mass",!1,!0,6.35029318],["tablespoon","tbs",null,"volume",!1,!0,147868e-10],["teaspoon","tsp",null,"volume",!1,!0,492892e-11],["tesla","T",null,"magnetic_flux_density",!0,!0,1],["thermodynamic calorie","c",null,"energy",!1,!0,4.184],["ton","ton",null,"mass",!1,!0,907.18474],["tonne","t",null,"mass",!1,!1,1e3],["U.K. pint","uk_pt",null,"volume",!1,!0,.00056826125],["U.S. bushel","bushel",null,"volume",!1,!0,.03523907],["U.S. oil barrel","barrel",null,"volume",!1,!0,.158987295],["U.S. pint","pt",["us_pt"],"volume",!1,!0,.000473176473],["U.S. survey mile","survey_mi",null,"length",!1,!0,1609.347219],["U.S. survey/statute acre","us_acre",null,"area",!1,!0,4046.87261],["volt","V",null,"voltage",!0,!1,1],["watt","W",null,"power",!0,!0,1],["watt-hour","Wh",["wh"],"energy",!1,!0,3600],["weber","Wb",null,"magnetic_flux",!0,!1,1],["yard","yd",null,"length",!1,!0,.9144],["year","yr",null,"time",!1,!0,31557600]],u={Yi:["yobi",80,12089258196146292e8,"Yi","yotta"],Zi:["zebi",70,11805916207174113e5,"Zi","zetta"],Ei:["exbi",60,1152921504606847e3,"Ei","exa"],Pi:["pebi",50,0x4000000000000,"Pi","peta"],Ti:["tebi",40,1099511627776,"Ti","tera"],Gi:["gibi",30,1073741824,"Gi","giga"],Mi:["mebi",20,1048576,"Mi","mega"],ki:["kibi",10,1024,"ki","kilo"]},f={Y:["yotta",1e24,"Y"],Z:["zetta",1e21,"Z"],E:["exa",1e18,"E"],P:["peta",1e15,"P"],T:["tera",1e12,"T"],G:["giga",1e9,"G"],M:["mega",1e6,"M"],k:["kilo",1e3,"k"],h:["hecto",100,"h"],e:["dekao",10,"e"],d:["deci",.1,"d"],c:["centi",.01,"c"],m:["milli",.001,"m"],u:["micro",1e-6,"u"],n:["nano",1e-9,"n"],p:["pico",1e-12,"p"],f:["femto",1e-15,"f"],a:["atto",1e-18,"a"],z:["zepto",1e-21,"z"],y:["yocto",1e-24,"y"]};let i=null,s=null,l=n,I=r,T=1,D=1,R;for(let S=0;S<e.length;S++)R=e[S][2]===null?[]:e[S][2],(e[S][1]===l||R.indexOf(l)>=0)&&(i=e[S]),(e[S][1]===I||R.indexOf(I)>=0)&&(s=e[S]);if(i===null){const S=u[n.substring(0,2)];let C=f[n.substring(0,1)];n.substring(0,2)==="da"&&(C=["dekao",10,"da"]),S?(T=S[2],l=n.substring(2)):C&&(T=C[1],l=n.substring(C[2].length));for(let P=0;P<e.length;P++)R=e[P][2]===null?[]:e[P][2],(e[P][1]===l||R.indexOf(l)>=0)&&(i=e[P])}if(s===null){const S=u[r.substring(0,2)];let C=f[r.substring(0,1)];r.substring(0,2)==="da"&&(C=["dekao",10,"da"]),S?(D=S[2],I=r.substring(2)):C&&(D=C[1],I=r.substring(C[2].length));for(let P=0;P<e.length;P++)R=e[P][2]===null?[]:e[P][2],(e[P][1]===I||R.indexOf(I)>=0)&&(s=e[P])}return i===null||s===null||i[3]!==s[3]?A:t*i[6]*T/(s[6]*D)}function qf(t,n){if(t=o(t),t instanceof Error)return t;if(!/^-?[0-9]{1,3}$/.test(t)||t<-512||t>511)return E;if(t<0)return"1"+q("0",9-(512+t).toString(2).length)+(512+t).toString(2);const r=parseInt(t,10).toString(2);return typeof n>"u"?r:isNaN(n)?c:n<0?E:(n=Math.floor(n),n>=r.length?q("0",n-r.length)+r:E)}function Qf(t,n){if(t=o(t),t instanceof Error)return t;if(!/^-?[0-9]{1,12}$/.test(t)||t<-549755813888||t>549755813887)return E;if(t<0)return(1099511627776+t).toString(16);const r=parseInt(t,10).toString(16);return typeof n>"u"?r:isNaN(n)?c:n<0?E:(n=Math.floor(n),n>=r.length?q("0",n-r.length)+r:E)}function $f(t,n){if(t=o(t),t instanceof Error)return t;if(!/^-?[0-9]{1,9}$/.test(t)||t<-536870912||t>536870911)return E;if(t<0)return(1073741824+t).toString(8);const r=parseInt(t,10).toString(8);return typeof n>"u"?r:isNaN(n)?c:n<0?E:(n=Math.floor(n),n>=r.length?q("0",n-r.length)+r:E)}function Zf(t,n){return n=n===void 0?0:n,t=o(t),n=o(n),h(t,n)?c:t===n?1:0}function En(t,n){return n=n===void 0?0:n,t=o(t),n=o(n),h(t,n)?c:M.erf(t)}En.PRECISE=()=>{throw new Error("ERF.PRECISE is not implemented")};function hn(t){return isNaN(t)?c:M.erfc(t)}hn.PRECISE=()=>{throw new Error("ERFC.PRECISE is not implemented")};function zf(t,n){return n=n||0,t=o(t),h(n,t)?t:t>=n?1:0}function Jf(t,n){if(!/^[0-9A-Fa-f]{1,10}$/.test(t))return E;const r=t.length===10&&t.substring(0,1).toLowerCase()==="f",e=r?parseInt(t,16)-1099511627776:parseInt(t,16);if(e<-512||e>511)return E;if(r)return"1"+q("0",9-(512+e).toString(2).length)+(512+e).toString(2);const u=e.toString(2);return n===void 0?u:isNaN(n)?c:n<0?E:(n=Math.floor(n),n>=u.length?q("0",n-u.length)+u:E)}function kf(t){if(!/^[0-9A-Fa-f]{1,10}$/.test(t))return E;const n=parseInt(t,16);return n>=549755813888?n-1099511627776:n}function df(t,n){if(!/^[0-9A-Fa-f]{1,10}$/.test(t))return E;const r=parseInt(t,16);if(r>536870911&&r<0xffe0000000)return E;if(r>=0xffe0000000)return(r-0xffc0000000).toString(8);const e=r.toString(8);return n===void 0?e:isNaN(n)?c:n<0?E:(n=Math.floor(n),n>=e.length?q("0",n-e.length)+e:E)}function In(t){const n=a(t),r=U(t);return h(n,r)?c:Math.sqrt(Math.pow(n,2)+Math.pow(r,2))}function U(t){if(t===void 0||t===!0||t===!1)return c;if(t===0||t==="0")return 0;if(["i","j"].indexOf(t)>=0)return 1;t=t+"",t=t.replace("+i","+1i").replace("-i","-1i").replace("+j","+1j").replace("-j","-1j");let n=t.indexOf("+"),r=t.indexOf("-");n===0&&(n=t.indexOf("+",1)),r===0&&(r=t.indexOf("-",1));const e=t.substring(t.length-1,t.length),u=e==="i"||e==="j";return n>=0||r>=0?u?n>=0?isNaN(t.substring(0,n))||isNaN(t.substring(n+1,t.length-1))?E:Number(t.substring(n+1,t.length-1)):isNaN(t.substring(0,r))||isNaN(t.substring(r+1,t.length-1))?E:-Number(t.substring(r+1,t.length-1)):E:u?isNaN(t.substring(0,t.length-1))?E:t.substring(0,t.length-1):isNaN(t)?E:0}function gn(t){const n=a(t),r=U(t);return h(n,r)?c:n===0&&r===0?H:n===0&&r>0?Math.PI/2:n===0&&r<0?-Math.PI/2:r===0&&n>0?0:r===0&&n<0?-Math.PI:n>0?Math.atan(r/n):n<0&&r>=0?Math.atan(r/n)+Math.PI:Math.atan(r/n)-Math.PI}function yf(t){const n=a(t),r=U(t);if(h(n,r))return c;let e=t.substring(t.length-1);return e=e==="i"||e==="j"?e:"i",r!==0?B(n,-r,e):t}function $t(t){const n=a(t),r=U(t);if(h(n,r))return c;let e=t.substring(t.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.cos(n)*(Math.exp(r)+Math.exp(-r))/2,-Math.sin(n)*(Math.exp(r)-Math.exp(-r))/2,e)}function dn(t){const n=a(t),r=U(t);if(h(n,r))return c;let e=t.substring(t.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.cos(r)*(Math.exp(n)+Math.exp(-n))/2,Math.sin(r)*(Math.exp(n)-Math.exp(-n))/2,e)}function xf(t){const n=a(t),r=U(t);return h(n,r)?c:ct($t(t),Zt(t))}function ct(t,n){const r=a(t),e=U(t),u=a(n),f=U(n);if(h(r,e,u,f))return c;const i=t.substring(t.length-1),s=n.substring(n.length-1);let l="i";if((i==="j"||s==="j")&&(l="j"),u===0&&f===0)return E;const I=u*u+f*f;return B((r*u+e*f)/I,(e*u-r*f)/I,l)}function vf(t){const n=a(t),r=U(t);if(h(n,r))return c;let e=t.substring(t.length-1);e=e==="i"||e==="j"?e:"i";const u=Math.exp(n);return B(u*Math.cos(r),u*Math.sin(r),e)}function mf(t){const n=a(t),r=U(t);if(h(n,r))return c;let e=t.substring(t.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.log(Math.sqrt(n*n+r*r)),Math.atan(r/n),e)}function bf(t){const n=a(t),r=U(t);if(h(n,r))return c;let e=t.substring(t.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.log(Math.sqrt(n*n+r*r))/Math.log(10),Math.atan(r/n)/Math.log(10),e)}function _f(t){const n=a(t),r=U(t);if(h(n,r))return c;let e=t.substring(t.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.log(Math.sqrt(n*n+r*r))/Math.log(2),Math.atan(r/n)/Math.log(2),e)}function to(t,n){n=o(n);const r=a(t),e=U(t);if(h(n,r,e))return c;let u=t.substring(t.length-1);u=u==="i"||u==="j"?u:"i";const f=Math.pow(In(t),n),i=gn(t);return B(f*Math.cos(n*i),f*Math.sin(n*i),u)}function no(){let t=arguments[0];if(!arguments.length)return c;for(let n=1;n<arguments.length;n++){const r=a(t),e=U(t),u=a(arguments[n]),f=U(arguments[n]);if(h(r,e,u,f))return c;t=B(r*u-e*f,r*f+e*u)}return t}function a(t){if(t===void 0||t===!0||t===!1)return c;if(t===0||t==="0"||["i","+i","1i","+1i","-i","-1i","j","+j","1j","+1j","-j","-1j"].indexOf(t)>=0)return 0;t=t+"";let n=t.indexOf("+"),r=t.indexOf("-");n===0&&(n=t.indexOf("+",1)),r===0&&(r=t.indexOf("-",1));const e=t.substring(t.length-1,t.length),u=e==="i"||e==="j";return n>=0||r>=0?u?n>=0?isNaN(t.substring(0,n))||isNaN(t.substring(n+1,t.length-1))?E:Number(t.substring(0,n)):isNaN(t.substring(0,r))||isNaN(t.substring(r+1,t.length-1))?E:Number(t.substring(0,r)):E:u?isNaN(t.substring(0,t.length-1))?E:0:isNaN(t)?E:t}function ro(t){if(t===!0||t===!1)return c;const n=a(t),r=U(t);return h(n,r)?c:ct("1",$t(t))}function eo(t){const n=a(t),r=U(t);return h(n,r)?c:ct("1",dn(t))}function Zt(t){const n=a(t),r=U(t);if(h(n,r))return c;let e=t.substring(t.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.sin(n)*(Math.exp(r)+Math.exp(-r))/2,Math.cos(n)*(Math.exp(r)-Math.exp(-r))/2,e)}function yn(t){const n=a(t),r=U(t);if(h(n,r))return c;let e=t.substring(t.length-1);return e=e==="i"||e==="j"?e:"i",B(Math.cos(r)*(Math.exp(n)-Math.exp(-n))/2,Math.sin(r)*(Math.exp(n)+Math.exp(-n))/2,e)}function uo(t){const n=a(t),r=U(t);if(h(n,r))return c;let e=t.substring(t.length-1);e=e==="i"||e==="j"?e:"i";const u=Math.sqrt(In(t)),f=gn(t);return B(u*Math.cos(f/2),u*Math.sin(f/2),e)}function fo(t){if(t===!0||t===!1)return c;const n=a(t),r=U(t);return h(n,r)?E:ct("1",Zt(t))}function oo(t){if(t===!0||t===!1)return c;const n=a(t),r=U(t);return h(n,r)?E:ct("1",yn(t))}function io(t,n){const r=a(t),e=U(t),u=a(n),f=U(n);if(h(r,e,u,f))return c;const i=t.substring(t.length-1),s=n.substring(n.length-1);let l="i";return(i==="j"||s==="j")&&(l="j"),B(r-u,e-f,l)}function co(){if(!arguments.length)return c;const t=g(arguments);let n=t[0];for(let r=1;r<t.length;r++){const e=a(n),u=U(n),f=a(t[r]),i=U(t[r]);if(h(e,u,f,i))return c;n=B(e+f,u+i)}return n}function so(t){if(t===!0||t===!1)return c;const n=a(t),r=U(t);return h(n,r)?c:ct(Zt(t),$t(t))}function lo(t,n){if(!/^[0-7]{1,10}$/.test(t))return E;const r=t.length===10&&t.substring(0,1)==="7",e=r?parseInt(t,8)-1073741824:parseInt(t,8);if(e<-512||e>511)return E;if(r)return"1"+q("0",9-(512+e).toString(2).length)+(512+e).toString(2);const u=e.toString(2);return typeof n>"u"?u:isNaN(n)?c:n<0?E:(n=Math.floor(n),n>=u.length?q("0",n-u.length)+u:E)}function Eo(t){if(!/^[0-7]{1,10}$/.test(t))return E;const n=parseInt(t,8);return n>=536870912?n-1073741824:n}function ho(t,n){if(!/^[0-7]{1,10}$/.test(t))return E;const r=parseInt(t,8);if(r>=536870912)return"ff"+(r+3221225472).toString(16);const e=r.toString(16);return n===void 0?e:isNaN(n)?c:n<0?E:(n=Math.floor(n),n>=e.length?q("0",n-e.length)+e:E)}const Io=St.DIST,go=St.INV,Mo=It.DIST,No=x.MATH,To=x.PRECISE,So=Z.DIST,Ao=Z.DIST.RT,Do=Z.INV,Ro=Z.INV.RT,Co=Z.TEST,Oo=gt.P,Lo=gt.P,Po=gt.S,Uo=It.INV,ao=hn.PRECISE,Vo=En.PRECISE,Fo=bt.DIST,wo=z.DIST,Ho=z.DIST.RT,Go=z.INV,Bo=z.INV.RT,Yo=ft.MATH,Xo=ft.PRECISE,po=z.TEST,Wo=Rt.DIST,jo=Rt.INV,Ko=_t.PRECISE,qo=tn.DIST,Qo=Mt.INV,$o=Mt.DIST,Zo=Mt.INV,zo=et.MULT,Jo=et.SNGL,ko=rn.DIST,yo=Kt.INTL,xo=J.DIST,vo=J.INV,mo=J.S.DIST,bo=J.S.INV,_o=j.EXC,ti=j.INC,ni=Ct.EXC,ri=Ct.INC,ei=en.DIST,ui=ut.EXC,fi=ut.INC,oi=Ot.AVG,ii=Ot.EQ,ci=un.P,si=X.P,li=X.S,Ei=K.DIST,hi=K.DIST.RT,Ii=K.INV,gi=K.TEST,Mi=Y.P,Ni=Y.S,Ti=fn.DIST,Si=qt.INTL,Ai=on.TEST;function Mn(t){const n=[];return G(t,r=>{r&&n.push(r)}),n}function $(t,n){const r={};for(let f=1;f<t[0].length;++f)r[f]=!0;let e=n[0].length;for(let f=1;f<n.length;++f)n[f].length>e&&(e=n[f].length);for(let f=1;f<t.length;++f)for(let i=1;i<t[f].length;++i){let s=!1,l=!1;for(let I=0;I<n.length;++I){const T=n[I];if(T.length<e)continue;const D=T[0];if(t[f][0]===D){l=!0;for(let R=1;R<T.length;++R)if(!s)if(T[R]===void 0||T[R]==="*")s=!0;else{const C=tt(T[R]+""),P=[k(t[f][i],y)].concat(C);s=nt(P)}}}l&&(r[i]=r[i]&&s)}const u=[];for(let f=0;f<t[0].length;++f)r[f]&&u.push(f-1);return u}function Di(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const i=Q(t,n);u=V(t[i])}else u=V(t[n]);let f=0;return G(e,i=>{f+=u[i]}),e.length===0?H:f/e.length}function Ri(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const i=Q(t,n);u=V(t[i])}else u=V(t[n]);const f=[];return G(e,i=>{f.push(u[i])}),At(f)}function Ci(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const i=Q(t,n);u=V(t[i])}else u=V(t[n]);const f=[];return G(e,i=>{f.push(u[i])}),Dt(f)}function Oi(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const f=Q(t,n);u=V(t[f])}else u=V(t[n]);return e.length===0?c:e.length>1?E:u[e[0]]}function Li(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const i=Q(t,n);u=V(t[i])}else u=V(t[n]);let f=u[e[0]];return G(e,i=>{f<u[i]&&(f=u[i])}),f}function Pi(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const i=Q(t,n);u=V(t[i])}else u=V(t[n]);let f=u[e[0]];return G(e,i=>{f>u[i]&&(f=u[i])}),f}function Ui(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const s=Q(t,n);u=V(t[s])}else u=V(t[n]);let f=[];G(e,s=>{f.push(u[s])}),f=Mn(f);let i=1;return G(f,s=>{i*=s}),i}function ai(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const i=Q(t,n);u=V(t[i])}else u=V(t[n]);let f=[];return G(e,i=>{f.push(u[i])}),f=Mn(f),X.S(f)}function Vi(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const i=Q(t,n);u=V(t[i])}else u=V(t[n]);let f=[];return G(e,i=>{f.push(u[i])}),f=Mn(f),X.P(f)}function Fi(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const i=Q(t,n);u=V(t[i])}else u=V(t[n]);const f=[];return G(e,i=>{f.push(u[i])}),m(f)}function wi(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const i=Q(t,n);u=V(t[i])}else u=V(t[n]);const f=[];return G(e,i=>{f.push(u[i])}),Y.S(f)}function Hi(t,n,r){if(isNaN(n)&&typeof n!="string")return c;const e=$(t,r);let u=[];if(typeof n=="string"){const i=Q(t,n);u=V(t[i])}else u=V(t[n]);const f=[];return G(e,i=>{f.push(u[i])}),Y.P(f)}function Nn(t){return t&&t.getTime&&!isNaN(t.getTime())}function Tn(t){return t instanceof Date?t:new Date(t)}function Gi(t,n,r,e,u,f,i){return t=Tn(t),n=Tn(n),r=Tn(r),!Nn(t)||!Nn(n)||!Nn(r)?c:e<=0||u<=0||[1,2,4].indexOf(f)===-1||[0,1,2,3,4].indexOf(i)===-1||r<=t?E:(u=u||0,i=i||0,u*e*sn(t,r,i))}function Bi(){throw new Error("ACCRINTM is not implemented")}function Yi(){throw new Error("AMORDEGRC is not implemented")}function Xi(){throw new Error("AMORLINC is not implemented")}function pi(){throw new Error("COUPDAYBS is not implemented")}function Wi(){throw new Error("COUPDAYS is not implemented")}function ji(){throw new Error("COUPDAYSNC is not implemented")}function Ki(){throw new Error("COUPNCD is not implemented")}function qi(){throw new Error("COUPNUM is not implemented")}function Qi(){throw new Error("COUPPCD is not implemented")}function $i(t,n,r,e,u,f){if(t=o(t),n=o(n),r=o(r),h(t,n,r))return c;if(t<=0||n<=0||r<=0||e<1||u<1||e>u||f!==0&&f!==1)return E;const i=Lt(t,n,r,0,f);let s=0;e===1&&(f===0&&(s=-r),e++);for(let l=e;l<=u;l++)s+=f===1?st(t,l-2,i,r,1)-i:st(t,l-1,i,r,0);return s*=t,s}function Zi(t,n,r,e,u,f){if(t=o(t),n=o(n),r=o(r),h(t,n,r))return c;if(t<=0||n<=0||r<=0||e<1||u<1||e>u||f!==0&&f!==1)return E;const i=Lt(t,n,r,0,f);let s=0;e===1&&(s=f===0?i+r*t:i,e++);for(let l=e;l<=u;l++)s+=f>0?i-(st(t,l-2,i,r,1)-i)*t:i-st(t,l-1,i,r,0)*t;return s}function zi(t,n,r,e,u){if(u=u===void 0?12:u,t=o(t),n=o(n),r=o(r),e=o(e),u=o(u),h(t,n,r,e,u))return c;if(t<0||n<0||r<0||e<0||[1,2,3,4,5,6,7,8,9,10,11,12].indexOf(u)===-1||e>r)return E;if(n>=t)return 0;const f=(1-Math.pow(n/t,1/r)).toFixed(3),i=t*f*u/12;let s=i,l=0;const I=e===r?r-1:e;for(let T=2;T<=I;T++)l=(t-s)*f,s+=l;return e===1?i:e===r?(t-s)*f:l}function Ji(t,n,r,e,u){if(u=u===void 0?2:u,t=o(t),n=o(n),r=o(r),e=o(e),u=o(u),h(t,n,r,e,u))return c;if(t<0||n<0||r<0||e<0||u<=0||e>r)return E;if(n>=t)return 0;let f=0,i=0;for(let s=1;s<=e;s++)i=Math.min((t-f)*(u/r),t-n-f),f+=i;return i}function ki(t,n,r,e,u){if(t=L(t),n=L(n),r=o(r),e=o(e),u=o(u),u=u||0,h(t,n,r,e,u))return c;if(r<=0||e<=0)return E;if(t>=n)return c;let f,i;switch(u){case 0:f=360,i=b(t,n,!1);break;case 1:f=365,i=ot(t,n,"D");break;case 2:f=360,i=ot(t,n,"D");break;case 3:f=365,i=ot(t,n,"D");break;case 4:f=360,i=b(t,n,!0);break;default:return E}return(e-r)/e*f/i}function di(t,n){if(t=o(t),n=o(n),h(t,n))return c;if(n<0)return E;if(n>=0&&n<1)return H;n=parseInt(n,10);let r=parseInt(t,10);r+=t%1*Math.pow(10,Math.ceil(Math.log(n)/Math.LN10))/n;const e=Math.pow(10,Math.ceil(Math.log(n)/Math.LN2)+1);return r=Math.round(r*e)/e,r}function yi(t,n){if(t=o(t),n=o(n),h(t,n))return c;if(n<0)return E;if(n>=0&&n<1)return H;n=parseInt(n,10);let r=parseInt(t,10);return r+=t%1*Math.pow(10,-Math.ceil(Math.log(n)/Math.LN10))*n,r}function xi(){throw new Error("DURATION is not implemented")}function vi(t,n){return t=o(t),n=o(n),h(t,n)?c:t<=0||n<1?E:(n=parseInt(n,10),Math.pow(1+t/n,n)-1)}function st(t,n,r,e,u){if(e=e||0,u=u||0,t=o(t),n=o(n),r=o(r),e=o(e),u=o(u),h(t,n,r,e,u))return c;let f;if(t===0)f=e+r*n;else{const i=Math.pow(1+t,n);f=u===1?e*i+r*(1+t)*(i-1)/t:e*i+r*(i-1)/t}return-f}function mi(t,n){if(t=o(t),n=N(g(n)),h(t,n))return c;const r=n.length;let e=t;for(let u=0;u<r;u++)e*=1+n[u];return e}function bi(){throw new Error("INTRATE is not implemented")}function xn(t,n,r,e,u,f){if(u=u||0,f=f||0,t=o(t),n=o(n),r=o(r),e=o(e),u=o(u),f=o(f),h(t,n,r,e,u,f))return c;const i=Lt(t,r,e,u,f);return(n===1?f===1?0:-e:f===1?st(t,n-2,i,e,1)-i:st(t,n-1,i,e,0))*t}function _i(t,n){if(n=n||0,t=N(g(t)),n=o(n),h(t,n))return c;const r=(S,C,P)=>{const p=P+1;let W=S[0];for(let w=1;w<S.length;w++)W+=S[w]/Math.pow(p,(C[w]-C[0])/365);return W},e=(S,C,P)=>{const p=P+1;let W=0;for(let w=1;w<S.length;w++){const _=(C[w]-C[0])/365;W-=_*S[w]/Math.pow(p,_+1)}return W},u=[];let f=!1,i=!1;for(let S=0;S<t.length;S++)u[S]=S===0?0:u[S-1]+365,t[S]>0&&(f=!0),t[S]<0&&(i=!0);if(!f||!i)return E;n=n===void 0?.1:n;let s=n;const l=1e-10;let I,T,D,R=!0;do D=r(t,u,s),I=s-D/e(t,u,s),T=Math.abs(I-s),s=I,R=T>l&&Math.abs(D)>l;while(R);return s}function tc(t,n,r,e){return t=o(t),n=o(n),r=o(r),e=o(e),h(t,n,r,e)?c:e*t*(n/r-1)}function nc(){throw new Error("MDURATION is not implemented")}function rc(t,n,r){if(t=N(g(t)),n=o(n),r=o(r),h(t,n,r))return c;const e=t.length,u=[],f=[];for(let l=0;l<e;l++)t[l]<0?u.push(t[l]):f.push(t[l]);const i=-Sn(r,f)*Math.pow(1+r,e-1),s=Sn(n,u)*(1+n);return Math.pow(i/s,1/(e-1))-1}function ec(t,n){return t=o(t),n=o(n),h(t,n)?c:t<=0||n<1?E:(n=parseInt(n,10),(Math.pow(t+1,1/n)-1)*n)}function uc(t,n,r,e,u){if(u=u===void 0?0:u,e=e===void 0?0:e,t=o(t),n=o(n),r=o(r),e=o(e),u=o(u),h(t,n,r,e,u))return c;if(t===0)return-(r+e)/n;{const f=n*(1+t*u)-e*t,i=r*t+n*(1+t*u);return Math.log(f/i)/Math.log(1+t)}}function Sn(){const t=N(g(arguments));if(t instanceof Error)return t;const n=t[0];let r=0;for(let e=1;e<t.length;e++)r+=t[e]/Math.pow(1+n,e);return r}function fc(){throw new Error("ODDFPRICE is not implemented")}function oc(){throw new Error("ODDFYIELD is not implemented")}function ic(){throw new Error("ODDLPRICE is not implemented")}function cc(){throw new Error("ODDLYIELD is not implemented")}function sc(t,n,r){return t=o(t),n=o(n),r=o(r),h(t,n,r)?c:t<=0?E:(Math.log(r)-Math.log(n))/Math.log(1+t)}function Lt(t,n,r,e,u){if(e=e||0,u=u||0,t=o(t),n=o(n),r=o(r),e=o(e),u=o(u),h(t,n,r,e,u))return c;let f;if(t===0)f=(r+e)/n;else{const i=Math.pow(1+t,n);f=u===1?(e*t/(i-1)+r*t/(1-1/i))/(1+t):e*t/(i-1)+r*t/(1-1/i)}return-f}function lc(t,n,r,e,u,f){return u=u||0,f=f||0,t=o(t),r=o(r),e=o(e),u=o(u),f=o(f),h(t,r,e,u,f)?c:Lt(t,r,e,u,f)-xn(t,n,r,e,u,f)}function Ec(){throw new Error("PRICE is not implemented")}function hc(t,n,r,e,u){if(t=L(t),n=L(n),r=o(r),e=o(e),u=o(u),u=u||0,h(t,n,r,e,u))return c;if(r<=0||e<=0)return E;if(t>=n)return c;let f,i;switch(u){case 0:f=360,i=b(t,n,!1);break;case 1:f=365,i=ot(t,n,"D");break;case 2:f=360,i=ot(t,n,"D");break;case 3:f=365,i=ot(t,n,"D");break;case 4:f=360,i=b(t,n,!0);break;default:return E}return e-r*e*i/f}function Ic(){throw new Error("PRICEMAT is not implemented")}function gc(t,n,r,e,u){return e=e||0,u=u||0,t=o(t),n=o(n),r=o(r),e=o(e),u=o(u),h(t,n,r,e,u)?c:t===0?-r*n-e:((1-Math.pow(1+t,n))/t*r*(1+t*u)-e)/Math.pow(1+t,n)}function Mc(t,n,r,e,u,f){if(f=f===void 0?.01:f,e=e===void 0?0:e,u=u===void 0?0:u,t=o(t),n=o(n),r=o(r),e=o(e),u=o(u),f=o(f),h(t,n,r,e,u,f))return c;const i=1e-10,s=20;let l=f;u=u?1:0;for(let I=0;I<s;I++){if(l<=-1)return E;let T,D;if(Math.abs(l)<i?T=r*(1+t*l)+n*(1+l*u)*t+e:(D=Math.pow(1+l,t),T=r*D+n*(1/l+u)*(D-1)+e),Math.abs(T)<i)return l;let R;if(Math.abs(l)<i)R=r*t+n*u*t;else{D=Math.pow(1+l,t);const S=t*Math.pow(1+l,t-1);R=r*S+n*(1/l+u)*S+n*(-1/(l*l))*(D-1)}l-=T/R}return l}function Nc(){throw new Error("RECEIVED is not implemented")}function Tc(t,n,r){return t=o(t),n=o(n),r=o(r),h(t,n,r)?c:t===0||n===0?E:Math.pow(r/n,1/t)-1}function Sc(t,n,r){return t=o(t),n=o(n),r=o(r),h(t,n,r)?c:r===0?E:(t-n)/r}function Ac(t,n,r,e){return t=o(t),n=o(n),r=o(r),e=o(e),h(t,n,r,e)?c:r===0||e<1||e>r?E:(e=parseInt(e,10),(t-n)*(r-e+1)*2/(r*(r+1)))}function Dc(t,n,r){return t=L(t),n=L(n),r=o(r),h(t,n,r)?c:r<=0||t>n||n-t>365*24*60*60*1e3?E:365*r/(360-r*b(t,n,!1))}function Rc(t,n,r){return t=L(t),n=L(n),r=o(r),h(t,n,r)?c:r<=0||t>n||n-t>365*24*60*60*1e3?E:100*(1-r*b(t,n,!1)/360)}function Cc(t,n,r){return t=L(t),n=L(n),r=o(r),h(t,n,r)?c:r<=0||t>n||n-t>365*24*60*60*1e3?E:(100-r)*360/(r*b(t,n,!1))}function Oc(){throw new Error("VDB is not implemented")}function Lc(t,n,r){if(t=N(g(t)),n=On(g(n)),r=o(r),h(t,n,r))return c;const e=(S,C,P)=>{const p=P+1;let W=S[0];for(let w=1;w<S.length;w++)W+=S[w]/Math.pow(p,it(C[w],C[0])/365);return W},u=(S,C,P)=>{const p=P+1;let W=0;for(let w=1;w<S.length;w++){const _=it(C[w],C[0])/365;W-=_*S[w]/Math.pow(p,_+1)}return W};let f=!1,i=!1;for(let S=0;S<t.length;S++)t[S]>0&&(f=!0),t[S]<0&&(i=!0);if(!f||!i)return E;r=r||.1;let s=r;const l=1e-10;let I,T,D,R=!0;do D=e(t,n,s),I=s-D/u(t,n,s),T=Math.abs(I-s),s=I,R=T>l&&Math.abs(D)>l;while(R);return s}function Pc(t,n,r){if(t=o(t),n=N(g(n)),r=On(g(r)),h(t,n,r))return c;let e=0;for(let u=0;u<n.length;u++)e+=n[u]/Math.pow(1+t,it(r[u],r[0])/365);return e}function Uc(){throw new Error("YIELD is not implemented")}function ac(){throw new Error("YIELDDISC is not implemented")}function Vc(){throw new Error("YIELDMAT is not implemented")}function Fc(){const t=g(arguments);let n=c;for(let r=0;r<t.length;r++){if(t[r]instanceof Error)return t[r];t[r]===void 0||t[r]===null||typeof t[r]=="string"||(n===c&&(n=!0),t[r]||(n=!1))}return n}function wc(){return!1}function Hc(t,n,r){return t instanceof Error?t:(n=arguments.length>=2?n:!0,n==null&&(n=0),r=arguments.length===3?r:!1,r==null&&(r=0),t?n:r)}function Gc(){for(let t=0;t<arguments.length/2;t++)if(arguments[t*2])return arguments[t*2+1];return A}function Bc(t,n){return Ht(t)?n:t}function Yc(t,n){return t===A?n:t}function Xc(t){return typeof t=="string"?c:t instanceof Error?t:!t}function pc(){const t=g(arguments);let n=c;for(let r=0;r<t.length;r++){if(t[r]instanceof Error)return t[r];t[r]===void 0||t[r]===null||typeof t[r]=="string"||(n===c&&(n=!1),t[r]&&(n=!0))}return n}function Wc(){return!0}function jc(){const t=g(arguments);let n=c;for(let r=0;r<t.length;r++){if(t[r]instanceof Error)return t[r];t[r]===void 0||t[r]===null||typeof t[r]=="string"||(n===c&&(n=0),t[r]&&n++)}return n===c?n:!!(Math.floor(Math.abs(n))&1)}function Kc(){let t;if(arguments.length>0){const n=arguments[0],r=arguments.length-1,e=Math.floor(r/2);let u=!1;const f=r%2!==0,i=r%2===0?null:arguments[arguments.length-1];if(e){for(let s=0;s<e;s++)if(n===arguments[s*2+1]){t=arguments[s*2+2],u=!0;break}}u||(t=f?i:A)}else t=c;return t}const qc={errors:vn,symbols:Bu}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[9021],{12599:function(dn,qt,Qt){Qt.d(qt,{J0:function(){return _},LX:function(){return yt},OF:function(){return qe},RQ:function(){return Se},Zn:function(){return je},lX:function(){return Zt},ov:function(){return St},p7:function(){return _r},q_:function(){return er}});function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}var W;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(W||(W={}));const ct="popstate";function un(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:r,v5Compat:n=!1}=e,a;a=t.map((y,R)=>h(y,typeof y=="string"?null:y.state,R===0?"default":void 0));let s=c(r??a.length-1),o=W.Pop,f=null;function c(y){return Math.min(Math.max(y,0),a.length-1)}function m(){return a[s]}function h(y,R,w){R===void 0&&(R=null);let v=ne(a?m().pathname:"/",y,R,w);return Z(v.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(y)),v}function D(y){return typeof y=="string"?y:ae(y)}return{get index(){return s},get action(){return o},get location(){return m()},createHref:D,createURL(y){return new URL(D(y),"http://localhost")},encodeLocation(y){let R=typeof y=="string"?ee(y):y;return{pathname:R.pathname||"",search:R.search||"",hash:R.hash||""}},push(y,R){o=W.Push;let w=h(y,R);s+=1,a.splice(s,a.length,w),n&&f&&f({action:o,location:w,delta:1})},replace(y,R){o=W.Replace;let w=h(y,R);a[s]=w,n&&f&&f({action:o,location:w,delta:0})},go(y){o=W.Pop;let R=c(s+y),w=a[R];s=R,f&&f({action:o,location:w,delta:y})},listen(y){return f=y,()=>{f=null}}}}function Zt(e){e===void 0&&(e={});function t(n,a){let{pathname:s,search:o,hash:f}=n.location;return ne("",{pathname:s,search:o,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:ae(a)}return ht(t,r,null,e)}function er(e){e===void 0&&(e={});function t(a,s){let{pathname:o="/",search:f="",hash:c=""}=ee(a.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),ne("",{pathname:o,search:f,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(a,s){let o=a.document.querySelector("base"),f="";if(o&&o.getAttribute("href")){let c=a.location.href,m=c.indexOf("#");f=m===-1?c:c.slice(0,m)}return f+"#"+(typeof s=="string"?s:ae(s))}function n(a,s){Z(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return ht(t,r,n,e)}function _(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Z(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tr(){return Math.random().toString(36).substr(2,8)}function ft(e,t){return{usr:e.state,key:e.key,idx:t}}function ne(e,t,r,n){return r===void 0&&(r=null),C({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ee(t):t,{state:r,key:t&&t.key||n||tr()})}function ae(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ee(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function ht(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:s=!1}=n,o=a.history,f=W.Pop,c=null,m=h();m==null&&(m=0,o.replaceState(C({},o.state,{idx:m}),""));function h(){return(o.state||{idx:null}).idx}function D(){f=W.Pop;let v=h(),p=v==null?null:v-m;m=v,c&&c({action:f,location:w.location,delta:p})}function g(v,p){f=W.Push;let L=ne(w.location,v,p);r&&r(L,v),m=h()+1;let F=ft(L,m),U=w.createHref(L);try{o.pushState(F,"",U)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;a.location.assign(U)}s&&c&&c({action:f,location:w.location,delta:1})}function y(v,p){f=W.Replace;let L=ne(w.location,v,p);r&&r(L,v),m=h();let F=ft(L,m),U=w.createHref(L);o.replaceState(F,"",U),s&&c&&c({action:f,location:w.location,delta:0})}function R(v){let p=a.location.origin!=="null"?a.location.origin:a.location.href,L=typeof v=="string"?v:ae(v);return _(p,"No window.location.(origin|href) available to create URL for href: "+L),new URL(L,p)}let w={get action(){return f},get location(){return e(a,o)},listen(v){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(ct,D),c=v,()=>{a.removeEventListener(ct,D),c=null}},createHref(v){return t(a,v)},createURL:R,encodeLocation(v){let p=R(v);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:g,replace:y,go(v){return o.go(v)}};return w}var H;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(H||(H={}));const rr=new Set(["lazy","caseSensitive","path","id","index","children"]);function nr(e){return e.index===!0}function Be(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,s)=>{let o=[...r,s],f=typeof a.id=="string"?a.id:o.join("-");if(_(a.index!==!0||!a.children,"Cannot specify children on an index route"),_(!n[f],'Found a route id collision on id "'+f+`". Route id's must be globally unique within Data Router usages`),nr(a)){let c=C({},a,t(a),{id:f});return n[f]=c,c}else{let c=C({},a,t(a),{id:f,children:void 0});return n[f]=c,a.children&&(c.children=Be(a.children,t,o,n)),c}})}function he(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?ee(t):t,a=je(n.pathname||"/",r);if(a==null)return null;let s=pt(e);ir(s);let o=null;for(let f=0;o==null&&f<s.length;++f)o=pr(s[f],gr(a));return o}function ar(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function pt(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(s,o,f)=>{let c={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};c.relativePath.startsWith("/")&&(_(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let m=Se([n,c.relativePath]),h=r.concat(c);s.children&&s.children.length>0&&(_(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),pt(s.children,t,h,m)),!(s.path==null&&!s.index)&&t.push({path:m,score:fr(m,s.index),routesMeta:h})};return e.forEach((s,o)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))a(s,o);else for(let c of mt(s.path))a(s,o,c)}),t}function mt(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return a?[s,""]:[s];let o=mt(n.join("/")),f=[];return f.push(...o.map(c=>c===""?s:[s,c].join("/"))),a&&f.push(...o),f.map(c=>e.startsWith("/")&&c===""?"/":c)}function ir(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:hr(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const or=/^:\w+$/,lr=3,sr=2,dr=1,ur=10,cr=-2,gt=e=>e==="*";function fr(e,t){let r=e.split("/"),n=r.length;return r.some(gt)&&(n+=cr),t&&(n+=sr),r.filter(a=>!gt(a)).reduce((a,s)=>a+(or.test(s)?lr:s===""?dr:ur),n)}function hr(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function pr(e,t){let{routesMeta:r}=e,n={},a="/",s=[];for(let o=0;o<r.length;++o){let f=r[o],c=o===r.length-1,m=a==="/"?t:t.slice(a.length)||"/",h=yt({path:f.relativePath,caseSensitive:f.caseSensitive,end:c},m);if(!h)return null;Object.assign(n,h.params);let D=f.route;s.push({params:n,pathname:Se([a,h.pathname]),pathnameBase:Sr(Se([a,h.pathnameBase])),route:D}),h.pathnameBase!=="/"&&(a=Se([a,h.pathnameBase]))}return s}function cn(e,t){t===void 0&&(t={});let r=e;r.endsWith("*")&&r!=="*"&&!r.endsWith("/*")&&(Z(!1,'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".')),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=o=>o==null?"":typeof o=="string"?o:String(o),s=r.split(/\/+/).map((o,f,c)=>{if(f===c.length-1&&o==="*")return a(t["*"]);const h=o.match(/^:(\w+)(\??)$/);if(h){const[,D,g]=h;let y=t[D];return _(g==="?"||y!=null,'Missing ":'+D+'" param'),a(y)}return o.replace(/\?$/g,"")}).filter(o=>!!o);return n+s.join("/")}function yt(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=mr(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let s=a[0],o=s.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:n.reduce((m,h,D)=>{let{paramName:g,isOptional:y}=h;if(g==="*"){let w=f[D]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const R=f[D];return y&&!R?m[g]=void 0:m[g]=yr(R||"",g),m},{}),pathname:s,pathnameBase:o,pattern:e}}function mr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Z(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,f,c)=>(n.push({paramName:f,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function gr(e){try{return decodeURI(e)}catch(t){return Z(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yr(e,t){try{return decodeURIComponent(e)}catch(r){return Z(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function je(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function vr(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?ee(e):e;return{pathname:r?r.startsWith("/")?r:br(r,t):t,search:Dr(n),hash:xr(a)}}function br(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Ge(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function vt(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function wr(e,t){let r=vt(e);return t?r.map((n,a)=>a===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Rr(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=ee(e):(a=C({},e),_(!a.pathname||!a.pathname.includes("?"),Ge("?","pathname","search",a)),_(!a.pathname||!a.pathname.includes("#"),Ge("#","pathname","hash",a)),_(!a.search||!a.search.includes("#"),Ge("#","search","hash",a)));let s=e===""||a.pathname==="",o=s?"/":a.pathname,f;if(o==null)f=r;else if(n){let D=t.length===0?[]:t[t.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let g=o.split("/");for(;g[0]==="..";)g.shift(),D.pop();a.pathname=g.join("/")}f="/"+D.join("/")}else{let D=t.length-1;if(o.startsWith("..")){let g=o.split("/");for(;g[0]==="..";)g.shift(),D-=1;a.pathname=g.join("/")}f=D>=0?t[D]:"/"}let c=vr(a,f),m=o&&o!=="/"&&o.endsWith("/"),h=(s||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(m||h)&&(c.pathname+="/"),c}function fn(e){return e===""||e.pathname===""?"/":typeof e=="string"?ee(e).pathname:e.pathname}const Se=e=>e.join("/").replace(/\/\/+/g,"/"),Sr=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Dr=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xr=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,hn=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r,a=new Headers(n.headers);return a.has("Content-Type")||a.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),C({},n,{headers:a}))};class bt extends null{}class Er{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],_(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((s,o)=>n=o),this.controller=new AbortController;let a=()=>n(new bt("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",a),this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((s,o)=>{let[f,c]=o;return Object.assign(s,{[f]:this.trackPromise(f,c)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(a=>this.onSettle(n,t,void 0,a),a=>this.onSettle(n,t,a));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,a){if(this.controller.signal.aborted&&n instanceof bt)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n===void 0&&a===void 0){let s=new Error('Deferred data for key "'+r+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>s}),this.emit(!1,r),Promise.reject(s)}return a===void 0?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>a}),this.emit(!1,r),a)}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(a=>{this.subscribe(s=>{t.removeEventListener("abort",n),(s||this.done)&&a(s)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return _(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,a]=r;return Object.assign(t,{[n]:Lr(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function Pr(e){return e instanceof Promise&&e._tracked===!0}function Lr(e){if(!Pr(e))return e;if(e._error)throw e._error;return e._data}const pn=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r;return new Er(t,n)},Mr=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",t),new Response(null,C({},n,{headers:a}))},mn=(e,t)=>{let r=Mr(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r};class qe{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function wt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Rt=["post","put","patch","delete"],Ar=new Set(Rt),Tr=["get",...Rt],jr=new Set(Tr),Cr=new Set([301,302,303,307,308]),Ur=new Set([307,308]),Qe={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},St={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ce={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Dt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Et="remix-router-transitions";function _r(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;_(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let i=e.detectErrorBoundary;a=l=>({hasErrorBoundary:i(l)})}else a=xt;let s={},o=Be(e.routes,a,void 0,s),f,c=e.basename||"/",m=C({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),h=null,D=new Set,g=null,y=null,R=null,w=e.hydrationData!=null,v=he(o,e.history.location,c),p=null;if(v==null){let i=k(404,{pathname:e.history.location.pathname}),{matches:l,route:u}=Ke(o);v=l,p={[u.id]:i}}let L,F=v.some(i=>i.route.lazy),U=v.some(i=>i.route.loader);if(F)L=!1;else if(!U)L=!0;else if(m.v7_partialHydration){let i=e.hydrationData?e.hydrationData.loaderData:null,l=e.hydrationData?e.hydrationData.errors:null;L=v.every(u=>u.route.loader&&u.route.loader.hydrate!==!0&&(i&&i[u.route.id]!==void 0||l&&l[u.route.id]!==void 0))}else L=e.hydrationData!=null;let I,d={historyAction:e.history.action,location:e.history.location,matches:v,initialized:L,navigation:Qe,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||p,fetchers:new Map,blockers:new Map},O=W.Pop,T=!1,B,te=!1,Q=new Map,ie=null,Ee=!1,ye=!1,We=[],ke=[],$=new Map,$e=0,Oe=-1,Pe=new Map,oe=new Set,Le=new Map,Ie=new Map,le=new Set,ve=new Map,be=new Map,at=!1;function Jr(){if(h=e.history.listen(i=>{let{action:l,location:u,delta:b}=i;if(at){at=!1;return}Z(be.size===0||b!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let S=Yt({currentLocation:d.location,nextLocation:u,historyAction:l});if(S&&b!=null){at=!0,e.history.go(b*-1),Je(S,{state:"blocked",location:u,proceed(){Je(S,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),e.history.go(b)},reset(){let M=new Map(d.blockers);M.set(S,Ce),X({blockers:M})}});return}return we(l,u)}),r){$r(t,Q);let i=()=>Vr(t,Q);t.addEventListener("pagehide",i),ie=()=>t.removeEventListener("pagehide",i)}return d.initialized||we(W.Pop,d.location,{initialHydration:!0}),I}function Yr(){h&&h(),ie&&ie(),D.clear(),B&&B.abort(),d.fetchers.forEach((i,l)=>Ve(l)),d.blockers.forEach((i,l)=>Jt(l))}function Xr(i){return D.add(i),()=>D.delete(i)}function X(i,l){l===void 0&&(l={}),d=C({},d,i);let u=[],b=[];m.v7_fetcherPersist&&d.fetchers.forEach((S,M)=>{S.state==="idle"&&(le.has(M)?b.push(M):u.push(M))}),[...D].forEach(S=>S(d,{deletedFetchers:b,unstable_viewTransitionOpts:l.viewTransitionOpts,unstable_flushSync:l.flushSync===!0})),m.v7_fetcherPersist&&(u.forEach(S=>d.fetchers.delete(S)),b.forEach(S=>Ve(S)))}function He(i,l,u){var b,S;let{flushSync:M}=u===void 0?{}:u,P=d.actionData!=null&&d.navigation.formMethod!=null&&G(d.navigation.formMethod)&&d.navigation.state==="loading"&&((b=i.state)==null?void 0:b._isRedirect)!==!0,E;l.actionData?Object.keys(l.actionData).length>0?E=l.actionData:E=null:P?E=d.actionData:E=null;let x=l.loaderData?Ft(d.loaderData,l.loaderData,l.matches||[],l.errors):d.loaderData,j=d.blockers;j.size>0&&(j=new Map(j),j.forEach((N,Y)=>j.set(Y,Ce)));let V=T===!0||d.navigation.formMethod!=null&&G(d.navigation.formMethod)&&((S=i.state)==null?void 0:S._isRedirect)!==!0;f&&(o=f,f=void 0),Ee||O===W.Pop||(O===W.Push?e.history.push(i,i.state):O===W.Replace&&e.history.replace(i,i.state));let A;if(O===W.Pop){let N=Q.get(d.location.pathname);N&&N.has(i.pathname)?A={currentLocation:d.location,nextLocation:i}:Q.has(i.pathname)&&(A={currentLocation:i,nextLocation:d.location})}else if(te){let N=Q.get(d.location.pathname);N?N.add(i.pathname):(N=new Set([i.pathname]),Q.set(d.location.pathname,N)),A={currentLocation:d.location,nextLocation:i}}X(C({},l,{actionData:E,loaderData:x,historyAction:O,location:i,initialized:!0,navigation:Qe,revalidation:"idle",restoreScrollPosition:Gt(i,l.matches||d.matches),preventScrollReset:V,blockers:j}),{viewTransitionOpts:A,flushSync:M===!0}),O=W.Pop,T=!1,te=!1,Ee=!1,ye=!1,We=[],ke=[]}async function Bt(i,l){if(typeof i=="number"){e.history.go(i);return}let u=Ze(d.location,d.matches,c,m.v7_prependBasename,i,m.v7_relativeSplatPath,l==null?void 0:l.fromRouteId,l==null?void 0:l.relative),{path:b,submission:S,error:M}=Pt(m.v7_normalizeFormMethod,!1,u,l),P=d.location,E=ne(d.location,b,l&&l.state);E=C({},E,e.history.encodeLocation(E));let x=l&&l.replace!=null?l.replace:void 0,j=W.Push;x===!0?j=W.Replace:x===!1||S!=null&&G(S.formMethod)&&S.formAction===d.location.pathname+d.location.search&&(j=W.Replace);let V=l&&"preventScrollReset"in l?l.preventScrollReset===!0:void 0,A=(l&&l.unstable_flushSync)===!0,N=Yt({currentLocation:P,nextLocation:E,historyAction:j});if(N){Je(N,{state:"blocked",location:E,proceed(){Je(N,{state:"proceeding",proceed:void 0,reset:void 0,location:E}),Bt(i,l)},reset(){let Y=new Map(d.blockers);Y.set(N,Ce),X({blockers:Y})}});return}return await we(j,E,{submission:S,pendingError:M,preventScrollReset:V,replace:l&&l.replace,enableViewTransition:l&&l.unstable_viewTransition,flushSync:A})}function Gr(){if(it(),X({revalidation:"loading"}),d.navigation.state!=="submitting"){if(d.navigation.state==="idle"){we(d.historyAction,d.location,{startUninterruptedRevalidation:!0});return}we(O||d.historyAction,d.navigation.location,{overrideNavigation:d.navigation})}}async function we(i,l,u){B&&B.abort(),B=null,O=i,Ee=(u&&u.startUninterruptedRevalidation)===!0,on(d.location,d.matches),T=(u&&u.preventScrollReset)===!0,te=(u&&u.enableViewTransition)===!0;let b=f||o,S=u&&u.overrideNavigation,M=he(b,l,c),P=(u&&u.flushSync)===!0;if(!M){let Y=k(404,{pathname:l.pathname}),{matches:q,route:J}=Ke(b);ot(),He(l,{matches:q,loaderData:{},errors:{[J.id]:Y}},{flushSync:P});return}if(d.initialized&&!ye&&zr(d.location,l)&&!(u&&u.submission&&G(u.submission.formMethod))){He(l,{matches:M},{flushSync:P});return}B=new AbortController;let E=Ue(e.history,l,B.signal,u&&u.submission),x,j;if(u&&u.pendingError)j={[De(M).route.id]:u.pendingError};else if(u&&u.submission&&G(u.submission.formMethod)){let Y=await qr(E,l,u.submission,M,{replace:u.replace,flushSync:P});if(Y.shortCircuited)return;x=Y.pendingActionData,j=Y.pendingActionError,S=nt(l,u.submission),P=!1,E=new Request(E.url,{signal:E.signal})}let{shortCircuited:V,loaderData:A,errors:N}=await Qr(E,l,M,S,u&&u.submission,u&&u.fetcherSubmission,u&&u.replace,u&&u.initialHydration===!0,P,x,j);V||(B=null,He(l,C({matches:M},x?{actionData:x}:{},{loaderData:A,errors:N})))}async function qr(i,l,u,b,S){S===void 0&&(S={}),it();let M=Wr(l,u);X({navigation:M},{flushSync:S.flushSync===!0});let P,E=_e(b,l);if(!E.route.action&&!E.route.lazy)P={type:H.error,error:k(405,{method:i.method,pathname:l.pathname,routeId:E.route.id})};else if(P=await pe("action",i,E,b,s,a,c,m.v7_relativeSplatPath),i.signal.aborted)return{shortCircuited:!0};if(ge(P)){let x;return S&&S.replace!=null?x=S.replace:x=P.location===d.location.pathname+d.location.search,await ze(d,P,{submission:u,replace:x}),{shortCircuited:!0}}if(me(P)){let x=De(b,E.route.id);return(S&&S.replace)!==!0&&(O=W.Push),{pendingActionData:{},pendingActionError:{[x.route.id]:P.error}}}if(se(P))throw k(400,{type:"defer-action"});return{pendingActionData:{[E.route.id]:P.data}}}async function Qr(i,l,u,b,S,M,P,E,x,j,V){let A=b||nt(l,S),N=S||M||Nt(A),Y=f||o,[q,J]=Mt(e.history,d,u,N,l,m.v7_partialHydration&&E===!0,ye,We,ke,le,Le,oe,Y,c,j,V);if(ot(z=>!(u&&u.some(K=>K.route.id===z))||q&&q.some(K=>K.route.id===z)),Oe=++$e,q.length===0&&J.length===0){let z=$t();return He(l,C({matches:u,loaderData:{},errors:V||null},j?{actionData:j}:{},z?{fetchers:new Map(d.fetchers)}:{}),{flushSync:x}),{shortCircuited:!0}}if(!Ee&&(!m.v7_partialHydration||!E)){J.forEach(K=>{let re=d.fetchers.get(K.key),Xe=Fe(void 0,re?re.data:void 0);d.fetchers.set(K.key,Xe)});let z=j||d.actionData;X(C({navigation:A},z?Object.keys(z).length===0?{actionData:null}:{actionData:z}:{},J.length>0?{fetchers:new Map(d.fetchers)}:{}),{flushSync:x})}J.forEach(z=>{$.has(z.key)&&ce(z.key),z.controller&&$.set(z.key,z.controller)});let Me=()=>J.forEach(z=>ce(z.key));B&&B.signal.addEventListener("abort",Me);let{results:lt,loaderResults:Ae,fetcherResults:fe}=await Kt(d.matches,u,q,J,i);if(i.signal.aborted)return{shortCircuited:!0};B&&B.signal.removeEventListener("abort",Me),J.forEach(z=>$.delete(z.key));let Re=Ot(lt);if(Re){if(Re.idx>=q.length){let z=J[Re.idx-q.length].key;oe.add(z)}return await ze(d,Re.result,{replace:P}),{shortCircuited:!0}}let{loaderData:st,errors:dt}=_t(d,u,q,Ae,V,J,fe,ve);ve.forEach((z,K)=>{z.subscribe(re=>{(re||z.done)&&ve.delete(K)})});let ut=$t(),Te=Vt(Oe),Ye=ut||Te||J.length>0;return C({loaderData:st,errors:dt},Ye?{fetchers:new Map(d.fetchers)}:{})}function Zr(i,l,u,b){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(i)&&ce(i);let S=(b&&b.unstable_flushSync)===!0,M=f||o,P=Ze(d.location,d.matches,c,m.v7_prependBasename,u,m.v7_relativeSplatPath,l,b==null?void 0:b.relative),E=he(M,P,c);if(!E){Ne(i,l,k(404,{pathname:P}),{flushSync:S});return}let{path:x,submission:j,error:V}=Pt(m.v7_normalizeFormMethod,!0,P,b);if(V){Ne(i,l,V,{flushSync:S});return}let A=_e(E,x);if(T=(b&&b.preventScrollReset)===!0,j&&G(j.formMethod)){en(i,l,x,A,E,S,j);return}Le.set(i,{routeId:l,path:x}),tn(i,l,x,A,E,S,j)}async function en(i,l,u,b,S,M,P){if(it(),Le.delete(i),!b.route.action&&!b.route.lazy){let K=k(405,{method:P.formMethod,pathname:u,routeId:l});Ne(i,l,K,{flushSync:M});return}let E=d.fetchers.get(i);ue(i,kr(P,E),{flushSync:M});let x=new AbortController,j=Ue(e.history,u,x.signal,P);$.set(i,x);let V=$e,A=await pe("action",j,b,S,s,a,c,m.v7_relativeSplatPath);if(j.signal.aborted){$.get(i)===x&&$.delete(i);return}if(le.has(i)){ue(i,de(void 0));return}if(ge(A))if($.delete(i),Oe>V){ue(i,de(void 0));return}else return oe.add(i),ue(i,Fe(P)),ze(d,A,{fetcherSubmission:P});if(me(A)){Ne(i,l,A.error);return}if(se(A))throw k(400,{type:"defer-action"});let N=d.navigation.location||d.location,Y=Ue(e.history,N,x.signal),q=f||o,J=d.navigation.state!=="idle"?he(q,d.navigation.location,c):d.matches;_(J,"Didn't find any matches after fetcher action");let Me=++$e;Pe.set(i,Me);let lt=Fe(P,A.data);d.fetchers.set(i,lt);let[Ae,fe]=Mt(e.history,d,J,P,N,!1,ye,We,ke,le,Le,oe,q,c,{[b.route.id]:A.data},void 0);fe.filter(K=>K.key!==i).forEach(K=>{let re=K.key,Xe=d.fetchers.get(re),sn=Fe(void 0,Xe?Xe.data:void 0);d.fetchers.set(re,sn),$.has(re)&&ce(re),K.controller&&$.set(re,K.controller)}),X({fetchers:new Map(d.fetchers)});let Re=()=>fe.forEach(K=>ce(K.key));x.signal.addEventListener("abort",Re);let{results:st,loaderResults:dt,fetcherResults:ut}=await Kt(d.matches,J,Ae,fe,Y);if(x.signal.aborted)return;x.signal.removeEventListener("abort",Re),Pe.delete(i),$.delete(i),fe.forEach(K=>$.delete(K.key));let Te=Ot(st);if(Te){if(Te.idx>=Ae.length){let K=fe[Te.idx-Ae.length].key;oe.add(K)}return ze(d,Te.result)}let{loaderData:Ye,errors:z}=_t(d,d.matches,Ae,dt,void 0,fe,ut,ve);if(d.fetchers.has(i)){let K=de(A.data);d.fetchers.set(i,K)}Vt(Me),d.navigation.state==="loading"&&Me>Oe?(_(O,"Expected pending action"),B&&B.abort(),He(d.navigation.location,{matches:J,loaderData:Ye,errors:z,fetchers:new Map(d.fetchers)})):(X({errors:z,loaderData:Ft(d.loaderData,Ye,J,z),fetchers:new Map(d.fetchers)}),ye=!1)}async function tn(i,l,u,b,S,M,P){let E=d.fetchers.get(i);ue(i,Fe(P,E?E.data:void 0),{flushSync:M});let x=new AbortController,j=Ue(e.history,u,x.signal);$.set(i,x);let V=$e,A=await pe("loader",j,b,S,s,a,c,m.v7_relativeSplatPath);if(se(A)&&(A=await zt(A,j.signal,!0)||A),$.get(i)===x&&$.delete(i),!j.signal.aborted){if(le.has(i)){ue(i,de(void 0));return}if(ge(A))if(Oe>V){ue(i,de(void 0));return}else{oe.add(i),await ze(d,A);return}if(me(A)){Ne(i,l,A.error);return}_(!se(A),"Unhandled fetcher deferred data"),ue(i,de(A.data))}}async function ze(i,l,u){let{submission:b,fetcherSubmission:S,replace:M}=u===void 0?{}:u;l.revalidate&&(ye=!0);let P=ne(i.location,l.location,{_isRedirect:!0});if(_(P,"Expected a location on the redirect navigation"),r){let N=!1;if(l.reloadDocument)N=!0;else if(Dt.test(l.location)){const Y=e.history.createURL(l.location);N=Y.origin!==t.location.origin||je(Y.pathname,c)==null}if(N){M?t.location.replace(l.location):t.location.assign(l.location);return}}B=null;let E=M===!0?W.Replace:W.Push,{formMethod:x,formAction:j,formEncType:V}=i.navigation;!b&&!S&&x&&j&&V&&(b=Nt(i.navigation));let A=b||S;if(Ur.has(l.status)&&A&&G(A.formMethod))await we(E,P,{submission:C({},A,{formAction:l.location}),preventScrollReset:T});else{let N=nt(P,b);await we(E,P,{overrideNavigation:N,fetcherSubmission:S,preventScrollReset:T})}}async function Kt(i,l,u,b,S){let M=await Promise.all([...u.map(x=>pe("loader",S,x,l,s,a,c,m.v7_relativeSplatPath)),...b.map(x=>x.matches&&x.match&&x.controller?pe("loader",Ue(e.history,x.path,x.controller.signal),x.match,x.matches,s,a,c,m.v7_relativeSplatPath):{type:H.error,error:k(404,{pathname:x.path})})]),P=M.slice(0,u.length),E=M.slice(u.length);return await Promise.all([Ht(i,u,P,P.map(()=>S.signal),!1,d.loaderData),Ht(i,b.map(x=>x.match),E,b.map(x=>x.controller?x.controller.signal:null),!0)]),{results:M,loaderResults:P,fetcherResults:E}}function it(){ye=!0,We.push(...ot()),Le.forEach((i,l)=>{$.has(l)&&(ke.push(l),ce(l))})}function ue(i,l,u){u===void 0&&(u={}),d.fetchers.set(i,l),X({fetchers:new Map(d.fetchers)},{flushSync:(u&&u.flushSync)===!0})}function Ne(i,l,u,b){b===void 0&&(b={});let S=De(d.matches,l);Ve(i),X({errors:{[S.route.id]:u},fetchers:new Map(d.fetchers)},{flushSync:(b&&b.flushSync)===!0})}function Wt(i){return m.v7_fetcherPersist&&(Ie.set(i,(Ie.get(i)||0)+1),le.has(i)&&le.delete(i)),d.fetchers.get(i)||St}function Ve(i){let l=d.fetchers.get(i);$.has(i)&&!(l&&l.state==="loading"&&Pe.has(i))&&ce(i),Le.delete(i),Pe.delete(i),oe.delete(i),le.delete(i),d.fetchers.delete(i)}function rn(i){if(m.v7_fetcherPersist){let l=(Ie.get(i)||0)-1;l<=0?(Ie.delete(i),le.add(i)):Ie.set(i,l)}else Ve(i);X({fetchers:new Map(d.fetchers)})}function ce(i){let l=$.get(i);_(l,"Expected fetch controller: "+i),l.abort(),$.delete(i)}function kt(i){for(let l of i){let u=Wt(l),b=de(u.data);d.fetchers.set(l,b)}}function $t(){let i=[],l=!1;for(let u of oe){let b=d.fetchers.get(u);_(b,"Expected fetcher: "+u),b.state==="loading"&&(oe.delete(u),i.push(u),l=!0)}return kt(i),l}function Vt(i){let l=[];for(let[u,b]of Pe)if(b<i){let S=d.fetchers.get(u);_(S,"Expected fetcher: "+u),S.state==="loading"&&(ce(u),Pe.delete(u),l.push(u))}return kt(l),l.length>0}function nn(i,l){let u=d.blockers.get(i)||Ce;return be.get(i)!==l&&be.set(i,l),u}function Jt(i){d.blockers.delete(i),be.delete(i)}function Je(i,l){let u=d.blockers.get(i)||Ce;_(u.state==="unblocked"&&l.state==="blocked"||u.state==="blocked"&&l.state==="blocked"||u.state==="blocked"&&l.state==="proceeding"||u.state==="blocked"&&l.state==="unblocked"||u.state==="proceeding"&&l.state==="unblocked","Invalid blocker state transition: "+u.state+" -> "+l.state);let b=new Map(d.blockers);b.set(i,l),X({blockers:b})}function Yt(i){let{currentLocation:l,nextLocation:u,historyAction:b}=i;if(be.size===0)return;be.size>1&&Z(!1,"A router only supports one blocker at a time");let S=Array.from(be.entries()),[M,P]=S[S.length-1],E=d.blockers.get(M);if(!(E&&E.state==="proceeding")&&P({currentLocation:l,nextLocation:u,historyAction:b}))return M}function ot(i){let l=[];return ve.forEach((u,b)=>{(!i||i(b))&&(u.cancel(),l.push(b),ve.delete(b))}),l}function an(i,l,u){if(g=i,R=l,y=u||null,!w&&d.navigation===Qe){w=!0;let b=Gt(d.location,d.matches);b!=null&&X({restoreScrollPosition:b})}return()=>{g=null,R=null,y=null}}function Xt(i,l){return y&&y(i,l.map(b=>ar(b,d.loaderData)))||i.key}function on(i,l){if(g&&R){let u=Xt(i,l);g[u]=R()}}function Gt(i,l){if(g){let u=Xt(i,l),b=g[u];if(typeof b=="number")return b}return null}function ln(i){s={},f=Be(i,a,void 0,s)}return I={get basename(){return c},get future(){return m},get state(){return d},get routes(){return o},get window(){return t},initialize:Jr,subscribe:Xr,enableScrollRestoration:an,navigate:Bt,fetch:Zr,revalidate:Gr,createHref:i=>e.history.createHref(i),encodeLocation:i=>e.history.encodeLocation(i),getFetcher:Wt,deleteFetcher:rn,dispose:Yr,getBlocker:nn,deleteBlocker:Jt,_internalFetchControllers:$,_internalActiveDeferreds:ve,_internalSetRoutes:ln},I}const Fr=Symbol("deferred");function gn(e,t){_(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let r={},n=(t?t.basename:null)||"/",a;if(t!=null&&t.mapRouteProperties)a=t.mapRouteProperties;else if(t!=null&&t.detectErrorBoundary){let g=t.detectErrorBoundary;a=y=>({hasErrorBoundary:g(y)})}else a=xt;let s=C({v7_relativeSplatPath:!1},t?t.future:null),o=Be(e,a,void 0,r);async function f(g,y){let{requestContext:R}=y===void 0?{}:y,w=new URL(g.url),v=g.method,p=ne("",ae(w),null,"default"),L=he(o,p,n);if(!tt(v)&&v!=="HEAD"){let U=k(405,{method:v}),{matches:I,route:d}=Ke(o);return{basename:n,location:p,matches:I,loaderData:{},actionData:null,errors:{[d.id]:U},statusCode:U.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!L){let U=k(404,{pathname:p.pathname}),{matches:I,route:d}=Ke(o);return{basename:n,location:p,matches:I,loaderData:{},actionData:null,errors:{[d.id]:U},statusCode:U.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let F=await m(g,p,L,R);return xe(F)?F:C({location:p,basename:n},F)}async function c(g,y){let{routeId:R,requestContext:w}=y===void 0?{}:y,v=new URL(g.url),p=g.method,L=ne("",ae(v),null,"default"),F=he(o,L,n);if(!tt(p)&&p!=="HEAD"&&p!=="OPTIONS")throw k(405,{method:p});if(!F)throw k(404,{pathname:L.pathname});let U=R?F.find(T=>T.route.id===R):_e(F,L);if(R&&!U)throw k(403,{pathname:L.pathname,routeId:R});if(!U)throw k(404,{pathname:L.pathname});let I=await m(g,L,F,w,U);if(xe(I))return I;let d=I.errors?Object.values(I.errors)[0]:void 0;if(d!==void 0)throw d;if(I.actionData)return Object.values(I.actionData)[0];if(I.loaderData){var O;let T=Object.values(I.loaderData)[0];return(O=I.activeDeferreds)!=null&&O[U.route.id]&&(T[Fr]=I.activeDeferreds[U.route.id]),T}}async function m(g,y,R,w,v){_(g.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(G(g.method.toLowerCase()))return await h(g,R,v||_e(R,y),w,v!=null);let p=await D(g,R,w,v);return xe(p)?p:C({},p,{actionData:null,actionHeaders:{}})}catch(p){if(Kr(p)){if(p.type===H.error)throw p.response;return p.response}if(Br(p))return p;throw p}}async function h(g,y,R,w,v){let p;if(!R.route.action&&!R.route.lazy){let U=k(405,{method:g.method,pathname:new URL(g.url).pathname,routeId:R.route.id});if(v)throw U;p={type:H.error,error:U}}else if(p=await pe("action",g,R,y,r,a,n,s.v7_relativeSplatPath,{isStaticRequest:!0,isRouteRequest:v,requestContext:w}),g.signal.aborted){let U=v?"queryRoute":"query";throw new Error(U+"() call aborted: "+g.method+" "+g.url)}if(ge(p))throw new Response(null,{status:p.status,headers:{Location:p.location}});if(se(p)){let U=k(400,{type:"defer-action"});if(v)throw U;p={type:H.error,error:U}}if(v){if(me(p))throw p.error;return{matches:[R],loaderData:{},actionData:{[R.route.id]:p.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(me(p)){let U=De(y,R.route.id),I=await D(g,y,w,void 0,{[U.route.id]:p.error});return C({},I,{statusCode:wt(p.error)?p.error.status:500,actionData:null,actionHeaders:C({},p.headers?{[R.route.id]:p.headers}:{})})}let L=new Request(g.url,{headers:g.headers,redirect:g.redirect,signal:g.signal}),F=await D(L,y,w);return C({},F,p.statusCode?{statusCode:p.statusCode}:{},{actionData:{[R.route.id]:p.data},actionHeaders:C({},p.headers?{[R.route.id]:p.headers}:{})})}async function D(g,y,R,w,v){let p=w!=null;if(p&&!(w!=null&&w.route.loader)&&!(w!=null&&w.route.lazy))throw k(400,{method:g.method,pathname:new URL(g.url).pathname,routeId:w==null?void 0:w.route.id});let F=(w?[w]:Lt(y,Object.keys(v||{})[0])).filter(T=>T.route.loader||T.route.lazy);if(F.length===0)return{matches:y,loaderData:y.reduce((T,B)=>Object.assign(T,{[B.route.id]:null}),{}),errors:v||null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let U=await Promise.all([...F.map(T=>pe("loader",g,T,y,r,a,n,s.v7_relativeSplatPath,{isStaticRequest:!0,isRouteRequest:p,requestContext:R}))]);if(g.signal.aborted){let T=p?"queryRoute":"query";throw new Error(T+"() call aborted: "+g.method+" "+g.url)}let I=new Map,d=Ut(y,F,U,v,I),O=new Set(F.map(T=>T.route.id));return y.forEach(T=>{O.has(T.route.id)||(d.loaderData[T.route.id]=null)}),C({},d,{matches:y,activeDeferreds:I.size>0?Object.fromEntries(I.entries()):null})}return{dataRoutes:o,query:f,queryRoute:c}}function yn(e,t,r){return C({},t,{statusCode:500,errors:{[t._deepestRenderedBoundaryId||e[0].id]:r}})}function Or(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ze(e,t,r,n,a,s,o,f){let c,m;if(o){c=[];for(let D of t)if(c.push(D),D.route.id===o){m=D;break}}else c=t,m=t[t.length-1];let h=Rr(a||".",wr(c,s),je(e.pathname,r)||e.pathname,f==="path");return a==null&&(h.search=e.search,h.hash=e.hash),(a==null||a===""||a===".")&&m&&m.route.index&&!rt(h.search)&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(h.pathname=h.pathname==="/"?r:Se([r,h.pathname])),ae(h)}function Pt(e,t,r,n){if(!n||!Or(n))return{path:r};if(n.formMethod&&!tt(n.formMethod))return{path:r,error:k(405,{method:n.formMethod})};let a=()=>({path:r,error:k(400,{type:"invalid-body"})}),s=n.formMethod||"get",o=e?s.toUpperCase():s.toLowerCase(),f=It(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!G(o))return a();let g=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,R)=>{let[w,v]=R;return""+y+w+"="+v+`
|
|
2
|
-
`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:f,formEncType:n.formEncType,formData:void 0,json:void 0,text:g}}}else if(n.formEncType==="application/json"){if(!G(o))return a();try{let g=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:f,formEncType:n.formEncType,formData:void 0,json:g,text:void 0}}}catch{return a()}}}_(typeof FormData=="function","FormData is not available in this environment");let c,m;if(n.formData)c=et(n.formData),m=n.formData;else if(n.body instanceof FormData)c=et(n.body),m=n.body;else if(n.body instanceof URLSearchParams)c=n.body,m=Ct(c);else if(n.body==null)c=new URLSearchParams,m=new FormData;else try{c=new URLSearchParams(n.body),m=Ct(c)}catch{return a()}let h={formMethod:o,formAction:f,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:m,json:void 0,text:void 0};if(G(h.formMethod))return{path:r,submission:h};let D=ee(r);return t&&D.search&&rt(D.search)&&c.append("index",""),D.search="?"+c,{path:ae(D),submission:h}}function Lt(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function Mt(e,t,r,n,a,s,o,f,c,m,h,D,g,y,R,w){let v=w?Object.values(w)[0]:R?Object.values(R)[0]:void 0,p=e.createURL(t.location),L=e.createURL(a),F=w?Object.keys(w)[0]:void 0,I=Lt(r,F).filter((O,T)=>{if(s)return Ir(t,O.route);if(O.route.lazy)return!0;if(O.route.loader==null)return!1;if(Hr(t.loaderData,t.matches[T],O)||f.some(Q=>Q===O.route.id))return!0;let B=t.matches[T],te=O;return Tt(O,C({currentUrl:p,currentParams:B.params,nextUrl:L,nextParams:te.params},n,{actionResult:v,defaultShouldRevalidate:o||p.pathname+p.search===L.pathname+L.search||p.search!==L.search||At(B,te)}))}),d=[];return h.forEach((O,T)=>{if(s||!r.some(Ee=>Ee.route.id===O.routeId)||m.has(T))return;let B=he(g,O.path,y);if(!B){d.push({key:T,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let te=t.fetchers.get(T),Q=_e(B,O.path),ie=!1;D.has(T)?ie=!1:c.includes(T)?ie=!0:te&&te.state!=="idle"&&te.data===void 0?ie=o:ie=Tt(Q,C({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:L,nextParams:r[r.length-1].params},n,{actionResult:v,defaultShouldRevalidate:o})),ie&&d.push({key:T,routeId:O.routeId,path:O.path,matches:B,match:Q,controller:new AbortController})}),[I,d]}function Ir(e,t){return t.loader?t.loader.hydrate?!0:e.loaderData[t.id]===void 0&&(!e.errors||e.errors[t.id]===void 0):!1}function Hr(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function At(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Tt(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function jt(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];_(a,"No route found in manifest");let s={};for(let o in n){let c=a[o]!==void 0&&o!=="hasErrorBoundary";Z(!c,'Route "'+a.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!c&&!rr.has(o)&&(s[o]=n[o])}Object.assign(a,s),Object.assign(a,C({},t(a),{lazy:void 0}))}async function pe(e,t,r,n,a,s,o,f,c){c===void 0&&(c={});let m,h,D,g=w=>{let v,p=new Promise((L,F)=>v=F);return D=()=>v(),t.signal.addEventListener("abort",D),Promise.race([w({request:t,params:r.params,context:c.requestContext}),p])};try{let w=r.route[e];if(r.route.lazy)if(w){let v,p=await Promise.all([g(w).catch(L=>{v=L}),jt(r.route,s,a)]);if(v)throw v;h=p[0]}else if(await jt(r.route,s,a),w=r.route[e],w)h=await g(w);else if(e==="action"){let v=new URL(t.url),p=v.pathname+v.search;throw k(405,{method:t.method,pathname:p,routeId:r.route.id})}else return{type:H.data,data:void 0};else if(w)h=await g(w);else{let v=new URL(t.url),p=v.pathname+v.search;throw k(404,{pathname:p})}_(h!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(w){m=H.error,h=w}finally{D&&t.signal.removeEventListener("abort",D)}if(xe(h)){let w=h.status;if(Cr.has(w)){let p=h.headers.get("Location");if(_(p,"Redirects returned/thrown from loaders/actions must have a Location header"),!Dt.test(p))p=Ze(new URL(t.url),n.slice(0,n.indexOf(r)+1),o,!0,p,f);else if(!c.isStaticRequest){let L=new URL(t.url),F=p.startsWith("//")?new URL(L.protocol+p):new URL(p),U=je(F.pathname,o)!=null;F.origin===L.origin&&U&&(p=F.pathname+F.search+F.hash)}if(c.isStaticRequest)throw h.headers.set("Location",p),h;return{type:H.redirect,status:w,location:p,revalidate:h.headers.get("X-Remix-Revalidate")!==null,reloadDocument:h.headers.get("X-Remix-Reload-Document")!==null}}if(c.isRouteRequest)throw{type:m===H.error?H.error:H.data,response:h};let v;try{let p=h.headers.get("Content-Type");p&&/\bapplication\/json\b/.test(p)?v=await h.json():v=await h.text()}catch(p){return{type:H.error,error:p}}return m===H.error?{type:m,error:new qe(w,h.statusText,v),headers:h.headers}:{type:H.data,data:v,statusCode:h.status,headers:h.headers}}if(m===H.error)return{type:m,error:h};if(Nr(h)){var y,R;return{type:H.deferred,deferredData:h,statusCode:(y=h.init)==null?void 0:y.status,headers:((R=h.init)==null?void 0:R.headers)&&new Headers(h.init.headers)}}return{type:H.data,data:h}}function Ue(e,t,r,n){let a=e.createURL(It(t)).toString(),s={signal:r};if(n&&G(n.formMethod)){let{formMethod:o,formEncType:f}=n;s.method=o.toUpperCase(),f==="application/json"?(s.headers=new Headers({"Content-Type":f}),s.body=JSON.stringify(n.json)):f==="text/plain"?s.body=n.text:f==="application/x-www-form-urlencoded"&&n.formData?s.body=et(n.formData):s.body=n.formData}return new Request(a,s)}function et(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Ct(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Ut(e,t,r,n,a){let s={},o=null,f,c=!1,m={};return r.forEach((h,D)=>{let g=t[D].route.id;if(_(!ge(h),"Cannot handle redirect results in processLoaderData"),me(h)){let y=De(e,g),R=h.error;n&&(R=Object.values(n)[0],n=void 0),o=o||{},o[y.route.id]==null&&(o[y.route.id]=R),s[g]=void 0,c||(c=!0,f=wt(h.error)?h.error.status:500),h.headers&&(m[g]=h.headers)}else se(h)?(a.set(g,h.deferredData),s[g]=h.deferredData.data):s[g]=h.data,h.statusCode!=null&&h.statusCode!==200&&!c&&(f=h.statusCode),h.headers&&(m[g]=h.headers)}),n&&(o=n,s[Object.keys(n)[0]]=void 0),{loaderData:s,errors:o,statusCode:f||200,loaderHeaders:m}}function _t(e,t,r,n,a,s,o,f){let{loaderData:c,errors:m}=Ut(t,r,n,a,f);for(let h=0;h<s.length;h++){let{key:D,match:g,controller:y}=s[h];_(o!==void 0&&o[h]!==void 0,"Did not find corresponding fetcher result");let R=o[h];if(!(y&&y.signal.aborted))if(me(R)){let w=De(e.matches,g==null?void 0:g.route.id);m&&m[w.route.id]||(m=C({},m,{[w.route.id]:R.error})),e.fetchers.delete(D)}else if(ge(R))_(!1,"Unhandled fetcher revalidation redirect");else if(se(R))_(!1,"Unhandled fetcher deferred data");else{let w=de(R.data);e.fetchers.set(D,w)}}return{loaderData:c,errors:m}}function Ft(e,t,r,n){let a=C({},t);for(let s of r){let o=s.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(a[o]=t[o]):e[o]!==void 0&&s.route.loader&&(a[o]=e[o]),n&&n.hasOwnProperty(o))break}return a}function De(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Ke(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function k(e,t){let{pathname:r,routeId:n,method:a,type:s}=t===void 0?{}:t,o="Unknown Server Error",f="Unknown @remix-run/router error";return e===400?(o="Bad Request",a&&r&&n?f="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":s==="defer-action"?f="defer() is not supported in actions":s==="invalid-body"&&(f="Unable to encode submission body")):e===403?(o="Forbidden",f='Route "'+n+'" does not match URL "'+r+'"'):e===404?(o="Not Found",f='No route matches URL "'+r+'"'):e===405&&(o="Method Not Allowed",a&&r&&n?f="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(f='Invalid request method "'+a.toUpperCase()+'"')),new qe(e||500,o,new Error(f),!0)}function Ot(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(ge(r))return{result:r,idx:t}}}function It(e){let t=typeof e=="string"?ee(e):e;return ae(C({},t,{hash:""}))}function zr(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function se(e){return e.type===H.deferred}function me(e){return e.type===H.error}function ge(e){return(e&&e.type)===H.redirect}function Nr(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function xe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Br(e){if(!xe(e))return!1;let t=e.status,r=e.headers.get("Location");return t>=300&&t<=399&&r!=null}function Kr(e){return e&&xe(e.response)&&(e.type===H.data||e.type===H.error)}function tt(e){return jr.has(e.toLowerCase())}function G(e){return Ar.has(e.toLowerCase())}async function Ht(e,t,r,n,a,s){for(let o=0;o<r.length;o++){let f=r[o],c=t[o];if(!c)continue;let m=e.find(D=>D.route.id===c.route.id),h=m!=null&&!At(m,c)&&(s&&s[c.route.id])!==void 0;if(se(f)&&(a||h)){let D=n[o];_(D,"Expected an AbortSignal for revalidating fetcher deferred result"),await zt(f,D,a).then(g=>{g&&(r[o]=g||r[o])})}}}async function zt(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:H.data,data:e.deferredData.unwrappedData}}catch(a){return{type:H.error,error:a}}return{type:H.data,data:e.deferredData.data}}}function rt(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function _e(e,t){let r=typeof t=="string"?ee(t).search:t.search;if(e[e.length-1].route.index&&rt(r||""))return e[e.length-1];let n=vt(e);return n[n.length-1]}function Nt(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:s,json:o}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(s!=null)return{formMethod:t,formAction:r,formEncType:n,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function nt(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Wr(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Fe(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function kr(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function de(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $r(e,t){try{let r=e.sessionStorage.getItem(Et);if(r){let n=JSON.parse(r);for(let[a,s]of Object.entries(n||{}))s&&Array.isArray(s)&&t.set(a,new Set(s||[]))}}catch{}}function Vr(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(Et,JSON.stringify(r))}catch(n){Z(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[1216],{79655:function(Ge,$,F){var q,ee;F.r($),F.d($,{AbortedDeferredError:function(){return E.X3},Await:function(){return i.Await},BrowserRouter:function(){return Ue},Form:function(){return oe},HashRouter:function(){return De},Link:function(){return re},MemoryRouter:function(){return i.MemoryRouter},NavLink:function(){return Ie},Navigate:function(){return i.Navigate},NavigationType:function(){return E.aU},Outlet:function(){return i.Outlet},Route:function(){return i.Route},Router:function(){return i.Router},RouterProvider:function(){return Ae},Routes:function(){return i.Routes},ScrollRestoration:function(){return Ke},UNSAFE_DataRouterContext:function(){return i.UNSAFE_DataRouterContext},UNSAFE_DataRouterStateContext:function(){return i.UNSAFE_DataRouterStateContext},UNSAFE_FetchersContext:function(){return Y},UNSAFE_LocationContext:function(){return i.UNSAFE_LocationContext},UNSAFE_NavigationContext:function(){return i.UNSAFE_NavigationContext},UNSAFE_RouteContext:function(){return i.UNSAFE_RouteContext},UNSAFE_ViewTransitionContext:function(){return Z},UNSAFE_useRouteId:function(){return i.UNSAFE_useRouteId},UNSAFE_useScrollRestoration:function(){return le},createBrowserRouter:function(){return be},createHashRouter:function(){return Ce},createMemoryRouter:function(){return i.createMemoryRouter},createPath:function(){return E.Ep},createRoutesFromChildren:function(){return i.createRoutesFromChildren},createRoutesFromElements:function(){return i.createRoutesFromElements},createSearchParams:function(){return K},defer:function(){return E.PQ},generatePath:function(){return E.Gn},isRouteErrorResponse:function(){return E.WK},json:function(){return E.AV},matchPath:function(){return E.LX},matchRoutes:function(){return E.fp},parsePath:function(){return E.cP},redirect:function(){return E.uX},redirectDocument:function(){return E.fZ},renderMatches:function(){return i.renderMatches},resolvePath:function(){return E.i3},unstable_HistoryRouter:function(){return Oe},unstable_usePrompt:function(){return ze},unstable_useViewTransitionState:function(){return ce},useActionData:function(){return i.useActionData},useAsyncError:function(){return i.useAsyncError},useAsyncValue:function(){return i.useAsyncValue},useBeforeUnload:function(){return Xe},useBlocker:function(){return i.useBlocker},useFetcher:function(){return Ve},useFetchers:function(){return Je},useFormAction:function(){return ue},useHref:function(){return i.useHref},useInRouterContext:function(){return i.useInRouterContext},useLinkClickHandler:function(){return ae},useLoaderData:function(){return i.useLoaderData},useLocation:function(){return i.useLocation},useMatch:function(){return i.useMatch},useMatches:function(){return i.useMatches},useNavigate:function(){return i.useNavigate},useNavigation:function(){return i.useNavigation},useNavigationType:function(){return i.useNavigationType},useOutlet:function(){return i.useOutlet},useOutletContext:function(){return i.useOutletContext},useParams:function(){return i.useParams},useResolvedPath:function(){return i.useResolvedPath},useRevalidator:function(){return i.useRevalidator},useRouteError:function(){return i.useRouteError},useRouteLoaderData:function(){return i.useRouteLoaderData},useRoutes:function(){return i.useRoutes},useSearchParams:function(){return Be},useSubmit:function(){return Q}});var a=F(67294),fe=F(73935),i=F(89250),E=F(44536),v=F(12599);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_.apply(this,arguments)}function X(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}const k="get",j="application/x-www-form-urlencoded";function I(e){return e!=null&&typeof e.tagName=="string"}function de(e){return I(e)&&e.tagName.toLowerCase()==="button"}function me(e){return I(e)&&e.tagName.toLowerCase()==="form"}function he(e){return I(e)&&e.tagName.toLowerCase()==="input"}function ve(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pe(e,t){return e.button===0&&(!t||t==="_self")&&!ve(e)}function K(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let o=e[n];return t.concat(Array.isArray(o)?o.map(r=>[n,r]):[[n,o]])},[]))}function Se(e,t){let n=K(e);return t&&t.forEach((o,r)=>{n.has(r)||t.getAll(r).forEach(s=>{n.append(r,s)})}),n}let B=null;function Re(){if(B===null)try{new FormData(document.createElement("form"),0),B=!1}catch{B=!0}return B}const we=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function z(e){return e!=null&&!we.has(e)?null:e}function ye(e,t){let n,o,r,s,u;if(me(e)){let c=e.getAttribute("action");o=c?(0,v.Zn)(c,t):null,n=e.getAttribute("method")||k,r=z(e.getAttribute("enctype"))||j,s=new FormData(e)}else if(de(e)||he(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||c.getAttribute("action");if(o=l?(0,v.Zn)(l,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||k,r=z(e.getAttribute("formenctype"))||z(c.getAttribute("enctype"))||j,s=new FormData(c,e),!Re()){let{name:f,type:d,value:m}=e;if(d==="image"){let h=f?f+".":"";s.append(h+"x","0"),s.append(h+"y","0")}else f&&s.append(f,m)}}else{if(I(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=k,o=null,r=j,u=e}return s&&r==="text/plain"&&(u=s,s=void 0),{action:o,method:n.toLowerCase(),encType:r,formData:s,body:u}}const Ee=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ge=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],_e=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];function be(e,t){return(0,v.p7)({basename:t==null?void 0:t.basename,future:_({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:(0,v.lX)({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||te(),routes:e,mapRouteProperties:i.UNSAFE_mapRouteProperties,window:t==null?void 0:t.window}).initialize()}function Ce(e,t){return(0,v.p7)({basename:t==null?void 0:t.basename,future:_({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:(0,v.q_)({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||te(),routes:e,mapRouteProperties:i.UNSAFE_mapRouteProperties,window:t==null?void 0:t.window}).initialize()}function te(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_({},t,{errors:Le(t.errors)})),t}function Le(e){if(!e)return null;let t=Object.entries(e),n={};for(let[o,r]of t)if(r&&r.__type==="RouteErrorResponse")n[o]=new v.OF(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type==="Error"){if(r.__subType){let s=window[r.__subType];if(typeof s=="function")try{let u=new s(r.message);u.stack="",n[o]=u}catch{}}if(n[o]==null){let s=new Error(r.message);s.stack="",n[o]=s}}else n[o]=r;return n}const Z=a.createContext({isTransitioning:!1}),Y=a.createContext(new Map),Te="startTransition",A=(q||(q=F.t(a,2)))[Te],xe="flushSync",ne=(ee||(ee=F.t(fe,2)))[xe];function Fe(e){A?A(e):e()}function O(e){ne?ne(e):e()}class Pe{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=o=>{this.status==="pending"&&(this.status="resolved",t(o))},this.reject=o=>{this.status==="pending"&&(this.status="rejected",n(o))}})}}function Ae(e){let{fallbackElement:t,router:n,future:o}=e,[r,s]=a.useState(n.state),[u,c]=a.useState(),[l,f]=a.useState({isTransitioning:!1}),[d,m]=a.useState(),[h,g]=a.useState(),[y,C]=a.useState(),L=a.useRef(new Map),{v7_startTransition:R}=o||{},p=a.useCallback(w=>{R?Fe(w):w()},[R]),S=a.useCallback((w,P)=>{let{deletedFetchers:b,unstable_flushSync:J,unstable_viewTransitionOpts:N}=P;b.forEach(U=>L.current.delete(U)),w.fetchers.forEach((U,Ye)=>{U.data!==void 0&&L.current.set(Ye,U.data)});let Ze=n.window==null||typeof n.window.document.startViewTransition!="function";if(!N||Ze){J?O(()=>s(w)):p(()=>s(w));return}if(J){O(()=>{h&&(d&&d.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let U=n.window.document.startViewTransition(()=>{O(()=>s(w))});U.finished.finally(()=>{O(()=>{m(void 0),g(void 0),c(void 0),f({isTransitioning:!1})})}),O(()=>g(U));return}h?(d&&d.resolve(),h.skipTransition(),C({state:w,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(c(w),f({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[n.window,h,d,L,p]);a.useLayoutEffect(()=>n.subscribe(S),[n,S]),a.useEffect(()=>{l.isTransitioning&&!l.flushSync&&m(new Pe)},[l]),a.useEffect(()=>{if(d&&u&&n.window){let w=u,P=d.promise,b=n.window.document.startViewTransition(async()=>{p(()=>s(w)),await P});b.finished.finally(()=>{m(void 0),g(void 0),c(void 0),f({isTransitioning:!1})}),g(b)}},[p,u,d,n.window]),a.useEffect(()=>{d&&u&&r.location.key===u.location.key&&d.resolve()},[d,h,r.location,u]),a.useEffect(()=>{!l.isTransitioning&&y&&(c(y.state),f({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),C(void 0))},[l.isTransitioning,y]),a.useEffect(()=>{},[]);let T=a.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,P,b)=>n.navigate(w,{state:P,preventScrollReset:b==null?void 0:b.preventScrollReset}),replace:(w,P,b)=>n.navigate(w,{replace:!0,state:P,preventScrollReset:b==null?void 0:b.preventScrollReset})}),[n]),x=n.basename||"/",V=a.useMemo(()=>({router:n,navigator:T,static:!1,basename:x}),[n,T,x]);return a.createElement(a.Fragment,null,a.createElement(i.UNSAFE_DataRouterContext.Provider,{value:V},a.createElement(i.UNSAFE_DataRouterStateContext.Provider,{value:r},a.createElement(Y.Provider,{value:L.current},a.createElement(Z.Provider,{value:l},a.createElement(i.Router,{basename:x,location:r.location,navigationType:r.historyAction,navigator:T,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},r.initialized||n.future.v7_partialHydration?a.createElement(Ne,{routes:n.routes,future:n.future,state:r}):t))))),null)}function Ne(e){let{routes:t,future:n,state:o}=e;return(0,i.UNSAFE_useRoutesImpl)(t,void 0,o,n)}function Ue(e){let{basename:t,children:n,future:o,window:r}=e,s=a.useRef();s.current==null&&(s.current=(0,v.lX)({window:r,v5Compat:!0}));let u=s.current,[c,l]=a.useState({action:u.action,location:u.location}),{v7_startTransition:f}=o||{},d=a.useCallback(m=>{f&&A?A(()=>l(m)):l(m)},[l,f]);return a.useLayoutEffect(()=>u.listen(d),[u,d]),a.createElement(i.Router,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:o})}function De(e){let{basename:t,children:n,future:o,window:r}=e,s=a.useRef();s.current==null&&(s.current=(0,v.q_)({window:r,v5Compat:!0}));let u=s.current,[c,l]=a.useState({action:u.action,location:u.location}),{v7_startTransition:f}=o||{},d=a.useCallback(m=>{f&&A?A(()=>l(m)):l(m)},[l,f]);return a.useLayoutEffect(()=>u.listen(d),[u,d]),a.createElement(i.Router,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:o})}function Oe(e){let{basename:t,children:n,future:o,history:r}=e,[s,u]=a.useState({action:r.action,location:r.location}),{v7_startTransition:c}=o||{},l=a.useCallback(f=>{c&&A?A(()=>u(f)):u(f)},[u,c]);return a.useLayoutEffect(()=>r.listen(l),[r,l]),a.createElement(i.Router,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:r,future:o})}const Me=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ke=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,re=a.forwardRef(function(t,n){let{onClick:o,relative:r,reloadDocument:s,replace:u,state:c,target:l,to:f,preventScrollReset:d,unstable_viewTransition:m}=t,h=X(t,Ee),{basename:g}=a.useContext(i.UNSAFE_NavigationContext),y,C=!1;if(typeof f=="string"&&ke.test(f)&&(y=f,Me))try{let S=new URL(window.location.href),T=f.startsWith("//")?new URL(S.protocol+f):new URL(f),x=(0,v.Zn)(T.pathname,g);T.origin===S.origin&&x!=null?f=x+T.search+T.hash:C=!0}catch{}let L=(0,i.useHref)(f,{relative:r}),R=ae(f,{replace:u,state:c,target:l,preventScrollReset:d,relative:r,unstable_viewTransition:m});function p(S){o&&o(S),S.defaultPrevented||R(S)}return a.createElement("a",_({},h,{href:y||L,onClick:C||s?o:p,ref:n,target:l}))}),Ie=a.forwardRef(function(t,n){let{"aria-current":o="page",caseSensitive:r=!1,className:s="",end:u=!1,style:c,to:l,unstable_viewTransition:f,children:d}=t,m=X(t,ge),h=(0,i.useResolvedPath)(l,{relative:m.relative}),g=(0,i.useLocation)(),y=a.useContext(i.UNSAFE_DataRouterStateContext),{navigator:C}=a.useContext(i.UNSAFE_NavigationContext),L=y!=null&&ce(h)&&f===!0,R=C.encodeLocation?C.encodeLocation(h).pathname:h.pathname,p=g.pathname,S=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;r||(p=p.toLowerCase(),S=S?S.toLowerCase():null,R=R.toLowerCase());const T=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let x=p===R||!u&&p.startsWith(R)&&p.charAt(T)==="/",V=S!=null&&(S===R||!u&&S.startsWith(R)&&S.charAt(R.length)==="/"),w={isActive:x,isPending:V,isTransitioning:L},P=x?o:void 0,b;typeof s=="function"?b=s(w):b=[s,x?"active":null,V?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let J=typeof c=="function"?c(w):c;return a.createElement(re,_({},m,{"aria-current":P,className:b,ref:n,style:J,to:l,unstable_viewTransition:f}),typeof d=="function"?d(w):d)}),oe=a.forwardRef((e,t)=>{let{fetcherKey:n,navigate:o,reloadDocument:r,replace:s,state:u,method:c=k,action:l,onSubmit:f,relative:d,preventScrollReset:m,unstable_viewTransition:h}=e,g=X(e,_e),y=Q(),C=ue(l,{relative:d}),L=c.toLowerCase()==="get"?"get":"post",R=p=>{if(f&&f(p),p.defaultPrevented)return;p.preventDefault();let S=p.nativeEvent.submitter,T=(S==null?void 0:S.getAttribute("formmethod"))||c;y(S||p.currentTarget,{fetcherKey:n,method:T,navigate:o,replace:s,state:u,relative:d,preventScrollReset:m,unstable_viewTransition:h})};return a.createElement("form",_({ref:t,method:L,action:C,onSubmit:r?f:R},g))});function Ke(e){let{getKey:t,storageKey:n}=e;return le({getKey:t,storageKey:n}),null}var D;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(D||(D={}));var M;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(M||(M={}));function Qe(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function W(e){let t=a.useContext(i.UNSAFE_DataRouterContext);return t||(0,v.J0)(!1),t}function G(e){let t=a.useContext(i.UNSAFE_DataRouterStateContext);return t||(0,v.J0)(!1),t}function ae(e,t){let{target:n,replace:o,state:r,preventScrollReset:s,relative:u,unstable_viewTransition:c}=t===void 0?{}:t,l=(0,i.useNavigate)(),f=(0,i.useLocation)(),d=(0,i.useResolvedPath)(e,{relative:u});return a.useCallback(m=>{if(pe(m,n)){m.preventDefault();let h=o!==void 0?o:(0,E.Ep)(f)===(0,E.Ep)(d);l(e,{replace:h,state:r,preventScrollReset:s,relative:u,unstable_viewTransition:c})}},[f,l,d,o,r,n,e,s,u,c])}function Be(e){let t=a.useRef(K(e)),n=a.useRef(!1),o=(0,i.useLocation)(),r=a.useMemo(()=>Se(o.search,n.current?null:t.current),[o.search]),s=(0,i.useNavigate)(),u=a.useCallback((c,l)=>{const f=K(typeof c=="function"?c(r):c);n.current=!0,s("?"+f,l)},[s,r]);return[r,u]}function We(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let He=0,ie=()=>"__"+String(++He)+"__";function Q(){let{router:e}=W(D.UseSubmit),{basename:t}=a.useContext(i.UNSAFE_NavigationContext),n=(0,i.UNSAFE_useRouteId)();return a.useCallback(function(o,r){r===void 0&&(r={}),We();let{action:s,method:u,encType:c,formData:l,body:f}=ye(o,t);if(r.navigate===!1){let d=r.fetcherKey||ie();e.fetch(d,n,r.action||s,{preventScrollReset:r.preventScrollReset,formData:l,body:f,formMethod:r.method||u,formEncType:r.encType||c,unstable_flushSync:r.unstable_flushSync})}else e.navigate(r.action||s,{preventScrollReset:r.preventScrollReset,formData:l,body:f,formMethod:r.method||u,formEncType:r.encType||c,replace:r.replace,state:r.state,fromRouteId:n,unstable_flushSync:r.unstable_flushSync,unstable_viewTransition:r.unstable_viewTransition})},[e,t,n])}function ue(e,t){let{relative:n}=t===void 0?{}:t,{basename:o}=a.useContext(i.UNSAFE_NavigationContext),r=a.useContext(i.UNSAFE_RouteContext);r||(0,v.J0)(!1);let[s]=r.matches.slice(-1),u=_({},(0,i.useResolvedPath)(e||".",{relative:n})),c=(0,i.useLocation)();if(e==null){u.search=c.search;let l=new URLSearchParams(u.search);l.has("index")&&l.get("index")===""&&(l.delete("index"),u.search=l.toString()?"?"+l.toString():"")}return(!e||e===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(u.pathname=u.pathname==="/"?o:(0,v.RQ)([o,u.pathname])),(0,E.Ep)(u)}function Ve(e){var t;let{key:n}=e===void 0?{}:e,{router:o}=W(D.UseFetcher),r=G(M.UseFetcher),s=a.useContext(Y),u=a.useContext(i.UNSAFE_RouteContext),c=(t=u.matches[u.matches.length-1])==null?void 0:t.route.id;s||(0,v.J0)(!1),u||(0,v.J0)(!1),c==null&&(0,v.J0)(!1);let[l,f]=a.useState(n||"");n&&n!==l?f(n):l||f(ie()),a.useEffect(()=>(o.getFetcher(l),()=>{o.deleteFetcher(l)}),[o,l]);let d=a.useCallback((R,p)=>{c||(0,v.J0)(!1),o.fetch(l,c,R,p)},[l,c,o]),m=Q(),h=a.useCallback((R,p)=>{m(R,_({},p,{navigate:!1,fetcherKey:l}))},[l,m]),g=a.useMemo(()=>a.forwardRef((p,S)=>a.createElement(oe,_({},p,{navigate:!1,fetcherKey:l,ref:S}))),[l]),y=r.fetchers.get(l)||v.ov,C=s.get(l);return a.useMemo(()=>_({Form:g,submit:h,load:d},y,{data:C}),[g,h,d,y,C])}function Je(){let e=G(M.UseFetchers);return Array.from(e.fetchers.entries()).map(t=>{let[n,o]=t;return _({},o,{key:n})})}const se="react-router-scroll-positions";let H={};function le(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:o}=W(D.UseScrollRestoration),{restoreScrollPosition:r,preventScrollReset:s}=G(M.UseScrollRestoration),{basename:u}=a.useContext(i.UNSAFE_NavigationContext),c=(0,i.useLocation)(),l=(0,i.useMatches)(),f=(0,i.useNavigation)();a.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),je(a.useCallback(()=>{if(f.state==="idle"){let d=(t?t(c,l):null)||c.key;H[d]=window.scrollY}try{sessionStorage.setItem(n||se,JSON.stringify(H))}catch{}window.history.scrollRestoration="auto"},[n,t,f.state,c,l])),typeof document<"u"&&(a.useLayoutEffect(()=>{try{let d=sessionStorage.getItem(n||se);d&&(H=JSON.parse(d))}catch{}},[n]),a.useLayoutEffect(()=>{let d=t&&u!=="/"?(h,g)=>t(_({},h,{pathname:(0,v.Zn)(h.pathname,u)||h.pathname}),g):t,m=o==null?void 0:o.enableScrollRestoration(H,()=>window.scrollY,d);return()=>m&&m()},[o,u,t]),a.useLayoutEffect(()=>{if(r!==!1){if(typeof r=="number"){window.scrollTo(0,r);return}if(c.hash){let d=document.getElementById(decodeURIComponent(c.hash.slice(1)));if(d){d.scrollIntoView();return}}s!==!0&&window.scrollTo(0,0)}},[c,r,s]))}function Xe(e,t){let{capture:n}=t||{};a.useEffect(()=>{let o=n!=null?{capture:n}:void 0;return window.addEventListener("beforeunload",e,o),()=>{window.removeEventListener("beforeunload",e,o)}},[e,n])}function je(e,t){let{capture:n}=t||{};a.useEffect(()=>{let o=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,o),()=>{window.removeEventListener("pagehide",e,o)}},[e,n])}function ze(e){let{when:t,message:n}=e,o=(0,i.useBlocker)(t);a.useEffect(()=>{o.state==="blocked"&&(window.confirm(n)?setTimeout(o.proceed,0):o.reset())},[o,n]),a.useEffect(()=>{o.state==="blocked"&&!t&&o.reset()},[o,t])}function ce(e,t){t===void 0&&(t={});let n=a.useContext(Z);n==null&&(0,v.J0)(!1);let{basename:o}=W(D.useViewTransitionState),r=(0,i.useResolvedPath)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=(0,v.Zn)(n.currentLocation.pathname,o)||n.currentLocation.pathname,u=(0,v.Zn)(n.nextLocation.pathname,o)||n.nextLocation.pathname;return(0,v.LX)(r.pathname,u)!=null||(0,v.LX)(r.pathname,s)!=null}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type="range"]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--colorBgScrollTrack)}::-webkit-scrollbar-thumb{background:var(--colorBgScrollBar);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)}::-webkit-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)}.rc-virtual-list-scrollbar-thumb{background:var(--colorBgScrollBar)!important}.rc-virtual-list-scrollbar-thumb:hover{background:var(--colorBgScrollBarHover)!important}.rc-virtual-list-scrollbar-thumb:active{background:var(--colorBgScrollBarActive)!important}@keyframes closeWindow{0%{opacity:1}to{opacity:0}}.ril__outer{background-color:#000000d9;outline:none;top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%;-ms-content-zooming:none;-ms-user-select:none;-ms-touch-select:none;touch-action:none}.ril__outerClosing{opacity:0}.ril__inner{position:absolute;top:0;left:0;right:0;bottom:0}.ril__image,.ril__imagePrev,.ril__imageNext{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;max-width:none;-ms-content-zooming:none;-ms-user-select:none;-ms-touch-select:none;touch-action:none}.ril__imageDiscourager{background-repeat:no-repeat;background-position:center;background-size:contain}.ril__navButtons{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:.7}.ril__navButtons:hover{opacity:1}.ril__navButtons:active{opacity:.7}.ril__navButtonPrev{left:0;background:rgba(0,0,0,.2) url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==) no-repeat center}.ril__navButtonNext{right:0;background:rgba(0,0,0,.2) url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+) no-repeat center}.ril__downloadBlocker{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);background-size:cover}.ril__caption,.ril__toolbar{background-color:#00000080;position:absolute;left:0;right:0;display:flex;justify-content:space-between}.ril__caption{bottom:0;max-height:150px;overflow:auto}.ril__captionContent{padding:10px 20px;color:#fff}.ril__toolbar{top:0;height:50px}.ril__toolbarSide{height:50px;margin:0}.ril__toolbarLeftSide{padding-left:20px;padding-right:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.ril__toolbarRightSide{padding-left:0;padding-right:20px;flex:0 0 auto}.ril__toolbarItem{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ril__toolbarItemChild{vertical-align:middle}.ril__builtinButton{width:40px;height:35px;cursor:pointer;border:none;opacity:.7}.ril__builtinButton:hover{opacity:1}.ril__builtinButton:active{outline:none}.ril__builtinButtonDisabled{cursor:default;opacity:.5}.ril__builtinButtonDisabled:hover{opacity:.5}.ril__closeButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=) no-repeat center}.ril__zoomInButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+) no-repeat center}.ril__zoomOutButton{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=) no-repeat center}.ril__outerAnimating{animation-name:closeWindow}@keyframes pointFade{0%,19.999%,to{opacity:0}20%{opacity:1}}.ril__loadingCircle{width:60px;height:60px;position:relative}.ril__loadingCirclePoint{width:100%;height:100%;position:absolute;left:0;top:0}.ril__loadingCirclePoint:before{content:"";display:block;margin:0 auto;width:11%;height:30%;background-color:#fff;border-radius:30%;animation:pointFade .8s infinite ease-in-out both}.ril__loadingCirclePoint:nth-of-type(1){transform:rotate(0)}.ril__loadingCirclePoint:nth-of-type(1):before,.ril__loadingCirclePoint:nth-of-type(7):before{animation-delay:-.8s}.ril__loadingCirclePoint:nth-of-type(2){transform:rotate(30deg)}.ril__loadingCirclePoint:nth-of-type(8){transform:rotate(210deg)}.ril__loadingCirclePoint:nth-of-type(2):before,.ril__loadingCirclePoint:nth-of-type(8):before{animation-delay:-666ms}.ril__loadingCirclePoint:nth-of-type(3){transform:rotate(60deg)}.ril__loadingCirclePoint:nth-of-type(9){transform:rotate(240deg)}.ril__loadingCirclePoint:nth-of-type(3):before,.ril__loadingCirclePoint:nth-of-type(9):before{animation-delay:-533ms}.ril__loadingCirclePoint:nth-of-type(4){transform:rotate(90deg)}.ril__loadingCirclePoint:nth-of-type(10){transform:rotate(270deg)}.ril__loadingCirclePoint:nth-of-type(4):before,.ril__loadingCirclePoint:nth-of-type(10):before{animation-delay:-.4s}.ril__loadingCirclePoint:nth-of-type(5){transform:rotate(120deg)}.ril__loadingCirclePoint:nth-of-type(11){transform:rotate(300deg)}.ril__loadingCirclePoint:nth-of-type(5):before,.ril__loadingCirclePoint:nth-of-type(11):before{animation-delay:-266ms}.ril__loadingCirclePoint:nth-of-type(6){transform:rotate(150deg)}.ril__loadingCirclePoint:nth-of-type(12){transform:rotate(330deg)}.ril__loadingCirclePoint:nth-of-type(6):before,.ril__loadingCirclePoint:nth-of-type(12):before{animation-delay:-133ms}.ril__loadingCirclePoint:nth-of-type(7){transform:rotate(180deg)}.ril__loadingCirclePoint:nth-of-type(13){transform:rotate(360deg)}.ril__loadingCirclePoint:nth-of-type(7):before,.ril__loadingCirclePoint:nth-of-type(13):before{animation-delay:0ms}.ril__loadingContainer{position:absolute;top:0;right:0;bottom:0;left:0}.ril__imagePrev .ril__loadingContainer,.ril__imageNext .ril__loadingContainer{display:none}.ril__errorContainer{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff}.ril__imagePrev .ril__errorContainer,.ril__imageNext .ril__errorContainer{display:none}.ril__loadingContainer__icon{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.react-js-cron{display:flex;align-items:flex-start;flex-wrap:wrap}.react-js-cron>div,.react-js-cron-field{display:flex;align-items:center}.react-js-cron-field{margin-bottom:10px}.react-js-cron-field>span{margin-left:5px}div.react-js-cron-select{margin-left:5px}.react-js-cron-select.react-js-cron-select-no-prefix{margin-left:0}div.react-js-cron-error .react-js-cron-select .ant-select-selector{border-color:#ff4d4f;background:#fff6f6}div.react-js-cron-custom-select{min-width:70px;z-index:1}div.react-js-cron-error div.react-js-cron-custom-select{background:#fff6f6}div.react-js-cron-select.react-js-cron-custom-select.ant-select div.ant-select-selector{padding-left:11px;padding-right:30px}.react-js-cron-read-only div.react-js-cron-select.react-js-cron-custom-select.ant-select div.ant-select-selector{padding-right:11px}div.react-js-cron-custom-select .ant-select-selection-search{width:0!important;margin:0!important}div.react-js-cron-custom-select .ant-select-selection-placeholder{position:static;top:50%;right:auto;left:auto;transform:none;transition:none;opacity:1;color:inherit}.react-js-cron-week-days-placeholder .react-js-cron-custom-select .ant-select-selection-placeholder,.react-js-cron-month-days-placeholder .react-js-cron-custom-select .ant-select-selection-placeholder{opacity:.4}.react-js-cron-custom-select-dropdown{min-width:0!important;width:170px!important}.react-js-cron-custom-select-dropdown .rc-virtual-list{max-height:none!important}.react-js-cron-custom-select-dropdown-grid .rc-virtual-list-holder-inner{display:grid!important;grid-template-columns:repeat(4,1fr)}.react-js-cron-custom-select-dropdown-grid .rc-virtual-list-holder-inner .ant-select-item-option-content{text-align:center}.react-js-cron-custom-select-dropdown-hours-twelve-hour-clock{width:260px!important}.react-js-cron-custom-select-dropdown-minutes-large{width:300px!important}.react-js-cron-custom-select-dropdown-minutes-large .rc-virtual-list-holder-inner{grid-template-columns:repeat(7,1fr)}.react-js-cron-custom-select-dropdown-minutes-medium{width:215px!important}.react-js-cron-custom-select-dropdown-minutes-medium .rc-virtual-list-holder-inner{grid-template-columns:repeat(5,1fr)}.react-js-cron-period>span:first-child{margin-left:0!important}.react-js-cron-period .react-js-cron-select.ant-select-single.ant-select-open .ant-select-selection-item{opacity:1}.react-js-cron-select-dropdown-period{min-width:0!important;width:auto!important}.react-js-cron-clear-button{margin-left:10px;margin-bottom:10px}.react-js-cron-disabled .react-js-cron-select.ant-select-disabled{background:#f5f5f5}div.react-js-cron-select.react-js-cron-custom-select.ant-select div.ant-select-selector>.ant-select-selection-overflow{align-items:center;flex:initial}.ant-btn.ant-btn-danger{text-shadow:none;box-shadow:none}.ant-formily-item-label{color:#000000d9;font-weight:600}.ant-table-pagination.ant-pagination{margin-bottom:0!important}.ant-formily-item{font-size:inherit!important}.ant-formily-item-bordered-none .ant-formily-item-feedback-layout-loose{margin-bottom:0!important}.ant-formily-item-control-content-component .ant-tag{white-space:pre-wrap}html body{--adm-font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}
|