@nocobase/app 1.3.38-beta → 1.4.0-alpha

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.
Files changed (103) hide show
  1. package/client/.umirc.ts +12 -14
  2. package/client/src/pages/index.tsx +3 -0
  3. package/dist/client/4607.bae81918.async.js +1 -0
  4. package/dist/client/5617.d114c98c.async.js +78 -0
  5. package/dist/client/5721.ee2b0cf3.async.js +7 -0
  6. package/dist/client/index.html +2 -1
  7. package/dist/client/index.html.tpl +2 -1
  8. package/dist/client/npm._at_ant-design.e1f1f4b0.async.js +110 -0
  9. package/dist/client/{npm._at_antv.5ea2df50.async.js → npm._at_antv.56fcebdf.async.js} +5 -5
  10. package/dist/client/npm._at_budibase.113c5b6a.async.js +36 -0
  11. package/dist/client/npm._at_dnd-kit.2fac5dde.async.js +9 -0
  12. package/dist/client/npm._at_emotion.6969cd50.async.js +2 -0
  13. package/dist/client/npm._at_formily.b1a03e41.async.js +96 -0
  14. package/dist/client/npm._at_formulajs.ff63776b.async.js +1 -0
  15. package/dist/client/npm._at_rc-component.43f95f42.async.js +5 -0
  16. package/dist/client/npm._at_remix-run.9a0418a9.async.js +2 -0
  17. package/dist/client/npm.ahooks.b416801a.async.js +6 -0
  18. package/dist/client/npm.antd-style.ecb45bdd.async.js +1 -0
  19. package/dist/client/npm.antd.732d7b9d.async.js +476 -0
  20. package/dist/client/npm.axios.c42e25ff.async.js +11 -0
  21. package/dist/client/npm.bignumber.js.cb49cd48.async.js +1 -0
  22. package/dist/client/npm.buffer.6f3eca94.async.js +1 -0
  23. package/dist/client/npm.cytoscape.cba0c14d.async.js +5 -0
  24. package/dist/client/{npm.d3-selection.e2684be8.async.js → npm.d3-selection.15d6ab5b.async.js} +1 -1
  25. package/dist/client/npm.d3-shape.b48fc404.async.js +1 -0
  26. package/dist/client/{npm.d3-transition.83e0f431.async.js → npm.d3-transition.5fd82a9c.async.js} +1 -1
  27. package/dist/client/{npm.dayjs.f4357565.async.js → npm.dayjs.0a5fd152.async.js} +1 -1
  28. package/dist/client/{npm.decimal.js.bb6d6d2e.async.js → npm.decimal.js.19391b1c.async.js} +1 -1
  29. package/dist/client/npm.dompurify.d5071c22.async.js +3 -0
  30. package/dist/client/{npm.elkjs.d0ff4db1.async.js → npm.elkjs.f35a7d45.async.js} +4 -4
  31. package/dist/client/npm.gl-matrix.d851d654.async.js +1 -0
  32. package/dist/client/{npm.handlebars.c04806e7.async.js → npm.handlebars.ade4c4fe.async.js} +5 -5
  33. package/dist/client/{npm.highlight.js.4213abe5.async.js → npm.highlight.js.8a8320c8.async.js} +1 -1
  34. package/dist/client/{npm.html-tokenize.360bb6e8.async.js → npm.html-tokenize.a6d58ae7.async.js} +1 -1
  35. package/dist/client/npm.htmlparser2.27ad86bc.async.js +2 -0
  36. package/dist/client/npm.i18next.98bb572b.async.js +1 -0
  37. package/dist/client/npm.json5.d58066fd.async.js +14 -0
  38. package/dist/client/npm.jstat.733c0b2c.async.js +1 -0
  39. package/dist/client/{npm.layout-base.49e322a0.async.js → npm.layout-base.0bdb6d00.async.js} +1 -1
  40. package/dist/client/npm.lodash-es.c06b3dd5.async.js +1 -0
  41. package/dist/client/npm.lodash.0ff318b3.async.js +37 -0
  42. package/dist/client/npm.markdown-it.5b35f93d.async.js +15 -0
  43. package/dist/client/npm.mathjs.fd97f3b7.async.js +52 -0
  44. package/dist/client/npm.mermaid.defd0c88.async.js +1529 -0
  45. package/dist/client/npm.moment.36abbf2c.async.js +4 -0
  46. package/dist/client/npm.picomatch.7a2f1314.async.js +1 -0
  47. package/dist/client/npm.postcss.2ccf11ae.async.js +27 -0
  48. package/dist/client/{npm.quill.e91b3c12.async.js → npm.quill.9d4c2cd1.async.js} +7 -7
  49. package/dist/client/{npm.rc-menu.2e06b9c3.async.js → npm.rc-menu.adf5ade6.async.js} +1 -1
  50. package/dist/client/npm.rc-picker.ef8a3e8b.async.js +1 -0
  51. package/dist/client/{npm.rc-select.13236fb8.async.js → npm.rc-select.7c36e54e.async.js} +2 -2
  52. package/dist/client/{npm.rc-table.de3dd762.async.js → npm.rc-table.a153e021.async.js} +1 -1
  53. package/dist/client/npm.rc-tree.f61b7d87.async.js +1 -0
  54. package/dist/client/npm.rc-util.23a9b855.async.js +18 -0
  55. package/dist/client/npm.react-dom.b9fb5fd7.async.js +11 -0
  56. package/dist/client/npm.react-image-lightbox.727d3218.async.js +3 -0
  57. package/dist/client/npm.react-router-dom.832efba3.async.js +1 -0
  58. package/dist/client/npm.readable-stream.6e743f2a.async.js +1 -0
  59. package/dist/client/p__index.89314c11.async.js +1533 -0
  60. package/dist/client/umi.9e319d79.js +21 -0
  61. package/lib/index.js +11 -3
  62. package/package.json +6 -6
  63. package/src/index.ts +12 -9
  64. package/dist/client/4607.6d585996.async.js +0 -1
  65. package/dist/client/5721.cf90e884.async.js +0 -8
  66. package/dist/client/6718.1e7fe05d.async.js +0 -66
  67. package/dist/client/npm._at_ant-design.4fe52a2f.async.js +0 -110
  68. package/dist/client/npm._at_dnd-kit.01a3ad70.async.js +0 -6
  69. package/dist/client/npm._at_emotion.0c6b11eb.async.js +0 -2
  70. package/dist/client/npm._at_formily.f9d0b213.async.js +0 -101
  71. package/dist/client/npm._at_formulajs.fe3f9fca.async.js +0 -1
  72. package/dist/client/npm._at_rc-component.086dbf23.async.js +0 -5
  73. package/dist/client/npm._at_remix-run.55137b87.async.js +0 -3
  74. package/dist/client/npm.ahooks.c3df4eb6.async.js +0 -6
  75. package/dist/client/npm.antd-style.47ebbe31.async.js +0 -1
  76. package/dist/client/npm.antd.91188318.async.js +0 -476
  77. package/dist/client/npm.axios.f696c6e5.async.js +0 -2
  78. package/dist/client/npm.bignumber.js.70d3d7e8.async.js +0 -1
  79. package/dist/client/npm.buffer.9cce4593.async.js +0 -1
  80. package/dist/client/npm.cytoscape.39239e7b.async.js +0 -5
  81. package/dist/client/npm.d3-shape.3660138b.async.js +0 -1
  82. package/dist/client/npm.dompurify.93b5a130.async.js +0 -3
  83. package/dist/client/npm.gl-matrix.31b80e16.async.js +0 -1
  84. package/dist/client/npm.htmlparser2.cbbea4c4.async.js +0 -2
  85. package/dist/client/npm.i18next.eee0fc0f.async.js +0 -1
  86. package/dist/client/npm.json5.87aca70f.async.js +0 -14
  87. package/dist/client/npm.jstat.657c7dba.async.js +0 -1
  88. package/dist/client/npm.lodash-es.5eff0420.async.js +0 -1
  89. package/dist/client/npm.lodash.0f9322fa.async.js +0 -37
  90. package/dist/client/npm.markdown-it.5875530c.async.js +0 -15
  91. package/dist/client/npm.mathjs.d8df2940.async.js +0 -53
  92. package/dist/client/npm.mermaid.7057e144.async.js +0 -1530
  93. package/dist/client/npm.moment.3c26e672.async.js +0 -4
  94. package/dist/client/npm.postcss.368fceaf.async.js +0 -28
  95. package/dist/client/npm.rc-picker.218fa2cc.async.js +0 -1
  96. package/dist/client/npm.rc-tree.bdb9cee8.async.js +0 -1
  97. package/dist/client/npm.rc-util.87a2c212.async.js +0 -18
  98. package/dist/client/npm.react-dom.6236e62b.async.js +0 -11
  99. package/dist/client/npm.react-image-lightbox.0e0cf81f.async.js +0 -3
  100. package/dist/client/npm.react-router-dom.06c80c5d.async.js +0 -2
  101. package/dist/client/npm.readable-stream.41117b5f.async.js +0 -1
  102. package/dist/client/p__index.4c7bade9.async.js +0 -1509
  103. package/dist/client/umi.016284ce.js +0 -22
@@ -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==null?c:r}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==null?0:e),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==null?0:e),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=="undefined"?".":n,r=typeof r=="undefined"?",":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!=null?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=="undefined"?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=="undefined"?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=="undefined"?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=="undefined"?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,5 +0,0 @@
1
- "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[4509],{32071:function(mt,xe,r){r.d(xe,{Il:function(){return Q},G5:function(){return K},ZP:function(){return De}});var P=r(87462),E=r(4942),re=r(97685),u=r(67294),W=r(1413),d=r(15671),Ie=r(43144),L=r(32531),A=r(51630),m=r(91),f=r(71002),l=r(10274),z=["b"],a=["v"],p=function(i){return Math.round(Number(i||0))},ce=function(i){if(i&&(0,f.Z)(i)==="object"&&"h"in i&&"b"in i){var v=i,Z=v.b,b=(0,m.Z)(v,z);return(0,W.Z)((0,W.Z)({},b),{},{v:Z})}return typeof i=="string"&&/hsb/.test(i)?i.replace(/hsb/,"hsv"):i},Q=function(S){(0,L.Z)(v,S);var i=(0,A.Z)(v);function v(Z){return(0,d.Z)(this,v),i.call(this,ce(Z))}return(0,Ie.Z)(v,[{key:"toHsbString",value:function(){var b=this.toHsb(),e=p(b.s*100),n=p(b.b*100),t=p(b.h),o=b.a,s="hsb(".concat(t,", ").concat(e,"%, ").concat(n,"%)"),C="hsba(".concat(t,", ").concat(e,"%, ").concat(n,"%, ").concat(o.toFixed(o===0?0:2),")");return o===1?s:C}},{key:"toHsb",value:function(){var b=this.toHsv();(0,f.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(b=this.originalInput);var e=b,n=e.v,t=(0,m.Z)(e,a);return(0,W.Z)((0,W.Z)({},t),{},{b:b.v})}}]),v}(l.C),ee="rc-color-picker",F=function(i){return i instanceof Q?i:new Q(i)},V=F("#1677ff"),J=function(i){var v=i.offset,Z=i.targetRef,b=i.containerRef,e=i.color,n=i.type,t=b.current.getBoundingClientRect(),o=t.width,s=t.height,C=Z.current.getBoundingClientRect(),g=C.width,M=C.height,N=g/2,R=M/2,B=(v.x+N)/o,w=1-(v.y+R)/s,I=e.toHsb(),D=B,X=(v.x+N)/o*360;if(n)switch(n){case"hue":return F((0,W.Z)((0,W.Z)({},I),{},{h:X<=0?0:X}));case"alpha":return F((0,W.Z)((0,W.Z)({},I),{},{a:D<=0?0:D}))}return F({h:I.h,s:B<=0?0:B,b:w>=1?1:w,a:I.a})},ve=function(i,v,Z,b){var e=i.current.getBoundingClientRect(),n=e.width,t=e.height,o=v.current.getBoundingClientRect(),s=o.width,C=o.height,g=s/2,M=C/2,N=Z.toHsb();if(!(s===0&&C===0||s!==C)){if(b)switch(b){case"hue":return{x:N.h/360*n-g,y:-M/3};case"alpha":return{x:N.a/1*n-g,y:-M/3}}return{x:N.s*n-g,y:(1-N.b)*t-M}}},_=r(93967),fe=r.n(_),j=function(i){var v=i.color,Z=i.prefixCls,b=i.className,e=i.style,n=i.onClick,t="".concat(Z,"-color-block");return u.createElement("div",{className:fe()(t,b),style:e,onClick:n},u.createElement("div",{className:"".concat(t,"-inner"),style:{background:v}}))},K=j;function G(S){var i="touches"in S?S.touches[0]:S,v=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,Z=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:i.pageX-v,pageY:i.pageY-Z}}function Se(S){var i=S.offset,v=S.targetRef,Z=S.containerRef,b=S.direction,e=S.onDragChange,n=S.onDragChangeComplete,t=S.calculate,o=S.color,s=S.disabledDrag,C=(0,u.useState)(i||{x:0,y:0}),g=(0,re.Z)(C,2),M=g[0],N=g[1],R=(0,u.useRef)(null),B=(0,u.useRef)(null),w=(0,u.useRef)({flag:!1});(0,u.useEffect)(function(){if(w.current.flag===!1){var H=t==null?void 0:t(Z);H&&N(H)}},[o,Z]),(0,u.useEffect)(function(){return function(){document.removeEventListener("mousemove",R.current),document.removeEventListener("mouseup",B.current),document.removeEventListener("touchmove",R.current),document.removeEventListener("touchend",B.current),R.current=null,B.current=null}},[]);var I=function(q){var ae=G(q),T=ae.pageX,y=ae.pageY,Ee=Z.current.getBoundingClientRect(),Ke=Ee.x,Oe=Ee.y,Xe=Ee.width,Ge=Ee.height,Le=v.current.getBoundingClientRect(),He=Le.width,Re=Le.height,je=He/2,$e=Re/2,Ve=Math.max(0,Math.min(T-Ke,Xe))-je,de=Math.max(0,Math.min(y-Oe,Ge))-$e,me={x:Ve,y:b==="x"?M.y:de};if(He===0&&Re===0||He!==Re)return!1;N(me),e==null||e(me)},D=function(q){q.preventDefault(),I(q)},X=function(q){q.preventDefault(),w.current.flag=!1,document.removeEventListener("mousemove",R.current),document.removeEventListener("mouseup",B.current),document.removeEventListener("touchmove",R.current),document.removeEventListener("touchend",B.current),R.current=null,B.current=null,n==null||n()},ie=function(q){document.removeEventListener("mousemove",R.current),document.removeEventListener("mouseup",B.current),!s&&(I(q),w.current.flag=!0,document.addEventListener("mousemove",D),document.addEventListener("mouseup",X),document.addEventListener("touchmove",D),document.addEventListener("touchend",X),R.current=D,B.current=X)};return[M,ie]}var ne=Se,Te=function(i){var v=i.size,Z=v===void 0?"default":v,b=i.color,e=i.prefixCls;return u.createElement("div",{className:fe()("".concat(e,"-handler"),(0,E.Z)({},"".concat(e,"-handler-sm"),Z==="small")),style:{backgroundColor:b}})},ke=Te,rt=function(i){var v=i.children,Z=i.style,b=i.prefixCls;return u.createElement("div",{className:"".concat(b,"-palette"),style:(0,W.Z)({position:"relative"},Z)},v)},We=rt,ze=(0,u.forwardRef)(function(S,i){var v=S.children,Z=S.offset;return u.createElement("div",{ref:i,style:{position:"absolute",left:Z.x,top:Z.y,zIndex:1}},v)}),O=ze,c=function(i){var v=i.color,Z=i.onChange,b=i.prefixCls,e=i.onChangeComplete,n=i.disabled,t=(0,u.useRef)(),o=(0,u.useRef)(),s=(0,u.useRef)(v),C=ne({color:v,containerRef:t,targetRef:o,calculate:function(B){return ve(B,o,v)},onDragChange:function(B){var w=J({offset:B,targetRef:o,containerRef:t,color:v});s.current=w,Z(w)},onDragChangeComplete:function(){return e==null?void 0:e(s.current)},disabledDrag:n}),g=(0,re.Z)(C,2),M=g[0],N=g[1];return u.createElement("div",{ref:t,className:"".concat(b,"-select"),onMouseDown:N,onTouchStart:N},u.createElement(We,{prefixCls:b},u.createElement(O,{offset:M,ref:o},u.createElement(ke,{color:v.toRgbString(),prefixCls:b})),u.createElement("div",{className:"".concat(b,"-saturation"),style:{backgroundColor:"hsl(".concat(v.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},x=c,U=function(i){var v=i.colors,Z=i.children,b=i.direction,e=b===void 0?"to right":b,n=i.type,t=i.prefixCls,o=(0,u.useMemo)(function(){return v.map(function(s,C){var g=F(s);return n==="alpha"&&C===v.length-1&&g.setAlpha(1),g.toRgbString()}).join(",")},[v,n]);return u.createElement("div",{className:"".concat(t,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(e,", ").concat(o,")")}},Z)},$=U,he=function(i){var v=i.gradientColors,Z=i.direction,b=i.type,e=b===void 0?"hue":b,n=i.color,t=i.value,o=i.onChange,s=i.onChangeComplete,C=i.disabled,g=i.prefixCls,M=(0,u.useRef)(),N=(0,u.useRef)(),R=(0,u.useRef)(n),B=ne({color:n,targetRef:N,containerRef:M,calculate:function(ie){return ve(ie,N,n,e)},onDragChange:function(ie){var H=J({offset:ie,targetRef:N,containerRef:M,color:n,type:e});R.current=H,o(H)},onDragChangeComplete:function(){s==null||s(R.current,e)},direction:"x",disabledDrag:C}),w=(0,re.Z)(B,2),I=w[0],D=w[1];return u.createElement("div",{ref:M,className:fe()("".concat(g,"-slider"),"".concat(g,"-slider-").concat(e)),onMouseDown:D,onTouchStart:D},u.createElement(We,{prefixCls:g},u.createElement(O,{offset:I,ref:N},u.createElement(ke,{size:"small",color:t,prefixCls:g})),u.createElement($,{colors:v,direction:Z,type:e,prefixCls:g})))},oe=he;function Me(S){return S!==void 0}var Ce=function(i,v){var Z=v.defaultValue,b=v.value,e=(0,u.useState)(function(){var s;return Me(b)?s=b:Me(Z)?s=Z:s=i,F(s)}),n=(0,re.Z)(e,2),t=n[0],o=n[1];return(0,u.useEffect)(function(){b&&o(F(b))},[b]),[t,o]},Ae=Ce,ye=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],be=(0,u.forwardRef)(function(S,i){var v=S.value,Z=S.defaultValue,b=S.prefixCls,e=b===void 0?ee:b,n=S.onChange,t=S.onChangeComplete,o=S.className,s=S.style,C=S.panelRender,g=S.disabledAlpha,M=g===void 0?!1:g,N=S.disabled,R=N===void 0?!1:N,B=Ae(V,{value:v,defaultValue:Z}),w=(0,re.Z)(B,2),I=w[0],D=w[1],X=(0,u.useMemo)(function(){var T=F(I.toRgbString());return T.setAlpha(1),T.toRgbString()},[I]),ie=fe()("".concat(e,"-panel"),o,(0,E.Z)({},"".concat(e,"-panel-disabled"),R)),H={prefixCls:e,onChangeComplete:t,disabled:R},q=function(y,Ee){v||D(y),n==null||n(y,Ee)},ae=u.createElement(u.Fragment,null,u.createElement(x,(0,P.Z)({color:I,onChange:q},H)),u.createElement("div",{className:"".concat(e,"-slider-container")},u.createElement("div",{className:fe()("".concat(e,"-slider-group"),(0,E.Z)({},"".concat(e,"-slider-group-disabled-alpha"),M))},u.createElement(oe,(0,P.Z)({gradientColors:ye,color:I,value:"hsl(".concat(I.toHsb().h,",100%, 50%)"),onChange:function(y){return q(y,"hue")}},H)),!M&&u.createElement(oe,(0,P.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",X],color:I,value:I.toRgbString(),onChange:function(y){return q(y,"alpha")}},H))),u.createElement(K,{color:I.toRgbString(),prefixCls:e})));return u.createElement("div",{className:ie,style:s,ref:i},typeof C=="function"?C(ae):ae)}),De=be},11157:function(mt,xe,r){r.d(xe,{kr:function(){return Ie},jM:function(){return f},qp:function(){return L}});var P=r(97685),E=r(66680),re=r(8410),u=r(91881),W=r(67294),d=r(73935);function Ie(ce){var Q=W.createContext(void 0),ee=function(V){var J=V.value,ve=V.children,_=W.useRef(J);_.current=J;var fe=W.useState(function(){return{getValue:function(){return _.current},listeners:new Set}}),j=(0,P.Z)(fe,1),K=j[0];return(0,re.Z)(function(){(0,d.unstable_batchedUpdates)(function(){K.listeners.forEach(function(G){G(J)})})},[J]),W.createElement(Q.Provider,{value:K},ve)};return{Context:Q,Provider:ee,defaultValue:ce}}function L(ce,Q){var ee=(0,E.Z)(typeof Q=="function"?Q:function(G){if(Q===void 0)return G;if(!Array.isArray(Q))return G[Q];var Se={};return Q.forEach(function(ne){Se[ne]=G[ne]}),Se}),F=W.useContext(ce==null?void 0:ce.Context),V=F||{},J=V.listeners,ve=V.getValue,_=W.useRef();_.current=ee(F?ve():ce==null?void 0:ce.defaultValue);var fe=W.useState({}),j=(0,P.Z)(fe,2),K=j[1];return(0,re.Z)(function(){if(!F)return;function G(Se){var ne=ee(Se);(0,u.Z)(_.current,ne,!0)||K({})}return J.add(G),function(){J.delete(G)}},[F]),_.current}var A=r(87462),m=r(42550);function f(){var ce=W.createContext(null);function Q(){return W.useContext(ce)}function ee(V,J){var ve=(0,m.Yr)(V),_=function(j,K){var G=ve?{ref:K}:{},Se=W.useRef(0),ne=W.useRef(j),Te=Q();return Te!==null?W.createElement(V,(0,A.Z)({},j,G)):((!J||J(ne.current,j))&&(Se.current+=1),ne.current=j,W.createElement(ce.Provider,{value:Se.current},W.createElement(V,(0,A.Z)({},j,G))))};return ve?W.forwardRef(_):_}function F(V,J){var ve=(0,m.Yr)(V),_=function(j,K){var G=ve?{ref:K}:{};return Q(),W.createElement(V,(0,A.Z)({},j,G))};return ve?W.memo(W.forwardRef(_),J):W.memo(_,J)}return{makeImmutable:ee,responseImmutable:F,useImmutableMark:Q}}var l=f(),z=l.makeImmutable,a=l.responseImmutable,p=l.useImmutableMark},8150:function(mt,xe,r){r.d(xe,{ZP:function(){return L},FH:function(){return A}});var P=r(15671),E=r(43144),re=r(4942),u=r(55252),W=function(){function m(f){if((0,P.Z)(this,m),(0,re.Z)(this,"origin",""),(0,re.Z)(this,"negative",void 0),(0,re.Z)(this,"integer",void 0),(0,re.Z)(this,"decimal",void 0),(0,re.Z)(this,"decimalLen",void 0),(0,re.Z)(this,"empty",void 0),(0,re.Z)(this,"nan",void 0),(0,u.xb)(f)){this.empty=!0;return}if(this.origin=String(f),f==="-"||Number.isNaN(f)){this.nan=!0;return}var l=f;if((0,u.CC)(l)&&(l=Number(l)),l=typeof l=="string"?l:(0,u.vP)(l),(0,u.mE)(l)){var z=(0,u._V)(l);this.negative=z.negative;var a=z.trimStr.split(".");this.integer=BigInt(a[0]);var p=a[1]||"0";this.decimal=BigInt(p),this.decimalLen=p.length}else this.nan=!0}return(0,E.Z)(m,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(l){var z="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(l,"0"));return BigInt(z)}},{key:"negate",value:function(){var l=new m(this.toString());return l.negative=!l.negative,l}},{key:"cal",value:function(l,z,a){var p=Math.max(this.getDecimalStr().length,l.getDecimalStr().length),ce=this.alignDecimal(p),Q=l.alignDecimal(p),ee=z(ce,Q).toString(),F=a(p),V=(0,u._V)(ee),J=V.negativeStr,ve=V.trimStr,_="".concat(J).concat(ve.padStart(F+1,"0"));return new m("".concat(_.slice(0,-F),".").concat(_.slice(-F)))}},{key:"add",value:function(l){if(this.isInvalidate())return new m(l);var z=new m(l);return z.isInvalidate()?this:this.cal(z,function(a,p){return a+p},function(a){return a})}},{key:"multi",value:function(l){var z=new m(l);return this.isInvalidate()||z.isInvalidate()?new m(NaN):this.cal(z,function(a,p){return a*p},function(a){return a*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(l){return this.toString()===(l==null?void 0:l.toString())}},{key:"lessEquals",value:function(l){return this.add(l.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return l?this.isInvalidate()?"":(0,u._V)("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),m}(),d=function(){function m(f){if((0,P.Z)(this,m),(0,re.Z)(this,"origin",""),(0,re.Z)(this,"number",void 0),(0,re.Z)(this,"empty",void 0),(0,u.xb)(f)){this.empty=!0;return}this.origin=String(f),this.number=Number(f)}return(0,E.Z)(m,[{key:"negate",value:function(){return new m(-this.toNumber())}},{key:"add",value:function(l){if(this.isInvalidate())return new m(l);var z=Number(l);if(Number.isNaN(z))return this;var a=this.number+z;if(a>Number.MAX_SAFE_INTEGER)return new m(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new m(Number.MIN_SAFE_INTEGER);var p=Math.max((0,u.NX)(this.number),(0,u.NX)(z));return new m(a.toFixed(p))}},{key:"multi",value:function(l){var z=Number(l);if(this.isInvalidate()||Number.isNaN(z))return new m(NaN);var a=this.number*z;if(a>Number.MAX_SAFE_INTEGER)return new m(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new m(Number.MIN_SAFE_INTEGER);var p=Math.max((0,u.NX)(this.number),(0,u.NX)(z));return new m(a.toFixed(p))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(l){return this.toNumber()===(l==null?void 0:l.toNumber())}},{key:"lessEquals",value:function(l){return this.add(l.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return l?this.isInvalidate()?"":(0,u.vP)(this.number):this.origin}}]),m}(),Ie=r(10432);function L(m){return(0,Ie.L)()?new W(m):new d(m)}function A(m,f,l){var z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(m==="")return"";var a=(0,u._V)(m),p=a.negativeStr,ce=a.integerStr,Q=a.decimalStr,ee="".concat(f).concat(Q),F="".concat(p).concat(ce);if(l>=0){var V=Number(Q[l]);if(V>=5&&!z){var J=L(m).add("".concat(p,"0.").concat("0".repeat(l)).concat(10-V));return A(J.toString(),f,l,z)}return l===0?F:"".concat(F).concat(f).concat(Q.padEnd(l,"0").slice(0,l))}return ee===".0"?F:"".concat(F).concat(ee)}},98847:function(mt,xe,r){var P=r(8150);xe.ZP=P.ZP},55252:function(mt,xe,r){r.d(xe,{CC:function(){return u},NX:function(){return W},_V:function(){return re},mE:function(){return Ie},vP:function(){return d},xb:function(){return E}});var P=r(10432);function E(L){return!L&&L!==0&&!Number.isNaN(L)||!String(L).trim()}function re(L){var A=L.trim(),m=A.startsWith("-");m&&(A=A.slice(1)),A=A.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),A.startsWith(".")&&(A="0".concat(A));var f=A||"0",l=f.split("."),z=l[0]||"0",a=l[1]||"0";z==="0"&&a==="0"&&(m=!1);var p=m?"-":"";return{negative:m,negativeStr:p,trimStr:f,integerStr:z,decimalStr:a,fullStr:"".concat(p).concat(f)}}function u(L){var A=String(L);return!Number.isNaN(Number(A))&&A.includes("e")}function W(L){var A=String(L);if(u(L)){var m=Number(A.slice(A.indexOf("e-")+2)),f=A.match(/\.(\d+)/);return f!=null&&f[1]&&(m+=f[1].length),m}return A.includes(".")&&Ie(A)?A.length-A.indexOf(".")-1:0}function d(L){var A=String(L);if(u(L)){if(L>Number.MAX_SAFE_INTEGER)return String((0,P.L)()?BigInt(L).toString():Number.MAX_SAFE_INTEGER);if(L<Number.MIN_SAFE_INTEGER)return String((0,P.L)()?BigInt(L).toString():Number.MIN_SAFE_INTEGER);A=L.toFixed(W(A))}return re(A).fullStr}function Ie(L){return typeof L=="number"?!Number.isNaN(L):L?/^\s*-?\d+(\.\d+)?\s*$/.test(L)||/^\s*-?\d+\.\s*$/.test(L)||/^\s*-?\.\d+\s*$/.test(L):!1}},10432:function(mt,xe,r){r.d(xe,{L:function(){return P}});function P(){return typeof BigInt=="function"}},63199:function(mt,xe,r){r.d(xe,{b:function(){return a}});var P=r(67294),E=r(8410),re=r(42550),u=r(34203),W=r(66680),d=r(15671),Ie=r(43144),L=r(32531),A=r(51630),m=function(ee){(0,L.Z)(V,ee);var F=(0,A.Z)(V);function V(){return(0,d.Z)(this,V),F.apply(this,arguments)}return(0,Ie.Z)(V,[{key:"render",value:function(){return this.props.children}}]),V}(P.Component),f=null,l=r(98924),z={subtree:!0,childList:!0,attributeFilter:["style","class"]};function a(ee,F){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:z;P.useEffect(function(){if(!(!(0,l.Z)()||!ee)){var J,ve=Array.isArray(ee)?ee:[ee];return"MutationObserver"in window&&(J=new MutationObserver(F),ve.forEach(function(_){J.observe(_,V)})),function(){var _,fe;(_=J)===null||_===void 0||_.takeRecords(),(fe=J)===null||fe===void 0||fe.disconnect()}}},[V,ee])}var p=function(F){var V=F.children,J=F.options,ve=F.onMutate,_=ve===void 0?function(){}:ve,fe=useEvent(_),j=React.useRef(null),K=React.useRef(null),G=React.isValidElement(V)&&supportRef(V),Se=useComposeRef(K,G?V.ref:null),ne=React.useState(null),Te=_slicedToArray(ne,2),ke=Te[0],rt=Te[1];return useMutateObserver(ke,fe,J),useLayoutEffect(function(){rt(findDOMNode(K.current)||findDOMNode(j.current))}),V?React.createElement(DomWrapper,{ref:j},G?React.cloneElement(V,{ref:Se}):V):null},ce=null,Q=null},2788:function(mt,xe,r){r.d(xe,{Z:function(){return fe}});var P=r(97685),E=r(67294),re=r(73935),u=r(98924),W=r(80334),d=r(42550),Ie=E.createContext(null),L=Ie,A=r(74902),m=r(8410),f=[];function l(j,K){var G=E.useState(function(){if(!(0,u.Z)())return null;var $=document.createElement("div");return $}),Se=(0,P.Z)(G,1),ne=Se[0],Te=E.useRef(!1),ke=E.useContext(L),rt=E.useState(f),We=(0,P.Z)(rt,2),ze=We[0],O=We[1],c=ke||(Te.current?void 0:function($){O(function(he){var oe=[$].concat((0,A.Z)(he));return oe})});function x(){ne.parentElement||document.body.appendChild(ne),Te.current=!0}function U(){var $;($=ne.parentElement)===null||$===void 0||$.removeChild(ne),Te.current=!1}return(0,m.Z)(function(){return j?ke?ke(x):x():U(),U},[j]),(0,m.Z)(function(){ze.length&&(ze.forEach(function($){return $()}),O(f))},[ze]),[ne,c]}var z=r(44958),a=r(74204);function p(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ce="rc-util-locker-".concat(Date.now()),Q=0;function ee(j){var K=!!j,G=E.useState(function(){return Q+=1,"".concat(ce,"_").concat(Q)}),Se=(0,P.Z)(G,1),ne=Se[0];(0,m.Z)(function(){if(K){var Te=(0,a.o)(document.body).width,ke=p();(0,z.hq)(`
2
- html body {
3
- overflow-y: hidden;
4
- `.concat(ke?"width: calc(100% - ".concat(Te,"px);"):"",`
5
- }`),ne)}else(0,z.jL)(ne);return function(){(0,z.jL)(ne)}},[K,ne])}var F=!1;function V(j){return typeof j=="boolean"&&(F=j),F}var J=function(K){return K===!1?!1:!(0,u.Z)()||!K?null:typeof K=="string"?document.querySelector(K):typeof K=="function"?K():K},ve=E.forwardRef(function(j,K){var G=j.open,Se=j.autoLock,ne=j.getContainer,Te=j.debug,ke=j.autoDestroy,rt=ke===void 0?!0:ke,We=j.children,ze=E.useState(G),O=(0,P.Z)(ze,2),c=O[0],x=O[1],U=c||G;E.useEffect(function(){(rt||G)&&x(G)},[G,rt]);var $=E.useState(function(){return J(ne)}),he=(0,P.Z)($,2),oe=he[0],Me=he[1];E.useEffect(function(){var e=J(ne);Me(e!=null?e:null)});var Ce=l(U&&!oe,Te),Ae=(0,P.Z)(Ce,2),ye=Ae[0],be=Ae[1],De=oe!=null?oe:ye;ee(Se&&G&&(0,u.Z)()&&(De===ye||De===document.body));var S=null;if(We&&(0,d.Yr)(We)&&K){var i=We;S=i.ref}var v=(0,d.x1)(S,K);if(!U||!(0,u.Z)()||oe===void 0)return null;var Z=De===!1||V(),b=We;return K&&(b=E.cloneElement(We,{ref:v})),E.createElement(L.Provider,{value:be},Z?b:(0,re.createPortal)(b,De))}),_=ve,fe=_},366:function(mt,xe,r){r.d(xe,{Z:function(){return ze}});var P=r(1413),E=r(87462),re=r(71002),u=r(97685),W=r(91),d=r(67294),Ie=r(2788),L=r(40228),A=r(93967),m=r.n(A),f=r(8410),l=r(21770),z=r(66680);function a(O){var c=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,U=O.getBoundingClientRect(),$=U.top,he=U.right,oe=U.bottom,Me=U.left;return $>=0&&Me>=0&&he<=c&&oe<=x}function p(O,c,x){var U;return(U=x!=null?x:c)!==null&&U!==void 0?U:O===null?"center":"bottom"}function ce(O,c,x,U){var $=(0,d.useState)(void 0),he=(0,u.Z)($,2),oe=he[0],Me=he[1];(0,f.Z)(function(){var v=typeof O=="function"?O():O;Me(v||null)});var Ce=(0,d.useState)(null),Ae=(0,u.Z)(Ce,2),ye=Ae[0],be=Ae[1],De=(0,z.Z)(function(){if(oe){!a(oe)&&c&&oe.scrollIntoView(U);var v=oe.getBoundingClientRect(),Z=v.left,b=v.top,e=v.width,n=v.height,t={left:Z,top:b,width:e,height:n,radius:0};be(function(o){return JSON.stringify(o)!==JSON.stringify(t)?t:o})}else be(null)}),S=function(Z){var b;return(b=Array.isArray(x==null?void 0:x.offset)?x==null?void 0:x.offset[Z]:x==null?void 0:x.offset)!==null&&b!==void 0?b:6};(0,f.Z)(function(){return De(),window.addEventListener("resize",De),function(){window.removeEventListener("resize",De)}},[oe,c,De]);var i=(0,d.useMemo)(function(){if(!ye)return ye;var v=S(0),Z=S(1),b=(x==null?void 0:x.radius)||2;return{left:ye.left-v,top:ye.top-Z,width:ye.width+v*2,height:ye.height+Z*2,radius:b}},[ye,x]);return[i,oe]}var Q=r(7028),ee={fill:"transparent",pointerEvents:"auto"},F=function(c){var x=c.prefixCls,U=c.rootClassName,$=c.pos,he=c.showMask,oe=c.style,Me=oe===void 0?{}:oe,Ce=c.fill,Ae=Ce===void 0?"rgba(0,0,0,0.5)":Ce,ye=c.open,be=c.animated,De=c.zIndex,S=(0,Q.Z)(),i="".concat(x,"-mask-").concat(S),v=(0,re.Z)(be)==="object"?be==null?void 0:be.placeholder:be;return d.createElement(Ie.Z,{open:ye,autoLock:!0},d.createElement("div",{className:m()("".concat(x,"-mask"),U),style:(0,P.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:De,pointerEvents:$?"none":"auto"},Me)},he?d.createElement("svg",{style:{width:"100%",height:"100%"}},d.createElement("defs",null,d.createElement("mask",{id:i},d.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),$&&d.createElement("rect",{x:$.left,y:$.top,rx:$.radius,width:$.width,height:$.height,fill:"black",className:v?"".concat(x,"-placeholder-animated"):""}))),d.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:Ae,mask:"url(#".concat(i,")")}),$&&d.createElement(d.Fragment,null,d.createElement("rect",(0,E.Z)({},ee,{x:"0",y:"0",width:"100%",height:$.top})),d.createElement("rect",(0,E.Z)({},ee,{x:"0",y:"0",width:$.left,height:"100%"})),d.createElement("rect",(0,E.Z)({},ee,{x:"0",y:$.top+$.height,width:"100%",height:"calc(100vh - ".concat($.top+$.height,"px)")})),d.createElement("rect",(0,E.Z)({},ee,{x:$.left+$.width,y:"0",width:"calc(100vw - ".concat($.left+$.width,"px)"),height:"100%"})))):null))},V=F,J={adjustX:1,adjustY:1},ve=[0,0],_={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function fe(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,c={};return Object.keys(_).forEach(function(x){c[x]=(0,P.Z)((0,P.Z)({},_[x]),{},{autoArrow:O,targetOffset:ve})}),c}var j=fe(),K=r(74902);function G(O){var c=O.prefixCls,x=O.current,U=O.total,$=O.title,he=O.description,oe=O.onClose,Me=O.onPrev,Ce=O.onNext,Ae=O.onFinish,ye=O.className,be=O.closeIcon,De=be!==!1&&be!==null,S=be!==void 0&&be!==!0?be:d.createElement("span",{className:"".concat(c,"-close-x")},"\xD7");return d.createElement("div",{className:m()("".concat(c,"-content"),ye)},d.createElement("div",{className:"".concat(c,"-inner")},De&&d.createElement("button",{type:"button",onClick:oe,"aria-label":"Close",className:"".concat(c,"-close")},S),d.createElement("div",{className:"".concat(c,"-header")},d.createElement("div",{className:"".concat(c,"-title")},$)),d.createElement("div",{className:"".concat(c,"-description")},he),d.createElement("div",{className:"".concat(c,"-footer")},d.createElement("div",{className:"".concat(c,"-sliders")},U>1?(0,K.Z)(Array.from({length:U}).keys()).map(function(i,v){return d.createElement("span",{key:i,className:v===x?"active":""})}):null),d.createElement("div",{className:"".concat(c,"-buttons")},x!==0?d.createElement("button",{className:"".concat(c,"-prev-btn"),onClick:Me},"Prev"):null,x===U-1?d.createElement("button",{className:"".concat(c,"-finish-btn"),onClick:Ae},"Finish"):d.createElement("button",{className:"".concat(c,"-next-btn"),onClick:Ce},"Next")))))}var Se=function(c){var x=c.current,U=c.renderPanel;return d.createElement(d.Fragment,null,typeof U=="function"?U(c,x):d.createElement(G,c))},ne=Se,Te=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],ke={left:"50%",top:"50%",width:1,height:1},rt=function(c){var x=c.prefixCls,U=x===void 0?"rc-tour":x,$=c.steps,he=$===void 0?[]:$,oe=c.defaultCurrent,Me=c.current,Ce=c.onChange,Ae=c.onClose,ye=c.onFinish,be=c.open,De=c.mask,S=De===void 0?!0:De,i=c.arrow,v=i===void 0?!0:i,Z=c.rootClassName,b=c.placement,e=c.renderPanel,n=c.gap,t=c.animated,o=c.scrollIntoViewOptions,s=o===void 0?!0:o,C=c.zIndex,g=C===void 0?1001:C,M=c.closeIcon,N=(0,W.Z)(c,Te),R=d.useRef(),B=(0,l.Z)(0,{value:Me,defaultValue:oe}),w=(0,u.Z)(B,2),I=w[0],D=w[1],X=(0,l.Z)(void 0,{value:be,postState:function(ge){return I<0||I>=he.length?!1:ge!=null?ge:!0}}),ie=(0,u.Z)(X,2),H=ie[0],q=ie[1],ae=d.useRef(H);(0,f.Z)(function(){H&&!ae.current&&D(0),ae.current=H},[H]);var T=he[I]||{},y=T.target,Ee=T.placement,Ke=T.style,Oe=T.arrow,Xe=T.className,Ge=T.mask,Le=T.scrollIntoViewOptions,He=T.closeIcon,Re=H&&(Ge!=null?Ge:S),je=He!=null?He:M,$e=Le!=null?Le:s,Ve=ce(y,be,n,$e),de=(0,u.Z)(Ve,2),me=de[0],Y=de[1],Ue=p(Y,b,Ee),ue=Y?typeof Oe=="undefined"?v:Oe:!1,Ye=(0,re.Z)(ue)==="object"?ue.pointAtCenter:!1;(0,f.Z)(function(){var le;(le=R.current)===null||le===void 0||le.forceAlign()},[Ye,I]);var Qe=function(ge){D(ge),Ce==null||Ce(ge)};if(Y===void 0)return null;var St=function(){q(!1),Ae==null||Ae(I)},Et=function(){return d.createElement(ne,(0,E.Z)({arrow:ue,key:"content",prefixCls:U,total:he.length,renderPanel:e,onPrev:function(){Qe(I-1)},onNext:function(){Qe(I+1)},onClose:St,current:I,onFinish:function(){St(),ye==null||ye()},closeIcon:je},he[I]))},it=typeof Re=="boolean"?Re:!!Re,pe=typeof Re=="boolean"?void 0:Re,qe=function(ge){return ge||Y||document.body};return d.createElement(d.Fragment,null,d.createElement(V,{zIndex:g,prefixCls:U,pos:me,showMask:it,style:pe==null?void 0:pe.style,fill:pe==null?void 0:pe.color,open:H,animated:t,rootClassName:Z}),d.createElement(L.Z,(0,E.Z)({builtinPlacements:fe(Ye)},N,{ref:R,popupStyle:Ke,popupPlacement:Ue,popupVisible:H,popupClassName:m()(Z,Xe),prefixCls:U,popup:Et,forceRender:!1,destroyPopupOnHide:!0,zIndex:g,getTriggerDOMNode:qe,arrow:!!ue}),d.createElement(Ie.Z,{open:H,autoLock:!0},d.createElement("div",{className:m()(Z,"".concat(U,"-target-placeholder")),style:(0,P.Z)((0,P.Z)({},me||ke),{},{position:"fixed",pointerEvents:"none"})}))))},We=rt,ze=We},40228:function(mt,xe,r){r.d(xe,{Z:function(){return b}});var P=r(1413),E=r(97685),re=r(91),u=r(2788),W=r(93967),d=r.n(W),Ie=r(48555),L=r(34203),A=r(27571),m=r(66680),f=r(7028),l=r(8410),z=r(31131),a=r(67294),p=r(87462),ce=r(82225),Q=r(42550);function ee(e){var n=e.prefixCls,t=e.align,o=e.arrow,s=e.arrowPos,C=o||{},g=C.className,M=C.content,N=s.x,R=N===void 0?0:N,B=s.y,w=B===void 0?0:B,I=a.useRef();if(!t||!t.points)return null;var D={position:"absolute"};if(t.autoArrow!==!1){var X=t.points[0],ie=t.points[1],H=X[0],q=X[1],ae=ie[0],T=ie[1];H===ae||!["t","b"].includes(H)?D.top=w:H==="t"?D.top=0:D.bottom=0,q===T||!["l","r"].includes(q)?D.left=R:q==="l"?D.left=0:D.right=0}return a.createElement("div",{ref:I,className:d()("".concat(n,"-arrow"),g),style:D},M)}function F(e){var n=e.prefixCls,t=e.open,o=e.zIndex,s=e.mask,C=e.motion;return s?a.createElement(ce.ZP,(0,p.Z)({},C,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(g){var M=g.className;return a.createElement("div",{style:{zIndex:o},className:d()("".concat(n,"-mask"),M)})}):null}var V=a.memo(function(e){var n=e.children;return n},function(e,n){return n.cache}),J=V,ve=a.forwardRef(function(e,n){var t=e.popup,o=e.className,s=e.prefixCls,C=e.style,g=e.target,M=e.onVisibleChanged,N=e.open,R=e.keepDom,B=e.fresh,w=e.onClick,I=e.mask,D=e.arrow,X=e.arrowPos,ie=e.align,H=e.motion,q=e.maskMotion,ae=e.forceRender,T=e.getPopupContainer,y=e.autoDestroy,Ee=e.portal,Ke=e.zIndex,Oe=e.onMouseEnter,Xe=e.onMouseLeave,Ge=e.onPointerEnter,Le=e.ready,He=e.offsetX,Re=e.offsetY,je=e.offsetR,$e=e.offsetB,Ve=e.onAlign,de=e.onPrepare,me=e.stretch,Y=e.targetWidth,Ue=e.targetHeight,ue=typeof t=="function"?t():t,Ye=N||R,Qe=(T==null?void 0:T.length)>0,St=a.useState(!T||!Qe),Et=(0,E.Z)(St,2),it=Et[0],pe=Et[1];if((0,l.Z)(function(){!it&&Qe&&g&&pe(!0)},[it,Qe,g]),!it)return null;var qe="auto",le={left:"-1000vw",top:"-1000vh",right:qe,bottom:qe};if(Le||!N){var ge,st=ie.points,ct=ie.dynamicInset||((ge=ie._experimental)===null||ge===void 0?void 0:ge.dynamicInset),Ft=ct&&st[0][1]==="r",Yt=ct&&st[0][0]==="b";Ft?(le.right=je,le.left=qe):(le.left=He,le.right=qe),Yt?(le.bottom=$e,le.top=qe):(le.top=Re,le.bottom=qe)}var Fe={};return me&&(me.includes("height")&&Ue?Fe.height=Ue:me.includes("minHeight")&&Ue&&(Fe.minHeight=Ue),me.includes("width")&&Y?Fe.width=Y:me.includes("minWidth")&&Y&&(Fe.minWidth=Y)),N||(Fe.pointerEvents="none"),a.createElement(Ee,{open:ae||Ye,getContainer:T&&function(){return T(g)},autoDestroy:y},a.createElement(F,{prefixCls:s,open:N,zIndex:Ke,mask:I,motion:q}),a.createElement(Ie.Z,{onResize:Ve,disabled:!N},function(zt){return a.createElement(ce.ZP,(0,p.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ae,leavedClassName:"".concat(s,"-hidden")},H,{onAppearPrepare:de,onEnterPrepare:de,visible:N,onVisibleChanged:function(_e){var gt;H==null||(gt=H.onVisibleChanged)===null||gt===void 0||gt.call(H,_e),M(_e)}}),function(Nt,_e){var gt=Nt.className,se=Nt.style,wt=d()(s,gt,o);return a.createElement("div",{ref:(0,Q.sQ)(zt,n,_e),className:wt,style:(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({"--arrow-x":"".concat(X.x||0,"px"),"--arrow-y":"".concat(X.y||0,"px")},le),Fe),se),{},{boxSizing:"border-box",zIndex:Ke},C),onMouseEnter:Oe,onMouseLeave:Xe,onPointerEnter:Ge,onClick:w},D&&a.createElement(ee,{prefixCls:s,arrow:D,arrowPos:X,align:ie}),a.createElement(J,{cache:!N&&!B},ue))})}))}),_=ve,fe=a.forwardRef(function(e,n){var t=e.children,o=e.getTriggerDOMNode,s=(0,Q.Yr)(t),C=a.useCallback(function(M){(0,Q.mH)(n,o?o(M):M)},[o]),g=(0,Q.x1)(C,t.ref);return s?a.cloneElement(t,{ref:g}):t}),j=fe,K=a.createContext(null),G=K;function Se(e){return e?Array.isArray(e)?e:[e]:[]}function ne(e,n,t,o){return a.useMemo(function(){var s=Se(t!=null?t:n),C=Se(o!=null?o:n),g=new Set(s),M=new Set(C);return e&&(g.has("hover")&&(g.delete("hover"),g.add("click")),M.has("hover")&&(M.delete("hover"),M.add("click"))),[g,M]},[e,n,t,o])}var Te=r(5110);function ke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===n[0]:e[0]===n[0]&&e[1]===n[1]}function rt(e,n,t,o){for(var s=t.points,C=Object.keys(e),g=0;g<C.length;g+=1){var M,N=C[g];if(ke((M=e[N])===null||M===void 0?void 0:M.points,s,o))return"".concat(n,"-placement-").concat(N)}return""}function We(e,n,t,o){return n||(t?{motionName:"".concat(e,"-").concat(t)}:o?{motionName:o}:null)}function ze(e){return e.ownerDocument.defaultView}function O(e){for(var n=[],t=e==null?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];t;){var s=ze(t).getComputedStyle(t),C=s.overflowX,g=s.overflowY,M=s.overflow;[C,g,M].some(function(N){return o.includes(N)})&&n.push(t),t=t.parentElement}return n}function c(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?n:e}function x(e){return c(parseFloat(e),0)}function U(e,n){var t=(0,P.Z)({},e);return(n||[]).forEach(function(o){if(!(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)){var s=ze(o).getComputedStyle(o),C=s.overflow,g=s.overflowClipMargin,M=s.borderTopWidth,N=s.borderBottomWidth,R=s.borderLeftWidth,B=s.borderRightWidth,w=o.getBoundingClientRect(),I=o.offsetHeight,D=o.clientHeight,X=o.offsetWidth,ie=o.clientWidth,H=x(M),q=x(N),ae=x(R),T=x(B),y=c(Math.round(w.width/X*1e3)/1e3),Ee=c(Math.round(w.height/I*1e3)/1e3),Ke=(X-ie-ae-T)*y,Oe=(I-D-H-q)*Ee,Xe=H*Ee,Ge=q*Ee,Le=ae*y,He=T*y,Re=0,je=0;if(C==="clip"){var $e=x(g);Re=$e*y,je=$e*Ee}var Ve=w.x+Le-Re,de=w.y+Xe-je,me=Ve+w.width+2*Re-Le-He-Ke,Y=de+w.height+2*je-Xe-Ge-Oe;t.left=Math.max(t.left,Ve),t.top=Math.max(t.top,de),t.right=Math.min(t.right,me),t.bottom=Math.min(t.bottom,Y)}}),t}function $(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(n),o=t.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(t)}function he(e,n){var t=n||[],o=(0,E.Z)(t,2),s=o[0],C=o[1];return[$(e.width,s),$(e.height,C)]}function oe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Me(e,n){var t=n[0],o=n[1],s,C;return t==="t"?C=e.y:t==="b"?C=e.y+e.height:C=e.y+e.height/2,o==="l"?s=e.x:o==="r"?s=e.x+e.width:s=e.x+e.width/2,{x:s,y:C}}function Ce(e,n){var t={t:"b",b:"t",l:"r",r:"l"};return e.map(function(o,s){return s===n?t[o]||"c":o}).join("")}function Ae(e,n,t,o,s,C,g){var M=a.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:s[o]||{}}),N=(0,E.Z)(M,2),R=N[0],B=N[1],w=a.useRef(0),I=a.useMemo(function(){return n?O(n):[]},[n]),D=a.useRef({}),X=function(){D.current={}};e||X();var ie=(0,m.Z)(function(){if(n&&t&&e){let ot=function(bt,Wt){var Kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wt,Xt=ue.x+bt,ar=ue.y+Wt,or=Xt+ge,Rr=ar+le,jr=Math.max(Xt,Kt.left),Gr=Math.max(ar,Kt.top),Ur=Math.min(or,Kt.right),Qr=Math.min(Rr,Kt.bottom);return Math.max(0,(Ur-jr)*(Qr-Gr))},Mr=function(){Rt=ue.y+te,Pt=Rt+le,xt=ue.x+Pe,Gt=xt+ge};var ae,T,y=n,Ee=y.ownerDocument,Ke=ze(y),Oe=Ke.getComputedStyle(y),Xe=Oe.width,Ge=Oe.height,Le=Oe.position,He=y.style.left,Re=y.style.top,je=y.style.right,$e=y.style.bottom,Ve=y.style.overflow,de=(0,P.Z)((0,P.Z)({},s[o]),C),me=Ee.createElement("div");(ae=y.parentElement)===null||ae===void 0||ae.appendChild(me),me.style.left="".concat(y.offsetLeft,"px"),me.style.top="".concat(y.offsetTop,"px"),me.style.position=Le,me.style.height="".concat(y.offsetHeight,"px"),me.style.width="".concat(y.offsetWidth,"px"),y.style.left="0",y.style.top="0",y.style.right="auto",y.style.bottom="auto",y.style.overflow="hidden";var Y;if(Array.isArray(t))Y={x:t[0],y:t[1],width:0,height:0};else{var Ue=t.getBoundingClientRect();Y={x:Ue.x,y:Ue.y,width:Ue.width,height:Ue.height}}var ue=y.getBoundingClientRect(),Ye=Ee.documentElement,Qe=Ye.clientWidth,St=Ye.clientHeight,Et=Ye.scrollWidth,it=Ye.scrollHeight,pe=Ye.scrollTop,qe=Ye.scrollLeft,le=ue.height,ge=ue.width,st=Y.height,ct=Y.width,Ft={left:0,top:0,right:Qe,bottom:St},Yt={left:-qe,top:-pe,right:Et-qe,bottom:it-pe},Fe=de.htmlRegion,zt="visible",Nt="visibleFirst";Fe!=="scroll"&&Fe!==Nt&&(Fe=zt);var _e=Fe===Nt,gt=U(Yt,I),se=U(Ft,I),wt=Fe===zt?se:gt,nt=_e?se:wt;y.style.left="auto",y.style.top="auto",y.style.right="0",y.style.bottom="0";var ir=y.getBoundingClientRect();y.style.left=He,y.style.top=Re,y.style.right=je,y.style.bottom=$e,y.style.overflow=Ve,(T=y.parentElement)===null||T===void 0||T.removeChild(me);var It=c(Math.round(ge/parseFloat(Xe)*1e3)/1e3),Tt=c(Math.round(le/parseFloat(Ge)*1e3)/1e3);if(It===0||Tt===0||(0,L.S)(t)&&!(0,Te.Z)(t))return;var ur=de.offset,ut=de.targetOffset,Dr=he(ue,ur),lr=(0,E.Z)(Dr,2),lt=lr[0],at=lr[1],vt=he(Y,ut),sr=(0,E.Z)(vt,2),cr=sr[0],wr=sr[1];Y.x-=cr,Y.y-=wr;var Ot=de.points||[],et=(0,E.Z)(Ot,2),Zt=et[0],Ir=et[1],ht=oe(Ir),tt=oe(Zt),vr=Me(Y,ht),pt=Me(ue,tt),Mt=(0,P.Z)({},de),Pe=vr.x-pt.x+lt,te=vr.y-pt.y+at,ft=ot(Pe,te),dt=ot(Pe,te,se),Lt=Me(Y,["t","l"]),qt=Me(ue,["t","l"]),_t=Me(Y,["b","r"]),er=Me(ue,["b","r"]),Je=de.overflow||{},Tr=Je.adjustX,fr=Je.adjustY,jt=Je.shiftX,tr=Je.shiftY,dr=function(Wt){return typeof Wt=="boolean"?Wt:Wt>=0},Rt,Pt,xt,Gt;Mr();var rr=dr(fr),nr=tt[0]===ht[0];if(rr&&tt[0]==="t"&&(Pt>nt.bottom||D.current.bt)){var $t=te;nr?$t-=le-st:$t=Lt.y-er.y-at;var kt=ot(Pe,$t),Lr=ot(Pe,$t,se);kt>ft||kt===ft&&(!_e||Lr>=dt)?(D.current.bt=!0,te=$t,at=-at,Mt.points=[Ce(tt,0),Ce(ht,0)]):D.current.bt=!1}if(rr&&tt[0]==="b"&&(Rt<nt.top||D.current.tb)){var Be=te;nr?Be+=le-st:Be=_t.y-qt.y-at;var mr=ot(Pe,Be),$r=ot(Pe,Be,se);mr>ft||mr===ft&&(!_e||$r>=dt)?(D.current.tb=!0,te=Be,at=-at,Mt.points=[Ce(tt,0),Ce(ht,0)]):D.current.tb=!1}var gr=dr(Tr),hr=tt[1]===ht[1];if(gr&&tt[1]==="l"&&(Gt>nt.right||D.current.rl)){var At=Pe;hr?At-=ge-ct:At=Lt.x-er.x-lt;var Cr=ot(At,te),kr=ot(At,te,se);Cr>ft||Cr===ft&&(!_e||kr>=dt)?(D.current.rl=!0,Pe=At,lt=-lt,Mt.points=[Ce(tt,1),Ce(ht,1)]):D.current.rl=!1}if(gr&&tt[1]==="r"&&(xt<nt.left||D.current.lr)){var Ht=Pe;hr?Ht+=ge-ct:Ht=_t.x-qt.x-lt;var yr=ot(Ht,te),Ut=ot(Ht,te,se);yr>ft||yr===ft&&(!_e||Ut>=dt)?(D.current.lr=!0,Pe=Ht,lt=-lt,Mt.points=[Ce(tt,1),Ce(ht,1)]):D.current.lr=!1}Mr();var Ct=jt===!0?0:jt;typeof Ct=="number"&&(xt<se.left&&(Pe-=xt-se.left-lt,Y.x+ct<se.left+Ct&&(Pe+=Y.x-se.left+ct-Ct)),Gt>se.right&&(Pe-=Gt-se.right-lt,Y.x>se.right-Ct&&(Pe+=Y.x-se.right+Ct)));var Vt=tr===!0?0:tr;typeof Vt=="number"&&(Rt<se.top&&(te-=Rt-se.top-at,Y.y+st<se.top+Vt&&(te+=Y.y-se.top+st-Vt)),Pt>se.bottom&&(te-=Pt-se.bottom-at,Y.y>se.bottom-Vt&&(te+=Y.y-se.bottom+Vt)));var Qt=ue.x+Pe,Jt=Qt+ge,yt=ue.y+te,br=yt+le,Bt=Y.x,Dt=Bt+ct,Sr=Y.y,Ar=Sr+st,Hr=Math.max(Qt,Bt),Er=Math.min(Jt,Dt),Vr=(Hr+Er)/2,Br=Vr-Qt,Wr=Math.max(yt,Sr),Nr=Math.min(br,Ar),Fr=(Wr+Nr)/2,zr=Fr-yt;g==null||g(n,Mt);var Zr=ir.right-ue.x-(Pe+ue.width),Or=ir.bottom-ue.y-(te+ue.height);B({ready:!0,offsetX:Pe/It,offsetY:te/Tt,offsetR:Zr/It,offsetB:Or/Tt,arrowX:Br/It,arrowY:zr/Tt,scaleX:It,scaleY:Tt,align:Mt})}}),H=function(){w.current+=1;var T=w.current;Promise.resolve().then(function(){w.current===T&&ie()})},q=function(){B(function(T){return(0,P.Z)((0,P.Z)({},T),{},{ready:!1})})};return(0,l.Z)(q,[o]),(0,l.Z)(function(){e||q()},[e]),[R.ready,R.offsetX,R.offsetY,R.offsetR,R.offsetB,R.arrowX,R.arrowY,R.scaleX,R.scaleY,R.align,H]}var ye=r(74902);function be(e,n,t,o,s){(0,l.Z)(function(){if(e&&n&&t){let w=function(){o(),s()};var C=n,g=t,M=O(C),N=O(g),R=ze(g),B=new Set([R].concat((0,ye.Z)(M),(0,ye.Z)(N)));return B.forEach(function(I){I.addEventListener("scroll",w,{passive:!0})}),R.addEventListener("resize",w,{passive:!0}),o(),function(){B.forEach(function(I){I.removeEventListener("scroll",w),R.removeEventListener("resize",w)})}}},[e,n,t])}var De=r(80334),S=r(75164);function i(e,n,t,o,s,C,g,M){var N=a.useRef(e),R=a.useRef(!1);N.current!==e&&(R.current=!0,N.current=e),a.useEffect(function(){var B=(0,S.Z)(function(){R.current=!1});return function(){S.Z.cancel(B)}},[e]),a.useEffect(function(){if(n&&o&&(!s||C)){var B=function(){var Le=!1,He=function($e){var Ve=$e.target;Le=g(Ve)},Re=function($e){var Ve=$e.target;!R.current&&N.current&&!Le&&!g(Ve)&&M(!1)};return[He,Re]},w=B(),I=(0,E.Z)(w,2),D=I[0],X=I[1],ie=B(),H=(0,E.Z)(ie,2),q=H[0],ae=H[1],T=ze(o);T.addEventListener("mousedown",D,!0),T.addEventListener("click",X,!0),T.addEventListener("contextmenu",X,!0);var y=(0,A.A)(t);if(y&&(y.addEventListener("mousedown",q,!0),y.addEventListener("click",ae,!0),y.addEventListener("contextmenu",ae,!0)),!1)var Ee,Ke,Oe,Xe;return function(){T.removeEventListener("mousedown",D,!0),T.removeEventListener("click",X,!0),T.removeEventListener("contextmenu",X,!0),y&&(y.removeEventListener("mousedown",q,!0),y.removeEventListener("click",ae,!0),y.removeEventListener("contextmenu",ae,!0))}}},[n,t,o,s,C])}var v=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Z(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.Z,n=a.forwardRef(function(t,o){var s=t.prefixCls,C=s===void 0?"rc-trigger-popup":s,g=t.children,M=t.action,N=M===void 0?"hover":M,R=t.showAction,B=t.hideAction,w=t.popupVisible,I=t.defaultPopupVisible,D=t.onPopupVisibleChange,X=t.afterPopupVisibleChange,ie=t.mouseEnterDelay,H=t.mouseLeaveDelay,q=H===void 0?.1:H,ae=t.focusDelay,T=t.blurDelay,y=t.mask,Ee=t.maskClosable,Ke=Ee===void 0?!0:Ee,Oe=t.getPopupContainer,Xe=t.forceRender,Ge=t.autoDestroy,Le=t.destroyPopupOnHide,He=t.popup,Re=t.popupClassName,je=t.popupStyle,$e=t.popupPlacement,Ve=t.builtinPlacements,de=Ve===void 0?{}:Ve,me=t.popupAlign,Y=t.zIndex,Ue=t.stretch,ue=t.getPopupClassNameFromAlign,Ye=t.fresh,Qe=t.alignPoint,St=t.onPopupClick,Et=t.onPopupAlign,it=t.arrow,pe=t.popupMotion,qe=t.maskMotion,le=t.popupTransitionName,ge=t.popupAnimation,st=t.maskTransitionName,ct=t.maskAnimation,Ft=t.className,Yt=t.getTriggerDOMNode,Fe=(0,re.Z)(t,v),zt=Ge||Le||!1,Nt=a.useState(!1),_e=(0,E.Z)(Nt,2),gt=_e[0],se=_e[1];(0,l.Z)(function(){se((0,z.Z)())},[]);var wt=a.useRef({}),nt=a.useContext(G),ir=a.useMemo(function(){return{registerSubPopup:function(k,Ne){wt.current[k]=Ne,nt==null||nt.registerSubPopup(k,Ne)}}},[nt]),It=(0,f.Z)(),Tt=a.useState(null),ur=(0,E.Z)(Tt,2),ut=ur[0],Dr=ur[1],lr=(0,m.Z)(function(h){(0,L.S)(h)&&ut!==h&&Dr(h),nt==null||nt.registerSubPopup(It,h)}),lt=a.useState(null),at=(0,E.Z)(lt,2),vt=at[0],sr=at[1],cr=a.useRef(null),wr=(0,m.Z)(function(h){(0,L.S)(h)&&vt!==h&&(sr(h),cr.current=h)}),Ot=a.Children.only(g),et=(Ot==null?void 0:Ot.props)||{},Zt={},Ir=(0,m.Z)(function(h){var k,Ne,we=vt;return(we==null?void 0:we.contains(h))||((k=(0,A.A)(we))===null||k===void 0?void 0:k.host)===h||h===we||(ut==null?void 0:ut.contains(h))||((Ne=(0,A.A)(ut))===null||Ne===void 0?void 0:Ne.host)===h||h===ut||Object.values(wt.current).some(function(Ze){return(Ze==null?void 0:Ze.contains(h))||h===Ze})}),ht=We(C,pe,ge,le),tt=We(C,qe,ct,st),vr=a.useState(I||!1),pt=(0,E.Z)(vr,2),Mt=pt[0],Pe=pt[1],te=w!=null?w:Mt,ft=(0,m.Z)(function(h){w===void 0&&Pe(h)});(0,l.Z)(function(){Pe(w||!1)},[w]);var dt=a.useRef(te);dt.current=te;var Lt=a.useRef([]);Lt.current=[];var qt=(0,m.Z)(function(h){var k;ft(h),((k=Lt.current[Lt.current.length-1])!==null&&k!==void 0?k:te)!==h&&(Lt.current.push(h),D==null||D(h))}),_t=a.useRef(),er=function(){clearTimeout(_t.current)},Je=function(k){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;er(),Ne===0?qt(k):_t.current=setTimeout(function(){qt(k)},Ne*1e3)};a.useEffect(function(){return er},[]);var Tr=a.useState(!1),fr=(0,E.Z)(Tr,2),jt=fr[0],tr=fr[1];(0,l.Z)(function(h){(!h||te)&&tr(!0)},[te]);var dr=a.useState(null),Rt=(0,E.Z)(dr,2),Pt=Rt[0],xt=Rt[1],Gt=a.useState([0,0]),rr=(0,E.Z)(Gt,2),nr=rr[0],$t=rr[1],kt=function(k){$t([k.clientX,k.clientY])},Lr=Ae(te,ut,Qe?nr:vt,$e,de,me,Et),Be=(0,E.Z)(Lr,11),mr=Be[0],$r=Be[1],gr=Be[2],hr=Be[3],At=Be[4],Cr=Be[5],kr=Be[6],Ht=Be[7],yr=Be[8],Ut=Be[9],Ct=Be[10],Vt=ne(gt,N,R,B),Qt=(0,E.Z)(Vt,2),Jt=Qt[0],yt=Qt[1],br=Jt.has("click"),Bt=yt.has("click")||yt.has("contextMenu"),Dt=(0,m.Z)(function(){jt||Ct()}),Sr=function(){dt.current&&Qe&&Bt&&Je(!1)};be(te,vt,ut,Dt,Sr),(0,l.Z)(function(){Dt()},[nr,$e]),(0,l.Z)(function(){te&&!(de!=null&&de[$e])&&Dt()},[JSON.stringify(me)]);var Ar=a.useMemo(function(){var h=rt(de,C,Ut,Qe);return d()(h,ue==null?void 0:ue(Ut))},[Ut,ue,de,C,Qe]);a.useImperativeHandle(o,function(){return{nativeElement:cr.current,forceAlign:Dt}});var Hr=a.useState(0),Er=(0,E.Z)(Hr,2),Vr=Er[0],Br=Er[1],Wr=a.useState(0),Nr=(0,E.Z)(Wr,2),Fr=Nr[0],zr=Nr[1],Zr=function(){if(Ue&&vt){var k=vt.getBoundingClientRect();Br(k.width),zr(k.height)}},Or=function(){Zr(),Dt()},ot=function(k){tr(!1),Ct(),X==null||X(k)},Mr=function(){return new Promise(function(k){Zr(),xt(function(){return k})})};(0,l.Z)(function(){Pt&&(Ct(),Pt(),xt(null))},[Pt]);function bt(h,k,Ne,we){Zt[h]=function(Ze){var Pr;we==null||we(Ze),Je(k,Ne);for(var Jr=arguments.length,Kr=new Array(Jr>1?Jr-1:0),xr=1;xr<Jr;xr++)Kr[xr-1]=arguments[xr];(Pr=et[h])===null||Pr===void 0||Pr.call.apply(Pr,[et,Ze].concat(Kr))}}(br||Bt)&&(Zt.onClick=function(h){var k;dt.current&&Bt?Je(!1):!dt.current&&br&&(kt(h),Je(!0));for(var Ne=arguments.length,we=new Array(Ne>1?Ne-1:0),Ze=1;Ze<Ne;Ze++)we[Ze-1]=arguments[Ze];(k=et.onClick)===null||k===void 0||k.call.apply(k,[et,h].concat(we))}),i(te,Bt,vt,ut,y,Ke,Ir,Je);var Wt=Jt.has("hover"),Kt=yt.has("hover"),Xt,ar;Wt&&(bt("onMouseEnter",!0,ie,function(h){kt(h)}),bt("onPointerEnter",!0,ie,function(h){kt(h)}),Xt=function(){(te||jt)&&Je(!0,ie)},Qe&&(Zt.onMouseMove=function(h){var k;(k=et.onMouseMove)===null||k===void 0||k.call(et,h)})),Kt&&(bt("onMouseLeave",!1,q),bt("onPointerLeave",!1,q),ar=function(){Je(!1,q)}),Jt.has("focus")&&bt("onFocus",!0,ae),yt.has("focus")&&bt("onBlur",!1,T),Jt.has("contextMenu")&&(Zt.onContextMenu=function(h){var k;dt.current&&yt.has("contextMenu")?Je(!1):(kt(h),Je(!0)),h.preventDefault();for(var Ne=arguments.length,we=new Array(Ne>1?Ne-1:0),Ze=1;Ze<Ne;Ze++)we[Ze-1]=arguments[Ze];(k=et.onContextMenu)===null||k===void 0||k.call.apply(k,[et,h].concat(we))}),Ft&&(Zt.className=d()(et.className,Ft));var or=(0,P.Z)((0,P.Z)({},et),Zt),Rr={},jr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];jr.forEach(function(h){Fe[h]&&(Rr[h]=function(){for(var k,Ne=arguments.length,we=new Array(Ne),Ze=0;Ze<Ne;Ze++)we[Ze]=arguments[Ze];(k=or[h])===null||k===void 0||k.call.apply(k,[or].concat(we)),Fe[h].apply(Fe,we)})});var Gr=a.cloneElement(Ot,(0,P.Z)((0,P.Z)({},or),Rr)),Ur={x:Cr,y:kr},Qr=it?(0,P.Z)({},it!==!0?it:{}):null;return a.createElement(a.Fragment,null,a.createElement(Ie.Z,{disabled:!te,ref:wr,onResize:Or},a.createElement(j,{getTriggerDOMNode:Yt},Gr)),a.createElement(G.Provider,{value:ir},a.createElement(_,{portal:e,ref:lr,prefixCls:C,popup:He,className:d()(Re,Ar),style:je,target:vt,onMouseEnter:Xt,onMouseLeave:ar,onPointerEnter:Xt,zIndex:Y,open:te,keepDom:jt,fresh:Ye,onClick:St,mask:y,motion:ht,maskMotion:tt,onVisibleChanged:ot,onPrepare:Mr,forceRender:Xe,autoDestroy:zt,getPopupContainer:Oe,align:Ut,arrow:Qr,arrowPos:Ur,ready:mr,offsetX:$r,offsetY:gr,offsetR:hr,offsetB:At,onAlign:Dt,stretch:Ue,targetWidth:Vr/Ht,targetHeight:Fr/yr})))});return n}var b=Z(u.Z)}}]);
@@ -1,3 +0,0 @@
1
- !(function(){"use strict";var V=(yt,tt,xe)=>new Promise((j,N)=>{var $e=ae=>{try{_e(xe.next(ae))}catch(T){N(T)}},vt=ae=>{try{_e(xe.throw(ae))}catch(T){N(T)}},_e=ae=>ae.done?j(ae.value):Promise.resolve(ae.value).then($e,vt);_e((xe=xe.apply(yt,tt)).next())});(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[9021],{12599:function(yt,tt,xe){xe.d(tt,{J0:function(){return T},LX:function(){return xt},OF:function(){return nt},RQ:function(){return Ee},Zn:function(){return Fe},lX:function(){return _e},ov:function(){return At},p7:function(){return Ir},q_:function(){return ae}});function j(){return j=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},j.apply(this,arguments)}var N;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(N||(N={}));const $e="popstate";function vt(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==null?a.length-1:r),o=N.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=ie(a?m().pathname:"/",y,R,w);return ee(v.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(y)),v}function D(y){return typeof y=="string"?y:oe(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"?te(y):y;return{pathname:R.pathname||"",search:R.search||"",hash:R.hash||""}},push(y,R){o=N.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=N.Replace;let w=h(y,R);a[s]=w,n&&f&&f({action:o,location:w,delta:0})},go(y){o=N.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 _e(e){e===void 0&&(e={});function t(n,a){let{pathname:s,search:o,hash:f}=n.location;return ie("",{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:oe(a)}return wt(t,r,null,e)}function ae(e){e===void 0&&(e={});function t(a,s){let{pathname:o="/",search:f="",hash:c=""}=te(a.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),ie("",{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:oe(s))}function n(a,s){ee(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return wt(t,r,n,e)}function T(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function ee(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(r){}}}function ar(){return Math.random().toString(36).substr(2,8)}function bt(e,t){return{usr:e.state,key:e.key,idx:t}}function ie(e,t,r,n){return r===void 0&&(r=null),j({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?te(t):t,{state:r,key:t&&t.key||n||ar()})}function oe(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 te(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 wt(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:s=!1}=n,o=a.history,f=N.Pop,c=null,m=h();m==null&&(m=0,o.replaceState(j({},o.state,{idx:m}),""));function h(){return(o.state||{idx:null}).idx}function D(){f=N.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=N.Push;let L=ie(w.location,v,p);r&&r(L,v),m=h()+1;let F=bt(L,m),_=w.createHref(L);try{o.pushState(F,"",_)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;a.location.assign(_)}s&&c&&c({action:f,location:w.location,delta:1})}function y(v,p){f=N.Replace;let L=ie(w.location,v,p);r&&r(L,v),m=h();let F=bt(L,m),_=w.createHref(L);o.replaceState(F,"",_),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:oe(v);return T(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($e,D),c=v,()=>{a.removeEventListener($e,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 ir=new Set(["lazy","caseSensitive","path","id","index","children"]);function or(e){return e.index===!0}function Ve(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(T(a.index!==!0||!a.children,"Cannot specify children on an index route"),T(!n[f],'Found a route id collision on id "'+f+`". Route id's must be globally unique within Data Router usages`),or(a)){let c=j({},a,t(a),{id:f});return n[f]=c,c}else{let c=j({},a,t(a),{id:f,children:void 0});return n[f]=c,a.children&&(c.children=Ve(a.children,t,o,n)),c}})}function me(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?te(t):t,a=Fe(n.pathname||"/",r);if(a==null)return null;let s=Rt(e);sr(s);let o=null;for(let f=0;o==null&&f<s.length;++f)o=yr(s[f],br(a));return o}function lr(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 Rt(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("/")&&(T(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=Ee([n,c.relativePath]),h=r.concat(c);s.children&&s.children.length>0&&(T(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+m+'".')),Rt(s.children,t,h,m)),!(s.path==null&&!s.index)&&t.push({path:m,score:mr(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 St(s.path))a(s,o,c)}),t}function St(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=St(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 sr(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:gr(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const dr=/^:\w+$/,ur=3,cr=2,fr=1,hr=10,pr=-2,Dt=e=>e==="*";function mr(e,t){let r=e.split("/"),n=r.length;return r.some(Dt)&&(n+=pr),t&&(n+=cr),r.filter(a=>!Dt(a)).reduce((a,s)=>a+(dr.test(s)?ur:s===""?fr:hr),n)}function gr(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 yr(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=xt({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:Ee([a,h.pathname]),pathnameBase:Er(Ee([a,h.pathnameBase])),route:D}),h.pathnameBase!=="/"&&(a=Ee([a,h.pathnameBase]))}return s}function fn(e,t){t===void 0&&(t={});let r=e;r.endsWith("*")&&r!=="*"&&!r.endsWith("/*")&&(ee(!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 T(g==="?"||y!=null,'Missing ":'+D+'" param'),a(y)}return o.replace(/\?$/g,"")}).filter(o=>!!o);return n+s.join("/")}function xt(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=vr(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]=wr(R||"",g),m},{}),pathname:s,pathnameBase:o,pattern:e}}function vr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),ee(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 br(e){try{return decodeURI(e)}catch(t){return ee(!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 wr(e,t){try{return decodeURIComponent(e)}catch(r){return ee(!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 Fe(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 Rr(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?te(e):e;return{pathname:r?r.startsWith("/")?r:Sr(r,t):t,search:Pr(n),hash:Lr(a)}}function Sr(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 rt(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 Et(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Dr(e,t){let r=Et(e);return t?r.map((n,a)=>a===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function xr(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=te(e):(a=j({},e),T(!a.pathname||!a.pathname.includes("?"),rt("?","pathname","search",a)),T(!a.pathname||!a.pathname.includes("#"),rt("#","pathname","hash",a)),T(!a.search||!a.search.includes("#"),rt("#","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=Rr(a,f),m=o&&o!=="/"&&o.endsWith("/"),h=(s||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(m||h)&&(c.pathname+="/"),c}function hn(e){return e===""||e.pathname===""?"/":typeof e=="string"?te(e).pathname:e.pathname}const Ee=e=>e.join("/").replace(/\/\/+/g,"/"),Er=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Pr=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Lr=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,pn=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),j({},n,{headers:a}))};class Pt extends null{}class Mr{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],T(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 Pt("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 Pt)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)}resolveData(t){return V(this,null,function*(){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=yield 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 T(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]:Tr(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function Ar(e){return e instanceof Promise&&e._tracked===!0}function Tr(e){if(!Ar(e))return e;if(e._error)throw e._error;return e._data}const mn=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r;return new Mr(t,n)},jr=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status=="undefined"&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",t),new Response(null,j({},n,{headers:a}))},gn=(e,t)=>{let r=jr(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r};class nt{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 Lt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Mt=["post","put","patch","delete"],Cr=new Set(Mt),Ur=["get",...Mt],_r=new Set(Ur),Fr=new Set([301,302,303,307,308]),Or=new Set([307,308]),at={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},At={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Oe={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Tt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ct="remix-router-transitions";function Ir(e){const t=e.window?e.window:typeof window!="undefined"?window:void 0,r=typeof t!="undefined"&&typeof t.document!="undefined"&&typeof t.document.createElement!="undefined",n=!r;T(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=jt;let s={},o=Ve(e.routes,a,void 0,s),f,c=e.basename||"/",m=j({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=me(o,e.history.location,c),p=null;if(v==null){let i=k(404,{pathname:e.history.location.pathname}),{matches:l,route:u}=Je(o);v=l,p={[u.id]:i}}let L,F=v.some(i=>i.route.lazy),_=v.some(i=>i.route.loader);if(F)L=!1;else if(!_)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:at,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=N.Pop,C=!1,K,re=!1,Z=new Map,le=null,Me=!1,be=!1,Ye=[],Xe=[],$=new Map,Ge=0,Ne=-1,Ae=new Map,se=new Set,Te=new Map,Be=new Map,de=new Set,we=new Map,Re=new Map,ut=!1;function Gr(){if(h=e.history.listen(i=>{let{action:l,location:u,delta:b}=i;if(ut){ut=!1;return}ee(Re.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=tr({currentLocation:d.location,nextLocation:u,historyAction:l});if(S&&b!=null){ut=!0,e.history.go(b*-1),Qe(S,{state:"blocked",location:u,proceed(){Qe(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,Oe),G({blockers:M})}});return}return Se(l,u)}),r){Yr(t,Z);let i=()=>Xr(t,Z);t.addEventListener("pagehide",i),le=()=>t.removeEventListener("pagehide",i)}return d.initialized||Se(N.Pop,d.location,{initialHydration:!0}),I}function qr(){h&&h(),le&&le(),D.clear(),K&&K.abort(),d.fetchers.forEach((i,l)=>qe(l)),d.blockers.forEach((i,l)=>er(l))}function Qr(i){return D.add(i),()=>D.delete(i)}function G(i,l){l===void 0&&(l={}),d=j({},d,i);let u=[],b=[];m.v7_fetcherPersist&&d.fetchers.forEach((S,M)=>{S.state==="idle"&&(de.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=>qe(S)))}function Ke(i,l,u){var b,S;let{flushSync:M}=u===void 0?{}:u,P=d.actionData!=null&&d.navigation.formMethod!=null&&q(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?Kt(d.loaderData,l.loaderData,l.matches||[],l.errors):d.loaderData,U=d.blockers;U.size>0&&(U=new Map(U),U.forEach((B,X)=>U.set(X,Oe)));let J=C===!0||d.navigation.formMethod!=null&&q(d.navigation.formMethod)&&((S=i.state)==null?void 0:S._isRedirect)!==!0;f&&(o=f,f=void 0),Me||O===N.Pop||(O===N.Push?e.history.push(i,i.state):O===N.Replace&&e.history.replace(i,i.state));let A;if(O===N.Pop){let B=Z.get(d.location.pathname);B&&B.has(i.pathname)?A={currentLocation:d.location,nextLocation:i}:Z.has(i.pathname)&&(A={currentLocation:i,nextLocation:d.location})}else if(re){let B=Z.get(d.location.pathname);B?B.add(i.pathname):(B=new Set([i.pathname]),Z.set(d.location.pathname,B)),A={currentLocation:d.location,nextLocation:i}}G(j({},l,{actionData:E,loaderData:x,historyAction:O,location:i,initialized:!0,navigation:at,revalidation:"idle",restoreScrollPosition:nr(i,l.matches||d.matches),preventScrollReset:J,blockers:U}),{viewTransitionOpts:A,flushSync:M===!0}),O=N.Pop,C=!1,re=!1,Me=!1,be=!1,Ye=[],Xe=[]}function Yt(i,l){return V(this,null,function*(){if(typeof i=="number"){e.history.go(i);return}let u=it(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}=Ut(m.v7_normalizeFormMethod,!1,u,l),P=d.location,E=ie(d.location,b,l&&l.state);E=j({},E,e.history.encodeLocation(E));let x=l&&l.replace!=null?l.replace:void 0,U=N.Push;x===!0?U=N.Replace:x===!1||S!=null&&q(S.formMethod)&&S.formAction===d.location.pathname+d.location.search&&(U=N.Replace);let J=l&&"preventScrollReset"in l?l.preventScrollReset===!0:void 0,A=(l&&l.unstable_flushSync)===!0,B=tr({currentLocation:P,nextLocation:E,historyAction:U});if(B){Qe(B,{state:"blocked",location:E,proceed(){Qe(B,{state:"proceeding",proceed:void 0,reset:void 0,location:E}),Yt(i,l)},reset(){let X=new Map(d.blockers);X.set(B,Oe),G({blockers:X})}});return}return yield Se(U,E,{submission:S,pendingError:M,preventScrollReset:J,replace:l&&l.replace,enableViewTransition:l&&l.unstable_viewTransition,flushSync:A})})}function Zr(){if(ct(),G({revalidation:"loading"}),d.navigation.state!=="submitting"){if(d.navigation.state==="idle"){Se(d.historyAction,d.location,{startUninterruptedRevalidation:!0});return}Se(O||d.historyAction,d.navigation.location,{overrideNavigation:d.navigation})}}function Se(i,l,u){return V(this,null,function*(){K&&K.abort(),K=null,O=i,Me=(u&&u.startUninterruptedRevalidation)===!0,dn(d.location,d.matches),C=(u&&u.preventScrollReset)===!0,re=(u&&u.enableViewTransition)===!0;let b=f||o,S=u&&u.overrideNavigation,M=me(b,l,c),P=(u&&u.flushSync)===!0;if(!M){let X=k(404,{pathname:l.pathname}),{matches:Q,route:Y}=Je(b);ft(),Ke(l,{matches:Q,loaderData:{},errors:{[Y.id]:X}},{flushSync:P});return}if(d.initialized&&!be&&Kr(d.location,l)&&!(u&&u.submission&&q(u.submission.formMethod))){Ke(l,{matches:M},{flushSync:P});return}K=new AbortController;let E=Ie(e.history,l,K.signal,u&&u.submission),x,U;if(u&&u.pendingError)U={[Pe(M).route.id]:u.pendingError};else if(u&&u.submission&&q(u.submission.formMethod)){let X=yield en(E,l,u.submission,M,{replace:u.replace,flushSync:P});if(X.shortCircuited)return;x=X.pendingActionData,U=X.pendingActionError,S=dt(l,u.submission),P=!1,E=new Request(E.url,{signal:E.signal})}let{shortCircuited:J,loaderData:A,errors:B}=yield tn(E,l,M,S,u&&u.submission,u&&u.fetcherSubmission,u&&u.replace,u&&u.initialHydration===!0,P,x,U);J||(K=null,Ke(l,j({matches:M},x?{actionData:x}:{},{loaderData:A,errors:B})))})}function en(i,l,u,b,S){return V(this,null,function*(){S===void 0&&(S={}),ct();let M=Vr(l,u);G({navigation:M},{flushSync:S.flushSync===!0});let P,E=He(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=yield ge("action",i,E,b,s,a,c,m.v7_relativeSplatPath),i.signal.aborted)return{shortCircuited:!0};if(ve(P)){let x;return S&&S.replace!=null?x=S.replace:x=P.location===d.location.pathname+d.location.search,yield We(d,P,{submission:u,replace:x}),{shortCircuited:!0}}if(ye(P)){let x=Pe(b,E.route.id);return(S&&S.replace)!==!0&&(O=N.Push),{pendingActionData:{},pendingActionError:{[x.route.id]:P.error}}}if(ue(P))throw k(400,{type:"defer-action"});return{pendingActionData:{[E.route.id]:P.data}}})}function tn(i,l,u,b,S,M,P,E,x,U,J){return V(this,null,function*(){let A=b||dt(l,S),B=S||M||Jt(A),X=f||o,[Q,Y]=Ft(e.history,d,u,B,l,m.v7_partialHydration&&E===!0,be,Ye,Xe,de,Te,se,X,c,U,J);if(ft(z=>!(u&&u.some(W=>W.route.id===z))||Q&&Q.some(W=>W.route.id===z)),Ne=++Ge,Q.length===0&&Y.length===0){let z=Qt();return Ke(l,j({matches:u,loaderData:{},errors:J||null},U?{actionData:U}:{},z?{fetchers:new Map(d.fetchers)}:{}),{flushSync:x}),{shortCircuited:!0}}if(!Me&&(!m.v7_partialHydration||!E)){Y.forEach(W=>{let ne=d.fetchers.get(W.key),et=ze(void 0,ne?ne.data:void 0);d.fetchers.set(W.key,et)});let z=U||d.actionData;G(j({navigation:A},z?Object.keys(z).length===0?{actionData:null}:{actionData:z}:{},Y.length>0?{fetchers:new Map(d.fetchers)}:{}),{flushSync:x})}Y.forEach(z=>{$.has(z.key)&&he(z.key),z.controller&&$.set(z.key,z.controller)});let je=()=>Y.forEach(z=>he(z.key));K&&K.signal.addEventListener("abort",je);let{results:ht,loaderResults:Ce,fetcherResults:pe}=yield Xt(d.matches,u,Q,Y,i);if(i.signal.aborted)return{shortCircuited:!0};K&&K.signal.removeEventListener("abort",je),Y.forEach(z=>$.delete(z.key));let De=Wt(ht);if(De){if(De.idx>=Q.length){let z=Y[De.idx-Q.length].key;se.add(z)}return yield We(d,De.result,{replace:P}),{shortCircuited:!0}}let{loaderData:pt,errors:mt}=Bt(d,u,Q,Ce,J,Y,pe,we);we.forEach((z,W)=>{z.subscribe(ne=>{(ne||z.done)&&we.delete(W)})});let gt=Qt(),Ue=Zt(Ne),Ze=gt||Ue||Y.length>0;return j({loaderData:pt,errors:mt},Ze?{fetchers:new Map(d.fetchers)}:{})})}function rn(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)&&he(i);let S=(b&&b.unstable_flushSync)===!0,M=f||o,P=it(d.location,d.matches,c,m.v7_prependBasename,u,m.v7_relativeSplatPath,l,b==null?void 0:b.relative),E=me(M,P,c);if(!E){ke(i,l,k(404,{pathname:P}),{flushSync:S});return}let{path:x,submission:U,error:J}=Ut(m.v7_normalizeFormMethod,!0,P,b);if(J){ke(i,l,J,{flushSync:S});return}let A=He(E,x);if(C=(b&&b.preventScrollReset)===!0,U&&q(U.formMethod)){nn(i,l,x,A,E,S,U);return}Te.set(i,{routeId:l,path:x}),an(i,l,x,A,E,S,U)}function nn(i,l,u,b,S,M,P){return V(this,null,function*(){if(ct(),Te.delete(i),!b.route.action&&!b.route.lazy){let W=k(405,{method:P.formMethod,pathname:u,routeId:l});ke(i,l,W,{flushSync:M});return}let E=d.fetchers.get(i);fe(i,Jr(P,E),{flushSync:M});let x=new AbortController,U=Ie(e.history,u,x.signal,P);$.set(i,x);let J=Ge,A=yield ge("action",U,b,S,s,a,c,m.v7_relativeSplatPath);if(U.signal.aborted){$.get(i)===x&&$.delete(i);return}if(de.has(i)){fe(i,ce(void 0));return}if(ve(A))if($.delete(i),Ne>J){fe(i,ce(void 0));return}else return se.add(i),fe(i,ze(P)),We(d,A,{fetcherSubmission:P});if(ye(A)){ke(i,l,A.error);return}if(ue(A))throw k(400,{type:"defer-action"});let B=d.navigation.location||d.location,X=Ie(e.history,B,x.signal),Q=f||o,Y=d.navigation.state!=="idle"?me(Q,d.navigation.location,c):d.matches;T(Y,"Didn't find any matches after fetcher action");let je=++Ge;Ae.set(i,je);let ht=ze(P,A.data);d.fetchers.set(i,ht);let[Ce,pe]=Ft(e.history,d,Y,P,B,!1,be,Ye,Xe,de,Te,se,Q,c,{[b.route.id]:A.data},void 0);pe.filter(W=>W.key!==i).forEach(W=>{let ne=W.key,et=d.fetchers.get(ne),cn=ze(void 0,et?et.data:void 0);d.fetchers.set(ne,cn),$.has(ne)&&he(ne),W.controller&&$.set(ne,W.controller)}),G({fetchers:new Map(d.fetchers)});let De=()=>pe.forEach(W=>he(W.key));x.signal.addEventListener("abort",De);let{results:pt,loaderResults:mt,fetcherResults:gt}=yield Xt(d.matches,Y,Ce,pe,X);if(x.signal.aborted)return;x.signal.removeEventListener("abort",De),Ae.delete(i),$.delete(i),pe.forEach(W=>$.delete(W.key));let Ue=Wt(pt);if(Ue){if(Ue.idx>=Ce.length){let W=pe[Ue.idx-Ce.length].key;se.add(W)}return We(d,Ue.result)}let{loaderData:Ze,errors:z}=Bt(d,d.matches,Ce,mt,void 0,pe,gt,we);if(d.fetchers.has(i)){let W=ce(A.data);d.fetchers.set(i,W)}Zt(je),d.navigation.state==="loading"&&je>Ne?(T(O,"Expected pending action"),K&&K.abort(),Ke(d.navigation.location,{matches:Y,loaderData:Ze,errors:z,fetchers:new Map(d.fetchers)})):(G({errors:z,loaderData:Kt(d.loaderData,Ze,Y,z),fetchers:new Map(d.fetchers)}),be=!1)})}function an(i,l,u,b,S,M,P){return V(this,null,function*(){let E=d.fetchers.get(i);fe(i,ze(P,E?E.data:void 0),{flushSync:M});let x=new AbortController,U=Ie(e.history,u,x.signal);$.set(i,x);let J=Ge,A=yield ge("loader",U,b,S,s,a,c,m.v7_relativeSplatPath);if(ue(A)&&(A=(yield Vt(A,U.signal,!0))||A),$.get(i)===x&&$.delete(i),!U.signal.aborted){if(de.has(i)){fe(i,ce(void 0));return}if(ve(A))if(Ne>J){fe(i,ce(void 0));return}else{se.add(i),yield We(d,A);return}if(ye(A)){ke(i,l,A.error);return}T(!ue(A),"Unhandled fetcher deferred data"),fe(i,ce(A.data))}})}function We(i,l,u){return V(this,null,function*(){let{submission:b,fetcherSubmission:S,replace:M}=u===void 0?{}:u;l.revalidate&&(be=!0);let P=ie(i.location,l.location,{_isRedirect:!0});if(T(P,"Expected a location on the redirect navigation"),r){let B=!1;if(l.reloadDocument)B=!0;else if(Tt.test(l.location)){const X=e.history.createURL(l.location);B=X.origin!==t.location.origin||Fe(X.pathname,c)==null}if(B){M?t.location.replace(l.location):t.location.assign(l.location);return}}K=null;let E=M===!0?N.Replace:N.Push,{formMethod:x,formAction:U,formEncType:J}=i.navigation;!b&&!S&&x&&U&&J&&(b=Jt(i.navigation));let A=b||S;if(Or.has(l.status)&&A&&q(A.formMethod))yield Se(E,P,{submission:j({},A,{formAction:l.location}),preventScrollReset:C});else{let B=dt(P,b);yield Se(E,P,{overrideNavigation:B,fetcherSubmission:S,preventScrollReset:C})}})}function Xt(i,l,u,b,S){return V(this,null,function*(){let M=yield Promise.all([...u.map(x=>ge("loader",S,x,l,s,a,c,m.v7_relativeSplatPath)),...b.map(x=>x.matches&&x.match&&x.controller?ge("loader",Ie(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 yield Promise.all([$t(i,u,P,P.map(()=>S.signal),!1,d.loaderData),$t(i,b.map(x=>x.match),E,b.map(x=>x.controller?x.controller.signal:null),!0)]),{results:M,loaderResults:P,fetcherResults:E}})}function ct(){be=!0,Ye.push(...ft()),Te.forEach((i,l)=>{$.has(l)&&(Xe.push(l),he(l))})}function fe(i,l,u){u===void 0&&(u={}),d.fetchers.set(i,l),G({fetchers:new Map(d.fetchers)},{flushSync:(u&&u.flushSync)===!0})}function ke(i,l,u,b){b===void 0&&(b={});let S=Pe(d.matches,l);qe(i),G({errors:{[S.route.id]:u},fetchers:new Map(d.fetchers)},{flushSync:(b&&b.flushSync)===!0})}function Gt(i){return m.v7_fetcherPersist&&(Be.set(i,(Be.get(i)||0)+1),de.has(i)&&de.delete(i)),d.fetchers.get(i)||At}function qe(i){let l=d.fetchers.get(i);$.has(i)&&!(l&&l.state==="loading"&&Ae.has(i))&&he(i),Te.delete(i),Ae.delete(i),se.delete(i),de.delete(i),d.fetchers.delete(i)}function on(i){if(m.v7_fetcherPersist){let l=(Be.get(i)||0)-1;l<=0?(Be.delete(i),de.add(i)):Be.set(i,l)}else qe(i);G({fetchers:new Map(d.fetchers)})}function he(i){let l=$.get(i);T(l,"Expected fetch controller: "+i),l.abort(),$.delete(i)}function qt(i){for(let l of i){let u=Gt(l),b=ce(u.data);d.fetchers.set(l,b)}}function Qt(){let i=[],l=!1;for(let u of se){let b=d.fetchers.get(u);T(b,"Expected fetcher: "+u),b.state==="loading"&&(se.delete(u),i.push(u),l=!0)}return qt(i),l}function Zt(i){let l=[];for(let[u,b]of Ae)if(b<i){let S=d.fetchers.get(u);T(S,"Expected fetcher: "+u),S.state==="loading"&&(he(u),Ae.delete(u),l.push(u))}return qt(l),l.length>0}function ln(i,l){let u=d.blockers.get(i)||Oe;return Re.get(i)!==l&&Re.set(i,l),u}function er(i){d.blockers.delete(i),Re.delete(i)}function Qe(i,l){let u=d.blockers.get(i)||Oe;T(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),G({blockers:b})}function tr(i){let{currentLocation:l,nextLocation:u,historyAction:b}=i;if(Re.size===0)return;Re.size>1&&ee(!1,"A router only supports one blocker at a time");let S=Array.from(Re.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 ft(i){let l=[];return we.forEach((u,b)=>{(!i||i(b))&&(u.cancel(),l.push(b),we.delete(b))}),l}function sn(i,l,u){if(g=i,R=l,y=u||null,!w&&d.navigation===at){w=!0;let b=nr(d.location,d.matches);b!=null&&G({restoreScrollPosition:b})}return()=>{g=null,R=null,y=null}}function rr(i,l){return y&&y(i,l.map(b=>lr(b,d.loaderData)))||i.key}function dn(i,l){if(g&&R){let u=rr(i,l);g[u]=R()}}function nr(i,l){if(g){let u=rr(i,l),b=g[u];if(typeof b=="number")return b}return null}function un(i){s={},f=Ve(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:Gr,subscribe:Qr,enableScrollRestoration:sn,navigate:Yt,fetch:rn,revalidate:Zr,createHref:i=>e.history.createHref(i),encodeLocation:i=>e.history.encodeLocation(i),getFetcher:Gt,deleteFetcher:on,dispose:qr,getBlocker:ln,deleteBlocker:er,_internalFetchControllers:$,_internalActiveDeferreds:we,_internalSetRoutes:un},I}const Hr=Symbol("deferred");function yn(e,t){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=jt;let s=j({v7_relativeSplatPath:!1},t?t.future:null),o=Ve(e,a,void 0,r);function f(g,y){return V(this,null,function*(){let{requestContext:R}=y===void 0?{}:y,w=new URL(g.url),v=g.method,p=ie("",oe(w),null,"default"),L=me(o,p,n);if(!lt(v)&&v!=="HEAD"){let _=k(405,{method:v}),{matches:I,route:d}=Je(o);return{basename:n,location:p,matches:I,loaderData:{},actionData:null,errors:{[d.id]:_},statusCode:_.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!L){let _=k(404,{pathname:p.pathname}),{matches:I,route:d}=Je(o);return{basename:n,location:p,matches:I,loaderData:{},actionData:null,errors:{[d.id]:_},statusCode:_.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let F=yield m(g,p,L,R);return Le(F)?F:j({location:p,basename:n},F)})}function c(g,y){return V(this,null,function*(){let{routeId:R,requestContext:w}=y===void 0?{}:y,v=new URL(g.url),p=g.method,L=ie("",oe(v),null,"default"),F=me(o,L,n);if(!lt(p)&&p!=="HEAD"&&p!=="OPTIONS")throw k(405,{method:p});if(!F)throw k(404,{pathname:L.pathname});let _=R?F.find(C=>C.route.id===R):He(F,L);if(R&&!_)throw k(403,{pathname:L.pathname,routeId:R});if(!_)throw k(404,{pathname:L.pathname});let I=yield m(g,L,F,w,_);if(Le(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 C=Object.values(I.loaderData)[0];return(O=I.activeDeferreds)!=null&&O[_.route.id]&&(C[Hr]=I.activeDeferreds[_.route.id]),C}})}function m(g,y,R,w,v){return V(this,null,function*(){T(g.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(q(g.method.toLowerCase()))return yield h(g,R,v||He(R,y),w,v!=null);let p=yield D(g,R,w,v);return Le(p)?p:j({},p,{actionData:null,actionHeaders:{}})}catch(p){if($r(p)){if(p.type===H.error)throw p.response;return p.response}if(kr(p))return p;throw p}})}function h(g,y,R,w,v){return V(this,null,function*(){let p;if(!R.route.action&&!R.route.lazy){let _=k(405,{method:g.method,pathname:new URL(g.url).pathname,routeId:R.route.id});if(v)throw _;p={type:H.error,error:_}}else if(p=yield ge("action",g,R,y,r,a,n,s.v7_relativeSplatPath,{isStaticRequest:!0,isRouteRequest:v,requestContext:w}),g.signal.aborted){let _=v?"queryRoute":"query";throw new Error(_+"() call aborted: "+g.method+" "+g.url)}if(ve(p))throw new Response(null,{status:p.status,headers:{Location:p.location}});if(ue(p)){let _=k(400,{type:"defer-action"});if(v)throw _;p={type:H.error,error:_}}if(v){if(ye(p))throw p.error;return{matches:[R],loaderData:{},actionData:{[R.route.id]:p.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(ye(p)){let _=Pe(y,R.route.id),I=yield D(g,y,w,void 0,{[_.route.id]:p.error});return j({},I,{statusCode:Lt(p.error)?p.error.status:500,actionData:null,actionHeaders:j({},p.headers?{[R.route.id]:p.headers}:{})})}let L=new Request(g.url,{headers:g.headers,redirect:g.redirect,signal:g.signal}),F=yield D(L,y,w);return j({},F,p.statusCode?{statusCode:p.statusCode}:{},{actionData:{[R.route.id]:p.data},actionHeaders:j({},p.headers?{[R.route.id]:p.headers}:{})})})}function D(g,y,R,w,v){return V(this,null,function*(){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]:_t(y,Object.keys(v||{})[0])).filter(C=>C.route.loader||C.route.lazy);if(F.length===0)return{matches:y,loaderData:y.reduce((C,K)=>Object.assign(C,{[K.route.id]:null}),{}),errors:v||null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let _=yield Promise.all([...F.map(C=>ge("loader",g,C,y,r,a,n,s.v7_relativeSplatPath,{isStaticRequest:!0,isRouteRequest:p,requestContext:R}))]);if(g.signal.aborted){let C=p?"queryRoute":"query";throw new Error(C+"() call aborted: "+g.method+" "+g.url)}let I=new Map,d=Nt(y,F,_,v,I),O=new Set(F.map(C=>C.route.id));return y.forEach(C=>{O.has(C.route.id)||(d.loaderData[C.route.id]=null)}),j({},d,{matches:y,activeDeferreds:I.size>0?Object.fromEntries(I.entries()):null})})}return{dataRoutes:o,query:f,queryRoute:c}}function vn(e,t,r){return j({},t,{statusCode:500,errors:{[t._deepestRenderedBoundaryId||e[0].id]:r}})}function zr(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function it(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=xr(a||".",Dr(c,s),Fe(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&&!st(h.search)&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(h.pathname=h.pathname==="/"?r:Ee([r,h.pathname])),oe(h)}function Ut(e,t,r,n){if(!n||!zr(n))return{path:r};if(n.formMethod&&!lt(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=kt(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!q(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(!q(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(g){return a()}}}T(typeof FormData=="function","FormData is not available in this environment");let c,m;if(n.formData)c=ot(n.formData),m=n.formData;else if(n.body instanceof FormData)c=ot(n.body),m=n.body;else if(n.body instanceof URLSearchParams)c=n.body,m=zt(c);else if(n.body==null)c=new URLSearchParams,m=new FormData;else try{c=new URLSearchParams(n.body),m=zt(c)}catch(g){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(q(h.formMethod))return{path:r,submission:h};let D=te(r);return t&&D.search&&st(D.search)&&c.append("index",""),D.search="?"+c,{path:oe(D),submission:h}}function _t(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 Ft(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=_t(r,F).filter((O,C)=>{if(s)return Nr(t,O.route);if(O.route.lazy)return!0;if(O.route.loader==null)return!1;if(Br(t.loaderData,t.matches[C],O)||f.some(Z=>Z===O.route.id))return!0;let K=t.matches[C],re=O;return It(O,j({currentUrl:p,currentParams:K.params,nextUrl:L,nextParams:re.params},n,{actionResult:v,defaultShouldRevalidate:o||p.pathname+p.search===L.pathname+L.search||p.search!==L.search||Ot(K,re)}))}),d=[];return h.forEach((O,C)=>{if(s||!r.some(Me=>Me.route.id===O.routeId)||m.has(C))return;let K=me(g,O.path,y);if(!K){d.push({key:C,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let re=t.fetchers.get(C),Z=He(K,O.path),le=!1;D.has(C)?le=!1:c.includes(C)?le=!0:re&&re.state!=="idle"&&re.data===void 0?le=o:le=It(Z,j({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:L,nextParams:r[r.length-1].params},n,{actionResult:v,defaultShouldRevalidate:o})),le&&d.push({key:C,routeId:O.routeId,path:O.path,matches:K,match:Z,controller:new AbortController})}),[I,d]}function Nr(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 Br(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function Ot(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function It(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Ht(e,t,r){return V(this,null,function*(){if(!e.lazy)return;let n=yield e.lazy();if(!e.lazy)return;let a=r[e.id];T(a,"No route found in manifest");let s={};for(let o in n){let c=a[o]!==void 0&&o!=="hasErrorBoundary";ee(!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&&!ir.has(o)&&(s[o]=n[o])}Object.assign(a,s),Object.assign(a,j({},t(a),{lazy:void 0}))})}function ge(e,t,r,n,a,s,o,f,c){return V(this,null,function*(){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=yield Promise.all([g(w).catch(L=>{v=L}),Ht(r.route,s,a)]);if(v)throw v;h=p[0]}else if(yield Ht(r.route,s,a),w=r.route[e],w)h=yield 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=yield g(w);else{let v=new URL(t.url),p=v.pathname+v.search;throw k(404,{pathname:p})}T(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(Le(h)){let w=h.status;if(Fr.has(w)){let p=h.headers.get("Location");if(T(p,"Redirects returned/thrown from loaders/actions must have a Location header"),!Tt.test(p))p=it(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),_=Fe(F.pathname,o)!=null;F.origin===L.origin&&_&&(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=yield h.json():v=yield h.text()}catch(p){return{type:H.error,error:p}}return m===H.error?{type:m,error:new nt(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(Wr(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 Ie(e,t,r,n){let a=e.createURL(kt(t)).toString(),s={signal:r};if(n&&q(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=ot(n.formData):s.body=n.formData}return new Request(a,s)}function ot(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function zt(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Nt(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(T(!ve(h),"Cannot handle redirect results in processLoaderData"),ye(h)){let y=Pe(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=Lt(h.error)?h.error.status:500),h.headers&&(m[g]=h.headers)}else ue(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 Bt(e,t,r,n,a,s,o,f){let{loaderData:c,errors:m}=Nt(t,r,n,a,f);for(let h=0;h<s.length;h++){let{key:D,match:g,controller:y}=s[h];T(o!==void 0&&o[h]!==void 0,"Did not find corresponding fetcher result");let R=o[h];if(!(y&&y.signal.aborted))if(ye(R)){let w=Pe(e.matches,g==null?void 0:g.route.id);m&&m[w.route.id]||(m=j({},m,{[w.route.id]:R.error})),e.fetchers.delete(D)}else if(ve(R))T(!1,"Unhandled fetcher revalidation redirect");else if(ue(R))T(!1,"Unhandled fetcher deferred data");else{let w=ce(R.data);e.fetchers.set(D,w)}}return{loaderData:c,errors:m}}function Kt(e,t,r,n){let a=j({},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 Pe(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 Je(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 nt(e||500,o,new Error(f),!0)}function Wt(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(ve(r))return{result:r,idx:t}}}function kt(e){let t=typeof e=="string"?te(e):e;return oe(j({},t,{hash:""}))}function Kr(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ue(e){return e.type===H.deferred}function ye(e){return e.type===H.error}function ve(e){return(e&&e.type)===H.redirect}function Wr(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 Le(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body!="undefined"}function kr(e){if(!Le(e))return!1;let t=e.status,r=e.headers.get("Location");return t>=300&&t<=399&&r!=null}function $r(e){return e&&Le(e.response)&&(e.type===H.data||e.type===H.error)}function lt(e){return _r.has(e.toLowerCase())}function q(e){return Cr.has(e.toLowerCase())}function $t(e,t,r,n,a,s){return V(this,null,function*(){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&&!Ot(m,c)&&(s&&s[c.route.id])!==void 0;if(ue(f)&&(a||h)){let D=n[o];T(D,"Expected an AbortSignal for revalidating fetcher deferred result"),yield Vt(f,D,a).then(g=>{g&&(r[o]=g||r[o])})}}})}function Vt(e,t,r){return V(this,null,function*(){if(r===void 0&&(r=!1),!(yield 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 st(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function He(e,t){let r=typeof t=="string"?te(t).search:t.search;if(e[e.length-1].route.index&&st(r||""))return e[e.length-1];let n=Et(e);return n[n.length-1]}function Jt(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 dt(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 Vr(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 ze(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 Jr(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 ce(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 Yr(e,t){try{let r=e.sessionStorage.getItem(Ct);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(r){}}function Xr(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(Ct,JSON.stringify(r))}catch(n){ee(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}}}]);
3
- }());